[AVX] General VUNPCKL codegen support.
[llvm-core.git] / configure
blob959822fa0e15f7d87a8cb9fdde809c690a948a5a
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
16266 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16275 ac_res=`eval echo '${'$as_ac_Header'}'`
16276 { echo "$as_me:$LINENO: result: $ac_res" >&5
16277 echo "${ECHO_T}$ac_res" >&6; }
16278 else
16279 # Is the header compilable?
16280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16282 cat >conftest.$ac_ext <<_ACEOF
16283 /* confdefs.h. */
16284 _ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16288 $ac_includes_default
16289 #include <$ac_header>
16290 _ACEOF
16291 rm -f conftest.$ac_objext
16292 if { (ac_try="$ac_compile"
16293 case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16296 esac
16297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_compile") 2>conftest.er1
16299 ac_status=$?
16300 grep -v '^ *+' conftest.er1 >conftest.err
16301 rm -f conftest.er1
16302 cat conftest.err >&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); } &&
16305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16306 { (case "(($ac_try" in
16307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16308 *) ac_try_echo=$ac_try;;
16309 esac
16310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16311 (eval "$ac_try") 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; } &&
16315 { ac_try='test -s conftest.$ac_objext'
16316 { (case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16319 esac
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_try") 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16325 ac_header_compiler=yes
16326 else
16327 echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16330 ac_header_compiler=no
16333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16335 echo "${ECHO_T}$ac_header_compiler" >&6; }
16337 # Is the header present?
16338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16340 cat >conftest.$ac_ext <<_ACEOF
16341 /* confdefs.h. */
16342 _ACEOF
16343 cat confdefs.h >>conftest.$ac_ext
16344 cat >>conftest.$ac_ext <<_ACEOF
16345 /* end confdefs.h. */
16346 #include <$ac_header>
16347 _ACEOF
16348 if { (ac_try="$ac_cpp conftest.$ac_ext"
16349 case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16352 esac
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16355 ac_status=$?
16356 grep -v '^ *+' conftest.er1 >conftest.err
16357 rm -f conftest.er1
16358 cat conftest.err >&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } >/dev/null; then
16361 if test -s conftest.err; then
16362 ac_cpp_err=$ac_c_preproc_warn_flag
16363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16364 else
16365 ac_cpp_err=
16367 else
16368 ac_cpp_err=yes
16370 if test -z "$ac_cpp_err"; then
16371 ac_header_preproc=yes
16372 else
16373 echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16376 ac_header_preproc=no
16379 rm -f conftest.err conftest.$ac_ext
16380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16381 echo "${ECHO_T}$ac_header_preproc" >&6; }
16383 # So? What about this header?
16384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16385 yes:no: )
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16390 ac_header_preproc=yes
16392 no:yes:* )
16393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16405 ( cat <<\_ASBOX
16406 ## ----------------------------------- ##
16407 ## Report this to llvmbugs@cs.uiuc.edu ##
16408 ## ----------------------------------- ##
16409 _ASBOX
16410 ) | sed "s/^/$as_me: WARNING: /" >&2
16412 esac
16413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16416 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 else
16418 eval "$as_ac_Header=\$ac_header_preproc"
16420 ac_res=`eval echo '${'$as_ac_Header'}'`
16421 { echo "$as_me:$LINENO: result: $ac_res" >&5
16422 echo "${ECHO_T}$ac_res" >&6; }
16425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16426 cat >>confdefs.h <<_ACEOF
16427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16428 _ACEOF
16432 done
16438 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 ac_res=`eval echo '${'$as_ac_Header'}'`
16448 { echo "$as_me:$LINENO: result: $ac_res" >&5
16449 echo "${ECHO_T}$ac_res" >&6; }
16450 else
16451 # Is the header compilable?
16452 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16454 cat >conftest.$ac_ext <<_ACEOF
16455 /* confdefs.h. */
16456 _ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h. */
16460 $ac_includes_default
16461 #include <$ac_header>
16462 _ACEOF
16463 rm -f conftest.$ac_objext
16464 if { (ac_try="$ac_compile"
16465 case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16468 esac
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_compile") 2>conftest.er1
16471 ac_status=$?
16472 grep -v '^ *+' conftest.er1 >conftest.err
16473 rm -f conftest.er1
16474 cat conftest.err >&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } &&
16477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16478 { (case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16481 esac
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_try") 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; } &&
16487 { ac_try='test -s conftest.$ac_objext'
16488 { (case "(($ac_try" in
16489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490 *) ac_try_echo=$ac_try;;
16491 esac
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493 (eval "$ac_try") 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497 ac_header_compiler=yes
16498 else
16499 echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16502 ac_header_compiler=no
16505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16507 echo "${ECHO_T}$ac_header_compiler" >&6; }
16509 # Is the header present?
16510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h. */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 #include <$ac_header>
16519 _ACEOF
16520 if { (ac_try="$ac_cpp conftest.$ac_ext"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16527 ac_status=$?
16528 grep -v '^ *+' conftest.er1 >conftest.err
16529 rm -f conftest.er1
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } >/dev/null; then
16533 if test -s conftest.err; then
16534 ac_cpp_err=$ac_c_preproc_warn_flag
16535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16536 else
16537 ac_cpp_err=
16539 else
16540 ac_cpp_err=yes
16542 if test -z "$ac_cpp_err"; then
16543 ac_header_preproc=yes
16544 else
16545 echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16548 ac_header_preproc=no
16551 rm -f conftest.err conftest.$ac_ext
16552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16553 echo "${ECHO_T}$ac_header_preproc" >&6; }
16555 # So? What about this header?
16556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16557 yes:no: )
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16562 ac_header_preproc=yes
16564 no:yes:* )
16565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16577 ( cat <<\_ASBOX
16578 ## ----------------------------------- ##
16579 ## Report this to llvmbugs@cs.uiuc.edu ##
16580 ## ----------------------------------- ##
16581 _ASBOX
16582 ) | sed "s/^/$as_me: WARNING: /" >&2
16584 esac
16585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16588 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 else
16590 eval "$as_ac_Header=\$ac_header_preproc"
16592 ac_res=`eval echo '${'$as_ac_Header'}'`
16593 { echo "$as_me:$LINENO: result: $ac_res" >&5
16594 echo "${ECHO_T}$ac_res" >&6; }
16597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16598 cat >>confdefs.h <<_ACEOF
16599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16600 _ACEOF
16604 done
16607 for ac_header in valgrind/valgrind.h
16609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 ac_res=`eval echo '${'$as_ac_Header'}'`
16617 { echo "$as_me:$LINENO: result: $ac_res" >&5
16618 echo "${ECHO_T}$ac_res" >&6; }
16619 else
16620 # Is the header compilable?
16621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16623 cat >conftest.$ac_ext <<_ACEOF
16624 /* confdefs.h. */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 $ac_includes_default
16630 #include <$ac_header>
16631 _ACEOF
16632 rm -f conftest.$ac_objext
16633 if { (ac_try="$ac_compile"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_compile") 2>conftest.er1
16640 ac_status=$?
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16647 { (case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16650 esac
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_try") 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest.$ac_objext'
16657 { (case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16660 esac
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_try") 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 ac_header_compiler=yes
16667 else
16668 echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16671 ac_header_compiler=no
16674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16676 echo "${ECHO_T}$ac_header_compiler" >&6; }
16678 # Is the header present?
16679 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16681 cat >conftest.$ac_ext <<_ACEOF
16682 /* confdefs.h. */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 #include <$ac_header>
16688 _ACEOF
16689 if { (ac_try="$ac_cpp conftest.$ac_ext"
16690 case "(($ac_try" in
16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692 *) ac_try_echo=$ac_try;;
16693 esac
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16696 ac_status=$?
16697 grep -v '^ *+' conftest.er1 >conftest.err
16698 rm -f conftest.er1
16699 cat conftest.err >&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } >/dev/null; then
16702 if test -s conftest.err; then
16703 ac_cpp_err=$ac_c_preproc_warn_flag
16704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16705 else
16706 ac_cpp_err=
16708 else
16709 ac_cpp_err=yes
16711 if test -z "$ac_cpp_err"; then
16712 ac_header_preproc=yes
16713 else
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16717 ac_header_preproc=no
16720 rm -f conftest.err conftest.$ac_ext
16721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16722 echo "${ECHO_T}$ac_header_preproc" >&6; }
16724 # So? What about this header?
16725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16726 yes:no: )
16727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16731 ac_header_preproc=yes
16733 no:yes:* )
16734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16746 ( cat <<\_ASBOX
16747 ## ----------------------------------- ##
16748 ## Report this to llvmbugs@cs.uiuc.edu ##
16749 ## ----------------------------------- ##
16750 _ASBOX
16751 ) | sed "s/^/$as_me: WARNING: /" >&2
16753 esac
16754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 else
16759 eval "$as_ac_Header=\$ac_header_preproc"
16761 ac_res=`eval echo '${'$as_ac_Header'}'`
16762 { echo "$as_me:$LINENO: result: $ac_res" >&5
16763 echo "${ECHO_T}$ac_res" >&6; }
16766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16767 cat >>confdefs.h <<_ACEOF
16768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16769 _ACEOF
16773 done
16776 for ac_header in fenv.h
16778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 ac_res=`eval echo '${'$as_ac_Header'}'`
16786 { echo "$as_me:$LINENO: result: $ac_res" >&5
16787 echo "${ECHO_T}$ac_res" >&6; }
16788 else
16789 # Is the header compilable?
16790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16792 cat >conftest.$ac_ext <<_ACEOF
16793 /* confdefs.h. */
16794 _ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16798 $ac_includes_default
16799 #include <$ac_header>
16800 _ACEOF
16801 rm -f conftest.$ac_objext
16802 if { (ac_try="$ac_compile"
16803 case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16806 esac
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_compile") 2>conftest.er1
16809 ac_status=$?
16810 grep -v '^ *+' conftest.er1 >conftest.err
16811 rm -f conftest.er1
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
16815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16816 { (case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16819 esac
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_try") 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; } &&
16825 { ac_try='test -s conftest.$ac_objext'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16829 esac
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 ac_header_compiler=yes
16836 else
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 ac_header_compiler=no
16843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16845 echo "${ECHO_T}$ac_header_compiler" >&6; }
16847 # Is the header present?
16848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16850 cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h. */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 #include <$ac_header>
16857 _ACEOF
16858 if { (ac_try="$ac_cpp conftest.$ac_ext"
16859 case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862 esac
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16865 ac_status=$?
16866 grep -v '^ *+' conftest.er1 >conftest.err
16867 rm -f conftest.er1
16868 cat conftest.err >&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } >/dev/null; then
16871 if test -s conftest.err; then
16872 ac_cpp_err=$ac_c_preproc_warn_flag
16873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16874 else
16875 ac_cpp_err=
16877 else
16878 ac_cpp_err=yes
16880 if test -z "$ac_cpp_err"; then
16881 ac_header_preproc=yes
16882 else
16883 echo "$as_me: failed program was:" >&5
16884 sed 's/^/| /' conftest.$ac_ext >&5
16886 ac_header_preproc=no
16889 rm -f conftest.err conftest.$ac_ext
16890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16891 echo "${ECHO_T}$ac_header_preproc" >&6; }
16893 # So? What about this header?
16894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16895 yes:no: )
16896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16900 ac_header_preproc=yes
16902 no:yes:* )
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16915 ( cat <<\_ASBOX
16916 ## ----------------------------------- ##
16917 ## Report this to llvmbugs@cs.uiuc.edu ##
16918 ## ----------------------------------- ##
16919 _ASBOX
16920 ) | sed "s/^/$as_me: WARNING: /" >&2
16922 esac
16923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16926 echo $ECHO_N "(cached) $ECHO_C" >&6
16927 else
16928 eval "$as_ac_Header=\$ac_header_preproc"
16930 ac_res=`eval echo '${'$as_ac_Header'}'`
16931 { echo "$as_me:$LINENO: result: $ac_res" >&5
16932 echo "${ECHO_T}$ac_res" >&6; }
16935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16936 cat >>confdefs.h <<_ACEOF
16937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16938 _ACEOF
16942 done
16944 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16946 for ac_header in pthread.h
16948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16953 echo $ECHO_N "(cached) $ECHO_C" >&6
16955 ac_res=`eval echo '${'$as_ac_Header'}'`
16956 { echo "$as_me:$LINENO: result: $ac_res" >&5
16957 echo "${ECHO_T}$ac_res" >&6; }
16958 else
16959 # Is the header compilable?
16960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16962 cat >conftest.$ac_ext <<_ACEOF
16963 /* confdefs.h. */
16964 _ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16968 $ac_includes_default
16969 #include <$ac_header>
16970 _ACEOF
16971 rm -f conftest.$ac_objext
16972 if { (ac_try="$ac_compile"
16973 case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16976 esac
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_compile") 2>conftest.er1
16979 ac_status=$?
16980 grep -v '^ *+' conftest.er1 >conftest.err
16981 rm -f conftest.er1
16982 cat conftest.err >&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } &&
16985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16986 { (case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16989 esac
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_try") 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; } &&
16995 { ac_try='test -s conftest.$ac_objext'
16996 { (case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
16999 esac
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_try") 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 ac_header_compiler=yes
17006 else
17007 echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17010 ac_header_compiler=no
17013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17015 echo "${ECHO_T}$ac_header_compiler" >&6; }
17017 # Is the header present?
17018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17020 cat >conftest.$ac_ext <<_ACEOF
17021 /* confdefs.h. */
17022 _ACEOF
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h. */
17026 #include <$ac_header>
17027 _ACEOF
17028 if { (ac_try="$ac_cpp conftest.$ac_ext"
17029 case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17032 esac
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17035 ac_status=$?
17036 grep -v '^ *+' conftest.er1 >conftest.err
17037 rm -f conftest.er1
17038 cat conftest.err >&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); } >/dev/null; then
17041 if test -s conftest.err; then
17042 ac_cpp_err=$ac_c_preproc_warn_flag
17043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17044 else
17045 ac_cpp_err=
17047 else
17048 ac_cpp_err=yes
17050 if test -z "$ac_cpp_err"; then
17051 ac_header_preproc=yes
17052 else
17053 echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.$ac_ext >&5
17056 ac_header_preproc=no
17059 rm -f conftest.err conftest.$ac_ext
17060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17061 echo "${ECHO_T}$ac_header_preproc" >&6; }
17063 # So? What about this header?
17064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17065 yes:no: )
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17070 ac_header_preproc=yes
17072 no:yes:* )
17073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17085 ( cat <<\_ASBOX
17086 ## ----------------------------------- ##
17087 ## Report this to llvmbugs@cs.uiuc.edu ##
17088 ## ----------------------------------- ##
17089 _ASBOX
17090 ) | sed "s/^/$as_me: WARNING: /" >&2
17092 esac
17093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 else
17098 eval "$as_ac_Header=\$ac_header_preproc"
17100 ac_res=`eval echo '${'$as_ac_Header'}'`
17101 { echo "$as_me:$LINENO: result: $ac_res" >&5
17102 echo "${ECHO_T}$ac_res" >&6; }
17105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17106 cat >>confdefs.h <<_ACEOF
17107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17108 _ACEOF
17109 HAVE_PTHREAD=1
17111 else
17112 HAVE_PTHREAD=0
17116 done
17118 else
17119 HAVE_PTHREAD=0
17123 if test "$llvm_cv_enable_libffi" = "yes" ; then
17126 for ac_header in ffi.h ffi/ffi.h
17128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17135 ac_res=`eval echo '${'$as_ac_Header'}'`
17136 { echo "$as_me:$LINENO: result: $ac_res" >&5
17137 echo "${ECHO_T}$ac_res" >&6; }
17138 else
17139 # Is the header compilable?
17140 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17142 cat >conftest.$ac_ext <<_ACEOF
17143 /* confdefs.h. */
17144 _ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17148 $ac_includes_default
17149 #include <$ac_header>
17150 _ACEOF
17151 rm -f conftest.$ac_objext
17152 if { (ac_try="$ac_compile"
17153 case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17156 esac
17157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_compile") 2>conftest.er1
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17169 esac
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try='test -s conftest.$ac_objext'
17176 { (case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179 esac
17180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_try") 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 ac_header_compiler=yes
17186 else
17187 echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17190 ac_header_compiler=no
17193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17195 echo "${ECHO_T}$ac_header_compiler" >&6; }
17197 # Is the header present?
17198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17200 cat >conftest.$ac_ext <<_ACEOF
17201 /* confdefs.h. */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17206 #include <$ac_header>
17207 _ACEOF
17208 if { (ac_try="$ac_cpp conftest.$ac_ext"
17209 case "(($ac_try" in
17210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211 *) ac_try_echo=$ac_try;;
17212 esac
17213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17215 ac_status=$?
17216 grep -v '^ *+' conftest.er1 >conftest.err
17217 rm -f conftest.er1
17218 cat conftest.err >&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); } >/dev/null; then
17221 if test -s conftest.err; then
17222 ac_cpp_err=$ac_c_preproc_warn_flag
17223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17224 else
17225 ac_cpp_err=
17227 else
17228 ac_cpp_err=yes
17230 if test -z "$ac_cpp_err"; then
17231 ac_header_preproc=yes
17232 else
17233 echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17236 ac_header_preproc=no
17239 rm -f conftest.err conftest.$ac_ext
17240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17241 echo "${ECHO_T}$ac_header_preproc" >&6; }
17243 # So? What about this header?
17244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17245 yes:no: )
17246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17250 ac_header_preproc=yes
17252 no:yes:* )
17253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17265 ( cat <<\_ASBOX
17266 ## ----------------------------------- ##
17267 ## Report this to llvmbugs@cs.uiuc.edu ##
17268 ## ----------------------------------- ##
17269 _ASBOX
17270 ) | sed "s/^/$as_me: WARNING: /" >&2
17272 esac
17273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 else
17278 eval "$as_ac_Header=\$ac_header_preproc"
17280 ac_res=`eval echo '${'$as_ac_Header'}'`
17281 { echo "$as_me:$LINENO: result: $ac_res" >&5
17282 echo "${ECHO_T}$ac_res" >&6; }
17285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17286 cat >>confdefs.h <<_ACEOF
17287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17288 _ACEOF
17292 done
17297 for ac_header in CrashReporterClient.h
17299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 ac_res=`eval echo '${'$as_ac_Header'}'`
17307 { echo "$as_me:$LINENO: result: $ac_res" >&5
17308 echo "${ECHO_T}$ac_res" >&6; }
17309 else
17310 # Is the header compilable?
17311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17313 cat >conftest.$ac_ext <<_ACEOF
17314 /* confdefs.h. */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h. */
17319 $ac_includes_default
17320 #include <$ac_header>
17321 _ACEOF
17322 rm -f conftest.$ac_objext
17323 if { (ac_try="$ac_compile"
17324 case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17327 esac
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_compile") 2>conftest.er1
17330 ac_status=$?
17331 grep -v '^ *+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } &&
17336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17337 { (case "(($ac_try" in
17338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339 *) ac_try_echo=$ac_try;;
17340 esac
17341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17342 (eval "$ac_try") 2>&5
17343 ac_status=$?
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; } &&
17346 { ac_try='test -s conftest.$ac_objext'
17347 { (case "(($ac_try" in
17348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349 *) ac_try_echo=$ac_try;;
17350 esac
17351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352 (eval "$ac_try") 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; }; then
17356 ac_header_compiler=yes
17357 else
17358 echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17361 ac_header_compiler=no
17364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17366 echo "${ECHO_T}$ac_header_compiler" >&6; }
17368 # Is the header present?
17369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17371 cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h. */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17377 #include <$ac_header>
17378 _ACEOF
17379 if { (ac_try="$ac_cpp conftest.$ac_ext"
17380 case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17383 esac
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17386 ac_status=$?
17387 grep -v '^ *+' conftest.er1 >conftest.err
17388 rm -f conftest.er1
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } >/dev/null; then
17392 if test -s conftest.err; then
17393 ac_cpp_err=$ac_c_preproc_warn_flag
17394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17395 else
17396 ac_cpp_err=
17398 else
17399 ac_cpp_err=yes
17401 if test -z "$ac_cpp_err"; then
17402 ac_header_preproc=yes
17403 else
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17407 ac_header_preproc=no
17410 rm -f conftest.err conftest.$ac_ext
17411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17412 echo "${ECHO_T}$ac_header_preproc" >&6; }
17414 # So? What about this header?
17415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17416 yes:no: )
17417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17421 ac_header_preproc=yes
17423 no:yes:* )
17424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17436 ( cat <<\_ASBOX
17437 ## ----------------------------------- ##
17438 ## Report this to llvmbugs@cs.uiuc.edu ##
17439 ## ----------------------------------- ##
17440 _ASBOX
17441 ) | sed "s/^/$as_me: WARNING: /" >&2
17443 esac
17444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 else
17449 eval "$as_ac_Header=\$ac_header_preproc"
17451 ac_res=`eval echo '${'$as_ac_Header'}'`
17452 { echo "$as_me:$LINENO: result: $ac_res" >&5
17453 echo "${ECHO_T}$ac_res" >&6; }
17456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17457 cat >>confdefs.h <<_ACEOF
17458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17459 _ACEOF
17463 done
17466 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17467 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17468 cat >conftest.$ac_ext <<_ACEOF
17469 /* confdefs.h. */
17470 _ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17474 extern const char *__crashreporter_info__;
17475 int main() {
17476 __crashreporter_info__ = "test";
17477 return 0;
17480 _ACEOF
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (ac_try="$ac_link"
17483 case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17486 esac
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_link") 2>conftest.er1
17489 ac_status=$?
17490 grep -v '^ *+' conftest.er1 >conftest.err
17491 rm -f conftest.er1
17492 cat conftest.err >&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } &&
17495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17496 { (case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17499 esac
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_try") 2>&5
17502 ac_status=$?
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; } &&
17505 { ac_try='test -s conftest$ac_exeext'
17506 { (case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17509 esac
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_try") 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; }; then
17515 { echo "$as_me:$LINENO: result: yes" >&5
17516 echo "${ECHO_T}yes" >&6; }
17518 cat >>confdefs.h <<\_ACEOF
17519 #define HAVE_CRASHREPORTER_INFO 1
17520 _ACEOF
17522 else
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 { echo "$as_me:$LINENO: result: no" >&5
17527 echo "${ECHO_T}no" >&6; }
17529 cat >>confdefs.h <<\_ACEOF
17530 #define HAVE_CRASHREPORTER_INFO 0
17531 _ACEOF
17535 rm -f core conftest.err conftest.$ac_objext \
17536 conftest$ac_exeext conftest.$ac_ext
17541 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17542 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17543 if test "${ac_cv_huge_val_sanity+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17547 ac_ext=cpp
17548 ac_cpp='$CXXCPP $CPPFLAGS'
17549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17553 ac_save_CXXFLAGS=$CXXFLAGS
17554 CXXFLAGS=-pedantic
17555 if test "$cross_compiling" = yes; then
17556 ac_cv_huge_val_sanity=yes
17557 else
17558 cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h. */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564 #include <math.h>
17566 main ()
17568 double x = HUGE_VAL; return x != x;
17570 return 0;
17572 _ACEOF
17573 rm -f conftest$ac_exeext
17574 if { (ac_try="$ac_link"
17575 case "(($ac_try" in
17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577 *) ac_try_echo=$ac_try;;
17578 esac
17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580 (eval "$ac_link") 2>&5
17581 ac_status=$?
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17584 { (case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17587 esac
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_try") 2>&5
17590 ac_status=$?
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593 ac_cv_huge_val_sanity=yes
17594 else
17595 echo "$as_me: program exited with status $ac_status" >&5
17596 echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17599 ( exit $ac_status )
17600 ac_cv_huge_val_sanity=no
17602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17606 CXXFLAGS=$ac_save_CXXFLAGS
17607 ac_ext=c
17608 ac_cpp='$CPP $CPPFLAGS'
17609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17615 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17616 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17617 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17620 { echo "$as_me:$LINENO: checking for pid_t" >&5
17621 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17622 if test "${ac_cv_type_pid_t+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 else
17625 cat >conftest.$ac_ext <<_ACEOF
17626 /* confdefs.h. */
17627 _ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 $ac_includes_default
17632 typedef pid_t ac__type_new_;
17634 main ()
17636 if ((ac__type_new_ *) 0)
17637 return 0;
17638 if (sizeof (ac__type_new_))
17639 return 0;
17641 return 0;
17643 _ACEOF
17644 rm -f conftest.$ac_objext
17645 if { (ac_try="$ac_compile"
17646 case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649 esac
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_compile") 2>conftest.er1
17652 ac_status=$?
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17659 { (case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17662 esac
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_try") 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest.$ac_objext'
17669 { (case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17672 esac
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_try") 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; }; then
17678 ac_cv_type_pid_t=yes
17679 else
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17683 ac_cv_type_pid_t=no
17686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17689 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17690 if test $ac_cv_type_pid_t = yes; then
17692 else
17694 cat >>confdefs.h <<_ACEOF
17695 #define pid_t int
17696 _ACEOF
17700 { echo "$as_me:$LINENO: checking for size_t" >&5
17701 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17702 if test "${ac_cv_type_size_t+set}" = set; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 else
17705 cat >conftest.$ac_ext <<_ACEOF
17706 /* confdefs.h. */
17707 _ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17711 $ac_includes_default
17712 typedef size_t ac__type_new_;
17714 main ()
17716 if ((ac__type_new_ *) 0)
17717 return 0;
17718 if (sizeof (ac__type_new_))
17719 return 0;
17721 return 0;
17723 _ACEOF
17724 rm -f conftest.$ac_objext
17725 if { (ac_try="$ac_compile"
17726 case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_compile") 2>conftest.er1
17732 ac_status=$?
17733 grep -v '^ *+' conftest.er1 >conftest.err
17734 rm -f conftest.er1
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17739 { (case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17742 esac
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_try") 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest.$ac_objext'
17749 { (case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17752 esac
17753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_try") 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 ac_cv_type_size_t=yes
17759 else
17760 echo "$as_me: failed program was:" >&5
17761 sed 's/^/| /' conftest.$ac_ext >&5
17763 ac_cv_type_size_t=no
17766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17768 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17769 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17770 if test $ac_cv_type_size_t = yes; then
17772 else
17774 cat >>confdefs.h <<_ACEOF
17775 #define size_t unsigned int
17776 _ACEOF
17781 cat >>confdefs.h <<_ACEOF
17782 #define RETSIGTYPE void
17783 _ACEOF
17785 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17786 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17787 if test "${ac_cv_struct_tm+set}" = set; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17789 else
17790 cat >conftest.$ac_ext <<_ACEOF
17791 /* confdefs.h. */
17792 _ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17796 #include <sys/types.h>
17797 #include <time.h>
17800 main ()
17802 struct tm *tp; tp->tm_sec;
17804 return 0;
17806 _ACEOF
17807 rm -f conftest.$ac_objext
17808 if { (ac_try="$ac_compile"
17809 case "(($ac_try" in
17810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811 *) ac_try_echo=$ac_try;;
17812 esac
17813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17814 (eval "$ac_compile") 2>conftest.er1
17815 ac_status=$?
17816 grep -v '^ *+' conftest.er1 >conftest.err
17817 rm -f conftest.er1
17818 cat conftest.err >&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } &&
17821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17822 { (case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17825 esac
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_try") 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; } &&
17831 { ac_try='test -s conftest.$ac_objext'
17832 { (case "(($ac_try" in
17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834 *) ac_try_echo=$ac_try;;
17835 esac
17836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17837 (eval "$ac_try") 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_cv_struct_tm=time.h
17842 else
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 ac_cv_struct_tm=sys/time.h
17849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17851 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17852 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17853 if test $ac_cv_struct_tm = sys/time.h; then
17855 cat >>confdefs.h <<\_ACEOF
17856 #define TM_IN_SYS_TIME 1
17857 _ACEOF
17861 { echo "$as_me:$LINENO: checking for int64_t" >&5
17862 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17863 if test "${ac_cv_type_int64_t+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866 cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h. */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 $ac_includes_default
17873 typedef int64_t ac__type_new_;
17875 main ()
17877 if ((ac__type_new_ *) 0)
17878 return 0;
17879 if (sizeof (ac__type_new_))
17880 return 0;
17882 return 0;
17884 _ACEOF
17885 rm -f conftest.$ac_objext
17886 if { (ac_try="$ac_compile"
17887 case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_compile") 2>conftest.er1
17893 ac_status=$?
17894 grep -v '^ *+' conftest.er1 >conftest.err
17895 rm -f conftest.er1
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } &&
17899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17900 { (case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17903 esac
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_try") 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest.$ac_objext'
17910 { (case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_try") 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; }; then
17919 ac_cv_type_int64_t=yes
17920 else
17921 echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17924 ac_cv_type_int64_t=no
17927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17929 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17930 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17931 if test $ac_cv_type_int64_t = yes; then
17933 cat >>confdefs.h <<_ACEOF
17934 #define HAVE_INT64_T 1
17935 _ACEOF
17938 else
17939 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17940 echo "$as_me: error: Type int64_t required but not found" >&2;}
17941 { (exit 1); exit 1; }; }
17944 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17945 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17946 if test "${ac_cv_type_uint64_t+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17948 else
17949 cat >conftest.$ac_ext <<_ACEOF
17950 /* confdefs.h. */
17951 _ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17955 $ac_includes_default
17956 typedef uint64_t ac__type_new_;
17958 main ()
17960 if ((ac__type_new_ *) 0)
17961 return 0;
17962 if (sizeof (ac__type_new_))
17963 return 0;
17965 return 0;
17967 _ACEOF
17968 rm -f conftest.$ac_objext
17969 if { (ac_try="$ac_compile"
17970 case "(($ac_try" in
17971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17973 esac
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975 (eval "$ac_compile") 2>conftest.er1
17976 ac_status=$?
17977 grep -v '^ *+' conftest.er1 >conftest.err
17978 rm -f conftest.er1
17979 cat conftest.err >&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } &&
17982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17983 { (case "(($ac_try" in
17984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17985 *) ac_try_echo=$ac_try;;
17986 esac
17987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17988 (eval "$ac_try") 2>&5
17989 ac_status=$?
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; } &&
17992 { ac_try='test -s conftest.$ac_objext'
17993 { (case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17996 esac
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_try") 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; }; then
18002 ac_cv_type_uint64_t=yes
18003 else
18004 echo "$as_me: failed program was:" >&5
18005 sed 's/^/| /' conftest.$ac_ext >&5
18007 ac_cv_type_uint64_t=no
18010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18012 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18013 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18014 if test $ac_cv_type_uint64_t = yes; then
18016 cat >>confdefs.h <<_ACEOF
18017 #define HAVE_UINT64_T 1
18018 _ACEOF
18021 else
18022 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18023 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18024 if test "${ac_cv_type_u_int64_t+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18026 else
18027 cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h. */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18033 $ac_includes_default
18034 typedef u_int64_t ac__type_new_;
18036 main ()
18038 if ((ac__type_new_ *) 0)
18039 return 0;
18040 if (sizeof (ac__type_new_))
18041 return 0;
18043 return 0;
18045 _ACEOF
18046 rm -f conftest.$ac_objext
18047 if { (ac_try="$ac_compile"
18048 case "(($ac_try" in
18049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050 *) ac_try_echo=$ac_try;;
18051 esac
18052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053 (eval "$ac_compile") 2>conftest.er1
18054 ac_status=$?
18055 grep -v '^ *+' conftest.er1 >conftest.err
18056 rm -f conftest.er1
18057 cat conftest.err >&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); } &&
18060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18061 { (case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18064 esac
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_try") 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; } &&
18070 { ac_try='test -s conftest.$ac_objext'
18071 { (case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_try") 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; }; then
18080 ac_cv_type_u_int64_t=yes
18081 else
18082 echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 ac_cv_type_u_int64_t=no
18088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18090 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18091 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18092 if test $ac_cv_type_u_int64_t = yes; then
18094 cat >>confdefs.h <<_ACEOF
18095 #define HAVE_U_INT64_T 1
18096 _ACEOF
18099 else
18100 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18101 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18102 { (exit 1); exit 1; }; }
18116 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 else
18124 cat >conftest.$ac_ext <<_ACEOF
18125 /* confdefs.h. */
18126 _ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18132 #define $ac_func innocuous_$ac_func
18134 /* System header to define __stub macros and hopefully few prototypes,
18135 which can conflict with char $ac_func (); below.
18136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18137 <limits.h> exists even on freestanding compilers. */
18139 #ifdef __STDC__
18140 # include <limits.h>
18141 #else
18142 # include <assert.h>
18143 #endif
18145 #undef $ac_func
18147 /* Override any GCC internal prototype to avoid an error.
18148 Use char because int might match the return type of a GCC
18149 builtin and then its argument prototype would still apply. */
18150 #ifdef __cplusplus
18151 extern "C"
18152 #endif
18153 char $ac_func ();
18154 /* The GNU C library defines this for functions which it implements
18155 to always fail with ENOSYS. Some functions are actually named
18156 something starting with __ and the normal name is an alias. */
18157 #if defined __stub_$ac_func || defined __stub___$ac_func
18158 choke me
18159 #endif
18162 main ()
18164 return $ac_func ();
18166 return 0;
18168 _ACEOF
18169 rm -f conftest.$ac_objext conftest$ac_exeext
18170 if { (ac_try="$ac_link"
18171 case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18174 esac
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176 (eval "$ac_link") 2>conftest.er1
18177 ac_status=$?
18178 grep -v '^ *+' conftest.er1 >conftest.err
18179 rm -f conftest.er1
18180 cat conftest.err >&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } &&
18183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18184 { (case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18187 esac
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_try") 2>&5
18190 ac_status=$?
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); }; } &&
18193 { ac_try='test -s conftest$ac_exeext'
18194 { (case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18197 esac
18198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_try") 2>&5
18200 ac_status=$?
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; }; then
18203 eval "$as_ac_var=yes"
18204 else
18205 echo "$as_me: failed program was:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18208 eval "$as_ac_var=no"
18211 rm -f core conftest.err conftest.$ac_objext \
18212 conftest$ac_exeext conftest.$ac_ext
18214 ac_res=`eval echo '${'$as_ac_var'}'`
18215 { echo "$as_me:$LINENO: result: $ac_res" >&5
18216 echo "${ECHO_T}$ac_res" >&6; }
18217 if test `eval echo '${'$as_ac_var'}'` = yes; then
18218 cat >>confdefs.h <<_ACEOF
18219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18220 _ACEOF
18223 done
18229 for ac_func in powf fmodf strtof round
18231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18236 else
18237 cat >conftest.$ac_ext <<_ACEOF
18238 /* confdefs.h. */
18239 _ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18245 #define $ac_func innocuous_$ac_func
18247 /* System header to define __stub macros and hopefully few prototypes,
18248 which can conflict with char $ac_func (); below.
18249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18250 <limits.h> exists even on freestanding compilers. */
18252 #ifdef __STDC__
18253 # include <limits.h>
18254 #else
18255 # include <assert.h>
18256 #endif
18258 #undef $ac_func
18260 /* Override any GCC internal prototype to avoid an error.
18261 Use char because int might match the return type of a GCC
18262 builtin and then its argument prototype would still apply. */
18263 #ifdef __cplusplus
18264 extern "C"
18265 #endif
18266 char $ac_func ();
18267 /* The GNU C library defines this for functions which it implements
18268 to always fail with ENOSYS. Some functions are actually named
18269 something starting with __ and the normal name is an alias. */
18270 #if defined __stub_$ac_func || defined __stub___$ac_func
18271 choke me
18272 #endif
18275 main ()
18277 return $ac_func ();
18279 return 0;
18281 _ACEOF
18282 rm -f conftest.$ac_objext conftest$ac_exeext
18283 if { (ac_try="$ac_link"
18284 case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18287 esac
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_link") 2>conftest.er1
18290 ac_status=$?
18291 grep -v '^ *+' conftest.er1 >conftest.err
18292 rm -f conftest.er1
18293 cat conftest.err >&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); } &&
18296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18297 { (case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18300 esac
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_try") 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } &&
18306 { ac_try='test -s conftest$ac_exeext'
18307 { (case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18310 esac
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_try") 2>&5
18313 ac_status=$?
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; }; then
18316 eval "$as_ac_var=yes"
18317 else
18318 echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18321 eval "$as_ac_var=no"
18324 rm -f core conftest.err conftest.$ac_objext \
18325 conftest$ac_exeext conftest.$ac_ext
18327 ac_res=`eval echo '${'$as_ac_var'}'`
18328 { echo "$as_me:$LINENO: result: $ac_res" >&5
18329 echo "${ECHO_T}$ac_res" >&6; }
18330 if test `eval echo '${'$as_ac_var'}'` = yes; then
18331 cat >>confdefs.h <<_ACEOF
18332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18333 _ACEOF
18336 done
18343 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18350 else
18351 cat >conftest.$ac_ext <<_ACEOF
18352 /* confdefs.h. */
18353 _ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18359 #define $ac_func innocuous_$ac_func
18361 /* System header to define __stub macros and hopefully few prototypes,
18362 which can conflict with char $ac_func (); below.
18363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18364 <limits.h> exists even on freestanding compilers. */
18366 #ifdef __STDC__
18367 # include <limits.h>
18368 #else
18369 # include <assert.h>
18370 #endif
18372 #undef $ac_func
18374 /* Override any GCC internal prototype to avoid an error.
18375 Use char because int might match the return type of a GCC
18376 builtin and then its argument prototype would still apply. */
18377 #ifdef __cplusplus
18378 extern "C"
18379 #endif
18380 char $ac_func ();
18381 /* The GNU C library defines this for functions which it implements
18382 to always fail with ENOSYS. Some functions are actually named
18383 something starting with __ and the normal name is an alias. */
18384 #if defined __stub_$ac_func || defined __stub___$ac_func
18385 choke me
18386 #endif
18389 main ()
18391 return $ac_func ();
18393 return 0;
18395 _ACEOF
18396 rm -f conftest.$ac_objext conftest$ac_exeext
18397 if { (ac_try="$ac_link"
18398 case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18401 esac
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_link") 2>conftest.er1
18404 ac_status=$?
18405 grep -v '^ *+' conftest.er1 >conftest.err
18406 rm -f conftest.er1
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18411 { (case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18414 esac
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_try") 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest$ac_exeext'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 eval "$as_ac_var=yes"
18431 else
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 eval "$as_ac_var=no"
18438 rm -f core conftest.err conftest.$ac_objext \
18439 conftest$ac_exeext conftest.$ac_ext
18441 ac_res=`eval echo '${'$as_ac_var'}'`
18442 { echo "$as_me:$LINENO: result: $ac_res" >&5
18443 echo "${ECHO_T}$ac_res" >&6; }
18444 if test `eval echo '${'$as_ac_var'}'` = yes; then
18445 cat >>confdefs.h <<_ACEOF
18446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18447 _ACEOF
18450 done
18455 for ac_func in isatty mkdtemp mkstemp
18457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 else
18463 cat >conftest.$ac_ext <<_ACEOF
18464 /* confdefs.h. */
18465 _ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18471 #define $ac_func innocuous_$ac_func
18473 /* System header to define __stub macros and hopefully few prototypes,
18474 which can conflict with char $ac_func (); below.
18475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18476 <limits.h> exists even on freestanding compilers. */
18478 #ifdef __STDC__
18479 # include <limits.h>
18480 #else
18481 # include <assert.h>
18482 #endif
18484 #undef $ac_func
18486 /* Override any GCC internal prototype to avoid an error.
18487 Use char because int might match the return type of a GCC
18488 builtin and then its argument prototype would still apply. */
18489 #ifdef __cplusplus
18490 extern "C"
18491 #endif
18492 char $ac_func ();
18493 /* The GNU C library defines this for functions which it implements
18494 to always fail with ENOSYS. Some functions are actually named
18495 something starting with __ and the normal name is an alias. */
18496 #if defined __stub_$ac_func || defined __stub___$ac_func
18497 choke me
18498 #endif
18501 main ()
18503 return $ac_func ();
18505 return 0;
18507 _ACEOF
18508 rm -f conftest.$ac_objext conftest$ac_exeext
18509 if { (ac_try="$ac_link"
18510 case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18513 esac
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_link") 2>conftest.er1
18516 ac_status=$?
18517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
18522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18526 esac
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest$ac_exeext'
18533 { (case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18536 esac
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_try") 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 eval "$as_ac_var=yes"
18543 else
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18547 eval "$as_ac_var=no"
18550 rm -f core conftest.err conftest.$ac_objext \
18551 conftest$ac_exeext conftest.$ac_ext
18553 ac_res=`eval echo '${'$as_ac_var'}'`
18554 { echo "$as_me:$LINENO: result: $ac_res" >&5
18555 echo "${ECHO_T}$ac_res" >&6; }
18556 if test `eval echo '${'$as_ac_var'}'` = yes; then
18557 cat >>confdefs.h <<_ACEOF
18558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18559 _ACEOF
18562 done
18570 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 else
18578 cat >conftest.$ac_ext <<_ACEOF
18579 /* confdefs.h. */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18586 #define $ac_func innocuous_$ac_func
18588 /* System header to define __stub macros and hopefully few prototypes,
18589 which can conflict with char $ac_func (); below.
18590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18591 <limits.h> exists even on freestanding compilers. */
18593 #ifdef __STDC__
18594 # include <limits.h>
18595 #else
18596 # include <assert.h>
18597 #endif
18599 #undef $ac_func
18601 /* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18604 #ifdef __cplusplus
18605 extern "C"
18606 #endif
18607 char $ac_func ();
18608 /* The GNU C library defines this for functions which it implements
18609 to always fail with ENOSYS. Some functions are actually named
18610 something starting with __ and the normal name is an alias. */
18611 #if defined __stub_$ac_func || defined __stub___$ac_func
18612 choke me
18613 #endif
18616 main ()
18618 return $ac_func ();
18620 return 0;
18622 _ACEOF
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_link") 2>conftest.er1
18631 ac_status=$?
18632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
18637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18638 { (case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18641 esac
18642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_try") 2>&5
18644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; } &&
18647 { ac_try='test -s conftest$ac_exeext'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18651 esac
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 eval "$as_ac_var=yes"
18658 else
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18662 eval "$as_ac_var=no"
18665 rm -f core conftest.err conftest.$ac_objext \
18666 conftest$ac_exeext conftest.$ac_ext
18668 ac_res=`eval echo '${'$as_ac_var'}'`
18669 { echo "$as_me:$LINENO: result: $ac_res" >&5
18670 echo "${ECHO_T}$ac_res" >&6; }
18671 if test `eval echo '${'$as_ac_var'}'` = yes; then
18672 cat >>confdefs.h <<_ACEOF
18673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18674 _ACEOF
18677 done
18682 for ac_func in strerror strerror_r 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
18909 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917 cat >conftest.$ac_ext <<_ACEOF
18918 /* confdefs.h. */
18919 _ACEOF
18920 cat confdefs.h >>conftest.$ac_ext
18921 cat >>conftest.$ac_ext <<_ACEOF
18922 /* end confdefs.h. */
18923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18925 #define $ac_func innocuous_$ac_func
18927 /* System header to define __stub macros and hopefully few prototypes,
18928 which can conflict with char $ac_func (); below.
18929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18930 <limits.h> exists even on freestanding compilers. */
18932 #ifdef __STDC__
18933 # include <limits.h>
18934 #else
18935 # include <assert.h>
18936 #endif
18938 #undef $ac_func
18940 /* Override any GCC internal prototype to avoid an error.
18941 Use char because int might match the return type of a GCC
18942 builtin and then its argument prototype would still apply. */
18943 #ifdef __cplusplus
18944 extern "C"
18945 #endif
18946 char $ac_func ();
18947 /* The GNU C library defines this for functions which it implements
18948 to always fail with ENOSYS. Some functions are actually named
18949 something starting with __ and the normal name is an alias. */
18950 #if defined __stub_$ac_func || defined __stub___$ac_func
18951 choke me
18952 #endif
18955 main ()
18957 return $ac_func ();
18959 return 0;
18961 _ACEOF
18962 rm -f conftest.$ac_objext conftest$ac_exeext
18963 if { (ac_try="$ac_link"
18964 case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18967 esac
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_link") 2>conftest.er1
18970 ac_status=$?
18971 grep -v '^ *+' conftest.er1 >conftest.err
18972 rm -f conftest.er1
18973 cat conftest.err >&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } &&
18976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18977 { (case "(($ac_try" in
18978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18979 *) ac_try_echo=$ac_try;;
18980 esac
18981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18982 (eval "$ac_try") 2>&5
18983 ac_status=$?
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; } &&
18986 { ac_try='test -s conftest$ac_exeext'
18987 { (case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18990 esac
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_try") 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; }; then
18996 eval "$as_ac_var=yes"
18997 else
18998 echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19001 eval "$as_ac_var=no"
19004 rm -f core conftest.err conftest.$ac_objext \
19005 conftest$ac_exeext conftest.$ac_ext
19007 ac_res=`eval echo '${'$as_ac_var'}'`
19008 { echo "$as_me:$LINENO: result: $ac_res" >&5
19009 echo "${ECHO_T}$ac_res" >&6; }
19010 if test `eval echo '${'$as_ac_var'}'` = yes; then
19011 cat >>confdefs.h <<_ACEOF
19012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19013 _ACEOF
19016 done
19018 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19019 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19020 if test "${llvm_cv_c_printf_a+set}" = set; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 else
19023 ac_ext=c
19024 ac_cpp='$CPP $CPPFLAGS'
19025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19029 if test "$cross_compiling" = yes; then
19030 llvmac_cv_c_printf_a=no
19031 else
19032 cat >conftest.$ac_ext <<_ACEOF
19034 /* confdefs.h. */
19035 _ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19040 #include <stdio.h>
19041 #include <stdlib.h>
19044 main ()
19047 volatile double A, B;
19048 char Buffer[100];
19049 A = 1;
19050 A /= 10.0;
19051 sprintf(Buffer, "%a", A);
19052 B = atof(Buffer);
19053 if (A != B)
19054 return (1);
19055 if (A != 0x1.999999999999ap-4)
19056 return (1);
19057 return (0);
19059 return 0;
19061 _ACEOF
19062 rm -f conftest$ac_exeext
19063 if { (ac_try="$ac_link"
19064 case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19067 esac
19068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069 (eval "$ac_link") 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19073 { (case "(($ac_try" in
19074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075 *) ac_try_echo=$ac_try;;
19076 esac
19077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078 (eval "$ac_try") 2>&5
19079 ac_status=$?
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 llvm_cv_c_printf_a=yes
19083 else
19084 echo "$as_me: program exited with status $ac_status" >&5
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19088 ( exit $ac_status )
19089 llvmac_cv_c_printf_a=no
19091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19095 ac_ext=c
19096 ac_cpp='$CPP $CPPFLAGS'
19097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19102 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19103 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19104 if test "$llvm_cv_c_printf_a" = "yes"; then
19106 cat >>confdefs.h <<\_ACEOF
19107 #define HAVE_PRINTF_A 1
19108 _ACEOF
19113 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19114 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19115 if test "${ac_cv_func_rand48+set}" = set; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19117 else
19118 ac_ext=cpp
19119 ac_cpp='$CXXCPP $CPPFLAGS'
19120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19124 cat >conftest.$ac_ext <<_ACEOF
19125 /* confdefs.h. */
19126 _ACEOF
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h. */
19130 #include <stdlib.h>
19132 main ()
19134 srand48(0);lrand48();drand48();
19136 return 0;
19138 _ACEOF
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_compile") 2>conftest.er1
19147 ac_status=$?
19148 grep -v '^ *+' conftest.er1 >conftest.err
19149 rm -f conftest.er1
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } &&
19153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19154 { (case "(($ac_try" in
19155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156 *) ac_try_echo=$ac_try;;
19157 esac
19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159 (eval "$ac_try") 2>&5
19160 ac_status=$?
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; } &&
19163 { ac_try='test -s conftest.$ac_objext'
19164 { (case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19167 esac
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_try") 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; }; then
19173 ac_cv_func_rand48=yes
19174 else
19175 echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19178 ac_cv_func_rand48=no
19181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19182 ac_ext=c
19183 ac_cpp='$CPP $CPPFLAGS'
19184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19189 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19190 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19192 if test "$ac_cv_func_rand48" = "yes" ; then
19194 cat >>confdefs.h <<\_ACEOF
19195 #define HAVE_RAND48 1
19196 _ACEOF
19201 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19202 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19203 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19205 else
19206 cat >conftest.$ac_ext <<_ACEOF
19207 /* confdefs.h. */
19208 _ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19212 $ac_includes_default
19214 main ()
19216 #ifndef strerror_s
19217 char *p = (char *) strerror_s;
19218 return !p;
19219 #endif
19222 return 0;
19224 _ACEOF
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19230 esac
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_compile") 2>conftest.er1
19233 ac_status=$?
19234 grep -v '^ *+' conftest.er1 >conftest.err
19235 rm -f conftest.er1
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
19239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19240 { (case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19243 esac
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_try") 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; } &&
19249 { ac_try='test -s conftest.$ac_objext'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
19259 ac_cv_have_decl_strerror_s=yes
19260 else
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19264 ac_cv_have_decl_strerror_s=no
19267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19269 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19270 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19271 if test $ac_cv_have_decl_strerror_s = yes; then
19273 cat >>confdefs.h <<_ACEOF
19274 #define HAVE_DECL_STRERROR_S 1
19275 _ACEOF
19278 else
19279 cat >>confdefs.h <<_ACEOF
19280 #define HAVE_DECL_STRERROR_S 0
19281 _ACEOF
19288 if test "$llvm_cv_os_type" = "MingW" ; then
19289 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19290 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19291 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19293 else
19294 ac_check_lib_save_LIBS=$LIBS
19295 LIBS="-lgcc $LIBS"
19296 cat >conftest.$ac_ext <<_ACEOF
19297 /* confdefs.h. */
19298 _ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19303 /* Override any GCC internal prototype to avoid an error.
19304 Use char because int might match the return type of a GCC
19305 builtin and then its argument prototype would still apply. */
19306 #ifdef __cplusplus
19307 extern "C"
19308 #endif
19309 char _alloca ();
19311 main ()
19313 return _alloca ();
19315 return 0;
19317 _ACEOF
19318 rm -f conftest.$ac_objext conftest$ac_exeext
19319 if { (ac_try="$ac_link"
19320 case "(($ac_try" in
19321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322 *) ac_try_echo=$ac_try;;
19323 esac
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325 (eval "$ac_link") 2>conftest.er1
19326 ac_status=$?
19327 grep -v '^ *+' conftest.er1 >conftest.err
19328 rm -f conftest.er1
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
19332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19333 { (case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19336 esac
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_try") 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; } &&
19342 { ac_try='test -s conftest$ac_exeext'
19343 { (case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19346 esac
19347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_try") 2>&5
19349 ac_status=$?
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; }; then
19352 ac_cv_lib_gcc__alloca=yes
19353 else
19354 echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19357 ac_cv_lib_gcc__alloca=no
19360 rm -f core conftest.err conftest.$ac_objext \
19361 conftest$ac_exeext conftest.$ac_ext
19362 LIBS=$ac_check_lib_save_LIBS
19364 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19365 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19366 if test $ac_cv_lib_gcc__alloca = yes; then
19368 cat >>confdefs.h <<\_ACEOF
19369 #define HAVE__ALLOCA 1
19370 _ACEOF
19374 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19375 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19376 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 else
19379 ac_check_lib_save_LIBS=$LIBS
19380 LIBS="-lgcc $LIBS"
19381 cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h. */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19388 /* Override any GCC internal prototype to avoid an error.
19389 Use char because int might match the return type of a GCC
19390 builtin and then its argument prototype would still apply. */
19391 #ifdef __cplusplus
19392 extern "C"
19393 #endif
19394 char __alloca ();
19396 main ()
19398 return __alloca ();
19400 return 0;
19402 _ACEOF
19403 rm -f conftest.$ac_objext conftest$ac_exeext
19404 if { (ac_try="$ac_link"
19405 case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19408 esac
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_link") 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } &&
19417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19418 { (case "(($ac_try" in
19419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420 *) ac_try_echo=$ac_try;;
19421 esac
19422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19423 (eval "$ac_try") 2>&5
19424 ac_status=$?
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; } &&
19427 { ac_try='test -s conftest$ac_exeext'
19428 { (case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19431 esac
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_try") 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
19437 ac_cv_lib_gcc___alloca=yes
19438 else
19439 echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19442 ac_cv_lib_gcc___alloca=no
19445 rm -f core conftest.err conftest.$ac_objext \
19446 conftest$ac_exeext conftest.$ac_ext
19447 LIBS=$ac_check_lib_save_LIBS
19449 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19450 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19451 if test $ac_cv_lib_gcc___alloca = yes; then
19453 cat >>confdefs.h <<\_ACEOF
19454 #define HAVE___ALLOCA 1
19455 _ACEOF
19459 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19460 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19461 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464 ac_check_lib_save_LIBS=$LIBS
19465 LIBS="-lgcc $LIBS"
19466 cat >conftest.$ac_ext <<_ACEOF
19467 /* confdefs.h. */
19468 _ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h. */
19473 /* Override any GCC internal prototype to avoid an error.
19474 Use char because int might match the return type of a GCC
19475 builtin and then its argument prototype would still apply. */
19476 #ifdef __cplusplus
19477 extern "C"
19478 #endif
19479 char __chkstk ();
19481 main ()
19483 return __chkstk ();
19485 return 0;
19487 _ACEOF
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (ac_try="$ac_link"
19490 case "(($ac_try" in
19491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492 *) ac_try_echo=$ac_try;;
19493 esac
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495 (eval "$ac_link") 2>conftest.er1
19496 ac_status=$?
19497 grep -v '^ *+' conftest.er1 >conftest.err
19498 rm -f conftest.er1
19499 cat conftest.err >&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } &&
19502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19503 { (case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19506 esac
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_try") 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } &&
19512 { ac_try='test -s conftest$ac_exeext'
19513 { (case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19516 esac
19517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518 (eval "$ac_try") 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; }; then
19522 ac_cv_lib_gcc___chkstk=yes
19523 else
19524 echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19527 ac_cv_lib_gcc___chkstk=no
19530 rm -f core conftest.err conftest.$ac_objext \
19531 conftest$ac_exeext conftest.$ac_ext
19532 LIBS=$ac_check_lib_save_LIBS
19534 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19535 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19536 if test $ac_cv_lib_gcc___chkstk = yes; then
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE___CHKSTK 1
19540 _ACEOF
19544 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19545 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19546 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 else
19549 ac_check_lib_save_LIBS=$LIBS
19550 LIBS="-lgcc $LIBS"
19551 cat >conftest.$ac_ext <<_ACEOF
19552 /* confdefs.h. */
19553 _ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19558 /* Override any GCC internal prototype to avoid an error.
19559 Use char because int might match the return type of a GCC
19560 builtin and then its argument prototype would still apply. */
19561 #ifdef __cplusplus
19562 extern "C"
19563 #endif
19564 char ___chkstk ();
19566 main ()
19568 return ___chkstk ();
19570 return 0;
19572 _ACEOF
19573 rm -f conftest.$ac_objext conftest$ac_exeext
19574 if { (ac_try="$ac_link"
19575 case "(($ac_try" in
19576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577 *) ac_try_echo=$ac_try;;
19578 esac
19579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580 (eval "$ac_link") 2>conftest.er1
19581 ac_status=$?
19582 grep -v '^ *+' conftest.er1 >conftest.err
19583 rm -f conftest.er1
19584 cat conftest.err >&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
19587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19588 { (case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19591 esac
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_try") 2>&5
19594 ac_status=$?
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; } &&
19597 { ac_try='test -s conftest$ac_exeext'
19598 { (case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19601 esac
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_try") 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; }; then
19607 ac_cv_lib_gcc____chkstk=yes
19608 else
19609 echo "$as_me: failed program was:" >&5
19610 sed 's/^/| /' conftest.$ac_ext >&5
19612 ac_cv_lib_gcc____chkstk=no
19615 rm -f core conftest.err conftest.$ac_objext \
19616 conftest$ac_exeext conftest.$ac_ext
19617 LIBS=$ac_check_lib_save_LIBS
19619 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19620 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19621 if test $ac_cv_lib_gcc____chkstk = yes; then
19623 cat >>confdefs.h <<\_ACEOF
19624 #define HAVE____CHKSTK 1
19625 _ACEOF
19630 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19631 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19632 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19633 echo $ECHO_N "(cached) $ECHO_C" >&6
19634 else
19635 ac_check_lib_save_LIBS=$LIBS
19636 LIBS="-lgcc $LIBS"
19637 cat >conftest.$ac_ext <<_ACEOF
19638 /* confdefs.h. */
19639 _ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19644 /* Override any GCC internal prototype to avoid an error.
19645 Use char because int might match the return type of a GCC
19646 builtin and then its argument prototype would still apply. */
19647 #ifdef __cplusplus
19648 extern "C"
19649 #endif
19650 char __ashldi3 ();
19652 main ()
19654 return __ashldi3 ();
19656 return 0;
19658 _ACEOF
19659 rm -f conftest.$ac_objext conftest$ac_exeext
19660 if { (ac_try="$ac_link"
19661 case "(($ac_try" in
19662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663 *) ac_try_echo=$ac_try;;
19664 esac
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666 (eval "$ac_link") 2>conftest.er1
19667 ac_status=$?
19668 grep -v '^ *+' conftest.er1 >conftest.err
19669 rm -f conftest.er1
19670 cat conftest.err >&5
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); } &&
19673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19674 { (case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19677 esac
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_try") 2>&5
19680 ac_status=$?
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; } &&
19683 { ac_try='test -s conftest$ac_exeext'
19684 { (case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_try") 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; }; then
19693 ac_cv_lib_gcc___ashldi3=yes
19694 else
19695 echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19698 ac_cv_lib_gcc___ashldi3=no
19701 rm -f core conftest.err conftest.$ac_objext \
19702 conftest$ac_exeext conftest.$ac_ext
19703 LIBS=$ac_check_lib_save_LIBS
19705 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19706 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19707 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19709 cat >>confdefs.h <<\_ACEOF
19710 #define HAVE___ASHLDI3 1
19711 _ACEOF
19715 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19716 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19717 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19718 echo $ECHO_N "(cached) $ECHO_C" >&6
19719 else
19720 ac_check_lib_save_LIBS=$LIBS
19721 LIBS="-lgcc $LIBS"
19722 cat >conftest.$ac_ext <<_ACEOF
19723 /* confdefs.h. */
19724 _ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h. */
19729 /* Override any GCC internal prototype to avoid an error.
19730 Use char because int might match the return type of a GCC
19731 builtin and then its argument prototype would still apply. */
19732 #ifdef __cplusplus
19733 extern "C"
19734 #endif
19735 char __ashrdi3 ();
19737 main ()
19739 return __ashrdi3 ();
19741 return 0;
19743 _ACEOF
19744 rm -f conftest.$ac_objext conftest$ac_exeext
19745 if { (ac_try="$ac_link"
19746 case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19749 esac
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_link") 2>conftest.er1
19752 ac_status=$?
19753 grep -v '^ *+' conftest.er1 >conftest.err
19754 rm -f conftest.er1
19755 cat conftest.err >&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } &&
19758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19759 { (case "(($ac_try" in
19760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761 *) ac_try_echo=$ac_try;;
19762 esac
19763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19764 (eval "$ac_try") 2>&5
19765 ac_status=$?
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); }; } &&
19768 { ac_try='test -s conftest$ac_exeext'
19769 { (case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19772 esac
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_try") 2>&5
19775 ac_status=$?
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; }; then
19778 ac_cv_lib_gcc___ashrdi3=yes
19779 else
19780 echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19783 ac_cv_lib_gcc___ashrdi3=no
19786 rm -f core conftest.err conftest.$ac_objext \
19787 conftest$ac_exeext conftest.$ac_ext
19788 LIBS=$ac_check_lib_save_LIBS
19790 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19791 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19792 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19794 cat >>confdefs.h <<\_ACEOF
19795 #define HAVE___ASHRDI3 1
19796 _ACEOF
19800 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19801 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19802 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19803 echo $ECHO_N "(cached) $ECHO_C" >&6
19804 else
19805 ac_check_lib_save_LIBS=$LIBS
19806 LIBS="-lgcc $LIBS"
19807 cat >conftest.$ac_ext <<_ACEOF
19808 /* confdefs.h. */
19809 _ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h. */
19814 /* Override any GCC internal prototype to avoid an error.
19815 Use char because int might match the return type of a GCC
19816 builtin and then its argument prototype would still apply. */
19817 #ifdef __cplusplus
19818 extern "C"
19819 #endif
19820 char __divdi3 ();
19822 main ()
19824 return __divdi3 ();
19826 return 0;
19828 _ACEOF
19829 rm -f conftest.$ac_objext conftest$ac_exeext
19830 if { (ac_try="$ac_link"
19831 case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19834 esac
19835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19836 (eval "$ac_link") 2>conftest.er1
19837 ac_status=$?
19838 grep -v '^ *+' conftest.er1 >conftest.err
19839 rm -f conftest.er1
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } &&
19843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; } &&
19853 { ac_try='test -s conftest$ac_exeext'
19854 { (case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19857 esac
19858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_try") 2>&5
19860 ac_status=$?
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; }; then
19863 ac_cv_lib_gcc___divdi3=yes
19864 else
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19868 ac_cv_lib_gcc___divdi3=no
19871 rm -f core conftest.err conftest.$ac_objext \
19872 conftest$ac_exeext conftest.$ac_ext
19873 LIBS=$ac_check_lib_save_LIBS
19875 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19876 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19877 if test $ac_cv_lib_gcc___divdi3 = yes; then
19879 cat >>confdefs.h <<\_ACEOF
19880 #define HAVE___DIVDI3 1
19881 _ACEOF
19885 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19886 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19887 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19888 echo $ECHO_N "(cached) $ECHO_C" >&6
19889 else
19890 ac_check_lib_save_LIBS=$LIBS
19891 LIBS="-lgcc $LIBS"
19892 cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h. */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19899 /* Override any GCC internal prototype to avoid an error.
19900 Use char because int might match the return type of a GCC
19901 builtin and then its argument prototype would still apply. */
19902 #ifdef __cplusplus
19903 extern "C"
19904 #endif
19905 char __fixdfdi ();
19907 main ()
19909 return __fixdfdi ();
19911 return 0;
19913 _ACEOF
19914 rm -f conftest.$ac_objext conftest$ac_exeext
19915 if { (ac_try="$ac_link"
19916 case "(($ac_try" in
19917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19918 *) ac_try_echo=$ac_try;;
19919 esac
19920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19921 (eval "$ac_link") 2>conftest.er1
19922 ac_status=$?
19923 grep -v '^ *+' conftest.er1 >conftest.err
19924 rm -f conftest.er1
19925 cat conftest.err >&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } &&
19928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19929 { (case "(($ac_try" in
19930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19931 *) ac_try_echo=$ac_try;;
19932 esac
19933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19934 (eval "$ac_try") 2>&5
19935 ac_status=$?
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; } &&
19938 { ac_try='test -s conftest$ac_exeext'
19939 { (case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19942 esac
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_try") 2>&5
19945 ac_status=$?
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; }; then
19948 ac_cv_lib_gcc___fixdfdi=yes
19949 else
19950 echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19953 ac_cv_lib_gcc___fixdfdi=no
19956 rm -f core conftest.err conftest.$ac_objext \
19957 conftest$ac_exeext conftest.$ac_ext
19958 LIBS=$ac_check_lib_save_LIBS
19960 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19961 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19962 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19964 cat >>confdefs.h <<\_ACEOF
19965 #define HAVE___FIXDFDI 1
19966 _ACEOF
19970 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19971 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19972 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975 ac_check_lib_save_LIBS=$LIBS
19976 LIBS="-lgcc $LIBS"
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h. */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19984 /* Override any GCC internal prototype to avoid an error.
19985 Use char because int might match the return type of a GCC
19986 builtin and then its argument prototype would still apply. */
19987 #ifdef __cplusplus
19988 extern "C"
19989 #endif
19990 char __fixsfdi ();
19992 main ()
19994 return __fixsfdi ();
19996 return 0;
19998 _ACEOF
19999 rm -f conftest.$ac_objext conftest$ac_exeext
20000 if { (ac_try="$ac_link"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_link") 2>conftest.er1
20007 ac_status=$?
20008 grep -v '^ *+' conftest.er1 >conftest.err
20009 rm -f conftest.er1
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } &&
20013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20014 { (case "(($ac_try" in
20015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016 *) ac_try_echo=$ac_try;;
20017 esac
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019 (eval "$ac_try") 2>&5
20020 ac_status=$?
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }; } &&
20023 { ac_try='test -s conftest$ac_exeext'
20024 { (case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20027 esac
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_try") 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; }; then
20033 ac_cv_lib_gcc___fixsfdi=yes
20034 else
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20038 ac_cv_lib_gcc___fixsfdi=no
20041 rm -f core conftest.err conftest.$ac_objext \
20042 conftest$ac_exeext conftest.$ac_ext
20043 LIBS=$ac_check_lib_save_LIBS
20045 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20046 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20047 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20049 cat >>confdefs.h <<\_ACEOF
20050 #define HAVE___FIXSFDI 1
20051 _ACEOF
20055 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20056 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20057 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060 ac_check_lib_save_LIBS=$LIBS
20061 LIBS="-lgcc $LIBS"
20062 cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h. */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20069 /* Override any GCC internal prototype to avoid an error.
20070 Use char because int might match the return type of a GCC
20071 builtin and then its argument prototype would still apply. */
20072 #ifdef __cplusplus
20073 extern "C"
20074 #endif
20075 char __floatdidf ();
20077 main ()
20079 return __floatdidf ();
20081 return 0;
20083 _ACEOF
20084 rm -f conftest.$ac_objext conftest$ac_exeext
20085 if { (ac_try="$ac_link"
20086 case "(($ac_try" in
20087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20088 *) ac_try_echo=$ac_try;;
20089 esac
20090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20091 (eval "$ac_link") 2>conftest.er1
20092 ac_status=$?
20093 grep -v '^ *+' conftest.er1 >conftest.err
20094 rm -f conftest.er1
20095 cat conftest.err >&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } &&
20098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20099 { (case "(($ac_try" in
20100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20102 esac
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104 (eval "$ac_try") 2>&5
20105 ac_status=$?
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); }; } &&
20108 { ac_try='test -s conftest$ac_exeext'
20109 { (case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20112 esac
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114 (eval "$ac_try") 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; }; then
20118 ac_cv_lib_gcc___floatdidf=yes
20119 else
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 ac_cv_lib_gcc___floatdidf=no
20126 rm -f core conftest.err conftest.$ac_objext \
20127 conftest$ac_exeext conftest.$ac_ext
20128 LIBS=$ac_check_lib_save_LIBS
20130 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20131 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20132 if test $ac_cv_lib_gcc___floatdidf = yes; then
20134 cat >>confdefs.h <<\_ACEOF
20135 #define HAVE___FLOATDIDF 1
20136 _ACEOF
20140 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20141 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20142 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 else
20145 ac_check_lib_save_LIBS=$LIBS
20146 LIBS="-lgcc $LIBS"
20147 cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h. */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20154 /* Override any GCC internal prototype to avoid an error.
20155 Use char because int might match the return type of a GCC
20156 builtin and then its argument prototype would still apply. */
20157 #ifdef __cplusplus
20158 extern "C"
20159 #endif
20160 char __lshrdi3 ();
20162 main ()
20164 return __lshrdi3 ();
20166 return 0;
20168 _ACEOF
20169 rm -f conftest.$ac_objext conftest$ac_exeext
20170 if { (ac_try="$ac_link"
20171 case "(($ac_try" in
20172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20173 *) ac_try_echo=$ac_try;;
20174 esac
20175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20176 (eval "$ac_link") 2>conftest.er1
20177 ac_status=$?
20178 grep -v '^ *+' conftest.er1 >conftest.err
20179 rm -f conftest.er1
20180 cat conftest.err >&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } &&
20183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20184 { (case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20187 esac
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_try") 2>&5
20190 ac_status=$?
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; } &&
20193 { ac_try='test -s conftest$ac_exeext'
20194 { (case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20197 esac
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_try") 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; }; then
20203 ac_cv_lib_gcc___lshrdi3=yes
20204 else
20205 echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20208 ac_cv_lib_gcc___lshrdi3=no
20211 rm -f core conftest.err conftest.$ac_objext \
20212 conftest$ac_exeext conftest.$ac_ext
20213 LIBS=$ac_check_lib_save_LIBS
20215 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20216 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20217 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20219 cat >>confdefs.h <<\_ACEOF
20220 #define HAVE___LSHRDI3 1
20221 _ACEOF
20225 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20226 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20227 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20229 else
20230 ac_check_lib_save_LIBS=$LIBS
20231 LIBS="-lgcc $LIBS"
20232 cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h. */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20239 /* Override any GCC internal prototype to avoid an error.
20240 Use char because int might match the return type of a GCC
20241 builtin and then its argument prototype would still apply. */
20242 #ifdef __cplusplus
20243 extern "C"
20244 #endif
20245 char __moddi3 ();
20247 main ()
20249 return __moddi3 ();
20251 return 0;
20253 _ACEOF
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (ac_try="$ac_link"
20256 case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20259 esac
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_link") 2>conftest.er1
20262 ac_status=$?
20263 grep -v '^ *+' conftest.er1 >conftest.err
20264 rm -f conftest.er1
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } &&
20268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20269 { (case "(($ac_try" in
20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20272 esac
20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274 (eval "$ac_try") 2>&5
20275 ac_status=$?
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; } &&
20278 { ac_try='test -s conftest$ac_exeext'
20279 { (case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20282 esac
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_try") 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
20288 ac_cv_lib_gcc___moddi3=yes
20289 else
20290 echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20293 ac_cv_lib_gcc___moddi3=no
20296 rm -f core conftest.err conftest.$ac_objext \
20297 conftest$ac_exeext conftest.$ac_ext
20298 LIBS=$ac_check_lib_save_LIBS
20300 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20301 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20302 if test $ac_cv_lib_gcc___moddi3 = yes; then
20304 cat >>confdefs.h <<\_ACEOF
20305 #define HAVE___MODDI3 1
20306 _ACEOF
20310 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20311 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20312 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20313 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 else
20315 ac_check_lib_save_LIBS=$LIBS
20316 LIBS="-lgcc $LIBS"
20317 cat >conftest.$ac_ext <<_ACEOF
20318 /* confdefs.h. */
20319 _ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20324 /* Override any GCC internal prototype to avoid an error.
20325 Use char because int might match the return type of a GCC
20326 builtin and then its argument prototype would still apply. */
20327 #ifdef __cplusplus
20328 extern "C"
20329 #endif
20330 char __udivdi3 ();
20332 main ()
20334 return __udivdi3 ();
20336 return 0;
20338 _ACEOF
20339 rm -f conftest.$ac_objext conftest$ac_exeext
20340 if { (ac_try="$ac_link"
20341 case "(($ac_try" in
20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20344 esac
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346 (eval "$ac_link") 2>conftest.er1
20347 ac_status=$?
20348 grep -v '^ *+' conftest.er1 >conftest.err
20349 rm -f conftest.er1
20350 cat conftest.err >&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } &&
20353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20354 { (case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_try") 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; } &&
20363 { ac_try='test -s conftest$ac_exeext'
20364 { (case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20367 esac
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_try") 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20373 ac_cv_lib_gcc___udivdi3=yes
20374 else
20375 echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20378 ac_cv_lib_gcc___udivdi3=no
20381 rm -f core conftest.err conftest.$ac_objext \
20382 conftest$ac_exeext conftest.$ac_ext
20383 LIBS=$ac_check_lib_save_LIBS
20385 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20386 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20387 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20389 cat >>confdefs.h <<\_ACEOF
20390 #define HAVE___UDIVDI3 1
20391 _ACEOF
20395 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20396 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20397 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 else
20400 ac_check_lib_save_LIBS=$LIBS
20401 LIBS="-lgcc $LIBS"
20402 cat >conftest.$ac_ext <<_ACEOF
20403 /* confdefs.h. */
20404 _ACEOF
20405 cat confdefs.h >>conftest.$ac_ext
20406 cat >>conftest.$ac_ext <<_ACEOF
20407 /* end confdefs.h. */
20409 /* Override any GCC internal prototype to avoid an error.
20410 Use char because int might match the return type of a GCC
20411 builtin and then its argument prototype would still apply. */
20412 #ifdef __cplusplus
20413 extern "C"
20414 #endif
20415 char __umoddi3 ();
20417 main ()
20419 return __umoddi3 ();
20421 return 0;
20423 _ACEOF
20424 rm -f conftest.$ac_objext conftest$ac_exeext
20425 if { (ac_try="$ac_link"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20429 esac
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_link") 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
20438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20439 { (case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20442 esac
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_try") 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; } &&
20448 { ac_try='test -s conftest$ac_exeext'
20449 { (case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452 esac
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_try") 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; }; then
20458 ac_cv_lib_gcc___umoddi3=yes
20459 else
20460 echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.$ac_ext >&5
20463 ac_cv_lib_gcc___umoddi3=no
20466 rm -f core conftest.err conftest.$ac_objext \
20467 conftest$ac_exeext conftest.$ac_ext
20468 LIBS=$ac_check_lib_save_LIBS
20470 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20471 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20472 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20474 cat >>confdefs.h <<\_ACEOF
20475 #define HAVE___UMODDI3 1
20476 _ACEOF
20481 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20482 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20483 if test "${ac_cv_lib_gcc___main+set}" = set; then
20484 echo $ECHO_N "(cached) $ECHO_C" >&6
20485 else
20486 ac_check_lib_save_LIBS=$LIBS
20487 LIBS="-lgcc $LIBS"
20488 cat >conftest.$ac_ext <<_ACEOF
20489 /* confdefs.h. */
20490 _ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20495 /* Override any GCC internal prototype to avoid an error.
20496 Use char because int might match the return type of a GCC
20497 builtin and then its argument prototype would still apply. */
20498 #ifdef __cplusplus
20499 extern "C"
20500 #endif
20501 char __main ();
20503 main ()
20505 return __main ();
20507 return 0;
20509 _ACEOF
20510 rm -f conftest.$ac_objext conftest$ac_exeext
20511 if { (ac_try="$ac_link"
20512 case "(($ac_try" in
20513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514 *) ac_try_echo=$ac_try;;
20515 esac
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517 (eval "$ac_link") 2>conftest.er1
20518 ac_status=$?
20519 grep -v '^ *+' conftest.er1 >conftest.err
20520 rm -f conftest.er1
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } &&
20524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20525 { (case "(($ac_try" in
20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527 *) ac_try_echo=$ac_try;;
20528 esac
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530 (eval "$ac_try") 2>&5
20531 ac_status=$?
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; } &&
20534 { ac_try='test -s conftest$ac_exeext'
20535 { (case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_try") 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; }; then
20544 ac_cv_lib_gcc___main=yes
20545 else
20546 echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20549 ac_cv_lib_gcc___main=no
20552 rm -f core conftest.err conftest.$ac_objext \
20553 conftest$ac_exeext conftest.$ac_ext
20554 LIBS=$ac_check_lib_save_LIBS
20556 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20557 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20558 if test $ac_cv_lib_gcc___main = yes; then
20560 cat >>confdefs.h <<\_ACEOF
20561 #define HAVE___MAIN 1
20562 _ACEOF
20566 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20567 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20568 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20569 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 else
20571 ac_check_lib_save_LIBS=$LIBS
20572 LIBS="-lgcc $LIBS"
20573 cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h. */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20580 /* Override any GCC internal prototype to avoid an error.
20581 Use char because int might match the return type of a GCC
20582 builtin and then its argument prototype would still apply. */
20583 #ifdef __cplusplus
20584 extern "C"
20585 #endif
20586 char __cmpdi2 ();
20588 main ()
20590 return __cmpdi2 ();
20592 return 0;
20594 _ACEOF
20595 rm -f conftest.$ac_objext conftest$ac_exeext
20596 if { (ac_try="$ac_link"
20597 case "(($ac_try" in
20598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599 *) ac_try_echo=$ac_try;;
20600 esac
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602 (eval "$ac_link") 2>conftest.er1
20603 ac_status=$?
20604 grep -v '^ *+' conftest.er1 >conftest.err
20605 rm -f conftest.er1
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } &&
20609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20610 { (case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20613 esac
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_try") 2>&5
20616 ac_status=$?
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); }; } &&
20619 { ac_try='test -s conftest$ac_exeext'
20620 { (case "(($ac_try" in
20621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622 *) ac_try_echo=$ac_try;;
20623 esac
20624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625 (eval "$ac_try") 2>&5
20626 ac_status=$?
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; }; then
20629 ac_cv_lib_gcc___cmpdi2=yes
20630 else
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20634 ac_cv_lib_gcc___cmpdi2=no
20637 rm -f core conftest.err conftest.$ac_objext \
20638 conftest$ac_exeext conftest.$ac_ext
20639 LIBS=$ac_check_lib_save_LIBS
20641 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20642 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20643 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20645 cat >>confdefs.h <<\_ACEOF
20646 #define HAVE___CMPDI2 1
20647 _ACEOF
20654 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20655 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20656 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
20658 else
20659 ac_ext=cpp
20660 ac_cpp='$CXXCPP $CPPFLAGS'
20661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20665 cat >conftest.$ac_ext <<_ACEOF
20666 /* confdefs.h. */
20667 _ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h. */
20671 #include <math.h>
20673 main ()
20675 float f; isnan(f);
20677 return 0;
20679 _ACEOF
20680 rm -f conftest.$ac_objext
20681 if { (ac_try="$ac_compile"
20682 case "(($ac_try" in
20683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684 *) ac_try_echo=$ac_try;;
20685 esac
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687 (eval "$ac_compile") 2>conftest.er1
20688 ac_status=$?
20689 grep -v '^ *+' conftest.er1 >conftest.err
20690 rm -f conftest.er1
20691 cat conftest.err >&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } &&
20694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20695 { (case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20698 esac
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700 (eval "$ac_try") 2>&5
20701 ac_status=$?
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; } &&
20704 { ac_try='test -s conftest.$ac_objext'
20705 { (case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20708 esac
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710 (eval "$ac_try") 2>&5
20711 ac_status=$?
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; }; then
20714 ac_cv_func_isnan_in_math_h=yes
20715 else
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 ac_cv_func_isnan_in_math_h=no
20722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20723 ac_ext=c
20724 ac_cpp='$CPP $CPPFLAGS'
20725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20730 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20731 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20734 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20736 cat >>confdefs.h <<\_ACEOF
20737 #define HAVE_ISNAN_IN_MATH_H 1
20738 _ACEOF
20742 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20743 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20744 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20746 else
20747 ac_ext=cpp
20748 ac_cpp='$CXXCPP $CPPFLAGS'
20749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20753 cat >conftest.$ac_ext <<_ACEOF
20754 /* confdefs.h. */
20755 _ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h. */
20759 #include <cmath>
20761 main ()
20763 float f; isnan(f);
20765 return 0;
20767 _ACEOF
20768 rm -f conftest.$ac_objext
20769 if { (ac_try="$ac_compile"
20770 case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20773 esac
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_compile") 2>conftest.er1
20776 ac_status=$?
20777 grep -v '^ *+' conftest.er1 >conftest.err
20778 rm -f conftest.er1
20779 cat conftest.err >&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } &&
20782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20783 { (case "(($ac_try" in
20784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785 *) ac_try_echo=$ac_try;;
20786 esac
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788 (eval "$ac_try") 2>&5
20789 ac_status=$?
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; } &&
20792 { ac_try='test -s conftest.$ac_objext'
20793 { (case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_try") 2>&5
20799 ac_status=$?
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); }; }; then
20802 ac_cv_func_isnan_in_cmath=yes
20803 else
20804 echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20807 ac_cv_func_isnan_in_cmath=no
20810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20811 ac_ext=c
20812 ac_cpp='$CPP $CPPFLAGS'
20813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20818 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20819 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20821 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20823 cat >>confdefs.h <<\_ACEOF
20824 #define HAVE_ISNAN_IN_CMATH 1
20825 _ACEOF
20829 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20830 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20831 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 else
20834 ac_ext=cpp
20835 ac_cpp='$CXXCPP $CPPFLAGS'
20836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20840 cat >conftest.$ac_ext <<_ACEOF
20841 /* confdefs.h. */
20842 _ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20846 #include <cmath>
20848 main ()
20850 float f; std::isnan(f);
20852 return 0;
20854 _ACEOF
20855 rm -f conftest.$ac_objext
20856 if { (ac_try="$ac_compile"
20857 case "(($ac_try" in
20858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20859 *) ac_try_echo=$ac_try;;
20860 esac
20861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20862 (eval "$ac_compile") 2>conftest.er1
20863 ac_status=$?
20864 grep -v '^ *+' conftest.er1 >conftest.err
20865 rm -f conftest.er1
20866 cat conftest.err >&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20870 { (case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_try") 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; } &&
20879 { ac_try='test -s conftest.$ac_objext'
20880 { (case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20883 esac
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885 (eval "$ac_try") 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; }; then
20889 ac_cv_func_std_isnan_in_cmath=yes
20890 else
20891 echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20894 ac_cv_func_std_isnan_in_cmath=no
20897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20898 ac_ext=c
20899 ac_cpp='$CPP $CPPFLAGS'
20900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20905 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20906 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20908 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20910 cat >>confdefs.h <<\_ACEOF
20911 #define HAVE_STD_ISNAN_IN_CMATH 1
20912 _ACEOF
20917 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20918 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20919 if test "${ac_cv_func_isinf_in_math_h+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 cat >conftest.$ac_ext <<_ACEOF
20929 /* confdefs.h. */
20930 _ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h. */
20934 #include <math.h>
20936 main ()
20938 float f; isinf(f);
20940 return 0;
20942 _ACEOF
20943 rm -f conftest.$ac_objext
20944 if { (ac_try="$ac_compile"
20945 case "(($ac_try" in
20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947 *) ac_try_echo=$ac_try;;
20948 esac
20949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20950 (eval "$ac_compile") 2>conftest.er1
20951 ac_status=$?
20952 grep -v '^ *+' conftest.er1 >conftest.err
20953 rm -f conftest.er1
20954 cat conftest.err >&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } &&
20957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20958 { (case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20961 esac
20962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963 (eval "$ac_try") 2>&5
20964 ac_status=$?
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; } &&
20967 { ac_try='test -s conftest.$ac_objext'
20968 { (case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20971 esac
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973 (eval "$ac_try") 2>&5
20974 ac_status=$?
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); }; }; then
20977 ac_cv_func_isinf_in_math_h=yes
20978 else
20979 echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20982 ac_cv_func_isinf_in_math_h=no
20985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20986 ac_ext=c
20987 ac_cpp='$CPP $CPPFLAGS'
20988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20993 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20994 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20996 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20998 cat >>confdefs.h <<\_ACEOF
20999 #define HAVE_ISINF_IN_MATH_H 1
21000 _ACEOF
21004 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21005 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21006 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21007 echo $ECHO_N "(cached) $ECHO_C" >&6
21008 else
21009 ac_ext=cpp
21010 ac_cpp='$CXXCPP $CPPFLAGS'
21011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21015 cat >conftest.$ac_ext <<_ACEOF
21016 /* confdefs.h. */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 #include <cmath>
21023 main ()
21025 float f; isinf(f);
21027 return 0;
21029 _ACEOF
21030 rm -f conftest.$ac_objext
21031 if { (ac_try="$ac_compile"
21032 case "(($ac_try" in
21033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034 *) ac_try_echo=$ac_try;;
21035 esac
21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037 (eval "$ac_compile") 2>conftest.er1
21038 ac_status=$?
21039 grep -v '^ *+' conftest.er1 >conftest.err
21040 rm -f conftest.er1
21041 cat conftest.err >&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } &&
21044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21045 { (case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21048 esac
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050 (eval "$ac_try") 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; } &&
21054 { ac_try='test -s conftest.$ac_objext'
21055 { (case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_try") 2>&5
21061 ac_status=$?
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; }; then
21064 ac_cv_func_isinf_in_cmath=yes
21065 else
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_cv_func_isinf_in_cmath=no
21072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073 ac_ext=c
21074 ac_cpp='$CPP $CPPFLAGS'
21075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21080 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21081 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21083 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21085 cat >>confdefs.h <<\_ACEOF
21086 #define HAVE_ISINF_IN_CMATH 1
21087 _ACEOF
21091 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21092 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21093 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21095 else
21096 ac_ext=cpp
21097 ac_cpp='$CXXCPP $CPPFLAGS'
21098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21102 cat >conftest.$ac_ext <<_ACEOF
21103 /* confdefs.h. */
21104 _ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h. */
21108 #include <cmath>
21110 main ()
21112 float f; std::isinf(f)}
21114 return 0;
21116 _ACEOF
21117 rm -f conftest.$ac_objext
21118 if { (ac_try="$ac_compile"
21119 case "(($ac_try" in
21120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121 *) ac_try_echo=$ac_try;;
21122 esac
21123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124 (eval "$ac_compile") 2>conftest.er1
21125 ac_status=$?
21126 grep -v '^ *+' conftest.er1 >conftest.err
21127 rm -f conftest.er1
21128 cat conftest.err >&5
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); } &&
21131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21132 { (case "(($ac_try" in
21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134 *) ac_try_echo=$ac_try;;
21135 esac
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137 (eval "$ac_try") 2>&5
21138 ac_status=$?
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; } &&
21141 { ac_try='test -s conftest.$ac_objext'
21142 { (case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21145 esac
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147 (eval "$ac_try") 2>&5
21148 ac_status=$?
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; }; then
21151 ac_cv_func_std_isinf_in_cmath=yes
21152 else
21153 echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21156 ac_cv_func_std_isinf_in_cmath=no
21159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160 ac_ext=c
21161 ac_cpp='$CPP $CPPFLAGS'
21162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21167 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21168 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21170 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21172 cat >>confdefs.h <<\_ACEOF
21173 #define HAVE_STD_ISINF_IN_CMATH 1
21174 _ACEOF
21178 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21179 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21180 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21181 echo $ECHO_N "(cached) $ECHO_C" >&6
21182 else
21183 ac_ext=cpp
21184 ac_cpp='$CXXCPP $CPPFLAGS'
21185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21189 cat >conftest.$ac_ext <<_ACEOF
21190 /* confdefs.h. */
21191 _ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h. */
21195 #include <ieeefp.h>
21197 main ()
21199 float f; finite(f);
21201 return 0;
21203 _ACEOF
21204 rm -f conftest.$ac_objext
21205 if { (ac_try="$ac_compile"
21206 case "(($ac_try" in
21207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208 *) ac_try_echo=$ac_try;;
21209 esac
21210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21211 (eval "$ac_compile") 2>conftest.er1
21212 ac_status=$?
21213 grep -v '^ *+' conftest.er1 >conftest.err
21214 rm -f conftest.er1
21215 cat conftest.err >&5
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); } &&
21218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21219 { (case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21222 esac
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224 (eval "$ac_try") 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; } &&
21228 { ac_try='test -s conftest.$ac_objext'
21229 { (case "(($ac_try" in
21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21232 esac
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234 (eval "$ac_try") 2>&5
21235 ac_status=$?
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); }; }; then
21238 ac_cv_func_finite_in_ieeefp_h=yes
21239 else
21240 echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21243 ac_cv_func_finite_in_ieeefp_h=no
21246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21247 ac_ext=c
21248 ac_cpp='$CPP $CPPFLAGS'
21249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21254 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21255 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21257 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21259 cat >>confdefs.h <<\_ACEOF
21260 #define HAVE_FINITE_IN_IEEEFP_H 1
21261 _ACEOF
21267 if test "$llvm_cv_platform_type" = "Unix" ; then
21270 for ac_header in stdlib.h unistd.h
21272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21279 ac_res=`eval echo '${'$as_ac_Header'}'`
21280 { echo "$as_me:$LINENO: result: $ac_res" >&5
21281 echo "${ECHO_T}$ac_res" >&6; }
21282 else
21283 # Is the header compilable?
21284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21286 cat >conftest.$ac_ext <<_ACEOF
21287 /* confdefs.h. */
21288 _ACEOF
21289 cat confdefs.h >>conftest.$ac_ext
21290 cat >>conftest.$ac_ext <<_ACEOF
21291 /* end confdefs.h. */
21292 $ac_includes_default
21293 #include <$ac_header>
21294 _ACEOF
21295 rm -f conftest.$ac_objext
21296 if { (ac_try="$ac_compile"
21297 case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21300 esac
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_compile") 2>conftest.er1
21303 ac_status=$?
21304 grep -v '^ *+' conftest.er1 >conftest.err
21305 rm -f conftest.er1
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } &&
21309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21310 { (case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21313 esac
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_try") 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; } &&
21319 { ac_try='test -s conftest.$ac_objext'
21320 { (case "(($ac_try" in
21321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21322 *) ac_try_echo=$ac_try;;
21323 esac
21324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21325 (eval "$ac_try") 2>&5
21326 ac_status=$?
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); }; }; then
21329 ac_header_compiler=yes
21330 else
21331 echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21334 ac_header_compiler=no
21337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21339 echo "${ECHO_T}$ac_header_compiler" >&6; }
21341 # Is the header present?
21342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21344 cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h. */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 #include <$ac_header>
21351 _ACEOF
21352 if { (ac_try="$ac_cpp conftest.$ac_ext"
21353 case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21356 esac
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21359 ac_status=$?
21360 grep -v '^ *+' conftest.er1 >conftest.err
21361 rm -f conftest.er1
21362 cat conftest.err >&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } >/dev/null; then
21365 if test -s conftest.err; then
21366 ac_cpp_err=$ac_c_preproc_warn_flag
21367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21368 else
21369 ac_cpp_err=
21371 else
21372 ac_cpp_err=yes
21374 if test -z "$ac_cpp_err"; then
21375 ac_header_preproc=yes
21376 else
21377 echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21380 ac_header_preproc=no
21383 rm -f conftest.err conftest.$ac_ext
21384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21385 echo "${ECHO_T}$ac_header_preproc" >&6; }
21387 # So? What about this header?
21388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21389 yes:no: )
21390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21394 ac_header_preproc=yes
21396 no:yes:* )
21397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21409 ( cat <<\_ASBOX
21410 ## ----------------------------------- ##
21411 ## Report this to llvmbugs@cs.uiuc.edu ##
21412 ## ----------------------------------- ##
21413 _ASBOX
21414 ) | sed "s/^/$as_me: WARNING: /" >&2
21416 esac
21417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
21421 else
21422 eval "$as_ac_Header=\$ac_header_preproc"
21424 ac_res=`eval echo '${'$as_ac_Header'}'`
21425 { echo "$as_me:$LINENO: result: $ac_res" >&5
21426 echo "${ECHO_T}$ac_res" >&6; }
21429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21430 cat >>confdefs.h <<_ACEOF
21431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21432 _ACEOF
21436 done
21439 for ac_func in getpagesize
21441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
21446 else
21447 cat >conftest.$ac_ext <<_ACEOF
21448 /* confdefs.h. */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21455 #define $ac_func innocuous_$ac_func
21457 /* System header to define __stub macros and hopefully few prototypes,
21458 which can conflict with char $ac_func (); below.
21459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21460 <limits.h> exists even on freestanding compilers. */
21462 #ifdef __STDC__
21463 # include <limits.h>
21464 #else
21465 # include <assert.h>
21466 #endif
21468 #undef $ac_func
21470 /* Override any GCC internal prototype to avoid an error.
21471 Use char because int might match the return type of a GCC
21472 builtin and then its argument prototype would still apply. */
21473 #ifdef __cplusplus
21474 extern "C"
21475 #endif
21476 char $ac_func ();
21477 /* The GNU C library defines this for functions which it implements
21478 to always fail with ENOSYS. Some functions are actually named
21479 something starting with __ and the normal name is an alias. */
21480 #if defined __stub_$ac_func || defined __stub___$ac_func
21481 choke me
21482 #endif
21485 main ()
21487 return $ac_func ();
21489 return 0;
21491 _ACEOF
21492 rm -f conftest.$ac_objext conftest$ac_exeext
21493 if { (ac_try="$ac_link"
21494 case "(($ac_try" in
21495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496 *) ac_try_echo=$ac_try;;
21497 esac
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499 (eval "$ac_link") 2>conftest.er1
21500 ac_status=$?
21501 grep -v '^ *+' conftest.er1 >conftest.err
21502 rm -f conftest.er1
21503 cat conftest.err >&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } &&
21506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21507 { (case "(($ac_try" in
21508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509 *) ac_try_echo=$ac_try;;
21510 esac
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512 (eval "$ac_try") 2>&5
21513 ac_status=$?
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; } &&
21516 { ac_try='test -s conftest$ac_exeext'
21517 { (case "(($ac_try" in
21518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519 *) ac_try_echo=$ac_try;;
21520 esac
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522 (eval "$ac_try") 2>&5
21523 ac_status=$?
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
21526 eval "$as_ac_var=yes"
21527 else
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21531 eval "$as_ac_var=no"
21534 rm -f core conftest.err conftest.$ac_objext \
21535 conftest$ac_exeext conftest.$ac_ext
21537 ac_res=`eval echo '${'$as_ac_var'}'`
21538 { echo "$as_me:$LINENO: result: $ac_res" >&5
21539 echo "${ECHO_T}$ac_res" >&6; }
21540 if test `eval echo '${'$as_ac_var'}'` = yes; then
21541 cat >>confdefs.h <<_ACEOF
21542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21543 _ACEOF
21546 done
21548 { echo "$as_me:$LINENO: checking for working mmap" >&5
21549 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21550 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 else
21553 if test "$cross_compiling" = yes; then
21554 ac_cv_func_mmap_fixed_mapped=no
21555 else
21556 cat >conftest.$ac_ext <<_ACEOF
21557 /* confdefs.h. */
21558 _ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h. */
21562 $ac_includes_default
21563 /* malloc might have been renamed as rpl_malloc. */
21564 #undef malloc
21566 /* Thanks to Mike Haertel and Jim Avera for this test.
21567 Here is a matrix of mmap possibilities:
21568 mmap private not fixed
21569 mmap private fixed at somewhere currently unmapped
21570 mmap private fixed at somewhere already mapped
21571 mmap shared not fixed
21572 mmap shared fixed at somewhere currently unmapped
21573 mmap shared fixed at somewhere already mapped
21574 For private mappings, we should verify that changes cannot be read()
21575 back from the file, nor mmap's back from the file at a different
21576 address. (There have been systems where private was not correctly
21577 implemented like the infamous i386 svr4.0, and systems where the
21578 VM page cache was not coherent with the file system buffer cache
21579 like early versions of FreeBSD and possibly contemporary NetBSD.)
21580 For shared mappings, we should conversely verify that changes get
21581 propagated back to all the places they're supposed to be.
21583 Grep wants private fixed already mapped.
21584 The main things grep needs to know about mmap are:
21585 * does it exist and is it safe to write into the mmap'd area
21586 * how to use it (BSD variants) */
21588 #include <fcntl.h>
21589 #include <sys/mman.h>
21591 #if !STDC_HEADERS && !HAVE_STDLIB_H
21592 char *malloc ();
21593 #endif
21595 /* This mess was copied from the GNU getpagesize.h. */
21596 #if !HAVE_GETPAGESIZE
21597 /* Assume that all systems that can run configure have sys/param.h. */
21598 # if !HAVE_SYS_PARAM_H
21599 # define HAVE_SYS_PARAM_H 1
21600 # endif
21602 # ifdef _SC_PAGESIZE
21603 # define getpagesize() sysconf(_SC_PAGESIZE)
21604 # else /* no _SC_PAGESIZE */
21605 # if HAVE_SYS_PARAM_H
21606 # include <sys/param.h>
21607 # ifdef EXEC_PAGESIZE
21608 # define getpagesize() EXEC_PAGESIZE
21609 # else /* no EXEC_PAGESIZE */
21610 # ifdef NBPG
21611 # define getpagesize() NBPG * CLSIZE
21612 # ifndef CLSIZE
21613 # define CLSIZE 1
21614 # endif /* no CLSIZE */
21615 # else /* no NBPG */
21616 # ifdef NBPC
21617 # define getpagesize() NBPC
21618 # else /* no NBPC */
21619 # ifdef PAGESIZE
21620 # define getpagesize() PAGESIZE
21621 # endif /* PAGESIZE */
21622 # endif /* no NBPC */
21623 # endif /* no NBPG */
21624 # endif /* no EXEC_PAGESIZE */
21625 # else /* no HAVE_SYS_PARAM_H */
21626 # define getpagesize() 8192 /* punt totally */
21627 # endif /* no HAVE_SYS_PARAM_H */
21628 # endif /* no _SC_PAGESIZE */
21630 #endif /* no HAVE_GETPAGESIZE */
21633 main ()
21635 char *data, *data2, *data3;
21636 int i, pagesize;
21637 int fd;
21639 pagesize = getpagesize ();
21641 /* First, make a file with some known garbage in it. */
21642 data = (char *) malloc (pagesize);
21643 if (!data)
21644 return 1;
21645 for (i = 0; i < pagesize; ++i)
21646 *(data + i) = rand ();
21647 umask (0);
21648 fd = creat ("conftest.mmap", 0600);
21649 if (fd < 0)
21650 return 1;
21651 if (write (fd, data, pagesize) != pagesize)
21652 return 1;
21653 close (fd);
21655 /* Next, try to mmap the file at a fixed address which already has
21656 something else allocated at it. If we can, also make sure that
21657 we see the same garbage. */
21658 fd = open ("conftest.mmap", O_RDWR);
21659 if (fd < 0)
21660 return 1;
21661 data2 = (char *) malloc (2 * pagesize);
21662 if (!data2)
21663 return 1;
21664 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21665 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21666 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21667 return 1;
21668 for (i = 0; i < pagesize; ++i)
21669 if (*(data + i) != *(data2 + i))
21670 return 1;
21672 /* Finally, make sure that changes to the mapped area do not
21673 percolate back to the file as seen by read(). (This is a bug on
21674 some variants of i386 svr4.0.) */
21675 for (i = 0; i < pagesize; ++i)
21676 *(data2 + i) = *(data2 + i) + 1;
21677 data3 = (char *) malloc (pagesize);
21678 if (!data3)
21679 return 1;
21680 if (read (fd, data3, pagesize) != pagesize)
21681 return 1;
21682 for (i = 0; i < pagesize; ++i)
21683 if (*(data + i) != *(data3 + i))
21684 return 1;
21685 close (fd);
21686 return 0;
21688 _ACEOF
21689 rm -f conftest$ac_exeext
21690 if { (ac_try="$ac_link"
21691 case "(($ac_try" in
21692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693 *) ac_try_echo=$ac_try;;
21694 esac
21695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21696 (eval "$ac_link") 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21700 { (case "(($ac_try" in
21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21703 esac
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_try") 2>&5
21706 ac_status=$?
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; }; then
21709 ac_cv_func_mmap_fixed_mapped=yes
21710 else
21711 echo "$as_me: program exited with status $ac_status" >&5
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 ( exit $ac_status )
21716 ac_cv_func_mmap_fixed_mapped=no
21718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21723 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21724 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21725 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21727 cat >>confdefs.h <<\_ACEOF
21728 #define HAVE_MMAP 1
21729 _ACEOF
21732 rm -f conftest.mmap
21734 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21735 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21736 if test "${ac_cv_func_mmap_file+set}" = set; then
21737 echo $ECHO_N "(cached) $ECHO_C" >&6
21738 else
21739 ac_ext=c
21740 ac_cpp='$CPP $CPPFLAGS'
21741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21745 if test "$cross_compiling" = yes; then
21746 ac_cv_func_mmap_file=no
21747 else
21748 cat >conftest.$ac_ext <<_ACEOF
21750 /* confdefs.h. */
21751 _ACEOF
21752 cat confdefs.h >>conftest.$ac_ext
21753 cat >>conftest.$ac_ext <<_ACEOF
21754 /* end confdefs.h. */
21756 #include <sys/types.h>
21757 #include <sys/mman.h>
21758 #include <fcntl.h>
21761 main ()
21764 int fd;
21765 fd = creat ("foo",0777);
21766 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21767 unlink ("foo");
21768 return (fd != (int) MAP_FAILED);
21770 return 0;
21772 _ACEOF
21773 rm -f conftest$ac_exeext
21774 if { (ac_try="$ac_link"
21775 case "(($ac_try" in
21776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777 *) ac_try_echo=$ac_try;;
21778 esac
21779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21780 (eval "$ac_link") 2>&5
21781 ac_status=$?
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21784 { (case "(($ac_try" in
21785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786 *) ac_try_echo=$ac_try;;
21787 esac
21788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21789 (eval "$ac_try") 2>&5
21790 ac_status=$?
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; }; then
21793 ac_cv_func_mmap_file=yes
21794 else
21795 echo "$as_me: program exited with status $ac_status" >&5
21796 echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21799 ( exit $ac_status )
21800 ac_cv_func_mmap_file=no
21802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21806 ac_ext=c
21807 ac_cpp='$CPP $CPPFLAGS'
21808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21814 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21815 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21816 if test "$ac_cv_func_mmap_file" = yes; then
21818 cat >>confdefs.h <<\_ACEOF
21819 #define HAVE_MMAP_FILE
21820 _ACEOF
21822 MMAP_FILE=yes
21826 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21827 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21828 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21829 echo $ECHO_N "(cached) $ECHO_C" >&6
21830 else
21831 if test "$llvm_cv_os_type" = "Interix" ; then
21832 ac_cv_need_dev_zero_for_mmap=yes
21833 else
21834 ac_cv_need_dev_zero_for_mmap=no
21838 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21839 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21840 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21842 cat >>confdefs.h <<\_ACEOF
21843 #define NEED_DEV_ZERO_FOR_MMAP 1
21844 _ACEOF
21848 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21849 then
21850 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21851 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21853 if test "$ac_cv_func_mmap_file" = "no"
21854 then
21855 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21856 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21860 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21861 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21862 ac_ext=cpp
21863 ac_cpp='$CXXCPP $CPPFLAGS'
21864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21868 cat >conftest.$ac_ext <<_ACEOF
21869 /* confdefs.h. */
21870 _ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h. */
21874 int main() {
21875 volatile unsigned long val = 1;
21876 __sync_synchronize();
21877 __sync_val_compare_and_swap(&val, 1, 0);
21878 __sync_add_and_fetch(&val, 1);
21879 __sync_sub_and_fetch(&val, 1);
21880 return 0;
21883 _ACEOF
21884 rm -f conftest.$ac_objext conftest$ac_exeext
21885 if { (ac_try="$ac_link"
21886 case "(($ac_try" in
21887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21889 esac
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891 (eval "$ac_link") 2>conftest.er1
21892 ac_status=$?
21893 grep -v '^ *+' conftest.er1 >conftest.err
21894 rm -f conftest.er1
21895 cat conftest.err >&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); } &&
21898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21899 { (case "(($ac_try" in
21900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901 *) ac_try_echo=$ac_try;;
21902 esac
21903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904 (eval "$ac_try") 2>&5
21905 ac_status=$?
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; } &&
21908 { ac_try='test -s conftest$ac_exeext'
21909 { (case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21912 esac
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_try") 2>&5
21915 ac_status=$?
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; }; then
21918 ac_ext=c
21919 ac_cpp='$CPP $CPPFLAGS'
21920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21924 { echo "$as_me:$LINENO: result: yes" >&5
21925 echo "${ECHO_T}yes" >&6; }
21927 cat >>confdefs.h <<\_ACEOF
21928 #define LLVM_MULTITHREADED 1
21929 _ACEOF
21931 else
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21935 { echo "$as_me:$LINENO: result: no" >&5
21936 echo "${ECHO_T}no" >&6; }
21938 cat >>confdefs.h <<\_ACEOF
21939 #define LLVM_MULTITHREADED 0
21940 _ACEOF
21942 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21943 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21946 rm -f core conftest.err conftest.$ac_objext \
21947 conftest$ac_exeext conftest.$ac_ext
21950 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21951 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21952 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21953 if test "${llvm_cv_linux_mixed+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 else
21956 ac_ext=c
21957 ac_cpp='$CPP $CPPFLAGS'
21958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21962 cat >conftest.$ac_ext <<_ACEOF
21963 /* confdefs.h. */
21964 _ACEOF
21965 cat confdefs.h >>conftest.$ac_ext
21966 cat >>conftest.$ac_ext <<_ACEOF
21967 /* end confdefs.h. */
21968 #ifndef __x86_64__
21969 error: Not x86-64 even if uname says so!
21970 #endif
21973 main ()
21977 return 0;
21979 _ACEOF
21980 rm -f conftest.$ac_objext
21981 if { (ac_try="$ac_compile"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_compile") 2>conftest.er1
21988 ac_status=$?
21989 grep -v '^ *+' conftest.er1 >conftest.err
21990 rm -f conftest.er1
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } &&
21994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21995 { (case "(($ac_try" in
21996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997 *) ac_try_echo=$ac_try;;
21998 esac
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000 (eval "$ac_try") 2>&5
22001 ac_status=$?
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; } &&
22004 { ac_try='test -s conftest.$ac_objext'
22005 { (case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22008 esac
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_try") 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 llvm_cv_linux_mixed=no
22015 else
22016 echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22019 llvm_cv_linux_mixed=yes
22022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22023 ac_ext=c
22024 ac_cpp='$CPP $CPPFLAGS'
22025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22031 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22032 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22034 if test "$llvm_cv_linux_mixed" = "yes"; then
22035 llvm_cv_target_arch="x86"
22036 ARCH="x86"
22041 for ac_func in __dso_handle
22043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22048 else
22049 cat >conftest.$ac_ext <<_ACEOF
22050 /* confdefs.h. */
22051 _ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22057 #define $ac_func innocuous_$ac_func
22059 /* System header to define __stub macros and hopefully few prototypes,
22060 which can conflict with char $ac_func (); below.
22061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22062 <limits.h> exists even on freestanding compilers. */
22064 #ifdef __STDC__
22065 # include <limits.h>
22066 #else
22067 # include <assert.h>
22068 #endif
22070 #undef $ac_func
22072 /* Override any GCC internal prototype to avoid an error.
22073 Use char because int might match the return type of a GCC
22074 builtin and then its argument prototype would still apply. */
22075 #ifdef __cplusplus
22076 extern "C"
22077 #endif
22078 char $ac_func ();
22079 /* The GNU C library defines this for functions which it implements
22080 to always fail with ENOSYS. Some functions are actually named
22081 something starting with __ and the normal name is an alias. */
22082 #if defined __stub_$ac_func || defined __stub___$ac_func
22083 choke me
22084 #endif
22087 main ()
22089 return $ac_func ();
22091 return 0;
22093 _ACEOF
22094 rm -f conftest.$ac_objext conftest$ac_exeext
22095 if { (ac_try="$ac_link"
22096 case "(($ac_try" in
22097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098 *) ac_try_echo=$ac_try;;
22099 esac
22100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22101 (eval "$ac_link") 2>conftest.er1
22102 ac_status=$?
22103 grep -v '^ *+' conftest.er1 >conftest.err
22104 rm -f conftest.er1
22105 cat conftest.err >&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); } &&
22108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22109 { (case "(($ac_try" in
22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111 *) ac_try_echo=$ac_try;;
22112 esac
22113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114 (eval "$ac_try") 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; } &&
22118 { ac_try='test -s conftest$ac_exeext'
22119 { (case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22122 esac
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_try") 2>&5
22125 ac_status=$?
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; }; then
22128 eval "$as_ac_var=yes"
22129 else
22130 echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22133 eval "$as_ac_var=no"
22136 rm -f core conftest.err conftest.$ac_objext \
22137 conftest$ac_exeext conftest.$ac_ext
22139 ac_res=`eval echo '${'$as_ac_var'}'`
22140 { echo "$as_me:$LINENO: result: $ac_res" >&5
22141 echo "${ECHO_T}$ac_res" >&6; }
22142 if test `eval echo '${'$as_ac_var'}'` = yes; then
22143 cat >>confdefs.h <<_ACEOF
22144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22145 _ACEOF
22148 done
22151 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22152 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22153 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 else
22156 llvm_cv_llvmgcc_dragonegg="no"
22157 if test -n "$LLVMGCC" ; then
22158 cp /dev/null conftest.c
22159 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22160 if test $? -eq 0 ; then
22161 llvm_cv_llvmgcc_dragonegg="yes"
22163 rm conftest.c
22166 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22167 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22169 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22170 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22171 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
22172 else
22173 LLVMCC_EMITIR_FLAG="-emit-llvm"
22174 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22179 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22180 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22181 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22182 echo $ECHO_N "(cached) $ECHO_C" >&6
22183 else
22184 llvm_cv_llvmgcc_sanity="no"
22185 if test -n "$LLVMGCC" ; then
22186 cp /dev/null conftest.c
22187 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22188 grep 'target datalayout =' > /dev/null 2>&1
22189 if test $? -eq 0 ; then
22190 llvm_cv_llvmgcc_sanity="yes"
22192 rm conftest.c
22195 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22196 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22198 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22199 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22200 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22201 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22202 LLVMCC1=$llvmcc1path
22204 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22205 LLVMCC1PLUS=$llvmcc1pluspath
22207 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22208 LLVMGCCDIR=$llvmgccdir
22210 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22211 LLVMGCC_LANGS=$llvmgcclangs
22213 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22216 { echo "$as_me:$LINENO: result: ok" >&5
22217 echo "${ECHO_T}ok" >&6; }
22220 SHLIBEXT=$libltdl_cv_shlibext
22223 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22226 # Translate the various configuration directories and other basic
22227 # information into substitutions that will end up in Makefile.config.in
22228 # that these configured values can be used by the makefiles
22229 if test "${prefix}" = "NONE" ; then
22230 prefix="/usr/local"
22232 eval LLVM_PREFIX="${prefix}";
22233 eval LLVM_BINDIR="${prefix}/bin";
22234 eval LLVM_LIBDIR="${prefix}/lib";
22235 eval LLVM_DATADIR="${prefix}/share/llvm";
22236 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22237 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22238 eval LLVM_INCLUDEDIR="${prefix}/include";
22239 eval LLVM_INFODIR="${prefix}/info";
22240 eval LLVM_MANDIR="${prefix}/man";
22241 LLVM_CONFIGTIME=`date`
22253 # Place the various directores into the config.h file as #defines so that we
22254 # can know about the installation paths within LLVM.
22256 cat >>confdefs.h <<_ACEOF
22257 #define LLVM_PREFIX "$LLVM_PREFIX"
22258 _ACEOF
22261 cat >>confdefs.h <<_ACEOF
22262 #define LLVM_BINDIR "$LLVM_BINDIR"
22263 _ACEOF
22266 cat >>confdefs.h <<_ACEOF
22267 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22268 _ACEOF
22271 cat >>confdefs.h <<_ACEOF
22272 #define LLVM_DATADIR "$LLVM_DATADIR"
22273 _ACEOF
22276 cat >>confdefs.h <<_ACEOF
22277 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22278 _ACEOF
22281 cat >>confdefs.h <<_ACEOF
22282 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22283 _ACEOF
22286 cat >>confdefs.h <<_ACEOF
22287 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22288 _ACEOF
22291 cat >>confdefs.h <<_ACEOF
22292 #define LLVM_INFODIR "$LLVM_INFODIR"
22293 _ACEOF
22296 cat >>confdefs.h <<_ACEOF
22297 #define LLVM_MANDIR "$LLVM_MANDIR"
22298 _ACEOF
22301 cat >>confdefs.h <<_ACEOF
22302 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22303 _ACEOF
22306 cat >>confdefs.h <<_ACEOF
22307 #define LLVM_HOSTTRIPLE "$host"
22308 _ACEOF
22311 # Determine which bindings to build.
22312 if test "$BINDINGS_TO_BUILD" = auto ; then
22313 BINDINGS_TO_BUILD=""
22314 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22315 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22318 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22321 # This isn't really configurey, but it avoids having to repeat the list in
22322 # other files.
22323 ALL_BINDINGS=ocaml
22326 # Do any work necessary to ensure that bindings have what they need.
22327 binding_prereqs_failed=0
22328 for a_binding in $BINDINGS_TO_BUILD ; do
22329 case "$a_binding" in
22330 ocaml)
22331 if test "x$OCAMLC" = x ; then
22332 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22333 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22334 binding_prereqs_failed=1
22336 if test "x$OCAMLDEP" = x ; then
22337 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22338 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22339 binding_prereqs_failed=1
22341 if test "x$OCAMLOPT" = x ; then
22342 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22343 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22345 if test "x$with_ocaml_libdir" != xauto ; then
22346 OCAML_LIBDIR=$with_ocaml_libdir
22348 else
22349 ocaml_stdlib="`"$OCAMLC" -where`"
22350 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22351 then
22352 # ocaml stdlib is beneath our prefix; use stdlib
22353 OCAML_LIBDIR=$ocaml_stdlib
22355 else
22356 # ocaml stdlib is outside our prefix; use libdir/ocaml
22357 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22362 esac
22363 done
22364 if test "$binding_prereqs_failed" = 1 ; then
22365 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22366 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22367 { (exit 1); exit 1; }; }
22370 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22371 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22372 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22373 echo $ECHO_N "(cached) $ECHO_C" >&6
22374 else
22375 ac_ext=cpp
22376 ac_cpp='$CXXCPP $CPPFLAGS'
22377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22381 oldcxxflags="$CXXFLAGS"
22382 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22383 cat >conftest.$ac_ext <<_ACEOF
22384 /* confdefs.h. */
22385 _ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h. */
22391 main ()
22395 return 0;
22397 _ACEOF
22398 rm -f conftest.$ac_objext
22399 if { (ac_try="$ac_compile"
22400 case "(($ac_try" in
22401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22402 *) ac_try_echo=$ac_try;;
22403 esac
22404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22405 (eval "$ac_compile") 2>conftest.er1
22406 ac_status=$?
22407 grep -v '^ *+' conftest.er1 >conftest.err
22408 rm -f conftest.er1
22409 cat conftest.err >&5
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); } &&
22412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22413 { (case "(($ac_try" in
22414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415 *) ac_try_echo=$ac_try;;
22416 esac
22417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22418 (eval "$ac_try") 2>&5
22419 ac_status=$?
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); }; } &&
22422 { ac_try='test -s conftest.$ac_objext'
22423 { (case "(($ac_try" in
22424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22425 *) ac_try_echo=$ac_try;;
22426 esac
22427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22428 (eval "$ac_try") 2>&5
22429 ac_status=$?
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); }; }; then
22432 llvm_cv_cxx_visibility_inlines_hidden=yes
22433 else
22434 echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22437 llvm_cv_cxx_visibility_inlines_hidden=no
22440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441 CXXFLAGS="$oldcxxflags"
22442 ac_ext=c
22443 ac_cpp='$CPP $CPPFLAGS'
22444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22450 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22451 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22452 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22453 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22455 else
22456 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22461 if test "$llvm_cv_link_use_r" = "yes" ; then
22462 RPATH="-Wl,-R"
22463 else
22464 RPATH="-Wl,-rpath"
22468 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22469 RDYNAMIC="-Wl,-export-dynamic"
22470 else
22471 RDYNAMIC=""
22476 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22483 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22485 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22487 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22489 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22491 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22494 ac_config_files="$ac_config_files Makefile.config"
22497 ac_config_files="$ac_config_files llvm.spec"
22500 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22503 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22506 ac_config_commands="$ac_config_commands setup"
22508 ac_config_commands="$ac_config_commands Makefile"
22511 ac_config_commands="$ac_config_commands Makefile.common"
22514 ac_config_commands="$ac_config_commands examples/Makefile"
22517 ac_config_commands="$ac_config_commands lib/Makefile"
22520 ac_config_commands="$ac_config_commands runtime/Makefile"
22523 ac_config_commands="$ac_config_commands test/Makefile"
22526 ac_config_commands="$ac_config_commands test/Makefile.tests"
22529 ac_config_commands="$ac_config_commands unittests/Makefile"
22532 ac_config_commands="$ac_config_commands tools/Makefile"
22535 ac_config_commands="$ac_config_commands utils/Makefile"
22538 ac_config_commands="$ac_config_commands projects/Makefile"
22541 ac_config_commands="$ac_config_commands bindings/Makefile"
22544 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22548 cat >confcache <<\_ACEOF
22549 # This file is a shell script that caches the results of configure
22550 # tests run on this system so they can be shared between configure
22551 # scripts and configure runs, see configure's option --config-cache.
22552 # It is not useful on other systems. If it contains results you don't
22553 # want to keep, you may remove or edit it.
22555 # config.status only pays attention to the cache file if you give it
22556 # the --recheck option to rerun configure.
22558 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22559 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22560 # following values.
22562 _ACEOF
22564 # The following way of writing the cache mishandles newlines in values,
22565 # but we know of no workaround that is simple, portable, and efficient.
22566 # So, we kill variables containing newlines.
22567 # Ultrix sh set writes to stderr and can't be redirected directly,
22568 # and sets the high bit in the cache file unless we assign to the vars.
22570 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22571 eval ac_val=\$$ac_var
22572 case $ac_val in #(
22573 *${as_nl}*)
22574 case $ac_var in #(
22575 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22576 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22577 esac
22578 case $ac_var in #(
22579 _ | IFS | as_nl) ;; #(
22580 *) $as_unset $ac_var ;;
22581 esac ;;
22582 esac
22583 done
22585 (set) 2>&1 |
22586 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22587 *${as_nl}ac_space=\ *)
22588 # `set' does not quote correctly, so add quotes (double-quote
22589 # substitution turns \\\\ into \\, and sed turns \\ into \).
22590 sed -n \
22591 "s/'/'\\\\''/g;
22592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22593 ;; #(
22595 # `set' quotes correctly as required by POSIX, so do not add quotes.
22596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22598 esac |
22599 sort
22601 sed '
22602 /^ac_cv_env_/b end
22603 t clear
22604 :clear
22605 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22606 t end
22607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22608 :end' >>confcache
22609 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22610 if test -w "$cache_file"; then
22611 test "x$cache_file" != "x/dev/null" &&
22612 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22613 echo "$as_me: updating cache $cache_file" >&6;}
22614 cat confcache >$cache_file
22615 else
22616 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22617 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22620 rm -f confcache
22622 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22623 # Let make expand exec_prefix.
22624 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22626 DEFS=-DHAVE_CONFIG_H
22628 ac_libobjs=
22629 ac_ltlibobjs=
22630 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22631 # 1. Remove the extension, and $U if already installed.
22632 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22633 ac_i=`echo "$ac_i" | sed "$ac_script"`
22634 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22635 # will be set to the directory where LIBOBJS objects are built.
22636 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22637 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22638 done
22639 LIBOBJS=$ac_libobjs
22641 LTLIBOBJS=$ac_ltlibobjs
22644 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22645 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22646 Usually this means the macro was only invoked conditionally." >&5
22647 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22648 Usually this means the macro was only invoked conditionally." >&2;}
22649 { (exit 1); exit 1; }; }
22651 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22652 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22653 Usually this means the macro was only invoked conditionally." >&5
22654 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22655 Usually this means the macro was only invoked conditionally." >&2;}
22656 { (exit 1); exit 1; }; }
22659 : ${CONFIG_STATUS=./config.status}
22660 ac_clean_files_save=$ac_clean_files
22661 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22662 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22663 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22664 cat >$CONFIG_STATUS <<_ACEOF
22665 #! $SHELL
22666 # Generated by $as_me.
22667 # Run this file to recreate the current configuration.
22668 # Compiler output produced by configure, useful for debugging
22669 # configure, is in config.log if it exists.
22671 debug=false
22672 ac_cs_recheck=false
22673 ac_cs_silent=false
22674 SHELL=\${CONFIG_SHELL-$SHELL}
22675 _ACEOF
22677 cat >>$CONFIG_STATUS <<\_ACEOF
22678 ## --------------------- ##
22679 ## M4sh Initialization. ##
22680 ## --------------------- ##
22682 # Be Bourne compatible
22683 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22684 emulate sh
22685 NULLCMD=:
22686 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22687 # is contrary to our usage. Disable this feature.
22688 alias -g '${1+"$@"}'='"$@"'
22689 setopt NO_GLOB_SUBST
22690 else
22691 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22693 BIN_SH=xpg4; export BIN_SH # for Tru64
22694 DUALCASE=1; export DUALCASE # for MKS sh
22697 # PATH needs CR
22698 # Avoid depending upon Character Ranges.
22699 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22700 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22701 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22702 as_cr_digits='0123456789'
22703 as_cr_alnum=$as_cr_Letters$as_cr_digits
22705 # The user is always right.
22706 if test "${PATH_SEPARATOR+set}" != set; then
22707 echo "#! /bin/sh" >conf$$.sh
22708 echo "exit 0" >>conf$$.sh
22709 chmod +x conf$$.sh
22710 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22711 PATH_SEPARATOR=';'
22712 else
22713 PATH_SEPARATOR=:
22715 rm -f conf$$.sh
22718 # Support unset when possible.
22719 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22720 as_unset=unset
22721 else
22722 as_unset=false
22726 # IFS
22727 # We need space, tab and new line, in precisely that order. Quoting is
22728 # there to prevent editors from complaining about space-tab.
22729 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22730 # splitting by setting IFS to empty value.)
22731 as_nl='
22733 IFS=" "" $as_nl"
22735 # Find who we are. Look in the path if we contain no directory separator.
22736 case $0 in
22737 *[\\/]* ) as_myself=$0 ;;
22738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22739 for as_dir in $PATH
22741 IFS=$as_save_IFS
22742 test -z "$as_dir" && as_dir=.
22743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22744 done
22745 IFS=$as_save_IFS
22748 esac
22749 # We did not find ourselves, most probably we were run as `sh COMMAND'
22750 # in which case we are not to be found in the path.
22751 if test "x$as_myself" = x; then
22752 as_myself=$0
22754 if test ! -f "$as_myself"; then
22755 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22756 { (exit 1); exit 1; }
22759 # Work around bugs in pre-3.0 UWIN ksh.
22760 for as_var in ENV MAIL MAILPATH
22761 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22762 done
22763 PS1='$ '
22764 PS2='> '
22765 PS4='+ '
22767 # NLS nuisances.
22768 for as_var in \
22769 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22770 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22771 LC_TELEPHONE LC_TIME
22773 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22774 eval $as_var=C; export $as_var
22775 else
22776 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22778 done
22780 # Required to use basename.
22781 if expr a : '\(a\)' >/dev/null 2>&1 &&
22782 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22783 as_expr=expr
22784 else
22785 as_expr=false
22788 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22789 as_basename=basename
22790 else
22791 as_basename=false
22795 # Name of the executable.
22796 as_me=`$as_basename -- "$0" ||
22797 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22798 X"$0" : 'X\(//\)$' \| \
22799 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22800 echo X/"$0" |
22801 sed '/^.*\/\([^/][^/]*\)\/*$/{
22802 s//\1/
22805 /^X\/\(\/\/\)$/{
22806 s//\1/
22809 /^X\/\(\/\).*/{
22810 s//\1/
22813 s/.*/./; q'`
22815 # CDPATH.
22816 $as_unset CDPATH
22820 as_lineno_1=$LINENO
22821 as_lineno_2=$LINENO
22822 test "x$as_lineno_1" != "x$as_lineno_2" &&
22823 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22825 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22826 # uniformly replaced by the line number. The first 'sed' inserts a
22827 # line-number line after each line using $LINENO; the second 'sed'
22828 # does the real work. The second script uses 'N' to pair each
22829 # line-number line with the line containing $LINENO, and appends
22830 # trailing '-' during substitution so that $LINENO is not a special
22831 # case at line end.
22832 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22833 # scripts with optimization help from Paolo Bonzini. Blame Lee
22834 # E. McMahon (1931-1989) for sed's syntax. :-)
22835 sed -n '
22837 /[$]LINENO/=
22838 ' <$as_myself |
22839 sed '
22840 s/[$]LINENO.*/&-/
22841 t lineno
22843 :lineno
22845 :loop
22846 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22847 t loop
22848 s/-\n.*//
22849 ' >$as_me.lineno &&
22850 chmod +x "$as_me.lineno" ||
22851 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22852 { (exit 1); exit 1; }; }
22854 # Don't try to exec as it changes $[0], causing all sort of problems
22855 # (the dirname of $[0] is not the place where we might find the
22856 # original and so on. Autoconf is especially sensitive to this).
22857 . "./$as_me.lineno"
22858 # Exit status is that of the last command.
22859 exit
22863 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22864 as_dirname=dirname
22865 else
22866 as_dirname=false
22869 ECHO_C= ECHO_N= ECHO_T=
22870 case `echo -n x` in
22871 -n*)
22872 case `echo 'x\c'` in
22873 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22874 *) ECHO_C='\c';;
22875 esac;;
22877 ECHO_N='-n';;
22878 esac
22880 if expr a : '\(a\)' >/dev/null 2>&1 &&
22881 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22882 as_expr=expr
22883 else
22884 as_expr=false
22887 rm -f conf$$ conf$$.exe conf$$.file
22888 if test -d conf$$.dir; then
22889 rm -f conf$$.dir/conf$$.file
22890 else
22891 rm -f conf$$.dir
22892 mkdir conf$$.dir
22894 echo >conf$$.file
22895 if ln -s conf$$.file conf$$ 2>/dev/null; then
22896 as_ln_s='ln -s'
22897 # ... but there are two gotchas:
22898 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22899 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22900 # In both cases, we have to default to `cp -p'.
22901 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22902 as_ln_s='cp -p'
22903 elif ln conf$$.file conf$$ 2>/dev/null; then
22904 as_ln_s=ln
22905 else
22906 as_ln_s='cp -p'
22908 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22909 rmdir conf$$.dir 2>/dev/null
22911 if mkdir -p . 2>/dev/null; then
22912 as_mkdir_p=:
22913 else
22914 test -d ./-p && rmdir ./-p
22915 as_mkdir_p=false
22918 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22919 # systems may use methods other than mode bits to determine executability.
22920 cat >conf$$.file <<_ASEOF
22921 #! /bin/sh
22922 exit 0
22923 _ASEOF
22924 chmod +x conf$$.file
22925 if test -x conf$$.file >/dev/null 2>&1; then
22926 as_executable_p="test -x"
22927 else
22928 as_executable_p=:
22930 rm -f conf$$.file
22932 # Sed expression to map a string onto a valid CPP name.
22933 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22935 # Sed expression to map a string onto a valid variable name.
22936 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22939 exec 6>&1
22941 # Save the log message, to keep $[0] and so on meaningful, and to
22942 # report actual input values of CONFIG_FILES etc. instead of their
22943 # values after options handling.
22944 ac_log="
22945 This file was extended by llvm $as_me 2.9svn, which was
22946 generated by GNU Autoconf 2.60. Invocation command line was
22948 CONFIG_FILES = $CONFIG_FILES
22949 CONFIG_HEADERS = $CONFIG_HEADERS
22950 CONFIG_LINKS = $CONFIG_LINKS
22951 CONFIG_COMMANDS = $CONFIG_COMMANDS
22952 $ $0 $@
22954 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22957 _ACEOF
22959 cat >>$CONFIG_STATUS <<_ACEOF
22960 # Files that config.status was made for.
22961 config_files="$ac_config_files"
22962 config_headers="$ac_config_headers"
22963 config_commands="$ac_config_commands"
22965 _ACEOF
22967 cat >>$CONFIG_STATUS <<\_ACEOF
22968 ac_cs_usage="\
22969 \`$as_me' instantiates files from templates according to the
22970 current configuration.
22972 Usage: $0 [OPTIONS] [FILE]...
22974 -h, --help print this help, then exit
22975 -V, --version print version number, then exit
22976 -q, --quiet do not print progress messages
22977 -d, --debug don't remove temporary files
22978 --recheck update $as_me by reconfiguring in the same conditions
22979 --file=FILE[:TEMPLATE]
22980 instantiate the configuration file FILE
22981 --header=FILE[:TEMPLATE]
22982 instantiate the configuration header FILE
22984 Configuration files:
22985 $config_files
22987 Configuration headers:
22988 $config_headers
22990 Configuration commands:
22991 $config_commands
22993 Report bugs to <bug-autoconf@gnu.org>."
22995 _ACEOF
22996 cat >>$CONFIG_STATUS <<_ACEOF
22997 ac_cs_version="\\
22998 llvm config.status 2.9svn
22999 configured by $0, generated by GNU Autoconf 2.60,
23000 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23002 Copyright (C) 2006 Free Software Foundation, Inc.
23003 This config.status script is free software; the Free Software Foundation
23004 gives unlimited permission to copy, distribute and modify it."
23006 ac_pwd='$ac_pwd'
23007 srcdir='$srcdir'
23008 INSTALL='$INSTALL'
23009 _ACEOF
23011 cat >>$CONFIG_STATUS <<\_ACEOF
23012 # If no file are specified by the user, then we need to provide default
23013 # value. By we need to know if files were specified by the user.
23014 ac_need_defaults=:
23015 while test $# != 0
23017 case $1 in
23018 --*=*)
23019 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23020 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23021 ac_shift=:
23024 ac_option=$1
23025 ac_optarg=$2
23026 ac_shift=shift
23028 esac
23030 case $ac_option in
23031 # Handling of the options.
23032 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23033 ac_cs_recheck=: ;;
23034 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23035 echo "$ac_cs_version"; exit ;;
23036 --debug | --debu | --deb | --de | --d | -d )
23037 debug=: ;;
23038 --file | --fil | --fi | --f )
23039 $ac_shift
23040 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23041 ac_need_defaults=false;;
23042 --header | --heade | --head | --hea )
23043 $ac_shift
23044 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23045 ac_need_defaults=false;;
23046 --he | --h)
23047 # Conflict between --help and --header
23048 { echo "$as_me: error: ambiguous option: $1
23049 Try \`$0 --help' for more information." >&2
23050 { (exit 1); exit 1; }; };;
23051 --help | --hel | -h )
23052 echo "$ac_cs_usage"; exit ;;
23053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23054 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23055 ac_cs_silent=: ;;
23057 # This is an error.
23058 -*) { echo "$as_me: error: unrecognized option: $1
23059 Try \`$0 --help' for more information." >&2
23060 { (exit 1); exit 1; }; } ;;
23062 *) ac_config_targets="$ac_config_targets $1"
23063 ac_need_defaults=false ;;
23065 esac
23066 shift
23067 done
23069 ac_configure_extra_args=
23071 if $ac_cs_silent; then
23072 exec 6>/dev/null
23073 ac_configure_extra_args="$ac_configure_extra_args --silent"
23076 _ACEOF
23077 cat >>$CONFIG_STATUS <<_ACEOF
23078 if \$ac_cs_recheck; then
23079 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23080 CONFIG_SHELL=$SHELL
23081 export CONFIG_SHELL
23082 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23085 _ACEOF
23086 cat >>$CONFIG_STATUS <<\_ACEOF
23087 exec 5>>config.log
23089 echo
23090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23091 ## Running $as_me. ##
23092 _ASBOX
23093 echo "$ac_log"
23094 } >&5
23096 _ACEOF
23097 cat >>$CONFIG_STATUS <<_ACEOF
23099 # INIT-COMMANDS
23101 llvm_src="${srcdir}"
23103 _ACEOF
23105 cat >>$CONFIG_STATUS <<\_ACEOF
23107 # Handling of arguments.
23108 for ac_config_target in $ac_config_targets
23110 case $ac_config_target in
23111 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23112 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23113 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23114 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23115 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23116 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23117 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23118 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23119 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23120 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23121 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23122 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23123 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23124 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23125 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23126 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23127 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23128 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23129 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23130 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23131 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23132 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23133 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23134 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23135 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23137 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23138 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23139 { (exit 1); exit 1; }; };;
23140 esac
23141 done
23144 # If the user did not use the arguments to specify the items to instantiate,
23145 # then the envvar interface is used. Set only those that are not.
23146 # We use the long form for the default assignment because of an extremely
23147 # bizarre bug on SunOS 4.1.3.
23148 if $ac_need_defaults; then
23149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23151 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23154 # Have a temporary directory for convenience. Make it in the build tree
23155 # simply because there is no reason against having it here, and in addition,
23156 # creating and moving files from /tmp can sometimes cause problems.
23157 # Hook for its removal unless debugging.
23158 # Note that there is a small window in which the directory will not be cleaned:
23159 # after its creation but before its name has been assigned to `$tmp'.
23160 $debug ||
23162 tmp=
23163 trap 'exit_status=$?
23164 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23166 trap '{ (exit 1); exit 1; }' 1 2 13 15
23168 # Create a (secure) tmp directory for tmp files.
23171 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23172 test -n "$tmp" && test -d "$tmp"
23173 } ||
23175 tmp=./conf$$-$RANDOM
23176 (umask 077 && mkdir "$tmp")
23177 } ||
23179 echo "$me: cannot create a temporary directory in ." >&2
23180 { (exit 1); exit 1; }
23184 # Set up the sed scripts for CONFIG_FILES section.
23187 # No need to generate the scripts if there are no CONFIG_FILES.
23188 # This happens for instance when ./config.status config.h
23189 if test -n "$CONFIG_FILES"; then
23191 _ACEOF
23195 ac_delim='%!_!# '
23196 for ac_last_try in false false false false false :; do
23197 cat >conf$$subs.sed <<_ACEOF
23198 SHELL!$SHELL$ac_delim
23199 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23200 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23201 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23202 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23203 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23204 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23205 exec_prefix!$exec_prefix$ac_delim
23206 prefix!$prefix$ac_delim
23207 program_transform_name!$program_transform_name$ac_delim
23208 bindir!$bindir$ac_delim
23209 sbindir!$sbindir$ac_delim
23210 libexecdir!$libexecdir$ac_delim
23211 datarootdir!$datarootdir$ac_delim
23212 datadir!$datadir$ac_delim
23213 sysconfdir!$sysconfdir$ac_delim
23214 sharedstatedir!$sharedstatedir$ac_delim
23215 localstatedir!$localstatedir$ac_delim
23216 includedir!$includedir$ac_delim
23217 oldincludedir!$oldincludedir$ac_delim
23218 docdir!$docdir$ac_delim
23219 infodir!$infodir$ac_delim
23220 htmldir!$htmldir$ac_delim
23221 dvidir!$dvidir$ac_delim
23222 pdfdir!$pdfdir$ac_delim
23223 psdir!$psdir$ac_delim
23224 libdir!$libdir$ac_delim
23225 localedir!$localedir$ac_delim
23226 mandir!$mandir$ac_delim
23227 DEFS!$DEFS$ac_delim
23228 ECHO_C!$ECHO_C$ac_delim
23229 ECHO_N!$ECHO_N$ac_delim
23230 ECHO_T!$ECHO_T$ac_delim
23231 LIBS!$LIBS$ac_delim
23232 build_alias!$build_alias$ac_delim
23233 host_alias!$host_alias$ac_delim
23234 target_alias!$target_alias$ac_delim
23235 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23236 subdirs!$subdirs$ac_delim
23237 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23238 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23239 build!$build$ac_delim
23240 build_cpu!$build_cpu$ac_delim
23241 build_vendor!$build_vendor$ac_delim
23242 build_os!$build_os$ac_delim
23243 host!$host$ac_delim
23244 host_cpu!$host_cpu$ac_delim
23245 host_vendor!$host_vendor$ac_delim
23246 host_os!$host_os$ac_delim
23247 target!$target$ac_delim
23248 target_cpu!$target_cpu$ac_delim
23249 target_vendor!$target_vendor$ac_delim
23250 target_os!$target_os$ac_delim
23251 OS!$OS$ac_delim
23252 HOST_OS!$HOST_OS$ac_delim
23253 TARGET_OS!$TARGET_OS$ac_delim
23254 LINKALL!$LINKALL$ac_delim
23255 NOLINKALL!$NOLINKALL$ac_delim
23256 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23257 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23258 ARCH!$ARCH$ac_delim
23259 ENDIAN!$ENDIAN$ac_delim
23260 CC!$CC$ac_delim
23261 CFLAGS!$CFLAGS$ac_delim
23262 LDFLAGS!$LDFLAGS$ac_delim
23263 CPPFLAGS!$CPPFLAGS$ac_delim
23264 ac_ct_CC!$ac_ct_CC$ac_delim
23265 EXEEXT!$EXEEXT$ac_delim
23266 OBJEXT!$OBJEXT$ac_delim
23267 CPP!$CPP$ac_delim
23268 GREP!$GREP$ac_delim
23269 EGREP!$EGREP$ac_delim
23270 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23271 BUILD_CC!$BUILD_CC$ac_delim
23272 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23273 BUILD_CXX!$BUILD_CXX$ac_delim
23274 CVSBUILD!$CVSBUILD$ac_delim
23275 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23276 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23277 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23278 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23279 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23280 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23281 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23282 JIT!$JIT$ac_delim
23283 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23284 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23285 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23286 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23287 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23288 ENABLE_PIC!$ENABLE_PIC$ac_delim
23289 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23290 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23291 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23292 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23293 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23294 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23295 _ACEOF
23297 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23298 break
23299 elif $ac_last_try; then
23300 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23301 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23302 { (exit 1); exit 1; }; }
23303 else
23304 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23306 done
23308 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23309 if test -n "$ac_eof"; then
23310 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23311 ac_eof=`expr $ac_eof + 1`
23314 cat >>$CONFIG_STATUS <<_ACEOF
23315 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23316 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23317 _ACEOF
23318 sed '
23319 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23320 s/^/s,@/; s/!/@,|#_!!_#|/
23323 s/'"$ac_delim"'$/,g/; t
23324 s/$/\\/; p
23325 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23326 ' >>$CONFIG_STATUS <conf$$subs.sed
23327 rm -f conf$$subs.sed
23328 cat >>$CONFIG_STATUS <<_ACEOF
23329 CEOF$ac_eof
23330 _ACEOF
23333 ac_delim='%!_!# '
23334 for ac_last_try in false false false false false :; do
23335 cat >conf$$subs.sed <<_ACEOF
23336 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23337 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23338 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23339 CLANGPATH!$CLANGPATH$ac_delim
23340 CLANGXXPATH!$CLANGXXPATH$ac_delim
23341 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23342 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23343 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23344 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23345 CXX!$CXX$ac_delim
23346 CXXFLAGS!$CXXFLAGS$ac_delim
23347 ac_ct_CXX!$ac_ct_CXX$ac_delim
23348 NM!$NM$ac_delim
23349 ifGNUmake!$ifGNUmake$ac_delim
23350 LN_S!$LN_S$ac_delim
23351 CMP!$CMP$ac_delim
23352 CP!$CP$ac_delim
23353 DATE!$DATE$ac_delim
23354 FIND!$FIND$ac_delim
23355 MKDIR!$MKDIR$ac_delim
23356 MV!$MV$ac_delim
23357 RANLIB!$RANLIB$ac_delim
23358 AR!$AR$ac_delim
23359 RM!$RM$ac_delim
23360 SED!$SED$ac_delim
23361 TAR!$TAR$ac_delim
23362 BINPWD!$BINPWD$ac_delim
23363 GRAPHVIZ!$GRAPHVIZ$ac_delim
23364 DOT!$DOT$ac_delim
23365 FDP!$FDP$ac_delim
23366 NEATO!$NEATO$ac_delim
23367 TWOPI!$TWOPI$ac_delim
23368 CIRCO!$CIRCO$ac_delim
23369 GV!$GV$ac_delim
23370 DOTTY!$DOTTY$ac_delim
23371 XDOT_PY!$XDOT_PY$ac_delim
23372 PERL!$PERL$ac_delim
23373 HAVE_PERL!$HAVE_PERL$ac_delim
23374 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23375 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23376 INSTALL_DATA!$INSTALL_DATA$ac_delim
23377 BZIP2!$BZIP2$ac_delim
23378 CAT!$CAT$ac_delim
23379 DOXYGEN!$DOXYGEN$ac_delim
23380 GROFF!$GROFF$ac_delim
23381 GZIPBIN!$GZIPBIN$ac_delim
23382 POD2HTML!$POD2HTML$ac_delim
23383 POD2MAN!$POD2MAN$ac_delim
23384 PDFROFF!$PDFROFF$ac_delim
23385 RUNTEST!$RUNTEST$ac_delim
23386 TCLSH!$TCLSH$ac_delim
23387 ZIP!$ZIP$ac_delim
23388 OCAMLC!$OCAMLC$ac_delim
23389 OCAMLOPT!$OCAMLOPT$ac_delim
23390 OCAMLDEP!$OCAMLDEP$ac_delim
23391 OCAMLDOC!$OCAMLDOC$ac_delim
23392 GAS!$GAS$ac_delim
23393 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23394 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23395 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23396 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23397 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23398 LIBADD_DL!$LIBADD_DL$ac_delim
23399 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23400 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23401 LLVMGCC!$LLVMGCC$ac_delim
23402 LLVMGXX!$LLVMGXX$ac_delim
23403 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23404 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23405 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23406 USE_UDIS86!$USE_UDIS86$ac_delim
23407 USE_OPROFILE!$USE_OPROFILE$ac_delim
23408 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23409 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23410 MMAP_FILE!$MMAP_FILE$ac_delim
23411 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23412 LLVMCC1!$LLVMCC1$ac_delim
23413 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23414 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23415 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23416 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23417 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23418 SHLIBEXT!$SHLIBEXT$ac_delim
23419 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23420 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23421 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23422 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23423 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23424 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23425 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23426 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23427 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23428 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23429 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23430 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23431 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23432 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23433 _ACEOF
23435 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23436 break
23437 elif $ac_last_try; then
23438 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23439 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23440 { (exit 1); exit 1; }; }
23441 else
23442 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23444 done
23446 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23447 if test -n "$ac_eof"; then
23448 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23449 ac_eof=`expr $ac_eof + 1`
23452 cat >>$CONFIG_STATUS <<_ACEOF
23453 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23454 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23455 _ACEOF
23456 sed '
23457 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23458 s/^/s,@/; s/!/@,|#_!!_#|/
23461 s/'"$ac_delim"'$/,g/; t
23462 s/$/\\/; p
23463 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23464 ' >>$CONFIG_STATUS <conf$$subs.sed
23465 rm -f conf$$subs.sed
23466 cat >>$CONFIG_STATUS <<_ACEOF
23467 CEOF$ac_eof
23468 _ACEOF
23471 ac_delim='%!_!# '
23472 for ac_last_try in false false false false false :; do
23473 cat >conf$$subs.sed <<_ACEOF
23474 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23475 RPATH!$RPATH$ac_delim
23476 RDYNAMIC!$RDYNAMIC$ac_delim
23477 LIBOBJS!$LIBOBJS$ac_delim
23478 LTLIBOBJS!$LTLIBOBJS$ac_delim
23479 _ACEOF
23481 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23482 break
23483 elif $ac_last_try; then
23484 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23485 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23486 { (exit 1); exit 1; }; }
23487 else
23488 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23490 done
23492 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23493 if test -n "$ac_eof"; then
23494 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23495 ac_eof=`expr $ac_eof + 1`
23498 cat >>$CONFIG_STATUS <<_ACEOF
23499 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23500 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23501 _ACEOF
23502 sed '
23503 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23504 s/^/s,@/; s/!/@,|#_!!_#|/
23507 s/'"$ac_delim"'$/,g/; t
23508 s/$/\\/; p
23509 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23510 ' >>$CONFIG_STATUS <conf$$subs.sed
23511 rm -f conf$$subs.sed
23512 cat >>$CONFIG_STATUS <<_ACEOF
23513 :end
23514 s/|#_!!_#|//g
23515 CEOF$ac_eof
23516 _ACEOF
23519 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23520 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23521 # trailing colons and then remove the whole line if VPATH becomes empty
23522 # (actually we leave an empty line to preserve line numbers).
23523 if test "x$srcdir" = x.; then
23524 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23525 s/:*\$(srcdir):*/:/
23526 s/:*\${srcdir}:*/:/
23527 s/:*@srcdir@:*/:/
23528 s/^\([^=]*=[ ]*\):*/\1/
23529 s/:*$//
23530 s/^[^=]*=[ ]*$//
23534 cat >>$CONFIG_STATUS <<\_ACEOF
23535 fi # test -n "$CONFIG_FILES"
23538 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23540 case $ac_tag in
23541 :[FHLC]) ac_mode=$ac_tag; continue;;
23542 esac
23543 case $ac_mode$ac_tag in
23544 :[FHL]*:*);;
23545 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23546 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23547 { (exit 1); exit 1; }; };;
23548 :[FH]-) ac_tag=-:-;;
23549 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23550 esac
23551 ac_save_IFS=$IFS
23552 IFS=:
23553 set x $ac_tag
23554 IFS=$ac_save_IFS
23555 shift
23556 ac_file=$1
23557 shift
23559 case $ac_mode in
23560 :L) ac_source=$1;;
23561 :[FH])
23562 ac_file_inputs=
23563 for ac_f
23565 case $ac_f in
23566 -) ac_f="$tmp/stdin";;
23567 *) # Look for the file first in the build tree, then in the source tree
23568 # (if the path is not absolute). The absolute path cannot be DOS-style,
23569 # because $ac_f cannot contain `:'.
23570 test -f "$ac_f" ||
23571 case $ac_f in
23572 [\\/$]*) false;;
23573 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23574 esac ||
23575 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23576 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23577 { (exit 1); exit 1; }; };;
23578 esac
23579 ac_file_inputs="$ac_file_inputs $ac_f"
23580 done
23582 # Let's still pretend it is `configure' which instantiates (i.e., don't
23583 # use $as_me), people would be surprised to read:
23584 # /* config.h. Generated by config.status. */
23585 configure_input="Generated from "`IFS=:
23586 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23587 if test x"$ac_file" != x-; then
23588 configure_input="$ac_file. $configure_input"
23589 { echo "$as_me:$LINENO: creating $ac_file" >&5
23590 echo "$as_me: creating $ac_file" >&6;}
23593 case $ac_tag in
23594 *:-:* | *:-) cat >"$tmp/stdin";;
23595 esac
23597 esac
23599 ac_dir=`$as_dirname -- "$ac_file" ||
23600 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23601 X"$ac_file" : 'X\(//\)[^/]' \| \
23602 X"$ac_file" : 'X\(//\)$' \| \
23603 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23604 echo X"$ac_file" |
23605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23606 s//\1/
23609 /^X\(\/\/\)[^/].*/{
23610 s//\1/
23613 /^X\(\/\/\)$/{
23614 s//\1/
23617 /^X\(\/\).*/{
23618 s//\1/
23621 s/.*/./; q'`
23622 { as_dir="$ac_dir"
23623 case $as_dir in #(
23624 -*) as_dir=./$as_dir;;
23625 esac
23626 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23627 as_dirs=
23628 while :; do
23629 case $as_dir in #(
23630 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23631 *) as_qdir=$as_dir;;
23632 esac
23633 as_dirs="'$as_qdir' $as_dirs"
23634 as_dir=`$as_dirname -- "$as_dir" ||
23635 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23636 X"$as_dir" : 'X\(//\)[^/]' \| \
23637 X"$as_dir" : 'X\(//\)$' \| \
23638 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23639 echo X"$as_dir" |
23640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23641 s//\1/
23644 /^X\(\/\/\)[^/].*/{
23645 s//\1/
23648 /^X\(\/\/\)$/{
23649 s//\1/
23652 /^X\(\/\).*/{
23653 s//\1/
23656 s/.*/./; q'`
23657 test -d "$as_dir" && break
23658 done
23659 test -z "$as_dirs" || eval "mkdir $as_dirs"
23660 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23661 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23662 { (exit 1); exit 1; }; }; }
23663 ac_builddir=.
23665 case "$ac_dir" in
23666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23668 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23669 # A ".." for each directory in $ac_dir_suffix.
23670 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23671 case $ac_top_builddir_sub in
23672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23674 esac ;;
23675 esac
23676 ac_abs_top_builddir=$ac_pwd
23677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23678 # for backward compatibility:
23679 ac_top_builddir=$ac_top_build_prefix
23681 case $srcdir in
23682 .) # We are building in place.
23683 ac_srcdir=.
23684 ac_top_srcdir=$ac_top_builddir_sub
23685 ac_abs_top_srcdir=$ac_pwd ;;
23686 [\\/]* | ?:[\\/]* ) # Absolute name.
23687 ac_srcdir=$srcdir$ac_dir_suffix;
23688 ac_top_srcdir=$srcdir
23689 ac_abs_top_srcdir=$srcdir ;;
23690 *) # Relative name.
23691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23692 ac_top_srcdir=$ac_top_build_prefix$srcdir
23693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23694 esac
23695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23698 case $ac_mode in
23701 # CONFIG_FILE
23704 case $INSTALL in
23705 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23706 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23707 esac
23708 _ACEOF
23710 cat >>$CONFIG_STATUS <<\_ACEOF
23711 # If the template does not know about datarootdir, expand it.
23712 # FIXME: This hack should be removed a few years after 2.60.
23713 ac_datarootdir_hack=; ac_datarootdir_seen=
23715 case `sed -n '/datarootdir/ {
23719 /@datadir@/p
23720 /@docdir@/p
23721 /@infodir@/p
23722 /@localedir@/p
23723 /@mandir@/p
23724 ' $ac_file_inputs` in
23725 *datarootdir*) ac_datarootdir_seen=yes;;
23726 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23727 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23728 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23729 _ACEOF
23730 cat >>$CONFIG_STATUS <<_ACEOF
23731 ac_datarootdir_hack='
23732 s&@datadir@&$datadir&g
23733 s&@docdir@&$docdir&g
23734 s&@infodir@&$infodir&g
23735 s&@localedir@&$localedir&g
23736 s&@mandir@&$mandir&g
23737 s&\\\${datarootdir}&$datarootdir&g' ;;
23738 esac
23739 _ACEOF
23741 # Neutralize VPATH when `$srcdir' = `.'.
23742 # Shell code in configure.ac might set extrasub.
23743 # FIXME: do we really want to maintain this feature?
23744 cat >>$CONFIG_STATUS <<_ACEOF
23745 sed "$ac_vpsub
23746 $extrasub
23747 _ACEOF
23748 cat >>$CONFIG_STATUS <<\_ACEOF
23750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23751 s&@configure_input@&$configure_input&;t t
23752 s&@top_builddir@&$ac_top_builddir_sub&;t t
23753 s&@srcdir@&$ac_srcdir&;t t
23754 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23755 s&@top_srcdir@&$ac_top_srcdir&;t t
23756 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23757 s&@builddir@&$ac_builddir&;t t
23758 s&@abs_builddir@&$ac_abs_builddir&;t t
23759 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23760 s&@INSTALL@&$ac_INSTALL&;t t
23761 $ac_datarootdir_hack
23762 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23764 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23765 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23766 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23767 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23768 which seems to be undefined. Please make sure it is defined." >&5
23769 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23770 which seems to be undefined. Please make sure it is defined." >&2;}
23772 rm -f "$tmp/stdin"
23773 case $ac_file in
23774 -) cat "$tmp/out"; rm -f "$tmp/out";;
23775 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23776 esac
23780 # CONFIG_HEADER
23782 _ACEOF
23784 # Transform confdefs.h into a sed script `conftest.defines', that
23785 # substitutes the proper values into config.h.in to produce config.h.
23786 rm -f conftest.defines conftest.tail
23787 # First, append a space to every undef/define line, to ease matching.
23788 echo 's/$/ /' >conftest.defines
23789 # Then, protect against being on the right side of a sed subst, or in
23790 # an unquoted here document, in config.status. If some macros were
23791 # called several times there might be several #defines for the same
23792 # symbol, which is useless. But do not sort them, since the last
23793 # AC_DEFINE must be honored.
23794 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23795 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23796 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23797 # PARAMS is the parameter list in the macro definition--in most cases, it's
23798 # just an empty string.
23799 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23800 ac_dB='\\)[ (].*,\\1define\\2'
23801 ac_dC=' '
23802 ac_dD=' ,'
23804 uniq confdefs.h |
23805 sed -n '
23806 t rset
23807 :rset
23808 s/^[ ]*#[ ]*define[ ][ ]*//
23809 t ok
23812 s/[\\&,]/\\&/g
23813 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23814 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23815 ' >>conftest.defines
23817 # Remove the space that was appended to ease matching.
23818 # Then replace #undef with comments. This is necessary, for
23819 # example, in the case of _POSIX_SOURCE, which is predefined and required
23820 # on some systems where configure will not decide to define it.
23821 # (The regexp can be short, since the line contains either #define or #undef.)
23822 echo 's/ $//
23823 s,^[ #]*u.*,/* & */,' >>conftest.defines
23825 # Break up conftest.defines:
23826 ac_max_sed_lines=50
23828 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23829 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23830 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23831 # et cetera.
23832 ac_in='$ac_file_inputs'
23833 ac_out='"$tmp/out1"'
23834 ac_nxt='"$tmp/out2"'
23836 while :
23838 # Write a here document:
23839 cat >>$CONFIG_STATUS <<_ACEOF
23840 # First, check the format of the line:
23841 cat >"\$tmp/defines.sed" <<\\CEOF
23842 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23843 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23845 :def
23846 _ACEOF
23847 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23848 echo 'CEOF
23849 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23850 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23851 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23852 grep . conftest.tail >/dev/null || break
23853 rm -f conftest.defines
23854 mv conftest.tail conftest.defines
23855 done
23856 rm -f conftest.defines conftest.tail
23858 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23859 cat >>$CONFIG_STATUS <<\_ACEOF
23860 if test x"$ac_file" != x-; then
23861 echo "/* $configure_input */" >"$tmp/config.h"
23862 cat "$ac_result" >>"$tmp/config.h"
23863 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23864 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23865 echo "$as_me: $ac_file is unchanged" >&6;}
23866 else
23867 rm -f $ac_file
23868 mv "$tmp/config.h" $ac_file
23870 else
23871 echo "/* $configure_input */"
23872 cat "$ac_result"
23874 rm -f "$tmp/out12"
23877 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23878 echo "$as_me: executing $ac_file commands" >&6;}
23880 esac
23883 case $ac_file$ac_mode in
23884 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23885 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23886 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23887 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23888 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23889 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23890 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23891 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23892 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23893 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23894 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23895 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23896 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23897 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23898 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23899 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23900 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23901 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23902 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23903 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23904 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23905 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23906 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23907 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23908 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23909 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23911 esac
23912 done # for ac_tag
23915 { (exit 0); exit 0; }
23916 _ACEOF
23917 chmod +x $CONFIG_STATUS
23918 ac_clean_files=$ac_clean_files_save
23921 # configure is writing to config.log, and then calls config.status.
23922 # config.status does its own redirection, appending to config.log.
23923 # Unfortunately, on DOS this fails, as config.log is still kept open
23924 # by configure, so config.status won't be able to write to it; its
23925 # output is simply discarded. So we exec the FD to /dev/null,
23926 # effectively closing config.log, so it can be properly (re)opened and
23927 # appended to by config.status. When coming back to configure, we
23928 # need to make the FD available again.
23929 if test "$no_create" != yes; then
23930 ac_cs_success=:
23931 ac_config_status_args=
23932 test "$silent" = yes &&
23933 ac_config_status_args="$ac_config_status_args --quiet"
23934 exec 5>/dev/null
23935 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23936 exec 5>>config.log
23937 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23938 # would make configure fail if this is the last instruction.
23939 $ac_cs_success || { (exit 1); exit 1; }
23943 # CONFIG_SUBDIRS section.
23945 if test "$no_recursion" != yes; then
23947 # Remove --cache-file and --srcdir arguments so they do not pile up.
23948 ac_sub_configure_args=
23949 ac_prev=
23950 eval "set x $ac_configure_args"
23951 shift
23952 for ac_arg
23954 if test -n "$ac_prev"; then
23955 ac_prev=
23956 continue
23958 case $ac_arg in
23959 -cache-file | --cache-file | --cache-fil | --cache-fi \
23960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23961 ac_prev=cache_file ;;
23962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23964 | --c=*)
23966 --config-cache | -C)
23968 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23969 ac_prev=srcdir ;;
23970 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23973 ac_prev=prefix ;;
23974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23977 case $ac_arg in
23978 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23979 esac
23980 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23981 esac
23982 done
23984 # Always prepend --prefix to ensure using the same prefix
23985 # in subdir configurations.
23986 ac_arg="--prefix=$prefix"
23987 case $ac_arg in
23988 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23989 esac
23990 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23992 ac_popdir=`pwd`
23993 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23995 # Do not complain, so a configure script can configure whichever
23996 # parts of a large source tree are present.
23997 test -d "$srcdir/$ac_dir" || continue
23999 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24000 echo "$as_me:$LINENO: $ac_msg" >&5
24001 echo "$ac_msg" >&6
24002 { as_dir="$ac_dir"
24003 case $as_dir in #(
24004 -*) as_dir=./$as_dir;;
24005 esac
24006 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24007 as_dirs=
24008 while :; do
24009 case $as_dir in #(
24010 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24011 *) as_qdir=$as_dir;;
24012 esac
24013 as_dirs="'$as_qdir' $as_dirs"
24014 as_dir=`$as_dirname -- "$as_dir" ||
24015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24016 X"$as_dir" : 'X\(//\)[^/]' \| \
24017 X"$as_dir" : 'X\(//\)$' \| \
24018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24019 echo X"$as_dir" |
24020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24021 s//\1/
24024 /^X\(\/\/\)[^/].*/{
24025 s//\1/
24028 /^X\(\/\/\)$/{
24029 s//\1/
24032 /^X\(\/\).*/{
24033 s//\1/
24036 s/.*/./; q'`
24037 test -d "$as_dir" && break
24038 done
24039 test -z "$as_dirs" || eval "mkdir $as_dirs"
24040 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24041 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24042 { (exit 1); exit 1; }; }; }
24043 ac_builddir=.
24045 case "$ac_dir" in
24046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24049 # A ".." for each directory in $ac_dir_suffix.
24050 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24051 case $ac_top_builddir_sub in
24052 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24053 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24054 esac ;;
24055 esac
24056 ac_abs_top_builddir=$ac_pwd
24057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24058 # for backward compatibility:
24059 ac_top_builddir=$ac_top_build_prefix
24061 case $srcdir in
24062 .) # We are building in place.
24063 ac_srcdir=.
24064 ac_top_srcdir=$ac_top_builddir_sub
24065 ac_abs_top_srcdir=$ac_pwd ;;
24066 [\\/]* | ?:[\\/]* ) # Absolute name.
24067 ac_srcdir=$srcdir$ac_dir_suffix;
24068 ac_top_srcdir=$srcdir
24069 ac_abs_top_srcdir=$srcdir ;;
24070 *) # Relative name.
24071 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24072 ac_top_srcdir=$ac_top_build_prefix$srcdir
24073 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24074 esac
24075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24078 cd "$ac_dir"
24080 # Check for guested configure; otherwise get Cygnus style configure.
24081 if test -f "$ac_srcdir/configure.gnu"; then
24082 ac_sub_configure=$ac_srcdir/configure.gnu
24083 elif test -f "$ac_srcdir/configure"; then
24084 ac_sub_configure=$ac_srcdir/configure
24085 elif test -f "$ac_srcdir/configure.in"; then
24086 # This should be Cygnus configure.
24087 ac_sub_configure=$ac_aux_dir/configure
24088 else
24089 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24090 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24091 ac_sub_configure=
24094 # The recursion is here.
24095 if test -n "$ac_sub_configure"; then
24096 # Make the cache file name correct relative to the subdirectory.
24097 case $cache_file in
24098 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24099 *) # Relative name.
24100 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24101 esac
24103 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24104 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24105 # The eval makes quoting arguments work.
24106 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24107 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24108 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24109 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24110 { (exit 1); exit 1; }; }
24113 cd "$ac_popdir"
24114 done