Add the select optimization recently added to instcombine to constant folding.
[llvm.git] / configure
blob2a739d3efb65f1ecde180c19799c0c88959a8ac7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.9svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
275 (as_func_return () {
276 (exit $1)
278 as_func_success () {
279 as_func_return 0
281 as_func_failure () {
282 as_func_return 1
284 as_func_ret_success () {
285 return 0
287 as_func_ret_failure () {
288 return 1
291 exitcode=0
292 if as_func_success; then
294 else
295 exitcode=1
296 echo as_func_success failed.
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 else
319 exitcode=1
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331 _ASEOF
332 }; then
333 break
338 done
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
365 (exit \$1)
367 as_func_success () {
368 as_func_return 0
370 as_func_failure () {
371 as_func_return 1
373 as_func_ret_success () {
374 return 0
376 as_func_ret_failure () {
377 return 1
380 exitcode=0
381 if as_func_success; then
383 else
384 exitcode=1
385 echo as_func_success failed.
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 else
408 exitcode=1
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
444 :lineno
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484 else
485 as_expr=false
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491 else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506 else
507 as_ln_s='cp -p'
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528 else
529 as_executable_p=:
531 rm -f conf$$.file
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
562 PACKAGE_NAME='llvm'
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.9svn'
565 PACKAGE_STRING='llvm 2.9svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 subdirs
644 ENABLE_POLLY
645 LLVM_HAS_POLLY
646 build
647 build_cpu
648 build_vendor
649 build_os
650 host
651 host_cpu
652 host_vendor
653 host_os
654 target
655 target_cpu
656 target_vendor
657 target_os
659 HOST_OS
660 TARGET_OS
661 LINKALL
662 NOLINKALL
663 LLVM_ON_UNIX
664 LLVM_ON_WIN32
665 ARCH
666 ENDIAN
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
675 GREP
676 EGREP
677 LLVM_CROSS_COMPILING
678 BUILD_CC
679 BUILD_EXEEXT
680 BUILD_CXX
681 CVSBUILD
682 ENABLE_OPTIMIZED
683 ENABLE_PROFILING
684 DISABLE_ASSERTIONS
685 ENABLE_EXPENSIVE_CHECKS
686 EXPENSIVE_CHECKS
687 DEBUG_RUNTIME
688 DEBUG_SYMBOLS
690 TARGET_HAS_JIT
691 ENABLE_DOCS
692 ENABLE_DOXYGEN
693 ENABLE_THREADS
694 ENABLE_PTHREADS
695 ENABLE_PIC
696 ENABLE_SHARED
697 ENABLE_EMBED_STDCXX
698 ENABLE_TIMESTAMPS
699 TARGETS_TO_BUILD
700 LLVM_ENUM_TARGETS
701 LLVM_ENUM_ASM_PRINTERS
702 LLVM_ENUM_ASM_PARSERS
703 LLVM_ENUM_DISASSEMBLERS
704 ENABLE_CBE_PRINTF_A
705 CLANGPATH
706 CLANGXXPATH
707 ENABLE_BUILT_CLANG
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 BINUTILS_INCDIR
712 CXXFLAGS
713 ac_ct_CXX
715 ifGNUmake
716 LN_S
719 DATE
720 FIND
721 MKDIR
723 RANLIB
728 BINPWD
729 GRAPHVIZ
732 NEATO
733 TWOPI
734 CIRCO
736 DOTTY
737 XDOT_PY
738 PERL
739 HAVE_PERL
740 INSTALL_PROGRAM
741 INSTALL_SCRIPT
742 INSTALL_DATA
743 BZIP2
745 DOXYGEN
746 GROFF
747 GZIPBIN
748 POD2HTML
749 POD2MAN
750 PDFROFF
751 RUNTEST
752 TCLSH
754 OCAMLC
755 OCAMLOPT
756 OCAMLDEP
757 OCAMLDOC
759 HAVE_LINK_VERSION_SCRIPT
760 INSTALL_LTDL_TRUE
761 INSTALL_LTDL_FALSE
762 CONVENIENCE_LTDL_TRUE
763 CONVENIENCE_LTDL_FALSE
764 LIBADD_DL
765 LLVMGCCCOMMAND
766 LLVMGXXCOMMAND
767 LLVMGCC
768 LLVMGXX
769 LLVMCC_OPTION
770 NO_VARIADIC_MACROS
771 NO_MISSING_FIELD_INITIALIZERS
772 USE_UDIS86
773 USE_OPROFILE
774 HAVE_PTHREAD
775 HUGE_VAL_SANITY
776 MMAP_FILE
777 LLVMCC_EMITIR_FLAG
778 LLVMCC1
779 LLVMCC1PLUS
780 LLVMGCCDIR
781 LLVMGCC_LANGS
782 LLVMGCC_DRAGONEGG
783 LLVMCC_DISABLEOPT_FLAGS
784 SHLIBEXT
785 SHLIBPATH_VAR
786 LLVM_PREFIX
787 LLVM_BINDIR
788 LLVM_LIBDIR
789 LLVM_DATADIR
790 LLVM_DOCSDIR
791 LLVM_ETCDIR
792 LLVM_INCLUDEDIR
793 LLVM_INFODIR
794 LLVM_MANDIR
795 LLVM_CONFIGTIME
796 BINDINGS_TO_BUILD
797 ALL_BINDINGS
798 OCAML_LIBDIR
799 ENABLE_VISIBILITY_INLINES_HIDDEN
800 RPATH
801 RDYNAMIC
802 LIBOBJS
803 LTLIBOBJS'
804 ac_subst_files=''
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
814 CXXFLAGS
815 CCC'
816 ac_subdirs_all='projects/llvm-gcc
817 projects/test-suite
818 projects/llvm-test
819 projects/poolalloc
820 projects/llvm-poolalloc
821 projects/sample
822 projects/privbracket
823 projects/llvm-stacker
824 projects/llvm-reopt
825 projects/llvm-java
826 projects/llvm-tv
827 projects/safecode
828 projects/llvm-kernel
829 tools/polly'
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
836 cache_file=/dev/null
837 exec_prefix=NONE
838 no_create=
839 no_recursion=
840 prefix=NONE
841 program_prefix=NONE
842 program_suffix=NONE
843 program_transform_name=s,x,x,
844 silent=
845 site=
846 srcdir=
847 verbose=
848 x_includes=NONE
849 x_libraries=NONE
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
869 htmldir='${docdir}'
870 dvidir='${docdir}'
871 pdfdir='${docdir}'
872 psdir='${docdir}'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
877 ac_prev=
878 ac_dashdash=
879 for ac_option
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
884 ac_prev=
885 continue
888 case $ac_option in
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *) ac_optarg=yes ;;
891 esac
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
897 ac_dashdash=yes ;;
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
916 --config-cache | -C)
917 cache_file=config.cache ;;
919 -datadir | --datadir | --datadi | --datad)
920 ac_prev=datadir ;;
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_$ac_feature=no ;;
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
950 -enable-* | --enable-*)
951 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955 { (exit 1); exit 1; }; }
956 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
957 eval enable_$ac_feature=\$ac_optarg ;;
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1147 -with-* | --with-*)
1148 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package| sed 's/-/_/g'`
1154 eval with_$ac_package=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1160 { echo "$as_me: error: invalid package name: $ac_package" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_package=`echo $ac_package | sed 's/-/_/g'`
1163 eval with_$ac_package=no ;;
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) { echo "$as_me: error: unrecognized option: $ac_option
1184 Try \`$0 --help' for more information." >&2
1185 { (exit 1); exit 1; }; }
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193 { (exit 1); exit 1; }; }
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1205 esac
1206 done
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 { echo "$as_me: error: missing argument to $ac_option" >&2
1211 { (exit 1); exit 1; }; }
1214 # Be sure to have absolute directory names.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val=\$$ac_var
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226 { (exit 1); exit 1; }; }
1227 done
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250 test "$silent" = yes && exec 6>/dev/null
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 { echo "$as_me: error: Working directory cannot be determined" >&2
1257 { (exit 1); exit 1; }; }
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 { echo "$as_me: error: pwd does not report name of working directory" >&2
1260 { (exit 1); exit 1; }; }
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$0" ||
1268 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$0" : 'X\(//\)[^/]' \| \
1270 X"$0" : 'X\(//\)$' \| \
1271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1272 echo X"$0" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1281 /^X\(\/\/\)$/{
1282 s//\1/
1285 /^X\(\/\).*/{
1286 s//\1/
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1294 else
1295 ac_srcdir_defaulted=no
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300 { (exit 1); exit 1; }; }
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305 { (exit 1); exit 1; }; }
1306 pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
1331 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1340 Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 [PREFIX]
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1384 _ACEOF
1386 cat <<\_ACEOF
1388 System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392 _ACEOF
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of llvm 2.9svn:";;
1398 esac
1399 cat <<\_ACEOF
1401 Optional Features:
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-polly Use polly if available (default is YES)
1405 --enable-optimized Compile with optimizations enabled (default is NO)
1406 --enable-profiling Compile with profiling enabled (default is NO)
1407 --enable-assertions Compile with assertion checks enabled (default is
1408 YES)
1409 --enable-expensive-checks
1410 Compile with expensive debug checks enabled (default
1411 is NO)
1412 --enable-debug-runtime Build runtime libs with debug symbols (default is
1414 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1415 optimization is on and YES if it's off)
1416 --enable-jit Enable Just In Time Compiling (default is YES)
1417 --enable-docs Build documents (default is YES)
1418 --enable-doxygen Build doxygen documentation (default is NO)
1419 --enable-threads Use threads if available (default is YES)
1420 --enable-pthreads Use pthreads if available (default is YES)
1421 --enable-pic Build LLVM with Position Independent Code (default
1422 is YES)
1423 --enable-shared Build a shared library and link tools against it
1424 (default is NO)
1425 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1426 Win32 DLL (default is YES)
1427 --enable-timestamps Enable embedding timestamp information in build
1428 (default is YES)
1429 --enable-targets Build specific host targets: all or
1430 target1,target2,... Valid targets are: host, x86,
1431 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1432 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1433 (default=all)
1434 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1435 %a (default is YES)
1436 --enable-bindings Build specific language bindings:
1437 all,auto,none,{binding-name} (default=auto)
1438 --enable-libffi Check for the presence of libffi (default is NO)
1439 --enable-ltdl-install install libltdl
1441 Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1445 searches PATH)
1446 --with-llvmgcc Specify location of llvm-gcc driver (default
1447 searches PATH)
1448 --with-llvmgxx Specify location of llvm-g++ driver (default
1449 searches PATH)
1450 --with-clang Specify location of clang compiler (default is
1451 --with-built-clang)
1452 --with-built-clang Use the compiled Clang as the LLVM compiler
1453 (default=check)
1454 --with-optimize-option Select the compiler options to use for optimized
1455 builds
1456 --with-extra-options Specify additional options to compile LLVM with
1457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1458 is stdlib)
1459 --with-clang-resource-dir
1460 Relative directory from the Clang binary for
1461 resource files
1462 --with-c-include-dirs Colon separated list of directories clang will
1463 search for headers
1464 --with-cxx-include-root Directory with the libstdc++ headers.
1465 --with-cxx-include-arch Architecture of the libstdc++ headers.
1466 --with-cxx-include-32bit-dir
1467 32 bit multilib dir.
1468 --with-cxx-include-64bit-dir
1469 64 bit multilib directory.
1470 --with-binutils-include Specify path to binutils/include/ containing
1471 plugin-api.h file for gold plugin.
1472 --with-tclinclude directory where tcl headers are
1473 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1474 clang, or none; default=check)
1475 --with-udis86=<path> Use udis86 external x86 disassembler library
1476 --with-oprofile=<prefix>
1477 Tell OProfile >= 0.9.4 how to symbolize JIT output
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1485 you have headers in a nonstandard directory <include dir>
1486 CPP C preprocessor
1487 CXX C++ compiler command
1488 CXXFLAGS C++ compiler flags
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1493 Report bugs to <llvmbugs@cs.uiuc.edu>.
1494 _ACEOF
1495 ac_status=$?
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" || continue
1502 ac_builddir=.
1504 case "$ac_dir" in
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514 esac
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1520 case $srcdir in
1521 .) # We are building in place.
1522 ac_srcdir=.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 esac
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1544 else
1545 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1548 done
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1553 cat <<\_ACEOF
1554 llvm configure 2.9svn
1555 generated by GNU Autoconf 2.60
1557 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1558 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1562 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1563 _ACEOF
1564 exit
1566 cat >config.log <<_ACEOF
1567 This file contains any messages produced by compilers while
1568 running configure, to aid debugging if configure makes a mistake.
1570 It was created by llvm $as_me 2.9svn, which was
1571 generated by GNU Autoconf 2.60. Invocation command line was
1573 $ $0 $@
1575 _ACEOF
1576 exec 5>>config.log
1578 cat <<_ASUNAME
1579 ## --------- ##
1580 ## Platform. ##
1581 ## --------- ##
1583 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1584 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1585 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1586 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1587 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1589 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1590 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1592 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1593 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1594 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1595 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1596 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1597 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1598 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1600 _ASUNAME
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 echo "PATH: $as_dir"
1608 done
1609 IFS=$as_save_IFS
1611 } >&5
1613 cat >&5 <<_ACEOF
1616 ## ----------- ##
1617 ## Core tests. ##
1618 ## ----------- ##
1620 _ACEOF
1623 # Keep a trace of the command line.
1624 # Strip out --no-create and --no-recursion so they do not pile up.
1625 # Strip out --silent because we don't want to record it for future runs.
1626 # Also quote any args containing shell meta-characters.
1627 # Make two passes to allow for proper duplicate-argument suppression.
1628 ac_configure_args=
1629 ac_configure_args0=
1630 ac_configure_args1=
1631 ac_must_keep_next=false
1632 for ac_pass in 1 2
1634 for ac_arg
1636 case $ac_arg in
1637 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639 | -silent | --silent | --silen | --sile | --sil)
1640 continue ;;
1641 *\'*)
1642 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1643 esac
1644 case $ac_pass in
1645 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1647 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1648 if test $ac_must_keep_next = true; then
1649 ac_must_keep_next=false # Got value, back to normal.
1650 else
1651 case $ac_arg in
1652 *=* | --config-cache | -C | -disable-* | --disable-* \
1653 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1654 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1655 | -with-* | --with-* | -without-* | --without-* | --x)
1656 case "$ac_configure_args0 " in
1657 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1658 esac
1660 -* ) ac_must_keep_next=true ;;
1661 esac
1663 ac_configure_args="$ac_configure_args '$ac_arg'"
1665 esac
1666 done
1667 done
1668 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1669 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1671 # When interrupted or exit'd, cleanup temporary files, and complete
1672 # config.log. We remove comments because anyway the quotes in there
1673 # would cause problems or look ugly.
1674 # WARNING: Use '\'' to represent an apostrophe within the trap.
1675 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1676 trap 'exit_status=$?
1677 # Save into config.log some information that might help in debugging.
1679 echo
1681 cat <<\_ASBOX
1682 ## ---------------- ##
1683 ## Cache variables. ##
1684 ## ---------------- ##
1685 _ASBOX
1686 echo
1687 # The following way of writing the cache mishandles newlines in values,
1689 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1690 eval ac_val=\$$ac_var
1691 case $ac_val in #(
1692 *${as_nl}*)
1693 case $ac_var in #(
1694 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1695 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1696 esac
1697 case $ac_var in #(
1698 _ | IFS | as_nl) ;; #(
1699 *) $as_unset $ac_var ;;
1700 esac ;;
1701 esac
1702 done
1703 (set) 2>&1 |
1704 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1705 *${as_nl}ac_space=\ *)
1706 sed -n \
1707 "s/'\''/'\''\\\\'\'''\''/g;
1708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1709 ;; #(
1711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1713 esac |
1714 sort
1716 echo
1718 cat <<\_ASBOX
1719 ## ----------------- ##
1720 ## Output variables. ##
1721 ## ----------------- ##
1722 _ASBOX
1723 echo
1724 for ac_var in $ac_subst_vars
1726 eval ac_val=\$$ac_var
1727 case $ac_val in
1728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 esac
1730 echo "$ac_var='\''$ac_val'\''"
1731 done | sort
1732 echo
1734 if test -n "$ac_subst_files"; then
1735 cat <<\_ASBOX
1736 ## ------------------- ##
1737 ## File substitutions. ##
1738 ## ------------------- ##
1739 _ASBOX
1740 echo
1741 for ac_var in $ac_subst_files
1743 eval ac_val=\$$ac_var
1744 case $ac_val in
1745 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 esac
1747 echo "$ac_var='\''$ac_val'\''"
1748 done | sort
1749 echo
1752 if test -s confdefs.h; then
1753 cat <<\_ASBOX
1754 ## ----------- ##
1755 ## confdefs.h. ##
1756 ## ----------- ##
1757 _ASBOX
1758 echo
1759 cat confdefs.h
1760 echo
1762 test "$ac_signal" != 0 &&
1763 echo "$as_me: caught signal $ac_signal"
1764 echo "$as_me: exit $exit_status"
1765 } >&5
1766 rm -f core *.core core.conftest.* &&
1767 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1768 exit $exit_status
1770 for ac_signal in 1 2 13 15; do
1771 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1772 done
1773 ac_signal=0
1775 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1776 rm -f -r conftest* confdefs.h
1778 # Predefined preprocessor variables.
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_NAME "$PACKAGE_NAME"
1782 _ACEOF
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1787 _ACEOF
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1792 _ACEOF
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_STRING "$PACKAGE_STRING"
1797 _ACEOF
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1802 _ACEOF
1805 # Let the site file select an alternate cache file if it wants to.
1806 # Prefer explicitly selected file to automatically selected ones.
1807 if test -n "$CONFIG_SITE"; then
1808 set x "$CONFIG_SITE"
1809 elif test "x$prefix" != xNONE; then
1810 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1811 else
1812 set x "$ac_default_prefix/share/config.site" \
1813 "$ac_default_prefix/etc/config.site"
1815 shift
1816 for ac_site_file
1818 if test -r "$ac_site_file"; then
1819 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1820 echo "$as_me: loading site script $ac_site_file" >&6;}
1821 sed 's/^/| /' "$ac_site_file" >&5
1822 . "$ac_site_file"
1824 done
1826 if test -r "$cache_file"; then
1827 # Some versions of bash will fail to source /dev/null (special
1828 # files actually), so we avoid doing that.
1829 if test -f "$cache_file"; then
1830 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1831 echo "$as_me: loading cache $cache_file" >&6;}
1832 case $cache_file in
1833 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1834 *) . "./$cache_file";;
1835 esac
1837 else
1838 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1839 echo "$as_me: creating cache $cache_file" >&6;}
1840 >$cache_file
1843 # Check that the precious variables saved in the cache have kept the same
1844 # value.
1845 ac_cache_corrupted=false
1846 for ac_var in $ac_precious_vars; do
1847 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1848 eval ac_new_set=\$ac_env_${ac_var}_set
1849 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1850 eval ac_new_val=\$ac_env_${ac_var}_value
1851 case $ac_old_set,$ac_new_set in
1852 set,)
1853 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1854 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1855 ac_cache_corrupted=: ;;
1856 ,set)
1857 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1859 ac_cache_corrupted=: ;;
1860 ,);;
1862 if test "x$ac_old_val" != "x$ac_new_val"; then
1863 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1864 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1865 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1866 echo "$as_me: former value: $ac_old_val" >&2;}
1867 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1868 echo "$as_me: current value: $ac_new_val" >&2;}
1869 ac_cache_corrupted=:
1870 fi;;
1871 esac
1872 # Pass precious variables to config.status.
1873 if test "$ac_new_set" = set; then
1874 case $ac_new_val in
1875 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1876 *) ac_arg=$ac_var=$ac_new_val ;;
1877 esac
1878 case " $ac_configure_args " in
1879 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1880 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1881 esac
1883 done
1884 if $ac_cache_corrupted; then
1885 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1886 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1887 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1888 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1889 { (exit 1); exit 1; }; }
1916 ac_ext=c
1917 ac_cpp='$CPP $CPPFLAGS'
1918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1932 ac_aux_dir=
1933 for ac_dir in autoconf "$srcdir"/autoconf; do
1934 if test -f "$ac_dir/install-sh"; then
1935 ac_aux_dir=$ac_dir
1936 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 break
1938 elif test -f "$ac_dir/install.sh"; then
1939 ac_aux_dir=$ac_dir
1940 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 break
1942 elif test -f "$ac_dir/shtool"; then
1943 ac_aux_dir=$ac_dir
1944 ac_install_sh="$ac_aux_dir/shtool install -c"
1945 break
1947 done
1948 if test -z "$ac_aux_dir"; then
1949 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1950 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1951 { (exit 1); exit 1; }; }
1954 # These three variables are undocumented and unsupported,
1955 # and are intended to be withdrawn in a future Autoconf release.
1956 # They can cause serious problems if a builder's source tree is in a directory
1957 # whose full name contains unusual characters.
1958 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1959 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1960 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1964 if test ${srcdir} != "." ; then
1965 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1966 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1967 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1968 { (exit 1); exit 1; }; }
1974 if test -d ${srcdir}/projects/llvm-gcc ; then
1975 subdirs="$subdirs projects/llvm-gcc"
1979 if test -d ${srcdir}/projects/test-suite ; then
1980 subdirs="$subdirs projects/test-suite"
1984 if test -d ${srcdir}/projects/llvm-test ; then
1985 subdirs="$subdirs projects/llvm-test"
1989 if test -d ${srcdir}/projects/poolalloc ; then
1990 subdirs="$subdirs projects/poolalloc"
1994 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1995 subdirs="$subdirs projects/llvm-poolalloc"
1999 for i in `ls ${srcdir}/projects`
2001 if test -d ${srcdir}/projects/${i} ; then
2002 case ${i} in
2003 sample) subdirs="$subdirs projects/sample"
2005 privbracket) subdirs="$subdirs projects/privbracket"
2007 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2009 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2011 llvm-java) subdirs="$subdirs projects/llvm-java"
2013 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2015 safecode) subdirs="$subdirs projects/safecode"
2017 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2019 llvm-gcc) ;;
2020 test-suite) ;;
2021 llvm-test) ;;
2022 poolalloc) ;;
2023 llvm-poolalloc) ;;
2025 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2026 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2028 esac
2030 done
2032 # Check whether --enable-polly was given.
2033 if test "${enable_polly+set}" = set; then
2034 enableval=$enable_polly;
2035 else
2036 enableval=default
2039 case "$enableval" in
2040 yes) ENABLE_POLLY=1
2042 no) ENABLE_POLLY=0
2044 default) ENABLE_POLLY=1
2046 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2047 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2048 { (exit 1); exit 1; }; } ;;
2049 esac
2052 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2053 LLVM_HAS_POLLY=1
2055 subdirs="$subdirs tools/polly"
2060 # Make sure we can run config.sub.
2061 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2062 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2063 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2064 { (exit 1); exit 1; }; }
2066 { echo "$as_me:$LINENO: checking build system type" >&5
2067 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2068 if test "${ac_cv_build+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 ac_build_alias=$build_alias
2072 test "x$ac_build_alias" = x &&
2073 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2074 test "x$ac_build_alias" = x &&
2075 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2076 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2077 { (exit 1); exit 1; }; }
2078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2079 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2080 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2081 { (exit 1); exit 1; }; }
2084 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2085 echo "${ECHO_T}$ac_cv_build" >&6; }
2086 case $ac_cv_build in
2087 *-*-*) ;;
2088 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2089 echo "$as_me: error: invalid value of canonical build" >&2;}
2090 { (exit 1); exit 1; }; };;
2091 esac
2092 build=$ac_cv_build
2093 ac_save_IFS=$IFS; IFS='-'
2094 set x $ac_cv_build
2095 shift
2096 build_cpu=$1
2097 build_vendor=$2
2098 shift; shift
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2101 build_os=$*
2102 IFS=$ac_save_IFS
2103 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2106 { echo "$as_me:$LINENO: checking host system type" >&5
2107 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2108 if test "${ac_cv_host+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 if test "x$host_alias" = x; then
2112 ac_cv_host=$ac_cv_build
2113 else
2114 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2121 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2122 echo "${ECHO_T}$ac_cv_host" >&6; }
2123 case $ac_cv_host in
2124 *-*-*) ;;
2125 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2126 echo "$as_me: error: invalid value of canonical host" >&2;}
2127 { (exit 1); exit 1; }; };;
2128 esac
2129 host=$ac_cv_host
2130 ac_save_IFS=$IFS; IFS='-'
2131 set x $ac_cv_host
2132 shift
2133 host_cpu=$1
2134 host_vendor=$2
2135 shift; shift
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2138 host_os=$*
2139 IFS=$ac_save_IFS
2140 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2143 { echo "$as_me:$LINENO: checking target system type" >&5
2144 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2145 if test "${ac_cv_target+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 if test "x$target_alias" = x; then
2149 ac_cv_target=$ac_cv_host
2150 else
2151 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2152 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2153 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2154 { (exit 1); exit 1; }; }
2158 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2159 echo "${ECHO_T}$ac_cv_target" >&6; }
2160 case $ac_cv_target in
2161 *-*-*) ;;
2162 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2163 echo "$as_me: error: invalid value of canonical target" >&2;}
2164 { (exit 1); exit 1; }; };;
2165 esac
2166 target=$ac_cv_target
2167 ac_save_IFS=$IFS; IFS='-'
2168 set x $ac_cv_target
2169 shift
2170 target_cpu=$1
2171 target_vendor=$2
2172 shift; shift
2173 # Remember, the first character of IFS is used to create $*,
2174 # except with old shells:
2175 target_os=$*
2176 IFS=$ac_save_IFS
2177 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2180 # The aliases save the names the user supplied, while $host etc.
2181 # will get canonicalized.
2182 test -n "$target_alias" &&
2183 test "$program_prefix$program_suffix$program_transform_name" = \
2184 NONENONEs,x,x, &&
2185 program_prefix=${target_alias}-
2187 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2188 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2189 if test "${llvm_cv_os_type+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192 case $host in
2193 *-*-aix*)
2194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196 llvm_cv_os_type="AIX"
2197 llvm_cv_platform_type="Unix" ;;
2198 *-*-irix*)
2199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201 llvm_cv_os_type="IRIX"
2202 llvm_cv_platform_type="Unix" ;;
2203 *-*-cygwin*)
2204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2206 llvm_cv_os_type="Cygwin"
2207 llvm_cv_platform_type="Unix" ;;
2208 *-*-darwin*)
2209 llvm_cv_link_all_option="-Wl,-all_load"
2210 llvm_cv_no_link_all_option="-Wl,-noall_load"
2211 llvm_cv_os_type="Darwin"
2212 llvm_cv_platform_type="Unix" ;;
2213 *-*-minix*)
2214 llvm_cv_link_all_option="-Wl,-all_load"
2215 llvm_cv_no_link_all_option="-Wl,-noall_load"
2216 llvm_cv_os_type="Minix"
2217 llvm_cv_platform_type="Unix" ;;
2218 *-*-freebsd*)
2219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2221 llvm_cv_os_type="FreeBSD"
2222 llvm_cv_platform_type="Unix" ;;
2223 *-*-openbsd*)
2224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226 llvm_cv_os_type="OpenBSD"
2227 llvm_cv_platform_type="Unix" ;;
2228 *-*-netbsd*)
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="NetBSD"
2232 llvm_cv_platform_type="Unix" ;;
2233 *-*-dragonfly*)
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="DragonFly"
2237 llvm_cv_platform_type="Unix" ;;
2238 *-*-hpux*)
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="HP-UX"
2242 llvm_cv_platform_type="Unix" ;;
2243 *-*-interix*)
2244 llvm_cv_link_all_option="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2246 llvm_cv_os_type="Interix"
2247 llvm_cv_platform_type="Unix" ;;
2248 *-*-linux*)
2249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2251 llvm_cv_os_type="Linux"
2252 llvm_cv_platform_type="Unix" ;;
2253 *-*-solaris*)
2254 llvm_cv_link_all_option="-Wl,-z,allextract"
2255 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2256 llvm_cv_os_type="SunOS"
2257 llvm_cv_platform_type="Unix" ;;
2258 *-*-auroraux*)
2259 llvm_cv_link_all_option="-Wl,-z,allextract"
2260 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2261 llvm_cv_os_type="AuroraUX"
2262 llvm_cv_platform_type="Unix" ;;
2263 *-*-win32*)
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="Win32"
2267 llvm_cv_platform_type="Win32" ;;
2268 *-*-mingw*)
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="MingW"
2272 llvm_cv_platform_type="Win32" ;;
2273 *-*-haiku*)
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="Haiku"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-unknown-eabi*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="Freestanding"
2282 llvm_cv_platform_type="Unix" ;;
2283 *-unknown-elf*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="Freestanding"
2287 llvm_cv_platform_type="Unix" ;;
2289 llvm_cv_link_all_option=""
2290 llvm_cv_no_link_all_option=""
2291 llvm_cv_os_type="Unknown"
2292 llvm_cv_platform_type="Unknown" ;;
2293 esac
2295 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2296 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2298 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2299 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2300 if test "${llvm_cv_target_os_type+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303 case $target in
2304 *-*-aix*)
2305 llvm_cv_target_os_type="AIX" ;;
2306 *-*-irix*)
2307 llvm_cv_target_os_type="IRIX" ;;
2308 *-*-cygwin*)
2309 llvm_cv_target_os_type="Cygwin" ;;
2310 *-*-darwin*)
2311 llvm_cv_target_os_type="Darwin" ;;
2312 *-*-minix*)
2313 llvm_cv_target_os_type="Minix" ;;
2314 *-*-freebsd*)
2315 llvm_cv_target_os_type="FreeBSD" ;;
2316 *-*-openbsd*)
2317 llvm_cv_target_os_type="OpenBSD" ;;
2318 *-*-netbsd*)
2319 llvm_cv_target_os_type="NetBSD" ;;
2320 *-*-dragonfly*)
2321 llvm_cv_target_os_type="DragonFly" ;;
2322 *-*-hpux*)
2323 llvm_cv_target_os_type="HP-UX" ;;
2324 *-*-interix*)
2325 llvm_cv_target_os_type="Interix" ;;
2326 *-*-linux*)
2327 llvm_cv_target_os_type="Linux" ;;
2328 *-*-solaris*)
2329 llvm_cv_target_os_type="SunOS" ;;
2330 *-*-auroraux*)
2331 llvm_cv_target_os_type="AuroraUX" ;;
2332 *-*-win32*)
2333 llvm_cv_target_os_type="Win32" ;;
2334 *-*-mingw*)
2335 llvm_cv_target_os_type="MingW" ;;
2336 *-*-haiku*)
2337 llvm_cv_target_os_type="Haiku" ;;
2338 *-unknown-eabi*)
2339 llvm_cv_target_os_type="Freestanding" ;;
2341 llvm_cv_target_os_type="Unknown" ;;
2342 esac
2344 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2345 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2347 if test "$llvm_cv_os_type" = "Unknown" ; then
2348 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2349 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2350 { (exit 1); exit 1; }; }
2353 OS=$llvm_cv_os_type
2355 HOST_OS=$llvm_cv_os_type
2357 TARGET_OS=$llvm_cv_target_os_type
2360 LINKALL=$llvm_cv_link_all_option
2362 NOLINKALL=$llvm_cv_no_link_all_option
2365 case $llvm_cv_platform_type in
2366 Unix)
2368 cat >>confdefs.h <<\_ACEOF
2369 #define LLVM_ON_UNIX 1
2370 _ACEOF
2372 LLVM_ON_UNIX=1
2374 LLVM_ON_WIN32=0
2377 Win32)
2379 cat >>confdefs.h <<\_ACEOF
2380 #define LLVM_ON_WIN32 1
2381 _ACEOF
2383 LLVM_ON_UNIX=0
2385 LLVM_ON_WIN32=1
2388 esac
2390 { echo "$as_me:$LINENO: checking target architecture" >&5
2391 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2392 if test "${llvm_cv_target_arch+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395 case $target in
2396 i?86-*) llvm_cv_target_arch="x86" ;;
2397 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2398 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2399 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2400 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2401 arm*-*) llvm_cv_target_arch="ARM" ;;
2402 mips-*) llvm_cv_target_arch="Mips" ;;
2403 xcore-*) llvm_cv_target_arch="XCore" ;;
2404 msp430-*) llvm_cv_target_arch="MSP430" ;;
2405 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2406 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2407 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2408 ptx-*) llvm_cv_target_arch="PTX" ;;
2409 *) llvm_cv_target_arch="Unknown" ;;
2410 esac
2412 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2415 if test "$llvm_cv_target_arch" = "Unknown" ; then
2416 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2420 # Determine the LLVM native architecture for the target
2421 case "$llvm_cv_target_arch" in
2422 x86) LLVM_NATIVE_ARCH="X86" ;;
2423 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2424 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2425 esac
2427 ARCH=$llvm_cv_target_arch
2430 ac_ext=c
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 break 2
2457 done
2458 done
2459 IFS=$as_save_IFS
2463 CC=$ac_cv_prog_CC
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2467 else
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2474 if test -z "$ac_cv_prog_CC"; then
2475 ac_ct_CC=$CC
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC="gcc"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2497 done
2498 done
2499 IFS=$as_save_IFS
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 else
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2512 if test "x$ac_ct_CC" = x; then
2513 CC=""
2514 else
2515 case $cross_compiling:$ac_tool_warned in
2516 yes:)
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2524 esac
2525 CC=$ac_ct_CC
2527 else
2528 CC="$ac_cv_prog_CC"
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}cc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="${ac_tool_prefix}cc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2554 done
2555 done
2556 IFS=$as_save_IFS
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2564 else
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2572 if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574 set dummy cc; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2582 else
2583 ac_prog_rejected=no
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected=yes
2593 continue
2595 ac_cv_prog_CC="cc"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2599 done
2600 done
2601 IFS=$as_save_IFS
2603 if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy $ac_cv_prog_CC
2606 shift
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2611 shift
2612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2617 CC=$ac_cv_prog_CC
2618 if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2621 else
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2628 if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2653 done
2654 done
2655 IFS=$as_save_IFS
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661 { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2663 else
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$CC" && break
2670 done
2672 if test -z "$CC"; then
2673 ac_ct_CC=$CC
2674 for ac_prog in cl.exe
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_ac_ct_CC="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2697 done
2698 done
2699 IFS=$as_save_IFS
2703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706 echo "${ECHO_T}$ac_ct_CC" >&6; }
2707 else
2708 { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2713 test -n "$ac_ct_CC" && break
2714 done
2716 if test "x$ac_ct_CC" = x; then
2717 CC=""
2718 else
2719 case $cross_compiling:$ac_tool_warned in
2720 yes:)
2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729 CC=$ac_ct_CC
2736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO: checking for C compiler version" >&5
2744 ac_compiler=`set X $ac_compile; echo $2`
2745 { (ac_try="$ac_compiler --version >&5"
2746 case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler --version >&5") 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755 { (ac_try="$ac_compiler -v >&5"
2756 case "(($ac_try" in
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -v >&5") 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }
2765 { (ac_try="$ac_compiler -V >&5"
2766 case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compiler -V >&5") 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }
2776 cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h. */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2784 main ()
2788 return 0;
2790 _ACEOF
2791 ac_clean_files_save=$ac_clean_files
2792 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2793 # Try to create an executable without -o first, disregard a.out.
2794 # It will help us diagnose broken compilers, and finding out an intuition
2795 # of exeext.
2796 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2797 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2800 # List of possible output files, starting from the most likely.
2801 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802 # only as a last resort. b.out is created by i960 compilers.
2803 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2805 # The IRIX 6 linker writes into existing files which may not be
2806 # executable, retaining their permissions. Remove them first so a
2807 # subsequent execution test works.
2808 ac_rmfiles=
2809 for ac_file in $ac_files
2811 case $ac_file in
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2814 esac
2815 done
2816 rm -f $ac_rmfiles
2818 if { (ac_try="$ac_link_default"
2819 case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_link_default") 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2832 # Autoconf.
2833 for ac_file in $ac_files
2835 test -f "$ac_file" || continue
2836 case $ac_file in
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2839 [ab].out )
2840 # We found the default executable, but exeext='' is most
2841 # certainly right.
2842 break;;
2843 *.* )
2844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845 then :; else
2846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2852 # actually working.
2853 break;;
2855 break;;
2856 esac
2857 done
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&2;}
2868 { (exit 77); exit 77; }; }
2871 ac_exeext=$ac_cv_exeext
2872 { echo "$as_me:$LINENO: result: $ac_file" >&5
2873 echo "${ECHO_T}$ac_file" >&6; }
2875 # Check that the compiler produces executables we can run. If not, either
2876 # the compiler is broken, or we cross compile.
2877 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2880 # If not cross compiling, check that we can run a simple program.
2881 if test "$cross_compiling" != yes; then
2882 if { ac_try='./$ac_file'
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_try") 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 cross_compiling=no
2893 else
2894 if test "$cross_compiling" = maybe; then
2895 cross_compiling=yes
2896 else
2897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \`config.log' for more details." >&5
2900 echo "$as_me: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details." >&2;}
2903 { (exit 1); exit 1; }; }
2907 { echo "$as_me:$LINENO: result: yes" >&5
2908 echo "${ECHO_T}yes" >&6; }
2910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2911 ac_clean_files=$ac_clean_files_save
2912 # Check that the compiler produces executables we can run. If not, either
2913 # the compiler is broken, or we cross compile.
2914 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2916 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2917 echo "${ECHO_T}$cross_compiling" >&6; }
2919 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2921 if { (ac_try="$ac_link"
2922 case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925 esac
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_link") 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; then
2931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2932 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2933 # work properly (i.e., refer to `conftest.exe'), while it won't with
2934 # `rm'.
2935 for ac_file in conftest.exe conftest conftest.*; do
2936 test -f "$ac_file" || continue
2937 case $ac_file in
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940 break;;
2941 * ) break;;
2942 esac
2943 done
2944 else
2945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details." >&5
2947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2948 See \`config.log' for more details." >&2;}
2949 { (exit 1); exit 1; }; }
2952 rm -f conftest$ac_cv_exeext
2953 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2954 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2956 rm -f conftest.$ac_ext
2957 EXEEXT=$ac_cv_exeext
2958 ac_exeext=$EXEEXT
2959 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2961 if test "${ac_cv_objext+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2972 main ()
2976 return 0;
2978 _ACEOF
2979 rm -f conftest.o conftest.obj
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 for ac_file in conftest.o conftest.obj conftest.*; do
2991 test -f "$ac_file" || continue;
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2995 break;;
2996 esac
2997 done
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3002 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3005 See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
3009 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3011 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3012 echo "${ECHO_T}$ac_cv_objext" >&6; }
3013 OBJEXT=$ac_cv_objext
3014 ac_objext=$OBJEXT
3015 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3016 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3028 main ()
3030 #ifndef __GNUC__
3031 choke me
3032 #endif
3035 return 0;
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_compiler_gnu=yes
3073 else
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 ac_compiler_gnu=no
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3084 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3085 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3086 GCC=`test $ac_compiler_gnu = yes && echo yes`
3087 ac_test_CFLAGS=${CFLAGS+set}
3088 ac_save_CFLAGS=$CFLAGS
3089 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3090 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_cc_g+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094 ac_save_c_werror_flag=$ac_c_werror_flag
3095 ac_c_werror_flag=yes
3096 ac_cv_prog_cc_g=no
3097 CFLAGS="-g"
3098 cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h. */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3106 main ()
3110 return 0;
3112 _ACEOF
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_prog_cc_g=yes
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 CFLAGS=""
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3161 main ()
3165 return 0;
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3203 else
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 ac_c_werror_flag=$ac_save_c_werror_flag
3208 CFLAGS="-g"
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3217 main ()
3221 return 0;
3223 _ACEOF
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3239 { (case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_try") 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_try") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_cv_prog_cc_g=yes
3259 else
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3275 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3277 if test "$ac_test_CFLAGS" = set; then
3278 CFLAGS=$ac_save_CFLAGS
3279 elif test $ac_cv_prog_cc_g = yes; then
3280 if test "$GCC" = yes; then
3281 CFLAGS="-g -O2"
3282 else
3283 CFLAGS="-g"
3285 else
3286 if test "$GCC" = yes; then
3287 CFLAGS="-O2"
3288 else
3289 CFLAGS=
3292 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3293 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_cc_c89+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 ac_cv_prog_cc_c89=no
3298 ac_save_CC=$CC
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h. */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3305 #include <stdarg.h>
3306 #include <stdio.h>
3307 #include <sys/types.h>
3308 #include <sys/stat.h>
3309 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3310 struct buf { int x; };
3311 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3312 static char *e (p, i)
3313 char **p;
3314 int i;
3316 return p[i];
3318 static char *f (char * (*g) (char **, int), char **p, ...)
3320 char *s;
3321 va_list v;
3322 va_start (v,p);
3323 s = g (p, va_arg (v,int));
3324 va_end (v);
3325 return s;
3328 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3329 function prototypes and stuff, but not '\xHH' hex character constants.
3330 These don't provoke an error unfortunately, instead are silently treated
3331 as 'x'. The following induces an error, until -std is added to get
3332 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3333 array size at least. It's necessary to write '\x00'==0 to get something
3334 that's true only with -std. */
3335 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3337 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3338 inside strings and character constants. */
3339 #define FOO(x) 'x'
3340 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3342 int test (int i, double x);
3343 struct s1 {int (*f) (int a);};
3344 struct s2 {int (*f) (double a);};
3345 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3346 int argc;
3347 char **argv;
3349 main ()
3351 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3353 return 0;
3355 _ACEOF
3356 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3357 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3359 CC="$ac_save_CC $ac_arg"
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3375 { (case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_try") 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_prog_cc_c89=$ac_arg
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3402 rm -f core conftest.err conftest.$ac_objext
3403 test "x$ac_cv_prog_cc_c89" != "xno" && break
3404 done
3405 rm -f conftest.$ac_ext
3406 CC=$ac_save_CC
3409 # AC_CACHE_VAL
3410 case "x$ac_cv_prog_cc_c89" in
3412 { echo "$as_me:$LINENO: result: none needed" >&5
3413 echo "${ECHO_T}none needed" >&6; } ;;
3414 xno)
3415 { echo "$as_me:$LINENO: result: unsupported" >&5
3416 echo "${ECHO_T}unsupported" >&6; } ;;
3418 CC="$CC $ac_cv_prog_cc_c89"
3419 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3420 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3421 esac
3424 ac_ext=c
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 ac_ext=c
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3437 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3438 # On Suns, sometimes $CPP names a directory.
3439 if test -n "$CPP" && test -d "$CPP"; then
3440 CPP=
3442 if test -z "$CPP"; then
3443 if test "${ac_cv_prog_CPP+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 # Double quotes because CPP needs to be expanded
3447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3449 ac_preproc_ok=false
3450 for ac_c_preproc_warn_flag in '' yes
3452 # Use a header file that comes with gcc, so configuring glibc
3453 # with a fresh cross-compiler works.
3454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455 # <limits.h> exists even on freestanding compilers.
3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error" is here to catch this case.
3458 cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h. */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464 #ifdef __STDC__
3465 # include <limits.h>
3466 #else
3467 # include <assert.h>
3468 #endif
3469 Syntax error
3470 _ACEOF
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 else
3488 ac_cpp_err=
3490 else
3491 ac_cpp_err=yes
3493 if test -z "$ac_cpp_err"; then
3495 else
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Broken: fails on valid input.
3500 continue
3503 rm -f conftest.err conftest.$ac_ext
3505 # OK, works on sane cases. Now check whether nonexistent headers
3506 # can be detected and how.
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <ac_nonexistent.h>
3514 _ACEOF
3515 if { (ac_try="$ac_cpp conftest.$ac_ext"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } >/dev/null; then
3528 if test -s conftest.err; then
3529 ac_cpp_err=$ac_c_preproc_warn_flag
3530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3531 else
3532 ac_cpp_err=
3534 else
3535 ac_cpp_err=yes
3537 if test -z "$ac_cpp_err"; then
3538 # Broken: success on invalid input.
3539 continue
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 # Passes both tests.
3545 ac_preproc_ok=:
3546 break
3549 rm -f conftest.err conftest.$ac_ext
3551 done
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then
3555 break
3558 done
3559 ac_cv_prog_CPP=$CPP
3562 CPP=$ac_cv_prog_CPP
3563 else
3564 ac_cv_prog_CPP=$CPP
3566 { echo "$as_me:$LINENO: result: $CPP" >&5
3567 echo "${ECHO_T}$CPP" >&6; }
3568 ac_preproc_ok=false
3569 for ac_c_preproc_warn_flag in '' yes
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
3577 cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h. */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3583 #ifdef __STDC__
3584 # include <limits.h>
3585 #else
3586 # include <assert.h>
3587 #endif
3588 Syntax error
3589 _ACEOF
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606 else
3607 ac_cpp_err=
3609 else
3610 ac_cpp_err=yes
3612 if test -z "$ac_cpp_err"; then
3614 else
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 # Broken: fails on valid input.
3619 continue
3622 rm -f conftest.err conftest.$ac_ext
3624 # OK, works on sane cases. Now check whether nonexistent headers
3625 # can be detected and how.
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 #include <ac_nonexistent.h>
3633 _ACEOF
3634 if { (ac_try="$ac_cpp conftest.$ac_ext"
3635 case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } >/dev/null; then
3647 if test -s conftest.err; then
3648 ac_cpp_err=$ac_c_preproc_warn_flag
3649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3650 else
3651 ac_cpp_err=
3653 else
3654 ac_cpp_err=yes
3656 if test -z "$ac_cpp_err"; then
3657 # Broken: success on invalid input.
3658 continue
3659 else
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3663 # Passes both tests.
3664 ac_preproc_ok=:
3665 break
3668 rm -f conftest.err conftest.$ac_ext
3670 done
3671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672 rm -f conftest.err conftest.$ac_ext
3673 if $ac_preproc_ok; then
3675 else
3676 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3677 See \`config.log' for more details." >&5
3678 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log' for more details." >&2;}
3680 { (exit 1); exit 1; }; }
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3691 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_GREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 # Extract the first word of "grep ggrep" to use in msg output
3696 if test -z "$GREP"; then
3697 set dummy grep ggrep; ac_prog_name=$2
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 ac_path_GREP_found=false
3702 # Loop through the user's path and test for each of PROGNAME-LIST
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_prog in grep ggrep; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3712 # Check for GNU ac_path_GREP and select it if it is found.
3713 # Check for GNU $ac_path_GREP
3714 case `"$ac_path_GREP" --version 2>&1` in
3715 *GNU*)
3716 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3718 ac_count=0
3719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3720 while :
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
3725 echo 'GREP' >> "conftest.nl"
3726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3728 ac_count=`expr $ac_count + 1`
3729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_GREP="$ac_path_GREP"
3732 ac_path_GREP_max=$ac_count
3734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3736 done
3737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3738 esac
3741 $ac_path_GREP_found && break 3
3742 done
3743 done
3745 done
3746 IFS=$as_save_IFS
3751 GREP="$ac_cv_path_GREP"
3752 if test -z "$GREP"; then
3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755 { (exit 1); exit 1; }; }
3758 else
3759 ac_cv_path_GREP=$GREP
3764 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3765 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3766 GREP="$ac_cv_path_GREP"
3769 { echo "$as_me:$LINENO: checking for egrep" >&5
3770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3771 if test "${ac_cv_path_EGREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3775 then ac_cv_path_EGREP="$GREP -E"
3776 else
3777 # Extract the first word of "egrep" to use in msg output
3778 if test -z "$EGREP"; then
3779 set dummy egrep; ac_prog_name=$2
3780 if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 ac_path_EGREP_found=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_prog in egrep; do
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3794 # Check for GNU ac_path_EGREP and select it if it is found.
3795 # Check for GNU $ac_path_EGREP
3796 case `"$ac_path_EGREP" --version 2>&1` in
3797 *GNU*)
3798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3800 ac_count=0
3801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3802 while :
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
3807 echo 'EGREP' >> "conftest.nl"
3808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810 ac_count=`expr $ac_count + 1`
3811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP="$ac_path_EGREP"
3814 ac_path_EGREP_max=$ac_count
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3818 done
3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820 esac
3823 $ac_path_EGREP_found && break 3
3824 done
3825 done
3827 done
3828 IFS=$as_save_IFS
3833 EGREP="$ac_cv_path_EGREP"
3834 if test -z "$EGREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3840 else
3841 ac_cv_path_EGREP=$EGREP
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3849 EGREP="$ac_cv_path_EGREP"
3852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3854 if test "${ac_cv_header_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h. */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3863 #include <stdlib.h>
3864 #include <stdarg.h>
3865 #include <string.h>
3866 #include <float.h>
3869 main ()
3873 return 0;
3875 _ACEOF
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_try") 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_cv_header_stdc=yes
3911 else
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_cv_header_stdc=no
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h. */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928 #include <string.h>
3930 _ACEOF
3931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3932 $EGREP "memchr" >/dev/null 2>&1; then
3934 else
3935 ac_cv_header_stdc=no
3937 rm -f conftest*
3941 if test $ac_cv_header_stdc = yes; then
3942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3943 cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h. */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <stdlib.h>
3951 _ACEOF
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953 $EGREP "free" >/dev/null 2>&1; then
3955 else
3956 ac_cv_header_stdc=no
3958 rm -f conftest*
3962 if test $ac_cv_header_stdc = yes; then
3963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3964 if test "$cross_compiling" = yes; then
3966 else
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3973 #include <ctype.h>
3974 #include <stdlib.h>
3975 #if ((' ' & 0x0FF) == 0x020)
3976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3978 #else
3979 # define ISLOWER(c) \
3980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
3983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3984 #endif
3986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3988 main ()
3990 int i;
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
3993 || toupper (i) != TOUPPER (i))
3994 return 2;
3995 return 0;
3997 _ACEOF
3998 rm -f conftest$ac_exeext
3999 if { (ac_try="$ac_link"
4000 case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_link") 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4009 { (case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4019 else
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 ( exit $ac_status )
4025 ac_cv_header_stdc=no
4027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4033 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4034 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4035 if test $ac_cv_header_stdc = yes; then
4037 cat >>confdefs.h <<\_ACEOF
4038 #define STDC_HEADERS 1
4039 _ACEOF
4043 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4053 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4054 inttypes.h stdint.h unistd.h
4056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4070 #include <$ac_header>
4071 _ACEOF
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087 { (case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100 esac
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 eval "$as_ac_Header=yes"
4107 else
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 eval "$as_ac_Header=no"
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 ac_res=`eval echo '${'$as_ac_Header'}'`
4117 { echo "$as_me:$LINENO: result: $ac_res" >&5
4118 echo "${ECHO_T}$ac_res" >&6; }
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h <<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122 _ACEOF
4126 done
4129 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4130 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4131 if test "${ac_cv_c_bigendian+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134 # See if sys/param.h defines the BYTE_ORDER macro.
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <sys/types.h>
4142 #include <sys/param.h>
4145 main ()
4147 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4148 bogus endian macros
4149 #endif
4152 return 0;
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (ac_try="$ac_compile"
4157 case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160 esac
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_compile") 2>conftest.er1
4163 ac_status=$?
4164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; } &&
4179 { ac_try='test -s conftest.$ac_objext'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 # It does; now see whether it defined to BIG_ENDIAN or not.
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <sys/types.h>
4197 #include <sys/param.h>
4200 main ()
4202 #if BYTE_ORDER != BIG_ENDIAN
4203 not big endian
4204 #endif
4207 return 0;
4209 _ACEOF
4210 rm -f conftest.$ac_objext
4211 if { (ac_try="$ac_compile"
4212 case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215 esac
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_compile") 2>conftest.er1
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225 { (case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228 esac
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238 esac
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_cv_c_bigendian=yes
4245 else
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 ac_cv_c_bigendian=no
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 else
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4257 # It does not; compile a test program.
4258 if test "$cross_compiling" = yes; then
4259 # try to guess the endianness by grepping values into an object file
4260 ac_cv_c_bigendian=unknown
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4268 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4269 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4270 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4271 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4272 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4274 main ()
4276 _ascii (); _ebcdic ();
4278 return 0;
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (ac_try="$ac_compile"
4283 case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_compile") 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_try") 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4316 ac_cv_c_bigendian=yes
4318 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4319 if test "$ac_cv_c_bigendian" = unknown; then
4320 ac_cv_c_bigendian=no
4321 else
4322 # finding both strings is unlikely to happen, but who knows?
4323 ac_cv_c_bigendian=unknown
4326 else
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 else
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h. */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 $ac_includes_default
4343 main ()
4346 /* Are we little or big endian? From Harbison&Steele. */
4347 union
4349 long int l;
4350 char c[sizeof (long int)];
4351 } u;
4352 u.l = 1;
4353 return u.c[sizeof (long int) - 1] == 1;
4356 return 0;
4358 _ACEOF
4359 rm -f conftest$ac_exeext
4360 if { (ac_try="$ac_link"
4361 case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364 esac
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link") 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4370 { (case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373 esac
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_try") 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_c_bigendian=no
4380 else
4381 echo "$as_me: program exited with status $ac_status" >&5
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 ( exit $ac_status )
4386 ac_cv_c_bigendian=yes
4388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4397 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4398 case $ac_cv_c_bigendian in
4399 yes)
4400 ENDIAN=big
4403 ENDIAN=little
4406 { { echo "$as_me:$LINENO: error: unknown endianness
4407 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4408 echo "$as_me: error: unknown endianness
4409 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4410 { (exit 1); exit 1; }; } ;;
4411 esac
4414 if test "$cross_compiling" = yes; then
4415 LLVM_CROSS_COMPILING=1
4418 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4419 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4420 if test "${ac_cv_build_exeext+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4424 ac_cv_build_exeext=.exe
4425 else
4426 ac_build_prefix=${build_alias}-
4428 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4429 set dummy ${ac_build_prefix}gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4451 IFS=$as_save_IFS
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4459 else
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "gcc", so it can be a program name with args.
4467 set dummy gcc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475 else
4476 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 ac_cv_prog_BUILD_CC="gcc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4487 done
4488 done
4489 IFS=$as_save_IFS
4493 BUILD_CC=$ac_cv_prog_BUILD_CC
4494 if test -n "$BUILD_CC"; then
4495 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4496 echo "${ECHO_T}$BUILD_CC" >&6; }
4497 else
4498 { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4503 if test -z "$BUILD_CC"; then
4504 # Extract the first word of "cc", so it can be a program name with args.
4505 set dummy cc; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511 if test -n "$BUILD_CC"; then
4512 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4513 else
4514 ac_prog_rejected=no
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4523 ac_prog_rejected=yes
4524 continue
4526 ac_cv_prog_BUILD_CC="cc"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4530 done
4531 done
4532 IFS=$as_save_IFS
4534 if test $ac_prog_rejected = yes; then
4535 # We found a bogon in the path, so make sure we never use it.
4536 set dummy $ac_cv_prog_BUILD_CC
4537 shift
4538 if test $# != 0; then
4539 # We chose a different compiler from the bogus one.
4540 # However, it has the same basename, so the bogon will be chosen
4541 # first if we set BUILD_CC to just the basename; use the full file name.
4542 shift
4543 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4548 BUILD_CC=$ac_cv_prog_BUILD_CC
4549 if test -n "$BUILD_CC"; then
4550 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4551 echo "${ECHO_T}$BUILD_CC" >&6; }
4552 else
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4560 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4561 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4562 { (exit 1); exit 1; }; }
4563 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4564 rm -f conftest*
4565 echo 'int main () { return 0; }' > conftest.$ac_ext
4566 ac_cv_build_exeext=
4567 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4568 (eval $ac_build_link) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; then
4572 for file in conftest.*; do
4573 case $file in
4574 *.c | *.o | *.obj | *.dSYM) ;;
4575 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4576 esac
4577 done
4578 else
4579 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4580 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4581 { (exit 1); exit 1; }; }
4583 rm -f conftest*
4584 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4588 BUILD_EXEEXT=""
4589 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4590 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4591 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4592 ac_build_exeext=$BUILD_EXEEXT
4594 ac_build_prefix=${build_alias}-
4595 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4596 set dummy ${ac_build_prefix}g++; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4616 done
4617 done
4618 IFS=$as_save_IFS
4622 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623 if test -n "$BUILD_CXX"; then
4624 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625 echo "${ECHO_T}$BUILD_CXX" >&6; }
4626 else
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4632 if test -z "$BUILD_CXX"; then
4633 # Extract the first word of "g++", so it can be a program name with args.
4634 set dummy g++; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 if test -n "$BUILD_CXX"; then
4641 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4642 else
4643 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 ac_cv_prog_BUILD_CXX="g++"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4654 done
4655 done
4656 IFS=$as_save_IFS
4660 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4661 if test -n "$BUILD_CXX"; then
4662 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4663 echo "${ECHO_T}$BUILD_CXX" >&6; }
4664 else
4665 { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4670 if test -z "$BUILD_CXX"; then
4671 # Extract the first word of "c++", so it can be a program name with args.
4672 set dummy c++; ac_word=$2
4673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678 if test -n "$BUILD_CXX"; then
4679 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4680 else
4681 ac_prog_rejected=no
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4690 ac_prog_rejected=yes
4691 continue
4693 ac_cv_prog_BUILD_CXX="c++"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4697 done
4698 done
4699 IFS=$as_save_IFS
4701 if test $ac_prog_rejected = yes; then
4702 # We found a bogon in the path, so make sure we never use it.
4703 set dummy $ac_cv_prog_BUILD_CXX
4704 shift
4705 if test $# != 0; then
4706 # We chose a different compiler from the bogus one.
4707 # However, it has the same basename, so the bogon will be chosen
4708 # first if we set BUILD_CXX to just the basename; use the full file name.
4709 shift
4710 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4715 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4716 if test -n "$BUILD_CXX"; then
4717 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4718 echo "${ECHO_T}$BUILD_CXX" >&6; }
4719 else
4720 { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4727 else
4728 LLVM_CROSS_COMPILING=0
4732 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4733 cvsbuild="yes"
4734 optimize="no"
4735 CVSBUILD=CVSBUILD=1
4737 else
4738 cvsbuild="no"
4739 optimize="yes"
4743 # Check whether --enable-optimized was given.
4744 if test "${enable_optimized+set}" = set; then
4745 enableval=$enable_optimized;
4746 else
4747 enableval=$optimize
4750 if test ${enableval} = "no" ; then
4751 ENABLE_OPTIMIZED=
4753 else
4754 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4758 # Check whether --enable-profiling was given.
4759 if test "${enable_profiling+set}" = set; then
4760 enableval=$enable_profiling;
4761 else
4762 enableval="no"
4765 if test ${enableval} = "no" ; then
4766 ENABLE_PROFILING=
4768 else
4769 ENABLE_PROFILING=ENABLE_PROFILING=1
4773 # Check whether --enable-assertions was given.
4774 if test "${enable_assertions+set}" = set; then
4775 enableval=$enable_assertions;
4776 else
4777 enableval="yes"
4780 if test ${enableval} = "yes" ; then
4781 DISABLE_ASSERTIONS=
4783 else
4784 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4788 # Check whether --enable-expensive-checks was given.
4789 if test "${enable_expensive_checks+set}" = set; then
4790 enableval=$enable_expensive_checks;
4791 else
4792 enableval="no"
4795 if test ${enableval} = "yes" ; then
4796 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4798 EXPENSIVE_CHECKS=yes
4800 else
4801 ENABLE_EXPENSIVE_CHECKS=
4803 EXPENSIVE_CHECKS=no
4807 # Check whether --enable-debug-runtime was given.
4808 if test "${enable_debug_runtime+set}" = set; then
4809 enableval=$enable_debug_runtime;
4810 else
4811 enableval=no
4814 if test ${enableval} = "no" ; then
4815 DEBUG_RUNTIME=
4817 else
4818 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4822 # Check whether --enable-debug-symbols was given.
4823 if test "${enable_debug_symbols+set}" = set; then
4824 enableval=$enable_debug_symbols;
4825 else
4826 enableval=no
4829 if test ${enableval} = "no" ; then
4830 DEBUG_SYMBOLS=
4832 else
4833 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4837 # Check whether --enable-jit was given.
4838 if test "${enable_jit+set}" = set; then
4839 enableval=$enable_jit;
4840 else
4841 enableval=default
4844 if test ${enableval} = "no"
4845 then
4846 JIT=
4848 else
4849 case "$llvm_cv_target_arch" in
4850 x86) TARGET_HAS_JIT=1
4852 Sparc) TARGET_HAS_JIT=0
4854 PowerPC) TARGET_HAS_JIT=1
4856 x86_64) TARGET_HAS_JIT=1
4858 Alpha) TARGET_HAS_JIT=0
4860 ARM) TARGET_HAS_JIT=1
4862 Mips) TARGET_HAS_JIT=0
4864 XCore) TARGET_HAS_JIT=0
4866 MSP430) TARGET_HAS_JIT=0
4868 SystemZ) TARGET_HAS_JIT=0
4870 Blackfin) TARGET_HAS_JIT=0
4872 MBlaze) TARGET_HAS_JIT=0
4874 PTX) TARGET_HAS_JIT=0
4876 *) TARGET_HAS_JIT=0
4878 esac
4881 # Check whether --enable-docs was given.
4882 if test "${enable_docs+set}" = set; then
4883 enableval=$enable_docs;
4884 else
4885 enableval=default
4888 case "$enableval" in
4889 yes) ENABLE_DOCS=1
4891 no) ENABLE_DOCS=0
4893 default) ENABLE_DOCS=1
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4896 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4898 esac
4900 # Check whether --enable-doxygen was given.
4901 if test "${enable_doxygen+set}" = set; then
4902 enableval=$enable_doxygen;
4903 else
4904 enableval=default
4907 case "$enableval" in
4908 yes) ENABLE_DOXYGEN=1
4910 no) ENABLE_DOXYGEN=0
4912 default) ENABLE_DOXYGEN=0
4914 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4915 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4916 { (exit 1); exit 1; }; } ;;
4917 esac
4919 # Check whether --enable-threads was given.
4920 if test "${enable_threads+set}" = set; then
4921 enableval=$enable_threads;
4922 else
4923 enableval=default
4926 case "$enableval" in
4927 yes) ENABLE_THREADS=1
4929 no) ENABLE_THREADS=0
4931 default) ENABLE_THREADS=1
4933 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4934 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4935 { (exit 1); exit 1; }; } ;;
4936 esac
4938 cat >>confdefs.h <<_ACEOF
4939 #define ENABLE_THREADS $ENABLE_THREADS
4940 _ACEOF
4943 # Check whether --enable-pthreads was given.
4944 if test "${enable_pthreads+set}" = set; then
4945 enableval=$enable_pthreads;
4946 else
4947 enableval=default
4950 case "$enableval" in
4951 yes) ENABLE_PTHREADS=1
4953 no) ENABLE_PTHREADS=0
4955 default) ENABLE_PTHREADS=1
4957 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4958 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4960 esac
4962 # Check whether --enable-pic was given.
4963 if test "${enable_pic+set}" = set; then
4964 enableval=$enable_pic;
4965 else
4966 enableval=default
4969 case "$enableval" in
4970 yes) ENABLE_PIC=1
4972 no) ENABLE_PIC=0
4974 default) ENABLE_PIC=1
4976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4977 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4978 { (exit 1); exit 1; }; } ;;
4979 esac
4981 cat >>confdefs.h <<_ACEOF
4982 #define ENABLE_PIC $ENABLE_PIC
4983 _ACEOF
4986 # Check whether --enable-shared was given.
4987 if test "${enable_shared+set}" = set; then
4988 enableval=$enable_shared;
4989 else
4990 enableval=default
4993 case "$enableval" in
4994 yes) ENABLE_SHARED=1
4996 no) ENABLE_SHARED=0
4998 default) ENABLE_SHARED=0
5000 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5001 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5002 { (exit 1); exit 1; }; } ;;
5003 esac
5005 # Check whether --enable-embed-stdcxx was given.
5006 if test "${enable_embed_stdcxx+set}" = set; then
5007 enableval=$enable_embed_stdcxx;
5008 else
5009 enableval=default
5012 case "$enableval" in
5013 yes) ENABLE_EMBED_STDCXX=1
5015 no) ENABLE_EMBED_STDCXX=0
5017 default) ENABLE_EMBED_STDCXX=1
5019 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5020 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5021 { (exit 1); exit 1; }; } ;;
5022 esac
5024 # Check whether --enable-timestamps was given.
5025 if test "${enable_timestamps+set}" = set; then
5026 enableval=$enable_timestamps;
5027 else
5028 enableval=default
5031 case "$enableval" in
5032 yes) ENABLE_TIMESTAMPS=1
5034 no) ENABLE_TIMESTAMPS=0
5036 default) ENABLE_TIMESTAMPS=1
5038 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5039 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5041 esac
5043 cat >>confdefs.h <<_ACEOF
5044 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5045 _ACEOF
5048 TARGETS_TO_BUILD=""
5049 # Check whether --enable-targets was given.
5050 if test "${enable_targets+set}" = set; then
5051 enableval=$enable_targets;
5052 else
5053 enableval=all
5056 if test "$enableval" = host-only ; then
5057 enableval=host
5059 case "$enableval" in
5060 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5061 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5062 case "$a_target" in
5063 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5064 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5065 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5066 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5067 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5068 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5069 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5070 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5071 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5072 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5073 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5074 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5075 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5076 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5077 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5078 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5079 host) case "$llvm_cv_target_arch" in
5080 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5081 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5082 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5083 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5084 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5085 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5086 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5087 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5088 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5089 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5090 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5091 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5092 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5093 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5094 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5095 echo "$as_me: error: Can not set target to build" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5097 esac ;;
5098 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5099 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5100 { (exit 1); exit 1; }; } ;;
5101 esac
5102 done
5104 esac
5105 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5108 # Determine whether we are building LLVM support for the native architecture.
5109 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5110 for a_target in $TARGETS_TO_BUILD; do
5111 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5113 cat >>confdefs.h <<_ACEOF
5114 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5115 _ACEOF
5117 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5118 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5119 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5121 cat >>confdefs.h <<_ACEOF
5122 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5123 _ACEOF
5126 cat >>confdefs.h <<_ACEOF
5127 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5128 _ACEOF
5131 cat >>confdefs.h <<_ACEOF
5132 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5133 _ACEOF
5136 done
5138 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5139 # target feature def files.
5140 LLVM_ENUM_TARGETS=""
5141 LLVM_ENUM_ASM_PRINTERS=""
5142 LLVM_ENUM_ASM_PARSERS=""
5143 LLVM_ENUM_DISASSEMBLERS=""
5144 for target_to_build in $TARGETS_TO_BUILD; do
5145 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5146 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5147 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5149 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5150 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5152 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5153 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5155 done
5161 # Check whether --enable-cbe-printf-a was given.
5162 if test "${enable_cbe_printf_a+set}" = set; then
5163 enableval=$enable_cbe_printf_a;
5164 else
5165 enableval=default
5168 case "$enableval" in
5169 yes) ENABLE_CBE_PRINTF_A=1
5171 no) ENABLE_CBE_PRINTF_A=0
5173 default) ENABLE_CBE_PRINTF_A=1
5175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5176 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
5178 esac
5180 cat >>confdefs.h <<_ACEOF
5181 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5182 _ACEOF
5186 # Check whether --with-llvmgccdir was given.
5187 if test "${with_llvmgccdir+set}" = set; then
5188 withval=$with_llvmgccdir;
5189 else
5190 withval=default
5193 case "$withval" in
5194 default) WITH_LLVMGCCDIR=default ;;
5195 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5196 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5197 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5198 { (exit 1); exit 1; }; } ;;
5199 esac
5202 # Check whether --with-llvmgcc was given.
5203 if test "${with_llvmgcc+set}" = set; then
5204 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5205 WITH_LLVMGCCDIR=""
5210 # Check whether --with-llvmgxx was given.
5211 if test "${with_llvmgxx+set}" = set; then
5212 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5213 WITH_LLVMGCCDIR=""
5217 if test -n "$LLVMGCC"; then
5218 LLVMGCCCOMMAND="$LLVMGCC"
5221 if test -n "$LLVMGXX"; then
5222 LLVMGXXCOMMAND="$LLVMGXX"
5225 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5226 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5227 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5228 { (exit 1); exit 1; }; };
5231 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5232 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5233 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5234 { (exit 1); exit 1; }; };
5238 # Check whether --with-clang was given.
5239 if test "${with_clang+set}" = set; then
5240 withval=$with_clang;
5241 else
5242 with_clang=default
5247 # Check whether --with-built-clang was given.
5248 if test "${with_built_clang+set}" = set; then
5249 withval=$with_built_clang;
5250 else
5251 with_built_clang=check
5255 { echo "$as_me:$LINENO: checking clang compiler" >&5
5256 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5257 WITH_CLANGPATH=""
5258 WITH_BUILT_CLANG=0
5259 if test "$with_clang" != "default"; then
5260 WITH_CLANGPATH="$with_clang"
5261 if ! test -x "$WITH_CLANGPATH"; then
5262 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5263 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5264 { (exit 1); exit 1; }; }
5266 elif test "$with_built_clang" = "yes"; then
5267 WITH_BUILT_CLANG=1
5268 elif test "$with_built_clang" = "no"; then
5269 WITH_BUILT_CLANG=0
5270 else
5271 if test "$with_built_clang" != "check"; then
5272 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5273 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5274 { (exit 1); exit 1; }; }
5277 if test -f ${srcdir}/tools/clang/README.txt; then
5278 WITH_BUILT_CLANG=1
5282 if ! test -z "$WITH_CLANGPATH"; then
5283 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5284 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5285 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5286 elif test "$WITH_BUILT_CLANG" = "1"; then
5287 { echo "$as_me:$LINENO: result: built" >&5
5288 echo "${ECHO_T}built" >&6; }
5289 else
5290 { echo "$as_me:$LINENO: result: none" >&5
5291 echo "${ECHO_T}none" >&6; }
5293 CLANGPATH=$WITH_CLANGPATH
5295 CLANGXXPATH=$WITH_CLANGXXPATH
5297 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5301 # Check whether --with-optimize-option was given.
5302 if test "${with_optimize_option+set}" = set; then
5303 withval=$with_optimize_option;
5304 else
5305 withval=default
5308 { echo "$as_me:$LINENO: checking optimization flags" >&5
5309 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5310 case "$withval" in
5311 default)
5312 case "$llvm_cv_os_type" in
5313 FreeBSD) optimize_option=-O2 ;;
5314 MingW) optimize_option=-O2 ;;
5315 *) optimize_option=-O3 ;;
5316 esac ;;
5317 *) optimize_option="$withval" ;;
5318 esac
5319 OPTIMIZE_OPTION=$optimize_option
5321 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5322 echo "${ECHO_T}$optimize_option" >&6; }
5325 # Check whether --with-extra-options was given.
5326 if test "${with_extra_options+set}" = set; then
5327 withval=$with_extra_options;
5328 else
5329 withval=default
5332 case "$withval" in
5333 default) EXTRA_OPTIONS= ;;
5334 *) EXTRA_OPTIONS=$withval ;;
5335 esac
5336 EXTRA_OPTIONS=$EXTRA_OPTIONS
5339 # Check whether --enable-bindings was given.
5340 if test "${enable_bindings+set}" = set; then
5341 enableval=$enable_bindings;
5342 else
5343 enableval=default
5346 BINDINGS_TO_BUILD=""
5347 case "$enableval" in
5348 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5349 all ) BINDINGS_TO_BUILD="ocaml" ;;
5350 none | no) BINDINGS_TO_BUILD="" ;;
5351 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5352 case "$a_binding" in
5353 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5354 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5355 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5356 { (exit 1); exit 1; }; } ;;
5357 esac
5358 done
5360 esac
5363 # Check whether --with-ocaml-libdir was given.
5364 if test "${with_ocaml_libdir+set}" = set; then
5365 withval=$with_ocaml_libdir;
5366 else
5367 withval=auto
5370 case "$withval" in
5371 auto) with_ocaml_libdir="$withval" ;;
5372 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5373 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5374 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5375 { (exit 1); exit 1; }; } ;;
5376 esac
5379 # Check whether --with-clang-resource-dir was given.
5380 if test "${with_clang_resource_dir+set}" = set; then
5381 withval=$with_clang_resource_dir;
5382 else
5383 withval=""
5387 cat >>confdefs.h <<_ACEOF
5388 #define CLANG_RESOURCE_DIR "$withval"
5389 _ACEOF
5393 # Check whether --with-c-include-dirs was given.
5394 if test "${with_c_include_dirs+set}" = set; then
5395 withval=$with_c_include_dirs;
5396 else
5397 withval=""
5401 cat >>confdefs.h <<_ACEOF
5402 #define C_INCLUDE_DIRS "$withval"
5403 _ACEOF
5407 # Check whether --with-cxx-include-root was given.
5408 if test "${with_cxx_include_root+set}" = set; then
5409 withval=$with_cxx_include_root;
5410 else
5411 withval=""
5415 cat >>confdefs.h <<_ACEOF
5416 #define CXX_INCLUDE_ROOT "$withval"
5417 _ACEOF
5421 # Check whether --with-cxx-include-arch was given.
5422 if test "${with_cxx_include_arch+set}" = set; then
5423 withval=$with_cxx_include_arch;
5424 else
5425 withval=""
5429 cat >>confdefs.h <<_ACEOF
5430 #define CXX_INCLUDE_ARCH "$withval"
5431 _ACEOF
5435 # Check whether --with-cxx-include-32bit-dir was given.
5436 if test "${with_cxx_include_32bit_dir+set}" = set; then
5437 withval=$with_cxx_include_32bit_dir;
5438 else
5439 withval=""
5443 cat >>confdefs.h <<_ACEOF
5444 #define CXX_INCLUDE_32BIT_DIR "$withval"
5445 _ACEOF
5449 # Check whether --with-cxx-include-64bit-dir was given.
5450 if test "${with_cxx_include_64bit_dir+set}" = set; then
5451 withval=$with_cxx_include_64bit_dir;
5452 else
5453 withval=""
5457 cat >>confdefs.h <<_ACEOF
5458 #define CXX_INCLUDE_64BIT_DIR "$withval"
5459 _ACEOF
5463 # Check whether --with-binutils-include was given.
5464 if test "${with_binutils_include+set}" = set; then
5465 withval=$with_binutils_include;
5466 else
5467 withval=default
5470 case "$withval" in
5471 default) WITH_BINUTILS_INCDIR=default ;;
5472 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5473 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5474 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5475 { (exit 1); exit 1; }; } ;;
5476 esac
5477 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5478 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5480 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5481 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5482 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5483 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5484 { (exit 1); exit 1; }; };
5488 # Check whether --enable-libffi was given.
5489 if test "${enable_libffi+set}" = set; then
5490 enableval=$enable_libffi; case "$enableval" in
5491 yes) llvm_cv_enable_libffi="yes" ;;
5492 no) llvm_cv_enable_libffi="no" ;;
5493 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5495 { (exit 1); exit 1; }; } ;;
5496 esac
5497 else
5498 llvm_cv_enable_libffi=no
5503 ac_ext=c
5504 ac_cpp='$CPP $CPPFLAGS'
5505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5509 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5510 # On Suns, sometimes $CPP names a directory.
5511 if test -n "$CPP" && test -d "$CPP"; then
5512 CPP=
5514 if test -z "$CPP"; then
5515 if test "${ac_cv_prog_CPP+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 # Double quotes because CPP needs to be expanded
5519 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5521 ac_preproc_ok=false
5522 for ac_c_preproc_warn_flag in '' yes
5524 # Use a header file that comes with gcc, so configuring glibc
5525 # with a fresh cross-compiler works.
5526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 # <limits.h> exists even on freestanding compilers.
5528 # On the NeXT, cc -E runs the code through the compiler's parser,
5529 # not just through cpp. "Syntax error" is here to catch this case.
5530 cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h. */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 #ifdef __STDC__
5537 # include <limits.h>
5538 #else
5539 # include <assert.h>
5540 #endif
5541 Syntax error
5542 _ACEOF
5543 if { (ac_try="$ac_cpp conftest.$ac_ext"
5544 case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } >/dev/null; then
5556 if test -s conftest.err; then
5557 ac_cpp_err=$ac_c_preproc_warn_flag
5558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5559 else
5560 ac_cpp_err=
5562 else
5563 ac_cpp_err=yes
5565 if test -z "$ac_cpp_err"; then
5567 else
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5571 # Broken: fails on valid input.
5572 continue
5575 rm -f conftest.err conftest.$ac_ext
5577 # OK, works on sane cases. Now check whether nonexistent headers
5578 # can be detected and how.
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h. */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 #include <ac_nonexistent.h>
5586 _ACEOF
5587 if { (ac_try="$ac_cpp conftest.$ac_ext"
5588 case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591 esac
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } >/dev/null; then
5600 if test -s conftest.err; then
5601 ac_cpp_err=$ac_c_preproc_warn_flag
5602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5603 else
5604 ac_cpp_err=
5606 else
5607 ac_cpp_err=yes
5609 if test -z "$ac_cpp_err"; then
5610 # Broken: success on invalid input.
5611 continue
5612 else
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5616 # Passes both tests.
5617 ac_preproc_ok=:
5618 break
5621 rm -f conftest.err conftest.$ac_ext
5623 done
5624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5625 rm -f conftest.err conftest.$ac_ext
5626 if $ac_preproc_ok; then
5627 break
5630 done
5631 ac_cv_prog_CPP=$CPP
5634 CPP=$ac_cv_prog_CPP
5635 else
5636 ac_cv_prog_CPP=$CPP
5638 { echo "$as_me:$LINENO: result: $CPP" >&5
5639 echo "${ECHO_T}$CPP" >&6; }
5640 ac_preproc_ok=false
5641 for ac_c_preproc_warn_flag in '' yes
5643 # Use a header file that comes with gcc, so configuring glibc
5644 # with a fresh cross-compiler works.
5645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5646 # <limits.h> exists even on freestanding compilers.
5647 # On the NeXT, cc -E runs the code through the compiler's parser,
5648 # not just through cpp. "Syntax error" is here to catch this case.
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h. */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #ifdef __STDC__
5656 # include <limits.h>
5657 #else
5658 # include <assert.h>
5659 #endif
5660 Syntax error
5661 _ACEOF
5662 if { (ac_try="$ac_cpp conftest.$ac_ext"
5663 case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666 esac
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } >/dev/null; then
5675 if test -s conftest.err; then
5676 ac_cpp_err=$ac_c_preproc_warn_flag
5677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5678 else
5679 ac_cpp_err=
5681 else
5682 ac_cpp_err=yes
5684 if test -z "$ac_cpp_err"; then
5686 else
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5690 # Broken: fails on valid input.
5691 continue
5694 rm -f conftest.err conftest.$ac_ext
5696 # OK, works on sane cases. Now check whether nonexistent headers
5697 # can be detected and how.
5698 cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h. */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #include <ac_nonexistent.h>
5705 _ACEOF
5706 if { (ac_try="$ac_cpp conftest.$ac_ext"
5707 case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710 esac
5711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } >/dev/null; then
5719 if test -s conftest.err; then
5720 ac_cpp_err=$ac_c_preproc_warn_flag
5721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5722 else
5723 ac_cpp_err=
5725 else
5726 ac_cpp_err=yes
5728 if test -z "$ac_cpp_err"; then
5729 # Broken: success on invalid input.
5730 continue
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5735 # Passes both tests.
5736 ac_preproc_ok=:
5737 break
5740 rm -f conftest.err conftest.$ac_ext
5742 done
5743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5744 rm -f conftest.err conftest.$ac_ext
5745 if $ac_preproc_ok; then
5747 else
5748 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5749 See \`config.log' for more details." >&5
5750 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5751 See \`config.log' for more details." >&2;}
5752 { (exit 1); exit 1; }; }
5755 ac_ext=c
5756 ac_cpp='$CPP $CPPFLAGS'
5757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5761 ac_ext=c
5762 ac_cpp='$CPP $CPPFLAGS'
5763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5766 if test -n "$ac_tool_prefix"; then
5767 for ac_prog in gcc
5769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5773 if test "${ac_cv_prog_CC+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776 if test -n "$CC"; then
5777 ac_cv_prog_CC="$CC" # Let the user override the test.
5778 else
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5786 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5790 done
5791 done
5792 IFS=$as_save_IFS
5796 CC=$ac_cv_prog_CC
5797 if test -n "$CC"; then
5798 { echo "$as_me:$LINENO: result: $CC" >&5
5799 echo "${ECHO_T}$CC" >&6; }
5800 else
5801 { echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6; }
5806 test -n "$CC" && break
5807 done
5809 if test -z "$CC"; then
5810 ac_ct_CC=$CC
5811 for ac_prog in gcc
5813 # Extract the first word of "$ac_prog", so it can be a program name with args.
5814 set dummy $ac_prog; ac_word=$2
5815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820 if test -n "$ac_ct_CC"; then
5821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5830 ac_cv_prog_ac_ct_CC="$ac_prog"
5831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5834 done
5835 done
5836 IFS=$as_save_IFS
5840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5841 if test -n "$ac_ct_CC"; then
5842 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5843 echo "${ECHO_T}$ac_ct_CC" >&6; }
5844 else
5845 { echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6; }
5850 test -n "$ac_ct_CC" && break
5851 done
5853 if test "x$ac_ct_CC" = x; then
5854 CC=""
5855 else
5856 case $cross_compiling:$ac_tool_warned in
5857 yes:)
5858 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5859 whose name does not start with the host triplet. If you think this
5860 configuration is useful to you, please write to autoconf@gnu.org." >&5
5861 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5862 whose name does not start with the host triplet. If you think this
5863 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5864 ac_tool_warned=yes ;;
5865 esac
5866 CC=$ac_ct_CC
5871 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5872 See \`config.log' for more details." >&5
5873 echo "$as_me: error: no acceptable C compiler found in \$PATH
5874 See \`config.log' for more details." >&2;}
5875 { (exit 1); exit 1; }; }
5877 # Provide some information about the compiler.
5878 echo "$as_me:$LINENO: checking for C compiler version" >&5
5879 ac_compiler=`set X $ac_compile; echo $2`
5880 { (ac_try="$ac_compiler --version >&5"
5881 case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884 esac
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_compiler --version >&5") 2>&5
5887 ac_status=$?
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }
5890 { (ac_try="$ac_compiler -v >&5"
5891 case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894 esac
5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compiler -v >&5") 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }
5900 { (ac_try="$ac_compiler -V >&5"
5901 case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904 esac
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_compiler -V >&5") 2>&5
5907 ac_status=$?
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }
5911 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5912 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5913 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916 cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h. */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5924 main ()
5926 #ifndef __GNUC__
5927 choke me
5928 #endif
5931 return 0;
5933 _ACEOF
5934 rm -f conftest.$ac_objext
5935 if { (ac_try="$ac_compile"
5936 case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939 esac
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } &&
5948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5958 { ac_try='test -s conftest.$ac_objext'
5959 { (case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5962 esac
5963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_try") 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_compiler_gnu=yes
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 ac_compiler_gnu=no
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5980 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5981 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5982 GCC=`test $ac_compiler_gnu = yes && echo yes`
5983 ac_test_CFLAGS=${CFLAGS+set}
5984 ac_save_CFLAGS=$CFLAGS
5985 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5986 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5987 if test "${ac_cv_prog_cc_g+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990 ac_save_c_werror_flag=$ac_c_werror_flag
5991 ac_c_werror_flag=yes
5992 ac_cv_prog_cc_g=no
5993 CFLAGS="-g"
5994 cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h. */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6002 main ()
6006 return 0;
6008 _ACEOF
6009 rm -f conftest.$ac_objext
6010 if { (ac_try="$ac_compile"
6011 case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compile") 2>conftest.er1
6017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6027 esac
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_try") 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_try") 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6043 ac_cv_prog_cc_g=yes
6044 else
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6048 CFLAGS=""
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6057 main ()
6061 return 0;
6063 _ACEOF
6064 rm -f conftest.$ac_objext
6065 if { (ac_try="$ac_compile"
6066 case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6069 esac
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_compile") 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6079 { (case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082 esac
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_try") 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; } &&
6088 { ac_try='test -s conftest.$ac_objext'
6089 { (case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092 esac
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_try") 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 ac_c_werror_flag=$ac_save_c_werror_flag
6104 CFLAGS="-g"
6105 cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h. */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6113 main ()
6117 return 0;
6119 _ACEOF
6120 rm -f conftest.$ac_objext
6121 if { (ac_try="$ac_compile"
6122 case "(($ac_try" in
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6125 esac
6126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6127 (eval "$ac_compile") 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6135 { (case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138 esac
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_try") 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try='test -s conftest.$ac_objext'
6145 { (case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148 esac
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_try") 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_cv_prog_cc_g=yes
6155 else
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 ac_c_werror_flag=$ac_save_c_werror_flag
6171 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6172 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6173 if test "$ac_test_CFLAGS" = set; then
6174 CFLAGS=$ac_save_CFLAGS
6175 elif test $ac_cv_prog_cc_g = yes; then
6176 if test "$GCC" = yes; then
6177 CFLAGS="-g -O2"
6178 else
6179 CFLAGS="-g"
6181 else
6182 if test "$GCC" = yes; then
6183 CFLAGS="-O2"
6184 else
6185 CFLAGS=
6188 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6189 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6190 if test "${ac_cv_prog_cc_c89+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193 ac_cv_prog_cc_c89=no
6194 ac_save_CC=$CC
6195 cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h. */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201 #include <stdarg.h>
6202 #include <stdio.h>
6203 #include <sys/types.h>
6204 #include <sys/stat.h>
6205 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6206 struct buf { int x; };
6207 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6208 static char *e (p, i)
6209 char **p;
6210 int i;
6212 return p[i];
6214 static char *f (char * (*g) (char **, int), char **p, ...)
6216 char *s;
6217 va_list v;
6218 va_start (v,p);
6219 s = g (p, va_arg (v,int));
6220 va_end (v);
6221 return s;
6224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6225 function prototypes and stuff, but not '\xHH' hex character constants.
6226 These don't provoke an error unfortunately, instead are silently treated
6227 as 'x'. The following induces an error, until -std is added to get
6228 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6229 array size at least. It's necessary to write '\x00'==0 to get something
6230 that's true only with -std. */
6231 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6233 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6234 inside strings and character constants. */
6235 #define FOO(x) 'x'
6236 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6238 int test (int i, double x);
6239 struct s1 {int (*f) (int a);};
6240 struct s2 {int (*f) (double a);};
6241 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6242 int argc;
6243 char **argv;
6245 main ()
6247 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6249 return 0;
6251 _ACEOF
6252 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6253 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6255 CC="$ac_save_CC $ac_arg"
6256 rm -f conftest.$ac_objext
6257 if { (ac_try="$ac_compile"
6258 case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } &&
6270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6271 { (case "(($ac_try" in
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6274 esac
6275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276 (eval "$ac_try") 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; } &&
6280 { ac_try='test -s conftest.$ac_objext'
6281 { (case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284 esac
6285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286 (eval "$ac_try") 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 ac_cv_prog_cc_c89=$ac_arg
6291 else
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6298 rm -f core conftest.err conftest.$ac_objext
6299 test "x$ac_cv_prog_cc_c89" != "xno" && break
6300 done
6301 rm -f conftest.$ac_ext
6302 CC=$ac_save_CC
6305 # AC_CACHE_VAL
6306 case "x$ac_cv_prog_cc_c89" in
6308 { echo "$as_me:$LINENO: result: none needed" >&5
6309 echo "${ECHO_T}none needed" >&6; } ;;
6310 xno)
6311 { echo "$as_me:$LINENO: result: unsupported" >&5
6312 echo "${ECHO_T}unsupported" >&6; } ;;
6314 CC="$CC $ac_cv_prog_cc_c89"
6315 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6316 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6317 esac
6320 ac_ext=c
6321 ac_cpp='$CPP $CPPFLAGS'
6322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326 ac_ext=cpp
6327 ac_cpp='$CXXCPP $CPPFLAGS'
6328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6331 if test -z "$CXX"; then
6332 if test -n "$CCC"; then
6333 CXX=$CCC
6334 else
6335 if test -n "$ac_tool_prefix"; then
6336 for ac_prog in g++
6338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342 if test "${ac_cv_prog_CXX+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345 if test -n "$CXX"; then
6346 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6347 else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 break 2
6359 done
6360 done
6361 IFS=$as_save_IFS
6365 CXX=$ac_cv_prog_CXX
6366 if test -n "$CXX"; then
6367 { echo "$as_me:$LINENO: result: $CXX" >&5
6368 echo "${ECHO_T}$CXX" >&6; }
6369 else
6370 { echo "$as_me:$LINENO: result: no" >&5
6371 echo "${ECHO_T}no" >&6; }
6375 test -n "$CXX" && break
6376 done
6378 if test -z "$CXX"; then
6379 ac_ct_CXX=$CXX
6380 for ac_prog in g++
6382 # Extract the first word of "$ac_prog", so it can be a program name with args.
6383 set dummy $ac_prog; ac_word=$2
6384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389 if test -n "$ac_ct_CXX"; then
6390 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6399 ac_cv_prog_ac_ct_CXX="$ac_prog"
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 break 2
6403 done
6404 done
6405 IFS=$as_save_IFS
6409 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6410 if test -n "$ac_ct_CXX"; then
6411 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6412 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6413 else
6414 { echo "$as_me:$LINENO: result: no" >&5
6415 echo "${ECHO_T}no" >&6; }
6419 test -n "$ac_ct_CXX" && break
6420 done
6422 if test "x$ac_ct_CXX" = x; then
6423 CXX="g++"
6424 else
6425 case $cross_compiling:$ac_tool_warned in
6426 yes:)
6427 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6428 whose name does not start with the host triplet. If you think this
6429 configuration is useful to you, please write to autoconf@gnu.org." >&5
6430 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6431 whose name does not start with the host triplet. If you think this
6432 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6433 ac_tool_warned=yes ;;
6434 esac
6435 CXX=$ac_ct_CXX
6441 # Provide some information about the compiler.
6442 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6443 ac_compiler=`set X $ac_compile; echo $2`
6444 { (ac_try="$ac_compiler --version >&5"
6445 case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6448 esac
6449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_compiler --version >&5") 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }
6454 { (ac_try="$ac_compiler -v >&5"
6455 case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compiler -v >&5") 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }
6464 { (ac_try="$ac_compiler -V >&5"
6465 case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468 esac
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_compiler -V >&5") 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }
6475 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6476 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6477 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480 cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h. */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6488 main ()
6490 #ifndef __GNUC__
6491 choke me
6492 #endif
6495 return 0;
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (ac_try="$ac_compile"
6500 case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503 esac
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_compile") 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6522 { ac_try='test -s conftest.$ac_objext'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526 esac
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6532 ac_compiler_gnu=yes
6533 else
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6537 ac_compiler_gnu=no
6540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6544 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6545 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6546 GXX=`test $ac_compiler_gnu = yes && echo yes`
6547 ac_test_CXXFLAGS=${CXXFLAGS+set}
6548 ac_save_CXXFLAGS=$CXXFLAGS
6549 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6550 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6551 if test "${ac_cv_prog_cxx_g+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6555 ac_cxx_werror_flag=yes
6556 ac_cv_prog_cxx_g=no
6557 CXXFLAGS="-g"
6558 cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h. */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6566 main ()
6570 return 0;
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (ac_try="$ac_compile"
6575 case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578 esac
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6588 { (case "(($ac_try" in
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6591 esac
6592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_try") 2>&5
6594 ac_status=$?
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; } &&
6597 { ac_try='test -s conftest.$ac_objext'
6598 { (case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601 esac
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_try") 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 ac_cv_prog_cxx_g=yes
6608 else
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 CXXFLAGS=""
6613 cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h. */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6621 main ()
6625 return 0;
6627 _ACEOF
6628 rm -f conftest.$ac_objext
6629 if { (ac_try="$ac_compile"
6630 case "(($ac_try" in
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6633 esac
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6643 { (case "(($ac_try" in
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6646 esac
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_try") 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; } &&
6652 { ac_try='test -s conftest.$ac_objext'
6653 { (case "(($ac_try" in
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6656 esac
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_try") 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6668 CXXFLAGS="-g"
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h. */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6677 main ()
6681 return 0;
6683 _ACEOF
6684 rm -f conftest.$ac_objext
6685 if { (ac_try="$ac_compile"
6686 case "(($ac_try" in
6687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6688 *) ac_try_echo=$ac_try;;
6689 esac
6690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6691 (eval "$ac_compile") 2>conftest.er1
6692 ac_status=$?
6693 grep -v '^ *+' conftest.er1 >conftest.err
6694 rm -f conftest.er1
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6699 { (case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702 esac
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_try") 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; } &&
6708 { ac_try='test -s conftest.$ac_objext'
6709 { (case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_try") 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6718 ac_cv_prog_cxx_g=yes
6719 else
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6735 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6736 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6737 if test "$ac_test_CXXFLAGS" = set; then
6738 CXXFLAGS=$ac_save_CXXFLAGS
6739 elif test $ac_cv_prog_cxx_g = yes; then
6740 if test "$GXX" = yes; then
6741 CXXFLAGS="-g -O2"
6742 else
6743 CXXFLAGS="-g"
6745 else
6746 if test "$GXX" = yes; then
6747 CXXFLAGS="-O2"
6748 else
6749 CXXFLAGS=
6752 ac_ext=c
6753 ac_cpp='$CPP $CPPFLAGS'
6754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6759 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6760 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6761 if test "${lt_cv_path_NM+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 if test -n "$NM"; then
6765 # Let the user override the test.
6766 lt_cv_path_NM="$NM"
6767 else
6768 lt_nm_to_check="${ac_tool_prefix}nm"
6769 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6770 lt_nm_to_check="$lt_nm_to_check nm"
6772 for lt_tmp_nm in $lt_nm_to_check; do
6773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6774 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6775 IFS="$lt_save_ifs"
6776 test -z "$ac_dir" && ac_dir=.
6777 tmp_nm="$ac_dir/$lt_tmp_nm"
6778 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6779 # Check to see if the nm accepts a BSD-compat flag.
6780 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6781 # nm: unknown option "B" ignored
6782 # Tru64's nm complains that /dev/null is an invalid object file
6783 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6784 */dev/null* | *'Invalid file or object type'*)
6785 lt_cv_path_NM="$tmp_nm -B"
6786 break
6789 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6790 */dev/null*)
6791 lt_cv_path_NM="$tmp_nm -p"
6792 break
6795 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6796 continue # so that we can try to find one that supports BSD flags
6798 esac
6800 esac
6802 done
6803 IFS="$lt_save_ifs"
6804 done
6805 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6808 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6809 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6810 NM="$lt_cv_path_NM"
6814 { echo "$as_me:$LINENO: checking for GNU make" >&5
6815 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6816 if test "${llvm_cv_gnu_make_command+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819 llvm_cv_gnu_make_command=''
6820 for a in "$MAKE" make gmake gnumake ; do
6821 if test -z "$a" ; then continue ; fi ;
6822 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6823 then
6824 llvm_cv_gnu_make_command=$a ;
6825 break;
6827 done
6829 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6830 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6831 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6832 ifGNUmake='' ;
6833 else
6834 ifGNUmake='#' ;
6835 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6836 echo "${ECHO_T}\"Not found\"" >&6; };
6840 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6841 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6842 LN_S=$as_ln_s
6843 if test "$LN_S" = "ln -s"; then
6844 { echo "$as_me:$LINENO: result: yes" >&5
6845 echo "${ECHO_T}yes" >&6; }
6846 else
6847 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6848 echo "${ECHO_T}no, using $LN_S" >&6; }
6851 # Extract the first word of "cmp", so it can be a program name with args.
6852 set dummy cmp; ac_word=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_path_CMP+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858 case $CMP in
6859 [\\/]* | ?:[\\/]*)
6860 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6874 done
6875 done
6876 IFS=$as_save_IFS
6878 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6880 esac
6882 CMP=$ac_cv_path_CMP
6883 if test -n "$CMP"; then
6884 { echo "$as_me:$LINENO: result: $CMP" >&5
6885 echo "${ECHO_T}$CMP" >&6; }
6886 else
6887 { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6892 # Extract the first word of "cp", so it can be a program name with args.
6893 set dummy cp; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_path_CP+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899 case $CP in
6900 [\\/]* | ?:[\\/]*)
6901 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 break 2
6915 done
6916 done
6917 IFS=$as_save_IFS
6919 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6921 esac
6923 CP=$ac_cv_path_CP
6924 if test -n "$CP"; then
6925 { echo "$as_me:$LINENO: result: $CP" >&5
6926 echo "${ECHO_T}$CP" >&6; }
6927 else
6928 { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6933 # Extract the first word of "date", so it can be a program name with args.
6934 set dummy date; ac_word=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_path_DATE+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940 case $DATE in
6941 [\\/]* | ?:[\\/]*)
6942 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6956 done
6957 done
6958 IFS=$as_save_IFS
6960 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6962 esac
6964 DATE=$ac_cv_path_DATE
6965 if test -n "$DATE"; then
6966 { echo "$as_me:$LINENO: result: $DATE" >&5
6967 echo "${ECHO_T}$DATE" >&6; }
6968 else
6969 { echo "$as_me:$LINENO: result: no" >&5
6970 echo "${ECHO_T}no" >&6; }
6974 # Extract the first word of "find", so it can be a program name with args.
6975 set dummy find; ac_word=$2
6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978 if test "${ac_cv_path_FIND+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981 case $FIND in
6982 [\\/]* | ?:[\\/]*)
6983 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6997 done
6998 done
6999 IFS=$as_save_IFS
7001 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7003 esac
7005 FIND=$ac_cv_path_FIND
7006 if test -n "$FIND"; then
7007 { echo "$as_me:$LINENO: result: $FIND" >&5
7008 echo "${ECHO_T}$FIND" >&6; }
7009 else
7010 { echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6; }
7015 # Extract the first word of "grep", so it can be a program name with args.
7016 set dummy grep; ac_word=$2
7017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019 if test "${ac_cv_path_GREP+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 case $GREP in
7023 [\\/]* | ?:[\\/]*)
7024 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7034 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 break 2
7038 done
7039 done
7040 IFS=$as_save_IFS
7042 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7044 esac
7046 GREP=$ac_cv_path_GREP
7047 if test -n "$GREP"; then
7048 { echo "$as_me:$LINENO: result: $GREP" >&5
7049 echo "${ECHO_T}$GREP" >&6; }
7050 else
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7056 # Extract the first word of "mkdir", so it can be a program name with args.
7057 set dummy mkdir; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_path_MKDIR+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063 case $MKDIR in
7064 [\\/]* | ?:[\\/]*)
7065 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7079 done
7080 done
7081 IFS=$as_save_IFS
7083 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7085 esac
7087 MKDIR=$ac_cv_path_MKDIR
7088 if test -n "$MKDIR"; then
7089 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7090 echo "${ECHO_T}$MKDIR" >&6; }
7091 else
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7097 # Extract the first word of "mv", so it can be a program name with args.
7098 set dummy mv; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_MV+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104 case $MV in
7105 [\\/]* | ?:[\\/]*)
7106 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7120 done
7121 done
7122 IFS=$as_save_IFS
7124 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7126 esac
7128 MV=$ac_cv_path_MV
7129 if test -n "$MV"; then
7130 { echo "$as_me:$LINENO: result: $MV" >&5
7131 echo "${ECHO_T}$MV" >&6; }
7132 else
7133 { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7138 if test -n "$ac_tool_prefix"; then
7139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7143 if test "${ac_cv_prog_RANLIB+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146 if test -n "$RANLIB"; then
7147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7160 done
7161 done
7162 IFS=$as_save_IFS
7166 RANLIB=$ac_cv_prog_RANLIB
7167 if test -n "$RANLIB"; then
7168 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7169 echo "${ECHO_T}$RANLIB" >&6; }
7170 else
7171 { echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6; }
7177 if test -z "$ac_cv_prog_RANLIB"; then
7178 ac_ct_RANLIB=$RANLIB
7179 # Extract the first word of "ranlib", so it can be a program name with args.
7180 set dummy ranlib; ac_word=$2
7181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186 if test -n "$ac_ct_RANLIB"; then
7187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7188 else
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196 ac_cv_prog_ac_ct_RANLIB="ranlib"
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7200 done
7201 done
7202 IFS=$as_save_IFS
7206 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7207 if test -n "$ac_ct_RANLIB"; then
7208 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7209 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7210 else
7211 { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7215 if test "x$ac_ct_RANLIB" = x; then
7216 RANLIB=":"
7217 else
7218 case $cross_compiling:$ac_tool_warned in
7219 yes:)
7220 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7221 whose name does not start with the host triplet. If you think this
7222 configuration is useful to you, please write to autoconf@gnu.org." >&5
7223 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7224 whose name does not start with the host triplet. If you think this
7225 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7226 ac_tool_warned=yes ;;
7227 esac
7228 RANLIB=$ac_ct_RANLIB
7230 else
7231 RANLIB="$ac_cv_prog_RANLIB"
7234 if test -n "$ac_tool_prefix"; then
7235 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7236 set dummy ${ac_tool_prefix}ar; ac_word=$2
7237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7239 if test "${ac_cv_prog_AR+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 if test -n "$AR"; then
7243 ac_cv_prog_AR="$AR" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7252 ac_cv_prog_AR="${ac_tool_prefix}ar"
7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7256 done
7257 done
7258 IFS=$as_save_IFS
7262 AR=$ac_cv_prog_AR
7263 if test -n "$AR"; then
7264 { echo "$as_me:$LINENO: result: $AR" >&5
7265 echo "${ECHO_T}$AR" >&6; }
7266 else
7267 { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7273 if test -z "$ac_cv_prog_AR"; then
7274 ac_ct_AR=$AR
7275 # Extract the first word of "ar", so it can be a program name with args.
7276 set dummy ar; ac_word=$2
7277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7279 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282 if test -n "$ac_ct_AR"; then
7283 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7284 else
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7292 ac_cv_prog_ac_ct_AR="ar"
7293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 break 2
7296 done
7297 done
7298 IFS=$as_save_IFS
7302 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7303 if test -n "$ac_ct_AR"; then
7304 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7305 echo "${ECHO_T}$ac_ct_AR" >&6; }
7306 else
7307 { echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6; }
7311 if test "x$ac_ct_AR" = x; then
7312 AR="false"
7313 else
7314 case $cross_compiling:$ac_tool_warned in
7315 yes:)
7316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7317 whose name does not start with the host triplet. If you think this
7318 configuration is useful to you, please write to autoconf@gnu.org." >&5
7319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7320 whose name does not start with the host triplet. If you think this
7321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7322 ac_tool_warned=yes ;;
7323 esac
7324 AR=$ac_ct_AR
7326 else
7327 AR="$ac_cv_prog_AR"
7330 # Extract the first word of "rm", so it can be a program name with args.
7331 set dummy rm; ac_word=$2
7332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7334 if test "${ac_cv_path_RM+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337 case $RM in
7338 [\\/]* | ?:[\\/]*)
7339 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7353 done
7354 done
7355 IFS=$as_save_IFS
7357 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7359 esac
7361 RM=$ac_cv_path_RM
7362 if test -n "$RM"; then
7363 { echo "$as_me:$LINENO: result: $RM" >&5
7364 echo "${ECHO_T}$RM" >&6; }
7365 else
7366 { echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6; }
7371 # Extract the first word of "sed", so it can be a program name with args.
7372 set dummy sed; ac_word=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_path_SED+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378 case $SED in
7379 [\\/]* | ?:[\\/]*)
7380 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7390 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7394 done
7395 done
7396 IFS=$as_save_IFS
7398 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7400 esac
7402 SED=$ac_cv_path_SED
7403 if test -n "$SED"; then
7404 { echo "$as_me:$LINENO: result: $SED" >&5
7405 echo "${ECHO_T}$SED" >&6; }
7406 else
7407 { echo "$as_me:$LINENO: result: no" >&5
7408 echo "${ECHO_T}no" >&6; }
7412 # Extract the first word of "tar", so it can be a program name with args.
7413 set dummy tar; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_TAR+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419 case $TAR in
7420 [\\/]* | ?:[\\/]*)
7421 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 break 2
7435 done
7436 done
7437 IFS=$as_save_IFS
7439 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7441 esac
7443 TAR=$ac_cv_path_TAR
7444 if test -n "$TAR"; then
7445 { echo "$as_me:$LINENO: result: $TAR" >&5
7446 echo "${ECHO_T}$TAR" >&6; }
7447 else
7448 { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7453 # Extract the first word of "pwd", so it can be a program name with args.
7454 set dummy pwd; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_path_BINPWD+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460 case $BINPWD in
7461 [\\/]* | ?:[\\/]*)
7462 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7476 done
7477 done
7478 IFS=$as_save_IFS
7480 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7482 esac
7484 BINPWD=$ac_cv_path_BINPWD
7485 if test -n "$BINPWD"; then
7486 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7487 echo "${ECHO_T}$BINPWD" >&6; }
7488 else
7489 { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7495 # Extract the first word of "Graphviz", so it can be a program name with args.
7496 set dummy Graphviz; ac_word=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502 case $GRAPHVIZ in
7503 [\\/]* | ?:[\\/]*)
7504 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 break 2
7518 done
7519 done
7520 IFS=$as_save_IFS
7522 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7524 esac
7526 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7527 if test -n "$GRAPHVIZ"; then
7528 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7529 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7530 else
7531 { echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6; }
7536 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7538 cat >>confdefs.h <<\_ACEOF
7539 #define HAVE_GRAPHVIZ 1
7540 _ACEOF
7542 if test "$llvm_cv_os_type" = "MingW" ; then
7543 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7546 cat >>confdefs.h <<_ACEOF
7547 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7548 _ACEOF
7551 # Extract the first word of "dot", so it can be a program name with args.
7552 set dummy dot; ac_word=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_path_DOT+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558 case $DOT in
7559 [\\/]* | ?:[\\/]*)
7560 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7574 done
7575 done
7576 IFS=$as_save_IFS
7578 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7580 esac
7582 DOT=$ac_cv_path_DOT
7583 if test -n "$DOT"; then
7584 { echo "$as_me:$LINENO: result: $DOT" >&5
7585 echo "${ECHO_T}$DOT" >&6; }
7586 else
7587 { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7592 if test "$DOT" != "echo dot" ; then
7594 cat >>confdefs.h <<\_ACEOF
7595 #define HAVE_DOT 1
7596 _ACEOF
7598 if test "$llvm_cv_os_type" = "MingW" ; then
7599 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7602 cat >>confdefs.h <<_ACEOF
7603 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7604 _ACEOF
7607 # Extract the first word of "fdp", so it can be a program name with args.
7608 set dummy fdp; ac_word=$2
7609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611 if test "${ac_cv_path_FDP+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614 case $FDP in
7615 [\\/]* | ?:[\\/]*)
7616 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7622 IFS=$as_save_IFS
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7626 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 break 2
7630 done
7631 done
7632 IFS=$as_save_IFS
7634 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7636 esac
7638 FDP=$ac_cv_path_FDP
7639 if test -n "$FDP"; then
7640 { echo "$as_me:$LINENO: result: $FDP" >&5
7641 echo "${ECHO_T}$FDP" >&6; }
7642 else
7643 { echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6; }
7648 if test "$FDP" != "echo fdp" ; then
7650 cat >>confdefs.h <<\_ACEOF
7651 #define HAVE_FDP 1
7652 _ACEOF
7654 if test "$llvm_cv_os_type" = "MingW" ; then
7655 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7658 cat >>confdefs.h <<_ACEOF
7659 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7660 _ACEOF
7663 # Extract the first word of "neato", so it can be a program name with args.
7664 set dummy neato; ac_word=$2
7665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_NEATO+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670 case $NEATO in
7671 [\\/]* | ?:[\\/]*)
7672 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 break 2
7686 done
7687 done
7688 IFS=$as_save_IFS
7690 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7692 esac
7694 NEATO=$ac_cv_path_NEATO
7695 if test -n "$NEATO"; then
7696 { echo "$as_me:$LINENO: result: $NEATO" >&5
7697 echo "${ECHO_T}$NEATO" >&6; }
7698 else
7699 { echo "$as_me:$LINENO: result: no" >&5
7700 echo "${ECHO_T}no" >&6; }
7704 if test "$NEATO" != "echo neato" ; then
7706 cat >>confdefs.h <<\_ACEOF
7707 #define HAVE_NEATO 1
7708 _ACEOF
7710 if test "$llvm_cv_os_type" = "MingW" ; then
7711 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7714 cat >>confdefs.h <<_ACEOF
7715 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7716 _ACEOF
7719 # Extract the first word of "twopi", so it can be a program name with args.
7720 set dummy twopi; ac_word=$2
7721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723 if test "${ac_cv_path_TWOPI+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726 case $TWOPI in
7727 [\\/]* | ?:[\\/]*)
7728 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7738 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 break 2
7742 done
7743 done
7744 IFS=$as_save_IFS
7746 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7748 esac
7750 TWOPI=$ac_cv_path_TWOPI
7751 if test -n "$TWOPI"; then
7752 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7753 echo "${ECHO_T}$TWOPI" >&6; }
7754 else
7755 { echo "$as_me:$LINENO: result: no" >&5
7756 echo "${ECHO_T}no" >&6; }
7760 if test "$TWOPI" != "echo twopi" ; then
7762 cat >>confdefs.h <<\_ACEOF
7763 #define HAVE_TWOPI 1
7764 _ACEOF
7766 if test "$llvm_cv_os_type" = "MingW" ; then
7767 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7770 cat >>confdefs.h <<_ACEOF
7771 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7772 _ACEOF
7775 # Extract the first word of "circo", so it can be a program name with args.
7776 set dummy circo; ac_word=$2
7777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7779 if test "${ac_cv_path_CIRCO+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782 case $CIRCO in
7783 [\\/]* | ?:[\\/]*)
7784 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7794 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7798 done
7799 done
7800 IFS=$as_save_IFS
7802 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7804 esac
7806 CIRCO=$ac_cv_path_CIRCO
7807 if test -n "$CIRCO"; then
7808 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7809 echo "${ECHO_T}$CIRCO" >&6; }
7810 else
7811 { echo "$as_me:$LINENO: result: no" >&5
7812 echo "${ECHO_T}no" >&6; }
7816 if test "$CIRCO" != "echo circo" ; then
7818 cat >>confdefs.h <<\_ACEOF
7819 #define HAVE_CIRCO 1
7820 _ACEOF
7822 if test "$llvm_cv_os_type" = "MingW" ; then
7823 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7826 cat >>confdefs.h <<_ACEOF
7827 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7828 _ACEOF
7831 for ac_prog in gv gsview32
7833 # Extract the first word of "$ac_prog", so it can be a program name with args.
7834 set dummy $ac_prog; ac_word=$2
7835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7837 if test "${ac_cv_path_GV+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840 case $GV in
7841 [\\/]* | ?:[\\/]*)
7842 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7852 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7856 done
7857 done
7858 IFS=$as_save_IFS
7861 esac
7863 GV=$ac_cv_path_GV
7864 if test -n "$GV"; then
7865 { echo "$as_me:$LINENO: result: $GV" >&5
7866 echo "${ECHO_T}$GV" >&6; }
7867 else
7868 { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7873 test -n "$GV" && break
7874 done
7875 test -n "$GV" || GV="echo gv"
7877 if test "$GV" != "echo gv" ; then
7879 cat >>confdefs.h <<\_ACEOF
7880 #define HAVE_GV 1
7881 _ACEOF
7883 if test "$llvm_cv_os_type" = "MingW" ; then
7884 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7887 cat >>confdefs.h <<_ACEOF
7888 #define LLVM_PATH_GV "$GV${EXEEXT}"
7889 _ACEOF
7892 # Extract the first word of "dotty", so it can be a program name with args.
7893 set dummy dotty; ac_word=$2
7894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7896 if test "${ac_cv_path_DOTTY+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899 case $DOTTY in
7900 [\\/]* | ?:[\\/]*)
7901 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 for as_dir in $PATH
7907 IFS=$as_save_IFS
7908 test -z "$as_dir" && as_dir=.
7909 for ac_exec_ext in '' $ac_executable_extensions; do
7910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7911 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7913 break 2
7915 done
7916 done
7917 IFS=$as_save_IFS
7919 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7921 esac
7923 DOTTY=$ac_cv_path_DOTTY
7924 if test -n "$DOTTY"; then
7925 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7926 echo "${ECHO_T}$DOTTY" >&6; }
7927 else
7928 { echo "$as_me:$LINENO: result: no" >&5
7929 echo "${ECHO_T}no" >&6; }
7933 if test "$DOTTY" != "echo dotty" ; then
7935 cat >>confdefs.h <<\_ACEOF
7936 #define HAVE_DOTTY 1
7937 _ACEOF
7939 if test "$llvm_cv_os_type" = "MingW" ; then
7940 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7943 cat >>confdefs.h <<_ACEOF
7944 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7945 _ACEOF
7948 # Extract the first word of "xdot.py", so it can be a program name with args.
7949 set dummy xdot.py; ac_word=$2
7950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7952 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955 case $XDOT_PY in
7956 [\\/]* | ?:[\\/]*)
7957 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7971 done
7972 done
7973 IFS=$as_save_IFS
7975 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7977 esac
7979 XDOT_PY=$ac_cv_path_XDOT_PY
7980 if test -n "$XDOT_PY"; then
7981 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7982 echo "${ECHO_T}$XDOT_PY" >&6; }
7983 else
7984 { echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6; }
7989 if test "$XDOT_PY" != "echo xdot.py" ; then
7991 cat >>confdefs.h <<\_ACEOF
7992 #define HAVE_XDOT_PY 1
7993 _ACEOF
7995 if test "$llvm_cv_os_type" = "MingW" ; then
7996 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7999 cat >>confdefs.h <<_ACEOF
8000 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8001 _ACEOF
8006 # Extract the first word of "perl", so it can be a program name with args.
8007 set dummy perl; ac_word=$2
8008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010 if test "${ac_cv_path_PERL+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013 case $PERL in
8014 [\\/]* | ?:[\\/]*)
8015 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8025 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8029 done
8030 done
8031 IFS=$as_save_IFS
8033 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8035 esac
8037 PERL=$ac_cv_path_PERL
8038 if test -n "$PERL"; then
8039 { echo "$as_me:$LINENO: result: $PERL" >&5
8040 echo "${ECHO_T}$PERL" >&6; }
8041 else
8042 { echo "$as_me:$LINENO: result: no" >&5
8043 echo "${ECHO_T}no" >&6; }
8047 if test "$PERL" != "none"; then
8048 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8049 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8050 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8051 { echo "$as_me:$LINENO: result: yes" >&5
8052 echo "${ECHO_T}yes" >&6; }
8053 else
8054 PERL=none
8055 { echo "$as_me:$LINENO: result: not found" >&5
8056 echo "${ECHO_T}not found" >&6; }
8061 if test x"$PERL" = xnone; then
8062 HAVE_PERL=0
8064 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8065 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8066 { (exit 1); exit 1; }; }
8067 else
8068 HAVE_PERL=1
8072 # Find a good install program. We prefer a C program (faster),
8073 # so one script is as good as another. But avoid the broken or
8074 # incompatible versions:
8075 # SysV /etc/install, /usr/sbin/install
8076 # SunOS /usr/etc/install
8077 # IRIX /sbin/install
8078 # AIX /bin/install
8079 # AmigaOS /C/install, which installs bootblocks on floppy discs
8080 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8081 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8082 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8083 # OS/2's system install, which has a completely different semantic
8084 # ./install, which can be erroneously created by make from ./install.sh.
8085 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8086 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8087 if test -z "$INSTALL"; then
8088 if test "${ac_cv_path_install+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 # Account for people who put trailing slashes in PATH elements.
8097 case $as_dir/ in
8098 ./ | .// | /cC/* | \
8099 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8100 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8101 /usr/ucb/* ) ;;
8103 # OSF1 and SCO ODT 3.0 have their own names for install.
8104 # Don't use installbsd from OSF since it installs stuff as root
8105 # by default.
8106 for ac_prog in ginstall scoinst install; do
8107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8109 if test $ac_prog = install &&
8110 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8111 # AIX install. It has an incompatible calling convention.
8113 elif test $ac_prog = install &&
8114 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8115 # program-specific install script used by HP pwplus--don't use.
8117 else
8118 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8119 break 3
8122 done
8123 done
8125 esac
8126 done
8127 IFS=$as_save_IFS
8131 if test "${ac_cv_path_install+set}" = set; then
8132 INSTALL=$ac_cv_path_install
8133 else
8134 # As a last resort, use the slow shell script. Don't cache a
8135 # value for INSTALL within a source directory, because that will
8136 # break other packages using the cache if that directory is
8137 # removed, or if the value is a relative name.
8138 INSTALL=$ac_install_sh
8141 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8142 echo "${ECHO_T}$INSTALL" >&6; }
8144 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8145 # It thinks the first close brace ends the variable substitution.
8146 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8148 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8150 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8152 case "$INSTALL" in
8153 [\\/$]* | ?:[\\/]* ) ;;
8154 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8155 esac
8157 # Extract the first word of "bzip2", so it can be a program name with args.
8158 set dummy bzip2; ac_word=$2
8159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8161 if test "${ac_cv_path_BZIP2+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164 case $BZIP2 in
8165 [\\/]* | ?:[\\/]*)
8166 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8176 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 break 2
8180 done
8181 done
8182 IFS=$as_save_IFS
8185 esac
8187 BZIP2=$ac_cv_path_BZIP2
8188 if test -n "$BZIP2"; then
8189 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8190 echo "${ECHO_T}$BZIP2" >&6; }
8191 else
8192 { echo "$as_me:$LINENO: result: no" >&5
8193 echo "${ECHO_T}no" >&6; }
8197 # Extract the first word of "cat", so it can be a program name with args.
8198 set dummy cat; ac_word=$2
8199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8201 if test "${ac_cv_path_CAT+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204 case $CAT in
8205 [\\/]* | ?:[\\/]*)
8206 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8220 done
8221 done
8222 IFS=$as_save_IFS
8225 esac
8227 CAT=$ac_cv_path_CAT
8228 if test -n "$CAT"; then
8229 { echo "$as_me:$LINENO: result: $CAT" >&5
8230 echo "${ECHO_T}$CAT" >&6; }
8231 else
8232 { echo "$as_me:$LINENO: result: no" >&5
8233 echo "${ECHO_T}no" >&6; }
8237 # Extract the first word of "doxygen", so it can be a program name with args.
8238 set dummy doxygen; ac_word=$2
8239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8241 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 else
8244 case $DOXYGEN in
8245 [\\/]* | ?:[\\/]*)
8246 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 for as_dir in $PATH
8252 IFS=$as_save_IFS
8253 test -z "$as_dir" && as_dir=.
8254 for ac_exec_ext in '' $ac_executable_extensions; do
8255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8256 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8258 break 2
8260 done
8261 done
8262 IFS=$as_save_IFS
8265 esac
8267 DOXYGEN=$ac_cv_path_DOXYGEN
8268 if test -n "$DOXYGEN"; then
8269 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8270 echo "${ECHO_T}$DOXYGEN" >&6; }
8271 else
8272 { echo "$as_me:$LINENO: result: no" >&5
8273 echo "${ECHO_T}no" >&6; }
8277 # Extract the first word of "groff", so it can be a program name with args.
8278 set dummy groff; ac_word=$2
8279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8281 if test "${ac_cv_path_GROFF+set}" = set; then
8282 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 else
8284 case $GROFF in
8285 [\\/]* | ?:[\\/]*)
8286 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8296 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 break 2
8300 done
8301 done
8302 IFS=$as_save_IFS
8305 esac
8307 GROFF=$ac_cv_path_GROFF
8308 if test -n "$GROFF"; then
8309 { echo "$as_me:$LINENO: result: $GROFF" >&5
8310 echo "${ECHO_T}$GROFF" >&6; }
8311 else
8312 { echo "$as_me:$LINENO: result: no" >&5
8313 echo "${ECHO_T}no" >&6; }
8317 # Extract the first word of "gzip", so it can be a program name with args.
8318 set dummy gzip; ac_word=$2
8319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8321 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324 case $GZIPBIN in
8325 [\\/]* | ?:[\\/]*)
8326 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 for as_dir in $PATH
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8336 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 break 2
8340 done
8341 done
8342 IFS=$as_save_IFS
8345 esac
8347 GZIPBIN=$ac_cv_path_GZIPBIN
8348 if test -n "$GZIPBIN"; then
8349 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8350 echo "${ECHO_T}$GZIPBIN" >&6; }
8351 else
8352 { echo "$as_me:$LINENO: result: no" >&5
8353 echo "${ECHO_T}no" >&6; }
8357 # Extract the first word of "pod2html", so it can be a program name with args.
8358 set dummy pod2html; ac_word=$2
8359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8361 if test "${ac_cv_path_POD2HTML+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364 case $POD2HTML in
8365 [\\/]* | ?:[\\/]*)
8366 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 for as_dir in $PATH
8372 IFS=$as_save_IFS
8373 test -z "$as_dir" && as_dir=.
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8376 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 break 2
8380 done
8381 done
8382 IFS=$as_save_IFS
8385 esac
8387 POD2HTML=$ac_cv_path_POD2HTML
8388 if test -n "$POD2HTML"; then
8389 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8390 echo "${ECHO_T}$POD2HTML" >&6; }
8391 else
8392 { echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6; }
8397 # Extract the first word of "pod2man", so it can be a program name with args.
8398 set dummy pod2man; ac_word=$2
8399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8401 if test "${ac_cv_path_POD2MAN+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404 case $POD2MAN in
8405 [\\/]* | ?:[\\/]*)
8406 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 for as_dir in $PATH
8412 IFS=$as_save_IFS
8413 test -z "$as_dir" && as_dir=.
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8416 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8418 break 2
8420 done
8421 done
8422 IFS=$as_save_IFS
8425 esac
8427 POD2MAN=$ac_cv_path_POD2MAN
8428 if test -n "$POD2MAN"; then
8429 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8430 echo "${ECHO_T}$POD2MAN" >&6; }
8431 else
8432 { echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6; }
8437 # Extract the first word of "pdfroff", so it can be a program name with args.
8438 set dummy pdfroff; ac_word=$2
8439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8441 if test "${ac_cv_path_PDFROFF+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 else
8444 case $PDFROFF in
8445 [\\/]* | ?:[\\/]*)
8446 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 break 2
8460 done
8461 done
8462 IFS=$as_save_IFS
8465 esac
8467 PDFROFF=$ac_cv_path_PDFROFF
8468 if test -n "$PDFROFF"; then
8469 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8470 echo "${ECHO_T}$PDFROFF" >&6; }
8471 else
8472 { echo "$as_me:$LINENO: result: no" >&5
8473 echo "${ECHO_T}no" >&6; }
8477 # Extract the first word of "runtest", so it can be a program name with args.
8478 set dummy runtest; ac_word=$2
8479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8481 if test "${ac_cv_path_RUNTEST+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 else
8484 case $RUNTEST in
8485 [\\/]* | ?:[\\/]*)
8486 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8492 IFS=$as_save_IFS
8493 test -z "$as_dir" && as_dir=.
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8496 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 break 2
8500 done
8501 done
8502 IFS=$as_save_IFS
8505 esac
8507 RUNTEST=$ac_cv_path_RUNTEST
8508 if test -n "$RUNTEST"; then
8509 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8510 echo "${ECHO_T}$RUNTEST" >&6; }
8511 else
8512 { echo "$as_me:$LINENO: result: no" >&5
8513 echo "${ECHO_T}no" >&6; }
8518 no_itcl=true
8519 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8520 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8522 # Check whether --with-tclinclude was given.
8523 if test "${with_tclinclude+set}" = set; then
8524 withval=$with_tclinclude; with_tclinclude=${withval}
8525 else
8526 with_tclinclude=''
8529 if test "${ac_cv_path_tclsh+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8533 if test x"${with_tclinclude}" != x ; then
8534 if test -f ${with_tclinclude}/tclsh ; then
8535 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8536 elif test -f ${with_tclinclude}/src/tclsh ; then
8537 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8538 else
8539 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8540 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8541 { (exit 1); exit 1; }; }
8547 if test x"${ac_cv_path_tclsh}" = x ; then
8548 { echo "$as_me:$LINENO: result: none" >&5
8549 echo "${ECHO_T}none" >&6; }
8550 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
8552 # Extract the first word of "$ac_prog", so it can be a program name with args.
8553 set dummy $ac_prog; ac_word=$2
8554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8556 if test "${ac_cv_path_TCLSH+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559 case $TCLSH in
8560 [\\/]* | ?:[\\/]*)
8561 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565 for as_dir in $PATH
8567 IFS=$as_save_IFS
8568 test -z "$as_dir" && as_dir=.
8569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8571 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 break 2
8575 done
8576 done
8577 IFS=$as_save_IFS
8580 esac
8582 TCLSH=$ac_cv_path_TCLSH
8583 if test -n "$TCLSH"; then
8584 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8585 echo "${ECHO_T}$TCLSH" >&6; }
8586 else
8587 { echo "$as_me:$LINENO: result: no" >&5
8588 echo "${ECHO_T}no" >&6; }
8592 test -n "$TCLSH" && break
8593 done
8595 if test x"${TCLSH}" = x ; then
8596 ac_cv_path_tclsh='';
8597 else
8598 ac_cv_path_tclsh="${TCLSH}";
8600 else
8601 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8602 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8603 TCLSH="${ac_cv_path_tclsh}"
8607 # Extract the first word of "zip", so it can be a program name with args.
8608 set dummy zip; ac_word=$2
8609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8611 if test "${ac_cv_path_ZIP+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614 case $ZIP in
8615 [\\/]* | ?:[\\/]*)
8616 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620 for as_dir in $PATH
8622 IFS=$as_save_IFS
8623 test -z "$as_dir" && as_dir=.
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8626 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8628 break 2
8630 done
8631 done
8632 IFS=$as_save_IFS
8635 esac
8637 ZIP=$ac_cv_path_ZIP
8638 if test -n "$ZIP"; then
8639 { echo "$as_me:$LINENO: result: $ZIP" >&5
8640 echo "${ECHO_T}$ZIP" >&6; }
8641 else
8642 { echo "$as_me:$LINENO: result: no" >&5
8643 echo "${ECHO_T}no" >&6; }
8647 for ac_prog in ocamlc
8649 # Extract the first word of "$ac_prog", so it can be a program name with args.
8650 set dummy $ac_prog; ac_word=$2
8651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8653 if test "${ac_cv_path_OCAMLC+set}" = set; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8655 else
8656 case $OCAMLC in
8657 [\\/]* | ?:[\\/]*)
8658 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 for as_dir in $PATH
8664 IFS=$as_save_IFS
8665 test -z "$as_dir" && as_dir=.
8666 for ac_exec_ext in '' $ac_executable_extensions; do
8667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8668 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 break 2
8672 done
8673 done
8674 IFS=$as_save_IFS
8677 esac
8679 OCAMLC=$ac_cv_path_OCAMLC
8680 if test -n "$OCAMLC"; then
8681 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8682 echo "${ECHO_T}$OCAMLC" >&6; }
8683 else
8684 { echo "$as_me:$LINENO: result: no" >&5
8685 echo "${ECHO_T}no" >&6; }
8689 test -n "$OCAMLC" && break
8690 done
8692 for ac_prog in ocamlopt
8694 # Extract the first word of "$ac_prog", so it can be a program name with args.
8695 set dummy $ac_prog; ac_word=$2
8696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8698 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 else
8701 case $OCAMLOPT in
8702 [\\/]* | ?:[\\/]*)
8703 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707 for as_dir in $PATH
8709 IFS=$as_save_IFS
8710 test -z "$as_dir" && as_dir=.
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8713 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 break 2
8717 done
8718 done
8719 IFS=$as_save_IFS
8722 esac
8724 OCAMLOPT=$ac_cv_path_OCAMLOPT
8725 if test -n "$OCAMLOPT"; then
8726 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8727 echo "${ECHO_T}$OCAMLOPT" >&6; }
8728 else
8729 { echo "$as_me:$LINENO: result: no" >&5
8730 echo "${ECHO_T}no" >&6; }
8734 test -n "$OCAMLOPT" && break
8735 done
8737 for ac_prog in ocamldep
8739 # Extract the first word of "$ac_prog", so it can be a program name with args.
8740 set dummy $ac_prog; ac_word=$2
8741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8743 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746 case $OCAMLDEP in
8747 [\\/]* | ?:[\\/]*)
8748 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 for as_dir in $PATH
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8758 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8760 break 2
8762 done
8763 done
8764 IFS=$as_save_IFS
8767 esac
8769 OCAMLDEP=$ac_cv_path_OCAMLDEP
8770 if test -n "$OCAMLDEP"; then
8771 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8772 echo "${ECHO_T}$OCAMLDEP" >&6; }
8773 else
8774 { echo "$as_me:$LINENO: result: no" >&5
8775 echo "${ECHO_T}no" >&6; }
8779 test -n "$OCAMLDEP" && break
8780 done
8782 for ac_prog in ocamldoc
8784 # Extract the first word of "$ac_prog", so it can be a program name with args.
8785 set dummy $ac_prog; ac_word=$2
8786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8788 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 else
8791 case $OCAMLDOC in
8792 [\\/]* | ?:[\\/]*)
8793 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8803 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 break 2
8807 done
8808 done
8809 IFS=$as_save_IFS
8812 esac
8814 OCAMLDOC=$ac_cv_path_OCAMLDOC
8815 if test -n "$OCAMLDOC"; then
8816 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8817 echo "${ECHO_T}$OCAMLDOC" >&6; }
8818 else
8819 { echo "$as_me:$LINENO: result: no" >&5
8820 echo "${ECHO_T}no" >&6; }
8824 test -n "$OCAMLDOC" && break
8825 done
8827 for ac_prog in gas as
8829 # Extract the first word of "$ac_prog", so it can be a program name with args.
8830 set dummy $ac_prog; ac_word=$2
8831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8833 if test "${ac_cv_path_GAS+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836 case $GAS in
8837 [\\/]* | ?:[\\/]*)
8838 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8848 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8850 break 2
8852 done
8853 done
8854 IFS=$as_save_IFS
8857 esac
8859 GAS=$ac_cv_path_GAS
8860 if test -n "$GAS"; then
8861 { echo "$as_me:$LINENO: result: $GAS" >&5
8862 echo "${ECHO_T}$GAS" >&6; }
8863 else
8864 { echo "$as_me:$LINENO: result: no" >&5
8865 echo "${ECHO_T}no" >&6; }
8869 test -n "$GAS" && break
8870 done
8873 { echo "$as_me:$LINENO: checking for linker version" >&5
8874 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8875 if test "${llvm_cv_link_version+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8879 version_string="$(ld -v 2>&1 | head -1)"
8881 # Check for ld64.
8882 if (echo "$version_string" | grep -q "ld64"); then
8883 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8884 else
8885 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8889 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8890 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8892 cat >>confdefs.h <<_ACEOF
8893 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8894 _ACEOF
8898 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8899 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8900 if test "${llvm_cv_link_use_r+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903 ac_ext=c
8904 ac_cpp='$CPP $CPPFLAGS'
8905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8909 oldcflags="$CFLAGS"
8910 CFLAGS="$CFLAGS -Wl,-R."
8911 cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h. */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8919 main ()
8923 return 0;
8925 _ACEOF
8926 rm -f conftest.$ac_objext conftest$ac_exeext
8927 if { (ac_try="$ac_link"
8928 case "(($ac_try" in
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8931 esac
8932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_link") 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8941 { (case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8944 esac
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_try") 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; } &&
8950 { ac_try='test -s conftest$ac_exeext'
8951 { (case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954 esac
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 llvm_cv_link_use_r=yes
8961 else
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8965 llvm_cv_link_use_r=no
8968 rm -f core conftest.err conftest.$ac_objext \
8969 conftest$ac_exeext conftest.$ac_ext
8970 CFLAGS="$oldcflags"
8971 ac_ext=c
8972 ac_cpp='$CPP $CPPFLAGS'
8973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8979 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8980 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8981 if test "$llvm_cv_link_use_r" = yes ; then
8983 cat >>confdefs.h <<\_ACEOF
8984 #define HAVE_LINK_R 1
8985 _ACEOF
8990 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8991 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8992 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995 ac_ext=c
8996 ac_cpp='$CPP $CPPFLAGS'
8997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9001 oldcflags="$CFLAGS"
9002 CFLAGS="$CFLAGS -Wl,-export-dynamic"
9003 cat >conftest.$ac_ext <<_ACEOF
9004 /* confdefs.h. */
9005 _ACEOF
9006 cat confdefs.h >>conftest.$ac_ext
9007 cat >>conftest.$ac_ext <<_ACEOF
9008 /* end confdefs.h. */
9011 main ()
9015 return 0;
9017 _ACEOF
9018 rm -f conftest.$ac_objext conftest$ac_exeext
9019 if { (ac_try="$ac_link"
9020 case "(($ac_try" in
9021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022 *) ac_try_echo=$ac_try;;
9023 esac
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025 (eval "$ac_link") 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } &&
9032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9033 { (case "(($ac_try" in
9034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9036 esac
9037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_try") 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest$ac_exeext'
9043 { (case "(($ac_try" in
9044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045 *) ac_try_echo=$ac_try;;
9046 esac
9047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048 (eval "$ac_try") 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 llvm_cv_link_use_export_dynamic=yes
9053 else
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9057 llvm_cv_link_use_export_dynamic=no
9060 rm -f core conftest.err conftest.$ac_objext \
9061 conftest$ac_exeext conftest.$ac_ext
9062 CFLAGS="$oldcflags"
9063 ac_ext=c
9064 ac_cpp='$CPP $CPPFLAGS'
9065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9071 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9072 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9073 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9075 cat >>confdefs.h <<\_ACEOF
9076 #define HAVE_LINK_EXPORT_DYNAMIC 1
9077 _ACEOF
9082 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9083 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9084 if test "${llvm_cv_link_use_version_script+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087 ac_ext=c
9088 ac_cpp='$CPP $CPPFLAGS'
9089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9093 oldcflags="$CFLAGS"
9095 # The following code is from the autoconf manual,
9096 # "11.13: Limitations of Usual Tools".
9097 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9098 # Use mktemp if possible; otherwise fall back on mkdir,
9099 # with $RANDOM to make collisions less likely.
9100 : ${TMPDIR=/tmp}
9102 tmp=`
9103 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9104 ` &&
9105 test -n "$tmp" && test -d "$tmp"
9106 } || {
9107 tmp=$TMPDIR/foo$$-$RANDOM
9108 (umask 077 && mkdir "$tmp")
9109 } || exit $?
9111 echo "{" > "$tmp/export.map"
9112 echo " global: main;" >> "$tmp/export.map"
9113 echo " local: *;" >> "$tmp/export.map"
9114 echo "};" >> "$tmp/export.map"
9116 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9117 cat >conftest.$ac_ext <<_ACEOF
9118 /* confdefs.h. */
9119 _ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9125 main ()
9129 return 0;
9131 _ACEOF
9132 rm -f conftest.$ac_objext conftest$ac_exeext
9133 if { (ac_try="$ac_link"
9134 case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9137 esac
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_link") 2>conftest.er1
9140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9147 { (case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150 esac
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_try") 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; } &&
9156 { ac_try='test -s conftest$ac_exeext'
9157 { (case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9160 esac
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_try") 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 llvm_cv_link_use_version_script=yes
9167 else
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 llvm_cv_link_use_version_script=no
9174 rm -f core conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
9176 rm "$tmp/export.map"
9177 rmdir "$tmp"
9178 CFLAGS="$oldcflags"
9179 ac_ext=c
9180 ac_cpp='$CPP $CPPFLAGS'
9181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9187 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9188 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9189 if test "$llvm_cv_link_use_version_script" = yes ; then
9190 HAVE_LINK_VERSION_SCRIPT=1
9197 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9198 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9199 if test "${ac_cv_c_const+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 else
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h. */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9210 main ()
9212 /* FIXME: Include the comments suggested by Paul. */
9213 #ifndef __cplusplus
9214 /* Ultrix mips cc rejects this. */
9215 typedef int charset[2];
9216 const charset x;
9217 /* SunOS 4.1.1 cc rejects this. */
9218 char const *const *ccp;
9219 char **p;
9220 /* NEC SVR4.0.2 mips cc rejects this. */
9221 struct point {int x, y;};
9222 static struct point const zero = {0,0};
9223 /* AIX XL C 1.02.0.0 rejects this.
9224 It does not let you subtract one const X* pointer from another in
9225 an arm of an if-expression whose if-part is not a constant
9226 expression */
9227 const char *g = "string";
9228 ccp = &g + (g ? g-g : 0);
9229 /* HPUX 7.0 cc rejects these. */
9230 ++ccp;
9231 p = (char**) ccp;
9232 ccp = (char const *const *) p;
9233 { /* SCO 3.2v4 cc rejects this. */
9234 char *t;
9235 char const *s = 0 ? (char *) 0 : (char const *) 0;
9237 *t++ = 0;
9238 if (s) return 0;
9240 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9241 int x[] = {25, 17};
9242 const int *foo = &x[0];
9243 ++foo;
9245 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9246 typedef const int *iptr;
9247 iptr p = 0;
9248 ++p;
9250 { /* AIX XL C 1.02.0.0 rejects this saying
9251 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9252 struct s { int j; const int *ap[3]; };
9253 struct s *b; b->j = 5;
9255 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9256 const int foo = 10;
9257 if (!foo) return 0;
9259 return !x[0] && !zero.x;
9260 #endif
9263 return 0;
9265 _ACEOF
9266 rm -f conftest.$ac_objext
9267 if { (ac_try="$ac_compile"
9268 case "(($ac_try" in
9269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9270 *) ac_try_echo=$ac_try;;
9271 esac
9272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9273 (eval "$ac_compile") 2>conftest.er1
9274 ac_status=$?
9275 grep -v '^ *+' conftest.er1 >conftest.err
9276 rm -f conftest.er1
9277 cat conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } &&
9280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9281 { (case "(($ac_try" in
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_try") 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; } &&
9290 { ac_try='test -s conftest.$ac_objext'
9291 { (case "(($ac_try" in
9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293 *) ac_try_echo=$ac_try;;
9294 esac
9295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9296 (eval "$ac_try") 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 ac_cv_c_const=yes
9301 else
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9305 ac_cv_c_const=no
9308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9311 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9312 if test $ac_cv_c_const = no; then
9314 cat >>confdefs.h <<\_ACEOF
9315 #define const
9316 _ACEOF
9325 ac_header_dirent=no
9326 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9327 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9328 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9329 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333 cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h. */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9339 #include <sys/types.h>
9340 #include <$ac_hdr>
9343 main ()
9345 if ((DIR *) 0)
9346 return 0;
9348 return 0;
9350 _ACEOF
9351 rm -f conftest.$ac_objext
9352 if { (ac_try="$ac_compile"
9353 case "(($ac_try" in
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9356 esac
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_compile") 2>conftest.er1
9359 ac_status=$?
9360 grep -v '^ *+' conftest.er1 >conftest.err
9361 rm -f conftest.er1
9362 cat conftest.err >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } &&
9365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9366 { (case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9369 esac
9370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_try") 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; } &&
9375 { ac_try='test -s conftest.$ac_objext'
9376 { (case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379 esac
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_try") 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 eval "$as_ac_Header=yes"
9386 else
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9390 eval "$as_ac_Header=no"
9393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 ac_res=`eval echo '${'$as_ac_Header'}'`
9396 { echo "$as_me:$LINENO: result: $ac_res" >&5
9397 echo "${ECHO_T}$ac_res" >&6; }
9398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9399 cat >>confdefs.h <<_ACEOF
9400 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9401 _ACEOF
9403 ac_header_dirent=$ac_hdr; break
9406 done
9407 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9408 if test $ac_header_dirent = dirent.h; then
9409 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9410 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9411 if test "${ac_cv_search_opendir+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414 ac_func_search_save_LIBS=$LIBS
9415 cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h. */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9422 /* Override any GCC internal prototype to avoid an error.
9423 Use char because int might match the return type of a GCC
9424 builtin and then its argument prototype would still apply. */
9425 #ifdef __cplusplus
9426 extern "C"
9427 #endif
9428 char opendir ();
9430 main ()
9432 return opendir ();
9434 return 0;
9436 _ACEOF
9437 for ac_lib in '' dir; do
9438 if test -z "$ac_lib"; then
9439 ac_res="none required"
9440 else
9441 ac_res=-l$ac_lib
9442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (ac_try="$ac_link"
9446 case "(($ac_try" in
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9449 esac
9450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_link") 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } &&
9458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9459 { (case "(($ac_try" in
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9462 esac
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_try") 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; } &&
9468 { ac_try='test -s conftest$ac_exeext'
9469 { (case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472 esac
9473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_try") 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 ac_cv_search_opendir=$ac_res
9479 else
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9486 rm -f core conftest.err conftest.$ac_objext \
9487 conftest$ac_exeext
9488 if test "${ac_cv_search_opendir+set}" = set; then
9489 break
9491 done
9492 if test "${ac_cv_search_opendir+set}" = set; then
9494 else
9495 ac_cv_search_opendir=no
9497 rm conftest.$ac_ext
9498 LIBS=$ac_func_search_save_LIBS
9500 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9501 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9502 ac_res=$ac_cv_search_opendir
9503 if test "$ac_res" != no; then
9504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9508 else
9509 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9510 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9511 if test "${ac_cv_search_opendir+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514 ac_func_search_save_LIBS=$LIBS
9515 cat >conftest.$ac_ext <<_ACEOF
9516 /* confdefs.h. */
9517 _ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9522 /* Override any GCC internal prototype to avoid an error.
9523 Use char because int might match the return type of a GCC
9524 builtin and then its argument prototype would still apply. */
9525 #ifdef __cplusplus
9526 extern "C"
9527 #endif
9528 char opendir ();
9530 main ()
9532 return opendir ();
9534 return 0;
9536 _ACEOF
9537 for ac_lib in '' x; do
9538 if test -z "$ac_lib"; then
9539 ac_res="none required"
9540 else
9541 ac_res=-l$ac_lib
9542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9544 rm -f conftest.$ac_objext conftest$ac_exeext
9545 if { (ac_try="$ac_link"
9546 case "(($ac_try" in
9547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9549 esac
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_link") 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9559 { (case "(($ac_try" in
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9562 esac
9563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564 (eval "$ac_try") 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; } &&
9568 { ac_try='test -s conftest$ac_exeext'
9569 { (case "(($ac_try" in
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9572 esac
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_try") 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 ac_cv_search_opendir=$ac_res
9579 else
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9586 rm -f core conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext
9588 if test "${ac_cv_search_opendir+set}" = set; then
9589 break
9591 done
9592 if test "${ac_cv_search_opendir+set}" = set; then
9594 else
9595 ac_cv_search_opendir=no
9597 rm conftest.$ac_ext
9598 LIBS=$ac_func_search_save_LIBS
9600 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9601 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9602 ac_res=$ac_cv_search_opendir
9603 if test "$ac_res" != no; then
9604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9611 for ac_header in dlfcn.h
9613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 ac_res=`eval echo '${'$as_ac_Header'}'`
9621 { echo "$as_me:$LINENO: result: $ac_res" >&5
9622 echo "${ECHO_T}$ac_res" >&6; }
9623 else
9624 # Is the header compilable?
9625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9627 cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h. */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633 $ac_includes_default
9634 #include <$ac_header>
9635 _ACEOF
9636 rm -f conftest.$ac_objext
9637 if { (ac_try="$ac_compile"
9638 case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9641 esac
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_compile") 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9651 { (case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654 esac
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_try") 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; } &&
9660 { ac_try='test -s conftest.$ac_objext'
9661 { (case "(($ac_try" in
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9664 esac
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_try") 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_header_compiler=yes
9671 else
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9675 ac_header_compiler=no
9678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9680 echo "${ECHO_T}$ac_header_compiler" >&6; }
9682 # Is the header present?
9683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9685 cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h. */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9691 #include <$ac_header>
9692 _ACEOF
9693 if { (ac_try="$ac_cpp conftest.$ac_ext"
9694 case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9697 esac
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } >/dev/null; then
9706 if test -s conftest.err; then
9707 ac_cpp_err=$ac_c_preproc_warn_flag
9708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9709 else
9710 ac_cpp_err=
9712 else
9713 ac_cpp_err=yes
9715 if test -z "$ac_cpp_err"; then
9716 ac_header_preproc=yes
9717 else
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9721 ac_header_preproc=no
9724 rm -f conftest.err conftest.$ac_ext
9725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9726 echo "${ECHO_T}$ac_header_preproc" >&6; }
9728 # So? What about this header?
9729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9730 yes:no: )
9731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9735 ac_header_preproc=yes
9737 no:yes:* )
9738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9750 ( cat <<\_ASBOX
9751 ## ----------------------------------- ##
9752 ## Report this to llvmbugs@cs.uiuc.edu ##
9753 ## ----------------------------------- ##
9754 _ASBOX
9755 ) | sed "s/^/$as_me: WARNING: /" >&2
9757 esac
9758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 eval "$as_ac_Header=\$ac_header_preproc"
9765 ac_res=`eval echo '${'$as_ac_Header'}'`
9766 { echo "$as_me:$LINENO: result: $ac_res" >&5
9767 echo "${ECHO_T}$ac_res" >&6; }
9770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9771 cat >>confdefs.h <<_ACEOF
9772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9773 _ACEOF
9777 done
9779 # Check whether --enable-ltdl-install was given.
9780 if test "${enable_ltdl_install+set}" = set; then
9781 enableval=$enable_ltdl_install;
9787 if test x"${enable_ltdl_install-no}" != xno; then
9788 INSTALL_LTDL_TRUE=
9789 INSTALL_LTDL_FALSE='#'
9790 else
9791 INSTALL_LTDL_TRUE='#'
9792 INSTALL_LTDL_FALSE=
9797 if test x"${enable_ltdl_convenience-no}" != xno; then
9798 CONVENIENCE_LTDL_TRUE=
9799 CONVENIENCE_LTDL_FALSE='#'
9800 else
9801 CONVENIENCE_LTDL_TRUE='#'
9802 CONVENIENCE_LTDL_FALSE=
9806 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9807 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9808 library_names_spec=
9809 libname_spec='lib$name'
9810 soname_spec=
9811 shrext_cmds=".so"
9812 postinstall_cmds=
9813 postuninstall_cmds=
9814 finish_cmds=
9815 finish_eval=
9816 shlibpath_var=
9817 shlibpath_overrides_runpath=unknown
9818 version_type=none
9819 dynamic_linker="$host_os ld.so"
9820 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9821 if test "$GCC" = yes; then
9822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9823 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9824 # if the path contains ";" then we assume it to be the separator
9825 # otherwise default to the standard path separator (i.e. ":") - it is
9826 # assumed that no part of a normal pathname contains ";" but that should
9827 # okay in the real world where ";" in dirpaths is itself problematic.
9828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9829 else
9830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9832 else
9833 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9835 need_lib_prefix=unknown
9836 hardcode_into_libs=no
9838 # when you set need_version to no, make sure it does not cause -set_version
9839 # flags to be left without arguments
9840 need_version=unknown
9842 case $host_os in
9843 aix3*)
9844 version_type=linux
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9846 shlibpath_var=LIBPATH
9848 # AIX 3 has no versioning support, so we append a major version to the name.
9849 soname_spec='${libname}${release}${shared_ext}$major'
9852 aix4* | aix5*)
9853 version_type=linux
9854 need_lib_prefix=no
9855 need_version=no
9856 hardcode_into_libs=yes
9857 if test "$host_cpu" = ia64; then
9858 # AIX 5 supports IA64
9859 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9860 shlibpath_var=LD_LIBRARY_PATH
9861 else
9862 # With GCC up to 2.95.x, collect2 would create an import file
9863 # for dependence libraries. The import file would start with
9864 # the line `#! .'. This would cause the generated library to
9865 # depend on `.', always an invalid library. This was fixed in
9866 # development snapshots of GCC prior to 3.0.
9867 case $host_os in
9868 aix4 | aix4.[01] | aix4.[01].*)
9869 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9870 echo ' yes '
9871 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9873 else
9874 can_build_shared=no
9877 esac
9878 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9879 # soname into executable. Probably we can add versioning support to
9880 # collect2, so additional links can be useful in future.
9881 if test "$aix_use_runtimelinking" = yes; then
9882 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9883 # instead of lib<name>.a to let people know that these are not
9884 # typical AIX shared libraries.
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886 else
9887 # We preserve .a as extension for shared libraries through AIX4.2
9888 # and later when we are not doing run time linking.
9889 library_names_spec='${libname}${release}.a $libname.a'
9890 soname_spec='${libname}${release}${shared_ext}$major'
9892 shlibpath_var=LIBPATH
9896 amigaos*)
9897 library_names_spec='$libname.ixlibrary $libname.a'
9898 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9899 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'
9902 beos*)
9903 library_names_spec='${libname}${shared_ext}'
9904 dynamic_linker="$host_os ld.so"
9905 shlibpath_var=LIBRARY_PATH
9908 bsdi[45]*)
9909 version_type=linux
9910 need_version=no
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 soname_spec='${libname}${release}${shared_ext}$major'
9913 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9916 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9917 # the default ld.so.conf also contains /usr/contrib/lib and
9918 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9919 # libtool to hard-code these into programs
9922 cygwin* | mingw* | pw32*)
9923 version_type=windows
9924 shrext_cmds=".dll"
9925 need_version=no
9926 need_lib_prefix=no
9928 case $GCC,$host_os in
9929 yes,cygwin* | yes,mingw* | yes,pw32*)
9930 library_names_spec='$libname.dll.a'
9931 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9932 postinstall_cmds='base_file=`basename \${file}`~
9933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9934 dldir=$destdir/`dirname \$dlpath`~
9935 test -d \$dldir || mkdir -p \$dldir~
9936 $install_prog $dir/$dlname \$dldir/$dlname~
9937 chmod a+x \$dldir/$dlname'
9938 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9939 dlpath=$dir/\$dldll~
9940 $rm \$dlpath'
9941 shlibpath_overrides_runpath=yes
9943 case $host_os in
9944 cygwin*)
9945 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9946 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9947 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9949 mingw*)
9950 # MinGW DLLs use traditional 'lib' prefix
9951 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9952 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9953 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9954 # It is most probably a Windows format PATH printed by
9955 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9956 # path with ; separators, and with drive letters. We can handle the
9957 # drive letters (cygwin fileutils understands them), so leave them,
9958 # especially as we might pass files found there to a mingw objdump,
9959 # which wouldn't understand a cygwinified path. Ahh.
9960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9961 else
9962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9965 pw32*)
9966 # pw32 DLLs use 'pw' prefix rather than 'lib'
9967 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9969 esac
9973 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9975 esac
9976 dynamic_linker='Win32 ld.exe'
9977 # FIXME: first we should search . and the directory the executable is in
9978 shlibpath_var=PATH
9981 darwin* | rhapsody*)
9982 dynamic_linker="$host_os dyld"
9983 version_type=darwin
9984 need_lib_prefix=no
9985 need_version=no
9986 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9987 soname_spec='${libname}${release}${major}$shared_ext'
9988 shlibpath_overrides_runpath=yes
9989 shlibpath_var=DYLD_LIBRARY_PATH
9990 shrext_cmds='.dylib'
9991 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9992 if test "$GCC" = yes; then
9993 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"`
9994 else
9995 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9997 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10000 dgux*)
10001 version_type=linux
10002 need_lib_prefix=no
10003 need_version=no
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10005 soname_spec='${libname}${release}${shared_ext}$major'
10006 shlibpath_var=LD_LIBRARY_PATH
10009 freebsd1*)
10010 dynamic_linker=no
10013 kfreebsd*-gnu)
10014 version_type=linux
10015 need_lib_prefix=no
10016 need_version=no
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 shlibpath_var=LD_LIBRARY_PATH
10020 shlibpath_overrides_runpath=no
10021 hardcode_into_libs=yes
10022 dynamic_linker='GNU ld.so'
10025 freebsd* | dragonfly*)
10026 # DragonFly does not have aout. When/if they implement a new
10027 # versioning mechanism, adjust this.
10028 if test -x /usr/bin/objformat; then
10029 objformat=`/usr/bin/objformat`
10030 else
10031 case $host_os in
10032 freebsd[123]*) objformat=aout ;;
10033 *) objformat=elf ;;
10034 esac
10036 version_type=freebsd-$objformat
10037 case $version_type in
10038 freebsd-elf*)
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10040 need_version=no
10041 need_lib_prefix=no
10043 freebsd-*)
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10045 need_version=yes
10047 esac
10048 shlibpath_var=LD_LIBRARY_PATH
10049 case $host_os in
10050 freebsd2*)
10051 shlibpath_overrides_runpath=yes
10053 freebsd3.[01]* | freebsdelf3.[01]*)
10054 shlibpath_overrides_runpath=yes
10055 hardcode_into_libs=yes
10057 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10058 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10059 shlibpath_overrides_runpath=no
10060 hardcode_into_libs=yes
10062 freebsd*) # from 4.6 on
10063 shlibpath_overrides_runpath=yes
10064 hardcode_into_libs=yes
10066 esac
10069 gnu*)
10070 version_type=linux
10071 need_lib_prefix=no
10072 need_version=no
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 hardcode_into_libs=yes
10079 hpux9* | hpux10* | hpux11*)
10080 # Give a soname corresponding to the major version so that dld.sl refuses to
10081 # link against other versions.
10082 version_type=sunos
10083 need_lib_prefix=no
10084 need_version=no
10085 case $host_cpu in
10086 ia64*)
10087 shrext_cmds='.so'
10088 hardcode_into_libs=yes
10089 dynamic_linker="$host_os dld.so"
10090 shlibpath_var=LD_LIBRARY_PATH
10091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 if test "X$HPUX_IA64_MODE" = X32; then
10095 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10096 else
10097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10101 hppa*64*)
10102 shrext_cmds='.sl'
10103 hardcode_into_libs=yes
10104 dynamic_linker="$host_os dld.sl"
10105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10113 shrext_cmds='.sl'
10114 dynamic_linker="$host_os dld.sl"
10115 shlibpath_var=SHLIB_PATH
10116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10120 esac
10121 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10122 postinstall_cmds='chmod 555 $lib'
10125 interix3*)
10126 version_type=linux
10127 need_lib_prefix=no
10128 need_version=no
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=no
10134 hardcode_into_libs=yes
10137 irix5* | irix6* | nonstopux*)
10138 case $host_os in
10139 nonstopux*) version_type=nonstopux ;;
10141 if test "$lt_cv_prog_gnu_ld" = yes; then
10142 version_type=linux
10143 else
10144 version_type=irix
10145 fi ;;
10146 esac
10147 need_lib_prefix=no
10148 need_version=no
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10151 case $host_os in
10152 irix5* | nonstopux*)
10153 libsuff= shlibsuff=
10156 case $LD in # libtool.m4 will add one of these switches to LD
10157 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10158 libsuff= shlibsuff= libmagic=32-bit;;
10159 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10160 libsuff=32 shlibsuff=N32 libmagic=N32;;
10161 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10162 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10163 *) libsuff= shlibsuff= libmagic=never-match;;
10164 esac
10166 esac
10167 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10168 shlibpath_overrides_runpath=no
10169 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10170 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10171 hardcode_into_libs=yes
10174 # No shared lib support for Linux oldld, aout, or coff.
10175 linux*oldld* | linux*aout* | linux*coff*)
10176 dynamic_linker=no
10179 # This must be Linux ELF.
10180 linux*)
10181 version_type=linux
10182 need_lib_prefix=no
10183 need_version=no
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 shlibpath_overrides_runpath=no
10189 # This implies no fast_install, which is unacceptable.
10190 # Some rework will be needed to allow for fast_install
10191 # before this can be enabled.
10192 hardcode_into_libs=yes
10194 # Append ld.so.conf contents to the search path
10195 if test -f /etc/ld.so.conf; then
10196 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' ' '`
10197 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10200 # We used to test for /lib/ld.so.1 and disable shared libraries on
10201 # powerpc, because MkLinux only supported shared libraries with the
10202 # GNU dynamic linker. Since this was broken with cross compilers,
10203 # most powerpc-linux boxes support dynamic linking these days and
10204 # people can always --disable-shared, the test was removed, and we
10205 # assume the GNU/Linux dynamic linker is in use.
10206 dynamic_linker='GNU/Linux ld.so'
10209 knetbsd*-gnu)
10210 version_type=linux
10211 need_lib_prefix=no
10212 need_version=no
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 shlibpath_var=LD_LIBRARY_PATH
10216 shlibpath_overrides_runpath=no
10217 hardcode_into_libs=yes
10218 dynamic_linker='GNU ld.so'
10221 netbsd*)
10222 version_type=sunos
10223 need_lib_prefix=no
10224 need_version=no
10225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10228 dynamic_linker='NetBSD (a.out) ld.so'
10229 else
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 dynamic_linker='NetBSD ld.elf_so'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 shlibpath_overrides_runpath=yes
10236 hardcode_into_libs=yes
10239 newsos6)
10240 version_type=linux
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath=yes
10246 nto-qnx*)
10247 version_type=linux
10248 need_lib_prefix=no
10249 need_version=no
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 shlibpath_overrides_runpath=yes
10256 openbsd*)
10257 version_type=sunos
10258 sys_lib_dlsearch_path_spec="/usr/lib"
10259 need_lib_prefix=no
10260 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10261 case $host_os in
10262 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10263 *) need_version=no ;;
10264 esac
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10269 case $host_os in
10270 openbsd2.[89] | openbsd2.[89].*)
10271 shlibpath_overrides_runpath=no
10274 shlibpath_overrides_runpath=yes
10276 esac
10277 else
10278 shlibpath_overrides_runpath=yes
10282 os2*)
10283 libname_spec='$name'
10284 shrext_cmds=".dll"
10285 need_lib_prefix=no
10286 library_names_spec='$libname${shared_ext} $libname.a'
10287 dynamic_linker='OS/2 ld.exe'
10288 shlibpath_var=LIBPATH
10291 osf3* | osf4* | osf5*)
10292 version_type=osf
10293 need_lib_prefix=no
10294 need_version=no
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10299 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10302 solaris*)
10303 version_type=linux
10304 need_lib_prefix=no
10305 need_version=no
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath=yes
10310 hardcode_into_libs=yes
10311 # ldd complains unless libraries are executable
10312 postinstall_cmds='chmod +x $lib'
10315 sunos4*)
10316 version_type=sunos
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10318 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10319 shlibpath_var=LD_LIBRARY_PATH
10320 shlibpath_overrides_runpath=yes
10321 if test "$with_gnu_ld" = yes; then
10322 need_lib_prefix=no
10324 need_version=yes
10327 sysv4 | sysv4.3*)
10328 version_type=linux
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 case $host_vendor in
10333 sni)
10334 shlibpath_overrides_runpath=no
10335 need_lib_prefix=no
10336 export_dynamic_flag_spec='${wl}-Blargedynsym'
10337 runpath_var=LD_RUN_PATH
10339 siemens)
10340 need_lib_prefix=no
10342 motorola)
10343 need_lib_prefix=no
10344 need_version=no
10345 shlibpath_overrides_runpath=no
10346 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10348 esac
10351 sysv4*MP*)
10352 if test -d /usr/nec ;then
10353 version_type=linux
10354 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10355 soname_spec='$libname${shared_ext}.$major'
10356 shlibpath_var=LD_LIBRARY_PATH
10360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10361 version_type=freebsd-elf
10362 need_lib_prefix=no
10363 need_version=no
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 hardcode_into_libs=yes
10368 if test "$with_gnu_ld" = yes; then
10369 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10370 shlibpath_overrides_runpath=no
10371 else
10372 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10373 shlibpath_overrides_runpath=yes
10374 case $host_os in
10375 sco3.2v5*)
10376 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10378 esac
10380 sys_lib_dlsearch_path_spec='/usr/lib'
10383 uts4*)
10384 version_type=linux
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10391 dynamic_linker=no
10393 esac
10394 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10395 echo "${ECHO_T}$dynamic_linker" >&6; }
10396 test "$dynamic_linker" = no && can_build_shared=no
10398 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10399 if test "$GCC" = yes; then
10400 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10404 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10405 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10406 if test "${libltdl_cv_shlibext+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 else
10410 module=yes
10411 eval libltdl_cv_shlibext=$shrext_cmds
10414 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10415 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10416 if test -n "$libltdl_cv_shlibext"; then
10418 cat >>confdefs.h <<_ACEOF
10419 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10420 _ACEOF
10425 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10426 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10427 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 else
10430 libltdl_cv_shlibpath_var="$shlibpath_var"
10432 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10433 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10434 if test -n "$libltdl_cv_shlibpath_var"; then
10436 cat >>confdefs.h <<_ACEOF
10437 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10438 _ACEOF
10443 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10444 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10445 if test "${libltdl_cv_sys_search_path+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10450 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10451 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10452 if test -n "$libltdl_cv_sys_search_path"; then
10453 sys_search_path=
10454 for dir in $libltdl_cv_sys_search_path; do
10455 if test -z "$sys_search_path"; then
10456 sys_search_path="$dir"
10457 else
10458 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10460 done
10462 cat >>confdefs.h <<_ACEOF
10463 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10464 _ACEOF
10468 { echo "$as_me:$LINENO: checking for objdir" >&5
10469 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10470 if test "${libltdl_cv_objdir+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10473 libltdl_cv_objdir="$objdir"
10474 if test -n "$objdir"; then
10476 else
10477 rm -f .libs 2>/dev/null
10478 mkdir .libs 2>/dev/null
10479 if test -d .libs; then
10480 libltdl_cv_objdir=.libs
10481 else
10482 # MS-DOS does not allow filenames that begin with a dot.
10483 libltdl_cv_objdir=_libs
10485 rmdir .libs 2>/dev/null
10489 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10490 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10492 cat >>confdefs.h <<_ACEOF
10493 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10494 _ACEOF
10501 # Check for command to grab the raw symbol name followed by C symbol from nm.
10502 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10503 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10504 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10508 # These are sane defaults that work on at least a few old systems.
10509 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10511 # Character class describing NM global symbol codes.
10512 symcode='[BCDEGRST]'
10514 # Regexp to match symbols that can be accessed directly from C.
10515 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10517 # Transform an extracted symbol line into a proper C declaration
10518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10520 # Transform an extracted symbol line into symbol name and symbol address
10521 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'"
10523 # Define system-specific variables.
10524 case $host_os in
10525 aix*)
10526 symcode='[BCDT]'
10528 cygwin* | mingw* | pw32*)
10529 symcode='[ABCDGISTW]'
10531 hpux*) # Its linker distinguishes data from code symbols
10532 if test "$host_cpu" = ia64; then
10533 symcode='[ABCDEGRST]'
10535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10536 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'"
10538 linux*)
10539 if test "$host_cpu" = ia64; then
10540 symcode='[ABCDGIRSTW]'
10541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10542 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'"
10545 irix* | nonstopux*)
10546 symcode='[BCDEGRST]'
10548 osf*)
10549 symcode='[BCDEGQRST]'
10551 solaris*)
10552 symcode='[BDRT]'
10554 sco3.2v5*)
10555 symcode='[DT]'
10557 sysv4.2uw2*)
10558 symcode='[DT]'
10560 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10561 symcode='[ABDT]'
10563 sysv4)
10564 symcode='[DFNSTU]'
10566 esac
10568 # Handle CRLF in mingw tool chain
10569 opt_cr=
10570 case $build_os in
10571 mingw*)
10572 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10574 esac
10576 # If we're using GNU nm, then use its standard symbol codes.
10577 case `$NM -V 2>&1` in
10578 *GNU* | *'with BFD'*)
10579 symcode='[ABCDGIRSTW]' ;;
10580 esac
10582 # Try without a prefix undercore, then with it.
10583 for ac_symprfx in "" "_"; do
10585 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10586 symxfrm="\\1 $ac_symprfx\\2 \\2"
10588 # Write the raw and C identifiers.
10589 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10591 # Check to see that the pipe works correctly.
10592 pipe_works=no
10594 rm -f conftest*
10595 cat > conftest.$ac_ext <<EOF
10596 #ifdef __cplusplus
10597 extern "C" {
10598 #endif
10599 char nm_test_var;
10600 void nm_test_func(){}
10601 #ifdef __cplusplus
10603 #endif
10604 int main(){nm_test_var='a';nm_test_func();return(0);}
10607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10608 (eval $ac_compile) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; then
10612 # Now try to grab the symbols.
10613 nlist=conftest.nm
10614 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10615 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10616 ac_status=$?
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && test -s "$nlist"; then
10619 # Try sorting and uniquifying the output.
10620 if sort "$nlist" | uniq > "$nlist"T; then
10621 mv -f "$nlist"T "$nlist"
10622 else
10623 rm -f "$nlist"T
10626 # Make sure that we snagged all the symbols we need.
10627 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10628 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10629 cat <<EOF > conftest.$ac_ext
10630 #ifdef __cplusplus
10631 extern "C" {
10632 #endif
10635 # Now generate the symbol file.
10636 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10638 cat <<EOF >> conftest.$ac_ext
10639 #if defined (__STDC__) && __STDC__
10640 # define lt_ptr_t void *
10641 #else
10642 # define lt_ptr_t char *
10643 # define const
10644 #endif
10646 /* The mapping between symbol names and symbols. */
10647 const struct {
10648 const char *name;
10649 lt_ptr_t address;
10651 lt_preloaded_symbols[] =
10654 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10655 cat <<\EOF >> conftest.$ac_ext
10656 {0, (lt_ptr_t) 0}
10659 #ifdef __cplusplus
10661 #endif
10663 # Now try linking the two files.
10664 mv conftest.$ac_objext conftstm.$ac_objext
10665 lt_save_LIBS="$LIBS"
10666 lt_save_CFLAGS="$CFLAGS"
10667 LIBS="conftstm.$ac_objext"
10668 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670 (eval $ac_link) 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10674 pipe_works=yes
10676 LIBS="$lt_save_LIBS"
10677 CFLAGS="$lt_save_CFLAGS"
10678 else
10679 echo "cannot find nm_test_func in $nlist" >&5
10681 else
10682 echo "cannot find nm_test_var in $nlist" >&5
10684 else
10685 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10687 else
10688 echo "$progname: failed program was:" >&5
10689 cat conftest.$ac_ext >&5
10691 rm -f conftest* conftst*
10693 # Do not use the global_symbol_pipe unless it works.
10694 if test "$pipe_works" = yes; then
10695 break
10696 else
10697 lt_cv_sys_global_symbol_pipe=
10699 done
10703 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10704 lt_cv_sys_global_symbol_to_cdecl=
10706 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10707 { echo "$as_me:$LINENO: result: failed" >&5
10708 echo "${ECHO_T}failed" >&6; }
10709 else
10710 { echo "$as_me:$LINENO: result: ok" >&5
10711 echo "${ECHO_T}ok" >&6; }
10715 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10716 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10717 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10721 libltdl_cv_preloaded_symbols=yes
10722 else
10723 libltdl_cv_preloaded_symbols=no
10727 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10728 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10729 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10731 cat >>confdefs.h <<\_ACEOF
10732 #define HAVE_PRELOADED_SYMBOLS 1
10733 _ACEOF
10737 LIBADD_DL=
10739 ac_ext=c
10740 ac_cpp='$CPP $CPPFLAGS'
10741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10746 { echo "$as_me:$LINENO: checking for shl_load" >&5
10747 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10748 if test "${ac_cv_func_shl_load+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751 cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h. */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10759 #define shl_load innocuous_shl_load
10761 /* System header to define __stub macros and hopefully few prototypes,
10762 which can conflict with char shl_load (); below.
10763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10764 <limits.h> exists even on freestanding compilers. */
10766 #ifdef __STDC__
10767 # include <limits.h>
10768 #else
10769 # include <assert.h>
10770 #endif
10772 #undef shl_load
10774 /* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10777 #ifdef __cplusplus
10778 extern "C"
10779 #endif
10780 char shl_load ();
10781 /* The GNU C library defines this for functions which it implements
10782 to always fail with ENOSYS. Some functions are actually named
10783 something starting with __ and the normal name is an alias. */
10784 #if defined __stub_shl_load || defined __stub___shl_load
10785 choke me
10786 #endif
10789 main ()
10791 return shl_load ();
10793 return 0;
10795 _ACEOF
10796 rm -f conftest.$ac_objext conftest$ac_exeext
10797 if { (ac_try="$ac_link"
10798 case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_link") 2>conftest.er1
10804 ac_status=$?
10805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10811 { (case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10814 esac
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_try") 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; } &&
10820 { ac_try='test -s conftest$ac_exeext'
10821 { (case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10824 esac
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_try") 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_cv_func_shl_load=yes
10831 else
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10835 ac_cv_func_shl_load=no
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10841 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10842 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10843 if test $ac_cv_func_shl_load = yes; then
10845 cat >>confdefs.h <<\_ACEOF
10846 #define HAVE_SHL_LOAD 1
10847 _ACEOF
10849 else
10850 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855 ac_check_lib_save_LIBS=$LIBS
10856 LIBS="-ldld $LIBS"
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h. */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10864 /* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
10867 #ifdef __cplusplus
10868 extern "C"
10869 #endif
10870 char shl_load ();
10872 main ()
10874 return shl_load ();
10876 return 0;
10878 _ACEOF
10879 rm -f conftest.$ac_objext conftest$ac_exeext
10880 if { (ac_try="$ac_link"
10881 case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_link") 2>conftest.er1
10887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894 { (case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_try") 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest$ac_exeext'
10904 { (case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907 esac
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_try") 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 ac_cv_lib_dld_shl_load=yes
10914 else
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10918 ac_cv_lib_dld_shl_load=no
10921 rm -f core conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
10923 LIBS=$ac_check_lib_save_LIBS
10925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10926 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10927 if test $ac_cv_lib_dld_shl_load = yes; then
10929 cat >>confdefs.h <<\_ACEOF
10930 #define HAVE_SHL_LOAD 1
10931 _ACEOF
10933 LIBADD_DL="$LIBADD_DL -ldld"
10934 else
10935 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10936 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10937 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940 ac_check_lib_save_LIBS=$LIBS
10941 LIBS="-ldl $LIBS"
10942 cat >conftest.$ac_ext <<_ACEOF
10943 /* confdefs.h. */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10949 /* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
10952 #ifdef __cplusplus
10953 extern "C"
10954 #endif
10955 char dlopen ();
10957 main ()
10959 return dlopen ();
10961 return 0;
10963 _ACEOF
10964 rm -f conftest.$ac_objext conftest$ac_exeext
10965 if { (ac_try="$ac_link"
10966 case "(($ac_try" in
10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10969 esac
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_link") 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
10978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10979 { (case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982 esac
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_try") 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; } &&
10988 { ac_try='test -s conftest$ac_exeext'
10989 { (case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_try") 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
10998 ac_cv_lib_dl_dlopen=yes
10999 else
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 ac_cv_lib_dl_dlopen=no
11006 rm -f core conftest.err conftest.$ac_objext \
11007 conftest$ac_exeext conftest.$ac_ext
11008 LIBS=$ac_check_lib_save_LIBS
11010 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11012 if test $ac_cv_lib_dl_dlopen = yes; then
11014 cat >>confdefs.h <<\_ACEOF
11015 #define HAVE_LIBDL 1
11016 _ACEOF
11018 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11019 else
11020 cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h. */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 #if HAVE_DLFCN_H
11027 # include <dlfcn.h>
11028 #endif
11031 main ()
11033 dlopen(0, 0);
11035 return 0;
11037 _ACEOF
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (ac_try="$ac_link"
11040 case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_link") 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11053 { (case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; } &&
11062 { ac_try='test -s conftest$ac_exeext'
11063 { (case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_try") 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
11073 cat >>confdefs.h <<\_ACEOF
11074 #define HAVE_LIBDL 1
11075 _ACEOF
11076 libltdl_cv_func_dlopen="yes"
11077 else
11078 echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11081 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11082 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11083 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 ac_check_lib_save_LIBS=$LIBS
11087 LIBS="-lsvld $LIBS"
11088 cat >conftest.$ac_ext <<_ACEOF
11089 /* confdefs.h. */
11090 _ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11095 /* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
11098 #ifdef __cplusplus
11099 extern "C"
11100 #endif
11101 char dlopen ();
11103 main ()
11105 return dlopen ();
11107 return 0;
11109 _ACEOF
11110 rm -f conftest.$ac_objext conftest$ac_exeext
11111 if { (ac_try="$ac_link"
11112 case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11115 esac
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_link") 2>conftest.er1
11118 ac_status=$?
11119 grep -v '^ *+' conftest.er1 >conftest.err
11120 rm -f conftest.er1
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11125 { (case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_try") 2>&5
11131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; } &&
11134 { ac_try='test -s conftest$ac_exeext'
11135 { (case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_try") 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_lib_svld_dlopen=yes
11145 else
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 ac_cv_lib_svld_dlopen=no
11152 rm -f core conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext conftest.$ac_ext
11154 LIBS=$ac_check_lib_save_LIBS
11156 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11157 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11158 if test $ac_cv_lib_svld_dlopen = yes; then
11160 cat >>confdefs.h <<\_ACEOF
11161 #define HAVE_LIBDL 1
11162 _ACEOF
11164 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11165 else
11166 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11167 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11168 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11170 else
11171 ac_check_lib_save_LIBS=$LIBS
11172 LIBS="-ldld $LIBS"
11173 cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h. */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11180 /* Override any GCC internal prototype to avoid an error.
11181 Use char because int might match the return type of a GCC
11182 builtin and then its argument prototype would still apply. */
11183 #ifdef __cplusplus
11184 extern "C"
11185 #endif
11186 char dld_link ();
11188 main ()
11190 return dld_link ();
11192 return 0;
11194 _ACEOF
11195 rm -f conftest.$ac_objext conftest$ac_exeext
11196 if { (ac_try="$ac_link"
11197 case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200 esac
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_link") 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11210 { (case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11213 esac
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_try") 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; } &&
11219 { ac_try='test -s conftest$ac_exeext'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
11229 ac_cv_lib_dld_dld_link=yes
11230 else
11231 echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11234 ac_cv_lib_dld_dld_link=no
11237 rm -f core conftest.err conftest.$ac_objext \
11238 conftest$ac_exeext conftest.$ac_ext
11239 LIBS=$ac_check_lib_save_LIBS
11241 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11242 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11243 if test $ac_cv_lib_dld_dld_link = yes; then
11245 cat >>confdefs.h <<\_ACEOF
11246 #define HAVE_DLD 1
11247 _ACEOF
11249 LIBADD_DL="$LIBADD_DL -ldld"
11250 else
11251 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11252 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11253 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256 cat >conftest.$ac_ext <<_ACEOF
11257 /* confdefs.h. */
11258 _ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11264 #define _dyld_func_lookup innocuous__dyld_func_lookup
11266 /* System header to define __stub macros and hopefully few prototypes,
11267 which can conflict with char _dyld_func_lookup (); below.
11268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11269 <limits.h> exists even on freestanding compilers. */
11271 #ifdef __STDC__
11272 # include <limits.h>
11273 #else
11274 # include <assert.h>
11275 #endif
11277 #undef _dyld_func_lookup
11279 /* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
11282 #ifdef __cplusplus
11283 extern "C"
11284 #endif
11285 char _dyld_func_lookup ();
11286 /* The GNU C library defines this for functions which it implements
11287 to always fail with ENOSYS. Some functions are actually named
11288 something starting with __ and the normal name is an alias. */
11289 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11290 choke me
11291 #endif
11294 main ()
11296 return _dyld_func_lookup ();
11298 return 0;
11300 _ACEOF
11301 rm -f conftest.$ac_objext conftest$ac_exeext
11302 if { (ac_try="$ac_link"
11303 case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306 esac
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_link") 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319 esac
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; } &&
11325 { ac_try='test -s conftest$ac_exeext'
11326 { (case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329 esac
11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_try") 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_cv_func__dyld_func_lookup=yes
11336 else
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_cv_func__dyld_func_lookup=no
11343 rm -f core conftest.err conftest.$ac_objext \
11344 conftest$ac_exeext conftest.$ac_ext
11346 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11347 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11348 if test $ac_cv_func__dyld_func_lookup = yes; then
11350 cat >>confdefs.h <<\_ACEOF
11351 #define HAVE_DYLD 1
11352 _ACEOF
11365 rm -f core conftest.err conftest.$ac_objext \
11366 conftest$ac_exeext conftest.$ac_ext
11377 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11378 then
11379 lt_save_LIBS="$LIBS"
11380 LIBS="$LIBS $LIBADD_DL"
11382 for ac_func in dlerror
11384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390 cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h. */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11398 #define $ac_func innocuous_$ac_func
11400 /* System header to define __stub macros and hopefully few prototypes,
11401 which can conflict with char $ac_func (); below.
11402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11403 <limits.h> exists even on freestanding compilers. */
11405 #ifdef __STDC__
11406 # include <limits.h>
11407 #else
11408 # include <assert.h>
11409 #endif
11411 #undef $ac_func
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 char $ac_func ();
11420 /* The GNU C library defines this for functions which it implements
11421 to always fail with ENOSYS. Some functions are actually named
11422 something starting with __ and the normal name is an alias. */
11423 #if defined __stub_$ac_func || defined __stub___$ac_func
11424 choke me
11425 #endif
11428 main ()
11430 return $ac_func ();
11432 return 0;
11434 _ACEOF
11435 rm -f conftest.$ac_objext conftest$ac_exeext
11436 if { (ac_try="$ac_link"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440 esac
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_link") 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
11449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11450 { (case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453 esac
11454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_try") 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; } &&
11459 { ac_try='test -s conftest$ac_exeext'
11460 { (case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11463 esac
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_try") 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 eval "$as_ac_var=yes"
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 eval "$as_ac_var=no"
11477 rm -f core conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11480 ac_res=`eval echo '${'$as_ac_var'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11483 if test `eval echo '${'$as_ac_var'}'` = yes; then
11484 cat >>confdefs.h <<_ACEOF
11485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11486 _ACEOF
11489 done
11491 LIBS="$lt_save_LIBS"
11493 ac_ext=c
11494 ac_cpp='$CPP $CPPFLAGS'
11495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11501 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11502 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11503 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 else
11506 ac_cv_sys_symbol_underscore=no
11507 cat > conftest.$ac_ext <<EOF
11508 void nm_test_func(){}
11509 int main(){nm_test_func;return 0;}
11511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11512 (eval $ac_compile) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; then
11516 # Now try to grab the symbols.
11517 ac_nlist=conftest.nm
11518 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11519 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11520 ac_status=$?
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } && test -s "$ac_nlist"; then
11523 # See whether the symbols have a leading underscore.
11524 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11525 ac_cv_sys_symbol_underscore=yes
11526 else
11527 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11529 else
11530 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11533 else
11534 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11536 else
11537 echo "configure: failed program was:" >&5
11538 cat conftest.c >&5
11540 rm -rf conftest*
11543 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11544 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11547 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11548 if test x"$libltdl_cv_func_dlopen" = xyes ||
11549 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11550 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11551 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11552 if test "${libltdl_cv_need_uscore+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555 libltdl_cv_need_uscore=unknown
11556 save_LIBS="$LIBS"
11557 LIBS="$LIBS $LIBADD_DL"
11558 if test "$cross_compiling" = yes; then :
11559 libltdl_cv_need_uscore=cross
11560 else
11561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11562 lt_status=$lt_dlunknown
11563 cat > conftest.$ac_ext <<EOF
11564 #line 11564 "configure"
11565 #include "confdefs.h"
11567 #if HAVE_DLFCN_H
11568 #include <dlfcn.h>
11569 #endif
11571 #include <stdio.h>
11573 #ifdef RTLD_GLOBAL
11574 # define LT_DLGLOBAL RTLD_GLOBAL
11575 #else
11576 # ifdef DL_GLOBAL
11577 # define LT_DLGLOBAL DL_GLOBAL
11578 # else
11579 # define LT_DLGLOBAL 0
11580 # endif
11581 #endif
11583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11584 find out it does not work in some platform. */
11585 #ifndef LT_DLLAZY_OR_NOW
11586 # ifdef RTLD_LAZY
11587 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11588 # else
11589 # ifdef DL_LAZY
11590 # define LT_DLLAZY_OR_NOW DL_LAZY
11591 # else
11592 # ifdef RTLD_NOW
11593 # define LT_DLLAZY_OR_NOW RTLD_NOW
11594 # else
11595 # ifdef DL_NOW
11596 # define LT_DLLAZY_OR_NOW DL_NOW
11597 # else
11598 # define LT_DLLAZY_OR_NOW 0
11599 # endif
11600 # endif
11601 # endif
11602 # endif
11603 #endif
11605 #ifdef __cplusplus
11606 extern "C" void exit (int);
11607 #endif
11609 void fnord() { int i=42;}
11610 int main ()
11612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11613 int status = $lt_dlunknown;
11615 if (self)
11617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11618 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11619 /* dlclose (self); */
11621 else
11622 puts (dlerror ());
11624 exit (status);
11627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11628 (eval $ac_link) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11632 (./conftest; exit; ) >&5 2>/dev/null
11633 lt_status=$?
11634 case x$lt_status in
11635 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11636 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11637 x$lt_dlunknown|x*) ;;
11638 esac
11639 else :
11640 # compilation failed
11644 rm -fr conftest*
11646 LIBS="$save_LIBS"
11649 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11650 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11654 if test x"$libltdl_cv_need_uscore" = xyes; then
11656 cat >>confdefs.h <<\_ACEOF
11657 #define NEED_USCORE 1
11658 _ACEOF
11663 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11664 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11665 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11667 else
11668 # PORTME does your system automatically load deplibs for dlopen?
11669 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11670 # For now, we just catch OSes we know something about -- in the
11671 # future, we'll try test this programmatically.
11672 libltdl_cv_sys_dlopen_deplibs=unknown
11673 case "$host_os" in
11674 aix3*|aix4.1.*|aix4.2.*)
11675 # Unknown whether this is true for these versions of AIX, but
11676 # we want this `case' here to explicitly catch those versions.
11677 libltdl_cv_sys_dlopen_deplibs=unknown
11679 aix[45]*)
11680 libltdl_cv_sys_dlopen_deplibs=yes
11682 darwin*)
11683 # Assuming the user has installed a libdl from somewhere, this is true
11684 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11685 libltdl_cv_sys_dlopen_deplibs=yes
11687 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11688 # GNU and its variants, using gnu ld.so (Glibc)
11689 libltdl_cv_sys_dlopen_deplibs=yes
11691 hpux10*|hpux11*)
11692 libltdl_cv_sys_dlopen_deplibs=yes
11694 interix*)
11695 libltdl_cv_sys_dlopen_deplibs=yes
11697 irix[12345]*|irix6.[01]*)
11698 # Catch all versions of IRIX before 6.2, and indicate that we don't
11699 # know how it worked for any of those versions.
11700 libltdl_cv_sys_dlopen_deplibs=unknown
11702 irix*)
11703 # The case above catches anything before 6.2, and it's known that
11704 # at 6.2 and later dlopen does load deplibs.
11705 libltdl_cv_sys_dlopen_deplibs=yes
11707 netbsd*)
11708 libltdl_cv_sys_dlopen_deplibs=yes
11710 openbsd*)
11711 libltdl_cv_sys_dlopen_deplibs=yes
11713 osf[1234]*)
11714 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11715 # it did *not* use an RPATH in a shared library to find objects the
11716 # library depends on, so we explictly say `no'.
11717 libltdl_cv_sys_dlopen_deplibs=no
11719 osf5.0|osf5.0a|osf5.1)
11720 # dlopen *does* load deplibs and with the right loader patch applied
11721 # it even uses RPATH in a shared library to search for shared objects
11722 # that the library depends on, but there's no easy way to know if that
11723 # patch is installed. Since this is the case, all we can really
11724 # say is unknown -- it depends on the patch being installed. If
11725 # it is, this changes to `yes'. Without it, it would be `no'.
11726 libltdl_cv_sys_dlopen_deplibs=unknown
11728 osf*)
11729 # the two cases above should catch all versions of osf <= 5.1. Read
11730 # the comments above for what we know about them.
11731 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11732 # is used to find them so we can finally say `yes'.
11733 libltdl_cv_sys_dlopen_deplibs=yes
11735 solaris*)
11736 libltdl_cv_sys_dlopen_deplibs=yes
11738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11739 libltdl_cv_sys_dlopen_deplibs=yes
11741 esac
11744 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11745 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11746 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11748 cat >>confdefs.h <<\_ACEOF
11749 #define LTDL_DLOPEN_DEPLIBS 1
11750 _ACEOF
11755 for ac_header in argz.h
11757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 ac_res=`eval echo '${'$as_ac_Header'}'`
11765 { echo "$as_me:$LINENO: result: $ac_res" >&5
11766 echo "${ECHO_T}$ac_res" >&6; }
11767 else
11768 # Is the header compilable?
11769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11771 cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h. */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 $ac_includes_default
11778 #include <$ac_header>
11779 _ACEOF
11780 rm -f conftest.$ac_objext
11781 if { (ac_try="$ac_compile"
11782 case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11785 esac
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_compile") 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
11794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11795 { (case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798 esac
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_try") 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; } &&
11804 { ac_try='test -s conftest.$ac_objext'
11805 { (case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11808 esac
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_try") 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 ac_header_compiler=yes
11815 else
11816 echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11819 ac_header_compiler=no
11822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11824 echo "${ECHO_T}$ac_header_compiler" >&6; }
11826 # Is the header present?
11827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11829 cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h. */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 #include <$ac_header>
11836 _ACEOF
11837 if { (ac_try="$ac_cpp conftest.$ac_ext"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841 esac
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } >/dev/null; then
11850 if test -s conftest.err; then
11851 ac_cpp_err=$ac_c_preproc_warn_flag
11852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11853 else
11854 ac_cpp_err=
11856 else
11857 ac_cpp_err=yes
11859 if test -z "$ac_cpp_err"; then
11860 ac_header_preproc=yes
11861 else
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ac_header_preproc=no
11868 rm -f conftest.err conftest.$ac_ext
11869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11870 echo "${ECHO_T}$ac_header_preproc" >&6; }
11872 # So? What about this header?
11873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11874 yes:no: )
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11879 ac_header_preproc=yes
11881 no:yes:* )
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11894 ( cat <<\_ASBOX
11895 ## ----------------------------------- ##
11896 ## Report this to llvmbugs@cs.uiuc.edu ##
11897 ## ----------------------------------- ##
11898 _ASBOX
11899 ) | sed "s/^/$as_me: WARNING: /" >&2
11901 esac
11902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11906 else
11907 eval "$as_ac_Header=\$ac_header_preproc"
11909 ac_res=`eval echo '${'$as_ac_Header'}'`
11910 { echo "$as_me:$LINENO: result: $ac_res" >&5
11911 echo "${ECHO_T}$ac_res" >&6; }
11914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11915 cat >>confdefs.h <<_ACEOF
11916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11917 _ACEOF
11921 done
11924 { echo "$as_me:$LINENO: checking for error_t" >&5
11925 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11926 if test "${ac_cv_type_error_t+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 #if HAVE_ARGZ_H
11936 # include <argz.h>
11937 #endif
11939 typedef error_t ac__type_new_;
11941 main ()
11943 if ((ac__type_new_ *) 0)
11944 return 0;
11945 if (sizeof (ac__type_new_))
11946 return 0;
11948 return 0;
11950 _ACEOF
11951 rm -f conftest.$ac_objext
11952 if { (ac_try="$ac_compile"
11953 case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11956 esac
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_compile") 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11966 { (case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969 esac
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_try") 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest.$ac_objext'
11976 { (case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_cv_type_error_t=yes
11986 else
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11990 ac_cv_type_error_t=no
11993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11995 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11996 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11997 if test $ac_cv_type_error_t = yes; then
11999 cat >>confdefs.h <<_ACEOF
12000 #define HAVE_ERROR_T 1
12001 _ACEOF
12004 else
12006 cat >>confdefs.h <<\_ACEOF
12007 #define error_t int
12008 _ACEOF
12018 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026 cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h. */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12034 #define $ac_func innocuous_$ac_func
12036 /* System header to define __stub macros and hopefully few prototypes,
12037 which can conflict with char $ac_func (); below.
12038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12039 <limits.h> exists even on freestanding compilers. */
12041 #ifdef __STDC__
12042 # include <limits.h>
12043 #else
12044 # include <assert.h>
12045 #endif
12047 #undef $ac_func
12049 /* Override any GCC internal prototype to avoid an error.
12050 Use char because int might match the return type of a GCC
12051 builtin and then its argument prototype would still apply. */
12052 #ifdef __cplusplus
12053 extern "C"
12054 #endif
12055 char $ac_func ();
12056 /* The GNU C library defines this for functions which it implements
12057 to always fail with ENOSYS. Some functions are actually named
12058 something starting with __ and the normal name is an alias. */
12059 #if defined __stub_$ac_func || defined __stub___$ac_func
12060 choke me
12061 #endif
12064 main ()
12066 return $ac_func ();
12068 return 0;
12070 _ACEOF
12071 rm -f conftest.$ac_objext conftest$ac_exeext
12072 if { (ac_try="$ac_link"
12073 case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12076 esac
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_link") 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12086 { (case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12089 esac
12090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091 (eval "$ac_try") 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; } &&
12095 { ac_try='test -s conftest$ac_exeext'
12096 { (case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099 esac
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_try") 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 eval "$as_ac_var=yes"
12106 else
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12110 eval "$as_ac_var=no"
12113 rm -f core conftest.err conftest.$ac_objext \
12114 conftest$ac_exeext conftest.$ac_ext
12116 ac_res=`eval echo '${'$as_ac_var'}'`
12117 { echo "$as_me:$LINENO: result: $ac_res" >&5
12118 echo "${ECHO_T}$ac_res" >&6; }
12119 if test `eval echo '${'$as_ac_var'}'` = yes; then
12120 cat >>confdefs.h <<_ACEOF
12121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12122 _ACEOF
12125 done
12154 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12155 stdio.h unistd.h
12157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 ac_res=`eval echo '${'$as_ac_Header'}'`
12165 { echo "$as_me:$LINENO: result: $ac_res" >&5
12166 echo "${ECHO_T}$ac_res" >&6; }
12167 else
12168 # Is the header compilable?
12169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h. */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 $ac_includes_default
12178 #include <$ac_header>
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (ac_try="$ac_compile"
12182 case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185 esac
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_compile") 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; } &&
12204 { ac_try='test -s conftest.$ac_objext'
12205 { (case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208 esac
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_header_compiler=yes
12215 else
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12219 ac_header_compiler=no
12222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12224 echo "${ECHO_T}$ac_header_compiler" >&6; }
12226 # Is the header present?
12227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12229 cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h. */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 #include <$ac_header>
12236 _ACEOF
12237 if { (ac_try="$ac_cpp conftest.$ac_ext"
12238 case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241 esac
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } >/dev/null; then
12250 if test -s conftest.err; then
12251 ac_cpp_err=$ac_c_preproc_warn_flag
12252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12253 else
12254 ac_cpp_err=
12256 else
12257 ac_cpp_err=yes
12259 if test -z "$ac_cpp_err"; then
12260 ac_header_preproc=yes
12261 else
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ac_header_preproc=no
12268 rm -f conftest.err conftest.$ac_ext
12269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12270 echo "${ECHO_T}$ac_header_preproc" >&6; }
12272 # So? What about this header?
12273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12274 yes:no: )
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12279 ac_header_preproc=yes
12281 no:yes:* )
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12294 ( cat <<\_ASBOX
12295 ## ----------------------------------- ##
12296 ## Report this to llvmbugs@cs.uiuc.edu ##
12297 ## ----------------------------------- ##
12298 _ASBOX
12299 ) | sed "s/^/$as_me: WARNING: /" >&2
12301 esac
12302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 else
12307 eval "$as_ac_Header=\$ac_header_preproc"
12309 ac_res=`eval echo '${'$as_ac_Header'}'`
12310 { echo "$as_me:$LINENO: result: $ac_res" >&5
12311 echo "${ECHO_T}$ac_res" >&6; }
12314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12315 cat >>confdefs.h <<_ACEOF
12316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12317 _ACEOF
12321 done
12327 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 ac_res=`eval echo '${'$as_ac_Header'}'`
12337 { echo "$as_me:$LINENO: result: $ac_res" >&5
12338 echo "${ECHO_T}$ac_res" >&6; }
12339 else
12340 # Is the header compilable?
12341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h. */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 $ac_includes_default
12350 #include <$ac_header>
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (ac_try="$ac_compile"
12354 case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357 esac
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_compile") 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12367 { (case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12370 esac
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_try") 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try='test -s conftest.$ac_objext'
12377 { (case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12380 esac
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_try") 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_header_compiler=yes
12387 else
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12391 ac_header_compiler=no
12394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12396 echo "${ECHO_T}$ac_header_compiler" >&6; }
12398 # Is the header present?
12399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12401 cat >conftest.$ac_ext <<_ACEOF
12402 /* confdefs.h. */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407 #include <$ac_header>
12408 _ACEOF
12409 if { (ac_try="$ac_cpp conftest.$ac_ext"
12410 case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12413 esac
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12416 ac_status=$?
12417 grep -v '^ *+' conftest.er1 >conftest.err
12418 rm -f conftest.er1
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } >/dev/null; then
12422 if test -s conftest.err; then
12423 ac_cpp_err=$ac_c_preproc_warn_flag
12424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12425 else
12426 ac_cpp_err=
12428 else
12429 ac_cpp_err=yes
12431 if test -z "$ac_cpp_err"; then
12432 ac_header_preproc=yes
12433 else
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12437 ac_header_preproc=no
12440 rm -f conftest.err conftest.$ac_ext
12441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442 echo "${ECHO_T}$ac_header_preproc" >&6; }
12444 # So? What about this header?
12445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12446 yes:no: )
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12451 ac_header_preproc=yes
12453 no:yes:* )
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12466 ( cat <<\_ASBOX
12467 ## ----------------------------------- ##
12468 ## Report this to llvmbugs@cs.uiuc.edu ##
12469 ## ----------------------------------- ##
12470 _ASBOX
12471 ) | sed "s/^/$as_me: WARNING: /" >&2
12473 esac
12474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 else
12479 eval "$as_ac_Header=\$ac_header_preproc"
12481 ac_res=`eval echo '${'$as_ac_Header'}'`
12482 { echo "$as_me:$LINENO: result: $ac_res" >&5
12483 echo "${ECHO_T}$ac_res" >&6; }
12486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12487 cat >>confdefs.h <<_ACEOF
12488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12489 _ACEOF
12493 done
12497 for ac_header in string.h strings.h
12499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 ac_res=`eval echo '${'$as_ac_Header'}'`
12507 { echo "$as_me:$LINENO: result: $ac_res" >&5
12508 echo "${ECHO_T}$ac_res" >&6; }
12509 else
12510 # Is the header compilable?
12511 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12513 cat >conftest.$ac_ext <<_ACEOF
12514 /* confdefs.h. */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519 $ac_includes_default
12520 #include <$ac_header>
12521 _ACEOF
12522 rm -f conftest.$ac_objext
12523 if { (ac_try="$ac_compile"
12524 case "(($ac_try" in
12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12527 esac
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_compile") 2>conftest.er1
12530 ac_status=$?
12531 grep -v '^ *+' conftest.er1 >conftest.err
12532 rm -f conftest.er1
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest.$ac_objext'
12547 { (case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_try") 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_header_compiler=yes
12557 else
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12561 ac_header_compiler=no
12564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12566 echo "${ECHO_T}$ac_header_compiler" >&6; }
12568 # Is the header present?
12569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12571 cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h. */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 #include <$ac_header>
12578 _ACEOF
12579 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
12586 ac_status=$?
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } >/dev/null; then
12592 if test -s conftest.err; then
12593 ac_cpp_err=$ac_c_preproc_warn_flag
12594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12595 else
12596 ac_cpp_err=
12598 else
12599 ac_cpp_err=yes
12601 if test -z "$ac_cpp_err"; then
12602 ac_header_preproc=yes
12603 else
12604 echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12607 ac_header_preproc=no
12610 rm -f conftest.err conftest.$ac_ext
12611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12612 echo "${ECHO_T}$ac_header_preproc" >&6; }
12614 # So? What about this header?
12615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12616 yes:no: )
12617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12621 ac_header_preproc=yes
12623 no:yes:* )
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12636 ( cat <<\_ASBOX
12637 ## ----------------------------------- ##
12638 ## Report this to llvmbugs@cs.uiuc.edu ##
12639 ## ----------------------------------- ##
12640 _ASBOX
12641 ) | sed "s/^/$as_me: WARNING: /" >&2
12643 esac
12644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649 eval "$as_ac_Header=\$ac_header_preproc"
12651 ac_res=`eval echo '${'$as_ac_Header'}'`
12652 { echo "$as_me:$LINENO: result: $ac_res" >&5
12653 echo "${ECHO_T}$ac_res" >&6; }
12656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12657 cat >>confdefs.h <<_ACEOF
12658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12659 _ACEOF
12660 break
12663 done
12668 for ac_func in strchr index
12670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676 cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h. */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12684 #define $ac_func innocuous_$ac_func
12686 /* System header to define __stub macros and hopefully few prototypes,
12687 which can conflict with char $ac_func (); below.
12688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12689 <limits.h> exists even on freestanding compilers. */
12691 #ifdef __STDC__
12692 # include <limits.h>
12693 #else
12694 # include <assert.h>
12695 #endif
12697 #undef $ac_func
12699 /* Override any GCC internal prototype to avoid an error.
12700 Use char because int might match the return type of a GCC
12701 builtin and then its argument prototype would still apply. */
12702 #ifdef __cplusplus
12703 extern "C"
12704 #endif
12705 char $ac_func ();
12706 /* The GNU C library defines this for functions which it implements
12707 to always fail with ENOSYS. Some functions are actually named
12708 something starting with __ and the normal name is an alias. */
12709 #if defined __stub_$ac_func || defined __stub___$ac_func
12710 choke me
12711 #endif
12714 main ()
12716 return $ac_func ();
12718 return 0;
12720 _ACEOF
12721 rm -f conftest.$ac_objext conftest$ac_exeext
12722 if { (ac_try="$ac_link"
12723 case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12726 esac
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_link") 2>conftest.er1
12729 ac_status=$?
12730 grep -v '^ *+' conftest.er1 >conftest.err
12731 rm -f conftest.er1
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
12735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12736 { (case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12739 esac
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_try") 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest$ac_exeext'
12746 { (case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749 esac
12750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_try") 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 eval "$as_ac_var=yes"
12756 else
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 eval "$as_ac_var=no"
12763 rm -f core conftest.err conftest.$ac_objext \
12764 conftest$ac_exeext conftest.$ac_ext
12766 ac_res=`eval echo '${'$as_ac_var'}'`
12767 { echo "$as_me:$LINENO: result: $ac_res" >&5
12768 echo "${ECHO_T}$ac_res" >&6; }
12769 if test `eval echo '${'$as_ac_var'}'` = yes; then
12770 cat >>confdefs.h <<_ACEOF
12771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12772 _ACEOF
12773 break
12775 done
12779 for ac_func in strrchr rindex
12781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787 cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h. */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12795 #define $ac_func innocuous_$ac_func
12797 /* System header to define __stub macros and hopefully few prototypes,
12798 which can conflict with char $ac_func (); below.
12799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12800 <limits.h> exists even on freestanding compilers. */
12802 #ifdef __STDC__
12803 # include <limits.h>
12804 #else
12805 # include <assert.h>
12806 #endif
12808 #undef $ac_func
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 char $ac_func ();
12817 /* The GNU C library defines this for functions which it implements
12818 to always fail with ENOSYS. Some functions are actually named
12819 something starting with __ and the normal name is an alias. */
12820 #if defined __stub_$ac_func || defined __stub___$ac_func
12821 choke me
12822 #endif
12825 main ()
12827 return $ac_func ();
12829 return 0;
12831 _ACEOF
12832 rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (ac_try="$ac_link"
12834 case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837 esac
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_link") 2>conftest.er1
12840 ac_status=$?
12841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847 { (case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850 esac
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest$ac_exeext'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860 esac
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 eval "$as_ac_var=yes"
12867 else
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12871 eval "$as_ac_var=no"
12874 rm -f core conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
12877 ac_res=`eval echo '${'$as_ac_var'}'`
12878 { echo "$as_me:$LINENO: result: $ac_res" >&5
12879 echo "${ECHO_T}$ac_res" >&6; }
12880 if test `eval echo '${'$as_ac_var'}'` = yes; then
12881 cat >>confdefs.h <<_ACEOF
12882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12883 _ACEOF
12884 break
12886 done
12890 for ac_func in memcpy bcopy
12892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898 cat >conftest.$ac_ext <<_ACEOF
12899 /* confdefs.h. */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12906 #define $ac_func innocuous_$ac_func
12908 /* System header to define __stub macros and hopefully few prototypes,
12909 which can conflict with char $ac_func (); below.
12910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12911 <limits.h> exists even on freestanding compilers. */
12913 #ifdef __STDC__
12914 # include <limits.h>
12915 #else
12916 # include <assert.h>
12917 #endif
12919 #undef $ac_func
12921 /* Override any GCC internal prototype to avoid an error.
12922 Use char because int might match the return type of a GCC
12923 builtin and then its argument prototype would still apply. */
12924 #ifdef __cplusplus
12925 extern "C"
12926 #endif
12927 char $ac_func ();
12928 /* The GNU C library defines this for functions which it implements
12929 to always fail with ENOSYS. Some functions are actually named
12930 something starting with __ and the normal name is an alias. */
12931 #if defined __stub_$ac_func || defined __stub___$ac_func
12932 choke me
12933 #endif
12936 main ()
12938 return $ac_func ();
12940 return 0;
12942 _ACEOF
12943 rm -f conftest.$ac_objext conftest$ac_exeext
12944 if { (ac_try="$ac_link"
12945 case "(($ac_try" in
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12948 esac
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_link") 2>conftest.er1
12951 ac_status=$?
12952 grep -v '^ *+' conftest.er1 >conftest.err
12953 rm -f conftest.er1
12954 cat conftest.err >&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12958 { (case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12961 esac
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_try") 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest$ac_exeext'
12968 { (case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971 esac
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_try") 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 eval "$as_ac_var=yes"
12978 else
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12982 eval "$as_ac_var=no"
12985 rm -f core conftest.err conftest.$ac_objext \
12986 conftest$ac_exeext conftest.$ac_ext
12988 ac_res=`eval echo '${'$as_ac_var'}'`
12989 { echo "$as_me:$LINENO: result: $ac_res" >&5
12990 echo "${ECHO_T}$ac_res" >&6; }
12991 if test `eval echo '${'$as_ac_var'}'` = yes; then
12992 cat >>confdefs.h <<_ACEOF
12993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12994 _ACEOF
12995 break
12997 done
13001 for ac_func in memmove strcmp
13003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 else
13009 cat >conftest.$ac_ext <<_ACEOF
13010 /* confdefs.h. */
13011 _ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13017 #define $ac_func innocuous_$ac_func
13019 /* System header to define __stub macros and hopefully few prototypes,
13020 which can conflict with char $ac_func (); below.
13021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13022 <limits.h> exists even on freestanding compilers. */
13024 #ifdef __STDC__
13025 # include <limits.h>
13026 #else
13027 # include <assert.h>
13028 #endif
13030 #undef $ac_func
13032 /* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13035 #ifdef __cplusplus
13036 extern "C"
13037 #endif
13038 char $ac_func ();
13039 /* The GNU C library defines this for functions which it implements
13040 to always fail with ENOSYS. Some functions are actually named
13041 something starting with __ and the normal name is an alias. */
13042 #if defined __stub_$ac_func || defined __stub___$ac_func
13043 choke me
13044 #endif
13047 main ()
13049 return $ac_func ();
13051 return 0;
13053 _ACEOF
13054 rm -f conftest.$ac_objext conftest$ac_exeext
13055 if { (ac_try="$ac_link"
13056 case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059 esac
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_link") 2>conftest.er1
13062 ac_status=$?
13063 grep -v '^ *+' conftest.er1 >conftest.err
13064 rm -f conftest.er1
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } &&
13068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13069 { (case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072 esac
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_try") 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; } &&
13078 { ac_try='test -s conftest$ac_exeext'
13079 { (case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13082 esac
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_try") 2>&5
13085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; }; then
13088 eval "$as_ac_var=yes"
13089 else
13090 echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13093 eval "$as_ac_var=no"
13096 rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext conftest.$ac_ext
13099 ac_res=`eval echo '${'$as_ac_var'}'`
13100 { echo "$as_me:$LINENO: result: $ac_res" >&5
13101 echo "${ECHO_T}$ac_res" >&6; }
13102 if test `eval echo '${'$as_ac_var'}'` = yes; then
13103 cat >>confdefs.h <<_ACEOF
13104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13105 _ACEOF
13108 done
13113 for ac_func in closedir opendir readdir
13115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121 cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h. */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13129 #define $ac_func innocuous_$ac_func
13131 /* System header to define __stub macros and hopefully few prototypes,
13132 which can conflict with char $ac_func (); below.
13133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13134 <limits.h> exists even on freestanding compilers. */
13136 #ifdef __STDC__
13137 # include <limits.h>
13138 #else
13139 # include <assert.h>
13140 #endif
13142 #undef $ac_func
13144 /* Override any GCC internal prototype to avoid an error.
13145 Use char because int might match the return type of a GCC
13146 builtin and then its argument prototype would still apply. */
13147 #ifdef __cplusplus
13148 extern "C"
13149 #endif
13150 char $ac_func ();
13151 /* The GNU C library defines this for functions which it implements
13152 to always fail with ENOSYS. Some functions are actually named
13153 something starting with __ and the normal name is an alias. */
13154 #if defined __stub_$ac_func || defined __stub___$ac_func
13155 choke me
13156 #endif
13159 main ()
13161 return $ac_func ();
13163 return 0;
13165 _ACEOF
13166 rm -f conftest.$ac_objext conftest$ac_exeext
13167 if { (ac_try="$ac_link"
13168 case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13171 esac
13172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_link") 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13181 { (case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184 esac
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_try") 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try='test -s conftest$ac_exeext'
13191 { (case "(($ac_try" in
13192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13194 esac
13195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196 (eval "$ac_try") 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 eval "$as_ac_var=yes"
13201 else
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 eval "$as_ac_var=no"
13208 rm -f core conftest.err conftest.$ac_objext \
13209 conftest$ac_exeext conftest.$ac_ext
13211 ac_res=`eval echo '${'$as_ac_var'}'`
13212 { echo "$as_me:$LINENO: result: $ac_res" >&5
13213 echo "${ECHO_T}$ac_res" >&6; }
13214 if test `eval echo '${'$as_ac_var'}'` = yes; then
13215 cat >>confdefs.h <<_ACEOF
13216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13217 _ACEOF
13220 done
13224 if test "$WITH_LLVMGCCDIR" = "default" ; then
13225 LLVMGCC="llvm-gcc${EXEEXT}"
13226 LLVMGXX="llvm-g++${EXEEXT}"
13227 LLVMGCCCOMMAND="$LLVMGCC"
13228 LLVMGXXCOMMAND="$LLVMGXX"
13229 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13231 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13233 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13234 set dummy $LLVMGCC; ac_word=$2
13235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13237 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 else
13240 case $LLVMGCC in
13241 [\\/]* | ?:[\\/]*)
13242 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13252 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13254 break 2
13256 done
13257 done
13258 IFS=$as_save_IFS
13261 esac
13263 LLVMGCC=$ac_cv_path_LLVMGCC
13264 if test -n "$LLVMGCC"; then
13265 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13266 echo "${ECHO_T}$LLVMGCC" >&6; }
13267 else
13268 { echo "$as_me:$LINENO: result: no" >&5
13269 echo "${ECHO_T}no" >&6; }
13273 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13274 set dummy $LLVMGXX; ac_word=$2
13275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13277 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 else
13280 case $LLVMGXX in
13281 [\\/]* | ?:[\\/]*)
13282 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13288 IFS=$as_save_IFS
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13292 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13294 break 2
13296 done
13297 done
13298 IFS=$as_save_IFS
13301 esac
13303 LLVMGXX=$ac_cv_path_LLVMGXX
13304 if test -n "$LLVMGXX"; then
13305 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13306 echo "${ECHO_T}$LLVMGXX" >&6; }
13307 else
13308 { echo "$as_me:$LINENO: result: no" >&5
13309 echo "${ECHO_T}no" >&6; }
13313 else
13314 if test -z "$LLVMGCC"; then
13315 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13316 LLVMGCCCOMMAND="$LLVMGCC"
13318 if test -z "$LLVMGXX"; then
13319 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13320 LLVMGXXCOMMAND="$LLVMGXX"
13323 LLVMGCC=$LLVMGCC
13325 LLVMGXX=$LLVMGXX
13327 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13329 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13334 # Check whether --with-llvmcc was given.
13335 if test "${with_llvmcc+set}" = set; then
13336 withval=$with_llvmcc;
13337 else
13338 with_llvmcc=check
13341 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13342 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13343 if test "$with_llvmcc" != "check"; then
13344 if (test "$with_llvmcc" != "llvm-gcc" &&
13345 test "$with_llvmcc" != "clang" &&
13346 test "$with_llvmcc" != "none"); then
13347 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13348 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13349 { (exit 1); exit 1; }; }
13351 WITH_LLVMCC="$with_llvmcc"
13352 elif test -n "$LLVMGCC"; then
13353 WITH_LLVMCC=llvm-gcc
13354 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13355 WITH_LLVMCC=clang
13356 else
13357 WITH_LLVMCC=none
13359 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13360 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13361 LLVMCC_OPTION=$WITH_LLVMCC
13364 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13365 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13367 ICC=no
13368 IXX=no
13369 case $CC in
13370 icc*|icpc*)
13371 ICC=yes
13372 IXX=yes
13376 esac
13378 if test "$GCC" != "yes" && test "$ICC" != "yes"
13379 then
13380 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13381 echo "$as_me: error: gcc|icc required but not found" >&2;}
13382 { (exit 1); exit 1; }; }
13385 if test "$GXX" != "yes" && test "$IXX" != "yes"
13386 then
13387 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13388 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13389 { (exit 1); exit 1; }; }
13392 if test "$GCC" = "yes"
13393 then
13394 cat >conftest.$ac_ext <<_ACEOF
13395 #if !defined(__GNUC__) || __GNUC__ < 3
13396 #error Unsupported GCC version
13397 #endif
13399 _ACEOF
13400 rm -f conftest.$ac_objext
13401 if { (ac_try="$ac_compile"
13402 case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13405 esac
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_compile") 2>conftest.er1
13408 ac_status=$?
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; } &&
13424 { ac_try='test -s conftest.$ac_objext'
13425 { (case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13428 esac
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_try") 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13435 else
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13439 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13440 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13441 { (exit 1); exit 1; }; }
13444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 if test -z "$llvm_cv_gnu_make_command"
13448 then
13449 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13450 echo "$as_me: error: GNU Make required but not found" >&2;}
13451 { (exit 1); exit 1; }; }
13454 { echo "$as_me:$LINENO: result: ok" >&5
13455 echo "${ECHO_T}ok" >&6; }
13457 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13458 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13459 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13461 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13463 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13464 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13468 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13469 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13470 if test "${ac_cv_lib_m_sin+set}" = set; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 else
13473 ac_check_lib_save_LIBS=$LIBS
13474 LIBS="-lm $LIBS"
13475 cat >conftest.$ac_ext <<_ACEOF
13476 /* confdefs.h. */
13477 _ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h. */
13482 /* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
13485 #ifdef __cplusplus
13486 extern "C"
13487 #endif
13488 char sin ();
13490 main ()
13492 return sin ();
13494 return 0;
13496 _ACEOF
13497 rm -f conftest.$ac_objext conftest$ac_exeext
13498 if { (ac_try="$ac_link"
13499 case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13502 esac
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_link") 2>conftest.er1
13505 ac_status=$?
13506 grep -v '^ *+' conftest.er1 >conftest.err
13507 rm -f conftest.er1
13508 cat conftest.err >&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
13511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13512 { (case "(($ac_try" in
13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514 *) ac_try_echo=$ac_try;;
13515 esac
13516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13517 (eval "$ac_try") 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest$ac_exeext'
13522 { (case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525 esac
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_try") 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_cv_lib_m_sin=yes
13532 else
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13536 ac_cv_lib_m_sin=no
13539 rm -f core conftest.err conftest.$ac_objext \
13540 conftest$ac_exeext conftest.$ac_ext
13541 LIBS=$ac_check_lib_save_LIBS
13543 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13544 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13545 if test $ac_cv_lib_m_sin = yes; then
13546 cat >>confdefs.h <<_ACEOF
13547 #define HAVE_LIBM 1
13548 _ACEOF
13550 LIBS="-lm $LIBS"
13554 if test "$llvm_cv_os_type" = "MingW" ; then
13556 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13557 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13558 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561 ac_check_lib_save_LIBS=$LIBS
13562 LIBS="-limagehlp $LIBS"
13563 cat >conftest.$ac_ext <<_ACEOF
13564 /* confdefs.h. */
13565 _ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13572 main ()
13574 return main ();
13576 return 0;
13578 _ACEOF
13579 rm -f conftest.$ac_objext conftest$ac_exeext
13580 if { (ac_try="$ac_link"
13581 case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13584 esac
13585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_link") 2>conftest.er1
13587 ac_status=$?
13588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } &&
13593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13594 { (case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13597 esac
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_try") 2>&5
13600 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; } &&
13603 { ac_try='test -s conftest$ac_exeext'
13604 { (case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13607 esac
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_try") 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
13613 ac_cv_lib_imagehlp_main=yes
13614 else
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13618 ac_cv_lib_imagehlp_main=no
13621 rm -f core conftest.err conftest.$ac_objext \
13622 conftest$ac_exeext conftest.$ac_ext
13623 LIBS=$ac_check_lib_save_LIBS
13625 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13626 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13627 if test $ac_cv_lib_imagehlp_main = yes; then
13628 cat >>confdefs.h <<_ACEOF
13629 #define HAVE_LIBIMAGEHLP 1
13630 _ACEOF
13632 LIBS="-limagehlp $LIBS"
13637 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13638 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13639 if test "${ac_cv_lib_psapi_main+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642 ac_check_lib_save_LIBS=$LIBS
13643 LIBS="-lpsapi $LIBS"
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h. */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13653 main ()
13655 return main ();
13657 return 0;
13659 _ACEOF
13660 rm -f conftest.$ac_objext conftest$ac_exeext
13661 if { (ac_try="$ac_link"
13662 case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665 esac
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_link") 2>conftest.er1
13668 ac_status=$?
13669 grep -v '^ *+' conftest.er1 >conftest.err
13670 rm -f conftest.er1
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13675 { (case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678 esac
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_try") 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try='test -s conftest$ac_exeext'
13685 { (case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13688 esac
13689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_try") 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
13694 ac_cv_lib_psapi_main=yes
13695 else
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13699 ac_cv_lib_psapi_main=no
13702 rm -f core conftest.err conftest.$ac_objext \
13703 conftest$ac_exeext conftest.$ac_ext
13704 LIBS=$ac_check_lib_save_LIBS
13706 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13707 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13708 if test $ac_cv_lib_psapi_main = yes; then
13709 cat >>confdefs.h <<_ACEOF
13710 #define HAVE_LIBPSAPI 1
13711 _ACEOF
13713 LIBS="-lpsapi $LIBS"
13719 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13720 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13721 if test "${ac_cv_search_dlopen+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13723 else
13724 ac_func_search_save_LIBS=$LIBS
13725 cat >conftest.$ac_ext <<_ACEOF
13726 /* confdefs.h. */
13727 _ACEOF
13728 cat confdefs.h >>conftest.$ac_ext
13729 cat >>conftest.$ac_ext <<_ACEOF
13730 /* end confdefs.h. */
13732 /* Override any GCC internal prototype to avoid an error.
13733 Use char because int might match the return type of a GCC
13734 builtin and then its argument prototype would still apply. */
13735 #ifdef __cplusplus
13736 extern "C"
13737 #endif
13738 char dlopen ();
13740 main ()
13742 return dlopen ();
13744 return 0;
13746 _ACEOF
13747 for ac_lib in '' dl; do
13748 if test -z "$ac_lib"; then
13749 ac_res="none required"
13750 else
13751 ac_res=-l$ac_lib
13752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13754 rm -f conftest.$ac_objext conftest$ac_exeext
13755 if { (ac_try="$ac_link"
13756 case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13759 esac
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_link") 2>conftest.er1
13762 ac_status=$?
13763 grep -v '^ *+' conftest.er1 >conftest.err
13764 rm -f conftest.er1
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } &&
13768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13769 { (case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13772 esac
13773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_try") 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; } &&
13778 { ac_try='test -s conftest$ac_exeext'
13779 { (case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13782 esac
13783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_try") 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
13788 ac_cv_search_dlopen=$ac_res
13789 else
13790 echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13796 rm -f core conftest.err conftest.$ac_objext \
13797 conftest$ac_exeext
13798 if test "${ac_cv_search_dlopen+set}" = set; then
13799 break
13801 done
13802 if test "${ac_cv_search_dlopen+set}" = set; then
13804 else
13805 ac_cv_search_dlopen=no
13807 rm conftest.$ac_ext
13808 LIBS=$ac_func_search_save_LIBS
13810 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13811 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13812 ac_res=$ac_cv_search_dlopen
13813 if test "$ac_res" != no; then
13814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13816 cat >>confdefs.h <<\_ACEOF
13817 #define HAVE_DLOPEN 1
13818 _ACEOF
13820 else
13821 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13822 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13826 if test "$llvm_cv_enable_libffi" = "yes" ; then
13827 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13828 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13829 if test "${ac_cv_search_ffi_call+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832 ac_func_search_save_LIBS=$LIBS
13833 cat >conftest.$ac_ext <<_ACEOF
13834 /* confdefs.h. */
13835 _ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13840 /* Override any GCC internal prototype to avoid an error.
13841 Use char because int might match the return type of a GCC
13842 builtin and then its argument prototype would still apply. */
13843 #ifdef __cplusplus
13844 extern "C"
13845 #endif
13846 char ffi_call ();
13848 main ()
13850 return ffi_call ();
13852 return 0;
13854 _ACEOF
13855 for ac_lib in '' ffi; do
13856 if test -z "$ac_lib"; then
13857 ac_res="none required"
13858 else
13859 ac_res=-l$ac_lib
13860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13862 rm -f conftest.$ac_objext conftest$ac_exeext
13863 if { (ac_try="$ac_link"
13864 case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13867 esac
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_link") 2>conftest.er1
13870 ac_status=$?
13871 grep -v '^ *+' conftest.er1 >conftest.err
13872 rm -f conftest.er1
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
13876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13877 { (case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13880 esac
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_try") 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } &&
13886 { ac_try='test -s conftest$ac_exeext'
13887 { (case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13890 esac
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_try") 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; }; then
13896 ac_cv_search_ffi_call=$ac_res
13897 else
13898 echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13904 rm -f core conftest.err conftest.$ac_objext \
13905 conftest$ac_exeext
13906 if test "${ac_cv_search_ffi_call+set}" = set; then
13907 break
13909 done
13910 if test "${ac_cv_search_ffi_call+set}" = set; then
13912 else
13913 ac_cv_search_ffi_call=no
13915 rm conftest.$ac_ext
13916 LIBS=$ac_func_search_save_LIBS
13918 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13919 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13920 ac_res=$ac_cv_search_ffi_call
13921 if test "$ac_res" != no; then
13922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13924 cat >>confdefs.h <<\_ACEOF
13925 #define HAVE_FFI_CALL 1
13926 _ACEOF
13928 else
13929 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13930 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13931 { (exit 1); exit 1; }; }
13936 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13937 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13938 if test "${ac_cv_search_mallinfo+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13940 else
13941 ac_func_search_save_LIBS=$LIBS
13942 cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h. */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13949 /* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13952 #ifdef __cplusplus
13953 extern "C"
13954 #endif
13955 char mallinfo ();
13957 main ()
13959 return mallinfo ();
13961 return 0;
13963 _ACEOF
13964 for ac_lib in '' malloc; do
13965 if test -z "$ac_lib"; then
13966 ac_res="none required"
13967 else
13968 ac_res=-l$ac_lib
13969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13971 rm -f conftest.$ac_objext conftest$ac_exeext
13972 if { (ac_try="$ac_link"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976 esac
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_link") 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13986 { (case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13989 esac
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_try") 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest$ac_exeext'
13996 { (case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
13999 esac
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_try") 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
14005 ac_cv_search_mallinfo=$ac_res
14006 else
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14013 rm -f core conftest.err conftest.$ac_objext \
14014 conftest$ac_exeext
14015 if test "${ac_cv_search_mallinfo+set}" = set; then
14016 break
14018 done
14019 if test "${ac_cv_search_mallinfo+set}" = set; then
14021 else
14022 ac_cv_search_mallinfo=no
14024 rm conftest.$ac_ext
14025 LIBS=$ac_func_search_save_LIBS
14027 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14028 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14029 ac_res=$ac_cv_search_mallinfo
14030 if test "$ac_res" != no; then
14031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14033 cat >>confdefs.h <<\_ACEOF
14034 #define HAVE_MALLINFO 1
14035 _ACEOF
14040 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14042 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14043 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14044 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 else
14047 ac_check_lib_save_LIBS=$LIBS
14048 LIBS="-lpthread $LIBS"
14049 cat >conftest.$ac_ext <<_ACEOF
14050 /* confdefs.h. */
14051 _ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14056 /* Override any GCC internal prototype to avoid an error.
14057 Use char because int might match the return type of a GCC
14058 builtin and then its argument prototype would still apply. */
14059 #ifdef __cplusplus
14060 extern "C"
14061 #endif
14062 char pthread_mutex_init ();
14064 main ()
14066 return pthread_mutex_init ();
14068 return 0;
14070 _ACEOF
14071 rm -f conftest.$ac_objext conftest$ac_exeext
14072 if { (ac_try="$ac_link"
14073 case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14076 esac
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_link") 2>conftest.er1
14079 ac_status=$?
14080 grep -v '^ *+' conftest.er1 >conftest.err
14081 rm -f conftest.er1
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } &&
14085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14086 { (case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14089 esac
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_try") 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; } &&
14095 { ac_try='test -s conftest$ac_exeext'
14096 { (case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_try") 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_cv_lib_pthread_pthread_mutex_init=yes
14106 else
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 ac_cv_lib_pthread_pthread_mutex_init=no
14113 rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14115 LIBS=$ac_check_lib_save_LIBS
14117 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14118 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14119 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14120 cat >>confdefs.h <<_ACEOF
14121 #define HAVE_LIBPTHREAD 1
14122 _ACEOF
14124 LIBS="-lpthread $LIBS"
14128 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14129 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14130 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133 ac_func_search_save_LIBS=$LIBS
14134 cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h. */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14141 /* Override any GCC internal prototype to avoid an error.
14142 Use char because int might match the return type of a GCC
14143 builtin and then its argument prototype would still apply. */
14144 #ifdef __cplusplus
14145 extern "C"
14146 #endif
14147 char pthread_mutex_lock ();
14149 main ()
14151 return pthread_mutex_lock ();
14153 return 0;
14155 _ACEOF
14156 for ac_lib in '' pthread; do
14157 if test -z "$ac_lib"; then
14158 ac_res="none required"
14159 else
14160 ac_res=-l$ac_lib
14161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14163 rm -f conftest.$ac_objext conftest$ac_exeext
14164 if { (ac_try="$ac_link"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14168 esac
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_link") 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14178 { (case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14181 esac
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_try") 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try='test -s conftest$ac_exeext'
14188 { (case "(($ac_try" in
14189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14191 esac
14192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193 (eval "$ac_try") 2>&5
14194 ac_status=$?
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; }; then
14197 ac_cv_search_pthread_mutex_lock=$ac_res
14198 else
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14205 rm -f core conftest.err conftest.$ac_objext \
14206 conftest$ac_exeext
14207 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14208 break
14210 done
14211 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14213 else
14214 ac_cv_search_pthread_mutex_lock=no
14216 rm conftest.$ac_ext
14217 LIBS=$ac_func_search_save_LIBS
14219 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14220 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14221 ac_res=$ac_cv_search_pthread_mutex_lock
14222 if test "$ac_res" != no; then
14223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14225 cat >>confdefs.h <<\_ACEOF
14226 #define HAVE_PTHREAD_MUTEX_LOCK 1
14227 _ACEOF
14231 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14232 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14233 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14235 else
14236 ac_func_search_save_LIBS=$LIBS
14237 cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h. */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14244 /* Override any GCC internal prototype to avoid an error.
14245 Use char because int might match the return type of a GCC
14246 builtin and then its argument prototype would still apply. */
14247 #ifdef __cplusplus
14248 extern "C"
14249 #endif
14250 char pthread_rwlock_init ();
14252 main ()
14254 return pthread_rwlock_init ();
14256 return 0;
14258 _ACEOF
14259 for ac_lib in '' pthread; do
14260 if test -z "$ac_lib"; then
14261 ac_res="none required"
14262 else
14263 ac_res=-l$ac_lib
14264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14266 rm -f conftest.$ac_objext conftest$ac_exeext
14267 if { (ac_try="$ac_link"
14268 case "(($ac_try" in
14269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14270 *) ac_try_echo=$ac_try;;
14271 esac
14272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14273 (eval "$ac_link") 2>conftest.er1
14274 ac_status=$?
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
14280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14281 { (case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14284 esac
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_try") 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; } &&
14290 { ac_try='test -s conftest$ac_exeext'
14291 { (case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14294 esac
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_try") 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14300 ac_cv_search_pthread_rwlock_init=$ac_res
14301 else
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14308 rm -f core conftest.err conftest.$ac_objext \
14309 conftest$ac_exeext
14310 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14311 break
14313 done
14314 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14316 else
14317 ac_cv_search_pthread_rwlock_init=no
14319 rm conftest.$ac_ext
14320 LIBS=$ac_func_search_save_LIBS
14322 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14323 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14324 ac_res=$ac_cv_search_pthread_rwlock_init
14325 if test "$ac_res" != no; then
14326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14328 cat >>confdefs.h <<\_ACEOF
14329 #define HAVE_PTHREAD_RWLOCK_INIT 1
14330 _ACEOF
14334 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14335 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14336 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 else
14339 ac_func_search_save_LIBS=$LIBS
14340 cat >conftest.$ac_ext <<_ACEOF
14341 /* confdefs.h. */
14342 _ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h. */
14347 /* Override any GCC internal prototype to avoid an error.
14348 Use char because int might match the return type of a GCC
14349 builtin and then its argument prototype would still apply. */
14350 #ifdef __cplusplus
14351 extern "C"
14352 #endif
14353 char pthread_getspecific ();
14355 main ()
14357 return pthread_getspecific ();
14359 return 0;
14361 _ACEOF
14362 for ac_lib in '' pthread; do
14363 if test -z "$ac_lib"; then
14364 ac_res="none required"
14365 else
14366 ac_res=-l$ac_lib
14367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14369 rm -f conftest.$ac_objext conftest$ac_exeext
14370 if { (ac_try="$ac_link"
14371 case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374 esac
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_link") 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14384 { (case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14387 esac
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_try") 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; } &&
14393 { ac_try='test -s conftest$ac_exeext'
14394 { (case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14397 esac
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_try") 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_search_pthread_getspecific=$ac_res
14404 else
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14411 rm -f core conftest.err conftest.$ac_objext \
14412 conftest$ac_exeext
14413 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14414 break
14416 done
14417 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14419 else
14420 ac_cv_search_pthread_getspecific=no
14422 rm conftest.$ac_ext
14423 LIBS=$ac_func_search_save_LIBS
14425 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14426 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14427 ac_res=$ac_cv_search_pthread_getspecific
14428 if test "$ac_res" != no; then
14429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14431 cat >>confdefs.h <<\_ACEOF
14432 #define HAVE_PTHREAD_GETSPECIFIC 1
14433 _ACEOF
14440 # Check whether --with-udis86 was given.
14441 if test "${with_udis86+set}" = set; then
14442 withval=$with_udis86;
14443 USE_UDIS86=1
14445 case "$withval" in
14446 /usr/lib|yes) ;;
14447 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14448 esac
14450 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14451 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14452 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455 ac_check_lib_save_LIBS=$LIBS
14456 LIBS="-ludis86 $LIBS"
14457 cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h. */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14464 /* Override any GCC internal prototype to avoid an error.
14465 Use char because int might match the return type of a GCC
14466 builtin and then its argument prototype would still apply. */
14467 #ifdef __cplusplus
14468 extern "C"
14469 #endif
14470 char ud_init ();
14472 main ()
14474 return ud_init ();
14476 return 0;
14478 _ACEOF
14479 rm -f conftest.$ac_objext conftest$ac_exeext
14480 if { (ac_try="$ac_link"
14481 case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_link") 2>conftest.er1
14487 ac_status=$?
14488 grep -v '^ *+' conftest.er1 >conftest.err
14489 rm -f conftest.er1
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } &&
14493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14494 { (case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14497 esac
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_try") 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; } &&
14503 { ac_try='test -s conftest$ac_exeext'
14504 { (case "(($ac_try" in
14505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506 *) ac_try_echo=$ac_try;;
14507 esac
14508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14509 (eval "$ac_try") 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_cv_lib_udis86_ud_init=yes
14514 else
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 ac_cv_lib_udis86_ud_init=no
14521 rm -f core conftest.err conftest.$ac_objext \
14522 conftest$ac_exeext conftest.$ac_ext
14523 LIBS=$ac_check_lib_save_LIBS
14525 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14526 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14527 if test $ac_cv_lib_udis86_ud_init = yes; then
14528 cat >>confdefs.h <<_ACEOF
14529 #define HAVE_LIBUDIS86 1
14530 _ACEOF
14532 LIBS="-ludis86 $LIBS"
14534 else
14536 echo "Error! You need to have libudis86 around."
14537 exit -1
14542 else
14543 USE_UDIS86=0
14548 cat >>confdefs.h <<_ACEOF
14549 #define USE_UDIS86 $USE_UDIS86
14550 _ACEOF
14554 # Check whether --with-oprofile was given.
14555 if test "${with_oprofile+set}" = set; then
14556 withval=$with_oprofile;
14557 USE_OPROFILE=1
14559 case "$withval" in
14560 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14561 no) llvm_cv_oppath=
14562 USE_OPROFILE=0
14564 *) llvm_cv_oppath="${withval}/lib/oprofile"
14565 CPPFLAGS="-I${withval}/include";;
14566 esac
14567 if test -n "$llvm_cv_oppath" ; then
14568 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14569 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14570 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14571 if test "${ac_cv_search_bfd_init+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 else
14574 ac_func_search_save_LIBS=$LIBS
14575 cat >conftest.$ac_ext <<_ACEOF
14576 /* confdefs.h. */
14577 _ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14582 /* Override any GCC internal prototype to avoid an error.
14583 Use char because int might match the return type of a GCC
14584 builtin and then its argument prototype would still apply. */
14585 #ifdef __cplusplus
14586 extern "C"
14587 #endif
14588 char bfd_init ();
14590 main ()
14592 return bfd_init ();
14594 return 0;
14596 _ACEOF
14597 for ac_lib in '' bfd; do
14598 if test -z "$ac_lib"; then
14599 ac_res="none required"
14600 else
14601 ac_res=-l$ac_lib
14602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14604 rm -f conftest.$ac_objext conftest$ac_exeext
14605 if { (ac_try="$ac_link"
14606 case "(($ac_try" in
14607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14609 esac
14610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_link") 2>conftest.er1
14612 ac_status=$?
14613 grep -v '^ *+' conftest.er1 >conftest.err
14614 rm -f conftest.er1
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } &&
14618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14619 { (case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14622 esac
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_cv_search_bfd_init=$ac_res
14639 else
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14646 rm -f core conftest.err conftest.$ac_objext \
14647 conftest$ac_exeext
14648 if test "${ac_cv_search_bfd_init+set}" = set; then
14649 break
14651 done
14652 if test "${ac_cv_search_bfd_init+set}" = set; then
14654 else
14655 ac_cv_search_bfd_init=no
14657 rm conftest.$ac_ext
14658 LIBS=$ac_func_search_save_LIBS
14660 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14661 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14662 ac_res=$ac_cv_search_bfd_init
14663 if test "$ac_res" != no; then
14664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14668 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14669 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14670 if test "${ac_cv_search_op_open_agent+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673 ac_func_search_save_LIBS=$LIBS
14674 cat >conftest.$ac_ext <<_ACEOF
14675 /* confdefs.h. */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14681 /* Override any GCC internal prototype to avoid an error.
14682 Use char because int might match the return type of a GCC
14683 builtin and then its argument prototype would still apply. */
14684 #ifdef __cplusplus
14685 extern "C"
14686 #endif
14687 char op_open_agent ();
14689 main ()
14691 return op_open_agent ();
14693 return 0;
14695 _ACEOF
14696 for ac_lib in '' opagent; do
14697 if test -z "$ac_lib"; then
14698 ac_res="none required"
14699 else
14700 ac_res=-l$ac_lib
14701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14703 rm -f conftest.$ac_objext conftest$ac_exeext
14704 if { (ac_try="$ac_link"
14705 case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14708 esac
14709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710 (eval "$ac_link") 2>conftest.er1
14711 ac_status=$?
14712 grep -v '^ *+' conftest.er1 >conftest.err
14713 rm -f conftest.er1
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } &&
14717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14718 { (case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14721 esac
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_try") 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; } &&
14727 { ac_try='test -s conftest$ac_exeext'
14728 { (case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14731 esac
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_try") 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }; then
14737 ac_cv_search_op_open_agent=$ac_res
14738 else
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14745 rm -f core conftest.err conftest.$ac_objext \
14746 conftest$ac_exeext
14747 if test "${ac_cv_search_op_open_agent+set}" = set; then
14748 break
14750 done
14751 if test "${ac_cv_search_op_open_agent+set}" = set; then
14753 else
14754 ac_cv_search_op_open_agent=no
14756 rm conftest.$ac_ext
14757 LIBS=$ac_func_search_save_LIBS
14759 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14760 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14761 ac_res=$ac_cv_search_op_open_agent
14762 if test "$ac_res" != no; then
14763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14765 else
14767 echo "Error! You need to have libopagent around."
14768 exit -1
14772 if test "${ac_cv_header_opagent_h+set}" = set; then
14773 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14774 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14775 if test "${ac_cv_header_opagent_h+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14779 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14780 else
14781 # Is the header compilable?
14782 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14783 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14784 cat >conftest.$ac_ext <<_ACEOF
14785 /* confdefs.h. */
14786 _ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h. */
14790 $ac_includes_default
14791 #include <opagent.h>
14792 _ACEOF
14793 rm -f conftest.$ac_objext
14794 if { (ac_try="$ac_compile"
14795 case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798 esac
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_compile") 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14808 { (case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14811 esac
14812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813 (eval "$ac_try") 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; } &&
14817 { ac_try='test -s conftest.$ac_objext'
14818 { (case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14821 esac
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_try") 2>&5
14824 ac_status=$?
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_header_compiler=yes
14828 else
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_header_compiler=no
14835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14837 echo "${ECHO_T}$ac_header_compiler" >&6; }
14839 # Is the header present?
14840 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14841 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14842 cat >conftest.$ac_ext <<_ACEOF
14843 /* confdefs.h. */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 #include <opagent.h>
14849 _ACEOF
14850 if { (ac_try="$ac_cpp conftest.$ac_ext"
14851 case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14854 esac
14855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14857 ac_status=$?
14858 grep -v '^ *+' conftest.er1 >conftest.err
14859 rm -f conftest.er1
14860 cat conftest.err >&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } >/dev/null; then
14863 if test -s conftest.err; then
14864 ac_cpp_err=$ac_c_preproc_warn_flag
14865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14866 else
14867 ac_cpp_err=
14869 else
14870 ac_cpp_err=yes
14872 if test -z "$ac_cpp_err"; then
14873 ac_header_preproc=yes
14874 else
14875 echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.$ac_ext >&5
14878 ac_header_preproc=no
14881 rm -f conftest.err conftest.$ac_ext
14882 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14883 echo "${ECHO_T}$ac_header_preproc" >&6; }
14885 # So? What about this header?
14886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14887 yes:no: )
14888 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14889 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14890 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14891 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14892 ac_header_preproc=yes
14894 no:yes:* )
14895 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14896 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14898 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14900 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14901 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14902 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14904 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14906 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14907 ( cat <<\_ASBOX
14908 ## ----------------------------------- ##
14909 ## Report this to llvmbugs@cs.uiuc.edu ##
14910 ## ----------------------------------- ##
14911 _ASBOX
14912 ) | sed "s/^/$as_me: WARNING: /" >&2
14914 esac
14915 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14916 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14917 if test "${ac_cv_header_opagent_h+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920 ac_cv_header_opagent_h=$ac_header_preproc
14922 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14923 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14926 if test $ac_cv_header_opagent_h = yes; then
14928 else
14930 echo "Error! You need to have opagent.h around."
14931 exit -1
14938 else
14940 USE_OPROFILE=0
14946 cat >>confdefs.h <<_ACEOF
14947 #define USE_OPROFILE $USE_OPROFILE
14948 _ACEOF
14957 ac_header_dirent=no
14958 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14959 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14960 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14961 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 else
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h. */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 #include <sys/types.h>
14972 #include <$ac_hdr>
14975 main ()
14977 if ((DIR *) 0)
14978 return 0;
14980 return 0;
14982 _ACEOF
14983 rm -f conftest.$ac_objext
14984 if { (ac_try="$ac_compile"
14985 case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14988 esac
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_compile") 2>conftest.er1
14991 ac_status=$?
14992 grep -v '^ *+' conftest.er1 >conftest.err
14993 rm -f conftest.er1
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001 esac
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; } &&
15007 { ac_try='test -s conftest.$ac_objext'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15011 esac
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 eval "$as_ac_Header=yes"
15018 else
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15022 eval "$as_ac_Header=no"
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15027 ac_res=`eval echo '${'$as_ac_Header'}'`
15028 { echo "$as_me:$LINENO: result: $ac_res" >&5
15029 echo "${ECHO_T}$ac_res" >&6; }
15030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15031 cat >>confdefs.h <<_ACEOF
15032 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15033 _ACEOF
15035 ac_header_dirent=$ac_hdr; break
15038 done
15039 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15040 if test $ac_header_dirent = dirent.h; then
15041 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15042 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15043 if test "${ac_cv_search_opendir+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 else
15046 ac_func_search_save_LIBS=$LIBS
15047 cat >conftest.$ac_ext <<_ACEOF
15048 /* confdefs.h. */
15049 _ACEOF
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15054 /* Override any GCC internal prototype to avoid an error.
15055 Use char because int might match the return type of a GCC
15056 builtin and then its argument prototype would still apply. */
15057 #ifdef __cplusplus
15058 extern "C"
15059 #endif
15060 char opendir ();
15062 main ()
15064 return opendir ();
15066 return 0;
15068 _ACEOF
15069 for ac_lib in '' dir; do
15070 if test -z "$ac_lib"; then
15071 ac_res="none required"
15072 else
15073 ac_res=-l$ac_lib
15074 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15076 rm -f conftest.$ac_objext conftest$ac_exeext
15077 if { (ac_try="$ac_link"
15078 case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15081 esac
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_link") 2>conftest.er1
15084 ac_status=$?
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; } &&
15100 { ac_try='test -s conftest$ac_exeext'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104 esac
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 ac_cv_search_opendir=$ac_res
15111 else
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15118 rm -f core conftest.err conftest.$ac_objext \
15119 conftest$ac_exeext
15120 if test "${ac_cv_search_opendir+set}" = set; then
15121 break
15123 done
15124 if test "${ac_cv_search_opendir+set}" = set; then
15126 else
15127 ac_cv_search_opendir=no
15129 rm conftest.$ac_ext
15130 LIBS=$ac_func_search_save_LIBS
15132 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15133 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15134 ac_res=$ac_cv_search_opendir
15135 if test "$ac_res" != no; then
15136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15140 else
15141 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15142 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15143 if test "${ac_cv_search_opendir+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15145 else
15146 ac_func_search_save_LIBS=$LIBS
15147 cat >conftest.$ac_ext <<_ACEOF
15148 /* confdefs.h. */
15149 _ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h. */
15154 /* Override any GCC internal prototype to avoid an error.
15155 Use char because int might match the return type of a GCC
15156 builtin and then its argument prototype would still apply. */
15157 #ifdef __cplusplus
15158 extern "C"
15159 #endif
15160 char opendir ();
15162 main ()
15164 return opendir ();
15166 return 0;
15168 _ACEOF
15169 for ac_lib in '' x; do
15170 if test -z "$ac_lib"; then
15171 ac_res="none required"
15172 else
15173 ac_res=-l$ac_lib
15174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (ac_try="$ac_link"
15178 case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15181 esac
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_link") 2>conftest.er1
15184 ac_status=$?
15185 grep -v '^ *+' conftest.er1 >conftest.err
15186 rm -f conftest.er1
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15191 { (case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15194 esac
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_try") 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest$ac_exeext'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
15210 ac_cv_search_opendir=$ac_res
15211 else
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15218 rm -f core conftest.err conftest.$ac_objext \
15219 conftest$ac_exeext
15220 if test "${ac_cv_search_opendir+set}" = set; then
15221 break
15223 done
15224 if test "${ac_cv_search_opendir+set}" = set; then
15226 else
15227 ac_cv_search_opendir=no
15229 rm conftest.$ac_ext
15230 LIBS=$ac_func_search_save_LIBS
15232 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15233 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15234 ac_res=$ac_cv_search_opendir
15235 if test "$ac_res" != no; then
15236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15242 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15243 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15244 if test "${ac_cv_header_mmap_anon+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15246 else
15247 ac_ext=c
15248 ac_cpp='$CPP $CPPFLAGS'
15249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15253 cat >conftest.$ac_ext <<_ACEOF
15254 /* confdefs.h. */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15259 #include <sys/mman.h>
15260 #include <unistd.h>
15261 #include <fcntl.h>
15263 main ()
15265 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15267 return 0;
15269 _ACEOF
15270 rm -f conftest.$ac_objext
15271 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15285 { (case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15288 esac
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_try") 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; } &&
15294 { ac_try='test -s conftest.$ac_objext'
15295 { (case "(($ac_try" in
15296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297 *) ac_try_echo=$ac_try;;
15298 esac
15299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15300 (eval "$ac_try") 2>&5
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }; then
15304 ac_cv_header_mmap_anon=yes
15305 else
15306 echo "$as_me: failed program was:" >&5
15307 sed 's/^/| /' conftest.$ac_ext >&5
15309 ac_cv_header_mmap_anon=no
15312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15313 ac_ext=c
15314 ac_cpp='$CPP $CPPFLAGS'
15315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15321 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15322 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15323 if test "$ac_cv_header_mmap_anon" = yes; then
15325 cat >>confdefs.h <<\_ACEOF
15326 #define HAVE_MMAP_ANONYMOUS 1
15327 _ACEOF
15331 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15332 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15333 if test "${ac_cv_header_stat_broken+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
15335 else
15336 cat >conftest.$ac_ext <<_ACEOF
15337 /* confdefs.h. */
15338 _ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h. */
15342 #include <sys/types.h>
15343 #include <sys/stat.h>
15345 #if defined S_ISBLK && defined S_IFDIR
15346 # if S_ISBLK (S_IFDIR)
15347 You lose.
15348 # endif
15349 #endif
15351 #if defined S_ISBLK && defined S_IFCHR
15352 # if S_ISBLK (S_IFCHR)
15353 You lose.
15354 # endif
15355 #endif
15357 #if defined S_ISLNK && defined S_IFREG
15358 # if S_ISLNK (S_IFREG)
15359 You lose.
15360 # endif
15361 #endif
15363 #if defined S_ISSOCK && defined S_IFREG
15364 # if S_ISSOCK (S_IFREG)
15365 You lose.
15366 # endif
15367 #endif
15369 _ACEOF
15370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15371 $EGREP "You lose" >/dev/null 2>&1; then
15372 ac_cv_header_stat_broken=yes
15373 else
15374 ac_cv_header_stat_broken=no
15376 rm -f conftest*
15379 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15380 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15381 if test $ac_cv_header_stat_broken = yes; then
15383 cat >>confdefs.h <<\_ACEOF
15384 #define STAT_MACROS_BROKEN 1
15385 _ACEOF
15389 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15390 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15391 if test "${ac_cv_header_stdc+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 else
15394 cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h. */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 #include <stdlib.h>
15401 #include <stdarg.h>
15402 #include <string.h>
15403 #include <float.h>
15406 main ()
15410 return 0;
15412 _ACEOF
15413 rm -f conftest.$ac_objext
15414 if { (ac_try="$ac_compile"
15415 case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_compile") 2>conftest.er1
15421 ac_status=$?
15422 grep -v '^ *+' conftest.er1 >conftest.err
15423 rm -f conftest.er1
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } &&
15427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15428 { (case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431 esac
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_try") 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; } &&
15437 { ac_try='test -s conftest.$ac_objext'
15438 { (case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15441 esac
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_try") 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 ac_cv_header_stdc=yes
15448 else
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15452 ac_cv_header_stdc=no
15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 if test $ac_cv_header_stdc = yes; then
15458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15459 cat >conftest.$ac_ext <<_ACEOF
15460 /* confdefs.h. */
15461 _ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465 #include <string.h>
15467 _ACEOF
15468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15469 $EGREP "memchr" >/dev/null 2>&1; then
15471 else
15472 ac_cv_header_stdc=no
15474 rm -f conftest*
15478 if test $ac_cv_header_stdc = yes; then
15479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15480 cat >conftest.$ac_ext <<_ACEOF
15481 /* confdefs.h. */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 #include <stdlib.h>
15488 _ACEOF
15489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15490 $EGREP "free" >/dev/null 2>&1; then
15492 else
15493 ac_cv_header_stdc=no
15495 rm -f conftest*
15499 if test $ac_cv_header_stdc = yes; then
15500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15501 if test "$cross_compiling" = yes; then
15503 else
15504 cat >conftest.$ac_ext <<_ACEOF
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 #include <ctype.h>
15511 #include <stdlib.h>
15512 #if ((' ' & 0x0FF) == 0x020)
15513 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15514 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15515 #else
15516 # define ISLOWER(c) \
15517 (('a' <= (c) && (c) <= 'i') \
15518 || ('j' <= (c) && (c) <= 'r') \
15519 || ('s' <= (c) && (c) <= 'z'))
15520 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15521 #endif
15523 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15525 main ()
15527 int i;
15528 for (i = 0; i < 256; i++)
15529 if (XOR (islower (i), ISLOWER (i))
15530 || toupper (i) != TOUPPER (i))
15531 return 2;
15532 return 0;
15534 _ACEOF
15535 rm -f conftest$ac_exeext
15536 if { (ac_try="$ac_link"
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_link") 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15546 { (case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549 esac
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_try") 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15556 else
15557 echo "$as_me: program exited with status $ac_status" >&5
15558 echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15561 ( exit $ac_status )
15562 ac_cv_header_stdc=no
15564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15570 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15571 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15572 if test $ac_cv_header_stdc = yes; then
15574 cat >>confdefs.h <<\_ACEOF
15575 #define STDC_HEADERS 1
15576 _ACEOF
15580 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15581 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15582 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585 cat >conftest.$ac_ext <<_ACEOF
15586 /* confdefs.h. */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591 #include <sys/types.h>
15592 #include <sys/wait.h>
15593 #ifndef WEXITSTATUS
15594 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15595 #endif
15596 #ifndef WIFEXITED
15597 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15598 #endif
15601 main ()
15603 int s;
15604 wait (&s);
15605 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15607 return 0;
15609 _ACEOF
15610 rm -f conftest.$ac_objext
15611 if { (ac_try="$ac_compile"
15612 case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15615 esac
15616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_compile") 2>conftest.er1
15618 ac_status=$?
15619 grep -v '^ *+' conftest.er1 >conftest.err
15620 rm -f conftest.er1
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15625 { (case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_try") 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest.$ac_objext'
15635 { (case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_try") 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
15644 ac_cv_header_sys_wait_h=yes
15645 else
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 ac_cv_header_sys_wait_h=no
15652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15654 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15655 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15656 if test $ac_cv_header_sys_wait_h = yes; then
15658 cat >>confdefs.h <<\_ACEOF
15659 #define HAVE_SYS_WAIT_H 1
15660 _ACEOF
15664 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15665 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15666 if test "${ac_cv_header_time+set}" = set; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15668 else
15669 cat >conftest.$ac_ext <<_ACEOF
15670 /* confdefs.h. */
15671 _ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h. */
15675 #include <sys/types.h>
15676 #include <sys/time.h>
15677 #include <time.h>
15680 main ()
15682 if ((struct tm *) 0)
15683 return 0;
15685 return 0;
15687 _ACEOF
15688 rm -f conftest.$ac_objext
15689 if { (ac_try="$ac_compile"
15690 case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15693 esac
15694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15695 (eval "$ac_compile") 2>conftest.er1
15696 ac_status=$?
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15703 { (case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15706 esac
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_try") 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest.$ac_objext'
15713 { (case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716 esac
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_cv_header_time=yes
15723 else
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15727 ac_cv_header_time=no
15730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15733 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15734 if test $ac_cv_header_time = yes; then
15736 cat >>confdefs.h <<\_ACEOF
15737 #define TIME_WITH_SYS_TIME 1
15738 _ACEOF
15749 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15758 ac_res=`eval echo '${'$as_ac_Header'}'`
15759 { echo "$as_me:$LINENO: result: $ac_res" >&5
15760 echo "${ECHO_T}$ac_res" >&6; }
15761 else
15762 # Is the header compilable?
15763 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15765 cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h. */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 $ac_includes_default
15772 #include <$ac_header>
15773 _ACEOF
15774 rm -f conftest.$ac_objext
15775 if { (ac_try="$ac_compile"
15776 case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15779 esac
15780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_compile") 2>conftest.er1
15782 ac_status=$?
15783 grep -v '^ *+' conftest.er1 >conftest.err
15784 rm -f conftest.er1
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } &&
15788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15789 { (case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792 esac
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_try") 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try='test -s conftest.$ac_objext'
15799 { (case "(($ac_try" in
15800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15801 *) ac_try_echo=$ac_try;;
15802 esac
15803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15804 (eval "$ac_try") 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_header_compiler=yes
15809 else
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 ac_header_compiler=no
15816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15818 echo "${ECHO_T}$ac_header_compiler" >&6; }
15820 # Is the header present?
15821 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15823 cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h. */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15829 #include <$ac_header>
15830 _ACEOF
15831 if { (ac_try="$ac_cpp conftest.$ac_ext"
15832 case "(($ac_try" in
15833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834 *) ac_try_echo=$ac_try;;
15835 esac
15836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15838 ac_status=$?
15839 grep -v '^ *+' conftest.er1 >conftest.err
15840 rm -f conftest.er1
15841 cat conftest.err >&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } >/dev/null; then
15844 if test -s conftest.err; then
15845 ac_cpp_err=$ac_c_preproc_warn_flag
15846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15847 else
15848 ac_cpp_err=
15850 else
15851 ac_cpp_err=yes
15853 if test -z "$ac_cpp_err"; then
15854 ac_header_preproc=yes
15855 else
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15859 ac_header_preproc=no
15862 rm -f conftest.err conftest.$ac_ext
15863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15864 echo "${ECHO_T}$ac_header_preproc" >&6; }
15866 # So? What about this header?
15867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15868 yes:no: )
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15873 ac_header_preproc=yes
15875 no:yes:* )
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15888 ( cat <<\_ASBOX
15889 ## ----------------------------------- ##
15890 ## Report this to llvmbugs@cs.uiuc.edu ##
15891 ## ----------------------------------- ##
15892 _ASBOX
15893 ) | sed "s/^/$as_me: WARNING: /" >&2
15895 esac
15896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15899 echo $ECHO_N "(cached) $ECHO_C" >&6
15900 else
15901 eval "$as_ac_Header=\$ac_header_preproc"
15903 ac_res=`eval echo '${'$as_ac_Header'}'`
15904 { echo "$as_me:$LINENO: result: $ac_res" >&5
15905 echo "${ECHO_T}$ac_res" >&6; }
15908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15909 cat >>confdefs.h <<_ACEOF
15910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15911 _ACEOF
15915 done
15923 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 ac_res=`eval echo '${'$as_ac_Header'}'`
15933 { echo "$as_me:$LINENO: result: $ac_res" >&5
15934 echo "${ECHO_T}$ac_res" >&6; }
15935 else
15936 # Is the header compilable?
15937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15939 cat >conftest.$ac_ext <<_ACEOF
15940 /* confdefs.h. */
15941 _ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945 $ac_includes_default
15946 #include <$ac_header>
15947 _ACEOF
15948 rm -f conftest.$ac_objext
15949 if { (ac_try="$ac_compile"
15950 case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953 esac
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_compile") 2>conftest.er1
15956 ac_status=$?
15957 grep -v '^ *+' conftest.er1 >conftest.err
15958 rm -f conftest.er1
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15963 { (case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966 esac
15967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_try") 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
15973 { (case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15976 esac
15977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_try") 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 ac_header_compiler=yes
15983 else
15984 echo "$as_me: failed program was:" >&5
15985 sed 's/^/| /' conftest.$ac_ext >&5
15987 ac_header_compiler=no
15990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15992 echo "${ECHO_T}$ac_header_compiler" >&6; }
15994 # Is the header present?
15995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15997 cat >conftest.$ac_ext <<_ACEOF
15998 /* confdefs.h. */
15999 _ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16003 #include <$ac_header>
16004 _ACEOF
16005 if { (ac_try="$ac_cpp conftest.$ac_ext"
16006 case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16009 esac
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } >/dev/null; then
16018 if test -s conftest.err; then
16019 ac_cpp_err=$ac_c_preproc_warn_flag
16020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16021 else
16022 ac_cpp_err=
16024 else
16025 ac_cpp_err=yes
16027 if test -z "$ac_cpp_err"; then
16028 ac_header_preproc=yes
16029 else
16030 echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16033 ac_header_preproc=no
16036 rm -f conftest.err conftest.$ac_ext
16037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16038 echo "${ECHO_T}$ac_header_preproc" >&6; }
16040 # So? What about this header?
16041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16042 yes:no: )
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16047 ac_header_preproc=yes
16049 no:yes:* )
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16062 ( cat <<\_ASBOX
16063 ## ----------------------------------- ##
16064 ## Report this to llvmbugs@cs.uiuc.edu ##
16065 ## ----------------------------------- ##
16066 _ASBOX
16067 ) | sed "s/^/$as_me: WARNING: /" >&2
16069 esac
16070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16074 else
16075 eval "$as_ac_Header=\$ac_header_preproc"
16077 ac_res=`eval echo '${'$as_ac_Header'}'`
16078 { echo "$as_me:$LINENO: result: $ac_res" >&5
16079 echo "${ECHO_T}$ac_res" >&6; }
16082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16083 cat >>confdefs.h <<_ACEOF
16084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16085 _ACEOF
16089 done
16093 for ac_header in utime.h windows.h
16095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16102 ac_res=`eval echo '${'$as_ac_Header'}'`
16103 { echo "$as_me:$LINENO: result: $ac_res" >&5
16104 echo "${ECHO_T}$ac_res" >&6; }
16105 else
16106 # Is the header compilable?
16107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16109 cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h. */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 $ac_includes_default
16116 #include <$ac_header>
16117 _ACEOF
16118 rm -f conftest.$ac_objext
16119 if { (ac_try="$ac_compile"
16120 case "(($ac_try" in
16121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16123 esac
16124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125 (eval "$ac_compile") 2>conftest.er1
16126 ac_status=$?
16127 grep -v '^ *+' conftest.er1 >conftest.err
16128 rm -f conftest.er1
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16133 { (case "(($ac_try" in
16134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135 *) ac_try_echo=$ac_try;;
16136 esac
16137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_try") 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; } &&
16142 { ac_try='test -s conftest.$ac_objext'
16143 { (case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16146 esac
16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148 (eval "$ac_try") 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 ac_header_compiler=yes
16153 else
16154 echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16157 ac_header_compiler=no
16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16162 echo "${ECHO_T}$ac_header_compiler" >&6; }
16164 # Is the header present?
16165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16167 cat >conftest.$ac_ext <<_ACEOF
16168 /* confdefs.h. */
16169 _ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h. */
16173 #include <$ac_header>
16174 _ACEOF
16175 if { (ac_try="$ac_cpp conftest.$ac_ext"
16176 case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16179 esac
16180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16182 ac_status=$?
16183 grep -v '^ *+' conftest.er1 >conftest.err
16184 rm -f conftest.er1
16185 cat conftest.err >&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } >/dev/null; then
16188 if test -s conftest.err; then
16189 ac_cpp_err=$ac_c_preproc_warn_flag
16190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16191 else
16192 ac_cpp_err=
16194 else
16195 ac_cpp_err=yes
16197 if test -z "$ac_cpp_err"; then
16198 ac_header_preproc=yes
16199 else
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16203 ac_header_preproc=no
16206 rm -f conftest.err conftest.$ac_ext
16207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16208 echo "${ECHO_T}$ac_header_preproc" >&6; }
16210 # So? What about this header?
16211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16212 yes:no: )
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16217 ac_header_preproc=yes
16219 no:yes:* )
16220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16232 ( cat <<\_ASBOX
16233 ## ----------------------------------- ##
16234 ## Report this to llvmbugs@cs.uiuc.edu ##
16235 ## ----------------------------------- ##
16236 _ASBOX
16237 ) | sed "s/^/$as_me: WARNING: /" >&2
16239 esac
16240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16243 echo $ECHO_N "(cached) $ECHO_C" >&6
16244 else
16245 eval "$as_ac_Header=\$ac_header_preproc"
16247 ac_res=`eval echo '${'$as_ac_Header'}'`
16248 { echo "$as_me:$LINENO: result: $ac_res" >&5
16249 echo "${ECHO_T}$ac_res" >&6; }
16252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16253 cat >>confdefs.h <<_ACEOF
16254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16255 _ACEOF
16259 done
16265 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 ac_res=`eval echo '${'$as_ac_Header'}'`
16275 { echo "$as_me:$LINENO: result: $ac_res" >&5
16276 echo "${ECHO_T}$ac_res" >&6; }
16277 else
16278 # Is the header compilable?
16279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16281 cat >conftest.$ac_ext <<_ACEOF
16282 /* confdefs.h. */
16283 _ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 $ac_includes_default
16288 #include <$ac_header>
16289 _ACEOF
16290 rm -f conftest.$ac_objext
16291 if { (ac_try="$ac_compile"
16292 case "(($ac_try" in
16293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294 *) ac_try_echo=$ac_try;;
16295 esac
16296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297 (eval "$ac_compile") 2>conftest.er1
16298 ac_status=$?
16299 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1
16301 cat conftest.err >&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
16304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16305 { (case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_try") 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try='test -s conftest.$ac_objext'
16315 { (case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16318 esac
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_try") 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 ac_header_compiler=yes
16325 else
16326 echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16329 ac_header_compiler=no
16332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16334 echo "${ECHO_T}$ac_header_compiler" >&6; }
16336 # Is the header present?
16337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16339 cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h. */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 #include <$ac_header>
16346 _ACEOF
16347 if { (ac_try="$ac_cpp conftest.$ac_ext"
16348 case "(($ac_try" in
16349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350 *) ac_try_echo=$ac_try;;
16351 esac
16352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16354 ac_status=$?
16355 grep -v '^ *+' conftest.er1 >conftest.err
16356 rm -f conftest.er1
16357 cat conftest.err >&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } >/dev/null; then
16360 if test -s conftest.err; then
16361 ac_cpp_err=$ac_c_preproc_warn_flag
16362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16363 else
16364 ac_cpp_err=
16366 else
16367 ac_cpp_err=yes
16369 if test -z "$ac_cpp_err"; then
16370 ac_header_preproc=yes
16371 else
16372 echo "$as_me: failed program was:" >&5
16373 sed 's/^/| /' conftest.$ac_ext >&5
16375 ac_header_preproc=no
16378 rm -f conftest.err conftest.$ac_ext
16379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16380 echo "${ECHO_T}$ac_header_preproc" >&6; }
16382 # So? What about this header?
16383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16384 yes:no: )
16385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16389 ac_header_preproc=yes
16391 no:yes:* )
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16404 ( cat <<\_ASBOX
16405 ## ----------------------------------- ##
16406 ## Report this to llvmbugs@cs.uiuc.edu ##
16407 ## ----------------------------------- ##
16408 _ASBOX
16409 ) | sed "s/^/$as_me: WARNING: /" >&2
16411 esac
16412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16416 else
16417 eval "$as_ac_Header=\$ac_header_preproc"
16419 ac_res=`eval echo '${'$as_ac_Header'}'`
16420 { echo "$as_me:$LINENO: result: $ac_res" >&5
16421 echo "${ECHO_T}$ac_res" >&6; }
16424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16425 cat >>confdefs.h <<_ACEOF
16426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16427 _ACEOF
16431 done
16437 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 ac_res=`eval echo '${'$as_ac_Header'}'`
16447 { echo "$as_me:$LINENO: result: $ac_res" >&5
16448 echo "${ECHO_T}$ac_res" >&6; }
16449 else
16450 # Is the header compilable?
16451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16453 cat >conftest.$ac_ext <<_ACEOF
16454 /* confdefs.h. */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16459 $ac_includes_default
16460 #include <$ac_header>
16461 _ACEOF
16462 rm -f conftest.$ac_objext
16463 if { (ac_try="$ac_compile"
16464 case "(($ac_try" in
16465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466 *) ac_try_echo=$ac_try;;
16467 esac
16468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16469 (eval "$ac_compile") 2>conftest.er1
16470 ac_status=$?
16471 grep -v '^ *+' conftest.er1 >conftest.err
16472 rm -f conftest.er1
16473 cat conftest.err >&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); } &&
16476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16477 { (case "(($ac_try" in
16478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479 *) ac_try_echo=$ac_try;;
16480 esac
16481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16482 (eval "$ac_try") 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; } &&
16486 { ac_try='test -s conftest.$ac_objext'
16487 { (case "(($ac_try" in
16488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489 *) ac_try_echo=$ac_try;;
16490 esac
16491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492 (eval "$ac_try") 2>&5
16493 ac_status=$?
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; }; then
16496 ac_header_compiler=yes
16497 else
16498 echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 ac_header_compiler=no
16504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16506 echo "${ECHO_T}$ac_header_compiler" >&6; }
16508 # Is the header present?
16509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16511 cat >conftest.$ac_ext <<_ACEOF
16512 /* confdefs.h. */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16517 #include <$ac_header>
16518 _ACEOF
16519 if { (ac_try="$ac_cpp conftest.$ac_ext"
16520 case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16523 esac
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16526 ac_status=$?
16527 grep -v '^ *+' conftest.er1 >conftest.err
16528 rm -f conftest.er1
16529 cat conftest.err >&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } >/dev/null; then
16532 if test -s conftest.err; then
16533 ac_cpp_err=$ac_c_preproc_warn_flag
16534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16535 else
16536 ac_cpp_err=
16538 else
16539 ac_cpp_err=yes
16541 if test -z "$ac_cpp_err"; then
16542 ac_header_preproc=yes
16543 else
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16547 ac_header_preproc=no
16550 rm -f conftest.err conftest.$ac_ext
16551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16552 echo "${ECHO_T}$ac_header_preproc" >&6; }
16554 # So? What about this header?
16555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16556 yes:no: )
16557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16561 ac_header_preproc=yes
16563 no:yes:* )
16564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16576 ( cat <<\_ASBOX
16577 ## ----------------------------------- ##
16578 ## Report this to llvmbugs@cs.uiuc.edu ##
16579 ## ----------------------------------- ##
16580 _ASBOX
16581 ) | sed "s/^/$as_me: WARNING: /" >&2
16583 esac
16584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16588 else
16589 eval "$as_ac_Header=\$ac_header_preproc"
16591 ac_res=`eval echo '${'$as_ac_Header'}'`
16592 { echo "$as_me:$LINENO: result: $ac_res" >&5
16593 echo "${ECHO_T}$ac_res" >&6; }
16596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16597 cat >>confdefs.h <<_ACEOF
16598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16599 _ACEOF
16603 done
16606 for ac_header in valgrind/valgrind.h
16608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16615 ac_res=`eval echo '${'$as_ac_Header'}'`
16616 { echo "$as_me:$LINENO: result: $ac_res" >&5
16617 echo "${ECHO_T}$ac_res" >&6; }
16618 else
16619 # Is the header compilable?
16620 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16622 cat >conftest.$ac_ext <<_ACEOF
16623 /* confdefs.h. */
16624 _ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16628 $ac_includes_default
16629 #include <$ac_header>
16630 _ACEOF
16631 rm -f conftest.$ac_objext
16632 if { (ac_try="$ac_compile"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_compile") 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
16645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649 esac
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try='test -s conftest.$ac_objext'
16656 { (case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16659 esac
16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_try") 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 ac_header_compiler=yes
16666 else
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 ac_header_compiler=no
16673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16675 echo "${ECHO_T}$ac_header_compiler" >&6; }
16677 # Is the header present?
16678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h. */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 #include <$ac_header>
16687 _ACEOF
16688 if { (ac_try="$ac_cpp conftest.$ac_ext"
16689 case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16692 esac
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16695 ac_status=$?
16696 grep -v '^ *+' conftest.er1 >conftest.err
16697 rm -f conftest.er1
16698 cat conftest.err >&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } >/dev/null; then
16701 if test -s conftest.err; then
16702 ac_cpp_err=$ac_c_preproc_warn_flag
16703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16704 else
16705 ac_cpp_err=
16707 else
16708 ac_cpp_err=yes
16710 if test -z "$ac_cpp_err"; then
16711 ac_header_preproc=yes
16712 else
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16716 ac_header_preproc=no
16719 rm -f conftest.err conftest.$ac_ext
16720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16721 echo "${ECHO_T}$ac_header_preproc" >&6; }
16723 # So? What about this header?
16724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16725 yes:no: )
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16730 ac_header_preproc=yes
16732 no:yes:* )
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16745 ( cat <<\_ASBOX
16746 ## ----------------------------------- ##
16747 ## Report this to llvmbugs@cs.uiuc.edu ##
16748 ## ----------------------------------- ##
16749 _ASBOX
16750 ) | sed "s/^/$as_me: WARNING: /" >&2
16752 esac
16753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758 eval "$as_ac_Header=\$ac_header_preproc"
16760 ac_res=`eval echo '${'$as_ac_Header'}'`
16761 { echo "$as_me:$LINENO: result: $ac_res" >&5
16762 echo "${ECHO_T}$ac_res" >&6; }
16765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16766 cat >>confdefs.h <<_ACEOF
16767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16768 _ACEOF
16772 done
16775 for ac_header in fenv.h
16777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 ac_res=`eval echo '${'$as_ac_Header'}'`
16785 { echo "$as_me:$LINENO: result: $ac_res" >&5
16786 echo "${ECHO_T}$ac_res" >&6; }
16787 else
16788 # Is the header compilable?
16789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16791 cat >conftest.$ac_ext <<_ACEOF
16792 /* confdefs.h. */
16793 _ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h. */
16797 $ac_includes_default
16798 #include <$ac_header>
16799 _ACEOF
16800 rm -f conftest.$ac_objext
16801 if { (ac_try="$ac_compile"
16802 case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16805 esac
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_compile") 2>conftest.er1
16808 ac_status=$?
16809 grep -v '^ *+' conftest.er1 >conftest.err
16810 rm -f conftest.er1
16811 cat conftest.err >&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
16814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16815 { (case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16818 esac
16819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_try") 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try='test -s conftest.$ac_objext'
16825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16828 esac
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_header_compiler=yes
16835 else
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_header_compiler=no
16842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16844 echo "${ECHO_T}$ac_header_compiler" >&6; }
16846 # Is the header present?
16847 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16849 cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h. */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 #include <$ac_header>
16856 _ACEOF
16857 if { (ac_try="$ac_cpp conftest.$ac_ext"
16858 case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16861 esac
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } >/dev/null; then
16870 if test -s conftest.err; then
16871 ac_cpp_err=$ac_c_preproc_warn_flag
16872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16873 else
16874 ac_cpp_err=
16876 else
16877 ac_cpp_err=yes
16879 if test -z "$ac_cpp_err"; then
16880 ac_header_preproc=yes
16881 else
16882 echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.$ac_ext >&5
16885 ac_header_preproc=no
16888 rm -f conftest.err conftest.$ac_ext
16889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16890 echo "${ECHO_T}$ac_header_preproc" >&6; }
16892 # So? What about this header?
16893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16894 yes:no: )
16895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16899 ac_header_preproc=yes
16901 no:yes:* )
16902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16914 ( cat <<\_ASBOX
16915 ## ----------------------------------- ##
16916 ## Report this to llvmbugs@cs.uiuc.edu ##
16917 ## ----------------------------------- ##
16918 _ASBOX
16919 ) | sed "s/^/$as_me: WARNING: /" >&2
16921 esac
16922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16926 else
16927 eval "$as_ac_Header=\$ac_header_preproc"
16929 ac_res=`eval echo '${'$as_ac_Header'}'`
16930 { echo "$as_me:$LINENO: result: $ac_res" >&5
16931 echo "${ECHO_T}$ac_res" >&6; }
16934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16935 cat >>confdefs.h <<_ACEOF
16936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16937 _ACEOF
16941 done
16943 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16945 for ac_header in pthread.h
16947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 ac_res=`eval echo '${'$as_ac_Header'}'`
16955 { echo "$as_me:$LINENO: result: $ac_res" >&5
16956 echo "${ECHO_T}$ac_res" >&6; }
16957 else
16958 # Is the header compilable?
16959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16961 cat >conftest.$ac_ext <<_ACEOF
16962 /* confdefs.h. */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16967 $ac_includes_default
16968 #include <$ac_header>
16969 _ACEOF
16970 rm -f conftest.$ac_objext
16971 if { (ac_try="$ac_compile"
16972 case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16975 esac
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_compile") 2>conftest.er1
16978 ac_status=$?
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16985 { (case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988 esac
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_try") 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest.$ac_objext'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998 esac
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; }; then
17004 ac_header_compiler=yes
17005 else
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 ac_header_compiler=no
17012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17014 echo "${ECHO_T}$ac_header_compiler" >&6; }
17016 # Is the header present?
17017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17019 cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h. */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 #include <$ac_header>
17026 _ACEOF
17027 if { (ac_try="$ac_cpp conftest.$ac_ext"
17028 case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17031 esac
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17034 ac_status=$?
17035 grep -v '^ *+' conftest.er1 >conftest.err
17036 rm -f conftest.er1
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } >/dev/null; then
17040 if test -s conftest.err; then
17041 ac_cpp_err=$ac_c_preproc_warn_flag
17042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17043 else
17044 ac_cpp_err=
17046 else
17047 ac_cpp_err=yes
17049 if test -z "$ac_cpp_err"; then
17050 ac_header_preproc=yes
17051 else
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17055 ac_header_preproc=no
17058 rm -f conftest.err conftest.$ac_ext
17059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17060 echo "${ECHO_T}$ac_header_preproc" >&6; }
17062 # So? What about this header?
17063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17064 yes:no: )
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17069 ac_header_preproc=yes
17071 no:yes:* )
17072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17084 ( cat <<\_ASBOX
17085 ## ----------------------------------- ##
17086 ## Report this to llvmbugs@cs.uiuc.edu ##
17087 ## ----------------------------------- ##
17088 _ASBOX
17089 ) | sed "s/^/$as_me: WARNING: /" >&2
17091 esac
17092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097 eval "$as_ac_Header=\$ac_header_preproc"
17099 ac_res=`eval echo '${'$as_ac_Header'}'`
17100 { echo "$as_me:$LINENO: result: $ac_res" >&5
17101 echo "${ECHO_T}$ac_res" >&6; }
17104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17105 cat >>confdefs.h <<_ACEOF
17106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17107 _ACEOF
17108 HAVE_PTHREAD=1
17110 else
17111 HAVE_PTHREAD=0
17115 done
17117 else
17118 HAVE_PTHREAD=0
17122 if test "$llvm_cv_enable_libffi" = "yes" ; then
17125 for ac_header in ffi.h ffi/ffi.h
17127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 ac_res=`eval echo '${'$as_ac_Header'}'`
17135 { echo "$as_me:$LINENO: result: $ac_res" >&5
17136 echo "${ECHO_T}$ac_res" >&6; }
17137 else
17138 # Is the header compilable?
17139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17141 cat >conftest.$ac_ext <<_ACEOF
17142 /* confdefs.h. */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17147 $ac_includes_default
17148 #include <$ac_header>
17149 _ACEOF
17150 rm -f conftest.$ac_objext
17151 if { (ac_try="$ac_compile"
17152 case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17155 esac
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_compile") 2>conftest.er1
17158 ac_status=$?
17159 grep -v '^ *+' conftest.er1 >conftest.err
17160 rm -f conftest.er1
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17165 { (case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168 esac
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_try") 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; } &&
17174 { ac_try='test -s conftest.$ac_objext'
17175 { (case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17178 esac
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
17184 ac_header_compiler=yes
17185 else
17186 echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17189 ac_header_compiler=no
17192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17194 echo "${ECHO_T}$ac_header_compiler" >&6; }
17196 # Is the header present?
17197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17199 cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h. */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 #include <$ac_header>
17206 _ACEOF
17207 if { (ac_try="$ac_cpp conftest.$ac_ext"
17208 case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17211 esac
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17214 ac_status=$?
17215 grep -v '^ *+' conftest.er1 >conftest.err
17216 rm -f conftest.er1
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } >/dev/null; then
17220 if test -s conftest.err; then
17221 ac_cpp_err=$ac_c_preproc_warn_flag
17222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17223 else
17224 ac_cpp_err=
17226 else
17227 ac_cpp_err=yes
17229 if test -z "$ac_cpp_err"; then
17230 ac_header_preproc=yes
17231 else
17232 echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17235 ac_header_preproc=no
17238 rm -f conftest.err conftest.$ac_ext
17239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17240 echo "${ECHO_T}$ac_header_preproc" >&6; }
17242 # So? What about this header?
17243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17244 yes:no: )
17245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17249 ac_header_preproc=yes
17251 no:yes:* )
17252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17264 ( cat <<\_ASBOX
17265 ## ----------------------------------- ##
17266 ## Report this to llvmbugs@cs.uiuc.edu ##
17267 ## ----------------------------------- ##
17268 _ASBOX
17269 ) | sed "s/^/$as_me: WARNING: /" >&2
17271 esac
17272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277 eval "$as_ac_Header=\$ac_header_preproc"
17279 ac_res=`eval echo '${'$as_ac_Header'}'`
17280 { echo "$as_me:$LINENO: result: $ac_res" >&5
17281 echo "${ECHO_T}$ac_res" >&6; }
17284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17285 cat >>confdefs.h <<_ACEOF
17286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17287 _ACEOF
17291 done
17296 for ac_header in CrashReporterClient.h
17298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 ac_res=`eval echo '${'$as_ac_Header'}'`
17306 { echo "$as_me:$LINENO: result: $ac_res" >&5
17307 echo "${ECHO_T}$ac_res" >&6; }
17308 else
17309 # Is the header compilable?
17310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17312 cat >conftest.$ac_ext <<_ACEOF
17313 /* confdefs.h. */
17314 _ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h. */
17318 $ac_includes_default
17319 #include <$ac_header>
17320 _ACEOF
17321 rm -f conftest.$ac_objext
17322 if { (ac_try="$ac_compile"
17323 case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17326 esac
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_compile") 2>conftest.er1
17329 ac_status=$?
17330 grep -v '^ *+' conftest.er1 >conftest.err
17331 rm -f conftest.er1
17332 cat conftest.err >&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); } &&
17335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17336 { (case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17339 esac
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_try") 2>&5
17342 ac_status=$?
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; } &&
17345 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
17356 else
17357 echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17360 ac_header_compiler=no
17363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17365 echo "${ECHO_T}$ac_header_compiler" >&6; }
17367 # Is the header present?
17368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h. */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 #include <$ac_header>
17377 _ACEOF
17378 if { (ac_try="$ac_cpp conftest.$ac_ext"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17385 ac_status=$?
17386 grep -v '^ *+' conftest.er1 >conftest.err
17387 rm -f conftest.er1
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } >/dev/null; then
17391 if test -s conftest.err; then
17392 ac_cpp_err=$ac_c_preproc_warn_flag
17393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17394 else
17395 ac_cpp_err=
17397 else
17398 ac_cpp_err=yes
17400 if test -z "$ac_cpp_err"; then
17401 ac_header_preproc=yes
17402 else
17403 echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17406 ac_header_preproc=no
17409 rm -f conftest.err conftest.$ac_ext
17410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17411 echo "${ECHO_T}$ac_header_preproc" >&6; }
17413 # So? What about this header?
17414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17415 yes:no: )
17416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17420 ac_header_preproc=yes
17422 no:yes:* )
17423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17435 ( cat <<\_ASBOX
17436 ## ----------------------------------- ##
17437 ## Report this to llvmbugs@cs.uiuc.edu ##
17438 ## ----------------------------------- ##
17439 _ASBOX
17440 ) | sed "s/^/$as_me: WARNING: /" >&2
17442 esac
17443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17447 else
17448 eval "$as_ac_Header=\$ac_header_preproc"
17450 ac_res=`eval echo '${'$as_ac_Header'}'`
17451 { echo "$as_me:$LINENO: result: $ac_res" >&5
17452 echo "${ECHO_T}$ac_res" >&6; }
17455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17456 cat >>confdefs.h <<_ACEOF
17457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17458 _ACEOF
17462 done
17465 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17466 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
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 extern const char *__crashreporter_info__;
17474 int main() {
17475 __crashreporter_info__ = "test";
17476 return 0;
17479 _ACEOF
17480 rm -f conftest.$ac_objext conftest$ac_exeext
17481 if { (ac_try="$ac_link"
17482 case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17485 esac
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_link") 2>conftest.er1
17488 ac_status=$?
17489 grep -v '^ *+' conftest.er1 >conftest.err
17490 rm -f conftest.er1
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17495 { (case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498 esac
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_try") 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try='test -s conftest$ac_exeext'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17508 esac
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 { echo "$as_me:$LINENO: result: yes" >&5
17515 echo "${ECHO_T}yes" >&6; }
17517 cat >>confdefs.h <<\_ACEOF
17518 #define HAVE_CRASHREPORTER_INFO 1
17519 _ACEOF
17521 else
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 { echo "$as_me:$LINENO: result: no" >&5
17526 echo "${ECHO_T}no" >&6; }
17528 cat >>confdefs.h <<\_ACEOF
17529 #define HAVE_CRASHREPORTER_INFO 0
17530 _ACEOF
17534 rm -f core conftest.err conftest.$ac_objext \
17535 conftest$ac_exeext conftest.$ac_ext
17540 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17541 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17542 if test "${ac_cv_huge_val_sanity+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 else
17546 ac_ext=cpp
17547 ac_cpp='$CXXCPP $CPPFLAGS'
17548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17552 ac_save_CXXFLAGS=$CXXFLAGS
17553 CXXFLAGS=-pedantic
17554 if test "$cross_compiling" = yes; then
17555 ac_cv_huge_val_sanity=yes
17556 else
17557 cat >conftest.$ac_ext <<_ACEOF
17558 /* confdefs.h. */
17559 _ACEOF
17560 cat confdefs.h >>conftest.$ac_ext
17561 cat >>conftest.$ac_ext <<_ACEOF
17562 /* end confdefs.h. */
17563 #include <math.h>
17565 main ()
17567 double x = HUGE_VAL; return x != x;
17569 return 0;
17571 _ACEOF
17572 rm -f conftest$ac_exeext
17573 if { (ac_try="$ac_link"
17574 case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_link") 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17583 { (case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17586 esac
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_try") 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_cv_huge_val_sanity=yes
17593 else
17594 echo "$as_me: program exited with status $ac_status" >&5
17595 echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17598 ( exit $ac_status )
17599 ac_cv_huge_val_sanity=no
17601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17605 CXXFLAGS=$ac_save_CXXFLAGS
17606 ac_ext=c
17607 ac_cpp='$CPP $CPPFLAGS'
17608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17614 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17615 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17616 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17619 { echo "$as_me:$LINENO: checking for pid_t" >&5
17620 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17621 if test "${ac_cv_type_pid_t+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624 cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h. */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 $ac_includes_default
17631 typedef pid_t ac__type_new_;
17633 main ()
17635 if ((ac__type_new_ *) 0)
17636 return 0;
17637 if (sizeof (ac__type_new_))
17638 return 0;
17640 return 0;
17642 _ACEOF
17643 rm -f conftest.$ac_objext
17644 if { (ac_try="$ac_compile"
17645 case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_compile") 2>conftest.er1
17651 ac_status=$?
17652 grep -v '^ *+' conftest.er1 >conftest.err
17653 rm -f conftest.er1
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
17657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658 { (case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_try") 2>&5
17664 ac_status=$?
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try='test -s conftest.$ac_objext'
17668 { (case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_try") 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 ac_cv_type_pid_t=yes
17678 else
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17682 ac_cv_type_pid_t=no
17685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17687 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17688 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17689 if test $ac_cv_type_pid_t = yes; then
17691 else
17693 cat >>confdefs.h <<_ACEOF
17694 #define pid_t int
17695 _ACEOF
17699 { echo "$as_me:$LINENO: checking for size_t" >&5
17700 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17701 if test "${ac_cv_type_size_t+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17703 else
17704 cat >conftest.$ac_ext <<_ACEOF
17705 /* confdefs.h. */
17706 _ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710 $ac_includes_default
17711 typedef size_t ac__type_new_;
17713 main ()
17715 if ((ac__type_new_ *) 0)
17716 return 0;
17717 if (sizeof (ac__type_new_))
17718 return 0;
17720 return 0;
17722 _ACEOF
17723 rm -f conftest.$ac_objext
17724 if { (ac_try="$ac_compile"
17725 case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17728 esac
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_compile") 2>conftest.er1
17731 ac_status=$?
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17738 { (case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17741 esac
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_try") 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest.$ac_objext'
17748 { (case "(($ac_try" in
17749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750 *) ac_try_echo=$ac_try;;
17751 esac
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753 (eval "$ac_try") 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 ac_cv_type_size_t=yes
17758 else
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17762 ac_cv_type_size_t=no
17765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17767 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17768 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17769 if test $ac_cv_type_size_t = yes; then
17771 else
17773 cat >>confdefs.h <<_ACEOF
17774 #define size_t unsigned int
17775 _ACEOF
17780 cat >>confdefs.h <<_ACEOF
17781 #define RETSIGTYPE void
17782 _ACEOF
17784 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17785 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17786 if test "${ac_cv_struct_tm+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 #include <sys/types.h>
17796 #include <time.h>
17799 main ()
17801 struct tm *tp; tp->tm_sec;
17803 return 0;
17805 _ACEOF
17806 rm -f conftest.$ac_objext
17807 if { (ac_try="$ac_compile"
17808 case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17811 esac
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_compile") 2>conftest.er1
17814 ac_status=$?
17815 grep -v '^ *+' conftest.er1 >conftest.err
17816 rm -f conftest.er1
17817 cat conftest.err >&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17821 { (case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17824 esac
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_try") 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest.$ac_objext'
17831 { (case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17834 esac
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_try") 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
17840 ac_cv_struct_tm=time.h
17841 else
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 ac_cv_struct_tm=sys/time.h
17848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17851 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17852 if test $ac_cv_struct_tm = sys/time.h; then
17854 cat >>confdefs.h <<\_ACEOF
17855 #define TM_IN_SYS_TIME 1
17856 _ACEOF
17860 { echo "$as_me:$LINENO: checking for int64_t" >&5
17861 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17862 if test "${ac_cv_type_int64_t+set}" = set; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17864 else
17865 cat >conftest.$ac_ext <<_ACEOF
17866 /* confdefs.h. */
17867 _ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17871 $ac_includes_default
17872 typedef int64_t ac__type_new_;
17874 main ()
17876 if ((ac__type_new_ *) 0)
17877 return 0;
17878 if (sizeof (ac__type_new_))
17879 return 0;
17881 return 0;
17883 _ACEOF
17884 rm -f conftest.$ac_objext
17885 if { (ac_try="$ac_compile"
17886 case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17889 esac
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891 (eval "$ac_compile") 2>conftest.er1
17892 ac_status=$?
17893 grep -v '^ *+' conftest.er1 >conftest.err
17894 rm -f conftest.er1
17895 cat conftest.err >&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } &&
17898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17899 { (case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17902 esac
17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904 (eval "$ac_try") 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; } &&
17908 { ac_try='test -s conftest.$ac_objext'
17909 { (case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17912 esac
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_try") 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ac_cv_type_int64_t=yes
17919 else
17920 echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17923 ac_cv_type_int64_t=no
17926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17928 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17929 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17930 if test $ac_cv_type_int64_t = yes; then
17932 cat >>confdefs.h <<_ACEOF
17933 #define HAVE_INT64_T 1
17934 _ACEOF
17937 else
17938 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17939 echo "$as_me: error: Type int64_t required but not found" >&2;}
17940 { (exit 1); exit 1; }; }
17943 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17944 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17945 if test "${ac_cv_type_uint64_t+set}" = set; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
17947 else
17948 cat >conftest.$ac_ext <<_ACEOF
17949 /* confdefs.h. */
17950 _ACEOF
17951 cat confdefs.h >>conftest.$ac_ext
17952 cat >>conftest.$ac_ext <<_ACEOF
17953 /* end confdefs.h. */
17954 $ac_includes_default
17955 typedef uint64_t ac__type_new_;
17957 main ()
17959 if ((ac__type_new_ *) 0)
17960 return 0;
17961 if (sizeof (ac__type_new_))
17962 return 0;
17964 return 0;
17966 _ACEOF
17967 rm -f conftest.$ac_objext
17968 if { (ac_try="$ac_compile"
17969 case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17972 esac
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_compile") 2>conftest.er1
17975 ac_status=$?
17976 grep -v '^ *+' conftest.er1 >conftest.err
17977 rm -f conftest.er1
17978 cat conftest.err >&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } &&
17981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17982 { (case "(($ac_try" in
17983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17984 *) ac_try_echo=$ac_try;;
17985 esac
17986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17987 (eval "$ac_try") 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; } &&
17991 { ac_try='test -s conftest.$ac_objext'
17992 { (case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17995 esac
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_try") 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; }; then
18001 ac_cv_type_uint64_t=yes
18002 else
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18006 ac_cv_type_uint64_t=no
18009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18011 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18012 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18013 if test $ac_cv_type_uint64_t = yes; then
18015 cat >>confdefs.h <<_ACEOF
18016 #define HAVE_UINT64_T 1
18017 _ACEOF
18020 else
18021 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18022 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18023 if test "${ac_cv_type_u_int64_t+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18025 else
18026 cat >conftest.$ac_ext <<_ACEOF
18027 /* confdefs.h. */
18028 _ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032 $ac_includes_default
18033 typedef u_int64_t ac__type_new_;
18035 main ()
18037 if ((ac__type_new_ *) 0)
18038 return 0;
18039 if (sizeof (ac__type_new_))
18040 return 0;
18042 return 0;
18044 _ACEOF
18045 rm -f conftest.$ac_objext
18046 if { (ac_try="$ac_compile"
18047 case "(($ac_try" in
18048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049 *) ac_try_echo=$ac_try;;
18050 esac
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052 (eval "$ac_compile") 2>conftest.er1
18053 ac_status=$?
18054 grep -v '^ *+' conftest.er1 >conftest.err
18055 rm -f conftest.er1
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18060 { (case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18063 esac
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_try") 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; } &&
18069 { ac_try='test -s conftest.$ac_objext'
18070 { (case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18073 esac
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_try") 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 ac_cv_type_u_int64_t=yes
18080 else
18081 echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18084 ac_cv_type_u_int64_t=no
18087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18089 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18090 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18091 if test $ac_cv_type_u_int64_t = yes; then
18093 cat >>confdefs.h <<_ACEOF
18094 #define HAVE_U_INT64_T 1
18095 _ACEOF
18098 else
18099 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18100 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18101 { (exit 1); exit 1; }; }
18115 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 else
18123 cat >conftest.$ac_ext <<_ACEOF
18124 /* confdefs.h. */
18125 _ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h. */
18129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18131 #define $ac_func innocuous_$ac_func
18133 /* System header to define __stub macros and hopefully few prototypes,
18134 which can conflict with char $ac_func (); below.
18135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18136 <limits.h> exists even on freestanding compilers. */
18138 #ifdef __STDC__
18139 # include <limits.h>
18140 #else
18141 # include <assert.h>
18142 #endif
18144 #undef $ac_func
18146 /* Override any GCC internal prototype to avoid an error.
18147 Use char because int might match the return type of a GCC
18148 builtin and then its argument prototype would still apply. */
18149 #ifdef __cplusplus
18150 extern "C"
18151 #endif
18152 char $ac_func ();
18153 /* The GNU C library defines this for functions which it implements
18154 to always fail with ENOSYS. Some functions are actually named
18155 something starting with __ and the normal name is an alias. */
18156 #if defined __stub_$ac_func || defined __stub___$ac_func
18157 choke me
18158 #endif
18161 main ()
18163 return $ac_func ();
18165 return 0;
18167 _ACEOF
18168 rm -f conftest.$ac_objext conftest$ac_exeext
18169 if { (ac_try="$ac_link"
18170 case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18173 esac
18174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_link") 2>conftest.er1
18176 ac_status=$?
18177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
18182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18192 { ac_try='test -s conftest$ac_exeext'
18193 { (case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18196 esac
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_try") 2>&5
18199 ac_status=$?
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; }; then
18202 eval "$as_ac_var=yes"
18203 else
18204 echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18207 eval "$as_ac_var=no"
18210 rm -f core conftest.err conftest.$ac_objext \
18211 conftest$ac_exeext conftest.$ac_ext
18213 ac_res=`eval echo '${'$as_ac_var'}'`
18214 { echo "$as_me:$LINENO: result: $ac_res" >&5
18215 echo "${ECHO_T}$ac_res" >&6; }
18216 if test `eval echo '${'$as_ac_var'}'` = yes; then
18217 cat >>confdefs.h <<_ACEOF
18218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18219 _ACEOF
18222 done
18228 for ac_func in powf fmodf strtof round
18230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18235 else
18236 cat >conftest.$ac_ext <<_ACEOF
18237 /* confdefs.h. */
18238 _ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h. */
18242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18244 #define $ac_func innocuous_$ac_func
18246 /* System header to define __stub macros and hopefully few prototypes,
18247 which can conflict with char $ac_func (); below.
18248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18249 <limits.h> exists even on freestanding compilers. */
18251 #ifdef __STDC__
18252 # include <limits.h>
18253 #else
18254 # include <assert.h>
18255 #endif
18257 #undef $ac_func
18259 /* Override any GCC internal prototype to avoid an error.
18260 Use char because int might match the return type of a GCC
18261 builtin and then its argument prototype would still apply. */
18262 #ifdef __cplusplus
18263 extern "C"
18264 #endif
18265 char $ac_func ();
18266 /* The GNU C library defines this for functions which it implements
18267 to always fail with ENOSYS. Some functions are actually named
18268 something starting with __ and the normal name is an alias. */
18269 #if defined __stub_$ac_func || defined __stub___$ac_func
18270 choke me
18271 #endif
18274 main ()
18276 return $ac_func ();
18278 return 0;
18280 _ACEOF
18281 rm -f conftest.$ac_objext conftest$ac_exeext
18282 if { (ac_try="$ac_link"
18283 case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18286 esac
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_link") 2>conftest.er1
18289 ac_status=$?
18290 grep -v '^ *+' conftest.er1 >conftest.err
18291 rm -f conftest.er1
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
18295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18296 { (case "(($ac_try" in
18297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18298 *) ac_try_echo=$ac_try;;
18299 esac
18300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18301 (eval "$ac_try") 2>&5
18302 ac_status=$?
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; } &&
18305 { ac_try='test -s conftest$ac_exeext'
18306 { (case "(($ac_try" in
18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18309 esac
18310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311 (eval "$ac_try") 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18315 eval "$as_ac_var=yes"
18316 else
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18320 eval "$as_ac_var=no"
18323 rm -f core conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
18326 ac_res=`eval echo '${'$as_ac_var'}'`
18327 { echo "$as_me:$LINENO: result: $ac_res" >&5
18328 echo "${ECHO_T}$ac_res" >&6; }
18329 if test `eval echo '${'$as_ac_var'}'` = yes; then
18330 cat >>confdefs.h <<_ACEOF
18331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18332 _ACEOF
18335 done
18342 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18348 echo $ECHO_N "(cached) $ECHO_C" >&6
18349 else
18350 cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h. */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18358 #define $ac_func innocuous_$ac_func
18360 /* System header to define __stub macros and hopefully few prototypes,
18361 which can conflict with char $ac_func (); below.
18362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18363 <limits.h> exists even on freestanding compilers. */
18365 #ifdef __STDC__
18366 # include <limits.h>
18367 #else
18368 # include <assert.h>
18369 #endif
18371 #undef $ac_func
18373 /* Override any GCC internal prototype to avoid an error.
18374 Use char because int might match the return type of a GCC
18375 builtin and then its argument prototype would still apply. */
18376 #ifdef __cplusplus
18377 extern "C"
18378 #endif
18379 char $ac_func ();
18380 /* The GNU C library defines this for functions which it implements
18381 to always fail with ENOSYS. Some functions are actually named
18382 something starting with __ and the normal name is an alias. */
18383 #if defined __stub_$ac_func || defined __stub___$ac_func
18384 choke me
18385 #endif
18388 main ()
18390 return $ac_func ();
18392 return 0;
18394 _ACEOF
18395 rm -f conftest.$ac_objext conftest$ac_exeext
18396 if { (ac_try="$ac_link"
18397 case "(($ac_try" in
18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399 *) ac_try_echo=$ac_try;;
18400 esac
18401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402 (eval "$ac_link") 2>conftest.er1
18403 ac_status=$?
18404 grep -v '^ *+' conftest.er1 >conftest.err
18405 rm -f conftest.er1
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18419 { ac_try='test -s conftest$ac_exeext'
18420 { (case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_try") 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 eval "$as_ac_var=yes"
18430 else
18431 echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18434 eval "$as_ac_var=no"
18437 rm -f core conftest.err conftest.$ac_objext \
18438 conftest$ac_exeext conftest.$ac_ext
18440 ac_res=`eval echo '${'$as_ac_var'}'`
18441 { echo "$as_me:$LINENO: result: $ac_res" >&5
18442 echo "${ECHO_T}$ac_res" >&6; }
18443 if test `eval echo '${'$as_ac_var'}'` = yes; then
18444 cat >>confdefs.h <<_ACEOF
18445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18446 _ACEOF
18449 done
18454 for ac_func in isatty mkdtemp mkstemp
18456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18461 else
18462 cat >conftest.$ac_ext <<_ACEOF
18463 /* confdefs.h. */
18464 _ACEOF
18465 cat confdefs.h >>conftest.$ac_ext
18466 cat >>conftest.$ac_ext <<_ACEOF
18467 /* end confdefs.h. */
18468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18470 #define $ac_func innocuous_$ac_func
18472 /* System header to define __stub macros and hopefully few prototypes,
18473 which can conflict with char $ac_func (); below.
18474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18475 <limits.h> exists even on freestanding compilers. */
18477 #ifdef __STDC__
18478 # include <limits.h>
18479 #else
18480 # include <assert.h>
18481 #endif
18483 #undef $ac_func
18485 /* Override any GCC internal prototype to avoid an error.
18486 Use char because int might match the return type of a GCC
18487 builtin and then its argument prototype would still apply. */
18488 #ifdef __cplusplus
18489 extern "C"
18490 #endif
18491 char $ac_func ();
18492 /* The GNU C library defines this for functions which it implements
18493 to always fail with ENOSYS. Some functions are actually named
18494 something starting with __ and the normal name is an alias. */
18495 #if defined __stub_$ac_func || defined __stub___$ac_func
18496 choke me
18497 #endif
18500 main ()
18502 return $ac_func ();
18504 return 0;
18506 _ACEOF
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (ac_try="$ac_link"
18509 case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512 esac
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_link") 2>conftest.er1
18515 ac_status=$?
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
18521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18522 { (case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18525 esac
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_try") 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest$ac_exeext'
18532 { (case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18535 esac
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_try") 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 eval "$as_ac_var=yes"
18542 else
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 eval "$as_ac_var=no"
18549 rm -f core conftest.err conftest.$ac_objext \
18550 conftest$ac_exeext conftest.$ac_ext
18552 ac_res=`eval echo '${'$as_ac_var'}'`
18553 { echo "$as_me:$LINENO: result: $ac_res" >&5
18554 echo "${ECHO_T}$ac_res" >&6; }
18555 if test `eval echo '${'$as_ac_var'}'` = yes; then
18556 cat >>confdefs.h <<_ACEOF
18557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18558 _ACEOF
18561 done
18569 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18576 else
18577 cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h. */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18585 #define $ac_func innocuous_$ac_func
18587 /* System header to define __stub macros and hopefully few prototypes,
18588 which can conflict with char $ac_func (); below.
18589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18590 <limits.h> exists even on freestanding compilers. */
18592 #ifdef __STDC__
18593 # include <limits.h>
18594 #else
18595 # include <assert.h>
18596 #endif
18598 #undef $ac_func
18600 /* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18603 #ifdef __cplusplus
18604 extern "C"
18605 #endif
18606 char $ac_func ();
18607 /* The GNU C library defines this for functions which it implements
18608 to always fail with ENOSYS. Some functions are actually named
18609 something starting with __ and the normal name is an alias. */
18610 #if defined __stub_$ac_func || defined __stub___$ac_func
18611 choke me
18612 #endif
18615 main ()
18617 return $ac_func ();
18619 return 0;
18621 _ACEOF
18622 rm -f conftest.$ac_objext conftest$ac_exeext
18623 if { (ac_try="$ac_link"
18624 case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18627 esac
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_link") 2>conftest.er1
18630 ac_status=$?
18631 grep -v '^ *+' conftest.er1 >conftest.err
18632 rm -f conftest.er1
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } &&
18636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18637 { (case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18640 esac
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_try") 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; } &&
18646 { ac_try='test -s conftest$ac_exeext'
18647 { (case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18650 esac
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_try") 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 eval "$as_ac_var=yes"
18657 else
18658 echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18661 eval "$as_ac_var=no"
18664 rm -f core conftest.err conftest.$ac_objext \
18665 conftest$ac_exeext conftest.$ac_ext
18667 ac_res=`eval echo '${'$as_ac_var'}'`
18668 { echo "$as_me:$LINENO: result: $ac_res" >&5
18669 echo "${ECHO_T}$ac_res" >&6; }
18670 if test `eval echo '${'$as_ac_var'}'` = yes; then
18671 cat >>confdefs.h <<_ACEOF
18672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18673 _ACEOF
18676 done
18682 for ac_func in strerror strerror_r strerror_s setenv
18684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18688 echo $ECHO_N "(cached) $ECHO_C" >&6
18689 else
18690 cat >conftest.$ac_ext <<_ACEOF
18691 /* confdefs.h. */
18692 _ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h. */
18696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18698 #define $ac_func innocuous_$ac_func
18700 /* System header to define __stub macros and hopefully few prototypes,
18701 which can conflict with char $ac_func (); below.
18702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18703 <limits.h> exists even on freestanding compilers. */
18705 #ifdef __STDC__
18706 # include <limits.h>
18707 #else
18708 # include <assert.h>
18709 #endif
18711 #undef $ac_func
18713 /* Override any GCC internal prototype to avoid an error.
18714 Use char because int might match the return type of a GCC
18715 builtin and then its argument prototype would still apply. */
18716 #ifdef __cplusplus
18717 extern "C"
18718 #endif
18719 char $ac_func ();
18720 /* The GNU C library defines this for functions which it implements
18721 to always fail with ENOSYS. Some functions are actually named
18722 something starting with __ and the normal name is an alias. */
18723 #if defined __stub_$ac_func || defined __stub___$ac_func
18724 choke me
18725 #endif
18728 main ()
18730 return $ac_func ();
18732 return 0;
18734 _ACEOF
18735 rm -f conftest.$ac_objext conftest$ac_exeext
18736 if { (ac_try="$ac_link"
18737 case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18740 esac
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_link") 2>conftest.er1
18743 ac_status=$?
18744 grep -v '^ *+' conftest.er1 >conftest.err
18745 rm -f conftest.er1
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753 esac
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest$ac_exeext'
18760 { (case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763 esac
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_try") 2>&5
18766 ac_status=$?
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18769 eval "$as_ac_var=yes"
18770 else
18771 echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18774 eval "$as_ac_var=no"
18777 rm -f core conftest.err conftest.$ac_objext \
18778 conftest$ac_exeext conftest.$ac_ext
18780 ac_res=`eval echo '${'$as_ac_var'}'`
18781 { echo "$as_me:$LINENO: result: $ac_res" >&5
18782 echo "${ECHO_T}$ac_res" >&6; }
18783 if test `eval echo '${'$as_ac_var'}'` = yes; then
18784 cat >>confdefs.h <<_ACEOF
18785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18786 _ACEOF
18789 done
18795 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18801 echo $ECHO_N "(cached) $ECHO_C" >&6
18802 else
18803 cat >conftest.$ac_ext <<_ACEOF
18804 /* confdefs.h. */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18811 #define $ac_func innocuous_$ac_func
18813 /* System header to define __stub macros and hopefully few prototypes,
18814 which can conflict with char $ac_func (); below.
18815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18816 <limits.h> exists even on freestanding compilers. */
18818 #ifdef __STDC__
18819 # include <limits.h>
18820 #else
18821 # include <assert.h>
18822 #endif
18824 #undef $ac_func
18826 /* Override any GCC internal prototype to avoid an error.
18827 Use char because int might match the return type of a GCC
18828 builtin and then its argument prototype would still apply. */
18829 #ifdef __cplusplus
18830 extern "C"
18831 #endif
18832 char $ac_func ();
18833 /* The GNU C library defines this for functions which it implements
18834 to always fail with ENOSYS. Some functions are actually named
18835 something starting with __ and the normal name is an alias. */
18836 #if defined __stub_$ac_func || defined __stub___$ac_func
18837 choke me
18838 #endif
18841 main ()
18843 return $ac_func ();
18845 return 0;
18847 _ACEOF
18848 rm -f conftest.$ac_objext conftest$ac_exeext
18849 if { (ac_try="$ac_link"
18850 case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18853 esac
18854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855 (eval "$ac_link") 2>conftest.er1
18856 ac_status=$?
18857 grep -v '^ *+' conftest.er1 >conftest.err
18858 rm -f conftest.er1
18859 cat conftest.err >&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } &&
18862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18863 { (case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18866 esac
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_try") 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; } &&
18872 { ac_try='test -s conftest$ac_exeext'
18873 { (case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_try") 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; }; then
18882 eval "$as_ac_var=yes"
18883 else
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 eval "$as_ac_var=no"
18890 rm -f core conftest.err conftest.$ac_objext \
18891 conftest$ac_exeext conftest.$ac_ext
18893 ac_res=`eval echo '${'$as_ac_var'}'`
18894 { echo "$as_me:$LINENO: result: $ac_res" >&5
18895 echo "${ECHO_T}$ac_res" >&6; }
18896 if test `eval echo '${'$as_ac_var'}'` = yes; then
18897 cat >>confdefs.h <<_ACEOF
18898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18899 _ACEOF
18902 done
18908 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915 else
18916 cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h. */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18924 #define $ac_func innocuous_$ac_func
18926 /* System header to define __stub macros and hopefully few prototypes,
18927 which can conflict with char $ac_func (); below.
18928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18929 <limits.h> exists even on freestanding compilers. */
18931 #ifdef __STDC__
18932 # include <limits.h>
18933 #else
18934 # include <assert.h>
18935 #endif
18937 #undef $ac_func
18939 /* Override any GCC internal prototype to avoid an error.
18940 Use char because int might match the return type of a GCC
18941 builtin and then its argument prototype would still apply. */
18942 #ifdef __cplusplus
18943 extern "C"
18944 #endif
18945 char $ac_func ();
18946 /* The GNU C library defines this for functions which it implements
18947 to always fail with ENOSYS. Some functions are actually named
18948 something starting with __ and the normal name is an alias. */
18949 #if defined __stub_$ac_func || defined __stub___$ac_func
18950 choke me
18951 #endif
18954 main ()
18956 return $ac_func ();
18958 return 0;
18960 _ACEOF
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_link") 2>conftest.er1
18969 ac_status=$?
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
18975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18976 { (case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18979 esac
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_try") 2>&5
18982 ac_status=$?
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; } &&
18985 { ac_try='test -s conftest$ac_exeext'
18986 { (case "(($ac_try" in
18987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18989 esac
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991 (eval "$ac_try") 2>&5
18992 ac_status=$?
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
18995 eval "$as_ac_var=yes"
18996 else
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 eval "$as_ac_var=no"
19003 rm -f core conftest.err conftest.$ac_objext \
19004 conftest$ac_exeext conftest.$ac_ext
19006 ac_res=`eval echo '${'$as_ac_var'}'`
19007 { echo "$as_me:$LINENO: result: $ac_res" >&5
19008 echo "${ECHO_T}$ac_res" >&6; }
19009 if test `eval echo '${'$as_ac_var'}'` = yes; then
19010 cat >>confdefs.h <<_ACEOF
19011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19012 _ACEOF
19015 done
19017 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19018 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19019 if test "${llvm_cv_c_printf_a+set}" = set; then
19020 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 else
19022 ac_ext=c
19023 ac_cpp='$CPP $CPPFLAGS'
19024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19028 if test "$cross_compiling" = yes; then
19029 llvmac_cv_c_printf_a=no
19030 else
19031 cat >conftest.$ac_ext <<_ACEOF
19033 /* confdefs.h. */
19034 _ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19039 #include <stdio.h>
19040 #include <stdlib.h>
19043 main ()
19046 volatile double A, B;
19047 char Buffer[100];
19048 A = 1;
19049 A /= 10.0;
19050 sprintf(Buffer, "%a", A);
19051 B = atof(Buffer);
19052 if (A != B)
19053 return (1);
19054 if (A != 0x1.999999999999ap-4)
19055 return (1);
19056 return (0);
19058 return 0;
19060 _ACEOF
19061 rm -f conftest$ac_exeext
19062 if { (ac_try="$ac_link"
19063 case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_link") 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19072 { (case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19075 esac
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_try") 2>&5
19078 ac_status=$?
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 llvm_cv_c_printf_a=yes
19082 else
19083 echo "$as_me: program exited with status $ac_status" >&5
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ( exit $ac_status )
19088 llvmac_cv_c_printf_a=no
19090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19094 ac_ext=c
19095 ac_cpp='$CPP $CPPFLAGS'
19096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19101 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19102 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19103 if test "$llvm_cv_c_printf_a" = "yes"; then
19105 cat >>confdefs.h <<\_ACEOF
19106 #define HAVE_PRINTF_A 1
19107 _ACEOF
19112 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19113 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19114 if test "${ac_cv_func_rand48+set}" = set; then
19115 echo $ECHO_N "(cached) $ECHO_C" >&6
19116 else
19117 ac_ext=cpp
19118 ac_cpp='$CXXCPP $CPPFLAGS'
19119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19123 cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h. */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 #include <stdlib.h>
19131 main ()
19133 srand48(0);lrand48();drand48();
19135 return 0;
19137 _ACEOF
19138 rm -f conftest.$ac_objext
19139 if { (ac_try="$ac_compile"
19140 case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19143 esac
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_compile") 2>conftest.er1
19146 ac_status=$?
19147 grep -v '^ *+' conftest.er1 >conftest.err
19148 rm -f conftest.er1
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } &&
19152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19153 { (case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19156 esac
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_try") 2>&5
19159 ac_status=$?
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; } &&
19162 { ac_try='test -s conftest.$ac_objext'
19163 { (case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_try") 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
19172 ac_cv_func_rand48=yes
19173 else
19174 echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19177 ac_cv_func_rand48=no
19180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181 ac_ext=c
19182 ac_cpp='$CPP $CPPFLAGS'
19183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19188 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19189 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19191 if test "$ac_cv_func_rand48" = "yes" ; then
19193 cat >>confdefs.h <<\_ACEOF
19194 #define HAVE_RAND48 1
19195 _ACEOF
19201 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19202 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19203 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19205 else
19206 ac_ext=cpp
19207 ac_cpp='$CXXCPP $CPPFLAGS'
19208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19212 cat >conftest.$ac_ext <<_ACEOF
19213 /* confdefs.h. */
19214 _ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19218 #include <math.h>
19220 main ()
19222 float f; isnan(f);
19224 return 0;
19226 _ACEOF
19227 rm -f conftest.$ac_objext
19228 if { (ac_try="$ac_compile"
19229 case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19232 esac
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_compile") 2>conftest.er1
19235 ac_status=$?
19236 grep -v '^ *+' conftest.er1 >conftest.err
19237 rm -f conftest.er1
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19242 { (case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19245 esac
19246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_try") 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest.$ac_objext'
19252 { (case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19255 esac
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_try") 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 ac_cv_func_isnan_in_math_h=yes
19262 else
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19266 ac_cv_func_isnan_in_math_h=no
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270 ac_ext=c
19271 ac_cpp='$CPP $CPPFLAGS'
19272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19277 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19278 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19281 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19283 cat >>confdefs.h <<\_ACEOF
19284 #define HAVE_ISNAN_IN_MATH_H 1
19285 _ACEOF
19289 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19290 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19291 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19293 else
19294 ac_ext=cpp
19295 ac_cpp='$CXXCPP $CPPFLAGS'
19296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19300 cat >conftest.$ac_ext <<_ACEOF
19301 /* confdefs.h. */
19302 _ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19306 #include <cmath>
19308 main ()
19310 float f; isnan(f);
19312 return 0;
19314 _ACEOF
19315 rm -f conftest.$ac_objext
19316 if { (ac_try="$ac_compile"
19317 case "(($ac_try" in
19318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19319 *) ac_try_echo=$ac_try;;
19320 esac
19321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19322 (eval "$ac_compile") 2>conftest.er1
19323 ac_status=$?
19324 grep -v '^ *+' conftest.er1 >conftest.err
19325 rm -f conftest.er1
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19330 { (case "(($ac_try" in
19331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19332 *) ac_try_echo=$ac_try;;
19333 esac
19334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19335 (eval "$ac_try") 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try='test -s conftest.$ac_objext'
19340 { (case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19343 esac
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_try") 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
19349 ac_cv_func_isnan_in_cmath=yes
19350 else
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19354 ac_cv_func_isnan_in_cmath=no
19357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19358 ac_ext=c
19359 ac_cpp='$CPP $CPPFLAGS'
19360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19365 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19366 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19368 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19370 cat >>confdefs.h <<\_ACEOF
19371 #define HAVE_ISNAN_IN_CMATH 1
19372 _ACEOF
19376 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19377 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19378 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19380 else
19381 ac_ext=cpp
19382 ac_cpp='$CXXCPP $CPPFLAGS'
19383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19387 cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h. */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19393 #include <cmath>
19395 main ()
19397 float f; std::isnan(f);
19399 return 0;
19401 _ACEOF
19402 rm -f conftest.$ac_objext
19403 if { (ac_try="$ac_compile"
19404 case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19407 esac
19408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409 (eval "$ac_compile") 2>conftest.er1
19410 ac_status=$?
19411 grep -v '^ *+' conftest.er1 >conftest.err
19412 rm -f conftest.er1
19413 cat conftest.err >&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } &&
19416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19417 { (case "(($ac_try" in
19418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419 *) ac_try_echo=$ac_try;;
19420 esac
19421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19422 (eval "$ac_try") 2>&5
19423 ac_status=$?
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; } &&
19426 { ac_try='test -s conftest.$ac_objext'
19427 { (case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19430 esac
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_try") 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_cv_func_std_isnan_in_cmath=yes
19437 else
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 ac_cv_func_std_isnan_in_cmath=no
19444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19445 ac_ext=c
19446 ac_cpp='$CPP $CPPFLAGS'
19447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19452 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19453 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19455 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE_STD_ISNAN_IN_CMATH 1
19459 _ACEOF
19464 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19465 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19466 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469 ac_ext=cpp
19470 ac_cpp='$CXXCPP $CPPFLAGS'
19471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19475 cat >conftest.$ac_ext <<_ACEOF
19476 /* confdefs.h. */
19477 _ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19481 #include <math.h>
19483 main ()
19485 float f; isinf(f);
19487 return 0;
19489 _ACEOF
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19495 esac
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_compile") 2>conftest.er1
19498 ac_status=$?
19499 grep -v '^ *+' conftest.er1 >conftest.err
19500 rm -f conftest.er1
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
19504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19505 { (case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19508 esac
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_try") 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; } &&
19514 { ac_try='test -s conftest.$ac_objext'
19515 { (case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19518 esac
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_try") 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_cv_func_isinf_in_math_h=yes
19525 else
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19529 ac_cv_func_isinf_in_math_h=no
19532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19533 ac_ext=c
19534 ac_cpp='$CPP $CPPFLAGS'
19535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19540 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19541 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19543 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19545 cat >>confdefs.h <<\_ACEOF
19546 #define HAVE_ISINF_IN_MATH_H 1
19547 _ACEOF
19551 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19552 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19553 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 else
19556 ac_ext=cpp
19557 ac_cpp='$CXXCPP $CPPFLAGS'
19558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19562 cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h. */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568 #include <cmath>
19570 main ()
19572 float f; isinf(f);
19574 return 0;
19576 _ACEOF
19577 rm -f conftest.$ac_objext
19578 if { (ac_try="$ac_compile"
19579 case "(($ac_try" in
19580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581 *) ac_try_echo=$ac_try;;
19582 esac
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584 (eval "$ac_compile") 2>conftest.er1
19585 ac_status=$?
19586 grep -v '^ *+' conftest.er1 >conftest.err
19587 rm -f conftest.er1
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } &&
19591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19592 { (case "(($ac_try" in
19593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19594 *) ac_try_echo=$ac_try;;
19595 esac
19596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597 (eval "$ac_try") 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; } &&
19601 { ac_try='test -s conftest.$ac_objext'
19602 { (case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605 esac
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_try") 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; }; then
19611 ac_cv_func_isinf_in_cmath=yes
19612 else
19613 echo "$as_me: failed program was:" >&5
19614 sed 's/^/| /' conftest.$ac_ext >&5
19616 ac_cv_func_isinf_in_cmath=no
19619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19620 ac_ext=c
19621 ac_cpp='$CPP $CPPFLAGS'
19622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19627 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19628 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19630 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19632 cat >>confdefs.h <<\_ACEOF
19633 #define HAVE_ISINF_IN_CMATH 1
19634 _ACEOF
19638 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19639 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19640 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642 else
19643 ac_ext=cpp
19644 ac_cpp='$CXXCPP $CPPFLAGS'
19645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19649 cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h. */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 #include <cmath>
19657 main ()
19659 float f; std::isinf(f)}
19661 return 0;
19663 _ACEOF
19664 rm -f conftest.$ac_objext
19665 if { (ac_try="$ac_compile"
19666 case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19669 esac
19670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_compile") 2>conftest.er1
19672 ac_status=$?
19673 grep -v '^ *+' conftest.er1 >conftest.err
19674 rm -f conftest.er1
19675 cat conftest.err >&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } &&
19678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19679 { (case "(($ac_try" in
19680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19681 *) ac_try_echo=$ac_try;;
19682 esac
19683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19684 (eval "$ac_try") 2>&5
19685 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; } &&
19688 { ac_try='test -s conftest.$ac_objext'
19689 { (case "(($ac_try" in
19690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691 *) ac_try_echo=$ac_try;;
19692 esac
19693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694 (eval "$ac_try") 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 ac_cv_func_std_isinf_in_cmath=yes
19699 else
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19703 ac_cv_func_std_isinf_in_cmath=no
19706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19707 ac_ext=c
19708 ac_cpp='$CPP $CPPFLAGS'
19709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19714 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19715 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19717 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19719 cat >>confdefs.h <<\_ACEOF
19720 #define HAVE_STD_ISINF_IN_CMATH 1
19721 _ACEOF
19725 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19726 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19727 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19729 else
19730 ac_ext=cpp
19731 ac_cpp='$CXXCPP $CPPFLAGS'
19732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19736 cat >conftest.$ac_ext <<_ACEOF
19737 /* confdefs.h. */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742 #include <ieeefp.h>
19744 main ()
19746 float f; finite(f);
19748 return 0;
19750 _ACEOF
19751 rm -f conftest.$ac_objext
19752 if { (ac_try="$ac_compile"
19753 case "(($ac_try" in
19754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755 *) ac_try_echo=$ac_try;;
19756 esac
19757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758 (eval "$ac_compile") 2>conftest.er1
19759 ac_status=$?
19760 grep -v '^ *+' conftest.er1 >conftest.err
19761 rm -f conftest.er1
19762 cat conftest.err >&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } &&
19765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19766 { (case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19769 esac
19770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771 (eval "$ac_try") 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest.$ac_objext'
19776 { (case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19779 esac
19780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_try") 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; }; then
19785 ac_cv_func_finite_in_ieeefp_h=yes
19786 else
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19790 ac_cv_func_finite_in_ieeefp_h=no
19793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19794 ac_ext=c
19795 ac_cpp='$CPP $CPPFLAGS'
19796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19801 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19802 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19804 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19806 cat >>confdefs.h <<\_ACEOF
19807 #define HAVE_FINITE_IN_IEEEFP_H 1
19808 _ACEOF
19814 if test "$llvm_cv_platform_type" = "Unix" ; then
19817 for ac_header in stdlib.h unistd.h
19819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19824 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 ac_res=`eval echo '${'$as_ac_Header'}'`
19827 { echo "$as_me:$LINENO: result: $ac_res" >&5
19828 echo "${ECHO_T}$ac_res" >&6; }
19829 else
19830 # Is the header compilable?
19831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19833 cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h. */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19839 $ac_includes_default
19840 #include <$ac_header>
19841 _ACEOF
19842 rm -f conftest.$ac_objext
19843 if { (ac_try="$ac_compile"
19844 case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19847 esac
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_compile") 2>conftest.er1
19850 ac_status=$?
19851 grep -v '^ *+' conftest.er1 >conftest.err
19852 rm -f conftest.er1
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } &&
19856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19857 { (case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_try") 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest.$ac_objext'
19867 { (case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19870 esac
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_try") 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
19876 ac_header_compiler=yes
19877 else
19878 echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19881 ac_header_compiler=no
19884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19886 echo "${ECHO_T}$ac_header_compiler" >&6; }
19888 # Is the header present?
19889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19891 cat >conftest.$ac_ext <<_ACEOF
19892 /* confdefs.h. */
19893 _ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h. */
19897 #include <$ac_header>
19898 _ACEOF
19899 if { (ac_try="$ac_cpp conftest.$ac_ext"
19900 case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19903 esac
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19906 ac_status=$?
19907 grep -v '^ *+' conftest.er1 >conftest.err
19908 rm -f conftest.er1
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } >/dev/null; then
19912 if test -s conftest.err; then
19913 ac_cpp_err=$ac_c_preproc_warn_flag
19914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19915 else
19916 ac_cpp_err=
19918 else
19919 ac_cpp_err=yes
19921 if test -z "$ac_cpp_err"; then
19922 ac_header_preproc=yes
19923 else
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ac_header_preproc=no
19930 rm -f conftest.err conftest.$ac_ext
19931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19932 echo "${ECHO_T}$ac_header_preproc" >&6; }
19934 # So? What about this header?
19935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19936 yes:no: )
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19941 ac_header_preproc=yes
19943 no:yes:* )
19944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19956 ( cat <<\_ASBOX
19957 ## ----------------------------------- ##
19958 ## Report this to llvmbugs@cs.uiuc.edu ##
19959 ## ----------------------------------- ##
19960 _ASBOX
19961 ) | sed "s/^/$as_me: WARNING: /" >&2
19963 esac
19964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 else
19969 eval "$as_ac_Header=\$ac_header_preproc"
19971 ac_res=`eval echo '${'$as_ac_Header'}'`
19972 { echo "$as_me:$LINENO: result: $ac_res" >&5
19973 echo "${ECHO_T}$ac_res" >&6; }
19976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19977 cat >>confdefs.h <<_ACEOF
19978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19979 _ACEOF
19983 done
19986 for ac_func in getpagesize
19988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19993 else
19994 cat >conftest.$ac_ext <<_ACEOF
19995 /* confdefs.h. */
19996 _ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h. */
20000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20002 #define $ac_func innocuous_$ac_func
20004 /* System header to define __stub macros and hopefully few prototypes,
20005 which can conflict with char $ac_func (); below.
20006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20007 <limits.h> exists even on freestanding compilers. */
20009 #ifdef __STDC__
20010 # include <limits.h>
20011 #else
20012 # include <assert.h>
20013 #endif
20015 #undef $ac_func
20017 /* Override any GCC internal prototype to avoid an error.
20018 Use char because int might match the return type of a GCC
20019 builtin and then its argument prototype would still apply. */
20020 #ifdef __cplusplus
20021 extern "C"
20022 #endif
20023 char $ac_func ();
20024 /* The GNU C library defines this for functions which it implements
20025 to always fail with ENOSYS. Some functions are actually named
20026 something starting with __ and the normal name is an alias. */
20027 #if defined __stub_$ac_func || defined __stub___$ac_func
20028 choke me
20029 #endif
20032 main ()
20034 return $ac_func ();
20036 return 0;
20038 _ACEOF
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (ac_try="$ac_link"
20041 case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20044 esac
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_link") 2>conftest.er1
20047 ac_status=$?
20048 grep -v '^ *+' conftest.er1 >conftest.err
20049 rm -f conftest.er1
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } &&
20053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20054 { (case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20057 esac
20058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_try") 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; } &&
20063 { ac_try='test -s conftest$ac_exeext'
20064 { (case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20067 esac
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_try") 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 eval "$as_ac_var=yes"
20074 else
20075 echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20078 eval "$as_ac_var=no"
20081 rm -f core conftest.err conftest.$ac_objext \
20082 conftest$ac_exeext conftest.$ac_ext
20084 ac_res=`eval echo '${'$as_ac_var'}'`
20085 { echo "$as_me:$LINENO: result: $ac_res" >&5
20086 echo "${ECHO_T}$ac_res" >&6; }
20087 if test `eval echo '${'$as_ac_var'}'` = yes; then
20088 cat >>confdefs.h <<_ACEOF
20089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20090 _ACEOF
20093 done
20095 { echo "$as_me:$LINENO: checking for working mmap" >&5
20096 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20097 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 else
20100 if test "$cross_compiling" = yes; then
20101 ac_cv_func_mmap_fixed_mapped=no
20102 else
20103 cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h. */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 $ac_includes_default
20110 /* malloc might have been renamed as rpl_malloc. */
20111 #undef malloc
20113 /* Thanks to Mike Haertel and Jim Avera for this test.
20114 Here is a matrix of mmap possibilities:
20115 mmap private not fixed
20116 mmap private fixed at somewhere currently unmapped
20117 mmap private fixed at somewhere already mapped
20118 mmap shared not fixed
20119 mmap shared fixed at somewhere currently unmapped
20120 mmap shared fixed at somewhere already mapped
20121 For private mappings, we should verify that changes cannot be read()
20122 back from the file, nor mmap's back from the file at a different
20123 address. (There have been systems where private was not correctly
20124 implemented like the infamous i386 svr4.0, and systems where the
20125 VM page cache was not coherent with the file system buffer cache
20126 like early versions of FreeBSD and possibly contemporary NetBSD.)
20127 For shared mappings, we should conversely verify that changes get
20128 propagated back to all the places they're supposed to be.
20130 Grep wants private fixed already mapped.
20131 The main things grep needs to know about mmap are:
20132 * does it exist and is it safe to write into the mmap'd area
20133 * how to use it (BSD variants) */
20135 #include <fcntl.h>
20136 #include <sys/mman.h>
20138 #if !STDC_HEADERS && !HAVE_STDLIB_H
20139 char *malloc ();
20140 #endif
20142 /* This mess was copied from the GNU getpagesize.h. */
20143 #if !HAVE_GETPAGESIZE
20144 /* Assume that all systems that can run configure have sys/param.h. */
20145 # if !HAVE_SYS_PARAM_H
20146 # define HAVE_SYS_PARAM_H 1
20147 # endif
20149 # ifdef _SC_PAGESIZE
20150 # define getpagesize() sysconf(_SC_PAGESIZE)
20151 # else /* no _SC_PAGESIZE */
20152 # if HAVE_SYS_PARAM_H
20153 # include <sys/param.h>
20154 # ifdef EXEC_PAGESIZE
20155 # define getpagesize() EXEC_PAGESIZE
20156 # else /* no EXEC_PAGESIZE */
20157 # ifdef NBPG
20158 # define getpagesize() NBPG * CLSIZE
20159 # ifndef CLSIZE
20160 # define CLSIZE 1
20161 # endif /* no CLSIZE */
20162 # else /* no NBPG */
20163 # ifdef NBPC
20164 # define getpagesize() NBPC
20165 # else /* no NBPC */
20166 # ifdef PAGESIZE
20167 # define getpagesize() PAGESIZE
20168 # endif /* PAGESIZE */
20169 # endif /* no NBPC */
20170 # endif /* no NBPG */
20171 # endif /* no EXEC_PAGESIZE */
20172 # else /* no HAVE_SYS_PARAM_H */
20173 # define getpagesize() 8192 /* punt totally */
20174 # endif /* no HAVE_SYS_PARAM_H */
20175 # endif /* no _SC_PAGESIZE */
20177 #endif /* no HAVE_GETPAGESIZE */
20180 main ()
20182 char *data, *data2, *data3;
20183 int i, pagesize;
20184 int fd;
20186 pagesize = getpagesize ();
20188 /* First, make a file with some known garbage in it. */
20189 data = (char *) malloc (pagesize);
20190 if (!data)
20191 return 1;
20192 for (i = 0; i < pagesize; ++i)
20193 *(data + i) = rand ();
20194 umask (0);
20195 fd = creat ("conftest.mmap", 0600);
20196 if (fd < 0)
20197 return 1;
20198 if (write (fd, data, pagesize) != pagesize)
20199 return 1;
20200 close (fd);
20202 /* Next, try to mmap the file at a fixed address which already has
20203 something else allocated at it. If we can, also make sure that
20204 we see the same garbage. */
20205 fd = open ("conftest.mmap", O_RDWR);
20206 if (fd < 0)
20207 return 1;
20208 data2 = (char *) malloc (2 * pagesize);
20209 if (!data2)
20210 return 1;
20211 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20212 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20213 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20214 return 1;
20215 for (i = 0; i < pagesize; ++i)
20216 if (*(data + i) != *(data2 + i))
20217 return 1;
20219 /* Finally, make sure that changes to the mapped area do not
20220 percolate back to the file as seen by read(). (This is a bug on
20221 some variants of i386 svr4.0.) */
20222 for (i = 0; i < pagesize; ++i)
20223 *(data2 + i) = *(data2 + i) + 1;
20224 data3 = (char *) malloc (pagesize);
20225 if (!data3)
20226 return 1;
20227 if (read (fd, data3, pagesize) != pagesize)
20228 return 1;
20229 for (i = 0; i < pagesize; ++i)
20230 if (*(data + i) != *(data3 + i))
20231 return 1;
20232 close (fd);
20233 return 0;
20235 _ACEOF
20236 rm -f conftest$ac_exeext
20237 if { (ac_try="$ac_link"
20238 case "(($ac_try" in
20239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240 *) ac_try_echo=$ac_try;;
20241 esac
20242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20243 (eval "$ac_link") 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20247 { (case "(($ac_try" in
20248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249 *) ac_try_echo=$ac_try;;
20250 esac
20251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252 (eval "$ac_try") 2>&5
20253 ac_status=$?
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; }; then
20256 ac_cv_func_mmap_fixed_mapped=yes
20257 else
20258 echo "$as_me: program exited with status $ac_status" >&5
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20262 ( exit $ac_status )
20263 ac_cv_func_mmap_fixed_mapped=no
20265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20270 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20271 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20272 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20274 cat >>confdefs.h <<\_ACEOF
20275 #define HAVE_MMAP 1
20276 _ACEOF
20279 rm -f conftest.mmap
20281 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20282 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20283 if test "${ac_cv_func_mmap_file+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
20285 else
20286 ac_ext=c
20287 ac_cpp='$CPP $CPPFLAGS'
20288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20292 if test "$cross_compiling" = yes; then
20293 ac_cv_func_mmap_file=no
20294 else
20295 cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h. */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20303 #include <sys/types.h>
20304 #include <sys/mman.h>
20305 #include <fcntl.h>
20308 main ()
20311 int fd;
20312 fd = creat ("foo",0777);
20313 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20314 unlink ("foo");
20315 return (fd != (int) MAP_FAILED);
20317 return 0;
20319 _ACEOF
20320 rm -f conftest$ac_exeext
20321 if { (ac_try="$ac_link"
20322 case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20325 esac
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_link") 2>&5
20328 ac_status=$?
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20331 { (case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_try") 2>&5
20337 ac_status=$?
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; }; then
20340 ac_cv_func_mmap_file=yes
20341 else
20342 echo "$as_me: program exited with status $ac_status" >&5
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346 ( exit $ac_status )
20347 ac_cv_func_mmap_file=no
20349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20353 ac_ext=c
20354 ac_cpp='$CPP $CPPFLAGS'
20355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20361 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20362 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20363 if test "$ac_cv_func_mmap_file" = yes; then
20365 cat >>confdefs.h <<\_ACEOF
20366 #define HAVE_MMAP_FILE
20367 _ACEOF
20369 MMAP_FILE=yes
20373 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20374 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20375 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378 if test "$llvm_cv_os_type" = "Interix" ; then
20379 ac_cv_need_dev_zero_for_mmap=yes
20380 else
20381 ac_cv_need_dev_zero_for_mmap=no
20385 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20386 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20387 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20389 cat >>confdefs.h <<\_ACEOF
20390 #define NEED_DEV_ZERO_FOR_MMAP 1
20391 _ACEOF
20395 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20396 then
20397 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20398 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20400 if test "$ac_cv_func_mmap_file" = "no"
20401 then
20402 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20403 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20407 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20408 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20409 ac_ext=cpp
20410 ac_cpp='$CXXCPP $CPPFLAGS'
20411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20415 cat >conftest.$ac_ext <<_ACEOF
20416 /* confdefs.h. */
20417 _ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20421 int main() {
20422 volatile unsigned long val = 1;
20423 __sync_synchronize();
20424 __sync_val_compare_and_swap(&val, 1, 0);
20425 __sync_add_and_fetch(&val, 1);
20426 __sync_sub_and_fetch(&val, 1);
20427 return 0;
20430 _ACEOF
20431 rm -f conftest.$ac_objext conftest$ac_exeext
20432 if { (ac_try="$ac_link"
20433 case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20436 esac
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_link") 2>conftest.er1
20439 ac_status=$?
20440 grep -v '^ *+' conftest.er1 >conftest.err
20441 rm -f conftest.er1
20442 cat conftest.err >&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } &&
20445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20446 { (case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20449 esac
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_try") 2>&5
20452 ac_status=$?
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; } &&
20455 { ac_try='test -s conftest$ac_exeext'
20456 { (case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20459 esac
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_try") 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
20465 ac_ext=c
20466 ac_cpp='$CPP $CPPFLAGS'
20467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20471 { echo "$as_me:$LINENO: result: yes" >&5
20472 echo "${ECHO_T}yes" >&6; }
20474 cat >>confdefs.h <<\_ACEOF
20475 #define LLVM_MULTITHREADED 1
20476 _ACEOF
20478 else
20479 echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20482 { echo "$as_me:$LINENO: result: no" >&5
20483 echo "${ECHO_T}no" >&6; }
20485 cat >>confdefs.h <<\_ACEOF
20486 #define LLVM_MULTITHREADED 0
20487 _ACEOF
20489 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20490 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20493 rm -f core conftest.err conftest.$ac_objext \
20494 conftest$ac_exeext conftest.$ac_ext
20497 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20498 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20499 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20500 if test "${llvm_cv_linux_mixed+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20502 else
20503 ac_ext=c
20504 ac_cpp='$CPP $CPPFLAGS'
20505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20509 cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h. */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20515 #ifndef __x86_64__
20516 error: Not x86-64 even if uname says so!
20517 #endif
20520 main ()
20524 return 0;
20526 _ACEOF
20527 rm -f conftest.$ac_objext
20528 if { (ac_try="$ac_compile"
20529 case "(($ac_try" in
20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531 *) ac_try_echo=$ac_try;;
20532 esac
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_compile") 2>conftest.er1
20535 ac_status=$?
20536 grep -v '^ *+' conftest.er1 >conftest.err
20537 rm -f conftest.er1
20538 cat conftest.err >&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } &&
20541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20542 { (case "(($ac_try" in
20543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544 *) ac_try_echo=$ac_try;;
20545 esac
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547 (eval "$ac_try") 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; } &&
20551 { ac_try='test -s conftest.$ac_objext'
20552 { (case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555 esac
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_try") 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 llvm_cv_linux_mixed=no
20562 else
20563 echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20566 llvm_cv_linux_mixed=yes
20569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20570 ac_ext=c
20571 ac_cpp='$CPP $CPPFLAGS'
20572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20578 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20579 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20581 if test "$llvm_cv_linux_mixed" = "yes"; then
20582 llvm_cv_target_arch="x86"
20583 ARCH="x86"
20588 for ac_func in __dso_handle
20590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20595 else
20596 cat >conftest.$ac_ext <<_ACEOF
20597 /* confdefs.h. */
20598 _ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h. */
20602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20604 #define $ac_func innocuous_$ac_func
20606 /* System header to define __stub macros and hopefully few prototypes,
20607 which can conflict with char $ac_func (); below.
20608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20609 <limits.h> exists even on freestanding compilers. */
20611 #ifdef __STDC__
20612 # include <limits.h>
20613 #else
20614 # include <assert.h>
20615 #endif
20617 #undef $ac_func
20619 /* Override any GCC internal prototype to avoid an error.
20620 Use char because int might match the return type of a GCC
20621 builtin and then its argument prototype would still apply. */
20622 #ifdef __cplusplus
20623 extern "C"
20624 #endif
20625 char $ac_func ();
20626 /* The GNU C library defines this for functions which it implements
20627 to always fail with ENOSYS. Some functions are actually named
20628 something starting with __ and the normal name is an alias. */
20629 #if defined __stub_$ac_func || defined __stub___$ac_func
20630 choke me
20631 #endif
20634 main ()
20636 return $ac_func ();
20638 return 0;
20640 _ACEOF
20641 rm -f conftest.$ac_objext conftest$ac_exeext
20642 if { (ac_try="$ac_link"
20643 case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20646 esac
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648 (eval "$ac_link") 2>conftest.er1
20649 ac_status=$?
20650 grep -v '^ *+' conftest.er1 >conftest.err
20651 rm -f conftest.er1
20652 cat conftest.err >&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } &&
20655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20656 { (case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20659 esac
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_try") 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; } &&
20665 { ac_try='test -s conftest$ac_exeext'
20666 { (case "(($ac_try" in
20667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668 *) ac_try_echo=$ac_try;;
20669 esac
20670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671 (eval "$ac_try") 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; }; then
20675 eval "$as_ac_var=yes"
20676 else
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 eval "$as_ac_var=no"
20683 rm -f core conftest.err conftest.$ac_objext \
20684 conftest$ac_exeext conftest.$ac_ext
20686 ac_res=`eval echo '${'$as_ac_var'}'`
20687 { echo "$as_me:$LINENO: result: $ac_res" >&5
20688 echo "${ECHO_T}$ac_res" >&6; }
20689 if test `eval echo '${'$as_ac_var'}'` = yes; then
20690 cat >>confdefs.h <<_ACEOF
20691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20692 _ACEOF
20695 done
20698 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
20699 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
20700 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
20701 echo $ECHO_N "(cached) $ECHO_C" >&6
20702 else
20703 llvm_cv_llvmgcc_dragonegg="no"
20704 if test -n "$LLVMGCC" ; then
20705 cp /dev/null conftest.c
20706 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
20707 if test $? -eq 0 ; then
20708 llvm_cv_llvmgcc_dragonegg="yes"
20710 rm conftest.c
20713 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
20714 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
20716 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
20717 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
20718 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
20719 else
20720 LLVMCC_EMITIR_FLAG="-emit-llvm"
20721 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
20726 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20727 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20728 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20729 echo $ECHO_N "(cached) $ECHO_C" >&6
20730 else
20731 llvm_cv_llvmgcc_sanity="no"
20732 if test -n "$LLVMGCC" ; then
20733 cp /dev/null conftest.c
20734 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
20735 grep 'target datalayout =' > /dev/null 2>&1
20736 if test $? -eq 0 ; then
20737 llvm_cv_llvmgcc_sanity="yes"
20739 rm conftest.c
20742 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20743 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20745 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20746 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20747 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20748 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
20749 LLVMCC1=$llvmcc1path
20751 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
20752 LLVMCC1PLUS=$llvmcc1pluspath
20754 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20755 LLVMGCCDIR=$llvmgccdir
20757 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20758 LLVMGCC_LANGS=$llvmgcclangs
20760 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
20763 { echo "$as_me:$LINENO: result: ok" >&5
20764 echo "${ECHO_T}ok" >&6; }
20767 SHLIBEXT=$libltdl_cv_shlibext
20770 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20773 # Translate the various configuration directories and other basic
20774 # information into substitutions that will end up in Makefile.config.in
20775 # that these configured values can be used by the makefiles
20776 if test "${prefix}" = "NONE" ; then
20777 prefix="/usr/local"
20779 eval LLVM_PREFIX="${prefix}";
20780 eval LLVM_BINDIR="${prefix}/bin";
20781 eval LLVM_LIBDIR="${prefix}/lib";
20782 eval LLVM_DATADIR="${prefix}/share/llvm";
20783 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20784 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20785 eval LLVM_INCLUDEDIR="${prefix}/include";
20786 eval LLVM_INFODIR="${prefix}/info";
20787 eval LLVM_MANDIR="${prefix}/man";
20788 LLVM_CONFIGTIME=`date`
20800 # Place the various directores into the config.h file as #defines so that we
20801 # can know about the installation paths within LLVM.
20803 cat >>confdefs.h <<_ACEOF
20804 #define LLVM_PREFIX "$LLVM_PREFIX"
20805 _ACEOF
20808 cat >>confdefs.h <<_ACEOF
20809 #define LLVM_BINDIR "$LLVM_BINDIR"
20810 _ACEOF
20813 cat >>confdefs.h <<_ACEOF
20814 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20815 _ACEOF
20818 cat >>confdefs.h <<_ACEOF
20819 #define LLVM_DATADIR "$LLVM_DATADIR"
20820 _ACEOF
20823 cat >>confdefs.h <<_ACEOF
20824 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20825 _ACEOF
20828 cat >>confdefs.h <<_ACEOF
20829 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20830 _ACEOF
20833 cat >>confdefs.h <<_ACEOF
20834 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20835 _ACEOF
20838 cat >>confdefs.h <<_ACEOF
20839 #define LLVM_INFODIR "$LLVM_INFODIR"
20840 _ACEOF
20843 cat >>confdefs.h <<_ACEOF
20844 #define LLVM_MANDIR "$LLVM_MANDIR"
20845 _ACEOF
20848 cat >>confdefs.h <<_ACEOF
20849 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20850 _ACEOF
20853 cat >>confdefs.h <<_ACEOF
20854 #define LLVM_HOSTTRIPLE "$host"
20855 _ACEOF
20858 # Determine which bindings to build.
20859 if test "$BINDINGS_TO_BUILD" = auto ; then
20860 BINDINGS_TO_BUILD=""
20861 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20862 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20865 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20868 # This isn't really configurey, but it avoids having to repeat the list in
20869 # other files.
20870 ALL_BINDINGS=ocaml
20873 # Do any work necessary to ensure that bindings have what they need.
20874 binding_prereqs_failed=0
20875 for a_binding in $BINDINGS_TO_BUILD ; do
20876 case "$a_binding" in
20877 ocaml)
20878 if test "x$OCAMLC" = x ; then
20879 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20880 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20881 binding_prereqs_failed=1
20883 if test "x$OCAMLDEP" = x ; then
20884 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20885 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20886 binding_prereqs_failed=1
20888 if test "x$OCAMLOPT" = x ; then
20889 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20890 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20892 if test "x$with_ocaml_libdir" != xauto ; then
20893 OCAML_LIBDIR=$with_ocaml_libdir
20895 else
20896 ocaml_stdlib="`"$OCAMLC" -where`"
20897 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20898 then
20899 # ocaml stdlib is beneath our prefix; use stdlib
20900 OCAML_LIBDIR=$ocaml_stdlib
20902 else
20903 # ocaml stdlib is outside our prefix; use libdir/ocaml
20904 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20909 esac
20910 done
20911 if test "$binding_prereqs_failed" = 1 ; then
20912 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20913 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20914 { (exit 1); exit 1; }; }
20917 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20918 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20919 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20920 echo $ECHO_N "(cached) $ECHO_C" >&6
20921 else
20922 ac_ext=cpp
20923 ac_cpp='$CXXCPP $CPPFLAGS'
20924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20928 oldcxxflags="$CXXFLAGS"
20929 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20930 cat >conftest.$ac_ext <<_ACEOF
20931 /* confdefs.h. */
20932 _ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20938 main ()
20942 return 0;
20944 _ACEOF
20945 rm -f conftest.$ac_objext
20946 if { (ac_try="$ac_compile"
20947 case "(($ac_try" in
20948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949 *) ac_try_echo=$ac_try;;
20950 esac
20951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20952 (eval "$ac_compile") 2>conftest.er1
20953 ac_status=$?
20954 grep -v '^ *+' conftest.er1 >conftest.err
20955 rm -f conftest.er1
20956 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } &&
20959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20960 { (case "(($ac_try" in
20961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20962 *) ac_try_echo=$ac_try;;
20963 esac
20964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20965 (eval "$ac_try") 2>&5
20966 ac_status=$?
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; } &&
20969 { ac_try='test -s conftest.$ac_objext'
20970 { (case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20973 esac
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_try") 2>&5
20976 ac_status=$?
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; }; then
20979 llvm_cv_cxx_visibility_inlines_hidden=yes
20980 else
20981 echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20984 llvm_cv_cxx_visibility_inlines_hidden=no
20987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20988 CXXFLAGS="$oldcxxflags"
20989 ac_ext=c
20990 ac_cpp='$CPP $CPPFLAGS'
20991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20997 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20998 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20999 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21000 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21002 else
21003 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21008 if test "$llvm_cv_link_use_r" = "yes" ; then
21009 RPATH="-Wl,-R"
21010 else
21011 RPATH="-Wl,-rpath"
21015 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21016 RDYNAMIC="-Wl,-export-dynamic"
21017 else
21018 RDYNAMIC=""
21023 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21030 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21032 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21034 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21036 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21038 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21041 ac_config_files="$ac_config_files Makefile.config"
21044 ac_config_files="$ac_config_files llvm.spec"
21047 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
21050 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21053 ac_config_commands="$ac_config_commands setup"
21055 ac_config_commands="$ac_config_commands Makefile"
21058 ac_config_commands="$ac_config_commands Makefile.common"
21061 ac_config_commands="$ac_config_commands examples/Makefile"
21064 ac_config_commands="$ac_config_commands lib/Makefile"
21067 ac_config_commands="$ac_config_commands runtime/Makefile"
21070 ac_config_commands="$ac_config_commands test/Makefile"
21073 ac_config_commands="$ac_config_commands test/Makefile.tests"
21076 ac_config_commands="$ac_config_commands unittests/Makefile"
21079 ac_config_commands="$ac_config_commands tools/Makefile"
21082 ac_config_commands="$ac_config_commands utils/Makefile"
21085 ac_config_commands="$ac_config_commands projects/Makefile"
21088 ac_config_commands="$ac_config_commands bindings/Makefile"
21091 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21095 cat >confcache <<\_ACEOF
21096 # This file is a shell script that caches the results of configure
21097 # tests run on this system so they can be shared between configure
21098 # scripts and configure runs, see configure's option --config-cache.
21099 # It is not useful on other systems. If it contains results you don't
21100 # want to keep, you may remove or edit it.
21102 # config.status only pays attention to the cache file if you give it
21103 # the --recheck option to rerun configure.
21105 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21106 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21107 # following values.
21109 _ACEOF
21111 # The following way of writing the cache mishandles newlines in values,
21112 # but we know of no workaround that is simple, portable, and efficient.
21113 # So, we kill variables containing newlines.
21114 # Ultrix sh set writes to stderr and can't be redirected directly,
21115 # and sets the high bit in the cache file unless we assign to the vars.
21117 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21118 eval ac_val=\$$ac_var
21119 case $ac_val in #(
21120 *${as_nl}*)
21121 case $ac_var in #(
21122 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21123 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21124 esac
21125 case $ac_var in #(
21126 _ | IFS | as_nl) ;; #(
21127 *) $as_unset $ac_var ;;
21128 esac ;;
21129 esac
21130 done
21132 (set) 2>&1 |
21133 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21134 *${as_nl}ac_space=\ *)
21135 # `set' does not quote correctly, so add quotes (double-quote
21136 # substitution turns \\\\ into \\, and sed turns \\ into \).
21137 sed -n \
21138 "s/'/'\\\\''/g;
21139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21140 ;; #(
21142 # `set' quotes correctly as required by POSIX, so do not add quotes.
21143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21145 esac |
21146 sort
21148 sed '
21149 /^ac_cv_env_/b end
21150 t clear
21151 :clear
21152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21153 t end
21154 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21155 :end' >>confcache
21156 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21157 if test -w "$cache_file"; then
21158 test "x$cache_file" != "x/dev/null" &&
21159 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21160 echo "$as_me: updating cache $cache_file" >&6;}
21161 cat confcache >$cache_file
21162 else
21163 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21164 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21167 rm -f confcache
21169 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21170 # Let make expand exec_prefix.
21171 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21173 DEFS=-DHAVE_CONFIG_H
21175 ac_libobjs=
21176 ac_ltlibobjs=
21177 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21178 # 1. Remove the extension, and $U if already installed.
21179 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21180 ac_i=`echo "$ac_i" | sed "$ac_script"`
21181 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21182 # will be set to the directory where LIBOBJS objects are built.
21183 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21184 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21185 done
21186 LIBOBJS=$ac_libobjs
21188 LTLIBOBJS=$ac_ltlibobjs
21191 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21192 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21193 Usually this means the macro was only invoked conditionally." >&5
21194 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21195 Usually this means the macro was only invoked conditionally." >&2;}
21196 { (exit 1); exit 1; }; }
21198 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21199 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21200 Usually this means the macro was only invoked conditionally." >&5
21201 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21202 Usually this means the macro was only invoked conditionally." >&2;}
21203 { (exit 1); exit 1; }; }
21206 : ${CONFIG_STATUS=./config.status}
21207 ac_clean_files_save=$ac_clean_files
21208 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21209 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21210 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21211 cat >$CONFIG_STATUS <<_ACEOF
21212 #! $SHELL
21213 # Generated by $as_me.
21214 # Run this file to recreate the current configuration.
21215 # Compiler output produced by configure, useful for debugging
21216 # configure, is in config.log if it exists.
21218 debug=false
21219 ac_cs_recheck=false
21220 ac_cs_silent=false
21221 SHELL=\${CONFIG_SHELL-$SHELL}
21222 _ACEOF
21224 cat >>$CONFIG_STATUS <<\_ACEOF
21225 ## --------------------- ##
21226 ## M4sh Initialization. ##
21227 ## --------------------- ##
21229 # Be Bourne compatible
21230 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21231 emulate sh
21232 NULLCMD=:
21233 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21234 # is contrary to our usage. Disable this feature.
21235 alias -g '${1+"$@"}'='"$@"'
21236 setopt NO_GLOB_SUBST
21237 else
21238 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21240 BIN_SH=xpg4; export BIN_SH # for Tru64
21241 DUALCASE=1; export DUALCASE # for MKS sh
21244 # PATH needs CR
21245 # Avoid depending upon Character Ranges.
21246 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21247 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21248 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21249 as_cr_digits='0123456789'
21250 as_cr_alnum=$as_cr_Letters$as_cr_digits
21252 # The user is always right.
21253 if test "${PATH_SEPARATOR+set}" != set; then
21254 echo "#! /bin/sh" >conf$$.sh
21255 echo "exit 0" >>conf$$.sh
21256 chmod +x conf$$.sh
21257 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21258 PATH_SEPARATOR=';'
21259 else
21260 PATH_SEPARATOR=:
21262 rm -f conf$$.sh
21265 # Support unset when possible.
21266 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21267 as_unset=unset
21268 else
21269 as_unset=false
21273 # IFS
21274 # We need space, tab and new line, in precisely that order. Quoting is
21275 # there to prevent editors from complaining about space-tab.
21276 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21277 # splitting by setting IFS to empty value.)
21278 as_nl='
21280 IFS=" "" $as_nl"
21282 # Find who we are. Look in the path if we contain no directory separator.
21283 case $0 in
21284 *[\\/]* ) as_myself=$0 ;;
21285 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21286 for as_dir in $PATH
21288 IFS=$as_save_IFS
21289 test -z "$as_dir" && as_dir=.
21290 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21291 done
21292 IFS=$as_save_IFS
21295 esac
21296 # We did not find ourselves, most probably we were run as `sh COMMAND'
21297 # in which case we are not to be found in the path.
21298 if test "x$as_myself" = x; then
21299 as_myself=$0
21301 if test ! -f "$as_myself"; then
21302 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21303 { (exit 1); exit 1; }
21306 # Work around bugs in pre-3.0 UWIN ksh.
21307 for as_var in ENV MAIL MAILPATH
21308 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21309 done
21310 PS1='$ '
21311 PS2='> '
21312 PS4='+ '
21314 # NLS nuisances.
21315 for as_var in \
21316 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21317 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21318 LC_TELEPHONE LC_TIME
21320 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21321 eval $as_var=C; export $as_var
21322 else
21323 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21325 done
21327 # Required to use basename.
21328 if expr a : '\(a\)' >/dev/null 2>&1 &&
21329 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21330 as_expr=expr
21331 else
21332 as_expr=false
21335 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21336 as_basename=basename
21337 else
21338 as_basename=false
21342 # Name of the executable.
21343 as_me=`$as_basename -- "$0" ||
21344 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21345 X"$0" : 'X\(//\)$' \| \
21346 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21347 echo X/"$0" |
21348 sed '/^.*\/\([^/][^/]*\)\/*$/{
21349 s//\1/
21352 /^X\/\(\/\/\)$/{
21353 s//\1/
21356 /^X\/\(\/\).*/{
21357 s//\1/
21360 s/.*/./; q'`
21362 # CDPATH.
21363 $as_unset CDPATH
21367 as_lineno_1=$LINENO
21368 as_lineno_2=$LINENO
21369 test "x$as_lineno_1" != "x$as_lineno_2" &&
21370 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21372 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21373 # uniformly replaced by the line number. The first 'sed' inserts a
21374 # line-number line after each line using $LINENO; the second 'sed'
21375 # does the real work. The second script uses 'N' to pair each
21376 # line-number line with the line containing $LINENO, and appends
21377 # trailing '-' during substitution so that $LINENO is not a special
21378 # case at line end.
21379 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21380 # scripts with optimization help from Paolo Bonzini. Blame Lee
21381 # E. McMahon (1931-1989) for sed's syntax. :-)
21382 sed -n '
21384 /[$]LINENO/=
21385 ' <$as_myself |
21386 sed '
21387 s/[$]LINENO.*/&-/
21388 t lineno
21390 :lineno
21392 :loop
21393 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21394 t loop
21395 s/-\n.*//
21396 ' >$as_me.lineno &&
21397 chmod +x "$as_me.lineno" ||
21398 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21399 { (exit 1); exit 1; }; }
21401 # Don't try to exec as it changes $[0], causing all sort of problems
21402 # (the dirname of $[0] is not the place where we might find the
21403 # original and so on. Autoconf is especially sensitive to this).
21404 . "./$as_me.lineno"
21405 # Exit status is that of the last command.
21406 exit
21410 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21411 as_dirname=dirname
21412 else
21413 as_dirname=false
21416 ECHO_C= ECHO_N= ECHO_T=
21417 case `echo -n x` in
21418 -n*)
21419 case `echo 'x\c'` in
21420 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21421 *) ECHO_C='\c';;
21422 esac;;
21424 ECHO_N='-n';;
21425 esac
21427 if expr a : '\(a\)' >/dev/null 2>&1 &&
21428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21429 as_expr=expr
21430 else
21431 as_expr=false
21434 rm -f conf$$ conf$$.exe conf$$.file
21435 if test -d conf$$.dir; then
21436 rm -f conf$$.dir/conf$$.file
21437 else
21438 rm -f conf$$.dir
21439 mkdir conf$$.dir
21441 echo >conf$$.file
21442 if ln -s conf$$.file conf$$ 2>/dev/null; then
21443 as_ln_s='ln -s'
21444 # ... but there are two gotchas:
21445 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21446 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21447 # In both cases, we have to default to `cp -p'.
21448 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21449 as_ln_s='cp -p'
21450 elif ln conf$$.file conf$$ 2>/dev/null; then
21451 as_ln_s=ln
21452 else
21453 as_ln_s='cp -p'
21455 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21456 rmdir conf$$.dir 2>/dev/null
21458 if mkdir -p . 2>/dev/null; then
21459 as_mkdir_p=:
21460 else
21461 test -d ./-p && rmdir ./-p
21462 as_mkdir_p=false
21465 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21466 # systems may use methods other than mode bits to determine executability.
21467 cat >conf$$.file <<_ASEOF
21468 #! /bin/sh
21469 exit 0
21470 _ASEOF
21471 chmod +x conf$$.file
21472 if test -x conf$$.file >/dev/null 2>&1; then
21473 as_executable_p="test -x"
21474 else
21475 as_executable_p=:
21477 rm -f conf$$.file
21479 # Sed expression to map a string onto a valid CPP name.
21480 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21482 # Sed expression to map a string onto a valid variable name.
21483 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21486 exec 6>&1
21488 # Save the log message, to keep $[0] and so on meaningful, and to
21489 # report actual input values of CONFIG_FILES etc. instead of their
21490 # values after options handling.
21491 ac_log="
21492 This file was extended by llvm $as_me 2.9svn, which was
21493 generated by GNU Autoconf 2.60. Invocation command line was
21495 CONFIG_FILES = $CONFIG_FILES
21496 CONFIG_HEADERS = $CONFIG_HEADERS
21497 CONFIG_LINKS = $CONFIG_LINKS
21498 CONFIG_COMMANDS = $CONFIG_COMMANDS
21499 $ $0 $@
21501 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21504 _ACEOF
21506 cat >>$CONFIG_STATUS <<_ACEOF
21507 # Files that config.status was made for.
21508 config_files="$ac_config_files"
21509 config_headers="$ac_config_headers"
21510 config_commands="$ac_config_commands"
21512 _ACEOF
21514 cat >>$CONFIG_STATUS <<\_ACEOF
21515 ac_cs_usage="\
21516 \`$as_me' instantiates files from templates according to the
21517 current configuration.
21519 Usage: $0 [OPTIONS] [FILE]...
21521 -h, --help print this help, then exit
21522 -V, --version print version number, then exit
21523 -q, --quiet do not print progress messages
21524 -d, --debug don't remove temporary files
21525 --recheck update $as_me by reconfiguring in the same conditions
21526 --file=FILE[:TEMPLATE]
21527 instantiate the configuration file FILE
21528 --header=FILE[:TEMPLATE]
21529 instantiate the configuration header FILE
21531 Configuration files:
21532 $config_files
21534 Configuration headers:
21535 $config_headers
21537 Configuration commands:
21538 $config_commands
21540 Report bugs to <bug-autoconf@gnu.org>."
21542 _ACEOF
21543 cat >>$CONFIG_STATUS <<_ACEOF
21544 ac_cs_version="\\
21545 llvm config.status 2.9svn
21546 configured by $0, generated by GNU Autoconf 2.60,
21547 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21549 Copyright (C) 2006 Free Software Foundation, Inc.
21550 This config.status script is free software; the Free Software Foundation
21551 gives unlimited permission to copy, distribute and modify it."
21553 ac_pwd='$ac_pwd'
21554 srcdir='$srcdir'
21555 INSTALL='$INSTALL'
21556 _ACEOF
21558 cat >>$CONFIG_STATUS <<\_ACEOF
21559 # If no file are specified by the user, then we need to provide default
21560 # value. By we need to know if files were specified by the user.
21561 ac_need_defaults=:
21562 while test $# != 0
21564 case $1 in
21565 --*=*)
21566 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21567 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21568 ac_shift=:
21571 ac_option=$1
21572 ac_optarg=$2
21573 ac_shift=shift
21575 esac
21577 case $ac_option in
21578 # Handling of the options.
21579 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21580 ac_cs_recheck=: ;;
21581 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21582 echo "$ac_cs_version"; exit ;;
21583 --debug | --debu | --deb | --de | --d | -d )
21584 debug=: ;;
21585 --file | --fil | --fi | --f )
21586 $ac_shift
21587 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21588 ac_need_defaults=false;;
21589 --header | --heade | --head | --hea )
21590 $ac_shift
21591 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21592 ac_need_defaults=false;;
21593 --he | --h)
21594 # Conflict between --help and --header
21595 { echo "$as_me: error: ambiguous option: $1
21596 Try \`$0 --help' for more information." >&2
21597 { (exit 1); exit 1; }; };;
21598 --help | --hel | -h )
21599 echo "$ac_cs_usage"; exit ;;
21600 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21601 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21602 ac_cs_silent=: ;;
21604 # This is an error.
21605 -*) { echo "$as_me: error: unrecognized option: $1
21606 Try \`$0 --help' for more information." >&2
21607 { (exit 1); exit 1; }; } ;;
21609 *) ac_config_targets="$ac_config_targets $1"
21610 ac_need_defaults=false ;;
21612 esac
21613 shift
21614 done
21616 ac_configure_extra_args=
21618 if $ac_cs_silent; then
21619 exec 6>/dev/null
21620 ac_configure_extra_args="$ac_configure_extra_args --silent"
21623 _ACEOF
21624 cat >>$CONFIG_STATUS <<_ACEOF
21625 if \$ac_cs_recheck; then
21626 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21627 CONFIG_SHELL=$SHELL
21628 export CONFIG_SHELL
21629 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21632 _ACEOF
21633 cat >>$CONFIG_STATUS <<\_ACEOF
21634 exec 5>>config.log
21636 echo
21637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21638 ## Running $as_me. ##
21639 _ASBOX
21640 echo "$ac_log"
21641 } >&5
21643 _ACEOF
21644 cat >>$CONFIG_STATUS <<_ACEOF
21646 # INIT-COMMANDS
21648 llvm_src="${srcdir}"
21650 _ACEOF
21652 cat >>$CONFIG_STATUS <<\_ACEOF
21654 # Handling of arguments.
21655 for ac_config_target in $ac_config_targets
21657 case $ac_config_target in
21658 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21659 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21660 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21661 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21662 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21663 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21664 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21665 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21666 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21667 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21668 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21669 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21670 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21671 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21672 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21673 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21674 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21675 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21676 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21677 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21678 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21679 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21680 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21681 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21682 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21684 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21685 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21686 { (exit 1); exit 1; }; };;
21687 esac
21688 done
21691 # If the user did not use the arguments to specify the items to instantiate,
21692 # then the envvar interface is used. Set only those that are not.
21693 # We use the long form for the default assignment because of an extremely
21694 # bizarre bug on SunOS 4.1.3.
21695 if $ac_need_defaults; then
21696 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21697 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21698 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21701 # Have a temporary directory for convenience. Make it in the build tree
21702 # simply because there is no reason against having it here, and in addition,
21703 # creating and moving files from /tmp can sometimes cause problems.
21704 # Hook for its removal unless debugging.
21705 # Note that there is a small window in which the directory will not be cleaned:
21706 # after its creation but before its name has been assigned to `$tmp'.
21707 $debug ||
21709 tmp=
21710 trap 'exit_status=$?
21711 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21713 trap '{ (exit 1); exit 1; }' 1 2 13 15
21715 # Create a (secure) tmp directory for tmp files.
21718 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21719 test -n "$tmp" && test -d "$tmp"
21720 } ||
21722 tmp=./conf$$-$RANDOM
21723 (umask 077 && mkdir "$tmp")
21724 } ||
21726 echo "$me: cannot create a temporary directory in ." >&2
21727 { (exit 1); exit 1; }
21731 # Set up the sed scripts for CONFIG_FILES section.
21734 # No need to generate the scripts if there are no CONFIG_FILES.
21735 # This happens for instance when ./config.status config.h
21736 if test -n "$CONFIG_FILES"; then
21738 _ACEOF
21742 ac_delim='%!_!# '
21743 for ac_last_try in false false false false false :; do
21744 cat >conf$$subs.sed <<_ACEOF
21745 SHELL!$SHELL$ac_delim
21746 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21747 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21748 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21749 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21750 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21751 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21752 exec_prefix!$exec_prefix$ac_delim
21753 prefix!$prefix$ac_delim
21754 program_transform_name!$program_transform_name$ac_delim
21755 bindir!$bindir$ac_delim
21756 sbindir!$sbindir$ac_delim
21757 libexecdir!$libexecdir$ac_delim
21758 datarootdir!$datarootdir$ac_delim
21759 datadir!$datadir$ac_delim
21760 sysconfdir!$sysconfdir$ac_delim
21761 sharedstatedir!$sharedstatedir$ac_delim
21762 localstatedir!$localstatedir$ac_delim
21763 includedir!$includedir$ac_delim
21764 oldincludedir!$oldincludedir$ac_delim
21765 docdir!$docdir$ac_delim
21766 infodir!$infodir$ac_delim
21767 htmldir!$htmldir$ac_delim
21768 dvidir!$dvidir$ac_delim
21769 pdfdir!$pdfdir$ac_delim
21770 psdir!$psdir$ac_delim
21771 libdir!$libdir$ac_delim
21772 localedir!$localedir$ac_delim
21773 mandir!$mandir$ac_delim
21774 DEFS!$DEFS$ac_delim
21775 ECHO_C!$ECHO_C$ac_delim
21776 ECHO_N!$ECHO_N$ac_delim
21777 ECHO_T!$ECHO_T$ac_delim
21778 LIBS!$LIBS$ac_delim
21779 build_alias!$build_alias$ac_delim
21780 host_alias!$host_alias$ac_delim
21781 target_alias!$target_alias$ac_delim
21782 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21783 subdirs!$subdirs$ac_delim
21784 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21785 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21786 build!$build$ac_delim
21787 build_cpu!$build_cpu$ac_delim
21788 build_vendor!$build_vendor$ac_delim
21789 build_os!$build_os$ac_delim
21790 host!$host$ac_delim
21791 host_cpu!$host_cpu$ac_delim
21792 host_vendor!$host_vendor$ac_delim
21793 host_os!$host_os$ac_delim
21794 target!$target$ac_delim
21795 target_cpu!$target_cpu$ac_delim
21796 target_vendor!$target_vendor$ac_delim
21797 target_os!$target_os$ac_delim
21798 OS!$OS$ac_delim
21799 HOST_OS!$HOST_OS$ac_delim
21800 TARGET_OS!$TARGET_OS$ac_delim
21801 LINKALL!$LINKALL$ac_delim
21802 NOLINKALL!$NOLINKALL$ac_delim
21803 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21804 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21805 ARCH!$ARCH$ac_delim
21806 ENDIAN!$ENDIAN$ac_delim
21807 CC!$CC$ac_delim
21808 CFLAGS!$CFLAGS$ac_delim
21809 LDFLAGS!$LDFLAGS$ac_delim
21810 CPPFLAGS!$CPPFLAGS$ac_delim
21811 ac_ct_CC!$ac_ct_CC$ac_delim
21812 EXEEXT!$EXEEXT$ac_delim
21813 OBJEXT!$OBJEXT$ac_delim
21814 CPP!$CPP$ac_delim
21815 GREP!$GREP$ac_delim
21816 EGREP!$EGREP$ac_delim
21817 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21818 BUILD_CC!$BUILD_CC$ac_delim
21819 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21820 BUILD_CXX!$BUILD_CXX$ac_delim
21821 CVSBUILD!$CVSBUILD$ac_delim
21822 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21823 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21824 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21825 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21826 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21827 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21828 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21829 JIT!$JIT$ac_delim
21830 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21831 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21832 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21833 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21834 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21835 ENABLE_PIC!$ENABLE_PIC$ac_delim
21836 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21837 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21838 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21839 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21840 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21841 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21842 _ACEOF
21844 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21845 break
21846 elif $ac_last_try; then
21847 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21848 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21849 { (exit 1); exit 1; }; }
21850 else
21851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21853 done
21855 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21856 if test -n "$ac_eof"; then
21857 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21858 ac_eof=`expr $ac_eof + 1`
21861 cat >>$CONFIG_STATUS <<_ACEOF
21862 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21863 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21864 _ACEOF
21865 sed '
21866 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21867 s/^/s,@/; s/!/@,|#_!!_#|/
21870 s/'"$ac_delim"'$/,g/; t
21871 s/$/\\/; p
21872 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21873 ' >>$CONFIG_STATUS <conf$$subs.sed
21874 rm -f conf$$subs.sed
21875 cat >>$CONFIG_STATUS <<_ACEOF
21876 CEOF$ac_eof
21877 _ACEOF
21880 ac_delim='%!_!# '
21881 for ac_last_try in false false false false false :; do
21882 cat >conf$$subs.sed <<_ACEOF
21883 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21884 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21885 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21886 CLANGPATH!$CLANGPATH$ac_delim
21887 CLANGXXPATH!$CLANGXXPATH$ac_delim
21888 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21889 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21890 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21891 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21892 CXX!$CXX$ac_delim
21893 CXXFLAGS!$CXXFLAGS$ac_delim
21894 ac_ct_CXX!$ac_ct_CXX$ac_delim
21895 NM!$NM$ac_delim
21896 ifGNUmake!$ifGNUmake$ac_delim
21897 LN_S!$LN_S$ac_delim
21898 CMP!$CMP$ac_delim
21899 CP!$CP$ac_delim
21900 DATE!$DATE$ac_delim
21901 FIND!$FIND$ac_delim
21902 MKDIR!$MKDIR$ac_delim
21903 MV!$MV$ac_delim
21904 RANLIB!$RANLIB$ac_delim
21905 AR!$AR$ac_delim
21906 RM!$RM$ac_delim
21907 SED!$SED$ac_delim
21908 TAR!$TAR$ac_delim
21909 BINPWD!$BINPWD$ac_delim
21910 GRAPHVIZ!$GRAPHVIZ$ac_delim
21911 DOT!$DOT$ac_delim
21912 FDP!$FDP$ac_delim
21913 NEATO!$NEATO$ac_delim
21914 TWOPI!$TWOPI$ac_delim
21915 CIRCO!$CIRCO$ac_delim
21916 GV!$GV$ac_delim
21917 DOTTY!$DOTTY$ac_delim
21918 XDOT_PY!$XDOT_PY$ac_delim
21919 PERL!$PERL$ac_delim
21920 HAVE_PERL!$HAVE_PERL$ac_delim
21921 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21922 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21923 INSTALL_DATA!$INSTALL_DATA$ac_delim
21924 BZIP2!$BZIP2$ac_delim
21925 CAT!$CAT$ac_delim
21926 DOXYGEN!$DOXYGEN$ac_delim
21927 GROFF!$GROFF$ac_delim
21928 GZIPBIN!$GZIPBIN$ac_delim
21929 POD2HTML!$POD2HTML$ac_delim
21930 POD2MAN!$POD2MAN$ac_delim
21931 PDFROFF!$PDFROFF$ac_delim
21932 RUNTEST!$RUNTEST$ac_delim
21933 TCLSH!$TCLSH$ac_delim
21934 ZIP!$ZIP$ac_delim
21935 OCAMLC!$OCAMLC$ac_delim
21936 OCAMLOPT!$OCAMLOPT$ac_delim
21937 OCAMLDEP!$OCAMLDEP$ac_delim
21938 OCAMLDOC!$OCAMLDOC$ac_delim
21939 GAS!$GAS$ac_delim
21940 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21941 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21942 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21943 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21944 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21945 LIBADD_DL!$LIBADD_DL$ac_delim
21946 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21947 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21948 LLVMGCC!$LLVMGCC$ac_delim
21949 LLVMGXX!$LLVMGXX$ac_delim
21950 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21951 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21952 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21953 USE_UDIS86!$USE_UDIS86$ac_delim
21954 USE_OPROFILE!$USE_OPROFILE$ac_delim
21955 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21956 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21957 MMAP_FILE!$MMAP_FILE$ac_delim
21958 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
21959 LLVMCC1!$LLVMCC1$ac_delim
21960 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21961 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21962 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21963 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
21964 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
21965 SHLIBEXT!$SHLIBEXT$ac_delim
21966 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21967 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21968 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21969 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21970 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21971 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21972 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21973 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21974 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21975 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21976 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21977 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21978 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21979 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21980 _ACEOF
21982 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21983 break
21984 elif $ac_last_try; then
21985 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21986 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21987 { (exit 1); exit 1; }; }
21988 else
21989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21991 done
21993 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21994 if test -n "$ac_eof"; then
21995 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21996 ac_eof=`expr $ac_eof + 1`
21999 cat >>$CONFIG_STATUS <<_ACEOF
22000 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22002 _ACEOF
22003 sed '
22004 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22005 s/^/s,@/; s/!/@,|#_!!_#|/
22008 s/'"$ac_delim"'$/,g/; t
22009 s/$/\\/; p
22010 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22011 ' >>$CONFIG_STATUS <conf$$subs.sed
22012 rm -f conf$$subs.sed
22013 cat >>$CONFIG_STATUS <<_ACEOF
22014 CEOF$ac_eof
22015 _ACEOF
22018 ac_delim='%!_!# '
22019 for ac_last_try in false false false false false :; do
22020 cat >conf$$subs.sed <<_ACEOF
22021 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22022 RPATH!$RPATH$ac_delim
22023 RDYNAMIC!$RDYNAMIC$ac_delim
22024 LIBOBJS!$LIBOBJS$ac_delim
22025 LTLIBOBJS!$LTLIBOBJS$ac_delim
22026 _ACEOF
22028 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
22029 break
22030 elif $ac_last_try; then
22031 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22032 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22033 { (exit 1); exit 1; }; }
22034 else
22035 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22037 done
22039 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22040 if test -n "$ac_eof"; then
22041 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22042 ac_eof=`expr $ac_eof + 1`
22045 cat >>$CONFIG_STATUS <<_ACEOF
22046 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22047 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22048 _ACEOF
22049 sed '
22050 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22051 s/^/s,@/; s/!/@,|#_!!_#|/
22054 s/'"$ac_delim"'$/,g/; t
22055 s/$/\\/; p
22056 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22057 ' >>$CONFIG_STATUS <conf$$subs.sed
22058 rm -f conf$$subs.sed
22059 cat >>$CONFIG_STATUS <<_ACEOF
22060 :end
22061 s/|#_!!_#|//g
22062 CEOF$ac_eof
22063 _ACEOF
22066 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22067 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22068 # trailing colons and then remove the whole line if VPATH becomes empty
22069 # (actually we leave an empty line to preserve line numbers).
22070 if test "x$srcdir" = x.; then
22071 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22072 s/:*\$(srcdir):*/:/
22073 s/:*\${srcdir}:*/:/
22074 s/:*@srcdir@:*/:/
22075 s/^\([^=]*=[ ]*\):*/\1/
22076 s/:*$//
22077 s/^[^=]*=[ ]*$//
22081 cat >>$CONFIG_STATUS <<\_ACEOF
22082 fi # test -n "$CONFIG_FILES"
22085 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22087 case $ac_tag in
22088 :[FHLC]) ac_mode=$ac_tag; continue;;
22089 esac
22090 case $ac_mode$ac_tag in
22091 :[FHL]*:*);;
22092 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22093 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22094 { (exit 1); exit 1; }; };;
22095 :[FH]-) ac_tag=-:-;;
22096 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22097 esac
22098 ac_save_IFS=$IFS
22099 IFS=:
22100 set x $ac_tag
22101 IFS=$ac_save_IFS
22102 shift
22103 ac_file=$1
22104 shift
22106 case $ac_mode in
22107 :L) ac_source=$1;;
22108 :[FH])
22109 ac_file_inputs=
22110 for ac_f
22112 case $ac_f in
22113 -) ac_f="$tmp/stdin";;
22114 *) # Look for the file first in the build tree, then in the source tree
22115 # (if the path is not absolute). The absolute path cannot be DOS-style,
22116 # because $ac_f cannot contain `:'.
22117 test -f "$ac_f" ||
22118 case $ac_f in
22119 [\\/$]*) false;;
22120 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22121 esac ||
22122 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22123 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22124 { (exit 1); exit 1; }; };;
22125 esac
22126 ac_file_inputs="$ac_file_inputs $ac_f"
22127 done
22129 # Let's still pretend it is `configure' which instantiates (i.e., don't
22130 # use $as_me), people would be surprised to read:
22131 # /* config.h. Generated by config.status. */
22132 configure_input="Generated from "`IFS=:
22133 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22134 if test x"$ac_file" != x-; then
22135 configure_input="$ac_file. $configure_input"
22136 { echo "$as_me:$LINENO: creating $ac_file" >&5
22137 echo "$as_me: creating $ac_file" >&6;}
22140 case $ac_tag in
22141 *:-:* | *:-) cat >"$tmp/stdin";;
22142 esac
22144 esac
22146 ac_dir=`$as_dirname -- "$ac_file" ||
22147 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22148 X"$ac_file" : 'X\(//\)[^/]' \| \
22149 X"$ac_file" : 'X\(//\)$' \| \
22150 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22151 echo X"$ac_file" |
22152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22153 s//\1/
22156 /^X\(\/\/\)[^/].*/{
22157 s//\1/
22160 /^X\(\/\/\)$/{
22161 s//\1/
22164 /^X\(\/\).*/{
22165 s//\1/
22168 s/.*/./; q'`
22169 { as_dir="$ac_dir"
22170 case $as_dir in #(
22171 -*) as_dir=./$as_dir;;
22172 esac
22173 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22174 as_dirs=
22175 while :; do
22176 case $as_dir in #(
22177 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22178 *) as_qdir=$as_dir;;
22179 esac
22180 as_dirs="'$as_qdir' $as_dirs"
22181 as_dir=`$as_dirname -- "$as_dir" ||
22182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22183 X"$as_dir" : 'X\(//\)[^/]' \| \
22184 X"$as_dir" : 'X\(//\)$' \| \
22185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22186 echo X"$as_dir" |
22187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22188 s//\1/
22191 /^X\(\/\/\)[^/].*/{
22192 s//\1/
22195 /^X\(\/\/\)$/{
22196 s//\1/
22199 /^X\(\/\).*/{
22200 s//\1/
22203 s/.*/./; q'`
22204 test -d "$as_dir" && break
22205 done
22206 test -z "$as_dirs" || eval "mkdir $as_dirs"
22207 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22208 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22209 { (exit 1); exit 1; }; }; }
22210 ac_builddir=.
22212 case "$ac_dir" in
22213 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22215 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22216 # A ".." for each directory in $ac_dir_suffix.
22217 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22218 case $ac_top_builddir_sub in
22219 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22220 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22221 esac ;;
22222 esac
22223 ac_abs_top_builddir=$ac_pwd
22224 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22225 # for backward compatibility:
22226 ac_top_builddir=$ac_top_build_prefix
22228 case $srcdir in
22229 .) # We are building in place.
22230 ac_srcdir=.
22231 ac_top_srcdir=$ac_top_builddir_sub
22232 ac_abs_top_srcdir=$ac_pwd ;;
22233 [\\/]* | ?:[\\/]* ) # Absolute name.
22234 ac_srcdir=$srcdir$ac_dir_suffix;
22235 ac_top_srcdir=$srcdir
22236 ac_abs_top_srcdir=$srcdir ;;
22237 *) # Relative name.
22238 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22239 ac_top_srcdir=$ac_top_build_prefix$srcdir
22240 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22241 esac
22242 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22245 case $ac_mode in
22248 # CONFIG_FILE
22251 case $INSTALL in
22252 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22253 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22254 esac
22255 _ACEOF
22257 cat >>$CONFIG_STATUS <<\_ACEOF
22258 # If the template does not know about datarootdir, expand it.
22259 # FIXME: This hack should be removed a few years after 2.60.
22260 ac_datarootdir_hack=; ac_datarootdir_seen=
22262 case `sed -n '/datarootdir/ {
22266 /@datadir@/p
22267 /@docdir@/p
22268 /@infodir@/p
22269 /@localedir@/p
22270 /@mandir@/p
22271 ' $ac_file_inputs` in
22272 *datarootdir*) ac_datarootdir_seen=yes;;
22273 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22274 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22275 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22276 _ACEOF
22277 cat >>$CONFIG_STATUS <<_ACEOF
22278 ac_datarootdir_hack='
22279 s&@datadir@&$datadir&g
22280 s&@docdir@&$docdir&g
22281 s&@infodir@&$infodir&g
22282 s&@localedir@&$localedir&g
22283 s&@mandir@&$mandir&g
22284 s&\\\${datarootdir}&$datarootdir&g' ;;
22285 esac
22286 _ACEOF
22288 # Neutralize VPATH when `$srcdir' = `.'.
22289 # Shell code in configure.ac might set extrasub.
22290 # FIXME: do we really want to maintain this feature?
22291 cat >>$CONFIG_STATUS <<_ACEOF
22292 sed "$ac_vpsub
22293 $extrasub
22294 _ACEOF
22295 cat >>$CONFIG_STATUS <<\_ACEOF
22297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22298 s&@configure_input@&$configure_input&;t t
22299 s&@top_builddir@&$ac_top_builddir_sub&;t t
22300 s&@srcdir@&$ac_srcdir&;t t
22301 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22302 s&@top_srcdir@&$ac_top_srcdir&;t t
22303 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22304 s&@builddir@&$ac_builddir&;t t
22305 s&@abs_builddir@&$ac_abs_builddir&;t t
22306 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22307 s&@INSTALL@&$ac_INSTALL&;t t
22308 $ac_datarootdir_hack
22309 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22311 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22312 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22313 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22314 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22315 which seems to be undefined. Please make sure it is defined." >&5
22316 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22317 which seems to be undefined. Please make sure it is defined." >&2;}
22319 rm -f "$tmp/stdin"
22320 case $ac_file in
22321 -) cat "$tmp/out"; rm -f "$tmp/out";;
22322 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22323 esac
22327 # CONFIG_HEADER
22329 _ACEOF
22331 # Transform confdefs.h into a sed script `conftest.defines', that
22332 # substitutes the proper values into config.h.in to produce config.h.
22333 rm -f conftest.defines conftest.tail
22334 # First, append a space to every undef/define line, to ease matching.
22335 echo 's/$/ /' >conftest.defines
22336 # Then, protect against being on the right side of a sed subst, or in
22337 # an unquoted here document, in config.status. If some macros were
22338 # called several times there might be several #defines for the same
22339 # symbol, which is useless. But do not sort them, since the last
22340 # AC_DEFINE must be honored.
22341 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22342 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22343 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22344 # PARAMS is the parameter list in the macro definition--in most cases, it's
22345 # just an empty string.
22346 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22347 ac_dB='\\)[ (].*,\\1define\\2'
22348 ac_dC=' '
22349 ac_dD=' ,'
22351 uniq confdefs.h |
22352 sed -n '
22353 t rset
22354 :rset
22355 s/^[ ]*#[ ]*define[ ][ ]*//
22356 t ok
22359 s/[\\&,]/\\&/g
22360 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22361 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22362 ' >>conftest.defines
22364 # Remove the space that was appended to ease matching.
22365 # Then replace #undef with comments. This is necessary, for
22366 # example, in the case of _POSIX_SOURCE, which is predefined and required
22367 # on some systems where configure will not decide to define it.
22368 # (The regexp can be short, since the line contains either #define or #undef.)
22369 echo 's/ $//
22370 s,^[ #]*u.*,/* & */,' >>conftest.defines
22372 # Break up conftest.defines:
22373 ac_max_sed_lines=50
22375 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22376 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22377 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22378 # et cetera.
22379 ac_in='$ac_file_inputs'
22380 ac_out='"$tmp/out1"'
22381 ac_nxt='"$tmp/out2"'
22383 while :
22385 # Write a here document:
22386 cat >>$CONFIG_STATUS <<_ACEOF
22387 # First, check the format of the line:
22388 cat >"\$tmp/defines.sed" <<\\CEOF
22389 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22390 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22392 :def
22393 _ACEOF
22394 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22395 echo 'CEOF
22396 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22397 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22398 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22399 grep . conftest.tail >/dev/null || break
22400 rm -f conftest.defines
22401 mv conftest.tail conftest.defines
22402 done
22403 rm -f conftest.defines conftest.tail
22405 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22406 cat >>$CONFIG_STATUS <<\_ACEOF
22407 if test x"$ac_file" != x-; then
22408 echo "/* $configure_input */" >"$tmp/config.h"
22409 cat "$ac_result" >>"$tmp/config.h"
22410 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22411 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22412 echo "$as_me: $ac_file is unchanged" >&6;}
22413 else
22414 rm -f $ac_file
22415 mv "$tmp/config.h" $ac_file
22417 else
22418 echo "/* $configure_input */"
22419 cat "$ac_result"
22421 rm -f "$tmp/out12"
22424 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22425 echo "$as_me: executing $ac_file commands" >&6;}
22427 esac
22430 case $ac_file$ac_mode in
22431 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22432 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22433 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22434 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22435 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22436 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22437 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22438 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22439 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22440 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22441 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22442 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22443 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22444 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22445 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22446 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22447 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22448 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22449 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22450 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22451 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22452 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22453 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22454 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22455 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22456 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22458 esac
22459 done # for ac_tag
22462 { (exit 0); exit 0; }
22463 _ACEOF
22464 chmod +x $CONFIG_STATUS
22465 ac_clean_files=$ac_clean_files_save
22468 # configure is writing to config.log, and then calls config.status.
22469 # config.status does its own redirection, appending to config.log.
22470 # Unfortunately, on DOS this fails, as config.log is still kept open
22471 # by configure, so config.status won't be able to write to it; its
22472 # output is simply discarded. So we exec the FD to /dev/null,
22473 # effectively closing config.log, so it can be properly (re)opened and
22474 # appended to by config.status. When coming back to configure, we
22475 # need to make the FD available again.
22476 if test "$no_create" != yes; then
22477 ac_cs_success=:
22478 ac_config_status_args=
22479 test "$silent" = yes &&
22480 ac_config_status_args="$ac_config_status_args --quiet"
22481 exec 5>/dev/null
22482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22483 exec 5>>config.log
22484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22485 # would make configure fail if this is the last instruction.
22486 $ac_cs_success || { (exit 1); exit 1; }
22490 # CONFIG_SUBDIRS section.
22492 if test "$no_recursion" != yes; then
22494 # Remove --cache-file and --srcdir arguments so they do not pile up.
22495 ac_sub_configure_args=
22496 ac_prev=
22497 eval "set x $ac_configure_args"
22498 shift
22499 for ac_arg
22501 if test -n "$ac_prev"; then
22502 ac_prev=
22503 continue
22505 case $ac_arg in
22506 -cache-file | --cache-file | --cache-fil | --cache-fi \
22507 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22508 ac_prev=cache_file ;;
22509 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22510 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22511 | --c=*)
22513 --config-cache | -C)
22515 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22516 ac_prev=srcdir ;;
22517 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22519 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22520 ac_prev=prefix ;;
22521 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22524 case $ac_arg in
22525 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22526 esac
22527 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22528 esac
22529 done
22531 # Always prepend --prefix to ensure using the same prefix
22532 # in subdir configurations.
22533 ac_arg="--prefix=$prefix"
22534 case $ac_arg in
22535 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22536 esac
22537 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22539 ac_popdir=`pwd`
22540 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22542 # Do not complain, so a configure script can configure whichever
22543 # parts of a large source tree are present.
22544 test -d "$srcdir/$ac_dir" || continue
22546 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22547 echo "$as_me:$LINENO: $ac_msg" >&5
22548 echo "$ac_msg" >&6
22549 { as_dir="$ac_dir"
22550 case $as_dir in #(
22551 -*) as_dir=./$as_dir;;
22552 esac
22553 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22554 as_dirs=
22555 while :; do
22556 case $as_dir in #(
22557 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22558 *) as_qdir=$as_dir;;
22559 esac
22560 as_dirs="'$as_qdir' $as_dirs"
22561 as_dir=`$as_dirname -- "$as_dir" ||
22562 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22563 X"$as_dir" : 'X\(//\)[^/]' \| \
22564 X"$as_dir" : 'X\(//\)$' \| \
22565 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22566 echo X"$as_dir" |
22567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22568 s//\1/
22571 /^X\(\/\/\)[^/].*/{
22572 s//\1/
22575 /^X\(\/\/\)$/{
22576 s//\1/
22579 /^X\(\/\).*/{
22580 s//\1/
22583 s/.*/./; q'`
22584 test -d "$as_dir" && break
22585 done
22586 test -z "$as_dirs" || eval "mkdir $as_dirs"
22587 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22588 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22589 { (exit 1); exit 1; }; }; }
22590 ac_builddir=.
22592 case "$ac_dir" in
22593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22595 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22596 # A ".." for each directory in $ac_dir_suffix.
22597 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22598 case $ac_top_builddir_sub in
22599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22601 esac ;;
22602 esac
22603 ac_abs_top_builddir=$ac_pwd
22604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22605 # for backward compatibility:
22606 ac_top_builddir=$ac_top_build_prefix
22608 case $srcdir in
22609 .) # We are building in place.
22610 ac_srcdir=.
22611 ac_top_srcdir=$ac_top_builddir_sub
22612 ac_abs_top_srcdir=$ac_pwd ;;
22613 [\\/]* | ?:[\\/]* ) # Absolute name.
22614 ac_srcdir=$srcdir$ac_dir_suffix;
22615 ac_top_srcdir=$srcdir
22616 ac_abs_top_srcdir=$srcdir ;;
22617 *) # Relative name.
22618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22619 ac_top_srcdir=$ac_top_build_prefix$srcdir
22620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22621 esac
22622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22625 cd "$ac_dir"
22627 # Check for guested configure; otherwise get Cygnus style configure.
22628 if test -f "$ac_srcdir/configure.gnu"; then
22629 ac_sub_configure=$ac_srcdir/configure.gnu
22630 elif test -f "$ac_srcdir/configure"; then
22631 ac_sub_configure=$ac_srcdir/configure
22632 elif test -f "$ac_srcdir/configure.in"; then
22633 # This should be Cygnus configure.
22634 ac_sub_configure=$ac_aux_dir/configure
22635 else
22636 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22637 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22638 ac_sub_configure=
22641 # The recursion is here.
22642 if test -n "$ac_sub_configure"; then
22643 # Make the cache file name correct relative to the subdirectory.
22644 case $cache_file in
22645 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22646 *) # Relative name.
22647 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22648 esac
22650 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22651 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22652 # The eval makes quoting arguments work.
22653 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22654 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22655 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22656 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22657 { (exit 1); exit 1; }; }
22660 cd "$ac_popdir"
22661 done