eliminate the Type::getDescription() method, using "<<" instead. This
[llvm/stm8.git] / configure
blob496854d4bbaaf1b15862f715a80925b065f46422
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
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-2011 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='3.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
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 EXTRA_LD_OPTIONS
711 BINUTILS_INCDIR
713 CXXFLAGS
714 ac_ct_CXX
716 ifGNUmake
717 LN_S
720 DATE
721 FIND
722 MKDIR
724 RANLIB
729 BINPWD
730 GRAPHVIZ
733 NEATO
734 TWOPI
735 CIRCO
737 DOTTY
738 XDOT_PY
739 PERL
740 HAVE_PERL
741 INSTALL_PROGRAM
742 INSTALL_SCRIPT
743 INSTALL_DATA
744 BZIP2
746 DOXYGEN
747 GROFF
748 GZIPBIN
749 POD2HTML
750 POD2MAN
751 PDFROFF
752 RUNTEST
753 TCLSH
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
760 HAVE_LINK_VERSION_SCRIPT
761 INSTALL_LTDL_TRUE
762 INSTALL_LTDL_FALSE
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
765 LIBADD_DL
766 LLVMGCCCOMMAND
767 LLVMGXXCOMMAND
768 LLVMGCC
769 LLVMGXX
770 LLVMCC_OPTION
771 NO_VARIADIC_MACROS
772 NO_MISSING_FIELD_INITIALIZERS
773 USE_UDIS86
774 USE_OPROFILE
775 HAVE_PTHREAD
776 HUGE_VAL_SANITY
777 MMAP_FILE
778 LLVMCC_EMITIR_FLAG
779 LLVMCC1
780 LLVMCC1PLUS
781 LLVMGCCDIR
782 LLVMGCC_LANGS
783 LLVMGCC_DRAGONEGG
784 LLVMCC_DISABLEOPT_FLAGS
785 SHLIBEXT
786 SHLIBPATH_VAR
787 LLVM_PREFIX
788 LLVM_BINDIR
789 LLVM_LIBDIR
790 LLVM_DATADIR
791 LLVM_DOCSDIR
792 LLVM_ETCDIR
793 LLVM_INCLUDEDIR
794 LLVM_INFODIR
795 LLVM_MANDIR
796 LLVM_CONFIGTIME
797 BINDINGS_TO_BUILD
798 ALL_BINDINGS
799 OCAML_LIBDIR
800 ENABLE_VISIBILITY_INLINES_HIDDEN
801 RPATH
802 RDYNAMIC
803 LIBOBJS
804 LTLIBOBJS'
805 ac_subst_files=''
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
810 CFLAGS
811 LDFLAGS
812 CPPFLAGS
815 CXXFLAGS
816 CCC'
817 ac_subdirs_all='projects/llvm-gcc
818 projects/test-suite
819 projects/llvm-test
820 projects/poolalloc
821 projects/llvm-poolalloc
822 projects/sample
823 projects/privbracket
824 projects/llvm-stacker
825 projects/llvm-reopt
826 projects/llvm-java
827 projects/llvm-tv
828 projects/safecode
829 projects/llvm-kernel
830 tools/polly'
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
878 ac_prev=
879 ac_dashdash=
880 for ac_option
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
885 ac_prev=
886 continue
889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
898 ac_dashdash=yes ;;
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
917 --config-cache | -C)
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
951 -enable-* | --enable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1148 -with-* | --with-*)
1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 esac
1207 done
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1228 done
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 echo X"$0" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1282 /^X\(\/\/\)$/{
1283 s//\1/
1286 /^X\(\/\).*/{
1287 s//\1/
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1295 else
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1387 cat <<\_ACEOF
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393 _ACEOF
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
1399 esac
1400 cat <<\_ACEOF
1402 Optional Features:
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-polly Use polly if available (default is YES)
1406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1409 YES)
1410 --enable-expensive-checks
1411 Compile with expensive debug checks enabled (default
1412 is NO)
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
1417 --enable-jit Enable Just In Time Compiling (default is YES)
1418 --enable-docs Build documents (default is YES)
1419 --enable-doxygen Build doxygen documentation (default is NO)
1420 --enable-threads Use threads if available (default is YES)
1421 --enable-pthreads Use pthreads if available (default is YES)
1422 --enable-pic Build LLVM with Position Independent Code (default
1423 is YES)
1424 --enable-shared Build a shared library and link tools against it
1425 (default is NO)
1426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
1428 --enable-timestamps Enable embedding timestamp information in build
1429 (default is YES)
1430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434 (default=all)
1435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1436 %a (default is YES)
1437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
1439 --enable-libffi Check for the presence of libffi (default is NO)
1440 --enable-ltdl-install install libltdl
1442 Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1446 searches PATH)
1447 --with-llvmgcc Specify location of llvm-gcc driver (default
1448 searches PATH)
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1450 searches PATH)
1451 --with-clang Specify location of clang compiler (default is
1452 --with-built-clang)
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1454 (default=check)
1455 --with-optimize-option Select the compiler options to use for optimized
1456 builds
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 is stdlib)
1461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1463 resource files
1464 --with-c-include-dirs Colon separated list of directories clang will
1465 search for headers
1466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
1472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
1474 --with-tclinclude directory where tcl headers are
1475 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1476 clang, or none; default=check)
1477 --with-udis86=<path> Use udis86 external x86 disassembler library
1478 --with-oprofile=<prefix>
1479 Tell OProfile >= 0.9.4 how to symbolize JIT output
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CPP C preprocessor
1489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to <llvmbugs@cs.uiuc.edu>.
1496 _ACEOF
1497 ac_status=$?
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" || continue
1504 ac_builddir=.
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1522 case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555 cat <<\_ACEOF
1556 llvm configure 3.0svn
1557 generated by GNU Autoconf 2.60
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1564 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1565 _ACEOF
1566 exit
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1572 It was created by llvm $as_me 3.0svn, which was
1573 generated by GNU Autoconf 2.60. Invocation command line was
1575 $ $0 $@
1577 _ACEOF
1578 exec 5>>config.log
1580 cat <<_ASUNAME
1581 ## --------- ##
1582 ## Platform. ##
1583 ## --------- ##
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1602 _ASUNAME
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
1609 echo "PATH: $as_dir"
1610 done
1611 IFS=$as_save_IFS
1613 } >&5
1615 cat >&5 <<_ACEOF
1618 ## ----------- ##
1619 ## Core tests. ##
1620 ## ----------- ##
1622 _ACEOF
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_configure_args=
1631 ac_configure_args0=
1632 ac_configure_args1=
1633 ac_must_keep_next=false
1634 for ac_pass in 1 2
1636 for ac_arg
1638 case $ac_arg in
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1642 continue ;;
1643 *\'*)
1644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1645 esac
1646 case $ac_pass in
1647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650 if test $ac_must_keep_next = true; then
1651 ac_must_keep_next=false # Got value, back to normal.
1652 else
1653 case $ac_arg in
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660 esac
1662 -* ) ac_must_keep_next=true ;;
1663 esac
1665 ac_configure_args="$ac_configure_args '$ac_arg'"
1667 esac
1668 done
1669 done
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log. We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1681 echo
1683 cat <<\_ASBOX
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1687 _ASBOX
1688 echo
1689 # The following way of writing the cache mishandles newlines in values,
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1693 case $ac_val in #(
1694 *${as_nl}*)
1695 case $ac_var in #(
1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1698 esac
1699 case $ac_var in #(
1700 _ | IFS | as_nl) ;; #(
1701 *) $as_unset $ac_var ;;
1702 esac ;;
1703 esac
1704 done
1705 (set) 2>&1 |
1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
1708 sed -n \
1709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 ;; #(
1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1715 esac |
1716 sort
1718 echo
1720 cat <<\_ASBOX
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1724 _ASBOX
1725 echo
1726 for ac_var in $ac_subst_vars
1728 eval ac_val=\$$ac_var
1729 case $ac_val in
1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731 esac
1732 echo "$ac_var='\''$ac_val'\''"
1733 done | sort
1734 echo
1736 if test -n "$ac_subst_files"; then
1737 cat <<\_ASBOX
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1741 _ASBOX
1742 echo
1743 for ac_var in $ac_subst_files
1745 eval ac_val=\$$ac_var
1746 case $ac_val in
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 esac
1749 echo "$ac_var='\''$ac_val'\''"
1750 done | sort
1751 echo
1754 if test -s confdefs.h; then
1755 cat <<\_ASBOX
1756 ## ----------- ##
1757 ## confdefs.h. ##
1758 ## ----------- ##
1759 _ASBOX
1760 echo
1761 cat confdefs.h
1762 echo
1764 test "$ac_signal" != 0 &&
1765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
1767 } >&5
1768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1770 exit $exit_status
1772 for ac_signal in 1 2 13 15; do
1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 done
1775 ac_signal=0
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1780 # Predefined preprocessor variables.
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 _ACEOF
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 _ACEOF
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 _ACEOF
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 _ACEOF
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 _ACEOF
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1813 else
1814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
1817 shift
1818 for ac_site_file
1820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823 sed 's/^/| /' "$ac_site_file" >&5
1824 . "$ac_site_file"
1826 done
1828 if test -r "$cache_file"; then
1829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1834 case $cache_file in
1835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
1837 esac
1839 else
1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1842 >$cache_file
1845 # Check that the precious variables saved in the cache have kept the same
1846 # value.
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
1851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
1853 case $ac_old_set,$ac_new_set in
1854 set,)
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1858 ,set)
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1862 ,);;
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868 echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870 echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
1872 fi;;
1873 esac
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1876 case $ac_new_val in
1877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 *) ac_arg=$ac_var=$ac_new_val ;;
1879 esac
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883 esac
1885 done
1886 if $ac_cache_corrupted; then
1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
1918 ac_ext=c
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1934 ac_aux_dir=
1935 for ac_dir in autoconf "$srcdir"/autoconf; do
1936 if test -f "$ac_dir/install-sh"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 break
1940 elif test -f "$ac_dir/install.sh"; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 break
1944 elif test -f "$ac_dir/shtool"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 break
1949 done
1950 if test -z "$ac_aux_dir"; then
1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1966 if test ${srcdir} != "." ; then
1967 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970 { (exit 1); exit 1; }; }
1976 if test -d ${srcdir}/projects/llvm-gcc ; then
1977 subdirs="$subdirs projects/llvm-gcc"
1981 if test -d ${srcdir}/projects/test-suite ; then
1982 subdirs="$subdirs projects/test-suite"
1986 if test -d ${srcdir}/projects/llvm-test ; then
1987 subdirs="$subdirs projects/llvm-test"
1991 if test -d ${srcdir}/projects/poolalloc ; then
1992 subdirs="$subdirs projects/poolalloc"
1996 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1997 subdirs="$subdirs projects/llvm-poolalloc"
2001 for i in `ls ${srcdir}/projects`
2003 if test -d ${srcdir}/projects/${i} ; then
2004 case ${i} in
2005 sample) subdirs="$subdirs projects/sample"
2007 privbracket) subdirs="$subdirs projects/privbracket"
2009 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2011 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2013 llvm-java) subdirs="$subdirs projects/llvm-java"
2015 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2017 safecode) subdirs="$subdirs projects/safecode"
2019 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2021 llvm-gcc) ;;
2022 test-suite) ;;
2023 llvm-test) ;;
2024 poolalloc) ;;
2025 llvm-poolalloc) ;;
2027 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2028 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2030 esac
2032 done
2034 # Check whether --enable-polly was given.
2035 if test "${enable_polly+set}" = set; then
2036 enableval=$enable_polly;
2037 else
2038 enableval=default
2041 case "$enableval" in
2042 yes) ENABLE_POLLY=1
2044 no) ENABLE_POLLY=0
2046 default) ENABLE_POLLY=1
2048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2049 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2050 { (exit 1); exit 1; }; } ;;
2051 esac
2054 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2055 LLVM_HAS_POLLY=1
2057 subdirs="$subdirs tools/polly"
2062 # Make sure we can run config.sub.
2063 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2064 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066 { (exit 1); exit 1; }; }
2068 { echo "$as_me:$LINENO: checking build system type" >&5
2069 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2070 if test "${ac_cv_build+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 ac_build_alias=$build_alias
2074 test "x$ac_build_alias" = x &&
2075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2076 test "x$ac_build_alias" = x &&
2077 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079 { (exit 1); exit 1; }; }
2080 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
2086 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087 echo "${ECHO_T}$ac_cv_build" >&6; }
2088 case $ac_cv_build in
2089 *-*-*) ;;
2090 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091 echo "$as_me: error: invalid value of canonical build" >&2;}
2092 { (exit 1); exit 1; }; };;
2093 esac
2094 build=$ac_cv_build
2095 ac_save_IFS=$IFS; IFS='-'
2096 set x $ac_cv_build
2097 shift
2098 build_cpu=$1
2099 build_vendor=$2
2100 shift; shift
2101 # Remember, the first character of IFS is used to create $*,
2102 # except with old shells:
2103 build_os=$*
2104 IFS=$ac_save_IFS
2105 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2108 { echo "$as_me:$LINENO: checking host system type" >&5
2109 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2110 if test "${ac_cv_host+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 if test "x$host_alias" = x; then
2114 ac_cv_host=$ac_cv_build
2115 else
2116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2117 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119 { (exit 1); exit 1; }; }
2123 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124 echo "${ECHO_T}$ac_cv_host" >&6; }
2125 case $ac_cv_host in
2126 *-*-*) ;;
2127 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128 echo "$as_me: error: invalid value of canonical host" >&2;}
2129 { (exit 1); exit 1; }; };;
2130 esac
2131 host=$ac_cv_host
2132 ac_save_IFS=$IFS; IFS='-'
2133 set x $ac_cv_host
2134 shift
2135 host_cpu=$1
2136 host_vendor=$2
2137 shift; shift
2138 # Remember, the first character of IFS is used to create $*,
2139 # except with old shells:
2140 host_os=$*
2141 IFS=$ac_save_IFS
2142 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2145 { echo "$as_me:$LINENO: checking target system type" >&5
2146 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2147 if test "${ac_cv_target+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150 if test "x$target_alias" = x; then
2151 ac_cv_target=$ac_cv_host
2152 else
2153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2155 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
2160 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2161 echo "${ECHO_T}$ac_cv_target" >&6; }
2162 case $ac_cv_target in
2163 *-*-*) ;;
2164 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2165 echo "$as_me: error: invalid value of canonical target" >&2;}
2166 { (exit 1); exit 1; }; };;
2167 esac
2168 target=$ac_cv_target
2169 ac_save_IFS=$IFS; IFS='-'
2170 set x $ac_cv_target
2171 shift
2172 target_cpu=$1
2173 target_vendor=$2
2174 shift; shift
2175 # Remember, the first character of IFS is used to create $*,
2176 # except with old shells:
2177 target_os=$*
2178 IFS=$ac_save_IFS
2179 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2182 # The aliases save the names the user supplied, while $host etc.
2183 # will get canonicalized.
2184 test -n "$target_alias" &&
2185 test "$program_prefix$program_suffix$program_transform_name" = \
2186 NONENONEs,x,x, &&
2187 program_prefix=${target_alias}-
2189 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2190 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2191 if test "${llvm_cv_os_type+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194 case $host in
2195 *-*-aix*)
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="AIX"
2199 llvm_cv_platform_type="Unix" ;;
2200 *-*-irix*)
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="IRIX"
2204 llvm_cv_platform_type="Unix" ;;
2205 *-*-cygwin*)
2206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208 llvm_cv_os_type="Cygwin"
2209 llvm_cv_platform_type="Unix" ;;
2210 *-*-darwin*)
2211 llvm_cv_link_all_option="-Wl,-all_load"
2212 llvm_cv_no_link_all_option="-Wl,-noall_load"
2213 llvm_cv_os_type="Darwin"
2214 llvm_cv_platform_type="Unix" ;;
2215 *-*-minix*)
2216 llvm_cv_link_all_option="-Wl,-all_load"
2217 llvm_cv_no_link_all_option="-Wl,-noall_load"
2218 llvm_cv_os_type="Minix"
2219 llvm_cv_platform_type="Unix" ;;
2220 *-*-freebsd*)
2221 llvm_cv_link_all_option="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2223 llvm_cv_os_type="FreeBSD"
2224 llvm_cv_platform_type="Unix" ;;
2225 *-*-openbsd*)
2226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228 llvm_cv_os_type="OpenBSD"
2229 llvm_cv_platform_type="Unix" ;;
2230 *-*-netbsd*)
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="NetBSD"
2234 llvm_cv_platform_type="Unix" ;;
2235 *-*-dragonfly*)
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="DragonFly"
2239 llvm_cv_platform_type="Unix" ;;
2240 *-*-hpux*)
2241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243 llvm_cv_os_type="HP-UX"
2244 llvm_cv_platform_type="Unix" ;;
2245 *-*-interix*)
2246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248 llvm_cv_os_type="Interix"
2249 llvm_cv_platform_type="Unix" ;;
2250 *-*-linux*)
2251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253 llvm_cv_os_type="Linux"
2254 llvm_cv_platform_type="Unix" ;;
2255 *-*-solaris*)
2256 llvm_cv_link_all_option="-Wl,-z,allextract"
2257 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2258 llvm_cv_os_type="SunOS"
2259 llvm_cv_platform_type="Unix" ;;
2260 *-*-auroraux*)
2261 llvm_cv_link_all_option="-Wl,-z,allextract"
2262 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2263 llvm_cv_os_type="AuroraUX"
2264 llvm_cv_platform_type="Unix" ;;
2265 *-*-win32*)
2266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268 llvm_cv_os_type="Win32"
2269 llvm_cv_platform_type="Win32" ;;
2270 *-*-mingw*)
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="MingW"
2274 llvm_cv_platform_type="Win32" ;;
2275 *-*-haiku*)
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="Haiku"
2279 llvm_cv_platform_type="Unix" ;;
2280 *-unknown-eabi*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="Freestanding"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-unknown-elf*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="Freestanding"
2289 llvm_cv_platform_type="Unix" ;;
2291 llvm_cv_link_all_option=""
2292 llvm_cv_no_link_all_option=""
2293 llvm_cv_os_type="Unknown"
2294 llvm_cv_platform_type="Unknown" ;;
2295 esac
2297 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2298 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2300 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2301 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2302 if test "${llvm_cv_target_os_type+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305 case $target in
2306 *-*-aix*)
2307 llvm_cv_target_os_type="AIX" ;;
2308 *-*-irix*)
2309 llvm_cv_target_os_type="IRIX" ;;
2310 *-*-cygwin*)
2311 llvm_cv_target_os_type="Cygwin" ;;
2312 *-*-darwin*)
2313 llvm_cv_target_os_type="Darwin" ;;
2314 *-*-minix*)
2315 llvm_cv_target_os_type="Minix" ;;
2316 *-*-freebsd*)
2317 llvm_cv_target_os_type="FreeBSD" ;;
2318 *-*-openbsd*)
2319 llvm_cv_target_os_type="OpenBSD" ;;
2320 *-*-netbsd*)
2321 llvm_cv_target_os_type="NetBSD" ;;
2322 *-*-dragonfly*)
2323 llvm_cv_target_os_type="DragonFly" ;;
2324 *-*-hpux*)
2325 llvm_cv_target_os_type="HP-UX" ;;
2326 *-*-interix*)
2327 llvm_cv_target_os_type="Interix" ;;
2328 *-*-linux*)
2329 llvm_cv_target_os_type="Linux" ;;
2330 *-*-solaris*)
2331 llvm_cv_target_os_type="SunOS" ;;
2332 *-*-auroraux*)
2333 llvm_cv_target_os_type="AuroraUX" ;;
2334 *-*-win32*)
2335 llvm_cv_target_os_type="Win32" ;;
2336 *-*-mingw*)
2337 llvm_cv_target_os_type="MingW" ;;
2338 *-*-haiku*)
2339 llvm_cv_target_os_type="Haiku" ;;
2340 *-unknown-eabi*)
2341 llvm_cv_target_os_type="Freestanding" ;;
2343 llvm_cv_target_os_type="Unknown" ;;
2344 esac
2346 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2347 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2349 if test "$llvm_cv_os_type" = "Unknown" ; then
2350 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2351 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2352 { (exit 1); exit 1; }; }
2355 OS=$llvm_cv_os_type
2357 HOST_OS=$llvm_cv_os_type
2359 TARGET_OS=$llvm_cv_target_os_type
2362 LINKALL=$llvm_cv_link_all_option
2364 NOLINKALL=$llvm_cv_no_link_all_option
2367 case $llvm_cv_platform_type in
2368 Unix)
2370 cat >>confdefs.h <<\_ACEOF
2371 #define LLVM_ON_UNIX 1
2372 _ACEOF
2374 LLVM_ON_UNIX=1
2376 LLVM_ON_WIN32=0
2379 Win32)
2381 cat >>confdefs.h <<\_ACEOF
2382 #define LLVM_ON_WIN32 1
2383 _ACEOF
2385 LLVM_ON_UNIX=0
2387 LLVM_ON_WIN32=1
2390 esac
2392 { echo "$as_me:$LINENO: checking target architecture" >&5
2393 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2394 if test "${llvm_cv_target_arch+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 case $target in
2398 i?86-*) llvm_cv_target_arch="x86" ;;
2399 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2400 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2401 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2402 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2403 arm*-*) llvm_cv_target_arch="ARM" ;;
2404 mips-*) llvm_cv_target_arch="Mips" ;;
2405 xcore-*) llvm_cv_target_arch="XCore" ;;
2406 msp430-*) llvm_cv_target_arch="MSP430" ;;
2407 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2408 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2409 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2410 ptx-*) llvm_cv_target_arch="PTX" ;;
2411 *) llvm_cv_target_arch="Unknown" ;;
2412 esac
2414 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2415 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2417 if test "$llvm_cv_target_arch" = "Unknown" ; then
2418 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2419 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2422 # Determine the LLVM native architecture for the target
2423 case "$llvm_cv_target_arch" in
2424 x86) LLVM_NATIVE_ARCH="X86" ;;
2425 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2426 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2427 esac
2429 ARCH=$llvm_cv_target_arch
2432 ac_ext=c
2433 ac_cpp='$CPP $CPPFLAGS'
2434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2459 done
2460 done
2461 IFS=$as_save_IFS
2465 CC=$ac_cv_prog_CC
2466 if test -n "$CC"; then
2467 { echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6; }
2469 else
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2476 if test -z "$ac_cv_prog_CC"; then
2477 ac_ct_CC=$CC
2478 # Extract the first word of "gcc", so it can be a program name with args.
2479 set dummy gcc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 if test -n "$ac_ct_CC"; then
2486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_ac_ct_CC="gcc"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2499 done
2500 done
2501 IFS=$as_save_IFS
2505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2506 if test -n "$ac_ct_CC"; then
2507 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2508 echo "${ECHO_T}$ac_ct_CC" >&6; }
2509 else
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2514 if test "x$ac_ct_CC" = x; then
2515 CC=""
2516 else
2517 case $cross_compiling:$ac_tool_warned in
2518 yes:)
2519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&5
2522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet. If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2525 ac_tool_warned=yes ;;
2526 esac
2527 CC=$ac_ct_CC
2529 else
2530 CC="$ac_cv_prog_CC"
2533 if test -z "$CC"; then
2534 if test -n "$ac_tool_prefix"; then
2535 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2536 set dummy ${ac_tool_prefix}cc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_CC="${ac_tool_prefix}cc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2556 done
2557 done
2558 IFS=$as_save_IFS
2562 CC=$ac_cv_prog_CC
2563 if test -n "$CC"; then
2564 { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2566 else
2567 { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2574 if test -z "$CC"; then
2575 # Extract the first word of "cc", so it can be a program name with args.
2576 set dummy cc; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582 if test -n "$CC"; then
2583 ac_cv_prog_CC="$CC" # Let the user override the test.
2584 else
2585 ac_prog_rejected=no
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2594 ac_prog_rejected=yes
2595 continue
2597 ac_cv_prog_CC="cc"
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2601 done
2602 done
2603 IFS=$as_save_IFS
2605 if test $ac_prog_rejected = yes; then
2606 # We found a bogon in the path, so make sure we never use it.
2607 set dummy $ac_cv_prog_CC
2608 shift
2609 if test $# != 0; then
2610 # We chose a different compiler from the bogus one.
2611 # However, it has the same basename, so the bogon will be chosen
2612 # first if we set CC to just the basename; use the full file name.
2613 shift
2614 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2619 CC=$ac_cv_prog_CC
2620 if test -n "$CC"; then
2621 { echo "$as_me:$LINENO: result: $CC" >&5
2622 echo "${ECHO_T}$CC" >&6; }
2623 else
2624 { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2630 if test -z "$CC"; then
2631 if test -n "$ac_tool_prefix"; then
2632 for ac_prog in cl.exe
2634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_CC+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 if test -n "$CC"; then
2642 ac_cv_prog_CC="$CC" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2655 done
2656 done
2657 IFS=$as_save_IFS
2661 CC=$ac_cv_prog_CC
2662 if test -n "$CC"; then
2663 { echo "$as_me:$LINENO: result: $CC" >&5
2664 echo "${ECHO_T}$CC" >&6; }
2665 else
2666 { echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6; }
2671 test -n "$CC" && break
2672 done
2674 if test -z "$CC"; then
2675 ac_ct_CC=$CC
2676 for ac_prog in cl.exe
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_ac_ct_CC="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2699 done
2700 done
2701 IFS=$as_save_IFS
2705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706 if test -n "$ac_ct_CC"; then
2707 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2708 echo "${ECHO_T}$ac_ct_CC" >&6; }
2709 else
2710 { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2715 test -n "$ac_ct_CC" && break
2716 done
2718 if test "x$ac_ct_CC" = x; then
2719 CC=""
2720 else
2721 case $cross_compiling:$ac_tool_warned in
2722 yes:)
2723 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet. If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&5
2726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2727 whose name does not start with the host triplet. If you think this
2728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2729 ac_tool_warned=yes ;;
2730 esac
2731 CC=$ac_ct_CC
2738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&5
2740 echo "$as_me: error: no acceptable C compiler found in \$PATH
2741 See \`config.log' for more details." >&2;}
2742 { (exit 1); exit 1; }; }
2744 # Provide some information about the compiler.
2745 echo "$as_me:$LINENO: checking for C compiler version" >&5
2746 ac_compiler=`set X $ac_compile; echo $2`
2747 { (ac_try="$ac_compiler --version >&5"
2748 case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compiler --version >&5") 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }
2757 { (ac_try="$ac_compiler -v >&5"
2758 case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761 esac
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compiler -v >&5") 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
2767 { (ac_try="$ac_compiler -V >&5"
2768 case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compiler -V >&5") 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }
2778 cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h. */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2786 main ()
2790 return 0;
2792 _ACEOF
2793 ac_clean_files_save=$ac_clean_files
2794 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2795 # Try to create an executable without -o first, disregard a.out.
2796 # It will help us diagnose broken compilers, and finding out an intuition
2797 # of exeext.
2798 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2799 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2800 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2802 # List of possible output files, starting from the most likely.
2803 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2804 # only as a last resort. b.out is created by i960 compilers.
2805 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2807 # The IRIX 6 linker writes into existing files which may not be
2808 # executable, retaining their permissions. Remove them first so a
2809 # subsequent execution test works.
2810 ac_rmfiles=
2811 for ac_file in $ac_files
2813 case $ac_file in
2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2815 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2816 esac
2817 done
2818 rm -f $ac_rmfiles
2820 if { (ac_try="$ac_link_default"
2821 case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824 esac
2825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826 (eval "$ac_link_default") 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; then
2830 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2831 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2832 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2833 # so that the user can short-circuit this test for compilers unknown to
2834 # Autoconf.
2835 for ac_file in $ac_files
2837 test -f "$ac_file" || continue
2838 case $ac_file in
2839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2841 [ab].out )
2842 # We found the default executable, but exeext='' is most
2843 # certainly right.
2844 break;;
2845 *.* )
2846 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2847 then :; else
2848 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850 # We set ac_cv_exeext here because the later test for it is not
2851 # safe: cross compilers may not add the suffix if given an `-o'
2852 # argument, so we may need to know it at that point already.
2853 # Even if this section looks crufty: it has the advantage of
2854 # actually working.
2855 break;;
2857 break;;
2858 esac
2859 done
2860 test "$ac_cv_exeext" = no && ac_cv_exeext=
2862 else
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2866 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: C compiler cannot create executables
2869 See \`config.log' for more details." >&2;}
2870 { (exit 77); exit 77; }; }
2873 ac_exeext=$ac_cv_exeext
2874 { echo "$as_me:$LINENO: result: $ac_file" >&5
2875 echo "${ECHO_T}$ac_file" >&6; }
2877 # Check that the compiler produces executables we can run. If not, either
2878 # the compiler is broken, or we cross compile.
2879 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2880 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2881 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2882 # If not cross compiling, check that we can run a simple program.
2883 if test "$cross_compiling" != yes; then
2884 if { ac_try='./$ac_file'
2885 { (case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_try") 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 cross_compiling=no
2895 else
2896 if test "$cross_compiling" = maybe; then
2897 cross_compiling=yes
2898 else
2899 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2900 If you meant to cross compile, use \`--host'.
2901 See \`config.log' for more details." >&5
2902 echo "$as_me: error: cannot run C compiled programs.
2903 If you meant to cross compile, use \`--host'.
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2909 { echo "$as_me:$LINENO: result: yes" >&5
2910 echo "${ECHO_T}yes" >&6; }
2912 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2913 ac_clean_files=$ac_clean_files_save
2914 # Check that the compiler produces executables we can run. If not, either
2915 # the compiler is broken, or we cross compile.
2916 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2917 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2918 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2919 echo "${ECHO_T}$cross_compiling" >&6; }
2921 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2922 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2923 if { (ac_try="$ac_link"
2924 case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927 esac
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_link") 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; then
2933 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2934 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2935 # work properly (i.e., refer to `conftest.exe'), while it won't with
2936 # `rm'.
2937 for ac_file in conftest.exe conftest conftest.*; do
2938 test -f "$ac_file" || continue
2939 case $ac_file in
2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942 break;;
2943 * ) break;;
2944 esac
2945 done
2946 else
2947 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2948 See \`config.log' for more details." >&5
2949 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log' for more details." >&2;}
2951 { (exit 1); exit 1; }; }
2954 rm -f conftest$ac_cv_exeext
2955 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2956 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2958 rm -f conftest.$ac_ext
2959 EXEEXT=$ac_cv_exeext
2960 ac_exeext=$EXEEXT
2961 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2962 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2963 if test "${ac_cv_objext+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2974 main ()
2978 return 0;
2980 _ACEOF
2981 rm -f conftest.o conftest.obj
2982 if { (ac_try="$ac_compile"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
2992 for ac_file in conftest.o conftest.obj conftest.*; do
2993 test -f "$ac_file" || continue;
2994 case $ac_file in
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2996 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2997 break;;
2998 esac
2999 done
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3005 See \`config.log' for more details." >&5
3006 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3007 See \`config.log' for more details." >&2;}
3008 { (exit 1); exit 1; }; }
3011 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3013 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3014 echo "${ECHO_T}$ac_cv_objext" >&6; }
3015 OBJEXT=$ac_cv_objext
3016 ac_objext=$OBJEXT
3017 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3018 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3019 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3030 main ()
3032 #ifndef __GNUC__
3033 choke me
3034 #endif
3037 return 0;
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
3048 ac_status=$?
3049 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -f conftest.er1
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
3054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; } &&
3064 { ac_try='test -s conftest.$ac_objext'
3065 { (case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3074 ac_compiler_gnu=yes
3075 else
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 ac_compiler_gnu=no
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3086 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3087 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3088 GCC=`test $ac_compiler_gnu = yes && echo yes`
3089 ac_test_CFLAGS=${CFLAGS+set}
3090 ac_save_CFLAGS=$CFLAGS
3091 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3092 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3093 if test "${ac_cv_prog_cc_g+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096 ac_save_c_werror_flag=$ac_c_werror_flag
3097 ac_c_werror_flag=yes
3098 ac_cv_prog_cc_g=no
3099 CFLAGS="-g"
3100 cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h. */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3108 main ()
3112 return 0;
3114 _ACEOF
3115 rm -f conftest.$ac_objext
3116 if { (ac_try="$ac_compile"
3117 case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_compile") 2>conftest.er1
3123 ac_status=$?
3124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3130 { (case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_try") 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_cv_prog_cc_g=yes
3150 else
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 CFLAGS=""
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3163 main ()
3167 return 0;
3169 _ACEOF
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3172 case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
3184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3185 { (case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_try") 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3205 else
3206 echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3209 ac_c_werror_flag=$ac_save_c_werror_flag
3210 CFLAGS="-g"
3211 cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h. */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3219 main ()
3223 return 0;
3225 _ACEOF
3226 rm -f conftest.$ac_objext
3227 if { (ac_try="$ac_compile"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3241 { (case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_try") 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_prog_cc_g=yes
3261 else
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_c_werror_flag=$ac_save_c_werror_flag
3277 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3278 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3279 if test "$ac_test_CFLAGS" = set; then
3280 CFLAGS=$ac_save_CFLAGS
3281 elif test $ac_cv_prog_cc_g = yes; then
3282 if test "$GCC" = yes; then
3283 CFLAGS="-g -O2"
3284 else
3285 CFLAGS="-g"
3287 else
3288 if test "$GCC" = yes; then
3289 CFLAGS="-O2"
3290 else
3291 CFLAGS=
3294 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3295 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3296 if test "${ac_cv_prog_cc_c89+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299 ac_cv_prog_cc_c89=no
3300 ac_save_CC=$CC
3301 cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h. */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3307 #include <stdarg.h>
3308 #include <stdio.h>
3309 #include <sys/types.h>
3310 #include <sys/stat.h>
3311 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3312 struct buf { int x; };
3313 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3314 static char *e (p, i)
3315 char **p;
3316 int i;
3318 return p[i];
3320 static char *f (char * (*g) (char **, int), char **p, ...)
3322 char *s;
3323 va_list v;
3324 va_start (v,p);
3325 s = g (p, va_arg (v,int));
3326 va_end (v);
3327 return s;
3330 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3331 function prototypes and stuff, but not '\xHH' hex character constants.
3332 These don't provoke an error unfortunately, instead are silently treated
3333 as 'x'. The following induces an error, until -std is added to get
3334 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3335 array size at least. It's necessary to write '\x00'==0 to get something
3336 that's true only with -std. */
3337 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3339 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3340 inside strings and character constants. */
3341 #define FOO(x) 'x'
3342 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3344 int test (int i, double x);
3345 struct s1 {int (*f) (int a);};
3346 struct s2 {int (*f) (double a);};
3347 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3348 int argc;
3349 char **argv;
3351 main ()
3353 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3355 return 0;
3357 _ACEOF
3358 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3359 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3361 CC="$ac_save_CC $ac_arg"
3362 rm -f conftest.$ac_objext
3363 if { (ac_try="$ac_compile"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_compile") 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3377 { (case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_try") 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390 esac
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_try") 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 ac_cv_prog_cc_c89=$ac_arg
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3404 rm -f core conftest.err conftest.$ac_objext
3405 test "x$ac_cv_prog_cc_c89" != "xno" && break
3406 done
3407 rm -f conftest.$ac_ext
3408 CC=$ac_save_CC
3411 # AC_CACHE_VAL
3412 case "x$ac_cv_prog_cc_c89" in
3414 { echo "$as_me:$LINENO: result: none needed" >&5
3415 echo "${ECHO_T}none needed" >&6; } ;;
3416 xno)
3417 { echo "$as_me:$LINENO: result: unsupported" >&5
3418 echo "${ECHO_T}unsupported" >&6; } ;;
3420 CC="$CC $ac_cv_prog_cc_c89"
3421 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3422 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3423 esac
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 ac_ext=c
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3439 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3440 # On Suns, sometimes $CPP names a directory.
3441 if test -n "$CPP" && test -d "$CPP"; then
3442 CPP=
3444 if test -z "$CPP"; then
3445 if test "${ac_cv_prog_CPP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448 # Double quotes because CPP needs to be expanded
3449 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3451 ac_preproc_ok=false
3452 for ac_c_preproc_warn_flag in '' yes
3454 # Use a header file that comes with gcc, so configuring glibc
3455 # with a fresh cross-compiler works.
3456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457 # <limits.h> exists even on freestanding compilers.
3458 # On the NeXT, cc -E runs the code through the compiler's parser,
3459 # not just through cpp. "Syntax error" is here to catch this case.
3460 cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h. */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3466 #ifdef __STDC__
3467 # include <limits.h>
3468 #else
3469 # include <assert.h>
3470 #endif
3471 Syntax error
3472 _ACEOF
3473 if { (ac_try="$ac_cpp conftest.$ac_ext"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } >/dev/null; then
3486 if test -s conftest.err; then
3487 ac_cpp_err=$ac_c_preproc_warn_flag
3488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3489 else
3490 ac_cpp_err=
3492 else
3493 ac_cpp_err=yes
3495 if test -z "$ac_cpp_err"; then
3497 else
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Broken: fails on valid input.
3502 continue
3505 rm -f conftest.err conftest.$ac_ext
3507 # OK, works on sane cases. Now check whether nonexistent headers
3508 # can be detected and how.
3509 cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h. */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 #include <ac_nonexistent.h>
3516 _ACEOF
3517 if { (ac_try="$ac_cpp conftest.$ac_ext"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } >/dev/null; then
3530 if test -s conftest.err; then
3531 ac_cpp_err=$ac_c_preproc_warn_flag
3532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3533 else
3534 ac_cpp_err=
3536 else
3537 ac_cpp_err=yes
3539 if test -z "$ac_cpp_err"; then
3540 # Broken: success on invalid input.
3541 continue
3542 else
3543 echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3546 # Passes both tests.
3547 ac_preproc_ok=:
3548 break
3551 rm -f conftest.err conftest.$ac_ext
3553 done
3554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3555 rm -f conftest.err conftest.$ac_ext
3556 if $ac_preproc_ok; then
3557 break
3560 done
3561 ac_cv_prog_CPP=$CPP
3564 CPP=$ac_cv_prog_CPP
3565 else
3566 ac_cv_prog_CPP=$CPP
3568 { echo "$as_me:$LINENO: result: $CPP" >&5
3569 echo "${ECHO_T}$CPP" >&6; }
3570 ac_preproc_ok=false
3571 for ac_c_preproc_warn_flag in '' yes
3573 # Use a header file that comes with gcc, so configuring glibc
3574 # with a fresh cross-compiler works.
3575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3576 # <limits.h> exists even on freestanding compilers.
3577 # On the NeXT, cc -E runs the code through the compiler's parser,
3578 # not just through cpp. "Syntax error" is here to catch this case.
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 #ifdef __STDC__
3586 # include <limits.h>
3587 #else
3588 # include <assert.h>
3589 #endif
3590 Syntax error
3591 _ACEOF
3592 if { (ac_try="$ac_cpp conftest.$ac_ext"
3593 case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } >/dev/null; then
3605 if test -s conftest.err; then
3606 ac_cpp_err=$ac_c_preproc_warn_flag
3607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3608 else
3609 ac_cpp_err=
3611 else
3612 ac_cpp_err=yes
3614 if test -z "$ac_cpp_err"; then
3616 else
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 # Broken: fails on valid input.
3621 continue
3624 rm -f conftest.err conftest.$ac_ext
3626 # OK, works on sane cases. Now check whether nonexistent headers
3627 # can be detected and how.
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h. */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #include <ac_nonexistent.h>
3635 _ACEOF
3636 if { (ac_try="$ac_cpp conftest.$ac_ext"
3637 case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } >/dev/null; then
3649 if test -s conftest.err; then
3650 ac_cpp_err=$ac_c_preproc_warn_flag
3651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3652 else
3653 ac_cpp_err=
3655 else
3656 ac_cpp_err=yes
3658 if test -z "$ac_cpp_err"; then
3659 # Broken: success on invalid input.
3660 continue
3661 else
3662 echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3665 # Passes both tests.
3666 ac_preproc_ok=:
3667 break
3670 rm -f conftest.err conftest.$ac_ext
3672 done
3673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3674 rm -f conftest.err conftest.$ac_ext
3675 if $ac_preproc_ok; then
3677 else
3678 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log' for more details." >&5
3680 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3681 See \`config.log' for more details." >&2;}
3682 { (exit 1); exit 1; }; }
3685 ac_ext=c
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3693 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3694 if test "${ac_cv_path_GREP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697 # Extract the first word of "grep ggrep" to use in msg output
3698 if test -z "$GREP"; then
3699 set dummy grep ggrep; ac_prog_name=$2
3700 if test "${ac_cv_path_GREP+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703 ac_path_GREP_found=false
3704 # Loop through the user's path and test for each of PROGNAME-LIST
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_prog in grep ggrep; do
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3713 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3714 # Check for GNU ac_path_GREP and select it if it is found.
3715 # Check for GNU $ac_path_GREP
3716 case `"$ac_path_GREP" --version 2>&1` in
3717 *GNU*)
3718 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3720 ac_count=0
3721 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3722 while :
3724 cat "conftest.in" "conftest.in" >"conftest.tmp"
3725 mv "conftest.tmp" "conftest.in"
3726 cp "conftest.in" "conftest.nl"
3727 echo 'GREP' >> "conftest.nl"
3728 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3729 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3730 ac_count=`expr $ac_count + 1`
3731 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3732 # Best one so far, save it but keep looking for a better one
3733 ac_cv_path_GREP="$ac_path_GREP"
3734 ac_path_GREP_max=$ac_count
3736 # 10*(2^10) chars as input seems more than enough
3737 test $ac_count -gt 10 && break
3738 done
3739 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3740 esac
3743 $ac_path_GREP_found && break 3
3744 done
3745 done
3747 done
3748 IFS=$as_save_IFS
3753 GREP="$ac_cv_path_GREP"
3754 if test -z "$GREP"; then
3755 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3756 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3757 { (exit 1); exit 1; }; }
3760 else
3761 ac_cv_path_GREP=$GREP
3766 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3767 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3768 GREP="$ac_cv_path_GREP"
3771 { echo "$as_me:$LINENO: checking for egrep" >&5
3772 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3773 if test "${ac_cv_path_EGREP+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3777 then ac_cv_path_EGREP="$GREP -E"
3778 else
3779 # Extract the first word of "egrep" to use in msg output
3780 if test -z "$EGREP"; then
3781 set dummy egrep; ac_prog_name=$2
3782 if test "${ac_cv_path_EGREP+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785 ac_path_EGREP_found=false
3786 # Loop through the user's path and test for each of PROGNAME-LIST
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_prog in egrep; do
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3795 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3796 # Check for GNU ac_path_EGREP and select it if it is found.
3797 # Check for GNU $ac_path_EGREP
3798 case `"$ac_path_EGREP" --version 2>&1` in
3799 *GNU*)
3800 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3802 ac_count=0
3803 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3804 while :
3806 cat "conftest.in" "conftest.in" >"conftest.tmp"
3807 mv "conftest.tmp" "conftest.in"
3808 cp "conftest.in" "conftest.nl"
3809 echo 'EGREP' >> "conftest.nl"
3810 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3812 ac_count=`expr $ac_count + 1`
3813 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3814 # Best one so far, save it but keep looking for a better one
3815 ac_cv_path_EGREP="$ac_path_EGREP"
3816 ac_path_EGREP_max=$ac_count
3818 # 10*(2^10) chars as input seems more than enough
3819 test $ac_count -gt 10 && break
3820 done
3821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3822 esac
3825 $ac_path_EGREP_found && break 3
3826 done
3827 done
3829 done
3830 IFS=$as_save_IFS
3835 EGREP="$ac_cv_path_EGREP"
3836 if test -z "$EGREP"; then
3837 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3838 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3839 { (exit 1); exit 1; }; }
3842 else
3843 ac_cv_path_EGREP=$EGREP
3849 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3850 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3851 EGREP="$ac_cv_path_EGREP"
3854 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3855 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3856 if test "${ac_cv_header_stdc+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #include <stdlib.h>
3866 #include <stdarg.h>
3867 #include <string.h>
3868 #include <float.h>
3871 main ()
3875 return 0;
3877 _ACEOF
3878 rm -f conftest.$ac_objext
3879 if { (ac_try="$ac_compile"
3880 case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3883 esac
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_compile") 2>conftest.er1
3886 ac_status=$?
3887 grep -v '^ *+' conftest.er1 >conftest.err
3888 rm -f conftest.er1
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3893 { (case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3896 esac
3897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898 (eval "$ac_try") 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try='test -s conftest.$ac_objext'
3903 { (case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908 (eval "$ac_try") 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3912 ac_cv_header_stdc=yes
3913 else
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 ac_cv_header_stdc=no
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 if test $ac_cv_header_stdc = yes; then
3923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h. */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3930 #include <string.h>
3932 _ACEOF
3933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934 $EGREP "memchr" >/dev/null 2>&1; then
3936 else
3937 ac_cv_header_stdc=no
3939 rm -f conftest*
3943 if test $ac_cv_header_stdc = yes; then
3944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #include <stdlib.h>
3953 _ACEOF
3954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3955 $EGREP "free" >/dev/null 2>&1; then
3957 else
3958 ac_cv_header_stdc=no
3960 rm -f conftest*
3964 if test $ac_cv_header_stdc = yes; then
3965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3966 if test "$cross_compiling" = yes; then
3968 else
3969 cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h. */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3975 #include <ctype.h>
3976 #include <stdlib.h>
3977 #if ((' ' & 0x0FF) == 0x020)
3978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3980 #else
3981 # define ISLOWER(c) \
3982 (('a' <= (c) && (c) <= 'i') \
3983 || ('j' <= (c) && (c) <= 'r') \
3984 || ('s' <= (c) && (c) <= 'z'))
3985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3986 #endif
3988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3990 main ()
3992 int i;
3993 for (i = 0; i < 256; i++)
3994 if (XOR (islower (i), ISLOWER (i))
3995 || toupper (i) != TOUPPER (i))
3996 return 2;
3997 return 0;
3999 _ACEOF
4000 rm -f conftest$ac_exeext
4001 if { (ac_try="$ac_link"
4002 case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005 esac
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_link") 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4011 { (case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014 esac
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_try") 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4021 else
4022 echo "$as_me: program exited with status $ac_status" >&5
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4026 ( exit $ac_status )
4027 ac_cv_header_stdc=no
4029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4035 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4036 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4037 if test $ac_cv_header_stdc = yes; then
4039 cat >>confdefs.h <<\_ACEOF
4040 #define STDC_HEADERS 1
4041 _ACEOF
4045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4056 inttypes.h stdint.h unistd.h
4058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064 cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h. */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 $ac_includes_default
4072 #include <$ac_header>
4073 _ACEOF
4074 rm -f conftest.$ac_objext
4075 if { (ac_try="$ac_compile"
4076 case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079 esac
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_compile") 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } &&
4088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4089 { (case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_try") 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102 esac
4103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104 (eval "$ac_try") 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4108 eval "$as_ac_Header=yes"
4109 else
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 eval "$as_ac_Header=no"
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 ac_res=`eval echo '${'$as_ac_Header'}'`
4119 { echo "$as_me:$LINENO: result: $ac_res" >&5
4120 echo "${ECHO_T}$ac_res" >&6; }
4121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4122 cat >>confdefs.h <<_ACEOF
4123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4124 _ACEOF
4128 done
4131 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4132 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4133 if test "${ac_cv_c_bigendian+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 # See if sys/param.h defines the BYTE_ORDER macro.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <sys/types.h>
4144 #include <sys/param.h>
4147 main ()
4149 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4150 bogus endian macros
4151 #endif
4154 return 0;
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (ac_try="$ac_compile"
4159 case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_compile") 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4172 { (case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175 esac
4176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177 (eval "$ac_try") 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 # It does; now see whether it defined to BIG_ENDIAN or not.
4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 #include <sys/types.h>
4199 #include <sys/param.h>
4202 main ()
4204 #if BYTE_ORDER != BIG_ENDIAN
4205 not big endian
4206 #endif
4209 return 0;
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240 esac
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_try") 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_cv_c_bigendian=yes
4247 else
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 ac_cv_c_bigendian=no
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 else
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4259 # It does not; compile a test program.
4260 if test "$cross_compiling" = yes; then
4261 # try to guess the endianness by grepping values into an object file
4262 ac_cv_c_bigendian=unknown
4263 cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h. */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4270 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4271 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4272 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4273 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4274 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4276 main ()
4278 _ascii (); _ebcdic ();
4280 return 0;
4282 _ACEOF
4283 rm -f conftest.$ac_objext
4284 if { (ac_try="$ac_compile"
4285 case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4291 ac_status=$?
4292 grep -v '^ *+' conftest.er1 >conftest.err
4293 rm -f conftest.er1
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4298 { (case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_try") 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; } &&
4307 { ac_try='test -s conftest.$ac_objext'
4308 { (case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_try") 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4318 ac_cv_c_bigendian=yes
4320 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4321 if test "$ac_cv_c_bigendian" = unknown; then
4322 ac_cv_c_bigendian=no
4323 else
4324 # finding both strings is unlikely to happen, but who knows?
4325 ac_cv_c_bigendian=unknown
4328 else
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336 else
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h. */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 $ac_includes_default
4345 main ()
4348 /* Are we little or big endian? From Harbison&Steele. */
4349 union
4351 long int l;
4352 char c[sizeof (long int)];
4353 } u;
4354 u.l = 1;
4355 return u.c[sizeof (long int) - 1] == 1;
4358 return 0;
4360 _ACEOF
4361 rm -f conftest$ac_exeext
4362 if { (ac_try="$ac_link"
4363 case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366 esac
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_link") 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4372 { (case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_try") 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 ac_cv_c_bigendian=no
4382 else
4383 echo "$as_me: program exited with status $ac_status" >&5
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 ( exit $ac_status )
4388 ac_cv_c_bigendian=yes
4390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4399 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4400 case $ac_cv_c_bigendian in
4401 yes)
4402 ENDIAN=big
4405 ENDIAN=little
4408 { { echo "$as_me:$LINENO: error: unknown endianness
4409 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4410 echo "$as_me: error: unknown endianness
4411 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4412 { (exit 1); exit 1; }; } ;;
4413 esac
4416 if test "$cross_compiling" = yes; then
4417 LLVM_CROSS_COMPILING=1
4420 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4421 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4422 if test "${ac_cv_build_exeext+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4426 ac_cv_build_exeext=.exe
4427 else
4428 ac_build_prefix=${build_alias}-
4430 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4431 set dummy ${ac_build_prefix}gcc; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 if test -n "$BUILD_CC"; then
4438 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4451 done
4452 done
4453 IFS=$as_save_IFS
4457 BUILD_CC=$ac_cv_prog_BUILD_CC
4458 if test -n "$BUILD_CC"; then
4459 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4460 echo "${ECHO_T}$BUILD_CC" >&6; }
4461 else
4462 { echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6; }
4467 if test -z "$BUILD_CC"; then
4468 # Extract the first word of "gcc", so it can be a program name with args.
4469 set dummy gcc; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 if test -n "$BUILD_CC"; then
4476 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_BUILD_CC="gcc"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4489 done
4490 done
4491 IFS=$as_save_IFS
4495 BUILD_CC=$ac_cv_prog_BUILD_CC
4496 if test -n "$BUILD_CC"; then
4497 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4498 echo "${ECHO_T}$BUILD_CC" >&6; }
4499 else
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4505 if test -z "$BUILD_CC"; then
4506 # Extract the first word of "cc", so it can be a program name with args.
4507 set dummy cc; ac_word=$2
4508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 if test -n "$BUILD_CC"; then
4514 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4515 else
4516 ac_prog_rejected=no
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4525 ac_prog_rejected=yes
4526 continue
4528 ac_cv_prog_BUILD_CC="cc"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4532 done
4533 done
4534 IFS=$as_save_IFS
4536 if test $ac_prog_rejected = yes; then
4537 # We found a bogon in the path, so make sure we never use it.
4538 set dummy $ac_cv_prog_BUILD_CC
4539 shift
4540 if test $# != 0; then
4541 # We chose a different compiler from the bogus one.
4542 # However, it has the same basename, so the bogon will be chosen
4543 # first if we set BUILD_CC to just the basename; use the full file name.
4544 shift
4545 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4550 BUILD_CC=$ac_cv_prog_BUILD_CC
4551 if test -n "$BUILD_CC"; then
4552 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4553 echo "${ECHO_T}$BUILD_CC" >&6; }
4554 else
4555 { echo "$as_me:$LINENO: result: no" >&5
4556 echo "${ECHO_T}no" >&6; }
4562 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4563 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4564 { (exit 1); exit 1; }; }
4565 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4566 rm -f conftest*
4567 echo 'int main () { return 0; }' > conftest.$ac_ext
4568 ac_cv_build_exeext=
4569 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4570 (eval $ac_build_link) 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; then
4574 for file in conftest.*; do
4575 case $file in
4576 *.c | *.o | *.obj | *.dSYM) ;;
4577 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4578 esac
4579 done
4580 else
4581 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4582 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4583 { (exit 1); exit 1; }; }
4585 rm -f conftest*
4586 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4590 BUILD_EXEEXT=""
4591 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4592 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4593 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4594 ac_build_exeext=$BUILD_EXEEXT
4596 ac_build_prefix=${build_alias}-
4597 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4598 set dummy ${ac_build_prefix}g++; ac_word=$2
4599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 if test -n "$BUILD_CXX"; then
4605 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4618 done
4619 done
4620 IFS=$as_save_IFS
4624 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4625 if test -n "$BUILD_CXX"; then
4626 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4627 echo "${ECHO_T}$BUILD_CXX" >&6; }
4628 else
4629 { echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6; }
4634 if test -z "$BUILD_CXX"; then
4635 # Extract the first word of "g++", so it can be a program name with args.
4636 set dummy g++; ac_word=$2
4637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4639 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642 if test -n "$BUILD_CXX"; then
4643 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_prog_BUILD_CXX="g++"
4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4656 done
4657 done
4658 IFS=$as_save_IFS
4662 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4663 if test -n "$BUILD_CXX"; then
4664 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4665 echo "${ECHO_T}$BUILD_CXX" >&6; }
4666 else
4667 { echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6; }
4672 if test -z "$BUILD_CXX"; then
4673 # Extract the first word of "c++", so it can be a program name with args.
4674 set dummy c++; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680 if test -n "$BUILD_CXX"; then
4681 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4682 else
4683 ac_prog_rejected=no
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4692 ac_prog_rejected=yes
4693 continue
4695 ac_cv_prog_BUILD_CXX="c++"
4696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 break 2
4699 done
4700 done
4701 IFS=$as_save_IFS
4703 if test $ac_prog_rejected = yes; then
4704 # We found a bogon in the path, so make sure we never use it.
4705 set dummy $ac_cv_prog_BUILD_CXX
4706 shift
4707 if test $# != 0; then
4708 # We chose a different compiler from the bogus one.
4709 # However, it has the same basename, so the bogon will be chosen
4710 # first if we set BUILD_CXX to just the basename; use the full file name.
4711 shift
4712 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4717 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4718 if test -n "$BUILD_CXX"; then
4719 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4720 echo "${ECHO_T}$BUILD_CXX" >&6; }
4721 else
4722 { echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6; }
4729 else
4730 LLVM_CROSS_COMPILING=0
4734 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4735 cvsbuild="yes"
4736 optimize="no"
4737 CVSBUILD=CVSBUILD=1
4739 else
4740 cvsbuild="no"
4741 optimize="yes"
4745 # Check whether --enable-optimized was given.
4746 if test "${enable_optimized+set}" = set; then
4747 enableval=$enable_optimized;
4748 else
4749 enableval=$optimize
4752 if test ${enableval} = "no" ; then
4753 ENABLE_OPTIMIZED=
4755 else
4756 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4760 # Check whether --enable-profiling was given.
4761 if test "${enable_profiling+set}" = set; then
4762 enableval=$enable_profiling;
4763 else
4764 enableval="no"
4767 if test ${enableval} = "no" ; then
4768 ENABLE_PROFILING=
4770 else
4771 ENABLE_PROFILING=ENABLE_PROFILING=1
4775 # Check whether --enable-assertions was given.
4776 if test "${enable_assertions+set}" = set; then
4777 enableval=$enable_assertions;
4778 else
4779 enableval="yes"
4782 if test ${enableval} = "yes" ; then
4783 DISABLE_ASSERTIONS=
4785 else
4786 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4790 # Check whether --enable-expensive-checks was given.
4791 if test "${enable_expensive_checks+set}" = set; then
4792 enableval=$enable_expensive_checks;
4793 else
4794 enableval="no"
4797 if test ${enableval} = "yes" ; then
4798 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4800 EXPENSIVE_CHECKS=yes
4802 else
4803 ENABLE_EXPENSIVE_CHECKS=
4805 EXPENSIVE_CHECKS=no
4809 # Check whether --enable-debug-runtime was given.
4810 if test "${enable_debug_runtime+set}" = set; then
4811 enableval=$enable_debug_runtime;
4812 else
4813 enableval=no
4816 if test ${enableval} = "no" ; then
4817 DEBUG_RUNTIME=
4819 else
4820 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4824 # Check whether --enable-debug-symbols was given.
4825 if test "${enable_debug_symbols+set}" = set; then
4826 enableval=$enable_debug_symbols;
4827 else
4828 enableval=no
4831 if test ${enableval} = "no" ; then
4832 DEBUG_SYMBOLS=
4834 else
4835 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4839 # Check whether --enable-jit was given.
4840 if test "${enable_jit+set}" = set; then
4841 enableval=$enable_jit;
4842 else
4843 enableval=default
4846 if test ${enableval} = "no"
4847 then
4848 JIT=
4850 else
4851 case "$llvm_cv_target_arch" in
4852 x86) TARGET_HAS_JIT=1
4854 Sparc) TARGET_HAS_JIT=0
4856 PowerPC) TARGET_HAS_JIT=1
4858 x86_64) TARGET_HAS_JIT=1
4860 Alpha) TARGET_HAS_JIT=0
4862 ARM) TARGET_HAS_JIT=1
4864 Mips) TARGET_HAS_JIT=0
4866 XCore) TARGET_HAS_JIT=0
4868 MSP430) TARGET_HAS_JIT=0
4870 SystemZ) TARGET_HAS_JIT=0
4872 Blackfin) TARGET_HAS_JIT=0
4874 MBlaze) TARGET_HAS_JIT=0
4876 PTX) TARGET_HAS_JIT=0
4878 *) TARGET_HAS_JIT=0
4880 esac
4883 # Check whether --enable-docs was given.
4884 if test "${enable_docs+set}" = set; then
4885 enableval=$enable_docs;
4886 else
4887 enableval=default
4890 case "$enableval" in
4891 yes) ENABLE_DOCS=1
4893 no) ENABLE_DOCS=0
4895 default) ENABLE_DOCS=1
4897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
4900 esac
4902 # Check whether --enable-doxygen was given.
4903 if test "${enable_doxygen+set}" = set; then
4904 enableval=$enable_doxygen;
4905 else
4906 enableval=default
4909 case "$enableval" in
4910 yes) ENABLE_DOXYGEN=1
4912 no) ENABLE_DOXYGEN=0
4914 default) ENABLE_DOXYGEN=0
4916 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4917 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4918 { (exit 1); exit 1; }; } ;;
4919 esac
4921 # Check whether --enable-threads was given.
4922 if test "${enable_threads+set}" = set; then
4923 enableval=$enable_threads;
4924 else
4925 enableval=default
4928 case "$enableval" in
4929 yes) ENABLE_THREADS=1
4931 no) ENABLE_THREADS=0
4933 default) ENABLE_THREADS=1
4935 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4936 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4937 { (exit 1); exit 1; }; } ;;
4938 esac
4940 cat >>confdefs.h <<_ACEOF
4941 #define ENABLE_THREADS $ENABLE_THREADS
4942 _ACEOF
4945 # Check whether --enable-pthreads was given.
4946 if test "${enable_pthreads+set}" = set; then
4947 enableval=$enable_pthreads;
4948 else
4949 enableval=default
4952 case "$enableval" in
4953 yes) ENABLE_PTHREADS=1
4955 no) ENABLE_PTHREADS=0
4957 default) ENABLE_PTHREADS=1
4959 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4960 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4961 { (exit 1); exit 1; }; } ;;
4962 esac
4964 # Check whether --enable-pic was given.
4965 if test "${enable_pic+set}" = set; then
4966 enableval=$enable_pic;
4967 else
4968 enableval=default
4971 case "$enableval" in
4972 yes) ENABLE_PIC=1
4974 no) ENABLE_PIC=0
4976 default) ENABLE_PIC=1
4978 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4979 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4980 { (exit 1); exit 1; }; } ;;
4981 esac
4983 cat >>confdefs.h <<_ACEOF
4984 #define ENABLE_PIC $ENABLE_PIC
4985 _ACEOF
4988 # Check whether --enable-shared was given.
4989 if test "${enable_shared+set}" = set; then
4990 enableval=$enable_shared;
4991 else
4992 enableval=default
4995 case "$enableval" in
4996 yes) ENABLE_SHARED=1
4998 no) ENABLE_SHARED=0
5000 default) ENABLE_SHARED=0
5002 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5003 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5004 { (exit 1); exit 1; }; } ;;
5005 esac
5007 # Check whether --enable-embed-stdcxx was given.
5008 if test "${enable_embed_stdcxx+set}" = set; then
5009 enableval=$enable_embed_stdcxx;
5010 else
5011 enableval=default
5014 case "$enableval" in
5015 yes) ENABLE_EMBED_STDCXX=1
5017 no) ENABLE_EMBED_STDCXX=0
5019 default) ENABLE_EMBED_STDCXX=1
5021 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5022 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5023 { (exit 1); exit 1; }; } ;;
5024 esac
5026 # Check whether --enable-timestamps was given.
5027 if test "${enable_timestamps+set}" = set; then
5028 enableval=$enable_timestamps;
5029 else
5030 enableval=default
5033 case "$enableval" in
5034 yes) ENABLE_TIMESTAMPS=1
5036 no) ENABLE_TIMESTAMPS=0
5038 default) ENABLE_TIMESTAMPS=1
5040 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5041 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5042 { (exit 1); exit 1; }; } ;;
5043 esac
5045 cat >>confdefs.h <<_ACEOF
5046 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5047 _ACEOF
5050 TARGETS_TO_BUILD=""
5051 # Check whether --enable-targets was given.
5052 if test "${enable_targets+set}" = set; then
5053 enableval=$enable_targets;
5054 else
5055 enableval=all
5058 if test "$enableval" = host-only ; then
5059 enableval=host
5061 case "$enableval" in
5062 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5063 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5064 case "$a_target" in
5065 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5066 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5067 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5068 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5069 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5070 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5071 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5072 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5073 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5074 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5075 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5076 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5077 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5078 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5079 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5080 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5081 host) case "$llvm_cv_target_arch" in
5082 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5083 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5084 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5085 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5086 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5087 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5088 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5089 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5090 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5091 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5092 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5093 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5094 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5095 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5096 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5097 echo "$as_me: error: Can not set target to build" >&2;}
5098 { (exit 1); exit 1; }; } ;;
5099 esac ;;
5100 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5101 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5102 { (exit 1); exit 1; }; } ;;
5103 esac
5104 done
5106 esac
5107 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5110 # Determine whether we are building LLVM support for the native architecture.
5111 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5112 for a_target in $TARGETS_TO_BUILD; do
5113 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5115 cat >>confdefs.h <<_ACEOF
5116 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5117 _ACEOF
5119 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5120 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5121 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5122 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5123 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5126 cat >>confdefs.h <<_ACEOF
5127 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5128 _ACEOF
5131 cat >>confdefs.h <<_ACEOF
5132 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5133 _ACEOF
5136 cat >>confdefs.h <<_ACEOF
5137 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5138 _ACEOF
5140 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5142 cat >>confdefs.h <<_ACEOF
5143 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5144 _ACEOF
5148 done
5150 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5151 # target feature def files.
5152 LLVM_ENUM_TARGETS=""
5153 LLVM_ENUM_ASM_PRINTERS=""
5154 LLVM_ENUM_ASM_PARSERS=""
5155 LLVM_ENUM_DISASSEMBLERS=""
5156 for target_to_build in $TARGETS_TO_BUILD; do
5157 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5158 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5159 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5161 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5162 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5164 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5165 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5167 done
5173 # Check whether --enable-cbe-printf-a was given.
5174 if test "${enable_cbe_printf_a+set}" = set; then
5175 enableval=$enable_cbe_printf_a;
5176 else
5177 enableval=default
5180 case "$enableval" in
5181 yes) ENABLE_CBE_PRINTF_A=1
5183 no) ENABLE_CBE_PRINTF_A=0
5185 default) ENABLE_CBE_PRINTF_A=1
5187 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5188 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5189 { (exit 1); exit 1; }; } ;;
5190 esac
5192 cat >>confdefs.h <<_ACEOF
5193 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5194 _ACEOF
5198 # Check whether --with-llvmgccdir was given.
5199 if test "${with_llvmgccdir+set}" = set; then
5200 withval=$with_llvmgccdir;
5201 else
5202 withval=default
5205 case "$withval" in
5206 default) WITH_LLVMGCCDIR=default ;;
5207 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5208 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5209 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5210 { (exit 1); exit 1; }; } ;;
5211 esac
5214 # Check whether --with-llvmgcc was given.
5215 if test "${with_llvmgcc+set}" = set; then
5216 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5217 WITH_LLVMGCCDIR=""
5222 # Check whether --with-llvmgxx was given.
5223 if test "${with_llvmgxx+set}" = set; then
5224 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5225 WITH_LLVMGCCDIR=""
5229 if test -n "$LLVMGCC"; then
5230 LLVMGCCCOMMAND="$LLVMGCC"
5233 if test -n "$LLVMGXX"; then
5234 LLVMGXXCOMMAND="$LLVMGXX"
5237 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5238 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5239 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5240 { (exit 1); exit 1; }; };
5243 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5244 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5245 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5246 { (exit 1); exit 1; }; };
5250 # Check whether --with-clang was given.
5251 if test "${with_clang+set}" = set; then
5252 withval=$with_clang;
5253 else
5254 with_clang=default
5259 # Check whether --with-built-clang was given.
5260 if test "${with_built_clang+set}" = set; then
5261 withval=$with_built_clang;
5262 else
5263 with_built_clang=check
5267 { echo "$as_me:$LINENO: checking clang compiler" >&5
5268 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5269 WITH_CLANGPATH=""
5270 WITH_BUILT_CLANG=0
5271 if test "$with_clang" != "default"; then
5272 WITH_CLANGPATH="$with_clang"
5273 if ! test -x "$WITH_CLANGPATH"; then
5274 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5275 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5276 { (exit 1); exit 1; }; }
5278 elif test "$with_built_clang" = "yes"; then
5279 WITH_BUILT_CLANG=1
5280 elif test "$with_built_clang" = "no"; then
5281 WITH_BUILT_CLANG=0
5282 else
5283 if test "$with_built_clang" != "check"; then
5284 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5285 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5286 { (exit 1); exit 1; }; }
5289 if test -f ${srcdir}/tools/clang/README.txt; then
5290 WITH_BUILT_CLANG=1
5294 if ! test -z "$WITH_CLANGPATH"; then
5295 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5296 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5297 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5298 elif test "$WITH_BUILT_CLANG" = "1"; then
5299 { echo "$as_me:$LINENO: result: built" >&5
5300 echo "${ECHO_T}built" >&6; }
5301 else
5302 { echo "$as_me:$LINENO: result: none" >&5
5303 echo "${ECHO_T}none" >&6; }
5305 CLANGPATH=$WITH_CLANGPATH
5307 CLANGXXPATH=$WITH_CLANGXXPATH
5309 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5313 # Check whether --with-optimize-option was given.
5314 if test "${with_optimize_option+set}" = set; then
5315 withval=$with_optimize_option;
5316 else
5317 withval=default
5320 { echo "$as_me:$LINENO: checking optimization flags" >&5
5321 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5322 case "$withval" in
5323 default)
5324 case "$llvm_cv_os_type" in
5325 FreeBSD) optimize_option=-O2 ;;
5326 MingW) optimize_option=-O2 ;;
5327 *) optimize_option=-O3 ;;
5328 esac ;;
5329 *) optimize_option="$withval" ;;
5330 esac
5331 OPTIMIZE_OPTION=$optimize_option
5333 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5334 echo "${ECHO_T}$optimize_option" >&6; }
5337 # Check whether --with-extra-options was given.
5338 if test "${with_extra_options+set}" = set; then
5339 withval=$with_extra_options;
5340 else
5341 withval=default
5344 case "$withval" in
5345 default) EXTRA_OPTIONS= ;;
5346 *) EXTRA_OPTIONS=$withval ;;
5347 esac
5348 EXTRA_OPTIONS=$EXTRA_OPTIONS
5352 # Check whether --with-extra-ld-options was given.
5353 if test "${with_extra_ld_options+set}" = set; then
5354 withval=$with_extra_ld_options;
5355 else
5356 withval=default
5359 case "$withval" in
5360 default) EXTRA_LD_OPTIONS= ;;
5361 *) EXTRA_LD_OPTIONS=$withval ;;
5362 esac
5363 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5366 # Check whether --enable-bindings was given.
5367 if test "${enable_bindings+set}" = set; then
5368 enableval=$enable_bindings;
5369 else
5370 enableval=default
5373 BINDINGS_TO_BUILD=""
5374 case "$enableval" in
5375 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5376 all ) BINDINGS_TO_BUILD="ocaml" ;;
5377 none | no) BINDINGS_TO_BUILD="" ;;
5378 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5379 case "$a_binding" in
5380 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5381 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5382 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5383 { (exit 1); exit 1; }; } ;;
5384 esac
5385 done
5387 esac
5390 # Check whether --with-ocaml-libdir was given.
5391 if test "${with_ocaml_libdir+set}" = set; then
5392 withval=$with_ocaml_libdir;
5393 else
5394 withval=auto
5397 case "$withval" in
5398 auto) with_ocaml_libdir="$withval" ;;
5399 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5400 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5401 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5402 { (exit 1); exit 1; }; } ;;
5403 esac
5406 # Check whether --with-clang-resource-dir was given.
5407 if test "${with_clang_resource_dir+set}" = set; then
5408 withval=$with_clang_resource_dir;
5409 else
5410 withval=""
5414 cat >>confdefs.h <<_ACEOF
5415 #define CLANG_RESOURCE_DIR "$withval"
5416 _ACEOF
5420 # Check whether --with-c-include-dirs was given.
5421 if test "${with_c_include_dirs+set}" = set; then
5422 withval=$with_c_include_dirs;
5423 else
5424 withval=""
5428 cat >>confdefs.h <<_ACEOF
5429 #define C_INCLUDE_DIRS "$withval"
5430 _ACEOF
5434 # Check whether --with-cxx-include-root was given.
5435 if test "${with_cxx_include_root+set}" = set; then
5436 withval=$with_cxx_include_root;
5437 else
5438 withval=""
5442 cat >>confdefs.h <<_ACEOF
5443 #define CXX_INCLUDE_ROOT "$withval"
5444 _ACEOF
5448 # Check whether --with-cxx-include-arch was given.
5449 if test "${with_cxx_include_arch+set}" = set; then
5450 withval=$with_cxx_include_arch;
5451 else
5452 withval=""
5456 cat >>confdefs.h <<_ACEOF
5457 #define CXX_INCLUDE_ARCH "$withval"
5458 _ACEOF
5462 # Check whether --with-cxx-include-32bit-dir was given.
5463 if test "${with_cxx_include_32bit_dir+set}" = set; then
5464 withval=$with_cxx_include_32bit_dir;
5465 else
5466 withval=""
5470 cat >>confdefs.h <<_ACEOF
5471 #define CXX_INCLUDE_32BIT_DIR "$withval"
5472 _ACEOF
5476 # Check whether --with-cxx-include-64bit-dir was given.
5477 if test "${with_cxx_include_64bit_dir+set}" = set; then
5478 withval=$with_cxx_include_64bit_dir;
5479 else
5480 withval=""
5484 cat >>confdefs.h <<_ACEOF
5485 #define CXX_INCLUDE_64BIT_DIR "$withval"
5486 _ACEOF
5490 # Check whether --with-binutils-include was given.
5491 if test "${with_binutils_include+set}" = set; then
5492 withval=$with_binutils_include;
5493 else
5494 withval=default
5497 case "$withval" in
5498 default) WITH_BINUTILS_INCDIR=default ;;
5499 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5500 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5501 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5502 { (exit 1); exit 1; }; } ;;
5503 esac
5504 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5505 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5507 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5508 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5509 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5510 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5511 { (exit 1); exit 1; }; };
5515 # Check whether --enable-libffi was given.
5516 if test "${enable_libffi+set}" = set; then
5517 enableval=$enable_libffi; case "$enableval" in
5518 yes) llvm_cv_enable_libffi="yes" ;;
5519 no) llvm_cv_enable_libffi="no" ;;
5520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5521 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5522 { (exit 1); exit 1; }; } ;;
5523 esac
5524 else
5525 llvm_cv_enable_libffi=no
5530 ac_ext=c
5531 ac_cpp='$CPP $CPPFLAGS'
5532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5536 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5537 # On Suns, sometimes $CPP names a directory.
5538 if test -n "$CPP" && test -d "$CPP"; then
5539 CPP=
5541 if test -z "$CPP"; then
5542 if test "${ac_cv_prog_CPP+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545 # Double quotes because CPP needs to be expanded
5546 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5548 ac_preproc_ok=false
5549 for ac_c_preproc_warn_flag in '' yes
5551 # Use a header file that comes with gcc, so configuring glibc
5552 # with a fresh cross-compiler works.
5553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5554 # <limits.h> exists even on freestanding compilers.
5555 # On the NeXT, cc -E runs the code through the compiler's parser,
5556 # not just through cpp. "Syntax error" is here to catch this case.
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 #ifdef __STDC__
5564 # include <limits.h>
5565 #else
5566 # include <assert.h>
5567 #endif
5568 Syntax error
5569 _ACEOF
5570 if { (ac_try="$ac_cpp conftest.$ac_ext"
5571 case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574 esac
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } >/dev/null; then
5583 if test -s conftest.err; then
5584 ac_cpp_err=$ac_c_preproc_warn_flag
5585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5586 else
5587 ac_cpp_err=
5589 else
5590 ac_cpp_err=yes
5592 if test -z "$ac_cpp_err"; then
5594 else
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5598 # Broken: fails on valid input.
5599 continue
5602 rm -f conftest.err conftest.$ac_ext
5604 # OK, works on sane cases. Now check whether nonexistent headers
5605 # can be detected and how.
5606 cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h. */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5612 #include <ac_nonexistent.h>
5613 _ACEOF
5614 if { (ac_try="$ac_cpp conftest.$ac_ext"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } >/dev/null; then
5627 if test -s conftest.err; then
5628 ac_cpp_err=$ac_c_preproc_warn_flag
5629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5630 else
5631 ac_cpp_err=
5633 else
5634 ac_cpp_err=yes
5636 if test -z "$ac_cpp_err"; then
5637 # Broken: success on invalid input.
5638 continue
5639 else
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5643 # Passes both tests.
5644 ac_preproc_ok=:
5645 break
5648 rm -f conftest.err conftest.$ac_ext
5650 done
5651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5652 rm -f conftest.err conftest.$ac_ext
5653 if $ac_preproc_ok; then
5654 break
5657 done
5658 ac_cv_prog_CPP=$CPP
5661 CPP=$ac_cv_prog_CPP
5662 else
5663 ac_cv_prog_CPP=$CPP
5665 { echo "$as_me:$LINENO: result: $CPP" >&5
5666 echo "${ECHO_T}$CPP" >&6; }
5667 ac_preproc_ok=false
5668 for ac_c_preproc_warn_flag in '' yes
5670 # Use a header file that comes with gcc, so configuring glibc
5671 # with a fresh cross-compiler works.
5672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5673 # <limits.h> exists even on freestanding compilers.
5674 # On the NeXT, cc -E runs the code through the compiler's parser,
5675 # not just through cpp. "Syntax error" is here to catch this case.
5676 cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h. */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 #ifdef __STDC__
5683 # include <limits.h>
5684 #else
5685 # include <assert.h>
5686 #endif
5687 Syntax error
5688 _ACEOF
5689 if { (ac_try="$ac_cpp conftest.$ac_ext"
5690 case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693 esac
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5696 ac_status=$?
5697 grep -v '^ *+' conftest.er1 >conftest.err
5698 rm -f conftest.er1
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } >/dev/null; then
5702 if test -s conftest.err; then
5703 ac_cpp_err=$ac_c_preproc_warn_flag
5704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5705 else
5706 ac_cpp_err=
5708 else
5709 ac_cpp_err=yes
5711 if test -z "$ac_cpp_err"; then
5713 else
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5717 # Broken: fails on valid input.
5718 continue
5721 rm -f conftest.err conftest.$ac_ext
5723 # OK, works on sane cases. Now check whether nonexistent headers
5724 # can be detected and how.
5725 cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h. */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 #include <ac_nonexistent.h>
5732 _ACEOF
5733 if { (ac_try="$ac_cpp conftest.$ac_ext"
5734 case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737 esac
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5740 ac_status=$?
5741 grep -v '^ *+' conftest.er1 >conftest.err
5742 rm -f conftest.er1
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } >/dev/null; then
5746 if test -s conftest.err; then
5747 ac_cpp_err=$ac_c_preproc_warn_flag
5748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5749 else
5750 ac_cpp_err=
5752 else
5753 ac_cpp_err=yes
5755 if test -z "$ac_cpp_err"; then
5756 # Broken: success on invalid input.
5757 continue
5758 else
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5762 # Passes both tests.
5763 ac_preproc_ok=:
5764 break
5767 rm -f conftest.err conftest.$ac_ext
5769 done
5770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5771 rm -f conftest.err conftest.$ac_ext
5772 if $ac_preproc_ok; then
5774 else
5775 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5776 See \`config.log' for more details." >&5
5777 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5778 See \`config.log' for more details." >&2;}
5779 { (exit 1); exit 1; }; }
5782 ac_ext=c
5783 ac_cpp='$CPP $CPPFLAGS'
5784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5788 ac_ext=c
5789 ac_cpp='$CPP $CPPFLAGS'
5790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5793 if test -n "$ac_tool_prefix"; then
5794 for ac_prog in gcc
5796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5800 if test "${ac_cv_prog_CC+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 if test -n "$CC"; then
5804 ac_cv_prog_CC="$CC" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5817 done
5818 done
5819 IFS=$as_save_IFS
5823 CC=$ac_cv_prog_CC
5824 if test -n "$CC"; then
5825 { echo "$as_me:$LINENO: result: $CC" >&5
5826 echo "${ECHO_T}$CC" >&6; }
5827 else
5828 { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5833 test -n "$CC" && break
5834 done
5836 if test -z "$CC"; then
5837 ac_ct_CC=$CC
5838 for ac_prog in gcc
5840 # Extract the first word of "$ac_prog", so it can be a program name with args.
5841 set dummy $ac_prog; ac_word=$2
5842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847 if test -n "$ac_ct_CC"; then
5848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_prog_ac_ct_CC="$ac_prog"
5858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5861 done
5862 done
5863 IFS=$as_save_IFS
5867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5868 if test -n "$ac_ct_CC"; then
5869 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5870 echo "${ECHO_T}$ac_ct_CC" >&6; }
5871 else
5872 { echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6; }
5877 test -n "$ac_ct_CC" && break
5878 done
5880 if test "x$ac_ct_CC" = x; then
5881 CC=""
5882 else
5883 case $cross_compiling:$ac_tool_warned in
5884 yes:)
5885 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5886 whose name does not start with the host triplet. If you think this
5887 configuration is useful to you, please write to autoconf@gnu.org." >&5
5888 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5889 whose name does not start with the host triplet. If you think this
5890 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5891 ac_tool_warned=yes ;;
5892 esac
5893 CC=$ac_ct_CC
5898 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5899 See \`config.log' for more details." >&5
5900 echo "$as_me: error: no acceptable C compiler found in \$PATH
5901 See \`config.log' for more details." >&2;}
5902 { (exit 1); exit 1; }; }
5904 # Provide some information about the compiler.
5905 echo "$as_me:$LINENO: checking for C compiler version" >&5
5906 ac_compiler=`set X $ac_compile; echo $2`
5907 { (ac_try="$ac_compiler --version >&5"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_compiler --version >&5") 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }
5917 { (ac_try="$ac_compiler -v >&5"
5918 case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_compiler -v >&5") 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }
5927 { (ac_try="$ac_compiler -V >&5"
5928 case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_compiler -V >&5") 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }
5938 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5939 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5940 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 else
5943 cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h. */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5951 main ()
5953 #ifndef __GNUC__
5954 choke me
5955 #endif
5958 return 0;
5960 _ACEOF
5961 rm -f conftest.$ac_objext
5962 if { (ac_try="$ac_compile"
5963 case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compile") 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } &&
5975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5976 { (case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_try") 2>&5
5982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; } &&
5985 { ac_try='test -s conftest.$ac_objext'
5986 { (case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_try") 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_compiler_gnu=yes
5996 else
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6000 ac_compiler_gnu=no
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6007 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6008 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6009 GCC=`test $ac_compiler_gnu = yes && echo yes`
6010 ac_test_CFLAGS=${CFLAGS+set}
6011 ac_save_CFLAGS=$CFLAGS
6012 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6013 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6014 if test "${ac_cv_prog_cc_g+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017 ac_save_c_werror_flag=$ac_c_werror_flag
6018 ac_c_werror_flag=yes
6019 ac_cv_prog_cc_g=no
6020 CFLAGS="-g"
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6029 main ()
6033 return 0;
6035 _ACEOF
6036 rm -f conftest.$ac_objext
6037 if { (ac_try="$ac_compile"
6038 case "(($ac_try" in
6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6041 esac
6042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043 (eval "$ac_compile") 2>conftest.er1
6044 ac_status=$?
6045 grep -v '^ *+' conftest.er1 >conftest.err
6046 rm -f conftest.er1
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } &&
6050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6051 { (case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054 esac
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_try") 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; } &&
6060 { ac_try='test -s conftest.$ac_objext'
6061 { (case "(($ac_try" in
6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6064 esac
6065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066 (eval "$ac_try") 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_cv_prog_cc_g=yes
6071 else
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6075 CFLAGS=""
6076 cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h. */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6084 main ()
6088 return 0;
6090 _ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6093 case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096 esac
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_compile") 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6106 { (case "(($ac_try" in
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6109 esac
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_try") 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; } &&
6115 { ac_try='test -s conftest.$ac_objext'
6116 { (case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119 esac
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_try") 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
6126 else
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6130 ac_c_werror_flag=$ac_save_c_werror_flag
6131 CFLAGS="-g"
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6140 main ()
6144 return 0;
6146 _ACEOF
6147 rm -f conftest.$ac_objext
6148 if { (ac_try="$ac_compile"
6149 case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6152 esac
6153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_compile") 2>conftest.er1
6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } &&
6161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6162 { (case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165 esac
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_try") 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try='test -s conftest.$ac_objext'
6172 { (case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175 esac
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_try") 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 ac_cv_prog_cc_g=yes
6182 else
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 ac_c_werror_flag=$ac_save_c_werror_flag
6198 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6199 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6200 if test "$ac_test_CFLAGS" = set; then
6201 CFLAGS=$ac_save_CFLAGS
6202 elif test $ac_cv_prog_cc_g = yes; then
6203 if test "$GCC" = yes; then
6204 CFLAGS="-g -O2"
6205 else
6206 CFLAGS="-g"
6208 else
6209 if test "$GCC" = yes; then
6210 CFLAGS="-O2"
6211 else
6212 CFLAGS=
6215 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6216 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6217 if test "${ac_cv_prog_cc_c89+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220 ac_cv_prog_cc_c89=no
6221 ac_save_CC=$CC
6222 cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h. */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 #include <stdarg.h>
6229 #include <stdio.h>
6230 #include <sys/types.h>
6231 #include <sys/stat.h>
6232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6233 struct buf { int x; };
6234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6235 static char *e (p, i)
6236 char **p;
6237 int i;
6239 return p[i];
6241 static char *f (char * (*g) (char **, int), char **p, ...)
6243 char *s;
6244 va_list v;
6245 va_start (v,p);
6246 s = g (p, va_arg (v,int));
6247 va_end (v);
6248 return s;
6251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6252 function prototypes and stuff, but not '\xHH' hex character constants.
6253 These don't provoke an error unfortunately, instead are silently treated
6254 as 'x'. The following induces an error, until -std is added to get
6255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6256 array size at least. It's necessary to write '\x00'==0 to get something
6257 that's true only with -std. */
6258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6261 inside strings and character constants. */
6262 #define FOO(x) 'x'
6263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6265 int test (int i, double x);
6266 struct s1 {int (*f) (int a);};
6267 struct s2 {int (*f) (double a);};
6268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6269 int argc;
6270 char **argv;
6272 main ()
6274 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6276 return 0;
6278 _ACEOF
6279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6282 CC="$ac_save_CC $ac_arg"
6283 rm -f conftest.$ac_objext
6284 if { (ac_try="$ac_compile"
6285 case "(($ac_try" in
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6288 esac
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_compile") 2>conftest.er1
6291 ac_status=$?
6292 grep -v '^ *+' conftest.er1 >conftest.err
6293 rm -f conftest.er1
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6298 { (case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301 esac
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_try") 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; } &&
6307 { ac_try='test -s conftest.$ac_objext'
6308 { (case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311 esac
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_try") 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 ac_cv_prog_cc_c89=$ac_arg
6318 else
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6325 rm -f core conftest.err conftest.$ac_objext
6326 test "x$ac_cv_prog_cc_c89" != "xno" && break
6327 done
6328 rm -f conftest.$ac_ext
6329 CC=$ac_save_CC
6332 # AC_CACHE_VAL
6333 case "x$ac_cv_prog_cc_c89" in
6335 { echo "$as_me:$LINENO: result: none needed" >&5
6336 echo "${ECHO_T}none needed" >&6; } ;;
6337 xno)
6338 { echo "$as_me:$LINENO: result: unsupported" >&5
6339 echo "${ECHO_T}unsupported" >&6; } ;;
6341 CC="$CC $ac_cv_prog_cc_c89"
6342 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6343 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6344 esac
6347 ac_ext=c
6348 ac_cpp='$CPP $CPPFLAGS'
6349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6353 ac_ext=cpp
6354 ac_cpp='$CXXCPP $CPPFLAGS'
6355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6358 if test -z "$CXX"; then
6359 if test -n "$CCC"; then
6360 CXX=$CCC
6361 else
6362 if test -n "$ac_tool_prefix"; then
6363 for ac_prog in g++
6365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6369 if test "${ac_cv_prog_CXX+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372 if test -n "$CXX"; then
6373 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6374 else
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6386 done
6387 done
6388 IFS=$as_save_IFS
6392 CXX=$ac_cv_prog_CXX
6393 if test -n "$CXX"; then
6394 { echo "$as_me:$LINENO: result: $CXX" >&5
6395 echo "${ECHO_T}$CXX" >&6; }
6396 else
6397 { echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6; }
6402 test -n "$CXX" && break
6403 done
6405 if test -z "$CXX"; then
6406 ac_ct_CXX=$CXX
6407 for ac_prog in g++
6409 # Extract the first word of "$ac_prog", so it can be a program name with args.
6410 set dummy $ac_prog; ac_word=$2
6411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6413 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416 if test -n "$ac_ct_CXX"; then
6417 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6418 else
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6422 IFS=$as_save_IFS
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6426 ac_cv_prog_ac_ct_CXX="$ac_prog"
6427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 break 2
6430 done
6431 done
6432 IFS=$as_save_IFS
6436 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6437 if test -n "$ac_ct_CXX"; then
6438 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6439 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6440 else
6441 { echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6; }
6446 test -n "$ac_ct_CXX" && break
6447 done
6449 if test "x$ac_ct_CXX" = x; then
6450 CXX="g++"
6451 else
6452 case $cross_compiling:$ac_tool_warned in
6453 yes:)
6454 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6455 whose name does not start with the host triplet. If you think this
6456 configuration is useful to you, please write to autoconf@gnu.org." >&5
6457 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6458 whose name does not start with the host triplet. If you think this
6459 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462 CXX=$ac_ct_CXX
6468 # Provide some information about the compiler.
6469 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6470 ac_compiler=`set X $ac_compile; echo $2`
6471 { (ac_try="$ac_compiler --version >&5"
6472 case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6475 esac
6476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477 (eval "$ac_compiler --version >&5") 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }
6481 { (ac_try="$ac_compiler -v >&5"
6482 case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485 esac
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_compiler -v >&5") 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }
6491 { (ac_try="$ac_compiler -V >&5"
6492 case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6495 esac
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_compiler -V >&5") 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }
6502 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6503 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6504 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h. */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6515 main ()
6517 #ifndef __GNUC__
6518 choke me
6519 #endif
6522 return 0;
6524 _ACEOF
6525 rm -f conftest.$ac_objext
6526 if { (ac_try="$ac_compile"
6527 case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530 esac
6531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532 (eval "$ac_compile") 2>conftest.er1
6533 ac_status=$?
6534 grep -v '^ *+' conftest.er1 >conftest.err
6535 rm -f conftest.er1
6536 cat conftest.err >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6540 { (case "(($ac_try" in
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6543 esac
6544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_try") 2>&5
6546 ac_status=$?
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; } &&
6549 { ac_try='test -s conftest.$ac_objext'
6550 { (case "(($ac_try" in
6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6553 esac
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555 (eval "$ac_try") 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6559 ac_compiler_gnu=yes
6560 else
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 ac_compiler_gnu=no
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6571 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6572 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6573 GXX=`test $ac_compiler_gnu = yes && echo yes`
6574 ac_test_CXXFLAGS=${CXXFLAGS+set}
6575 ac_save_CXXFLAGS=$CXXFLAGS
6576 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6577 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6578 if test "${ac_cv_prog_cxx_g+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6582 ac_cxx_werror_flag=yes
6583 ac_cv_prog_cxx_g=no
6584 CXXFLAGS="-g"
6585 cat >conftest.$ac_ext <<_ACEOF
6586 /* confdefs.h. */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6593 main ()
6597 return 0;
6599 _ACEOF
6600 rm -f conftest.$ac_objext
6601 if { (ac_try="$ac_compile"
6602 case "(($ac_try" in
6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6605 esac
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607 (eval "$ac_compile") 2>conftest.er1
6608 ac_status=$?
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6615 { (case "(($ac_try" in
6616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6617 *) ac_try_echo=$ac_try;;
6618 esac
6619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620 (eval "$ac_try") 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; } &&
6624 { ac_try='test -s conftest.$ac_objext'
6625 { (case "(($ac_try" in
6626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6628 esac
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_try") 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 ac_cv_prog_cxx_g=yes
6635 else
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 CXXFLAGS=""
6640 cat >conftest.$ac_ext <<_ACEOF
6641 /* confdefs.h. */
6642 _ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6648 main ()
6652 return 0;
6654 _ACEOF
6655 rm -f conftest.$ac_objext
6656 if { (ac_try="$ac_compile"
6657 case "(($ac_try" in
6658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6659 *) ac_try_echo=$ac_try;;
6660 esac
6661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662 (eval "$ac_compile") 2>conftest.er1
6663 ac_status=$?
6664 grep -v '^ *+' conftest.er1 >conftest.err
6665 rm -f conftest.er1
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } &&
6669 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6670 { (case "(($ac_try" in
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6673 esac
6674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675 (eval "$ac_try") 2>&5
6676 ac_status=$?
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; } &&
6679 { ac_try='test -s conftest.$ac_objext'
6680 { (case "(($ac_try" in
6681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682 *) ac_try_echo=$ac_try;;
6683 esac
6684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685 (eval "$ac_try") 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6690 else
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6695 CXXFLAGS="-g"
6696 cat >conftest.$ac_ext <<_ACEOF
6697 /* confdefs.h. */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6704 main ()
6708 return 0;
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (ac_try="$ac_compile"
6713 case "(($ac_try" in
6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6716 esac
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_compile") 2>conftest.er1
6719 ac_status=$?
6720 grep -v '^ *+' conftest.er1 >conftest.err
6721 rm -f conftest.er1
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6726 { (case "(($ac_try" in
6727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6728 *) ac_try_echo=$ac_try;;
6729 esac
6730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6731 (eval "$ac_try") 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; } &&
6735 { ac_try='test -s conftest.$ac_objext'
6736 { (case "(($ac_try" in
6737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738 *) ac_try_echo=$ac_try;;
6739 esac
6740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6741 (eval "$ac_try") 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 ac_cv_prog_cxx_g=yes
6746 else
6747 echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6762 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6763 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6764 if test "$ac_test_CXXFLAGS" = set; then
6765 CXXFLAGS=$ac_save_CXXFLAGS
6766 elif test $ac_cv_prog_cxx_g = yes; then
6767 if test "$GXX" = yes; then
6768 CXXFLAGS="-g -O2"
6769 else
6770 CXXFLAGS="-g"
6772 else
6773 if test "$GXX" = yes; then
6774 CXXFLAGS="-O2"
6775 else
6776 CXXFLAGS=
6779 ac_ext=c
6780 ac_cpp='$CPP $CPPFLAGS'
6781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6786 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6787 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6788 if test "${lt_cv_path_NM+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 if test -n "$NM"; then
6792 # Let the user override the test.
6793 lt_cv_path_NM="$NM"
6794 else
6795 lt_nm_to_check="${ac_tool_prefix}nm"
6796 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6797 lt_nm_to_check="$lt_nm_to_check nm"
6799 for lt_tmp_nm in $lt_nm_to_check; do
6800 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6801 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6802 IFS="$lt_save_ifs"
6803 test -z "$ac_dir" && ac_dir=.
6804 tmp_nm="$ac_dir/$lt_tmp_nm"
6805 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6806 # Check to see if the nm accepts a BSD-compat flag.
6807 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6808 # nm: unknown option "B" ignored
6809 # Tru64's nm complains that /dev/null is an invalid object file
6810 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6811 */dev/null* | *'Invalid file or object type'*)
6812 lt_cv_path_NM="$tmp_nm -B"
6813 break
6816 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6817 */dev/null*)
6818 lt_cv_path_NM="$tmp_nm -p"
6819 break
6822 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6823 continue # so that we can try to find one that supports BSD flags
6825 esac
6827 esac
6829 done
6830 IFS="$lt_save_ifs"
6831 done
6832 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6835 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6836 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6837 NM="$lt_cv_path_NM"
6841 { echo "$as_me:$LINENO: checking for GNU make" >&5
6842 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6843 if test "${llvm_cv_gnu_make_command+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846 llvm_cv_gnu_make_command=''
6847 for a in "$MAKE" make gmake gnumake ; do
6848 if test -z "$a" ; then continue ; fi ;
6849 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6850 then
6851 llvm_cv_gnu_make_command=$a ;
6852 break;
6854 done
6856 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6857 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6858 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6859 ifGNUmake='' ;
6860 else
6861 ifGNUmake='#' ;
6862 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6863 echo "${ECHO_T}\"Not found\"" >&6; };
6867 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6868 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6869 LN_S=$as_ln_s
6870 if test "$LN_S" = "ln -s"; then
6871 { echo "$as_me:$LINENO: result: yes" >&5
6872 echo "${ECHO_T}yes" >&6; }
6873 else
6874 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6875 echo "${ECHO_T}no, using $LN_S" >&6; }
6878 # Extract the first word of "cmp", so it can be a program name with args.
6879 set dummy cmp; ac_word=$2
6880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6882 if test "${ac_cv_path_CMP+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885 case $CMP in
6886 [\\/]* | ?:[\\/]*)
6887 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6901 done
6902 done
6903 IFS=$as_save_IFS
6905 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6907 esac
6909 CMP=$ac_cv_path_CMP
6910 if test -n "$CMP"; then
6911 { echo "$as_me:$LINENO: result: $CMP" >&5
6912 echo "${ECHO_T}$CMP" >&6; }
6913 else
6914 { echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6; }
6919 # Extract the first word of "cp", so it can be a program name with args.
6920 set dummy cp; ac_word=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_path_CP+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926 case $CP in
6927 [\\/]* | ?:[\\/]*)
6928 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6942 done
6943 done
6944 IFS=$as_save_IFS
6946 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6948 esac
6950 CP=$ac_cv_path_CP
6951 if test -n "$CP"; then
6952 { echo "$as_me:$LINENO: result: $CP" >&5
6953 echo "${ECHO_T}$CP" >&6; }
6954 else
6955 { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6960 # Extract the first word of "date", so it can be a program name with args.
6961 set dummy date; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_path_DATE+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967 case $DATE in
6968 [\\/]* | ?:[\\/]*)
6969 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6983 done
6984 done
6985 IFS=$as_save_IFS
6987 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6989 esac
6991 DATE=$ac_cv_path_DATE
6992 if test -n "$DATE"; then
6993 { echo "$as_me:$LINENO: result: $DATE" >&5
6994 echo "${ECHO_T}$DATE" >&6; }
6995 else
6996 { echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6; }
7001 # Extract the first word of "find", so it can be a program name with args.
7002 set dummy find; ac_word=$2
7003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005 if test "${ac_cv_path_FIND+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008 case $FIND in
7009 [\\/]* | ?:[\\/]*)
7010 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 break 2
7024 done
7025 done
7026 IFS=$as_save_IFS
7028 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7030 esac
7032 FIND=$ac_cv_path_FIND
7033 if test -n "$FIND"; then
7034 { echo "$as_me:$LINENO: result: $FIND" >&5
7035 echo "${ECHO_T}$FIND" >&6; }
7036 else
7037 { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7042 # Extract the first word of "grep", so it can be a program name with args.
7043 set dummy grep; ac_word=$2
7044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046 if test "${ac_cv_path_GREP+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049 case $GREP in
7050 [\\/]* | ?:[\\/]*)
7051 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7065 done
7066 done
7067 IFS=$as_save_IFS
7069 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7071 esac
7073 GREP=$ac_cv_path_GREP
7074 if test -n "$GREP"; then
7075 { echo "$as_me:$LINENO: result: $GREP" >&5
7076 echo "${ECHO_T}$GREP" >&6; }
7077 else
7078 { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7083 # Extract the first word of "mkdir", so it can be a program name with args.
7084 set dummy mkdir; ac_word=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_path_MKDIR+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 case $MKDIR in
7091 [\\/]* | ?:[\\/]*)
7092 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7106 done
7107 done
7108 IFS=$as_save_IFS
7110 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7112 esac
7114 MKDIR=$ac_cv_path_MKDIR
7115 if test -n "$MKDIR"; then
7116 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7117 echo "${ECHO_T}$MKDIR" >&6; }
7118 else
7119 { echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6; }
7124 # Extract the first word of "mv", so it can be a program name with args.
7125 set dummy mv; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_path_MV+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 case $MV in
7132 [\\/]* | ?:[\\/]*)
7133 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7147 done
7148 done
7149 IFS=$as_save_IFS
7151 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7153 esac
7155 MV=$ac_cv_path_MV
7156 if test -n "$MV"; then
7157 { echo "$as_me:$LINENO: result: $MV" >&5
7158 echo "${ECHO_T}$MV" >&6; }
7159 else
7160 { echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6; }
7165 if test -n "$ac_tool_prefix"; then
7166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170 if test "${ac_cv_prog_RANLIB+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
7173 if test -n "$RANLIB"; then
7174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7187 done
7188 done
7189 IFS=$as_save_IFS
7193 RANLIB=$ac_cv_prog_RANLIB
7194 if test -n "$RANLIB"; then
7195 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7196 echo "${ECHO_T}$RANLIB" >&6; }
7197 else
7198 { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7204 if test -z "$ac_cv_prog_RANLIB"; then
7205 ac_ct_RANLIB=$RANLIB
7206 # Extract the first word of "ranlib", so it can be a program name with args.
7207 set dummy ranlib; ac_word=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213 if test -n "$ac_ct_RANLIB"; then
7214 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_prog_ac_ct_RANLIB="ranlib"
7224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7227 done
7228 done
7229 IFS=$as_save_IFS
7233 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7234 if test -n "$ac_ct_RANLIB"; then
7235 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7236 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7237 else
7238 { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7242 if test "x$ac_ct_RANLIB" = x; then
7243 RANLIB=":"
7244 else
7245 case $cross_compiling:$ac_tool_warned in
7246 yes:)
7247 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7248 whose name does not start with the host triplet. If you think this
7249 configuration is useful to you, please write to autoconf@gnu.org." >&5
7250 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7251 whose name does not start with the host triplet. If you think this
7252 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7253 ac_tool_warned=yes ;;
7254 esac
7255 RANLIB=$ac_ct_RANLIB
7257 else
7258 RANLIB="$ac_cv_prog_RANLIB"
7261 if test -n "$ac_tool_prefix"; then
7262 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7263 set dummy ${ac_tool_prefix}ar; ac_word=$2
7264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266 if test "${ac_cv_prog_AR+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269 if test -n "$AR"; then
7270 ac_cv_prog_AR="$AR" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_prog_AR="${ac_tool_prefix}ar"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7283 done
7284 done
7285 IFS=$as_save_IFS
7289 AR=$ac_cv_prog_AR
7290 if test -n "$AR"; then
7291 { echo "$as_me:$LINENO: result: $AR" >&5
7292 echo "${ECHO_T}$AR" >&6; }
7293 else
7294 { echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6; }
7300 if test -z "$ac_cv_prog_AR"; then
7301 ac_ct_AR=$AR
7302 # Extract the first word of "ar", so it can be a program name with args.
7303 set dummy ar; ac_word=$2
7304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309 if test -n "$ac_ct_AR"; then
7310 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_prog_ac_ct_AR="ar"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 break 2
7323 done
7324 done
7325 IFS=$as_save_IFS
7329 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7330 if test -n "$ac_ct_AR"; then
7331 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7332 echo "${ECHO_T}$ac_ct_AR" >&6; }
7333 else
7334 { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7338 if test "x$ac_ct_AR" = x; then
7339 AR="false"
7340 else
7341 case $cross_compiling:$ac_tool_warned in
7342 yes:)
7343 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7344 whose name does not start with the host triplet. If you think this
7345 configuration is useful to you, please write to autoconf@gnu.org." >&5
7346 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7347 whose name does not start with the host triplet. If you think this
7348 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7349 ac_tool_warned=yes ;;
7350 esac
7351 AR=$ac_ct_AR
7353 else
7354 AR="$ac_cv_prog_AR"
7357 # Extract the first word of "rm", so it can be a program name with args.
7358 set dummy rm; ac_word=$2
7359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361 if test "${ac_cv_path_RM+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364 case $RM in
7365 [\\/]* | ?:[\\/]*)
7366 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7376 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 break 2
7380 done
7381 done
7382 IFS=$as_save_IFS
7384 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7386 esac
7388 RM=$ac_cv_path_RM
7389 if test -n "$RM"; then
7390 { echo "$as_me:$LINENO: result: $RM" >&5
7391 echo "${ECHO_T}$RM" >&6; }
7392 else
7393 { echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6; }
7398 # Extract the first word of "sed", so it can be a program name with args.
7399 set dummy sed; ac_word=$2
7400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7402 if test "${ac_cv_path_SED+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405 case $SED in
7406 [\\/]* | ?:[\\/]*)
7407 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7421 done
7422 done
7423 IFS=$as_save_IFS
7425 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7427 esac
7429 SED=$ac_cv_path_SED
7430 if test -n "$SED"; then
7431 { echo "$as_me:$LINENO: result: $SED" >&5
7432 echo "${ECHO_T}$SED" >&6; }
7433 else
7434 { echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6; }
7439 # Extract the first word of "tar", so it can be a program name with args.
7440 set dummy tar; ac_word=$2
7441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7443 if test "${ac_cv_path_TAR+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446 case $TAR in
7447 [\\/]* | ?:[\\/]*)
7448 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7462 done
7463 done
7464 IFS=$as_save_IFS
7466 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7468 esac
7470 TAR=$ac_cv_path_TAR
7471 if test -n "$TAR"; then
7472 { echo "$as_me:$LINENO: result: $TAR" >&5
7473 echo "${ECHO_T}$TAR" >&6; }
7474 else
7475 { echo "$as_me:$LINENO: result: no" >&5
7476 echo "${ECHO_T}no" >&6; }
7480 # Extract the first word of "pwd", so it can be a program name with args.
7481 set dummy pwd; ac_word=$2
7482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484 if test "${ac_cv_path_BINPWD+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487 case $BINPWD in
7488 [\\/]* | ?:[\\/]*)
7489 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7499 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 break 2
7503 done
7504 done
7505 IFS=$as_save_IFS
7507 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7509 esac
7511 BINPWD=$ac_cv_path_BINPWD
7512 if test -n "$BINPWD"; then
7513 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7514 echo "${ECHO_T}$BINPWD" >&6; }
7515 else
7516 { echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6; }
7522 # Extract the first word of "Graphviz", so it can be a program name with args.
7523 set dummy Graphviz; ac_word=$2
7524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529 case $GRAPHVIZ in
7530 [\\/]* | ?:[\\/]*)
7531 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7541 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7545 done
7546 done
7547 IFS=$as_save_IFS
7549 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7551 esac
7553 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7554 if test -n "$GRAPHVIZ"; then
7555 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7556 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7557 else
7558 { echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6; }
7563 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7565 cat >>confdefs.h <<\_ACEOF
7566 #define HAVE_GRAPHVIZ 1
7567 _ACEOF
7569 if test "$llvm_cv_os_type" = "MingW" ; then
7570 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7573 cat >>confdefs.h <<_ACEOF
7574 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7575 _ACEOF
7578 # Extract the first word of "dot", so it can be a program name with args.
7579 set dummy dot; ac_word=$2
7580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582 if test "${ac_cv_path_DOT+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585 case $DOT in
7586 [\\/]* | ?:[\\/]*)
7587 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 break 2
7601 done
7602 done
7603 IFS=$as_save_IFS
7605 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7607 esac
7609 DOT=$ac_cv_path_DOT
7610 if test -n "$DOT"; then
7611 { echo "$as_me:$LINENO: result: $DOT" >&5
7612 echo "${ECHO_T}$DOT" >&6; }
7613 else
7614 { echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6; }
7619 if test "$DOT" != "echo dot" ; then
7621 cat >>confdefs.h <<\_ACEOF
7622 #define HAVE_DOT 1
7623 _ACEOF
7625 if test "$llvm_cv_os_type" = "MingW" ; then
7626 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7629 cat >>confdefs.h <<_ACEOF
7630 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7631 _ACEOF
7634 # Extract the first word of "fdp", so it can be a program name with args.
7635 set dummy fdp; ac_word=$2
7636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7638 if test "${ac_cv_path_FDP+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641 case $FDP in
7642 [\\/]* | ?:[\\/]*)
7643 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7657 done
7658 done
7659 IFS=$as_save_IFS
7661 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7663 esac
7665 FDP=$ac_cv_path_FDP
7666 if test -n "$FDP"; then
7667 { echo "$as_me:$LINENO: result: $FDP" >&5
7668 echo "${ECHO_T}$FDP" >&6; }
7669 else
7670 { echo "$as_me:$LINENO: result: no" >&5
7671 echo "${ECHO_T}no" >&6; }
7675 if test "$FDP" != "echo fdp" ; then
7677 cat >>confdefs.h <<\_ACEOF
7678 #define HAVE_FDP 1
7679 _ACEOF
7681 if test "$llvm_cv_os_type" = "MingW" ; then
7682 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7685 cat >>confdefs.h <<_ACEOF
7686 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7687 _ACEOF
7690 # Extract the first word of "neato", so it can be a program name with args.
7691 set dummy neato; ac_word=$2
7692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694 if test "${ac_cv_path_NEATO+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697 case $NEATO in
7698 [\\/]* | ?:[\\/]*)
7699 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7709 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 break 2
7713 done
7714 done
7715 IFS=$as_save_IFS
7717 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7719 esac
7721 NEATO=$ac_cv_path_NEATO
7722 if test -n "$NEATO"; then
7723 { echo "$as_me:$LINENO: result: $NEATO" >&5
7724 echo "${ECHO_T}$NEATO" >&6; }
7725 else
7726 { echo "$as_me:$LINENO: result: no" >&5
7727 echo "${ECHO_T}no" >&6; }
7731 if test "$NEATO" != "echo neato" ; then
7733 cat >>confdefs.h <<\_ACEOF
7734 #define HAVE_NEATO 1
7735 _ACEOF
7737 if test "$llvm_cv_os_type" = "MingW" ; then
7738 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7741 cat >>confdefs.h <<_ACEOF
7742 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7743 _ACEOF
7746 # Extract the first word of "twopi", so it can be a program name with args.
7747 set dummy twopi; ac_word=$2
7748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7750 if test "${ac_cv_path_TWOPI+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753 case $TWOPI in
7754 [\\/]* | ?:[\\/]*)
7755 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7765 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 break 2
7769 done
7770 done
7771 IFS=$as_save_IFS
7773 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7775 esac
7777 TWOPI=$ac_cv_path_TWOPI
7778 if test -n "$TWOPI"; then
7779 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7780 echo "${ECHO_T}$TWOPI" >&6; }
7781 else
7782 { echo "$as_me:$LINENO: result: no" >&5
7783 echo "${ECHO_T}no" >&6; }
7787 if test "$TWOPI" != "echo twopi" ; then
7789 cat >>confdefs.h <<\_ACEOF
7790 #define HAVE_TWOPI 1
7791 _ACEOF
7793 if test "$llvm_cv_os_type" = "MingW" ; then
7794 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7797 cat >>confdefs.h <<_ACEOF
7798 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7799 _ACEOF
7802 # Extract the first word of "circo", so it can be a program name with args.
7803 set dummy circo; ac_word=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_path_CIRCO+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809 case $CIRCO in
7810 [\\/]* | ?:[\\/]*)
7811 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7825 done
7826 done
7827 IFS=$as_save_IFS
7829 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7831 esac
7833 CIRCO=$ac_cv_path_CIRCO
7834 if test -n "$CIRCO"; then
7835 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7836 echo "${ECHO_T}$CIRCO" >&6; }
7837 else
7838 { echo "$as_me:$LINENO: result: no" >&5
7839 echo "${ECHO_T}no" >&6; }
7843 if test "$CIRCO" != "echo circo" ; then
7845 cat >>confdefs.h <<\_ACEOF
7846 #define HAVE_CIRCO 1
7847 _ACEOF
7849 if test "$llvm_cv_os_type" = "MingW" ; then
7850 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7853 cat >>confdefs.h <<_ACEOF
7854 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7855 _ACEOF
7858 for ac_prog in gv gsview32
7860 # Extract the first word of "$ac_prog", so it can be a program name with args.
7861 set dummy $ac_prog; ac_word=$2
7862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7864 if test "${ac_cv_path_GV+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 else
7867 case $GV in
7868 [\\/]* | ?:[\\/]*)
7869 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7879 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 break 2
7883 done
7884 done
7885 IFS=$as_save_IFS
7888 esac
7890 GV=$ac_cv_path_GV
7891 if test -n "$GV"; then
7892 { echo "$as_me:$LINENO: result: $GV" >&5
7893 echo "${ECHO_T}$GV" >&6; }
7894 else
7895 { echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6; }
7900 test -n "$GV" && break
7901 done
7902 test -n "$GV" || GV="echo gv"
7904 if test "$GV" != "echo gv" ; then
7906 cat >>confdefs.h <<\_ACEOF
7907 #define HAVE_GV 1
7908 _ACEOF
7910 if test "$llvm_cv_os_type" = "MingW" ; then
7911 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7914 cat >>confdefs.h <<_ACEOF
7915 #define LLVM_PATH_GV "$GV${EXEEXT}"
7916 _ACEOF
7919 # Extract the first word of "dotty", so it can be a program name with args.
7920 set dummy dotty; ac_word=$2
7921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7923 if test "${ac_cv_path_DOTTY+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926 case $DOTTY in
7927 [\\/]* | ?:[\\/]*)
7928 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7938 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7942 done
7943 done
7944 IFS=$as_save_IFS
7946 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7948 esac
7950 DOTTY=$ac_cv_path_DOTTY
7951 if test -n "$DOTTY"; then
7952 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7953 echo "${ECHO_T}$DOTTY" >&6; }
7954 else
7955 { echo "$as_me:$LINENO: result: no" >&5
7956 echo "${ECHO_T}no" >&6; }
7960 if test "$DOTTY" != "echo dotty" ; then
7962 cat >>confdefs.h <<\_ACEOF
7963 #define HAVE_DOTTY 1
7964 _ACEOF
7966 if test "$llvm_cv_os_type" = "MingW" ; then
7967 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7970 cat >>confdefs.h <<_ACEOF
7971 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7972 _ACEOF
7975 # Extract the first word of "xdot.py", so it can be a program name with args.
7976 set dummy xdot.py; ac_word=$2
7977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7979 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982 case $XDOT_PY in
7983 [\\/]* | ?:[\\/]*)
7984 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7994 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7998 done
7999 done
8000 IFS=$as_save_IFS
8002 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8004 esac
8006 XDOT_PY=$ac_cv_path_XDOT_PY
8007 if test -n "$XDOT_PY"; then
8008 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8009 echo "${ECHO_T}$XDOT_PY" >&6; }
8010 else
8011 { echo "$as_me:$LINENO: result: no" >&5
8012 echo "${ECHO_T}no" >&6; }
8016 if test "$XDOT_PY" != "echo xdot.py" ; then
8018 cat >>confdefs.h <<\_ACEOF
8019 #define HAVE_XDOT_PY 1
8020 _ACEOF
8022 if test "$llvm_cv_os_type" = "MingW" ; then
8023 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8026 cat >>confdefs.h <<_ACEOF
8027 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8028 _ACEOF
8033 # Extract the first word of "perl", so it can be a program name with args.
8034 set dummy perl; ac_word=$2
8035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8037 if test "${ac_cv_path_PERL+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040 case $PERL in
8041 [\\/]* | ?:[\\/]*)
8042 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8052 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 break 2
8056 done
8057 done
8058 IFS=$as_save_IFS
8060 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8062 esac
8064 PERL=$ac_cv_path_PERL
8065 if test -n "$PERL"; then
8066 { echo "$as_me:$LINENO: result: $PERL" >&5
8067 echo "${ECHO_T}$PERL" >&6; }
8068 else
8069 { echo "$as_me:$LINENO: result: no" >&5
8070 echo "${ECHO_T}no" >&6; }
8074 if test "$PERL" != "none"; then
8075 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8076 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8077 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8078 { echo "$as_me:$LINENO: result: yes" >&5
8079 echo "${ECHO_T}yes" >&6; }
8080 else
8081 PERL=none
8082 { echo "$as_me:$LINENO: result: not found" >&5
8083 echo "${ECHO_T}not found" >&6; }
8088 if test x"$PERL" = xnone; then
8089 HAVE_PERL=0
8091 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8092 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8093 { (exit 1); exit 1; }; }
8094 else
8095 HAVE_PERL=1
8099 # Find a good install program. We prefer a C program (faster),
8100 # so one script is as good as another. But avoid the broken or
8101 # incompatible versions:
8102 # SysV /etc/install, /usr/sbin/install
8103 # SunOS /usr/etc/install
8104 # IRIX /sbin/install
8105 # AIX /bin/install
8106 # AmigaOS /C/install, which installs bootblocks on floppy discs
8107 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8108 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8109 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8110 # OS/2's system install, which has a completely different semantic
8111 # ./install, which can be erroneously created by make from ./install.sh.
8112 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8113 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8114 if test -z "$INSTALL"; then
8115 if test "${ac_cv_path_install+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8121 IFS=$as_save_IFS
8122 test -z "$as_dir" && as_dir=.
8123 # Account for people who put trailing slashes in PATH elements.
8124 case $as_dir/ in
8125 ./ | .// | /cC/* | \
8126 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8127 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8128 /usr/ucb/* ) ;;
8130 # OSF1 and SCO ODT 3.0 have their own names for install.
8131 # Don't use installbsd from OSF since it installs stuff as root
8132 # by default.
8133 for ac_prog in ginstall scoinst install; do
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8136 if test $ac_prog = install &&
8137 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8138 # AIX install. It has an incompatible calling convention.
8140 elif test $ac_prog = install &&
8141 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8142 # program-specific install script used by HP pwplus--don't use.
8144 else
8145 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8146 break 3
8149 done
8150 done
8152 esac
8153 done
8154 IFS=$as_save_IFS
8158 if test "${ac_cv_path_install+set}" = set; then
8159 INSTALL=$ac_cv_path_install
8160 else
8161 # As a last resort, use the slow shell script. Don't cache a
8162 # value for INSTALL within a source directory, because that will
8163 # break other packages using the cache if that directory is
8164 # removed, or if the value is a relative name.
8165 INSTALL=$ac_install_sh
8168 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8169 echo "${ECHO_T}$INSTALL" >&6; }
8171 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8172 # It thinks the first close brace ends the variable substitution.
8173 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8175 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8177 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8179 case "$INSTALL" in
8180 [\\/$]* | ?:[\\/]* ) ;;
8181 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8182 esac
8184 # Extract the first word of "bzip2", so it can be a program name with args.
8185 set dummy bzip2; ac_word=$2
8186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8188 if test "${ac_cv_path_BZIP2+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 else
8191 case $BZIP2 in
8192 [\\/]* | ?:[\\/]*)
8193 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 for as_dir in $PATH
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8203 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 break 2
8207 done
8208 done
8209 IFS=$as_save_IFS
8212 esac
8214 BZIP2=$ac_cv_path_BZIP2
8215 if test -n "$BZIP2"; then
8216 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8217 echo "${ECHO_T}$BZIP2" >&6; }
8218 else
8219 { echo "$as_me:$LINENO: result: no" >&5
8220 echo "${ECHO_T}no" >&6; }
8224 # Extract the first word of "cat", so it can be a program name with args.
8225 set dummy cat; ac_word=$2
8226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8228 if test "${ac_cv_path_CAT+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231 case $CAT in
8232 [\\/]* | ?:[\\/]*)
8233 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8247 done
8248 done
8249 IFS=$as_save_IFS
8252 esac
8254 CAT=$ac_cv_path_CAT
8255 if test -n "$CAT"; then
8256 { echo "$as_me:$LINENO: result: $CAT" >&5
8257 echo "${ECHO_T}$CAT" >&6; }
8258 else
8259 { echo "$as_me:$LINENO: result: no" >&5
8260 echo "${ECHO_T}no" >&6; }
8264 # Extract the first word of "doxygen", so it can be a program name with args.
8265 set dummy doxygen; ac_word=$2
8266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8268 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271 case $DOXYGEN in
8272 [\\/]* | ?:[\\/]*)
8273 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8279 IFS=$as_save_IFS
8280 test -z "$as_dir" && as_dir=.
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8283 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 break 2
8287 done
8288 done
8289 IFS=$as_save_IFS
8292 esac
8294 DOXYGEN=$ac_cv_path_DOXYGEN
8295 if test -n "$DOXYGEN"; then
8296 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8297 echo "${ECHO_T}$DOXYGEN" >&6; }
8298 else
8299 { echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6; }
8304 # Extract the first word of "groff", so it can be a program name with args.
8305 set dummy groff; ac_word=$2
8306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8308 if test "${ac_cv_path_GROFF+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311 case $GROFF in
8312 [\\/]* | ?:[\\/]*)
8313 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8323 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 break 2
8327 done
8328 done
8329 IFS=$as_save_IFS
8332 esac
8334 GROFF=$ac_cv_path_GROFF
8335 if test -n "$GROFF"; then
8336 { echo "$as_me:$LINENO: result: $GROFF" >&5
8337 echo "${ECHO_T}$GROFF" >&6; }
8338 else
8339 { echo "$as_me:$LINENO: result: no" >&5
8340 echo "${ECHO_T}no" >&6; }
8344 # Extract the first word of "gzip", so it can be a program name with args.
8345 set dummy gzip; ac_word=$2
8346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8348 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351 case $GZIPBIN in
8352 [\\/]* | ?:[\\/]*)
8353 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 for as_dir in $PATH
8359 IFS=$as_save_IFS
8360 test -z "$as_dir" && as_dir=.
8361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8363 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 break 2
8367 done
8368 done
8369 IFS=$as_save_IFS
8372 esac
8374 GZIPBIN=$ac_cv_path_GZIPBIN
8375 if test -n "$GZIPBIN"; then
8376 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8377 echo "${ECHO_T}$GZIPBIN" >&6; }
8378 else
8379 { echo "$as_me:$LINENO: result: no" >&5
8380 echo "${ECHO_T}no" >&6; }
8384 # Extract the first word of "pod2html", so it can be a program name with args.
8385 set dummy pod2html; ac_word=$2
8386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8388 if test "${ac_cv_path_POD2HTML+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8391 case $POD2HTML in
8392 [\\/]* | ?:[\\/]*)
8393 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 break 2
8407 done
8408 done
8409 IFS=$as_save_IFS
8412 esac
8414 POD2HTML=$ac_cv_path_POD2HTML
8415 if test -n "$POD2HTML"; then
8416 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8417 echo "${ECHO_T}$POD2HTML" >&6; }
8418 else
8419 { echo "$as_me:$LINENO: result: no" >&5
8420 echo "${ECHO_T}no" >&6; }
8424 # Extract the first word of "pod2man", so it can be a program name with args.
8425 set dummy pod2man; ac_word=$2
8426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8428 if test "${ac_cv_path_POD2MAN+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 else
8431 case $POD2MAN in
8432 [\\/]* | ?:[\\/]*)
8433 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2
8447 done
8448 done
8449 IFS=$as_save_IFS
8452 esac
8454 POD2MAN=$ac_cv_path_POD2MAN
8455 if test -n "$POD2MAN"; then
8456 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8457 echo "${ECHO_T}$POD2MAN" >&6; }
8458 else
8459 { echo "$as_me:$LINENO: result: no" >&5
8460 echo "${ECHO_T}no" >&6; }
8464 # Extract the first word of "pdfroff", so it can be a program name with args.
8465 set dummy pdfroff; ac_word=$2
8466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8468 if test "${ac_cv_path_PDFROFF+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471 case $PDFROFF in
8472 [\\/]* | ?:[\\/]*)
8473 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 for as_dir in $PATH
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8483 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 break 2
8487 done
8488 done
8489 IFS=$as_save_IFS
8492 esac
8494 PDFROFF=$ac_cv_path_PDFROFF
8495 if test -n "$PDFROFF"; then
8496 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8497 echo "${ECHO_T}$PDFROFF" >&6; }
8498 else
8499 { echo "$as_me:$LINENO: result: no" >&5
8500 echo "${ECHO_T}no" >&6; }
8504 # Extract the first word of "runtest", so it can be a program name with args.
8505 set dummy runtest; ac_word=$2
8506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8508 if test "${ac_cv_path_RUNTEST+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 else
8511 case $RUNTEST in
8512 [\\/]* | ?:[\\/]*)
8513 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517 for as_dir in $PATH
8519 IFS=$as_save_IFS
8520 test -z "$as_dir" && as_dir=.
8521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8523 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 break 2
8527 done
8528 done
8529 IFS=$as_save_IFS
8532 esac
8534 RUNTEST=$ac_cv_path_RUNTEST
8535 if test -n "$RUNTEST"; then
8536 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8537 echo "${ECHO_T}$RUNTEST" >&6; }
8538 else
8539 { echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6; }
8545 no_itcl=true
8546 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8547 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8549 # Check whether --with-tclinclude was given.
8550 if test "${with_tclinclude+set}" = set; then
8551 withval=$with_tclinclude; with_tclinclude=${withval}
8552 else
8553 with_tclinclude=''
8556 if test "${ac_cv_path_tclsh+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8560 if test x"${with_tclinclude}" != x ; then
8561 if test -f ${with_tclinclude}/tclsh ; then
8562 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8563 elif test -f ${with_tclinclude}/src/tclsh ; then
8564 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8565 else
8566 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8567 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8568 { (exit 1); exit 1; }; }
8574 if test x"${ac_cv_path_tclsh}" = x ; then
8575 { echo "$as_me:$LINENO: result: none" >&5
8576 echo "${ECHO_T}none" >&6; }
8577 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
8579 # Extract the first word of "$ac_prog", so it can be a program name with args.
8580 set dummy $ac_prog; ac_word=$2
8581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8583 if test "${ac_cv_path_TCLSH+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586 case $TCLSH in
8587 [\\/]* | ?:[\\/]*)
8588 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8598 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 break 2
8602 done
8603 done
8604 IFS=$as_save_IFS
8607 esac
8609 TCLSH=$ac_cv_path_TCLSH
8610 if test -n "$TCLSH"; then
8611 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8612 echo "${ECHO_T}$TCLSH" >&6; }
8613 else
8614 { echo "$as_me:$LINENO: result: no" >&5
8615 echo "${ECHO_T}no" >&6; }
8619 test -n "$TCLSH" && break
8620 done
8622 if test x"${TCLSH}" = x ; then
8623 ac_cv_path_tclsh='';
8624 else
8625 ac_cv_path_tclsh="${TCLSH}";
8627 else
8628 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8629 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8630 TCLSH="${ac_cv_path_tclsh}"
8634 # Extract the first word of "zip", so it can be a program name with args.
8635 set dummy zip; ac_word=$2
8636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8638 if test "${ac_cv_path_ZIP+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641 case $ZIP in
8642 [\\/]* | ?:[\\/]*)
8643 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8653 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 break 2
8657 done
8658 done
8659 IFS=$as_save_IFS
8662 esac
8664 ZIP=$ac_cv_path_ZIP
8665 if test -n "$ZIP"; then
8666 { echo "$as_me:$LINENO: result: $ZIP" >&5
8667 echo "${ECHO_T}$ZIP" >&6; }
8668 else
8669 { echo "$as_me:$LINENO: result: no" >&5
8670 echo "${ECHO_T}no" >&6; }
8674 for ac_prog in ocamlc
8676 # Extract the first word of "$ac_prog", so it can be a program name with args.
8677 set dummy $ac_prog; ac_word=$2
8678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8680 if test "${ac_cv_path_OCAMLC+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8682 else
8683 case $OCAMLC in
8684 [\\/]* | ?:[\\/]*)
8685 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 for as_dir in $PATH
8691 IFS=$as_save_IFS
8692 test -z "$as_dir" && as_dir=.
8693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8695 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8697 break 2
8699 done
8700 done
8701 IFS=$as_save_IFS
8704 esac
8706 OCAMLC=$ac_cv_path_OCAMLC
8707 if test -n "$OCAMLC"; then
8708 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8709 echo "${ECHO_T}$OCAMLC" >&6; }
8710 else
8711 { echo "$as_me:$LINENO: result: no" >&5
8712 echo "${ECHO_T}no" >&6; }
8716 test -n "$OCAMLC" && break
8717 done
8719 for ac_prog in ocamlopt
8721 # Extract the first word of "$ac_prog", so it can be a program name with args.
8722 set dummy $ac_prog; ac_word=$2
8723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8725 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728 case $OCAMLOPT in
8729 [\\/]* | ?:[\\/]*)
8730 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 for as_dir in $PATH
8736 IFS=$as_save_IFS
8737 test -z "$as_dir" && as_dir=.
8738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8740 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8742 break 2
8744 done
8745 done
8746 IFS=$as_save_IFS
8749 esac
8751 OCAMLOPT=$ac_cv_path_OCAMLOPT
8752 if test -n "$OCAMLOPT"; then
8753 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8754 echo "${ECHO_T}$OCAMLOPT" >&6; }
8755 else
8756 { echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6; }
8761 test -n "$OCAMLOPT" && break
8762 done
8764 for ac_prog in ocamldep
8766 # Extract the first word of "$ac_prog", so it can be a program name with args.
8767 set dummy $ac_prog; ac_word=$2
8768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8770 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 else
8773 case $OCAMLDEP in
8774 [\\/]* | ?:[\\/]*)
8775 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 for as_dir in $PATH
8781 IFS=$as_save_IFS
8782 test -z "$as_dir" && as_dir=.
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8785 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8787 break 2
8789 done
8790 done
8791 IFS=$as_save_IFS
8794 esac
8796 OCAMLDEP=$ac_cv_path_OCAMLDEP
8797 if test -n "$OCAMLDEP"; then
8798 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8799 echo "${ECHO_T}$OCAMLDEP" >&6; }
8800 else
8801 { echo "$as_me:$LINENO: result: no" >&5
8802 echo "${ECHO_T}no" >&6; }
8806 test -n "$OCAMLDEP" && break
8807 done
8809 for ac_prog in ocamldoc
8811 # Extract the first word of "$ac_prog", so it can be a program name with args.
8812 set dummy $ac_prog; ac_word=$2
8813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8815 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818 case $OCAMLDOC in
8819 [\\/]* | ?:[\\/]*)
8820 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8830 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 break 2
8834 done
8835 done
8836 IFS=$as_save_IFS
8839 esac
8841 OCAMLDOC=$ac_cv_path_OCAMLDOC
8842 if test -n "$OCAMLDOC"; then
8843 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8844 echo "${ECHO_T}$OCAMLDOC" >&6; }
8845 else
8846 { echo "$as_me:$LINENO: result: no" >&5
8847 echo "${ECHO_T}no" >&6; }
8851 test -n "$OCAMLDOC" && break
8852 done
8854 for ac_prog in gas as
8856 # Extract the first word of "$ac_prog", so it can be a program name with args.
8857 set dummy $ac_prog; ac_word=$2
8858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8860 if test "${ac_cv_path_GAS+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863 case $GAS in
8864 [\\/]* | ?:[\\/]*)
8865 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 for as_dir in $PATH
8871 IFS=$as_save_IFS
8872 test -z "$as_dir" && as_dir=.
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8875 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8877 break 2
8879 done
8880 done
8881 IFS=$as_save_IFS
8884 esac
8886 GAS=$ac_cv_path_GAS
8887 if test -n "$GAS"; then
8888 { echo "$as_me:$LINENO: result: $GAS" >&5
8889 echo "${ECHO_T}$GAS" >&6; }
8890 else
8891 { echo "$as_me:$LINENO: result: no" >&5
8892 echo "${ECHO_T}no" >&6; }
8896 test -n "$GAS" && break
8897 done
8900 { echo "$as_me:$LINENO: checking for linker version" >&5
8901 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8902 if test "${llvm_cv_link_version+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 else
8906 version_string="$(ld -v 2>&1 | head -1)"
8908 # Check for ld64.
8909 if (echo "$version_string" | grep -q "ld64"); then
8910 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8911 else
8912 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8916 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8917 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8919 cat >>confdefs.h <<_ACEOF
8920 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8921 _ACEOF
8925 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8926 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8927 if test "${llvm_cv_link_use_r+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930 ac_ext=c
8931 ac_cpp='$CPP $CPPFLAGS'
8932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8936 oldcflags="$CFLAGS"
8937 CFLAGS="$CFLAGS -Wl,-R."
8938 cat >conftest.$ac_ext <<_ACEOF
8939 /* confdefs.h. */
8940 _ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8946 main ()
8950 return 0;
8952 _ACEOF
8953 rm -f conftest.$ac_objext conftest$ac_exeext
8954 if { (ac_try="$ac_link"
8955 case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8958 esac
8959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_link") 2>conftest.er1
8961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8968 { (case "(($ac_try" in
8969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970 *) ac_try_echo=$ac_try;;
8971 esac
8972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_try") 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; } &&
8977 { ac_try='test -s conftest$ac_exeext'
8978 { (case "(($ac_try" in
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8981 esac
8982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983 (eval "$ac_try") 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 llvm_cv_link_use_r=yes
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 llvm_cv_link_use_r=no
8995 rm -f core conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997 CFLAGS="$oldcflags"
8998 ac_ext=c
8999 ac_cpp='$CPP $CPPFLAGS'
9000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9006 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9007 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
9008 if test "$llvm_cv_link_use_r" = yes ; then
9010 cat >>confdefs.h <<\_ACEOF
9011 #define HAVE_LINK_R 1
9012 _ACEOF
9017 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9018 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9019 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022 ac_ext=c
9023 ac_cpp='$CPP $CPPFLAGS'
9024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9028 oldcflags="$CFLAGS"
9029 CFLAGS="$CFLAGS -Wl,-export-dynamic"
9030 cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h. */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9038 main ()
9042 return 0;
9044 _ACEOF
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (ac_try="$ac_link"
9047 case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9050 esac
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_link") 2>conftest.er1
9053 ac_status=$?
9054 grep -v '^ *+' conftest.er1 >conftest.err
9055 rm -f conftest.er1
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9060 { (case "(($ac_try" in
9061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9063 esac
9064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065 (eval "$ac_try") 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest$ac_exeext'
9070 { (case "(($ac_try" in
9071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072 *) ac_try_echo=$ac_try;;
9073 esac
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_try") 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 llvm_cv_link_use_export_dynamic=yes
9080 else
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9084 llvm_cv_link_use_export_dynamic=no
9087 rm -f core conftest.err conftest.$ac_objext \
9088 conftest$ac_exeext conftest.$ac_ext
9089 CFLAGS="$oldcflags"
9090 ac_ext=c
9091 ac_cpp='$CPP $CPPFLAGS'
9092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9098 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9099 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9100 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9102 cat >>confdefs.h <<\_ACEOF
9103 #define HAVE_LINK_EXPORT_DYNAMIC 1
9104 _ACEOF
9109 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9110 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9111 if test "${llvm_cv_link_use_version_script+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 else
9114 ac_ext=c
9115 ac_cpp='$CPP $CPPFLAGS'
9116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9120 oldcflags="$CFLAGS"
9122 # The following code is from the autoconf manual,
9123 # "11.13: Limitations of Usual Tools".
9124 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9125 # Use mktemp if possible; otherwise fall back on mkdir,
9126 # with $RANDOM to make collisions less likely.
9127 : ${TMPDIR=/tmp}
9129 tmp=`
9130 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9131 ` &&
9132 test -n "$tmp" && test -d "$tmp"
9133 } || {
9134 tmp=$TMPDIR/foo$$-$RANDOM
9135 (umask 077 && mkdir "$tmp")
9136 } || exit $?
9138 echo "{" > "$tmp/export.map"
9139 echo " global: main;" >> "$tmp/export.map"
9140 echo " local: *;" >> "$tmp/export.map"
9141 echo "};" >> "$tmp/export.map"
9143 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9144 cat >conftest.$ac_ext <<_ACEOF
9145 /* confdefs.h. */
9146 _ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9152 main ()
9156 return 0;
9158 _ACEOF
9159 rm -f conftest.$ac_objext conftest$ac_exeext
9160 if { (ac_try="$ac_link"
9161 case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164 esac
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_link") 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } &&
9173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9174 { (case "(($ac_try" in
9175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176 *) ac_try_echo=$ac_try;;
9177 esac
9178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9179 (eval "$ac_try") 2>&5
9180 ac_status=$?
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; } &&
9183 { ac_try='test -s conftest$ac_exeext'
9184 { (case "(($ac_try" in
9185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9186 *) ac_try_echo=$ac_try;;
9187 esac
9188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9189 (eval "$ac_try") 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 llvm_cv_link_use_version_script=yes
9194 else
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9198 llvm_cv_link_use_version_script=no
9201 rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203 rm "$tmp/export.map"
9204 rmdir "$tmp"
9205 CFLAGS="$oldcflags"
9206 ac_ext=c
9207 ac_cpp='$CPP $CPPFLAGS'
9208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9214 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9215 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9216 if test "$llvm_cv_link_use_version_script" = yes ; then
9217 HAVE_LINK_VERSION_SCRIPT=1
9224 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9225 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9226 if test "${ac_cv_c_const+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229 cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h. */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9237 main ()
9239 /* FIXME: Include the comments suggested by Paul. */
9240 #ifndef __cplusplus
9241 /* Ultrix mips cc rejects this. */
9242 typedef int charset[2];
9243 const charset x;
9244 /* SunOS 4.1.1 cc rejects this. */
9245 char const *const *ccp;
9246 char **p;
9247 /* NEC SVR4.0.2 mips cc rejects this. */
9248 struct point {int x, y;};
9249 static struct point const zero = {0,0};
9250 /* AIX XL C 1.02.0.0 rejects this.
9251 It does not let you subtract one const X* pointer from another in
9252 an arm of an if-expression whose if-part is not a constant
9253 expression */
9254 const char *g = "string";
9255 ccp = &g + (g ? g-g : 0);
9256 /* HPUX 7.0 cc rejects these. */
9257 ++ccp;
9258 p = (char**) ccp;
9259 ccp = (char const *const *) p;
9260 { /* SCO 3.2v4 cc rejects this. */
9261 char *t;
9262 char const *s = 0 ? (char *) 0 : (char const *) 0;
9264 *t++ = 0;
9265 if (s) return 0;
9267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9268 int x[] = {25, 17};
9269 const int *foo = &x[0];
9270 ++foo;
9272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9273 typedef const int *iptr;
9274 iptr p = 0;
9275 ++p;
9277 { /* AIX XL C 1.02.0.0 rejects this saying
9278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9279 struct s { int j; const int *ap[3]; };
9280 struct s *b; b->j = 5;
9282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9283 const int foo = 10;
9284 if (!foo) return 0;
9286 return !x[0] && !zero.x;
9287 #endif
9290 return 0;
9292 _ACEOF
9293 rm -f conftest.$ac_objext
9294 if { (ac_try="$ac_compile"
9295 case "(($ac_try" in
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9298 esac
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300 (eval "$ac_compile") 2>conftest.er1
9301 ac_status=$?
9302 grep -v '^ *+' conftest.er1 >conftest.err
9303 rm -f conftest.er1
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9308 { (case "(($ac_try" in
9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9311 esac
9312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313 (eval "$ac_try") 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; } &&
9317 { ac_try='test -s conftest.$ac_objext'
9318 { (case "(($ac_try" in
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9321 esac
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_try") 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9327 ac_cv_c_const=yes
9328 else
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9332 ac_cv_c_const=no
9335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9338 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9339 if test $ac_cv_c_const = no; then
9341 cat >>confdefs.h <<\_ACEOF
9342 #define const
9343 _ACEOF
9352 ac_header_dirent=no
9353 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9354 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9355 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9356 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h. */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 #include <sys/types.h>
9367 #include <$ac_hdr>
9370 main ()
9372 if ((DIR *) 0)
9373 return 0;
9375 return 0;
9377 _ACEOF
9378 rm -f conftest.$ac_objext
9379 if { (ac_try="$ac_compile"
9380 case "(($ac_try" in
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9383 esac
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_compile") 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9393 { (case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9396 esac
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_try") 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try='test -s conftest.$ac_objext'
9403 { (case "(($ac_try" in
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9406 esac
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_try") 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 eval "$as_ac_Header=yes"
9413 else
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9417 eval "$as_ac_Header=no"
9420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9422 ac_res=`eval echo '${'$as_ac_Header'}'`
9423 { echo "$as_me:$LINENO: result: $ac_res" >&5
9424 echo "${ECHO_T}$ac_res" >&6; }
9425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9426 cat >>confdefs.h <<_ACEOF
9427 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9428 _ACEOF
9430 ac_header_dirent=$ac_hdr; break
9433 done
9434 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9435 if test $ac_header_dirent = dirent.h; then
9436 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9437 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9438 if test "${ac_cv_search_opendir+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441 ac_func_search_save_LIBS=$LIBS
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h. */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9449 /* Override any GCC internal prototype to avoid an error.
9450 Use char because int might match the return type of a GCC
9451 builtin and then its argument prototype would still apply. */
9452 #ifdef __cplusplus
9453 extern "C"
9454 #endif
9455 char opendir ();
9457 main ()
9459 return opendir ();
9461 return 0;
9463 _ACEOF
9464 for ac_lib in '' dir; do
9465 if test -z "$ac_lib"; then
9466 ac_res="none required"
9467 else
9468 ac_res=-l$ac_lib
9469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (ac_try="$ac_link"
9473 case "(($ac_try" in
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9476 esac
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_link") 2>conftest.er1
9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
9485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9486 { (case "(($ac_try" in
9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9489 esac
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_try") 2>&5
9492 ac_status=$?
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest$ac_exeext'
9496 { (case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9499 esac
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_try") 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9505 ac_cv_search_opendir=$ac_res
9506 else
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9513 rm -f core conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext
9515 if test "${ac_cv_search_opendir+set}" = set; then
9516 break
9518 done
9519 if test "${ac_cv_search_opendir+set}" = set; then
9521 else
9522 ac_cv_search_opendir=no
9524 rm conftest.$ac_ext
9525 LIBS=$ac_func_search_save_LIBS
9527 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9528 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9529 ac_res=$ac_cv_search_opendir
9530 if test "$ac_res" != no; then
9531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9535 else
9536 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9537 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9538 if test "${ac_cv_search_opendir+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541 ac_func_search_save_LIBS=$LIBS
9542 cat >conftest.$ac_ext <<_ACEOF
9543 /* confdefs.h. */
9544 _ACEOF
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h. */
9549 /* Override any GCC internal prototype to avoid an error.
9550 Use char because int might match the return type of a GCC
9551 builtin and then its argument prototype would still apply. */
9552 #ifdef __cplusplus
9553 extern "C"
9554 #endif
9555 char opendir ();
9557 main ()
9559 return opendir ();
9561 return 0;
9563 _ACEOF
9564 for ac_lib in '' x; do
9565 if test -z "$ac_lib"; then
9566 ac_res="none required"
9567 else
9568 ac_res=-l$ac_lib
9569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (ac_try="$ac_link"
9573 case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9576 esac
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_link") 2>conftest.er1
9579 ac_status=$?
9580 grep -v '^ *+' conftest.er1 >conftest.err
9581 rm -f conftest.er1
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } &&
9585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9586 { (case "(($ac_try" in
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9589 esac
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_try") 2>&5
9592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try='test -s conftest$ac_exeext'
9596 { (case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599 esac
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_try") 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; }; then
9605 ac_cv_search_opendir=$ac_res
9606 else
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9613 rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext
9615 if test "${ac_cv_search_opendir+set}" = set; then
9616 break
9618 done
9619 if test "${ac_cv_search_opendir+set}" = set; then
9621 else
9622 ac_cv_search_opendir=no
9624 rm conftest.$ac_ext
9625 LIBS=$ac_func_search_save_LIBS
9627 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9628 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9629 ac_res=$ac_cv_search_opendir
9630 if test "$ac_res" != no; then
9631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9638 for ac_header in dlfcn.h
9640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 ac_res=`eval echo '${'$as_ac_Header'}'`
9648 { echo "$as_me:$LINENO: result: $ac_res" >&5
9649 echo "${ECHO_T}$ac_res" >&6; }
9650 else
9651 # Is the header compilable?
9652 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h. */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 $ac_includes_default
9661 #include <$ac_header>
9662 _ACEOF
9663 rm -f conftest.$ac_objext
9664 if { (ac_try="$ac_compile"
9665 case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_compile") 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9678 { (case "(($ac_try" in
9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9681 esac
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_try") 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest.$ac_objext'
9688 { (case "(($ac_try" in
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9691 esac
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_try") 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 ac_header_compiler=yes
9698 else
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9702 ac_header_compiler=no
9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9707 echo "${ECHO_T}$ac_header_compiler" >&6; }
9709 # Is the header present?
9710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9712 cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h. */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 #include <$ac_header>
9719 _ACEOF
9720 if { (ac_try="$ac_cpp conftest.$ac_ext"
9721 case "(($ac_try" in
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9724 esac
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } >/dev/null; then
9733 if test -s conftest.err; then
9734 ac_cpp_err=$ac_c_preproc_warn_flag
9735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9736 else
9737 ac_cpp_err=
9739 else
9740 ac_cpp_err=yes
9742 if test -z "$ac_cpp_err"; then
9743 ac_header_preproc=yes
9744 else
9745 echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9748 ac_header_preproc=no
9751 rm -f conftest.err conftest.$ac_ext
9752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9753 echo "${ECHO_T}$ac_header_preproc" >&6; }
9755 # So? What about this header?
9756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9757 yes:no: )
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9762 ac_header_preproc=yes
9764 no:yes:* )
9765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9777 ( cat <<\_ASBOX
9778 ## ----------------------------------- ##
9779 ## Report this to llvmbugs@cs.uiuc.edu ##
9780 ## ----------------------------------- ##
9781 _ASBOX
9782 ) | sed "s/^/$as_me: WARNING: /" >&2
9784 esac
9785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 else
9790 eval "$as_ac_Header=\$ac_header_preproc"
9792 ac_res=`eval echo '${'$as_ac_Header'}'`
9793 { echo "$as_me:$LINENO: result: $ac_res" >&5
9794 echo "${ECHO_T}$ac_res" >&6; }
9797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9798 cat >>confdefs.h <<_ACEOF
9799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9800 _ACEOF
9804 done
9806 # Check whether --enable-ltdl-install was given.
9807 if test "${enable_ltdl_install+set}" = set; then
9808 enableval=$enable_ltdl_install;
9814 if test x"${enable_ltdl_install-no}" != xno; then
9815 INSTALL_LTDL_TRUE=
9816 INSTALL_LTDL_FALSE='#'
9817 else
9818 INSTALL_LTDL_TRUE='#'
9819 INSTALL_LTDL_FALSE=
9824 if test x"${enable_ltdl_convenience-no}" != xno; then
9825 CONVENIENCE_LTDL_TRUE=
9826 CONVENIENCE_LTDL_FALSE='#'
9827 else
9828 CONVENIENCE_LTDL_TRUE='#'
9829 CONVENIENCE_LTDL_FALSE=
9833 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9834 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9835 library_names_spec=
9836 libname_spec='lib$name'
9837 soname_spec=
9838 shrext_cmds=".so"
9839 postinstall_cmds=
9840 postuninstall_cmds=
9841 finish_cmds=
9842 finish_eval=
9843 shlibpath_var=
9844 shlibpath_overrides_runpath=unknown
9845 version_type=none
9846 dynamic_linker="$host_os ld.so"
9847 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9848 if test "$GCC" = yes; then
9849 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9850 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9851 # if the path contains ";" then we assume it to be the separator
9852 # otherwise default to the standard path separator (i.e. ":") - it is
9853 # assumed that no part of a normal pathname contains ";" but that should
9854 # okay in the real world where ";" in dirpaths is itself problematic.
9855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9856 else
9857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9859 else
9860 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9862 need_lib_prefix=unknown
9863 hardcode_into_libs=no
9865 # when you set need_version to no, make sure it does not cause -set_version
9866 # flags to be left without arguments
9867 need_version=unknown
9869 case $host_os in
9870 aix3*)
9871 version_type=linux
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9873 shlibpath_var=LIBPATH
9875 # AIX 3 has no versioning support, so we append a major version to the name.
9876 soname_spec='${libname}${release}${shared_ext}$major'
9879 aix4* | aix5*)
9880 version_type=linux
9881 need_lib_prefix=no
9882 need_version=no
9883 hardcode_into_libs=yes
9884 if test "$host_cpu" = ia64; then
9885 # AIX 5 supports IA64
9886 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9887 shlibpath_var=LD_LIBRARY_PATH
9888 else
9889 # With GCC up to 2.95.x, collect2 would create an import file
9890 # for dependence libraries. The import file would start with
9891 # the line `#! .'. This would cause the generated library to
9892 # depend on `.', always an invalid library. This was fixed in
9893 # development snapshots of GCC prior to 3.0.
9894 case $host_os in
9895 aix4 | aix4.[01] | aix4.[01].*)
9896 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9897 echo ' yes '
9898 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9900 else
9901 can_build_shared=no
9904 esac
9905 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9906 # soname into executable. Probably we can add versioning support to
9907 # collect2, so additional links can be useful in future.
9908 if test "$aix_use_runtimelinking" = yes; then
9909 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9910 # instead of lib<name>.a to let people know that these are not
9911 # typical AIX shared libraries.
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913 else
9914 # We preserve .a as extension for shared libraries through AIX4.2
9915 # and later when we are not doing run time linking.
9916 library_names_spec='${libname}${release}.a $libname.a'
9917 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LIBPATH
9923 amigaos*)
9924 library_names_spec='$libname.ixlibrary $libname.a'
9925 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9926 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'
9929 beos*)
9930 library_names_spec='${libname}${shared_ext}'
9931 dynamic_linker="$host_os ld.so"
9932 shlibpath_var=LIBRARY_PATH
9935 bsdi[45]*)
9936 version_type=linux
9937 need_version=no
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 soname_spec='${libname}${release}${shared_ext}$major'
9940 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9941 shlibpath_var=LD_LIBRARY_PATH
9942 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9943 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9944 # the default ld.so.conf also contains /usr/contrib/lib and
9945 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9946 # libtool to hard-code these into programs
9949 cygwin* | mingw* | pw32*)
9950 version_type=windows
9951 shrext_cmds=".dll"
9952 need_version=no
9953 need_lib_prefix=no
9955 case $GCC,$host_os in
9956 yes,cygwin* | yes,mingw* | yes,pw32*)
9957 library_names_spec='$libname.dll.a'
9958 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9959 postinstall_cmds='base_file=`basename \${file}`~
9960 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9961 dldir=$destdir/`dirname \$dlpath`~
9962 test -d \$dldir || mkdir -p \$dldir~
9963 $install_prog $dir/$dlname \$dldir/$dlname~
9964 chmod a+x \$dldir/$dlname'
9965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9966 dlpath=$dir/\$dldll~
9967 $rm \$dlpath'
9968 shlibpath_overrides_runpath=yes
9970 case $host_os in
9971 cygwin*)
9972 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9973 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9974 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9976 mingw*)
9977 # MinGW DLLs use traditional 'lib' prefix
9978 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9979 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9980 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9981 # It is most probably a Windows format PATH printed by
9982 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9983 # path with ; separators, and with drive letters. We can handle the
9984 # drive letters (cygwin fileutils understands them), so leave them,
9985 # especially as we might pass files found there to a mingw objdump,
9986 # which wouldn't understand a cygwinified path. Ahh.
9987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9988 else
9989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9992 pw32*)
9993 # pw32 DLLs use 'pw' prefix rather than 'lib'
9994 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9996 esac
10000 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10002 esac
10003 dynamic_linker='Win32 ld.exe'
10004 # FIXME: first we should search . and the directory the executable is in
10005 shlibpath_var=PATH
10008 darwin* | rhapsody*)
10009 dynamic_linker="$host_os dyld"
10010 version_type=darwin
10011 need_lib_prefix=no
10012 need_version=no
10013 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10014 soname_spec='${libname}${release}${major}$shared_ext'
10015 shlibpath_overrides_runpath=yes
10016 shlibpath_var=DYLD_LIBRARY_PATH
10017 shrext_cmds='.dylib'
10018 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10019 if test "$GCC" = yes; then
10020 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"`
10021 else
10022 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10027 dgux*)
10028 version_type=linux
10029 need_lib_prefix=no
10030 need_version=no
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10032 soname_spec='${libname}${release}${shared_ext}$major'
10033 shlibpath_var=LD_LIBRARY_PATH
10036 freebsd1*)
10037 dynamic_linker=no
10040 kfreebsd*-gnu)
10041 version_type=linux
10042 need_lib_prefix=no
10043 need_version=no
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=no
10048 hardcode_into_libs=yes
10049 dynamic_linker='GNU ld.so'
10052 freebsd* | dragonfly*)
10053 # DragonFly does not have aout. When/if they implement a new
10054 # versioning mechanism, adjust this.
10055 if test -x /usr/bin/objformat; then
10056 objformat=`/usr/bin/objformat`
10057 else
10058 case $host_os in
10059 freebsd[123]*) objformat=aout ;;
10060 *) objformat=elf ;;
10061 esac
10063 version_type=freebsd-$objformat
10064 case $version_type in
10065 freebsd-elf*)
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10067 need_version=no
10068 need_lib_prefix=no
10070 freebsd-*)
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10072 need_version=yes
10074 esac
10075 shlibpath_var=LD_LIBRARY_PATH
10076 case $host_os in
10077 freebsd2*)
10078 shlibpath_overrides_runpath=yes
10080 freebsd3.[01]* | freebsdelf3.[01]*)
10081 shlibpath_overrides_runpath=yes
10082 hardcode_into_libs=yes
10084 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10085 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10086 shlibpath_overrides_runpath=no
10087 hardcode_into_libs=yes
10089 freebsd*) # from 4.6 on
10090 shlibpath_overrides_runpath=yes
10091 hardcode_into_libs=yes
10093 esac
10096 gnu*)
10097 version_type=linux
10098 need_lib_prefix=no
10099 need_version=no
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10101 soname_spec='${libname}${release}${shared_ext}$major'
10102 shlibpath_var=LD_LIBRARY_PATH
10103 hardcode_into_libs=yes
10106 hpux9* | hpux10* | hpux11*)
10107 # Give a soname corresponding to the major version so that dld.sl refuses to
10108 # link against other versions.
10109 version_type=sunos
10110 need_lib_prefix=no
10111 need_version=no
10112 case $host_cpu in
10113 ia64*)
10114 shrext_cmds='.so'
10115 hardcode_into_libs=yes
10116 dynamic_linker="$host_os dld.so"
10117 shlibpath_var=LD_LIBRARY_PATH
10118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120 soname_spec='${libname}${release}${shared_ext}$major'
10121 if test "X$HPUX_IA64_MODE" = X32; then
10122 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10123 else
10124 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10128 hppa*64*)
10129 shrext_cmds='.sl'
10130 hardcode_into_libs=yes
10131 dynamic_linker="$host_os dld.sl"
10132 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10140 shrext_cmds='.sl'
10141 dynamic_linker="$host_os dld.sl"
10142 shlibpath_var=SHLIB_PATH
10143 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 soname_spec='${libname}${release}${shared_ext}$major'
10147 esac
10148 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10149 postinstall_cmds='chmod 555 $lib'
10152 interix3*)
10153 version_type=linux
10154 need_lib_prefix=no
10155 need_version=no
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10159 shlibpath_var=LD_LIBRARY_PATH
10160 shlibpath_overrides_runpath=no
10161 hardcode_into_libs=yes
10164 irix5* | irix6* | nonstopux*)
10165 case $host_os in
10166 nonstopux*) version_type=nonstopux ;;
10168 if test "$lt_cv_prog_gnu_ld" = yes; then
10169 version_type=linux
10170 else
10171 version_type=irix
10172 fi ;;
10173 esac
10174 need_lib_prefix=no
10175 need_version=no
10176 soname_spec='${libname}${release}${shared_ext}$major'
10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10178 case $host_os in
10179 irix5* | nonstopux*)
10180 libsuff= shlibsuff=
10183 case $LD in # libtool.m4 will add one of these switches to LD
10184 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10185 libsuff= shlibsuff= libmagic=32-bit;;
10186 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10187 libsuff=32 shlibsuff=N32 libmagic=N32;;
10188 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10189 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10190 *) libsuff= shlibsuff= libmagic=never-match;;
10191 esac
10193 esac
10194 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10195 shlibpath_overrides_runpath=no
10196 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10197 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10198 hardcode_into_libs=yes
10201 # No shared lib support for Linux oldld, aout, or coff.
10202 linux*oldld* | linux*aout* | linux*coff*)
10203 dynamic_linker=no
10206 # This must be Linux ELF.
10207 linux*)
10208 version_type=linux
10209 need_lib_prefix=no
10210 need_version=no
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath=no
10216 # This implies no fast_install, which is unacceptable.
10217 # Some rework will be needed to allow for fast_install
10218 # before this can be enabled.
10219 hardcode_into_libs=yes
10221 # Append ld.so.conf contents to the search path
10222 if test -f /etc/ld.so.conf; then
10223 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' ' '`
10224 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10227 # We used to test for /lib/ld.so.1 and disable shared libraries on
10228 # powerpc, because MkLinux only supported shared libraries with the
10229 # GNU dynamic linker. Since this was broken with cross compilers,
10230 # most powerpc-linux boxes support dynamic linking these days and
10231 # people can always --disable-shared, the test was removed, and we
10232 # assume the GNU/Linux dynamic linker is in use.
10233 dynamic_linker='GNU/Linux ld.so'
10236 knetbsd*-gnu)
10237 version_type=linux
10238 need_lib_prefix=no
10239 need_version=no
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath=no
10244 hardcode_into_libs=yes
10245 dynamic_linker='GNU ld.so'
10248 netbsd*)
10249 version_type=sunos
10250 need_lib_prefix=no
10251 need_version=no
10252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10255 dynamic_linker='NetBSD (a.out) ld.so'
10256 else
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10258 soname_spec='${libname}${release}${shared_ext}$major'
10259 dynamic_linker='NetBSD ld.elf_so'
10261 shlibpath_var=LD_LIBRARY_PATH
10262 shlibpath_overrides_runpath=yes
10263 hardcode_into_libs=yes
10266 newsos6)
10267 version_type=linux
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes
10273 nto-qnx*)
10274 version_type=linux
10275 need_lib_prefix=no
10276 need_version=no
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278 soname_spec='${libname}${release}${shared_ext}$major'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=yes
10283 openbsd*)
10284 version_type=sunos
10285 sys_lib_dlsearch_path_spec="/usr/lib"
10286 need_lib_prefix=no
10287 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10288 case $host_os in
10289 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10290 *) need_version=no ;;
10291 esac
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10296 case $host_os in
10297 openbsd2.[89] | openbsd2.[89].*)
10298 shlibpath_overrides_runpath=no
10301 shlibpath_overrides_runpath=yes
10303 esac
10304 else
10305 shlibpath_overrides_runpath=yes
10309 os2*)
10310 libname_spec='$name'
10311 shrext_cmds=".dll"
10312 need_lib_prefix=no
10313 library_names_spec='$libname${shared_ext} $libname.a'
10314 dynamic_linker='OS/2 ld.exe'
10315 shlibpath_var=LIBPATH
10318 osf3* | osf4* | osf5*)
10319 version_type=osf
10320 need_lib_prefix=no
10321 need_version=no
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10326 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10329 solaris*)
10330 version_type=linux
10331 need_lib_prefix=no
10332 need_version=no
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 shlibpath_overrides_runpath=yes
10337 hardcode_into_libs=yes
10338 # ldd complains unless libraries are executable
10339 postinstall_cmds='chmod +x $lib'
10342 sunos4*)
10343 version_type=sunos
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10345 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10346 shlibpath_var=LD_LIBRARY_PATH
10347 shlibpath_overrides_runpath=yes
10348 if test "$with_gnu_ld" = yes; then
10349 need_lib_prefix=no
10351 need_version=yes
10354 sysv4 | sysv4.3*)
10355 version_type=linux
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 shlibpath_var=LD_LIBRARY_PATH
10359 case $host_vendor in
10360 sni)
10361 shlibpath_overrides_runpath=no
10362 need_lib_prefix=no
10363 export_dynamic_flag_spec='${wl}-Blargedynsym'
10364 runpath_var=LD_RUN_PATH
10366 siemens)
10367 need_lib_prefix=no
10369 motorola)
10370 need_lib_prefix=no
10371 need_version=no
10372 shlibpath_overrides_runpath=no
10373 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10375 esac
10378 sysv4*MP*)
10379 if test -d /usr/nec ;then
10380 version_type=linux
10381 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10382 soname_spec='$libname${shared_ext}.$major'
10383 shlibpath_var=LD_LIBRARY_PATH
10387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10388 version_type=freebsd-elf
10389 need_lib_prefix=no
10390 need_version=no
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 shlibpath_var=LD_LIBRARY_PATH
10394 hardcode_into_libs=yes
10395 if test "$with_gnu_ld" = yes; then
10396 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10397 shlibpath_overrides_runpath=no
10398 else
10399 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10400 shlibpath_overrides_runpath=yes
10401 case $host_os in
10402 sco3.2v5*)
10403 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10405 esac
10407 sys_lib_dlsearch_path_spec='/usr/lib'
10410 uts4*)
10411 version_type=linux
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10413 soname_spec='${libname}${release}${shared_ext}$major'
10414 shlibpath_var=LD_LIBRARY_PATH
10418 dynamic_linker=no
10420 esac
10421 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10422 echo "${ECHO_T}$dynamic_linker" >&6; }
10423 test "$dynamic_linker" = no && can_build_shared=no
10425 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10426 if test "$GCC" = yes; then
10427 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10431 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10432 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10433 if test "${libltdl_cv_shlibext+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10437 module=yes
10438 eval libltdl_cv_shlibext=$shrext_cmds
10441 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10442 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10443 if test -n "$libltdl_cv_shlibext"; then
10445 cat >>confdefs.h <<_ACEOF
10446 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10447 _ACEOF
10452 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10453 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10454 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457 libltdl_cv_shlibpath_var="$shlibpath_var"
10459 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10460 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10461 if test -n "$libltdl_cv_shlibpath_var"; then
10463 cat >>confdefs.h <<_ACEOF
10464 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10465 _ACEOF
10470 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10471 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10472 if test "${libltdl_cv_sys_search_path+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10477 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10478 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10479 if test -n "$libltdl_cv_sys_search_path"; then
10480 sys_search_path=
10481 for dir in $libltdl_cv_sys_search_path; do
10482 if test -z "$sys_search_path"; then
10483 sys_search_path="$dir"
10484 else
10485 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10487 done
10489 cat >>confdefs.h <<_ACEOF
10490 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10491 _ACEOF
10495 { echo "$as_me:$LINENO: checking for objdir" >&5
10496 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10497 if test "${libltdl_cv_objdir+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 else
10500 libltdl_cv_objdir="$objdir"
10501 if test -n "$objdir"; then
10503 else
10504 rm -f .libs 2>/dev/null
10505 mkdir .libs 2>/dev/null
10506 if test -d .libs; then
10507 libltdl_cv_objdir=.libs
10508 else
10509 # MS-DOS does not allow filenames that begin with a dot.
10510 libltdl_cv_objdir=_libs
10512 rmdir .libs 2>/dev/null
10516 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10517 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10519 cat >>confdefs.h <<_ACEOF
10520 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10521 _ACEOF
10528 # Check for command to grab the raw symbol name followed by C symbol from nm.
10529 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10530 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10531 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10535 # These are sane defaults that work on at least a few old systems.
10536 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10538 # Character class describing NM global symbol codes.
10539 symcode='[BCDEGRST]'
10541 # Regexp to match symbols that can be accessed directly from C.
10542 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10544 # Transform an extracted symbol line into a proper C declaration
10545 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10547 # Transform an extracted symbol line into symbol name and symbol address
10548 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'"
10550 # Define system-specific variables.
10551 case $host_os in
10552 aix*)
10553 symcode='[BCDT]'
10555 cygwin* | mingw* | pw32*)
10556 symcode='[ABCDGISTW]'
10558 hpux*) # Its linker distinguishes data from code symbols
10559 if test "$host_cpu" = ia64; then
10560 symcode='[ABCDEGRST]'
10562 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10563 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'"
10565 linux*)
10566 if test "$host_cpu" = ia64; then
10567 symcode='[ABCDGIRSTW]'
10568 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10569 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'"
10572 irix* | nonstopux*)
10573 symcode='[BCDEGRST]'
10575 osf*)
10576 symcode='[BCDEGQRST]'
10578 solaris*)
10579 symcode='[BDRT]'
10581 sco3.2v5*)
10582 symcode='[DT]'
10584 sysv4.2uw2*)
10585 symcode='[DT]'
10587 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10588 symcode='[ABDT]'
10590 sysv4)
10591 symcode='[DFNSTU]'
10593 esac
10595 # Handle CRLF in mingw tool chain
10596 opt_cr=
10597 case $build_os in
10598 mingw*)
10599 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10601 esac
10603 # If we're using GNU nm, then use its standard symbol codes.
10604 case `$NM -V 2>&1` in
10605 *GNU* | *'with BFD'*)
10606 symcode='[ABCDGIRSTW]' ;;
10607 esac
10609 # Try without a prefix undercore, then with it.
10610 for ac_symprfx in "" "_"; do
10612 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10613 symxfrm="\\1 $ac_symprfx\\2 \\2"
10615 # Write the raw and C identifiers.
10616 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10618 # Check to see that the pipe works correctly.
10619 pipe_works=no
10621 rm -f conftest*
10622 cat > conftest.$ac_ext <<EOF
10623 #ifdef __cplusplus
10624 extern "C" {
10625 #endif
10626 char nm_test_var;
10627 void nm_test_func(){}
10628 #ifdef __cplusplus
10630 #endif
10631 int main(){nm_test_var='a';nm_test_func();return(0);}
10634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10635 (eval $ac_compile) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; then
10639 # Now try to grab the symbols.
10640 nlist=conftest.nm
10641 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10642 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && test -s "$nlist"; then
10646 # Try sorting and uniquifying the output.
10647 if sort "$nlist" | uniq > "$nlist"T; then
10648 mv -f "$nlist"T "$nlist"
10649 else
10650 rm -f "$nlist"T
10653 # Make sure that we snagged all the symbols we need.
10654 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10655 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10656 cat <<EOF > conftest.$ac_ext
10657 #ifdef __cplusplus
10658 extern "C" {
10659 #endif
10662 # Now generate the symbol file.
10663 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10665 cat <<EOF >> conftest.$ac_ext
10666 #if defined (__STDC__) && __STDC__
10667 # define lt_ptr_t void *
10668 #else
10669 # define lt_ptr_t char *
10670 # define const
10671 #endif
10673 /* The mapping between symbol names and symbols. */
10674 const struct {
10675 const char *name;
10676 lt_ptr_t address;
10678 lt_preloaded_symbols[] =
10681 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10682 cat <<\EOF >> conftest.$ac_ext
10683 {0, (lt_ptr_t) 0}
10686 #ifdef __cplusplus
10688 #endif
10690 # Now try linking the two files.
10691 mv conftest.$ac_objext conftstm.$ac_objext
10692 lt_save_LIBS="$LIBS"
10693 lt_save_CFLAGS="$CFLAGS"
10694 LIBS="conftstm.$ac_objext"
10695 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10697 (eval $ac_link) 2>&5
10698 ac_status=$?
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10701 pipe_works=yes
10703 LIBS="$lt_save_LIBS"
10704 CFLAGS="$lt_save_CFLAGS"
10705 else
10706 echo "cannot find nm_test_func in $nlist" >&5
10708 else
10709 echo "cannot find nm_test_var in $nlist" >&5
10711 else
10712 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10714 else
10715 echo "$progname: failed program was:" >&5
10716 cat conftest.$ac_ext >&5
10718 rm -f conftest* conftst*
10720 # Do not use the global_symbol_pipe unless it works.
10721 if test "$pipe_works" = yes; then
10722 break
10723 else
10724 lt_cv_sys_global_symbol_pipe=
10726 done
10730 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10731 lt_cv_sys_global_symbol_to_cdecl=
10733 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10734 { echo "$as_me:$LINENO: result: failed" >&5
10735 echo "${ECHO_T}failed" >&6; }
10736 else
10737 { echo "$as_me:$LINENO: result: ok" >&5
10738 echo "${ECHO_T}ok" >&6; }
10742 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10743 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10744 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10748 libltdl_cv_preloaded_symbols=yes
10749 else
10750 libltdl_cv_preloaded_symbols=no
10754 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10755 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10756 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10758 cat >>confdefs.h <<\_ACEOF
10759 #define HAVE_PRELOADED_SYMBOLS 1
10760 _ACEOF
10764 LIBADD_DL=
10766 ac_ext=c
10767 ac_cpp='$CPP $CPPFLAGS'
10768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10773 { echo "$as_me:$LINENO: checking for shl_load" >&5
10774 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10775 if test "${ac_cv_func_shl_load+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778 cat >conftest.$ac_ext <<_ACEOF
10779 /* confdefs.h. */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10786 #define shl_load innocuous_shl_load
10788 /* System header to define __stub macros and hopefully few prototypes,
10789 which can conflict with char shl_load (); below.
10790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791 <limits.h> exists even on freestanding compilers. */
10793 #ifdef __STDC__
10794 # include <limits.h>
10795 #else
10796 # include <assert.h>
10797 #endif
10799 #undef shl_load
10801 /* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 char shl_load ();
10808 /* The GNU C library defines this for functions which it implements
10809 to always fail with ENOSYS. Some functions are actually named
10810 something starting with __ and the normal name is an alias. */
10811 #if defined __stub_shl_load || defined __stub___shl_load
10812 choke me
10813 #endif
10816 main ()
10818 return shl_load ();
10820 return 0;
10822 _ACEOF
10823 rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (ac_try="$ac_link"
10825 case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10828 esac
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_link") 2>conftest.er1
10831 ac_status=$?
10832 grep -v '^ *+' conftest.er1 >conftest.err
10833 rm -f conftest.er1
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_try") 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_cv_func_shl_load=yes
10858 else
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 ac_cv_func_shl_load=no
10865 rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10868 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10869 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10870 if test $ac_cv_func_shl_load = yes; then
10872 cat >>confdefs.h <<\_ACEOF
10873 #define HAVE_SHL_LOAD 1
10874 _ACEOF
10876 else
10877 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10878 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10879 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882 ac_check_lib_save_LIBS=$LIBS
10883 LIBS="-ldld $LIBS"
10884 cat >conftest.$ac_ext <<_ACEOF
10885 /* confdefs.h. */
10886 _ACEOF
10887 cat confdefs.h >>conftest.$ac_ext
10888 cat >>conftest.$ac_ext <<_ACEOF
10889 /* end confdefs.h. */
10891 /* Override any GCC internal prototype to avoid an error.
10892 Use char because int might match the return type of a GCC
10893 builtin and then its argument prototype would still apply. */
10894 #ifdef __cplusplus
10895 extern "C"
10896 #endif
10897 char shl_load ();
10899 main ()
10901 return shl_load ();
10903 return 0;
10905 _ACEOF
10906 rm -f conftest.$ac_objext conftest$ac_exeext
10907 if { (ac_try="$ac_link"
10908 case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10911 esac
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_link") 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10921 { (case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924 esac
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_try") 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; } &&
10930 { ac_try='test -s conftest$ac_exeext'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 ac_cv_lib_dld_shl_load=yes
10941 else
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 ac_cv_lib_dld_shl_load=no
10948 rm -f core conftest.err conftest.$ac_objext \
10949 conftest$ac_exeext conftest.$ac_ext
10950 LIBS=$ac_check_lib_save_LIBS
10952 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10953 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10954 if test $ac_cv_lib_dld_shl_load = yes; then
10956 cat >>confdefs.h <<\_ACEOF
10957 #define HAVE_SHL_LOAD 1
10958 _ACEOF
10960 LIBADD_DL="$LIBADD_DL -ldld"
10961 else
10962 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10963 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10964 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10967 ac_check_lib_save_LIBS=$LIBS
10968 LIBS="-ldl $LIBS"
10969 cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h. */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10976 /* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
10979 #ifdef __cplusplus
10980 extern "C"
10981 #endif
10982 char dlopen ();
10984 main ()
10986 return dlopen ();
10988 return 0;
10990 _ACEOF
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (ac_try="$ac_link"
10993 case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_link") 2>conftest.er1
10999 ac_status=$?
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11006 { (case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11009 esac
11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_try") 2>&5
11012 ac_status=$?
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; } &&
11015 { ac_try='test -s conftest$ac_exeext'
11016 { (case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019 esac
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_try") 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_cv_lib_dl_dlopen=yes
11026 else
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_cv_lib_dl_dlopen=no
11033 rm -f core conftest.err conftest.$ac_objext \
11034 conftest$ac_exeext conftest.$ac_ext
11035 LIBS=$ac_check_lib_save_LIBS
11037 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11038 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11039 if test $ac_cv_lib_dl_dlopen = yes; then
11041 cat >>confdefs.h <<\_ACEOF
11042 #define HAVE_LIBDL 1
11043 _ACEOF
11045 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11046 else
11047 cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h. */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11053 #if HAVE_DLFCN_H
11054 # include <dlfcn.h>
11055 #endif
11058 main ()
11060 dlopen(0, 0);
11062 return 0;
11064 _ACEOF
11065 rm -f conftest.$ac_objext conftest$ac_exeext
11066 if { (ac_try="$ac_link"
11067 case "(($ac_try" in
11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069 *) ac_try_echo=$ac_try;;
11070 esac
11071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11072 (eval "$ac_link") 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
11079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11080 { (case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11083 esac
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_try") 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try='test -s conftest$ac_exeext'
11090 { (case "(($ac_try" in
11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11093 esac
11094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095 (eval "$ac_try") 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
11100 cat >>confdefs.h <<\_ACEOF
11101 #define HAVE_LIBDL 1
11102 _ACEOF
11103 libltdl_cv_func_dlopen="yes"
11104 else
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11109 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11110 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113 ac_check_lib_save_LIBS=$LIBS
11114 LIBS="-lsvld $LIBS"
11115 cat >conftest.$ac_ext <<_ACEOF
11116 /* confdefs.h. */
11117 _ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11122 /* Override any GCC internal prototype to avoid an error.
11123 Use char because int might match the return type of a GCC
11124 builtin and then its argument prototype would still apply. */
11125 #ifdef __cplusplus
11126 extern "C"
11127 #endif
11128 char dlopen ();
11130 main ()
11132 return dlopen ();
11134 return 0;
11136 _ACEOF
11137 rm -f conftest.$ac_objext conftest$ac_exeext
11138 if { (ac_try="$ac_link"
11139 case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11142 esac
11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_link") 2>conftest.er1
11145 ac_status=$?
11146 grep -v '^ *+' conftest.er1 >conftest.err
11147 rm -f conftest.er1
11148 cat conftest.err >&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } &&
11151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11152 { (case "(($ac_try" in
11153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154 *) ac_try_echo=$ac_try;;
11155 esac
11156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157 (eval "$ac_try") 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try='test -s conftest$ac_exeext'
11162 { (case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11165 esac
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_try") 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 ac_cv_lib_svld_dlopen=yes
11172 else
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11176 ac_cv_lib_svld_dlopen=no
11179 rm -f core conftest.err conftest.$ac_objext \
11180 conftest$ac_exeext conftest.$ac_ext
11181 LIBS=$ac_check_lib_save_LIBS
11183 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11184 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11185 if test $ac_cv_lib_svld_dlopen = yes; then
11187 cat >>confdefs.h <<\_ACEOF
11188 #define HAVE_LIBDL 1
11189 _ACEOF
11191 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11192 else
11193 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198 ac_check_lib_save_LIBS=$LIBS
11199 LIBS="-ldld $LIBS"
11200 cat >conftest.$ac_ext <<_ACEOF
11201 /* confdefs.h. */
11202 _ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11207 /* Override any GCC internal prototype to avoid an error.
11208 Use char because int might match the return type of a GCC
11209 builtin and then its argument prototype would still apply. */
11210 #ifdef __cplusplus
11211 extern "C"
11212 #endif
11213 char dld_link ();
11215 main ()
11217 return dld_link ();
11219 return 0;
11221 _ACEOF
11222 rm -f conftest.$ac_objext conftest$ac_exeext
11223 if { (ac_try="$ac_link"
11224 case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11227 esac
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_link") 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11237 { (case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240 esac
11241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_try") 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; } &&
11246 { ac_try='test -s conftest$ac_exeext'
11247 { (case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11250 esac
11251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_try") 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_cv_lib_dld_dld_link=yes
11257 else
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ac_cv_lib_dld_dld_link=no
11264 rm -f core conftest.err conftest.$ac_objext \
11265 conftest$ac_exeext conftest.$ac_ext
11266 LIBS=$ac_check_lib_save_LIBS
11268 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11269 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11270 if test $ac_cv_lib_dld_dld_link = yes; then
11272 cat >>confdefs.h <<\_ACEOF
11273 #define HAVE_DLD 1
11274 _ACEOF
11276 LIBADD_DL="$LIBADD_DL -ldld"
11277 else
11278 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11279 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11280 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283 cat >conftest.$ac_ext <<_ACEOF
11284 /* confdefs.h. */
11285 _ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11289 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11291 #define _dyld_func_lookup innocuous__dyld_func_lookup
11293 /* System header to define __stub macros and hopefully few prototypes,
11294 which can conflict with char _dyld_func_lookup (); below.
11295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11296 <limits.h> exists even on freestanding compilers. */
11298 #ifdef __STDC__
11299 # include <limits.h>
11300 #else
11301 # include <assert.h>
11302 #endif
11304 #undef _dyld_func_lookup
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11309 #ifdef __cplusplus
11310 extern "C"
11311 #endif
11312 char _dyld_func_lookup ();
11313 /* The GNU C library defines this for functions which it implements
11314 to always fail with ENOSYS. Some functions are actually named
11315 something starting with __ and the normal name is an alias. */
11316 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11317 choke me
11318 #endif
11321 main ()
11323 return _dyld_func_lookup ();
11325 return 0;
11327 _ACEOF
11328 rm -f conftest.$ac_objext conftest$ac_exeext
11329 if { (ac_try="$ac_link"
11330 case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_link") 2>conftest.er1
11336 ac_status=$?
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11343 { (case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11346 esac
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_try") 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; } &&
11352 { ac_try='test -s conftest$ac_exeext'
11353 { (case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11356 esac
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_try") 2>&5
11359 ac_status=$?
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11362 ac_cv_func__dyld_func_lookup=yes
11363 else
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11367 ac_cv_func__dyld_func_lookup=no
11370 rm -f core conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11373 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11374 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11375 if test $ac_cv_func__dyld_func_lookup = yes; then
11377 cat >>confdefs.h <<\_ACEOF
11378 #define HAVE_DYLD 1
11379 _ACEOF
11392 rm -f core conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext conftest.$ac_ext
11404 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11405 then
11406 lt_save_LIBS="$LIBS"
11407 LIBS="$LIBS $LIBADD_DL"
11409 for ac_func in dlerror
11411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417 cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h. */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11425 #define $ac_func innocuous_$ac_func
11427 /* System header to define __stub macros and hopefully few prototypes,
11428 which can conflict with char $ac_func (); below.
11429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11430 <limits.h> exists even on freestanding compilers. */
11432 #ifdef __STDC__
11433 # include <limits.h>
11434 #else
11435 # include <assert.h>
11436 #endif
11438 #undef $ac_func
11440 /* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11443 #ifdef __cplusplus
11444 extern "C"
11445 #endif
11446 char $ac_func ();
11447 /* The GNU C library defines this for functions which it implements
11448 to always fail with ENOSYS. Some functions are actually named
11449 something starting with __ and the normal name is an alias. */
11450 #if defined __stub_$ac_func || defined __stub___$ac_func
11451 choke me
11452 #endif
11455 main ()
11457 return $ac_func ();
11459 return 0;
11461 _ACEOF
11462 rm -f conftest.$ac_objext conftest$ac_exeext
11463 if { (ac_try="$ac_link"
11464 case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11467 esac
11468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11469 (eval "$ac_link") 2>conftest.er1
11470 ac_status=$?
11471 grep -v '^ *+' conftest.er1 >conftest.err
11472 rm -f conftest.er1
11473 cat conftest.err >&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11477 { (case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11480 esac
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_try") 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; } &&
11486 { ac_try='test -s conftest$ac_exeext'
11487 { (case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11490 esac
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_try") 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 eval "$as_ac_var=yes"
11497 else
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11501 eval "$as_ac_var=no"
11504 rm -f core conftest.err conftest.$ac_objext \
11505 conftest$ac_exeext conftest.$ac_ext
11507 ac_res=`eval echo '${'$as_ac_var'}'`
11508 { echo "$as_me:$LINENO: result: $ac_res" >&5
11509 echo "${ECHO_T}$ac_res" >&6; }
11510 if test `eval echo '${'$as_ac_var'}'` = yes; then
11511 cat >>confdefs.h <<_ACEOF
11512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11513 _ACEOF
11516 done
11518 LIBS="$lt_save_LIBS"
11520 ac_ext=c
11521 ac_cpp='$CPP $CPPFLAGS'
11522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11528 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11529 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11530 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533 ac_cv_sys_symbol_underscore=no
11534 cat > conftest.$ac_ext <<EOF
11535 void nm_test_func(){}
11536 int main(){nm_test_func;return 0;}
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539 (eval $ac_compile) 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; then
11543 # Now try to grab the symbols.
11544 ac_nlist=conftest.nm
11545 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11546 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && test -s "$ac_nlist"; then
11550 # See whether the symbols have a leading underscore.
11551 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11552 ac_cv_sys_symbol_underscore=yes
11553 else
11554 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11556 else
11557 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11560 else
11561 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11563 else
11564 echo "configure: failed program was:" >&5
11565 cat conftest.c >&5
11567 rm -rf conftest*
11570 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11571 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11574 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11575 if test x"$libltdl_cv_func_dlopen" = xyes ||
11576 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11577 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11578 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11579 if test "${libltdl_cv_need_uscore+set}" = set; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 else
11582 libltdl_cv_need_uscore=unknown
11583 save_LIBS="$LIBS"
11584 LIBS="$LIBS $LIBADD_DL"
11585 if test "$cross_compiling" = yes; then :
11586 libltdl_cv_need_uscore=cross
11587 else
11588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11589 lt_status=$lt_dlunknown
11590 cat > conftest.$ac_ext <<EOF
11591 #line 11591 "configure"
11592 #include "confdefs.h"
11594 #if HAVE_DLFCN_H
11595 #include <dlfcn.h>
11596 #endif
11598 #include <stdio.h>
11600 #ifdef RTLD_GLOBAL
11601 # define LT_DLGLOBAL RTLD_GLOBAL
11602 #else
11603 # ifdef DL_GLOBAL
11604 # define LT_DLGLOBAL DL_GLOBAL
11605 # else
11606 # define LT_DLGLOBAL 0
11607 # endif
11608 #endif
11610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11611 find out it does not work in some platform. */
11612 #ifndef LT_DLLAZY_OR_NOW
11613 # ifdef RTLD_LAZY
11614 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11615 # else
11616 # ifdef DL_LAZY
11617 # define LT_DLLAZY_OR_NOW DL_LAZY
11618 # else
11619 # ifdef RTLD_NOW
11620 # define LT_DLLAZY_OR_NOW RTLD_NOW
11621 # else
11622 # ifdef DL_NOW
11623 # define LT_DLLAZY_OR_NOW DL_NOW
11624 # else
11625 # define LT_DLLAZY_OR_NOW 0
11626 # endif
11627 # endif
11628 # endif
11629 # endif
11630 #endif
11632 #ifdef __cplusplus
11633 extern "C" void exit (int);
11634 #endif
11636 void fnord() { int i=42;}
11637 int main ()
11639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11640 int status = $lt_dlunknown;
11642 if (self)
11644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11646 /* dlclose (self); */
11648 else
11649 puts (dlerror ());
11651 exit (status);
11654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655 (eval $ac_link) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11659 (./conftest; exit; ) >&5 2>/dev/null
11660 lt_status=$?
11661 case x$lt_status in
11662 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11663 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11664 x$lt_dlunknown|x*) ;;
11665 esac
11666 else :
11667 # compilation failed
11671 rm -fr conftest*
11673 LIBS="$save_LIBS"
11676 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11677 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11681 if test x"$libltdl_cv_need_uscore" = xyes; then
11683 cat >>confdefs.h <<\_ACEOF
11684 #define NEED_USCORE 1
11685 _ACEOF
11690 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11691 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11692 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695 # PORTME does your system automatically load deplibs for dlopen?
11696 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11697 # For now, we just catch OSes we know something about -- in the
11698 # future, we'll try test this programmatically.
11699 libltdl_cv_sys_dlopen_deplibs=unknown
11700 case "$host_os" in
11701 aix3*|aix4.1.*|aix4.2.*)
11702 # Unknown whether this is true for these versions of AIX, but
11703 # we want this `case' here to explicitly catch those versions.
11704 libltdl_cv_sys_dlopen_deplibs=unknown
11706 aix[45]*)
11707 libltdl_cv_sys_dlopen_deplibs=yes
11709 darwin*)
11710 # Assuming the user has installed a libdl from somewhere, this is true
11711 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11712 libltdl_cv_sys_dlopen_deplibs=yes
11714 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11715 # GNU and its variants, using gnu ld.so (Glibc)
11716 libltdl_cv_sys_dlopen_deplibs=yes
11718 hpux10*|hpux11*)
11719 libltdl_cv_sys_dlopen_deplibs=yes
11721 interix*)
11722 libltdl_cv_sys_dlopen_deplibs=yes
11724 irix[12345]*|irix6.[01]*)
11725 # Catch all versions of IRIX before 6.2, and indicate that we don't
11726 # know how it worked for any of those versions.
11727 libltdl_cv_sys_dlopen_deplibs=unknown
11729 irix*)
11730 # The case above catches anything before 6.2, and it's known that
11731 # at 6.2 and later dlopen does load deplibs.
11732 libltdl_cv_sys_dlopen_deplibs=yes
11734 netbsd*)
11735 libltdl_cv_sys_dlopen_deplibs=yes
11737 openbsd*)
11738 libltdl_cv_sys_dlopen_deplibs=yes
11740 osf[1234]*)
11741 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11742 # it did *not* use an RPATH in a shared library to find objects the
11743 # library depends on, so we explicitly say `no'.
11744 libltdl_cv_sys_dlopen_deplibs=no
11746 osf5.0|osf5.0a|osf5.1)
11747 # dlopen *does* load deplibs and with the right loader patch applied
11748 # it even uses RPATH in a shared library to search for shared objects
11749 # that the library depends on, but there's no easy way to know if that
11750 # patch is installed. Since this is the case, all we can really
11751 # say is unknown -- it depends on the patch being installed. If
11752 # it is, this changes to `yes'. Without it, it would be `no'.
11753 libltdl_cv_sys_dlopen_deplibs=unknown
11755 osf*)
11756 # the two cases above should catch all versions of osf <= 5.1. Read
11757 # the comments above for what we know about them.
11758 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11759 # is used to find them so we can finally say `yes'.
11760 libltdl_cv_sys_dlopen_deplibs=yes
11762 solaris*)
11763 libltdl_cv_sys_dlopen_deplibs=yes
11765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11766 libltdl_cv_sys_dlopen_deplibs=yes
11768 esac
11771 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11772 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11773 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11775 cat >>confdefs.h <<\_ACEOF
11776 #define LTDL_DLOPEN_DEPLIBS 1
11777 _ACEOF
11782 for ac_header in argz.h
11784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 ac_res=`eval echo '${'$as_ac_Header'}'`
11792 { echo "$as_me:$LINENO: result: $ac_res" >&5
11793 echo "${ECHO_T}$ac_res" >&6; }
11794 else
11795 # Is the header compilable?
11796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11798 cat >conftest.$ac_ext <<_ACEOF
11799 /* confdefs.h. */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 $ac_includes_default
11805 #include <$ac_header>
11806 _ACEOF
11807 rm -f conftest.$ac_objext
11808 if { (ac_try="$ac_compile"
11809 case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_compile") 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11825 esac
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest.$ac_objext'
11832 { (case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11835 esac
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_try") 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 ac_header_compiler=yes
11842 else
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 ac_header_compiler=no
11849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11851 echo "${ECHO_T}$ac_header_compiler" >&6; }
11853 # Is the header present?
11854 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11856 cat >conftest.$ac_ext <<_ACEOF
11857 /* confdefs.h. */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11862 #include <$ac_header>
11863 _ACEOF
11864 if { (ac_try="$ac_cpp conftest.$ac_ext"
11865 case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11868 esac
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } >/dev/null; then
11877 if test -s conftest.err; then
11878 ac_cpp_err=$ac_c_preproc_warn_flag
11879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11880 else
11881 ac_cpp_err=
11883 else
11884 ac_cpp_err=yes
11886 if test -z "$ac_cpp_err"; then
11887 ac_header_preproc=yes
11888 else
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11892 ac_header_preproc=no
11895 rm -f conftest.err conftest.$ac_ext
11896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11897 echo "${ECHO_T}$ac_header_preproc" >&6; }
11899 # So? What about this header?
11900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11901 yes:no: )
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11906 ac_header_preproc=yes
11908 no:yes:* )
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11921 ( cat <<\_ASBOX
11922 ## ----------------------------------- ##
11923 ## Report this to llvmbugs@cs.uiuc.edu ##
11924 ## ----------------------------------- ##
11925 _ASBOX
11926 ) | sed "s/^/$as_me: WARNING: /" >&2
11928 esac
11929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 else
11934 eval "$as_ac_Header=\$ac_header_preproc"
11936 ac_res=`eval echo '${'$as_ac_Header'}'`
11937 { echo "$as_me:$LINENO: result: $ac_res" >&5
11938 echo "${ECHO_T}$ac_res" >&6; }
11941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11942 cat >>confdefs.h <<_ACEOF
11943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11944 _ACEOF
11948 done
11951 { echo "$as_me:$LINENO: checking for error_t" >&5
11952 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11953 if test "${ac_cv_type_error_t+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956 cat >conftest.$ac_ext <<_ACEOF
11957 /* confdefs.h. */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11962 #if HAVE_ARGZ_H
11963 # include <argz.h>
11964 #endif
11966 typedef error_t ac__type_new_;
11968 main ()
11970 if ((ac__type_new_ *) 0)
11971 return 0;
11972 if (sizeof (ac__type_new_))
11973 return 0;
11975 return 0;
11977 _ACEOF
11978 rm -f conftest.$ac_objext
11979 if { (ac_try="$ac_compile"
11980 case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983 esac
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_compile") 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11993 { (case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11996 esac
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_try") 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest.$ac_objext'
12003 { (case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12006 esac
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_try") 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; }; then
12012 ac_cv_type_error_t=yes
12013 else
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 ac_cv_type_error_t=no
12020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12022 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12023 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12024 if test $ac_cv_type_error_t = yes; then
12026 cat >>confdefs.h <<_ACEOF
12027 #define HAVE_ERROR_T 1
12028 _ACEOF
12031 else
12033 cat >>confdefs.h <<\_ACEOF
12034 #define error_t int
12035 _ACEOF
12045 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h. */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12061 #define $ac_func innocuous_$ac_func
12063 /* System header to define __stub macros and hopefully few prototypes,
12064 which can conflict with char $ac_func (); below.
12065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066 <limits.h> exists even on freestanding compilers. */
12068 #ifdef __STDC__
12069 # include <limits.h>
12070 #else
12071 # include <assert.h>
12072 #endif
12074 #undef $ac_func
12076 /* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12079 #ifdef __cplusplus
12080 extern "C"
12081 #endif
12082 char $ac_func ();
12083 /* The GNU C library defines this for functions which it implements
12084 to always fail with ENOSYS. Some functions are actually named
12085 something starting with __ and the normal name is an alias. */
12086 #if defined __stub_$ac_func || defined __stub___$ac_func
12087 choke me
12088 #endif
12091 main ()
12093 return $ac_func ();
12095 return 0;
12097 _ACEOF
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (ac_try="$ac_link"
12100 case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103 esac
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_link") 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12113 { (case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_try") 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12126 esac
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 eval "$as_ac_var=yes"
12133 else
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 eval "$as_ac_var=no"
12140 rm -f core conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
12143 ac_res=`eval echo '${'$as_ac_var'}'`
12144 { echo "$as_me:$LINENO: result: $ac_res" >&5
12145 echo "${ECHO_T}$ac_res" >&6; }
12146 if test `eval echo '${'$as_ac_var'}'` = yes; then
12147 cat >>confdefs.h <<_ACEOF
12148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12149 _ACEOF
12152 done
12181 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12182 stdio.h unistd.h
12184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 ac_res=`eval echo '${'$as_ac_Header'}'`
12192 { echo "$as_me:$LINENO: result: $ac_res" >&5
12193 echo "${ECHO_T}$ac_res" >&6; }
12194 else
12195 # Is the header compilable?
12196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h. */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 $ac_includes_default
12205 #include <$ac_header>
12206 _ACEOF
12207 rm -f conftest.$ac_objext
12208 if { (ac_try="$ac_compile"
12209 case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212 esac
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_compile") 2>conftest.er1
12215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
12221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12222 { (case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12225 esac
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_try") 2>&5
12228 ac_status=$?
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; } &&
12231 { ac_try='test -s conftest.$ac_objext'
12232 { (case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12235 esac
12236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237 (eval "$ac_try") 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_header_compiler=yes
12242 else
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_header_compiler=no
12249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12251 echo "${ECHO_T}$ac_header_compiler" >&6; }
12253 # Is the header present?
12254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12256 cat >conftest.$ac_ext <<_ACEOF
12257 /* confdefs.h. */
12258 _ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12262 #include <$ac_header>
12263 _ACEOF
12264 if { (ac_try="$ac_cpp conftest.$ac_ext"
12265 case "(($ac_try" in
12266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12267 *) ac_try_echo=$ac_try;;
12268 esac
12269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } >/dev/null; then
12277 if test -s conftest.err; then
12278 ac_cpp_err=$ac_c_preproc_warn_flag
12279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12280 else
12281 ac_cpp_err=
12283 else
12284 ac_cpp_err=yes
12286 if test -z "$ac_cpp_err"; then
12287 ac_header_preproc=yes
12288 else
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12292 ac_header_preproc=no
12295 rm -f conftest.err conftest.$ac_ext
12296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12297 echo "${ECHO_T}$ac_header_preproc" >&6; }
12299 # So? What about this header?
12300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12301 yes:no: )
12302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12306 ac_header_preproc=yes
12308 no:yes:* )
12309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12321 ( cat <<\_ASBOX
12322 ## ----------------------------------- ##
12323 ## Report this to llvmbugs@cs.uiuc.edu ##
12324 ## ----------------------------------- ##
12325 _ASBOX
12326 ) | sed "s/^/$as_me: WARNING: /" >&2
12328 esac
12329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 else
12334 eval "$as_ac_Header=\$ac_header_preproc"
12336 ac_res=`eval echo '${'$as_ac_Header'}'`
12337 { echo "$as_me:$LINENO: result: $ac_res" >&5
12338 echo "${ECHO_T}$ac_res" >&6; }
12341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12342 cat >>confdefs.h <<_ACEOF
12343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12344 _ACEOF
12348 done
12354 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 ac_res=`eval echo '${'$as_ac_Header'}'`
12364 { echo "$as_me:$LINENO: result: $ac_res" >&5
12365 echo "${ECHO_T}$ac_res" >&6; }
12366 else
12367 # Is the header compilable?
12368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12370 cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h. */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376 $ac_includes_default
12377 #include <$ac_header>
12378 _ACEOF
12379 rm -f conftest.$ac_objext
12380 if { (ac_try="$ac_compile"
12381 case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12384 esac
12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_compile") 2>conftest.er1
12387 ac_status=$?
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397 esac
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest.$ac_objext'
12404 { (case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12407 esac
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_try") 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_header_compiler=yes
12414 else
12415 echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12418 ac_header_compiler=no
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12423 echo "${ECHO_T}$ac_header_compiler" >&6; }
12425 # Is the header present?
12426 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12428 cat >conftest.$ac_ext <<_ACEOF
12429 /* confdefs.h. */
12430 _ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434 #include <$ac_header>
12435 _ACEOF
12436 if { (ac_try="$ac_cpp conftest.$ac_ext"
12437 case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12440 esac
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12443 ac_status=$?
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } >/dev/null; then
12449 if test -s conftest.err; then
12450 ac_cpp_err=$ac_c_preproc_warn_flag
12451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12452 else
12453 ac_cpp_err=
12455 else
12456 ac_cpp_err=yes
12458 if test -z "$ac_cpp_err"; then
12459 ac_header_preproc=yes
12460 else
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12464 ac_header_preproc=no
12467 rm -f conftest.err conftest.$ac_ext
12468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12469 echo "${ECHO_T}$ac_header_preproc" >&6; }
12471 # So? What about this header?
12472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12473 yes:no: )
12474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12478 ac_header_preproc=yes
12480 no:yes:* )
12481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12493 ( cat <<\_ASBOX
12494 ## ----------------------------------- ##
12495 ## Report this to llvmbugs@cs.uiuc.edu ##
12496 ## ----------------------------------- ##
12497 _ASBOX
12498 ) | sed "s/^/$as_me: WARNING: /" >&2
12500 esac
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
12505 else
12506 eval "$as_ac_Header=\$ac_header_preproc"
12508 ac_res=`eval echo '${'$as_ac_Header'}'`
12509 { echo "$as_me:$LINENO: result: $ac_res" >&5
12510 echo "${ECHO_T}$ac_res" >&6; }
12513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12514 cat >>confdefs.h <<_ACEOF
12515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12516 _ACEOF
12520 done
12524 for ac_header in string.h strings.h
12526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 ac_res=`eval echo '${'$as_ac_Header'}'`
12534 { echo "$as_me:$LINENO: result: $ac_res" >&5
12535 echo "${ECHO_T}$ac_res" >&6; }
12536 else
12537 # Is the header compilable?
12538 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12540 cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h. */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546 $ac_includes_default
12547 #include <$ac_header>
12548 _ACEOF
12549 rm -f conftest.$ac_objext
12550 if { (ac_try="$ac_compile"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_compile") 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12564 { (case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12567 esac
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_try") 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try='test -s conftest.$ac_objext'
12574 { (case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12577 esac
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_try") 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 ac_header_compiler=yes
12584 else
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12588 ac_header_compiler=no
12591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12593 echo "${ECHO_T}$ac_header_compiler" >&6; }
12595 # Is the header present?
12596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h. */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 #include <$ac_header>
12605 _ACEOF
12606 if { (ac_try="$ac_cpp conftest.$ac_ext"
12607 case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12610 esac
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12613 ac_status=$?
12614 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } >/dev/null; then
12619 if test -s conftest.err; then
12620 ac_cpp_err=$ac_c_preproc_warn_flag
12621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12622 else
12623 ac_cpp_err=
12625 else
12626 ac_cpp_err=yes
12628 if test -z "$ac_cpp_err"; then
12629 ac_header_preproc=yes
12630 else
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12634 ac_header_preproc=no
12637 rm -f conftest.err conftest.$ac_ext
12638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12639 echo "${ECHO_T}$ac_header_preproc" >&6; }
12641 # So? What about this header?
12642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12643 yes:no: )
12644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12648 ac_header_preproc=yes
12650 no:yes:* )
12651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12663 ( cat <<\_ASBOX
12664 ## ----------------------------------- ##
12665 ## Report this to llvmbugs@cs.uiuc.edu ##
12666 ## ----------------------------------- ##
12667 _ASBOX
12668 ) | sed "s/^/$as_me: WARNING: /" >&2
12670 esac
12671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676 eval "$as_ac_Header=\$ac_header_preproc"
12678 ac_res=`eval echo '${'$as_ac_Header'}'`
12679 { echo "$as_me:$LINENO: result: $ac_res" >&5
12680 echo "${ECHO_T}$ac_res" >&6; }
12683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12684 cat >>confdefs.h <<_ACEOF
12685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12686 _ACEOF
12687 break
12690 done
12695 for ac_func in strchr index
12697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h. */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12711 #define $ac_func innocuous_$ac_func
12713 /* System header to define __stub macros and hopefully few prototypes,
12714 which can conflict with char $ac_func (); below.
12715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12716 <limits.h> exists even on freestanding compilers. */
12718 #ifdef __STDC__
12719 # include <limits.h>
12720 #else
12721 # include <assert.h>
12722 #endif
12724 #undef $ac_func
12726 /* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12729 #ifdef __cplusplus
12730 extern "C"
12731 #endif
12732 char $ac_func ();
12733 /* The GNU C library defines this for functions which it implements
12734 to always fail with ENOSYS. Some functions are actually named
12735 something starting with __ and the normal name is an alias. */
12736 #if defined __stub_$ac_func || defined __stub___$ac_func
12737 choke me
12738 #endif
12741 main ()
12743 return $ac_func ();
12745 return 0;
12747 _ACEOF
12748 rm -f conftest.$ac_objext conftest$ac_exeext
12749 if { (ac_try="$ac_link"
12750 case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12753 esac
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_link") 2>conftest.er1
12756 ac_status=$?
12757 grep -v '^ *+' conftest.er1 >conftest.err
12758 rm -f conftest.er1
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12763 { (case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12766 esac
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_try") 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; } &&
12772 { ac_try='test -s conftest$ac_exeext'
12773 { (case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_try") 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; }; then
12782 eval "$as_ac_var=yes"
12783 else
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12787 eval "$as_ac_var=no"
12790 rm -f core conftest.err conftest.$ac_objext \
12791 conftest$ac_exeext conftest.$ac_ext
12793 ac_res=`eval echo '${'$as_ac_var'}'`
12794 { echo "$as_me:$LINENO: result: $ac_res" >&5
12795 echo "${ECHO_T}$ac_res" >&6; }
12796 if test `eval echo '${'$as_ac_var'}'` = yes; then
12797 cat >>confdefs.h <<_ACEOF
12798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12799 _ACEOF
12800 break
12802 done
12806 for ac_func in strrchr rindex
12808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 else
12814 cat >conftest.$ac_ext <<_ACEOF
12815 /* confdefs.h. */
12816 _ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12822 #define $ac_func innocuous_$ac_func
12824 /* System header to define __stub macros and hopefully few prototypes,
12825 which can conflict with char $ac_func (); below.
12826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12827 <limits.h> exists even on freestanding compilers. */
12829 #ifdef __STDC__
12830 # include <limits.h>
12831 #else
12832 # include <assert.h>
12833 #endif
12835 #undef $ac_func
12837 /* Override any GCC internal prototype to avoid an error.
12838 Use char because int might match the return type of a GCC
12839 builtin and then its argument prototype would still apply. */
12840 #ifdef __cplusplus
12841 extern "C"
12842 #endif
12843 char $ac_func ();
12844 /* The GNU C library defines this for functions which it implements
12845 to always fail with ENOSYS. Some functions are actually named
12846 something starting with __ and the normal name is an alias. */
12847 #if defined __stub_$ac_func || defined __stub___$ac_func
12848 choke me
12849 #endif
12852 main ()
12854 return $ac_func ();
12856 return 0;
12858 _ACEOF
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (ac_try="$ac_link"
12861 case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12864 esac
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_link") 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12874 { (case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12877 esac
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_try") 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
12883 { ac_try='test -s conftest$ac_exeext'
12884 { (case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887 esac
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_try") 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 eval "$as_ac_var=yes"
12894 else
12895 echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.$ac_ext >&5
12898 eval "$as_ac_var=no"
12901 rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12904 ac_res=`eval echo '${'$as_ac_var'}'`
12905 { echo "$as_me:$LINENO: result: $ac_res" >&5
12906 echo "${ECHO_T}$ac_res" >&6; }
12907 if test `eval echo '${'$as_ac_var'}'` = yes; then
12908 cat >>confdefs.h <<_ACEOF
12909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12910 _ACEOF
12911 break
12913 done
12917 for ac_func in memcpy bcopy
12919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925 cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h. */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12933 #define $ac_func innocuous_$ac_func
12935 /* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char $ac_func (); below.
12937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12938 <limits.h> exists even on freestanding compilers. */
12940 #ifdef __STDC__
12941 # include <limits.h>
12942 #else
12943 # include <assert.h>
12944 #endif
12946 #undef $ac_func
12948 /* Override any GCC internal prototype to avoid an error.
12949 Use char because int might match the return type of a GCC
12950 builtin and then its argument prototype would still apply. */
12951 #ifdef __cplusplus
12952 extern "C"
12953 #endif
12954 char $ac_func ();
12955 /* The GNU C library defines this for functions which it implements
12956 to always fail with ENOSYS. Some functions are actually named
12957 something starting with __ and the normal name is an alias. */
12958 #if defined __stub_$ac_func || defined __stub___$ac_func
12959 choke me
12960 #endif
12963 main ()
12965 return $ac_func ();
12967 return 0;
12969 _ACEOF
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971 if { (ac_try="$ac_link"
12972 case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975 esac
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_link") 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12985 { (case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12988 esac
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_try") 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; } &&
12994 { ac_try='test -s conftest$ac_exeext'
12995 { (case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12998 esac
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_try") 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 eval "$as_ac_var=yes"
13005 else
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 eval "$as_ac_var=no"
13012 rm -f core conftest.err conftest.$ac_objext \
13013 conftest$ac_exeext conftest.$ac_ext
13015 ac_res=`eval echo '${'$as_ac_var'}'`
13016 { echo "$as_me:$LINENO: result: $ac_res" >&5
13017 echo "${ECHO_T}$ac_res" >&6; }
13018 if test `eval echo '${'$as_ac_var'}'` = yes; then
13019 cat >>confdefs.h <<_ACEOF
13020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13021 _ACEOF
13022 break
13024 done
13028 for ac_func in memmove strcmp
13030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036 cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h. */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13044 #define $ac_func innocuous_$ac_func
13046 /* System header to define __stub macros and hopefully few prototypes,
13047 which can conflict with char $ac_func (); below.
13048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13049 <limits.h> exists even on freestanding compilers. */
13051 #ifdef __STDC__
13052 # include <limits.h>
13053 #else
13054 # include <assert.h>
13055 #endif
13057 #undef $ac_func
13059 /* Override any GCC internal prototype to avoid an error.
13060 Use char because int might match the return type of a GCC
13061 builtin and then its argument prototype would still apply. */
13062 #ifdef __cplusplus
13063 extern "C"
13064 #endif
13065 char $ac_func ();
13066 /* The GNU C library defines this for functions which it implements
13067 to always fail with ENOSYS. Some functions are actually named
13068 something starting with __ and the normal name is an alias. */
13069 #if defined __stub_$ac_func || defined __stub___$ac_func
13070 choke me
13071 #endif
13074 main ()
13076 return $ac_func ();
13078 return 0;
13080 _ACEOF
13081 rm -f conftest.$ac_objext conftest$ac_exeext
13082 if { (ac_try="$ac_link"
13083 case "(($ac_try" in
13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13086 esac
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_link") 2>conftest.er1
13089 ac_status=$?
13090 grep -v '^ *+' conftest.er1 >conftest.err
13091 rm -f conftest.er1
13092 cat conftest.err >&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
13095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13096 { (case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13099 esac
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_try") 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; } &&
13105 { ac_try='test -s conftest$ac_exeext'
13106 { (case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13109 esac
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_try") 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 eval "$as_ac_var=yes"
13116 else
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13120 eval "$as_ac_var=no"
13123 rm -f core conftest.err conftest.$ac_objext \
13124 conftest$ac_exeext conftest.$ac_ext
13126 ac_res=`eval echo '${'$as_ac_var'}'`
13127 { echo "$as_me:$LINENO: result: $ac_res" >&5
13128 echo "${ECHO_T}$ac_res" >&6; }
13129 if test `eval echo '${'$as_ac_var'}'` = yes; then
13130 cat >>confdefs.h <<_ACEOF
13131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13132 _ACEOF
13135 done
13140 for ac_func in closedir opendir readdir
13142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 else
13148 cat >conftest.$ac_ext <<_ACEOF
13149 /* confdefs.h. */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13156 #define $ac_func innocuous_$ac_func
13158 /* System header to define __stub macros and hopefully few prototypes,
13159 which can conflict with char $ac_func (); below.
13160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13161 <limits.h> exists even on freestanding compilers. */
13163 #ifdef __STDC__
13164 # include <limits.h>
13165 #else
13166 # include <assert.h>
13167 #endif
13169 #undef $ac_func
13171 /* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13174 #ifdef __cplusplus
13175 extern "C"
13176 #endif
13177 char $ac_func ();
13178 /* The GNU C library defines this for functions which it implements
13179 to always fail with ENOSYS. Some functions are actually named
13180 something starting with __ and the normal name is an alias. */
13181 #if defined __stub_$ac_func || defined __stub___$ac_func
13182 choke me
13183 #endif
13186 main ()
13188 return $ac_func ();
13190 return 0;
13192 _ACEOF
13193 rm -f conftest.$ac_objext conftest$ac_exeext
13194 if { (ac_try="$ac_link"
13195 case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13198 esac
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_link") 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13208 { (case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211 esac
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_try") 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try='test -s conftest$ac_exeext'
13218 { (case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13221 esac
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_try") 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 eval "$as_ac_var=yes"
13228 else
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13232 eval "$as_ac_var=no"
13235 rm -f core conftest.err conftest.$ac_objext \
13236 conftest$ac_exeext conftest.$ac_ext
13238 ac_res=`eval echo '${'$as_ac_var'}'`
13239 { echo "$as_me:$LINENO: result: $ac_res" >&5
13240 echo "${ECHO_T}$ac_res" >&6; }
13241 if test `eval echo '${'$as_ac_var'}'` = yes; then
13242 cat >>confdefs.h <<_ACEOF
13243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13244 _ACEOF
13247 done
13251 if test "$WITH_LLVMGCCDIR" = "default" ; then
13252 LLVMGCC="llvm-gcc${EXEEXT}"
13253 LLVMGXX="llvm-g++${EXEEXT}"
13254 LLVMGCCCOMMAND="$LLVMGCC"
13255 LLVMGXXCOMMAND="$LLVMGXX"
13256 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13258 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13260 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13261 set dummy $LLVMGCC; ac_word=$2
13262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13264 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13265 echo $ECHO_N "(cached) $ECHO_C" >&6
13266 else
13267 case $LLVMGCC in
13268 [\\/]* | ?:[\\/]*)
13269 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13279 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 break 2
13283 done
13284 done
13285 IFS=$as_save_IFS
13288 esac
13290 LLVMGCC=$ac_cv_path_LLVMGCC
13291 if test -n "$LLVMGCC"; then
13292 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13293 echo "${ECHO_T}$LLVMGCC" >&6; }
13294 else
13295 { echo "$as_me:$LINENO: result: no" >&5
13296 echo "${ECHO_T}no" >&6; }
13300 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13301 set dummy $LLVMGXX; ac_word=$2
13302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13304 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307 case $LLVMGXX in
13308 [\\/]* | ?:[\\/]*)
13309 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13319 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13323 done
13324 done
13325 IFS=$as_save_IFS
13328 esac
13330 LLVMGXX=$ac_cv_path_LLVMGXX
13331 if test -n "$LLVMGXX"; then
13332 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13333 echo "${ECHO_T}$LLVMGXX" >&6; }
13334 else
13335 { echo "$as_me:$LINENO: result: no" >&5
13336 echo "${ECHO_T}no" >&6; }
13340 else
13341 if test -z "$LLVMGCC"; then
13342 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13343 LLVMGCCCOMMAND="$LLVMGCC"
13345 if test -z "$LLVMGXX"; then
13346 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13347 LLVMGXXCOMMAND="$LLVMGXX"
13350 LLVMGCC=$LLVMGCC
13352 LLVMGXX=$LLVMGXX
13354 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13356 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13361 # Check whether --with-llvmcc was given.
13362 if test "${with_llvmcc+set}" = set; then
13363 withval=$with_llvmcc;
13364 else
13365 with_llvmcc=check
13368 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13369 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13370 if test "$with_llvmcc" != "check"; then
13371 if (test "$with_llvmcc" != "llvm-gcc" &&
13372 test "$with_llvmcc" != "clang" &&
13373 test "$with_llvmcc" != "none"); then
13374 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13375 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13376 { (exit 1); exit 1; }; }
13378 WITH_LLVMCC="$with_llvmcc"
13379 elif test -n "$LLVMGCC"; then
13380 WITH_LLVMCC=llvm-gcc
13381 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13382 WITH_LLVMCC=clang
13383 else
13384 WITH_LLVMCC=none
13386 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13387 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13388 LLVMCC_OPTION=$WITH_LLVMCC
13391 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13392 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13394 ICC=no
13395 IXX=no
13396 case $CC in
13397 icc*|icpc*)
13398 ICC=yes
13399 IXX=yes
13403 esac
13405 if test "$GCC" != "yes" && test "$ICC" != "yes"
13406 then
13407 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13408 echo "$as_me: error: gcc|icc required but not found" >&2;}
13409 { (exit 1); exit 1; }; }
13412 if test "$GXX" != "yes" && test "$IXX" != "yes"
13413 then
13414 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13415 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13416 { (exit 1); exit 1; }; }
13419 if test "$GCC" = "yes"
13420 then
13421 cat >conftest.$ac_ext <<_ACEOF
13422 #if !defined(__GNUC__) || __GNUC__ < 3
13423 #error Unsupported GCC version
13424 #endif
13426 _ACEOF
13427 rm -f conftest.$ac_objext
13428 if { (ac_try="$ac_compile"
13429 case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13432 esac
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_compile") 2>conftest.er1
13435 ac_status=$?
13436 grep -v '^ *+' conftest.er1 >conftest.err
13437 rm -f conftest.er1
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13442 { (case "(($ac_try" in
13443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13444 *) ac_try_echo=$ac_try;;
13445 esac
13446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13447 (eval "$ac_try") 2>&5
13448 ac_status=$?
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; } &&
13451 { ac_try='test -s conftest.$ac_objext'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455 esac
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13458 ac_status=$?
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13462 else
13463 echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13466 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13467 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13468 { (exit 1); exit 1; }; }
13471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13474 if test -z "$llvm_cv_gnu_make_command"
13475 then
13476 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13477 echo "$as_me: error: GNU Make required but not found" >&2;}
13478 { (exit 1); exit 1; }; }
13481 { echo "$as_me:$LINENO: result: ok" >&5
13482 echo "${ECHO_T}ok" >&6; }
13484 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13485 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13486 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13488 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13490 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13491 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13495 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13496 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13497 if test "${ac_cv_lib_m_sin+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500 ac_check_lib_save_LIBS=$LIBS
13501 LIBS="-lm $LIBS"
13502 cat >conftest.$ac_ext <<_ACEOF
13503 /* confdefs.h. */
13504 _ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h. */
13509 /* Override any GCC internal prototype to avoid an error.
13510 Use char because int might match the return type of a GCC
13511 builtin and then its argument prototype would still apply. */
13512 #ifdef __cplusplus
13513 extern "C"
13514 #endif
13515 char sin ();
13517 main ()
13519 return sin ();
13521 return 0;
13523 _ACEOF
13524 rm -f conftest.$ac_objext conftest$ac_exeext
13525 if { (ac_try="$ac_link"
13526 case "(($ac_try" in
13527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528 *) ac_try_echo=$ac_try;;
13529 esac
13530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531 (eval "$ac_link") 2>conftest.er1
13532 ac_status=$?
13533 grep -v '^ *+' conftest.er1 >conftest.err
13534 rm -f conftest.er1
13535 cat conftest.err >&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); } &&
13538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13539 { (case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542 esac
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_try") 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest$ac_exeext'
13549 { (case "(($ac_try" in
13550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13551 *) ac_try_echo=$ac_try;;
13552 esac
13553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13554 (eval "$ac_try") 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
13558 ac_cv_lib_m_sin=yes
13559 else
13560 echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13563 ac_cv_lib_m_sin=no
13566 rm -f core conftest.err conftest.$ac_objext \
13567 conftest$ac_exeext conftest.$ac_ext
13568 LIBS=$ac_check_lib_save_LIBS
13570 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13571 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13572 if test $ac_cv_lib_m_sin = yes; then
13573 cat >>confdefs.h <<_ACEOF
13574 #define HAVE_LIBM 1
13575 _ACEOF
13577 LIBS="-lm $LIBS"
13581 if test "$llvm_cv_os_type" = "MingW" ; then
13583 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13584 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13585 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588 ac_check_lib_save_LIBS=$LIBS
13589 LIBS="-limagehlp $LIBS"
13590 cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h. */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13599 main ()
13601 return main ();
13603 return 0;
13605 _ACEOF
13606 rm -f conftest.$ac_objext conftest$ac_exeext
13607 if { (ac_try="$ac_link"
13608 case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13611 esac
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_link") 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13621 { (case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13624 esac
13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_try") 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; } &&
13630 { ac_try='test -s conftest$ac_exeext'
13631 { (case "(($ac_try" in
13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13634 esac
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_try") 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_cv_lib_imagehlp_main=yes
13641 else
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13645 ac_cv_lib_imagehlp_main=no
13648 rm -f core conftest.err conftest.$ac_objext \
13649 conftest$ac_exeext conftest.$ac_ext
13650 LIBS=$ac_check_lib_save_LIBS
13652 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13653 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13654 if test $ac_cv_lib_imagehlp_main = yes; then
13655 cat >>confdefs.h <<_ACEOF
13656 #define HAVE_LIBIMAGEHLP 1
13657 _ACEOF
13659 LIBS="-limagehlp $LIBS"
13664 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13665 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13666 if test "${ac_cv_lib_psapi_main+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669 ac_check_lib_save_LIBS=$LIBS
13670 LIBS="-lpsapi $LIBS"
13671 cat >conftest.$ac_ext <<_ACEOF
13672 /* confdefs.h. */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13680 main ()
13682 return main ();
13684 return 0;
13686 _ACEOF
13687 rm -f conftest.$ac_objext conftest$ac_exeext
13688 if { (ac_try="$ac_link"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_link") 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13705 esac
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest$ac_exeext'
13712 { (case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13715 esac
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_try") 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_cv_lib_psapi_main=yes
13722 else
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13726 ac_cv_lib_psapi_main=no
13729 rm -f core conftest.err conftest.$ac_objext \
13730 conftest$ac_exeext conftest.$ac_ext
13731 LIBS=$ac_check_lib_save_LIBS
13733 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13734 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13735 if test $ac_cv_lib_psapi_main = yes; then
13736 cat >>confdefs.h <<_ACEOF
13737 #define HAVE_LIBPSAPI 1
13738 _ACEOF
13740 LIBS="-lpsapi $LIBS"
13746 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13747 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13748 if test "${ac_cv_search_dlopen+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750 else
13751 ac_func_search_save_LIBS=$LIBS
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h. */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13759 /* Override any GCC internal prototype to avoid an error.
13760 Use char because int might match the return type of a GCC
13761 builtin and then its argument prototype would still apply. */
13762 #ifdef __cplusplus
13763 extern "C"
13764 #endif
13765 char dlopen ();
13767 main ()
13769 return dlopen ();
13771 return 0;
13773 _ACEOF
13774 for ac_lib in '' dl; do
13775 if test -z "$ac_lib"; then
13776 ac_res="none required"
13777 else
13778 ac_res=-l$ac_lib
13779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13781 rm -f conftest.$ac_objext conftest$ac_exeext
13782 if { (ac_try="$ac_link"
13783 case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13786 esac
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_link") 2>conftest.er1
13789 ac_status=$?
13790 grep -v '^ *+' conftest.er1 >conftest.err
13791 rm -f conftest.er1
13792 cat conftest.err >&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } &&
13795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13796 { (case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13799 esac
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_try") 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; } &&
13805 { ac_try='test -s conftest$ac_exeext'
13806 { (case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13809 esac
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_try") 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13815 ac_cv_search_dlopen=$ac_res
13816 else
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13823 rm -f core conftest.err conftest.$ac_objext \
13824 conftest$ac_exeext
13825 if test "${ac_cv_search_dlopen+set}" = set; then
13826 break
13828 done
13829 if test "${ac_cv_search_dlopen+set}" = set; then
13831 else
13832 ac_cv_search_dlopen=no
13834 rm conftest.$ac_ext
13835 LIBS=$ac_func_search_save_LIBS
13837 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13838 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13839 ac_res=$ac_cv_search_dlopen
13840 if test "$ac_res" != no; then
13841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13843 cat >>confdefs.h <<\_ACEOF
13844 #define HAVE_DLOPEN 1
13845 _ACEOF
13847 else
13848 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13849 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13853 if test "$llvm_cv_enable_libffi" = "yes" ; then
13854 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13855 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13856 if test "${ac_cv_search_ffi_call+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 else
13859 ac_func_search_save_LIBS=$LIBS
13860 cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h. */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13867 /* Override any GCC internal prototype to avoid an error.
13868 Use char because int might match the return type of a GCC
13869 builtin and then its argument prototype would still apply. */
13870 #ifdef __cplusplus
13871 extern "C"
13872 #endif
13873 char ffi_call ();
13875 main ()
13877 return ffi_call ();
13879 return 0;
13881 _ACEOF
13882 for ac_lib in '' ffi; do
13883 if test -z "$ac_lib"; then
13884 ac_res="none required"
13885 else
13886 ac_res=-l$ac_lib
13887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13889 rm -f conftest.$ac_objext conftest$ac_exeext
13890 if { (ac_try="$ac_link"
13891 case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13894 esac
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_link") 2>conftest.er1
13897 ac_status=$?
13898 grep -v '^ *+' conftest.er1 >conftest.err
13899 rm -f conftest.er1
13900 cat conftest.err >&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
13903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13904 { (case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13907 esac
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_try") 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } &&
13913 { ac_try='test -s conftest$ac_exeext'
13914 { (case "(($ac_try" in
13915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916 *) ac_try_echo=$ac_try;;
13917 esac
13918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_try") 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; }; then
13923 ac_cv_search_ffi_call=$ac_res
13924 else
13925 echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13931 rm -f core conftest.err conftest.$ac_objext \
13932 conftest$ac_exeext
13933 if test "${ac_cv_search_ffi_call+set}" = set; then
13934 break
13936 done
13937 if test "${ac_cv_search_ffi_call+set}" = set; then
13939 else
13940 ac_cv_search_ffi_call=no
13942 rm conftest.$ac_ext
13943 LIBS=$ac_func_search_save_LIBS
13945 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13946 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13947 ac_res=$ac_cv_search_ffi_call
13948 if test "$ac_res" != no; then
13949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13951 cat >>confdefs.h <<\_ACEOF
13952 #define HAVE_FFI_CALL 1
13953 _ACEOF
13955 else
13956 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13957 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13958 { (exit 1); exit 1; }; }
13963 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13964 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13965 if test "${ac_cv_search_mallinfo+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968 ac_func_search_save_LIBS=$LIBS
13969 cat >conftest.$ac_ext <<_ACEOF
13970 /* confdefs.h. */
13971 _ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13976 /* Override any GCC internal prototype to avoid an error.
13977 Use char because int might match the return type of a GCC
13978 builtin and then its argument prototype would still apply. */
13979 #ifdef __cplusplus
13980 extern "C"
13981 #endif
13982 char mallinfo ();
13984 main ()
13986 return mallinfo ();
13988 return 0;
13990 _ACEOF
13991 for ac_lib in '' malloc; do
13992 if test -z "$ac_lib"; then
13993 ac_res="none required"
13994 else
13995 ac_res=-l$ac_lib
13996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13998 rm -f conftest.$ac_objext conftest$ac_exeext
13999 if { (ac_try="$ac_link"
14000 case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14003 esac
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_link") 2>conftest.er1
14006 ac_status=$?
14007 grep -v '^ *+' conftest.er1 >conftest.err
14008 rm -f conftest.er1
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
14012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14013 { (case "(($ac_try" in
14014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015 *) ac_try_echo=$ac_try;;
14016 esac
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_try") 2>&5
14019 ac_status=$?
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; } &&
14022 { ac_try='test -s conftest$ac_exeext'
14023 { (case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14026 esac
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_try") 2>&5
14029 ac_status=$?
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; }; then
14032 ac_cv_search_mallinfo=$ac_res
14033 else
14034 echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14040 rm -f core conftest.err conftest.$ac_objext \
14041 conftest$ac_exeext
14042 if test "${ac_cv_search_mallinfo+set}" = set; then
14043 break
14045 done
14046 if test "${ac_cv_search_mallinfo+set}" = set; then
14048 else
14049 ac_cv_search_mallinfo=no
14051 rm conftest.$ac_ext
14052 LIBS=$ac_func_search_save_LIBS
14054 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14055 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14056 ac_res=$ac_cv_search_mallinfo
14057 if test "$ac_res" != no; then
14058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14060 cat >>confdefs.h <<\_ACEOF
14061 #define HAVE_MALLINFO 1
14062 _ACEOF
14067 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14069 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14070 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14071 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 else
14074 ac_check_lib_save_LIBS=$LIBS
14075 LIBS="-lpthread $LIBS"
14076 cat >conftest.$ac_ext <<_ACEOF
14077 /* confdefs.h. */
14078 _ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h. */
14083 /* Override any GCC internal prototype to avoid an error.
14084 Use char because int might match the return type of a GCC
14085 builtin and then its argument prototype would still apply. */
14086 #ifdef __cplusplus
14087 extern "C"
14088 #endif
14089 char pthread_mutex_init ();
14091 main ()
14093 return pthread_mutex_init ();
14095 return 0;
14097 _ACEOF
14098 rm -f conftest.$ac_objext conftest$ac_exeext
14099 if { (ac_try="$ac_link"
14100 case "(($ac_try" in
14101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14103 esac
14104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105 (eval "$ac_link") 2>conftest.er1
14106 ac_status=$?
14107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -f conftest.er1
14109 cat conftest.err >&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
14112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14113 { (case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14116 esac
14117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_try") 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; } &&
14122 { ac_try='test -s conftest$ac_exeext'
14123 { (case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14126 esac
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_try") 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
14132 ac_cv_lib_pthread_pthread_mutex_init=yes
14133 else
14134 echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14137 ac_cv_lib_pthread_pthread_mutex_init=no
14140 rm -f core conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
14142 LIBS=$ac_check_lib_save_LIBS
14144 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14145 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14146 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14147 cat >>confdefs.h <<_ACEOF
14148 #define HAVE_LIBPTHREAD 1
14149 _ACEOF
14151 LIBS="-lpthread $LIBS"
14155 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14156 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14157 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160 ac_func_search_save_LIBS=$LIBS
14161 cat >conftest.$ac_ext <<_ACEOF
14162 /* confdefs.h. */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14168 /* Override any GCC internal prototype to avoid an error.
14169 Use char because int might match the return type of a GCC
14170 builtin and then its argument prototype would still apply. */
14171 #ifdef __cplusplus
14172 extern "C"
14173 #endif
14174 char pthread_mutex_lock ();
14176 main ()
14178 return pthread_mutex_lock ();
14180 return 0;
14182 _ACEOF
14183 for ac_lib in '' pthread; do
14184 if test -z "$ac_lib"; then
14185 ac_res="none required"
14186 else
14187 ac_res=-l$ac_lib
14188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14190 rm -f conftest.$ac_objext conftest$ac_exeext
14191 if { (ac_try="$ac_link"
14192 case "(($ac_try" in
14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14195 esac
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_link") 2>conftest.er1
14198 ac_status=$?
14199 grep -v '^ *+' conftest.er1 >conftest.err
14200 rm -f conftest.er1
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14205 { (case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14208 esac
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_try") 2>&5
14211 ac_status=$?
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; } &&
14214 { ac_try='test -s conftest$ac_exeext'
14215 { (case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14218 esac
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_try") 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
14224 ac_cv_search_pthread_mutex_lock=$ac_res
14225 else
14226 echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.$ac_ext >&5
14232 rm -f core conftest.err conftest.$ac_objext \
14233 conftest$ac_exeext
14234 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14235 break
14237 done
14238 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14240 else
14241 ac_cv_search_pthread_mutex_lock=no
14243 rm conftest.$ac_ext
14244 LIBS=$ac_func_search_save_LIBS
14246 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14247 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14248 ac_res=$ac_cv_search_pthread_mutex_lock
14249 if test "$ac_res" != no; then
14250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14252 cat >>confdefs.h <<\_ACEOF
14253 #define HAVE_PTHREAD_MUTEX_LOCK 1
14254 _ACEOF
14258 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14259 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14260 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 else
14263 ac_func_search_save_LIBS=$LIBS
14264 cat >conftest.$ac_ext <<_ACEOF
14265 /* confdefs.h. */
14266 _ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14271 /* Override any GCC internal prototype to avoid an error.
14272 Use char because int might match the return type of a GCC
14273 builtin and then its argument prototype would still apply. */
14274 #ifdef __cplusplus
14275 extern "C"
14276 #endif
14277 char pthread_rwlock_init ();
14279 main ()
14281 return pthread_rwlock_init ();
14283 return 0;
14285 _ACEOF
14286 for ac_lib in '' pthread; do
14287 if test -z "$ac_lib"; then
14288 ac_res="none required"
14289 else
14290 ac_res=-l$ac_lib
14291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14293 rm -f conftest.$ac_objext conftest$ac_exeext
14294 if { (ac_try="$ac_link"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_link") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest$ac_exeext'
14318 { (case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321 esac
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_try") 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 ac_cv_search_pthread_rwlock_init=$ac_res
14328 else
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14335 rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext
14337 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14338 break
14340 done
14341 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14343 else
14344 ac_cv_search_pthread_rwlock_init=no
14346 rm conftest.$ac_ext
14347 LIBS=$ac_func_search_save_LIBS
14349 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14350 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14351 ac_res=$ac_cv_search_pthread_rwlock_init
14352 if test "$ac_res" != no; then
14353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14355 cat >>confdefs.h <<\_ACEOF
14356 #define HAVE_PTHREAD_RWLOCK_INIT 1
14357 _ACEOF
14361 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14362 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14363 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366 ac_func_search_save_LIBS=$LIBS
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14374 /* Override any GCC internal prototype to avoid an error.
14375 Use char because int might match the return type of a GCC
14376 builtin and then its argument prototype would still apply. */
14377 #ifdef __cplusplus
14378 extern "C"
14379 #endif
14380 char pthread_getspecific ();
14382 main ()
14384 return pthread_getspecific ();
14386 return 0;
14388 _ACEOF
14389 for ac_lib in '' pthread; do
14390 if test -z "$ac_lib"; then
14391 ac_res="none required"
14392 else
14393 ac_res=-l$ac_lib
14394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14396 rm -f conftest.$ac_objext conftest$ac_exeext
14397 if { (ac_try="$ac_link"
14398 case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401 esac
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_link") 2>conftest.er1
14404 ac_status=$?
14405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
14410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14411 { (case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14414 esac
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_try") 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; } &&
14420 { ac_try='test -s conftest$ac_exeext'
14421 { (case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14424 esac
14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_try") 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 ac_cv_search_pthread_getspecific=$ac_res
14431 else
14432 echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14438 rm -f core conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext
14440 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14441 break
14443 done
14444 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14446 else
14447 ac_cv_search_pthread_getspecific=no
14449 rm conftest.$ac_ext
14450 LIBS=$ac_func_search_save_LIBS
14452 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14453 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14454 ac_res=$ac_cv_search_pthread_getspecific
14455 if test "$ac_res" != no; then
14456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14458 cat >>confdefs.h <<\_ACEOF
14459 #define HAVE_PTHREAD_GETSPECIFIC 1
14460 _ACEOF
14467 # Check whether --with-udis86 was given.
14468 if test "${with_udis86+set}" = set; then
14469 withval=$with_udis86;
14470 USE_UDIS86=1
14472 case "$withval" in
14473 /usr/lib|yes) ;;
14474 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14475 esac
14477 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14478 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14479 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 else
14482 ac_check_lib_save_LIBS=$LIBS
14483 LIBS="-ludis86 $LIBS"
14484 cat >conftest.$ac_ext <<_ACEOF
14485 /* confdefs.h. */
14486 _ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14491 /* Override any GCC internal prototype to avoid an error.
14492 Use char because int might match the return type of a GCC
14493 builtin and then its argument prototype would still apply. */
14494 #ifdef __cplusplus
14495 extern "C"
14496 #endif
14497 char ud_init ();
14499 main ()
14501 return ud_init ();
14503 return 0;
14505 _ACEOF
14506 rm -f conftest.$ac_objext conftest$ac_exeext
14507 if { (ac_try="$ac_link"
14508 case "(($ac_try" in
14509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14511 esac
14512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513 (eval "$ac_link") 2>conftest.er1
14514 ac_status=$?
14515 grep -v '^ *+' conftest.er1 >conftest.err
14516 rm -f conftest.er1
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14521 { (case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14524 esac
14525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_try") 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } &&
14530 { ac_try='test -s conftest$ac_exeext'
14531 { (case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14534 esac
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_try") 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 ac_cv_lib_udis86_ud_init=yes
14541 else
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ac_cv_lib_udis86_ud_init=no
14548 rm -f core conftest.err conftest.$ac_objext \
14549 conftest$ac_exeext conftest.$ac_ext
14550 LIBS=$ac_check_lib_save_LIBS
14552 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14553 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14554 if test $ac_cv_lib_udis86_ud_init = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define HAVE_LIBUDIS86 1
14557 _ACEOF
14559 LIBS="-ludis86 $LIBS"
14561 else
14563 echo "Error! You need to have libudis86 around."
14564 exit -1
14569 else
14570 USE_UDIS86=0
14575 cat >>confdefs.h <<_ACEOF
14576 #define USE_UDIS86 $USE_UDIS86
14577 _ACEOF
14581 # Check whether --with-oprofile was given.
14582 if test "${with_oprofile+set}" = set; then
14583 withval=$with_oprofile;
14584 USE_OPROFILE=1
14586 case "$withval" in
14587 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14588 no) llvm_cv_oppath=
14589 USE_OPROFILE=0
14591 *) llvm_cv_oppath="${withval}/lib/oprofile"
14592 CPPFLAGS="-I${withval}/include";;
14593 esac
14594 if test -n "$llvm_cv_oppath" ; then
14595 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14596 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14597 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14598 if test "${ac_cv_search_bfd_init+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601 ac_func_search_save_LIBS=$LIBS
14602 cat >conftest.$ac_ext <<_ACEOF
14603 /* confdefs.h. */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14609 /* Override any GCC internal prototype to avoid an error.
14610 Use char because int might match the return type of a GCC
14611 builtin and then its argument prototype would still apply. */
14612 #ifdef __cplusplus
14613 extern "C"
14614 #endif
14615 char bfd_init ();
14617 main ()
14619 return bfd_init ();
14621 return 0;
14623 _ACEOF
14624 for ac_lib in '' bfd; do
14625 if test -z "$ac_lib"; then
14626 ac_res="none required"
14627 else
14628 ac_res=-l$ac_lib
14629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14631 rm -f conftest.$ac_objext conftest$ac_exeext
14632 if { (ac_try="$ac_link"
14633 case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14636 esac
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_link") 2>conftest.er1
14639 ac_status=$?
14640 grep -v '^ *+' conftest.er1 >conftest.err
14641 rm -f conftest.er1
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14646 { (case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649 esac
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_try") 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } &&
14655 { ac_try='test -s conftest$ac_exeext'
14656 { (case "(($ac_try" in
14657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658 *) ac_try_echo=$ac_try;;
14659 esac
14660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14661 (eval "$ac_try") 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
14665 ac_cv_search_bfd_init=$ac_res
14666 else
14667 echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14673 rm -f core conftest.err conftest.$ac_objext \
14674 conftest$ac_exeext
14675 if test "${ac_cv_search_bfd_init+set}" = set; then
14676 break
14678 done
14679 if test "${ac_cv_search_bfd_init+set}" = set; then
14681 else
14682 ac_cv_search_bfd_init=no
14684 rm conftest.$ac_ext
14685 LIBS=$ac_func_search_save_LIBS
14687 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14688 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14689 ac_res=$ac_cv_search_bfd_init
14690 if test "$ac_res" != no; then
14691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14695 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14696 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14697 if test "${ac_cv_search_op_open_agent+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 else
14700 ac_func_search_save_LIBS=$LIBS
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14708 /* Override any GCC internal prototype to avoid an error.
14709 Use char because int might match the return type of a GCC
14710 builtin and then its argument prototype would still apply. */
14711 #ifdef __cplusplus
14712 extern "C"
14713 #endif
14714 char op_open_agent ();
14716 main ()
14718 return op_open_agent ();
14720 return 0;
14722 _ACEOF
14723 for ac_lib in '' opagent; do
14724 if test -z "$ac_lib"; then
14725 ac_res="none required"
14726 else
14727 ac_res=-l$ac_lib
14728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (ac_try="$ac_link"
14732 case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14735 esac
14736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_link") 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14745 { (case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14748 esac
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_try") 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; } &&
14754 { ac_try='test -s conftest$ac_exeext'
14755 { (case "(($ac_try" in
14756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14757 *) ac_try_echo=$ac_try;;
14758 esac
14759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14760 (eval "$ac_try") 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_cv_search_op_open_agent=$ac_res
14765 else
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14772 rm -f core conftest.err conftest.$ac_objext \
14773 conftest$ac_exeext
14774 if test "${ac_cv_search_op_open_agent+set}" = set; then
14775 break
14777 done
14778 if test "${ac_cv_search_op_open_agent+set}" = set; then
14780 else
14781 ac_cv_search_op_open_agent=no
14783 rm conftest.$ac_ext
14784 LIBS=$ac_func_search_save_LIBS
14786 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14787 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14788 ac_res=$ac_cv_search_op_open_agent
14789 if test "$ac_res" != no; then
14790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14792 else
14794 echo "Error! You need to have libopagent around."
14795 exit -1
14799 if test "${ac_cv_header_opagent_h+set}" = set; then
14800 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14801 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14802 if test "${ac_cv_header_opagent_h+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14806 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14807 else
14808 # Is the header compilable?
14809 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14810 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14811 cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h. */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817 $ac_includes_default
14818 #include <opagent.h>
14819 _ACEOF
14820 rm -f conftest.$ac_objext
14821 if { (ac_try="$ac_compile"
14822 case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14825 esac
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_compile") 2>conftest.er1
14828 ac_status=$?
14829 grep -v '^ *+' conftest.er1 >conftest.err
14830 rm -f conftest.er1
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
14834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14835 { (case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14838 esac
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_try") 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; } &&
14844 { ac_try='test -s conftest.$ac_objext'
14845 { (case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14848 esac
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_try") 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_header_compiler=yes
14855 else
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 ac_header_compiler=no
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14864 echo "${ECHO_T}$ac_header_compiler" >&6; }
14866 # Is the header present?
14867 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14868 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14869 cat >conftest.$ac_ext <<_ACEOF
14870 /* confdefs.h. */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14875 #include <opagent.h>
14876 _ACEOF
14877 if { (ac_try="$ac_cpp conftest.$ac_ext"
14878 case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14881 esac
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14884 ac_status=$?
14885 grep -v '^ *+' conftest.er1 >conftest.err
14886 rm -f conftest.er1
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } >/dev/null; then
14890 if test -s conftest.err; then
14891 ac_cpp_err=$ac_c_preproc_warn_flag
14892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14893 else
14894 ac_cpp_err=
14896 else
14897 ac_cpp_err=yes
14899 if test -z "$ac_cpp_err"; then
14900 ac_header_preproc=yes
14901 else
14902 echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14905 ac_header_preproc=no
14908 rm -f conftest.err conftest.$ac_ext
14909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14910 echo "${ECHO_T}$ac_header_preproc" >&6; }
14912 # So? What about this header?
14913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14914 yes:no: )
14915 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14916 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14918 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14919 ac_header_preproc=yes
14921 no:yes:* )
14922 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14923 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14925 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14927 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14929 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14931 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14933 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14934 ( cat <<\_ASBOX
14935 ## ----------------------------------- ##
14936 ## Report this to llvmbugs@cs.uiuc.edu ##
14937 ## ----------------------------------- ##
14938 _ASBOX
14939 ) | sed "s/^/$as_me: WARNING: /" >&2
14941 esac
14942 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14943 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14944 if test "${ac_cv_header_opagent_h+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947 ac_cv_header_opagent_h=$ac_header_preproc
14949 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14950 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14953 if test $ac_cv_header_opagent_h = yes; then
14955 else
14957 echo "Error! You need to have opagent.h around."
14958 exit -1
14965 else
14967 USE_OPROFILE=0
14973 cat >>confdefs.h <<_ACEOF
14974 #define USE_OPROFILE $USE_OPROFILE
14975 _ACEOF
14984 ac_header_dirent=no
14985 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14986 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14987 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14988 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 else
14992 cat >conftest.$ac_ext <<_ACEOF
14993 /* confdefs.h. */
14994 _ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h. */
14998 #include <sys/types.h>
14999 #include <$ac_hdr>
15002 main ()
15004 if ((DIR *) 0)
15005 return 0;
15007 return 0;
15009 _ACEOF
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_compile") 2>conftest.er1
15018 ac_status=$?
15019 grep -v '^ *+' conftest.er1 >conftest.err
15020 rm -f conftest.er1
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } &&
15024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15025 { (case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15028 esac
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030 (eval "$ac_try") 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; } &&
15034 { ac_try='test -s conftest.$ac_objext'
15035 { (case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15038 esac
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_try") 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 eval "$as_ac_Header=yes"
15045 else
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15049 eval "$as_ac_Header=no"
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054 ac_res=`eval echo '${'$as_ac_Header'}'`
15055 { echo "$as_me:$LINENO: result: $ac_res" >&5
15056 echo "${ECHO_T}$ac_res" >&6; }
15057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15058 cat >>confdefs.h <<_ACEOF
15059 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15060 _ACEOF
15062 ac_header_dirent=$ac_hdr; break
15065 done
15066 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15067 if test $ac_header_dirent = dirent.h; then
15068 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15069 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15070 if test "${ac_cv_search_opendir+set}" = set; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
15072 else
15073 ac_func_search_save_LIBS=$LIBS
15074 cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h. */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15081 /* Override any GCC internal prototype to avoid an error.
15082 Use char because int might match the return type of a GCC
15083 builtin and then its argument prototype would still apply. */
15084 #ifdef __cplusplus
15085 extern "C"
15086 #endif
15087 char opendir ();
15089 main ()
15091 return opendir ();
15093 return 0;
15095 _ACEOF
15096 for ac_lib in '' dir; do
15097 if test -z "$ac_lib"; then
15098 ac_res="none required"
15099 else
15100 ac_res=-l$ac_lib
15101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15103 rm -f conftest.$ac_objext conftest$ac_exeext
15104 if { (ac_try="$ac_link"
15105 case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15108 esac
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_link") 2>conftest.er1
15111 ac_status=$?
15112 grep -v '^ *+' conftest.er1 >conftest.err
15113 rm -f conftest.er1
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15118 { (case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15121 esac
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_try") 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; } &&
15127 { ac_try='test -s conftest$ac_exeext'
15128 { (case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_try") 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 ac_cv_search_opendir=$ac_res
15138 else
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15145 rm -f core conftest.err conftest.$ac_objext \
15146 conftest$ac_exeext
15147 if test "${ac_cv_search_opendir+set}" = set; then
15148 break
15150 done
15151 if test "${ac_cv_search_opendir+set}" = set; then
15153 else
15154 ac_cv_search_opendir=no
15156 rm conftest.$ac_ext
15157 LIBS=$ac_func_search_save_LIBS
15159 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15160 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15161 ac_res=$ac_cv_search_opendir
15162 if test "$ac_res" != no; then
15163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15167 else
15168 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15169 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15170 if test "${ac_cv_search_opendir+set}" = set; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15172 else
15173 ac_func_search_save_LIBS=$LIBS
15174 cat >conftest.$ac_ext <<_ACEOF
15175 /* confdefs.h. */
15176 _ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h. */
15181 /* Override any GCC internal prototype to avoid an error.
15182 Use char because int might match the return type of a GCC
15183 builtin and then its argument prototype would still apply. */
15184 #ifdef __cplusplus
15185 extern "C"
15186 #endif
15187 char opendir ();
15189 main ()
15191 return opendir ();
15193 return 0;
15195 _ACEOF
15196 for ac_lib in '' x; do
15197 if test -z "$ac_lib"; then
15198 ac_res="none required"
15199 else
15200 ac_res=-l$ac_lib
15201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (ac_try="$ac_link"
15205 case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15208 esac
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_link") 2>conftest.er1
15211 ac_status=$?
15212 grep -v '^ *+' conftest.er1 >conftest.err
15213 rm -f conftest.er1
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } &&
15217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15218 { (case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15221 esac
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_try") 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; } &&
15227 { ac_try='test -s conftest$ac_exeext'
15228 { (case "(($ac_try" in
15229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230 *) ac_try_echo=$ac_try;;
15231 esac
15232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233 (eval "$ac_try") 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 ac_cv_search_opendir=$ac_res
15238 else
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15245 rm -f core conftest.err conftest.$ac_objext \
15246 conftest$ac_exeext
15247 if test "${ac_cv_search_opendir+set}" = set; then
15248 break
15250 done
15251 if test "${ac_cv_search_opendir+set}" = set; then
15253 else
15254 ac_cv_search_opendir=no
15256 rm conftest.$ac_ext
15257 LIBS=$ac_func_search_save_LIBS
15259 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15260 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15261 ac_res=$ac_cv_search_opendir
15262 if test "$ac_res" != no; then
15263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15269 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15270 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15271 if test "${ac_cv_header_mmap_anon+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 else
15274 ac_ext=c
15275 ac_cpp='$CPP $CPPFLAGS'
15276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15280 cat >conftest.$ac_ext <<_ACEOF
15281 /* confdefs.h. */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15286 #include <sys/mman.h>
15287 #include <unistd.h>
15288 #include <fcntl.h>
15290 main ()
15292 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15294 return 0;
15296 _ACEOF
15297 rm -f conftest.$ac_objext
15298 if { (ac_try="$ac_compile"
15299 case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302 esac
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_compile") 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15312 { (case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_try") 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; } &&
15321 { ac_try='test -s conftest.$ac_objext'
15322 { (case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15325 esac
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_try") 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_cv_header_mmap_anon=yes
15332 else
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 ac_cv_header_mmap_anon=no
15339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340 ac_ext=c
15341 ac_cpp='$CPP $CPPFLAGS'
15342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15348 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15349 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15350 if test "$ac_cv_header_mmap_anon" = yes; then
15352 cat >>confdefs.h <<\_ACEOF
15353 #define HAVE_MMAP_ANONYMOUS 1
15354 _ACEOF
15358 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15359 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15360 if test "${ac_cv_header_stat_broken+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 else
15363 cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h. */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 #include <sys/types.h>
15370 #include <sys/stat.h>
15372 #if defined S_ISBLK && defined S_IFDIR
15373 # if S_ISBLK (S_IFDIR)
15374 You lose.
15375 # endif
15376 #endif
15378 #if defined S_ISBLK && defined S_IFCHR
15379 # if S_ISBLK (S_IFCHR)
15380 You lose.
15381 # endif
15382 #endif
15384 #if defined S_ISLNK && defined S_IFREG
15385 # if S_ISLNK (S_IFREG)
15386 You lose.
15387 # endif
15388 #endif
15390 #if defined S_ISSOCK && defined S_IFREG
15391 # if S_ISSOCK (S_IFREG)
15392 You lose.
15393 # endif
15394 #endif
15396 _ACEOF
15397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15398 $EGREP "You lose" >/dev/null 2>&1; then
15399 ac_cv_header_stat_broken=yes
15400 else
15401 ac_cv_header_stat_broken=no
15403 rm -f conftest*
15406 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15407 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15408 if test $ac_cv_header_stat_broken = yes; then
15410 cat >>confdefs.h <<\_ACEOF
15411 #define STAT_MACROS_BROKEN 1
15412 _ACEOF
15416 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15417 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15418 if test "${ac_cv_header_stdc+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 else
15421 cat >conftest.$ac_ext <<_ACEOF
15422 /* confdefs.h. */
15423 _ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h. */
15427 #include <stdlib.h>
15428 #include <stdarg.h>
15429 #include <string.h>
15430 #include <float.h>
15433 main ()
15437 return 0;
15439 _ACEOF
15440 rm -f conftest.$ac_objext
15441 if { (ac_try="$ac_compile"
15442 case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15445 esac
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_compile") 2>conftest.er1
15448 ac_status=$?
15449 grep -v '^ *+' conftest.er1 >conftest.err
15450 rm -f conftest.er1
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } &&
15454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15455 { (case "(($ac_try" in
15456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15457 *) ac_try_echo=$ac_try;;
15458 esac
15459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15460 (eval "$ac_try") 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; } &&
15464 { ac_try='test -s conftest.$ac_objext'
15465 { (case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15468 esac
15469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470 (eval "$ac_try") 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
15474 ac_cv_header_stdc=yes
15475 else
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 ac_cv_header_stdc=no
15482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15484 if test $ac_cv_header_stdc = yes; then
15485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15486 cat >conftest.$ac_ext <<_ACEOF
15487 /* confdefs.h. */
15488 _ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15492 #include <string.h>
15494 _ACEOF
15495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15496 $EGREP "memchr" >/dev/null 2>&1; then
15498 else
15499 ac_cv_header_stdc=no
15501 rm -f conftest*
15505 if test $ac_cv_header_stdc = yes; then
15506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15507 cat >conftest.$ac_ext <<_ACEOF
15508 /* confdefs.h. */
15509 _ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h. */
15513 #include <stdlib.h>
15515 _ACEOF
15516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15517 $EGREP "free" >/dev/null 2>&1; then
15519 else
15520 ac_cv_header_stdc=no
15522 rm -f conftest*
15526 if test $ac_cv_header_stdc = yes; then
15527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15528 if test "$cross_compiling" = yes; then
15530 else
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h. */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 #include <ctype.h>
15538 #include <stdlib.h>
15539 #if ((' ' & 0x0FF) == 0x020)
15540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15542 #else
15543 # define ISLOWER(c) \
15544 (('a' <= (c) && (c) <= 'i') \
15545 || ('j' <= (c) && (c) <= 'r') \
15546 || ('s' <= (c) && (c) <= 'z'))
15547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15548 #endif
15550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15552 main ()
15554 int i;
15555 for (i = 0; i < 256; i++)
15556 if (XOR (islower (i), ISLOWER (i))
15557 || toupper (i) != TOUPPER (i))
15558 return 2;
15559 return 0;
15561 _ACEOF
15562 rm -f conftest$ac_exeext
15563 if { (ac_try="$ac_link"
15564 case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15567 esac
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_link") 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15573 { (case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15576 esac
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578 (eval "$ac_try") 2>&5
15579 ac_status=$?
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }; then
15583 else
15584 echo "$as_me: program exited with status $ac_status" >&5
15585 echo "$as_me: failed program was:" >&5
15586 sed 's/^/| /' conftest.$ac_ext >&5
15588 ( exit $ac_status )
15589 ac_cv_header_stdc=no
15591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15597 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15598 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15599 if test $ac_cv_header_stdc = yes; then
15601 cat >>confdefs.h <<\_ACEOF
15602 #define STDC_HEADERS 1
15603 _ACEOF
15607 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15608 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15609 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15611 else
15612 cat >conftest.$ac_ext <<_ACEOF
15613 /* confdefs.h. */
15614 _ACEOF
15615 cat confdefs.h >>conftest.$ac_ext
15616 cat >>conftest.$ac_ext <<_ACEOF
15617 /* end confdefs.h. */
15618 #include <sys/types.h>
15619 #include <sys/wait.h>
15620 #ifndef WEXITSTATUS
15621 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15622 #endif
15623 #ifndef WIFEXITED
15624 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15625 #endif
15628 main ()
15630 int s;
15631 wait (&s);
15632 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15634 return 0;
15636 _ACEOF
15637 rm -f conftest.$ac_objext
15638 if { (ac_try="$ac_compile"
15639 case "(($ac_try" in
15640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641 *) ac_try_echo=$ac_try;;
15642 esac
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644 (eval "$ac_compile") 2>conftest.er1
15645 ac_status=$?
15646 grep -v '^ *+' conftest.er1 >conftest.err
15647 rm -f conftest.er1
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15652 { (case "(($ac_try" in
15653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654 *) ac_try_echo=$ac_try;;
15655 esac
15656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657 (eval "$ac_try") 2>&5
15658 ac_status=$?
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; } &&
15661 { ac_try='test -s conftest.$ac_objext'
15662 { (case "(($ac_try" in
15663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15665 esac
15666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667 (eval "$ac_try") 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 ac_cv_header_sys_wait_h=yes
15672 else
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 ac_cv_header_sys_wait_h=no
15679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15682 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15683 if test $ac_cv_header_sys_wait_h = yes; then
15685 cat >>confdefs.h <<\_ACEOF
15686 #define HAVE_SYS_WAIT_H 1
15687 _ACEOF
15691 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15692 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15693 if test "${ac_cv_header_time+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15695 else
15696 cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h. */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 #include <sys/types.h>
15703 #include <sys/time.h>
15704 #include <time.h>
15707 main ()
15709 if ((struct tm *) 0)
15710 return 0;
15712 return 0;
15714 _ACEOF
15715 rm -f conftest.$ac_objext
15716 if { (ac_try="$ac_compile"
15717 case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15720 esac
15721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_compile") 2>conftest.er1
15723 ac_status=$?
15724 grep -v '^ *+' conftest.er1 >conftest.err
15725 rm -f conftest.er1
15726 cat conftest.err >&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } &&
15729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15730 { (case "(($ac_try" in
15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15733 esac
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735 (eval "$ac_try") 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; } &&
15739 { ac_try='test -s conftest.$ac_objext'
15740 { (case "(($ac_try" in
15741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742 *) ac_try_echo=$ac_try;;
15743 esac
15744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745 (eval "$ac_try") 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 ac_cv_header_time=yes
15750 else
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15754 ac_cv_header_time=no
15757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15760 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15761 if test $ac_cv_header_time = yes; then
15763 cat >>confdefs.h <<\_ACEOF
15764 #define TIME_WITH_SYS_TIME 1
15765 _ACEOF
15776 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 ac_res=`eval echo '${'$as_ac_Header'}'`
15786 { echo "$as_me:$LINENO: result: $ac_res" >&5
15787 echo "${ECHO_T}$ac_res" >&6; }
15788 else
15789 # Is the header compilable?
15790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15792 cat >conftest.$ac_ext <<_ACEOF
15793 /* confdefs.h. */
15794 _ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h. */
15798 $ac_includes_default
15799 #include <$ac_header>
15800 _ACEOF
15801 rm -f conftest.$ac_objext
15802 if { (ac_try="$ac_compile"
15803 case "(($ac_try" in
15804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805 *) ac_try_echo=$ac_try;;
15806 esac
15807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808 (eval "$ac_compile") 2>conftest.er1
15809 ac_status=$?
15810 grep -v '^ *+' conftest.er1 >conftest.err
15811 rm -f conftest.er1
15812 cat conftest.err >&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } &&
15815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15816 { (case "(($ac_try" in
15817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15819 esac
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821 (eval "$ac_try") 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try='test -s conftest.$ac_objext'
15826 { (case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15829 esac
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_try") 2>&5
15832 ac_status=$?
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
15835 ac_header_compiler=yes
15836 else
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15840 ac_header_compiler=no
15843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15845 echo "${ECHO_T}$ac_header_compiler" >&6; }
15847 # Is the header present?
15848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15850 cat >conftest.$ac_ext <<_ACEOF
15851 /* confdefs.h. */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 #include <$ac_header>
15857 _ACEOF
15858 if { (ac_try="$ac_cpp conftest.$ac_ext"
15859 case "(($ac_try" in
15860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861 *) ac_try_echo=$ac_try;;
15862 esac
15863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15865 ac_status=$?
15866 grep -v '^ *+' conftest.er1 >conftest.err
15867 rm -f conftest.er1
15868 cat conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } >/dev/null; then
15871 if test -s conftest.err; then
15872 ac_cpp_err=$ac_c_preproc_warn_flag
15873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15874 else
15875 ac_cpp_err=
15877 else
15878 ac_cpp_err=yes
15880 if test -z "$ac_cpp_err"; then
15881 ac_header_preproc=yes
15882 else
15883 echo "$as_me: failed program was:" >&5
15884 sed 's/^/| /' conftest.$ac_ext >&5
15886 ac_header_preproc=no
15889 rm -f conftest.err conftest.$ac_ext
15890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15891 echo "${ECHO_T}$ac_header_preproc" >&6; }
15893 # So? What about this header?
15894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15895 yes:no: )
15896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15900 ac_header_preproc=yes
15902 no:yes:* )
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15915 ( cat <<\_ASBOX
15916 ## ----------------------------------- ##
15917 ## Report this to llvmbugs@cs.uiuc.edu ##
15918 ## ----------------------------------- ##
15919 _ASBOX
15920 ) | sed "s/^/$as_me: WARNING: /" >&2
15922 esac
15923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15927 else
15928 eval "$as_ac_Header=\$ac_header_preproc"
15930 ac_res=`eval echo '${'$as_ac_Header'}'`
15931 { echo "$as_me:$LINENO: result: $ac_res" >&5
15932 echo "${ECHO_T}$ac_res" >&6; }
15935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15936 cat >>confdefs.h <<_ACEOF
15937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15938 _ACEOF
15942 done
15950 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 ac_res=`eval echo '${'$as_ac_Header'}'`
15960 { echo "$as_me:$LINENO: result: $ac_res" >&5
15961 echo "${ECHO_T}$ac_res" >&6; }
15962 else
15963 # Is the header compilable?
15964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15966 cat >conftest.$ac_ext <<_ACEOF
15967 /* confdefs.h. */
15968 _ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h. */
15972 $ac_includes_default
15973 #include <$ac_header>
15974 _ACEOF
15975 rm -f conftest.$ac_objext
15976 if { (ac_try="$ac_compile"
15977 case "(($ac_try" in
15978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15980 esac
15981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_compile") 2>conftest.er1
15983 ac_status=$?
15984 grep -v '^ *+' conftest.er1 >conftest.err
15985 rm -f conftest.er1
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
15989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15990 { (case "(($ac_try" in
15991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992 *) ac_try_echo=$ac_try;;
15993 esac
15994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995 (eval "$ac_try") 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; } &&
15999 { ac_try='test -s conftest.$ac_objext'
16000 { (case "(($ac_try" in
16001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002 *) ac_try_echo=$ac_try;;
16003 esac
16004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16005 (eval "$ac_try") 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; }; then
16009 ac_header_compiler=yes
16010 else
16011 echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16014 ac_header_compiler=no
16017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16019 echo "${ECHO_T}$ac_header_compiler" >&6; }
16021 # Is the header present?
16022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16024 cat >conftest.$ac_ext <<_ACEOF
16025 /* confdefs.h. */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16030 #include <$ac_header>
16031 _ACEOF
16032 if { (ac_try="$ac_cpp conftest.$ac_ext"
16033 case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16036 esac
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16039 ac_status=$?
16040 grep -v '^ *+' conftest.er1 >conftest.err
16041 rm -f conftest.er1
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } >/dev/null; then
16045 if test -s conftest.err; then
16046 ac_cpp_err=$ac_c_preproc_warn_flag
16047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16048 else
16049 ac_cpp_err=
16051 else
16052 ac_cpp_err=yes
16054 if test -z "$ac_cpp_err"; then
16055 ac_header_preproc=yes
16056 else
16057 echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16060 ac_header_preproc=no
16063 rm -f conftest.err conftest.$ac_ext
16064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16065 echo "${ECHO_T}$ac_header_preproc" >&6; }
16067 # So? What about this header?
16068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16069 yes:no: )
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16074 ac_header_preproc=yes
16076 no:yes:* )
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16089 ( cat <<\_ASBOX
16090 ## ----------------------------------- ##
16091 ## Report this to llvmbugs@cs.uiuc.edu ##
16092 ## ----------------------------------- ##
16093 _ASBOX
16094 ) | sed "s/^/$as_me: WARNING: /" >&2
16096 esac
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
16101 else
16102 eval "$as_ac_Header=\$ac_header_preproc"
16104 ac_res=`eval echo '${'$as_ac_Header'}'`
16105 { echo "$as_me:$LINENO: result: $ac_res" >&5
16106 echo "${ECHO_T}$ac_res" >&6; }
16109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16110 cat >>confdefs.h <<_ACEOF
16111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16112 _ACEOF
16116 done
16120 for ac_header in utime.h windows.h
16122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 ac_res=`eval echo '${'$as_ac_Header'}'`
16130 { echo "$as_me:$LINENO: result: $ac_res" >&5
16131 echo "${ECHO_T}$ac_res" >&6; }
16132 else
16133 # Is the header compilable?
16134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16136 cat >conftest.$ac_ext <<_ACEOF
16137 /* confdefs.h. */
16138 _ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142 $ac_includes_default
16143 #include <$ac_header>
16144 _ACEOF
16145 rm -f conftest.$ac_objext
16146 if { (ac_try="$ac_compile"
16147 case "(($ac_try" in
16148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149 *) ac_try_echo=$ac_try;;
16150 esac
16151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152 (eval "$ac_compile") 2>conftest.er1
16153 ac_status=$?
16154 grep -v '^ *+' conftest.er1 >conftest.err
16155 rm -f conftest.er1
16156 cat conftest.err >&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } &&
16159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16160 { (case "(($ac_try" in
16161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162 *) ac_try_echo=$ac_try;;
16163 esac
16164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16165 (eval "$ac_try") 2>&5
16166 ac_status=$?
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; } &&
16169 { ac_try='test -s conftest.$ac_objext'
16170 { (case "(($ac_try" in
16171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172 *) ac_try_echo=$ac_try;;
16173 esac
16174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16175 (eval "$ac_try") 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; }; then
16179 ac_header_compiler=yes
16180 else
16181 echo "$as_me: failed program was:" >&5
16182 sed 's/^/| /' conftest.$ac_ext >&5
16184 ac_header_compiler=no
16187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16189 echo "${ECHO_T}$ac_header_compiler" >&6; }
16191 # Is the header present?
16192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16194 cat >conftest.$ac_ext <<_ACEOF
16195 /* confdefs.h. */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200 #include <$ac_header>
16201 _ACEOF
16202 if { (ac_try="$ac_cpp conftest.$ac_ext"
16203 case "(($ac_try" in
16204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205 *) ac_try_echo=$ac_try;;
16206 esac
16207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16209 ac_status=$?
16210 grep -v '^ *+' conftest.er1 >conftest.err
16211 rm -f conftest.er1
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } >/dev/null; then
16215 if test -s conftest.err; then
16216 ac_cpp_err=$ac_c_preproc_warn_flag
16217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16218 else
16219 ac_cpp_err=
16221 else
16222 ac_cpp_err=yes
16224 if test -z "$ac_cpp_err"; then
16225 ac_header_preproc=yes
16226 else
16227 echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16230 ac_header_preproc=no
16233 rm -f conftest.err conftest.$ac_ext
16234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16235 echo "${ECHO_T}$ac_header_preproc" >&6; }
16237 # So? What about this header?
16238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16239 yes:no: )
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16244 ac_header_preproc=yes
16246 no:yes:* )
16247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16259 ( cat <<\_ASBOX
16260 ## ----------------------------------- ##
16261 ## Report this to llvmbugs@cs.uiuc.edu ##
16262 ## ----------------------------------- ##
16263 _ASBOX
16264 ) | sed "s/^/$as_me: WARNING: /" >&2
16266 esac
16267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16271 else
16272 eval "$as_ac_Header=\$ac_header_preproc"
16274 ac_res=`eval echo '${'$as_ac_Header'}'`
16275 { echo "$as_me:$LINENO: result: $ac_res" >&5
16276 echo "${ECHO_T}$ac_res" >&6; }
16279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16280 cat >>confdefs.h <<_ACEOF
16281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16282 _ACEOF
16286 done
16293 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 ac_res=`eval echo '${'$as_ac_Header'}'`
16303 { echo "$as_me:$LINENO: result: $ac_res" >&5
16304 echo "${ECHO_T}$ac_res" >&6; }
16305 else
16306 # Is the header compilable?
16307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16309 cat >conftest.$ac_ext <<_ACEOF
16310 /* confdefs.h. */
16311 _ACEOF
16312 cat confdefs.h >>conftest.$ac_ext
16313 cat >>conftest.$ac_ext <<_ACEOF
16314 /* end confdefs.h. */
16315 $ac_includes_default
16316 #include <$ac_header>
16317 _ACEOF
16318 rm -f conftest.$ac_objext
16319 if { (ac_try="$ac_compile"
16320 case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16323 esac
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_compile") 2>conftest.er1
16326 ac_status=$?
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
16332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16333 { (case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16336 esac
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_try") 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; } &&
16342 { ac_try='test -s conftest.$ac_objext'
16343 { (case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16346 esac
16347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348 (eval "$ac_try") 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 ac_header_compiler=yes
16353 else
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16357 ac_header_compiler=no
16360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16362 echo "${ECHO_T}$ac_header_compiler" >&6; }
16364 # Is the header present?
16365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16367 cat >conftest.$ac_ext <<_ACEOF
16368 /* confdefs.h. */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 #include <$ac_header>
16374 _ACEOF
16375 if { (ac_try="$ac_cpp conftest.$ac_ext"
16376 case "(($ac_try" in
16377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16379 esac
16380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16382 ac_status=$?
16383 grep -v '^ *+' conftest.er1 >conftest.err
16384 rm -f conftest.er1
16385 cat conftest.err >&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } >/dev/null; then
16388 if test -s conftest.err; then
16389 ac_cpp_err=$ac_c_preproc_warn_flag
16390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16391 else
16392 ac_cpp_err=
16394 else
16395 ac_cpp_err=yes
16397 if test -z "$ac_cpp_err"; then
16398 ac_header_preproc=yes
16399 else
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 ac_header_preproc=no
16406 rm -f conftest.err conftest.$ac_ext
16407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16408 echo "${ECHO_T}$ac_header_preproc" >&6; }
16410 # So? What about this header?
16411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16412 yes:no: )
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16417 ac_header_preproc=yes
16419 no:yes:* )
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16427 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16432 ( cat <<\_ASBOX
16433 ## ----------------------------------- ##
16434 ## Report this to llvmbugs@cs.uiuc.edu ##
16435 ## ----------------------------------- ##
16436 _ASBOX
16437 ) | sed "s/^/$as_me: WARNING: /" >&2
16439 esac
16440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445 eval "$as_ac_Header=\$ac_header_preproc"
16447 ac_res=`eval echo '${'$as_ac_Header'}'`
16448 { echo "$as_me:$LINENO: result: $ac_res" >&5
16449 echo "${ECHO_T}$ac_res" >&6; }
16452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16453 cat >>confdefs.h <<_ACEOF
16454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16455 _ACEOF
16459 done
16465 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16474 ac_res=`eval echo '${'$as_ac_Header'}'`
16475 { echo "$as_me:$LINENO: result: $ac_res" >&5
16476 echo "${ECHO_T}$ac_res" >&6; }
16477 else
16478 # Is the header compilable?
16479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16481 cat >conftest.$ac_ext <<_ACEOF
16482 /* confdefs.h. */
16483 _ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h. */
16487 $ac_includes_default
16488 #include <$ac_header>
16489 _ACEOF
16490 rm -f conftest.$ac_objext
16491 if { (ac_try="$ac_compile"
16492 case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16495 esac
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_compile") 2>conftest.er1
16498 ac_status=$?
16499 grep -v '^ *+' conftest.er1 >conftest.err
16500 rm -f conftest.er1
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
16504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16505 { (case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16508 esac
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_try") 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest.$ac_objext'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16518 esac
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
16524 ac_header_compiler=yes
16525 else
16526 echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.$ac_ext >&5
16529 ac_header_compiler=no
16532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16534 echo "${ECHO_T}$ac_header_compiler" >&6; }
16536 # Is the header present?
16537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16539 cat >conftest.$ac_ext <<_ACEOF
16540 /* confdefs.h. */
16541 _ACEOF
16542 cat confdefs.h >>conftest.$ac_ext
16543 cat >>conftest.$ac_ext <<_ACEOF
16544 /* end confdefs.h. */
16545 #include <$ac_header>
16546 _ACEOF
16547 if { (ac_try="$ac_cpp conftest.$ac_ext"
16548 case "(($ac_try" in
16549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550 *) ac_try_echo=$ac_try;;
16551 esac
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16554 ac_status=$?
16555 grep -v '^ *+' conftest.er1 >conftest.err
16556 rm -f conftest.er1
16557 cat conftest.err >&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } >/dev/null; then
16560 if test -s conftest.err; then
16561 ac_cpp_err=$ac_c_preproc_warn_flag
16562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16563 else
16564 ac_cpp_err=
16566 else
16567 ac_cpp_err=yes
16569 if test -z "$ac_cpp_err"; then
16570 ac_header_preproc=yes
16571 else
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16575 ac_header_preproc=no
16578 rm -f conftest.err conftest.$ac_ext
16579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16580 echo "${ECHO_T}$ac_header_preproc" >&6; }
16582 # So? What about this header?
16583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16584 yes:no: )
16585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16589 ac_header_preproc=yes
16591 no:yes:* )
16592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16604 ( cat <<\_ASBOX
16605 ## ----------------------------------- ##
16606 ## Report this to llvmbugs@cs.uiuc.edu ##
16607 ## ----------------------------------- ##
16608 _ASBOX
16609 ) | sed "s/^/$as_me: WARNING: /" >&2
16611 esac
16612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 else
16617 eval "$as_ac_Header=\$ac_header_preproc"
16619 ac_res=`eval echo '${'$as_ac_Header'}'`
16620 { echo "$as_me:$LINENO: result: $ac_res" >&5
16621 echo "${ECHO_T}$ac_res" >&6; }
16624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16625 cat >>confdefs.h <<_ACEOF
16626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16627 _ACEOF
16631 done
16634 for ac_header in valgrind/valgrind.h
16636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 ac_res=`eval echo '${'$as_ac_Header'}'`
16644 { echo "$as_me:$LINENO: result: $ac_res" >&5
16645 echo "${ECHO_T}$ac_res" >&6; }
16646 else
16647 # Is the header compilable?
16648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16650 cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h. */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 $ac_includes_default
16657 #include <$ac_header>
16658 _ACEOF
16659 rm -f conftest.$ac_objext
16660 if { (ac_try="$ac_compile"
16661 case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16664 esac
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_compile") 2>conftest.er1
16667 ac_status=$?
16668 grep -v '^ *+' conftest.er1 >conftest.err
16669 rm -f conftest.er1
16670 cat conftest.err >&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } &&
16673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16674 { (case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_try") 2>&5
16680 ac_status=$?
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; } &&
16683 { ac_try='test -s conftest.$ac_objext'
16684 { (case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16687 esac
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_try") 2>&5
16690 ac_status=$?
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; }; then
16693 ac_header_compiler=yes
16694 else
16695 echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16698 ac_header_compiler=no
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16703 echo "${ECHO_T}$ac_header_compiler" >&6; }
16705 # Is the header present?
16706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16708 cat >conftest.$ac_ext <<_ACEOF
16709 /* confdefs.h. */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 #include <$ac_header>
16715 _ACEOF
16716 if { (ac_try="$ac_cpp conftest.$ac_ext"
16717 case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720 esac
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16723 ac_status=$?
16724 grep -v '^ *+' conftest.er1 >conftest.err
16725 rm -f conftest.er1
16726 cat conftest.err >&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); } >/dev/null; then
16729 if test -s conftest.err; then
16730 ac_cpp_err=$ac_c_preproc_warn_flag
16731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16732 else
16733 ac_cpp_err=
16735 else
16736 ac_cpp_err=yes
16738 if test -z "$ac_cpp_err"; then
16739 ac_header_preproc=yes
16740 else
16741 echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16744 ac_header_preproc=no
16747 rm -f conftest.err conftest.$ac_ext
16748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16749 echo "${ECHO_T}$ac_header_preproc" >&6; }
16751 # So? What about this header?
16752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16753 yes:no: )
16754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16758 ac_header_preproc=yes
16760 no:yes:* )
16761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16773 ( cat <<\_ASBOX
16774 ## ----------------------------------- ##
16775 ## Report this to llvmbugs@cs.uiuc.edu ##
16776 ## ----------------------------------- ##
16777 _ASBOX
16778 ) | sed "s/^/$as_me: WARNING: /" >&2
16780 esac
16781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 else
16786 eval "$as_ac_Header=\$ac_header_preproc"
16788 ac_res=`eval echo '${'$as_ac_Header'}'`
16789 { echo "$as_me:$LINENO: result: $ac_res" >&5
16790 echo "${ECHO_T}$ac_res" >&6; }
16793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16794 cat >>confdefs.h <<_ACEOF
16795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16796 _ACEOF
16800 done
16803 for ac_header in fenv.h
16805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16812 ac_res=`eval echo '${'$as_ac_Header'}'`
16813 { echo "$as_me:$LINENO: result: $ac_res" >&5
16814 echo "${ECHO_T}$ac_res" >&6; }
16815 else
16816 # Is the header compilable?
16817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16819 cat >conftest.$ac_ext <<_ACEOF
16820 /* confdefs.h. */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 $ac_includes_default
16826 #include <$ac_header>
16827 _ACEOF
16828 rm -f conftest.$ac_objext
16829 if { (ac_try="$ac_compile"
16830 case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16833 esac
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_compile") 2>conftest.er1
16836 ac_status=$?
16837 grep -v '^ *+' conftest.er1 >conftest.err
16838 rm -f conftest.er1
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16843 { (case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16846 esac
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_try") 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
16853 { (case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856 esac
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_try") 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16862 ac_header_compiler=yes
16863 else
16864 echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.$ac_ext >&5
16867 ac_header_compiler=no
16870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16872 echo "${ECHO_T}$ac_header_compiler" >&6; }
16874 # Is the header present?
16875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16877 cat >conftest.$ac_ext <<_ACEOF
16878 /* confdefs.h. */
16879 _ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16883 #include <$ac_header>
16884 _ACEOF
16885 if { (ac_try="$ac_cpp conftest.$ac_ext"
16886 case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16889 esac
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16892 ac_status=$?
16893 grep -v '^ *+' conftest.er1 >conftest.err
16894 rm -f conftest.er1
16895 cat conftest.err >&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } >/dev/null; then
16898 if test -s conftest.err; then
16899 ac_cpp_err=$ac_c_preproc_warn_flag
16900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16901 else
16902 ac_cpp_err=
16904 else
16905 ac_cpp_err=yes
16907 if test -z "$ac_cpp_err"; then
16908 ac_header_preproc=yes
16909 else
16910 echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16913 ac_header_preproc=no
16916 rm -f conftest.err conftest.$ac_ext
16917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16918 echo "${ECHO_T}$ac_header_preproc" >&6; }
16920 # So? What about this header?
16921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16922 yes:no: )
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16927 ac_header_preproc=yes
16929 no:yes:* )
16930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16942 ( cat <<\_ASBOX
16943 ## ----------------------------------- ##
16944 ## Report this to llvmbugs@cs.uiuc.edu ##
16945 ## ----------------------------------- ##
16946 _ASBOX
16947 ) | sed "s/^/$as_me: WARNING: /" >&2
16949 esac
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
16954 else
16955 eval "$as_ac_Header=\$ac_header_preproc"
16957 ac_res=`eval echo '${'$as_ac_Header'}'`
16958 { echo "$as_me:$LINENO: result: $ac_res" >&5
16959 echo "${ECHO_T}$ac_res" >&6; }
16962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16963 cat >>confdefs.h <<_ACEOF
16964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16965 _ACEOF
16969 done
16971 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16973 for ac_header in pthread.h
16975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16982 ac_res=`eval echo '${'$as_ac_Header'}'`
16983 { echo "$as_me:$LINENO: result: $ac_res" >&5
16984 echo "${ECHO_T}$ac_res" >&6; }
16985 else
16986 # Is the header compilable?
16987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16989 cat >conftest.$ac_ext <<_ACEOF
16990 /* confdefs.h. */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16995 $ac_includes_default
16996 #include <$ac_header>
16997 _ACEOF
16998 rm -f conftest.$ac_objext
16999 if { (ac_try="$ac_compile"
17000 case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17003 esac
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_compile") 2>conftest.er1
17006 ac_status=$?
17007 grep -v '^ *+' conftest.er1 >conftest.err
17008 rm -f conftest.er1
17009 cat conftest.err >&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } &&
17012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17013 { (case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_try") 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; } &&
17022 { ac_try='test -s conftest.$ac_objext'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17026 esac
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_try") 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_header_compiler=yes
17033 else
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17037 ac_header_compiler=no
17040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17042 echo "${ECHO_T}$ac_header_compiler" >&6; }
17044 # Is the header present?
17045 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17047 cat >conftest.$ac_ext <<_ACEOF
17048 /* confdefs.h. */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17053 #include <$ac_header>
17054 _ACEOF
17055 if { (ac_try="$ac_cpp conftest.$ac_ext"
17056 case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17062 ac_status=$?
17063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } >/dev/null; then
17068 if test -s conftest.err; then
17069 ac_cpp_err=$ac_c_preproc_warn_flag
17070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17071 else
17072 ac_cpp_err=
17074 else
17075 ac_cpp_err=yes
17077 if test -z "$ac_cpp_err"; then
17078 ac_header_preproc=yes
17079 else
17080 echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17083 ac_header_preproc=no
17086 rm -f conftest.err conftest.$ac_ext
17087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17088 echo "${ECHO_T}$ac_header_preproc" >&6; }
17090 # So? What about this header?
17091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17092 yes:no: )
17093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17097 ac_header_preproc=yes
17099 no:yes:* )
17100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17112 ( cat <<\_ASBOX
17113 ## ----------------------------------- ##
17114 ## Report this to llvmbugs@cs.uiuc.edu ##
17115 ## ----------------------------------- ##
17116 _ASBOX
17117 ) | sed "s/^/$as_me: WARNING: /" >&2
17119 esac
17120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17123 echo $ECHO_N "(cached) $ECHO_C" >&6
17124 else
17125 eval "$as_ac_Header=\$ac_header_preproc"
17127 ac_res=`eval echo '${'$as_ac_Header'}'`
17128 { echo "$as_me:$LINENO: result: $ac_res" >&5
17129 echo "${ECHO_T}$ac_res" >&6; }
17132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17133 cat >>confdefs.h <<_ACEOF
17134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17135 _ACEOF
17136 HAVE_PTHREAD=1
17138 else
17139 HAVE_PTHREAD=0
17143 done
17145 else
17146 HAVE_PTHREAD=0
17150 if test "$llvm_cv_enable_libffi" = "yes" ; then
17153 for ac_header in ffi.h ffi/ffi.h
17155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17160 echo $ECHO_N "(cached) $ECHO_C" >&6
17162 ac_res=`eval echo '${'$as_ac_Header'}'`
17163 { echo "$as_me:$LINENO: result: $ac_res" >&5
17164 echo "${ECHO_T}$ac_res" >&6; }
17165 else
17166 # Is the header compilable?
17167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17169 cat >conftest.$ac_ext <<_ACEOF
17170 /* confdefs.h. */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17175 $ac_includes_default
17176 #include <$ac_header>
17177 _ACEOF
17178 rm -f conftest.$ac_objext
17179 if { (ac_try="$ac_compile"
17180 case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_compile") 2>conftest.er1
17186 ac_status=$?
17187 grep -v '^ *+' conftest.er1 >conftest.err
17188 rm -f conftest.er1
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
17192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17193 { (case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196 esac
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_try") 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; } &&
17202 { ac_try='test -s conftest.$ac_objext'
17203 { (case "(($ac_try" in
17204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205 *) ac_try_echo=$ac_try;;
17206 esac
17207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208 (eval "$ac_try") 2>&5
17209 ac_status=$?
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; }; then
17212 ac_header_compiler=yes
17213 else
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 ac_header_compiler=no
17220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17222 echo "${ECHO_T}$ac_header_compiler" >&6; }
17224 # Is the header present?
17225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17227 cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h. */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17233 #include <$ac_header>
17234 _ACEOF
17235 if { (ac_try="$ac_cpp conftest.$ac_ext"
17236 case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17242 ac_status=$?
17243 grep -v '^ *+' conftest.er1 >conftest.err
17244 rm -f conftest.er1
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } >/dev/null; then
17248 if test -s conftest.err; then
17249 ac_cpp_err=$ac_c_preproc_warn_flag
17250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17251 else
17252 ac_cpp_err=
17254 else
17255 ac_cpp_err=yes
17257 if test -z "$ac_cpp_err"; then
17258 ac_header_preproc=yes
17259 else
17260 echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17263 ac_header_preproc=no
17266 rm -f conftest.err conftest.$ac_ext
17267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17268 echo "${ECHO_T}$ac_header_preproc" >&6; }
17270 # So? What about this header?
17271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17272 yes:no: )
17273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17277 ac_header_preproc=yes
17279 no:yes:* )
17280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17292 ( cat <<\_ASBOX
17293 ## ----------------------------------- ##
17294 ## Report this to llvmbugs@cs.uiuc.edu ##
17295 ## ----------------------------------- ##
17296 _ASBOX
17297 ) | sed "s/^/$as_me: WARNING: /" >&2
17299 esac
17300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 else
17305 eval "$as_ac_Header=\$ac_header_preproc"
17307 ac_res=`eval echo '${'$as_ac_Header'}'`
17308 { echo "$as_me:$LINENO: result: $ac_res" >&5
17309 echo "${ECHO_T}$ac_res" >&6; }
17312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17313 cat >>confdefs.h <<_ACEOF
17314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17315 _ACEOF
17319 done
17324 for ac_header in CrashReporterClient.h
17326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 ac_res=`eval echo '${'$as_ac_Header'}'`
17334 { echo "$as_me:$LINENO: result: $ac_res" >&5
17335 echo "${ECHO_T}$ac_res" >&6; }
17336 else
17337 # Is the header compilable?
17338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17340 cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h. */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 $ac_includes_default
17347 #include <$ac_header>
17348 _ACEOF
17349 rm -f conftest.$ac_objext
17350 if { (ac_try="$ac_compile"
17351 case "(($ac_try" in
17352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17353 *) ac_try_echo=$ac_try;;
17354 esac
17355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17356 (eval "$ac_compile") 2>conftest.er1
17357 ac_status=$?
17358 grep -v '^ *+' conftest.er1 >conftest.err
17359 rm -f conftest.er1
17360 cat conftest.err >&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } &&
17363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17364 { (case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_try") 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; } &&
17373 { ac_try='test -s conftest.$ac_objext'
17374 { (case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_try") 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 ac_header_compiler=yes
17384 else
17385 echo "$as_me: failed program was:" >&5
17386 sed 's/^/| /' conftest.$ac_ext >&5
17388 ac_header_compiler=no
17391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17393 echo "${ECHO_T}$ac_header_compiler" >&6; }
17395 # Is the header present?
17396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17398 cat >conftest.$ac_ext <<_ACEOF
17399 /* confdefs.h. */
17400 _ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17404 #include <$ac_header>
17405 _ACEOF
17406 if { (ac_try="$ac_cpp conftest.$ac_ext"
17407 case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17410 esac
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17413 ac_status=$?
17414 grep -v '^ *+' conftest.er1 >conftest.err
17415 rm -f conftest.er1
17416 cat conftest.err >&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } >/dev/null; then
17419 if test -s conftest.err; then
17420 ac_cpp_err=$ac_c_preproc_warn_flag
17421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17422 else
17423 ac_cpp_err=
17425 else
17426 ac_cpp_err=yes
17428 if test -z "$ac_cpp_err"; then
17429 ac_header_preproc=yes
17430 else
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 ac_header_preproc=no
17437 rm -f conftest.err conftest.$ac_ext
17438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17439 echo "${ECHO_T}$ac_header_preproc" >&6; }
17441 # So? What about this header?
17442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17443 yes:no: )
17444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17448 ac_header_preproc=yes
17450 no:yes:* )
17451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17463 ( cat <<\_ASBOX
17464 ## ----------------------------------- ##
17465 ## Report this to llvmbugs@cs.uiuc.edu ##
17466 ## ----------------------------------- ##
17467 _ASBOX
17468 ) | sed "s/^/$as_me: WARNING: /" >&2
17470 esac
17471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 else
17476 eval "$as_ac_Header=\$ac_header_preproc"
17478 ac_res=`eval echo '${'$as_ac_Header'}'`
17479 { echo "$as_me:$LINENO: result: $ac_res" >&5
17480 echo "${ECHO_T}$ac_res" >&6; }
17483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17484 cat >>confdefs.h <<_ACEOF
17485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17486 _ACEOF
17490 done
17493 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17494 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17495 cat >conftest.$ac_ext <<_ACEOF
17496 /* confdefs.h. */
17497 _ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17501 extern const char *__crashreporter_info__;
17502 int main() {
17503 __crashreporter_info__ = "test";
17504 return 0;
17507 _ACEOF
17508 rm -f conftest.$ac_objext conftest$ac_exeext
17509 if { (ac_try="$ac_link"
17510 case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17513 esac
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_link") 2>conftest.er1
17516 ac_status=$?
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
17522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17523 { (case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_try") 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest$ac_exeext'
17533 { (case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17536 esac
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_try") 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 { echo "$as_me:$LINENO: result: yes" >&5
17543 echo "${ECHO_T}yes" >&6; }
17545 cat >>confdefs.h <<\_ACEOF
17546 #define HAVE_CRASHREPORTER_INFO 1
17547 _ACEOF
17549 else
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17553 { echo "$as_me:$LINENO: result: no" >&5
17554 echo "${ECHO_T}no" >&6; }
17556 cat >>confdefs.h <<\_ACEOF
17557 #define HAVE_CRASHREPORTER_INFO 0
17558 _ACEOF
17562 rm -f core conftest.err conftest.$ac_objext \
17563 conftest$ac_exeext conftest.$ac_ext
17568 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17569 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17570 if test "${ac_cv_huge_val_sanity+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17572 else
17574 ac_ext=cpp
17575 ac_cpp='$CXXCPP $CPPFLAGS'
17576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17580 ac_save_CXXFLAGS=$CXXFLAGS
17581 CXXFLAGS=-pedantic
17582 if test "$cross_compiling" = yes; then
17583 ac_cv_huge_val_sanity=yes
17584 else
17585 cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h. */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17591 #include <math.h>
17593 main ()
17595 double x = HUGE_VAL; return x != x;
17597 return 0;
17599 _ACEOF
17600 rm -f conftest$ac_exeext
17601 if { (ac_try="$ac_link"
17602 case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17605 esac
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_link") 2>&5
17608 ac_status=$?
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17611 { (case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17614 esac
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_try") 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; }; then
17620 ac_cv_huge_val_sanity=yes
17621 else
17622 echo "$as_me: program exited with status $ac_status" >&5
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17626 ( exit $ac_status )
17627 ac_cv_huge_val_sanity=no
17629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17633 CXXFLAGS=$ac_save_CXXFLAGS
17634 ac_ext=c
17635 ac_cpp='$CPP $CPPFLAGS'
17636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17642 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17643 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17644 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17647 { echo "$as_me:$LINENO: checking for pid_t" >&5
17648 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17649 if test "${ac_cv_type_pid_t+set}" = set; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 else
17652 cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h. */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17658 $ac_includes_default
17659 typedef pid_t ac__type_new_;
17661 main ()
17663 if ((ac__type_new_ *) 0)
17664 return 0;
17665 if (sizeof (ac__type_new_))
17666 return 0;
17668 return 0;
17670 _ACEOF
17671 rm -f conftest.$ac_objext
17672 if { (ac_try="$ac_compile"
17673 case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_compile") 2>conftest.er1
17679 ac_status=$?
17680 grep -v '^ *+' conftest.er1 >conftest.err
17681 rm -f conftest.er1
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686 { (case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17689 esac
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_try") 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest.$ac_objext'
17696 { (case "(($ac_try" in
17697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698 *) ac_try_echo=$ac_try;;
17699 esac
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_try") 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 ac_cv_type_pid_t=yes
17706 else
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_cv_type_pid_t=no
17713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17716 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17717 if test $ac_cv_type_pid_t = yes; then
17719 else
17721 cat >>confdefs.h <<_ACEOF
17722 #define pid_t int
17723 _ACEOF
17727 { echo "$as_me:$LINENO: checking for size_t" >&5
17728 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17729 if test "${ac_cv_type_size_t+set}" = set; then
17730 echo $ECHO_N "(cached) $ECHO_C" >&6
17731 else
17732 cat >conftest.$ac_ext <<_ACEOF
17733 /* confdefs.h. */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17738 $ac_includes_default
17739 typedef size_t ac__type_new_;
17741 main ()
17743 if ((ac__type_new_ *) 0)
17744 return 0;
17745 if (sizeof (ac__type_new_))
17746 return 0;
17748 return 0;
17750 _ACEOF
17751 rm -f conftest.$ac_objext
17752 if { (ac_try="$ac_compile"
17753 case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17756 esac
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_compile") 2>conftest.er1
17759 ac_status=$?
17760 grep -v '^ *+' conftest.er1 >conftest.err
17761 rm -f conftest.er1
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
17765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17766 { (case "(($ac_try" in
17767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768 *) ac_try_echo=$ac_try;;
17769 esac
17770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771 (eval "$ac_try") 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; } &&
17775 { ac_try='test -s conftest.$ac_objext'
17776 { (case "(($ac_try" in
17777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778 *) ac_try_echo=$ac_try;;
17779 esac
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_try") 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; }; then
17785 ac_cv_type_size_t=yes
17786 else
17787 echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17790 ac_cv_type_size_t=no
17793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17795 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17796 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17797 if test $ac_cv_type_size_t = yes; then
17799 else
17801 cat >>confdefs.h <<_ACEOF
17802 #define size_t unsigned int
17803 _ACEOF
17808 cat >>confdefs.h <<_ACEOF
17809 #define RETSIGTYPE void
17810 _ACEOF
17812 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17813 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17814 if test "${ac_cv_struct_tm+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817 cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h. */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17823 #include <sys/types.h>
17824 #include <time.h>
17827 main ()
17829 struct tm *tp; tp->tm_sec;
17831 return 0;
17833 _ACEOF
17834 rm -f conftest.$ac_objext
17835 if { (ac_try="$ac_compile"
17836 case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17839 esac
17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_compile") 2>conftest.er1
17842 ac_status=$?
17843 grep -v '^ *+' conftest.er1 >conftest.err
17844 rm -f conftest.er1
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17849 { (case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17852 esac
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_try") 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try='test -s conftest.$ac_objext'
17859 { (case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17862 esac
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_try") 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_cv_struct_tm=time.h
17869 else
17870 echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17873 ac_cv_struct_tm=sys/time.h
17876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17879 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17880 if test $ac_cv_struct_tm = sys/time.h; then
17882 cat >>confdefs.h <<\_ACEOF
17883 #define TM_IN_SYS_TIME 1
17884 _ACEOF
17888 { echo "$as_me:$LINENO: checking for int64_t" >&5
17889 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17890 if test "${ac_cv_type_int64_t+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 else
17893 cat >conftest.$ac_ext <<_ACEOF
17894 /* confdefs.h. */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17899 $ac_includes_default
17900 typedef int64_t ac__type_new_;
17902 main ()
17904 if ((ac__type_new_ *) 0)
17905 return 0;
17906 if (sizeof (ac__type_new_))
17907 return 0;
17909 return 0;
17911 _ACEOF
17912 rm -f conftest.$ac_objext
17913 if { (ac_try="$ac_compile"
17914 case "(($ac_try" in
17915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17916 *) ac_try_echo=$ac_try;;
17917 esac
17918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17919 (eval "$ac_compile") 2>conftest.er1
17920 ac_status=$?
17921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
17926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17927 { (case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17930 esac
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_try") 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; } &&
17936 { ac_try='test -s conftest.$ac_objext'
17937 { (case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17940 esac
17941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_try") 2>&5
17943 ac_status=$?
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; }; then
17946 ac_cv_type_int64_t=yes
17947 else
17948 echo "$as_me: failed program was:" >&5
17949 sed 's/^/| /' conftest.$ac_ext >&5
17951 ac_cv_type_int64_t=no
17954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17956 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17957 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17958 if test $ac_cv_type_int64_t = yes; then
17960 cat >>confdefs.h <<_ACEOF
17961 #define HAVE_INT64_T 1
17962 _ACEOF
17965 else
17966 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17967 echo "$as_me: error: Type int64_t required but not found" >&2;}
17968 { (exit 1); exit 1; }; }
17971 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17972 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17973 if test "${ac_cv_type_uint64_t+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17975 else
17976 cat >conftest.$ac_ext <<_ACEOF
17977 /* confdefs.h. */
17978 _ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h. */
17982 $ac_includes_default
17983 typedef uint64_t ac__type_new_;
17985 main ()
17987 if ((ac__type_new_ *) 0)
17988 return 0;
17989 if (sizeof (ac__type_new_))
17990 return 0;
17992 return 0;
17994 _ACEOF
17995 rm -f conftest.$ac_objext
17996 if { (ac_try="$ac_compile"
17997 case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18000 esac
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_compile") 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18010 { (case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18013 esac
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_try") 2>&5
18016 ac_status=$?
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; } &&
18019 { ac_try='test -s conftest.$ac_objext'
18020 { (case "(($ac_try" in
18021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18022 *) ac_try_echo=$ac_try;;
18023 esac
18024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18025 (eval "$ac_try") 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 ac_cv_type_uint64_t=yes
18030 else
18031 echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18034 ac_cv_type_uint64_t=no
18037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18039 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18040 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18041 if test $ac_cv_type_uint64_t = yes; then
18043 cat >>confdefs.h <<_ACEOF
18044 #define HAVE_UINT64_T 1
18045 _ACEOF
18048 else
18049 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18050 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18051 if test "${ac_cv_type_u_int64_t+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 else
18054 cat >conftest.$ac_ext <<_ACEOF
18055 /* confdefs.h. */
18056 _ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h. */
18060 $ac_includes_default
18061 typedef u_int64_t ac__type_new_;
18063 main ()
18065 if ((ac__type_new_ *) 0)
18066 return 0;
18067 if (sizeof (ac__type_new_))
18068 return 0;
18070 return 0;
18072 _ACEOF
18073 rm -f conftest.$ac_objext
18074 if { (ac_try="$ac_compile"
18075 case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18078 esac
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_compile") 2>conftest.er1
18081 ac_status=$?
18082 grep -v '^ *+' conftest.er1 >conftest.err
18083 rm -f conftest.er1
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18088 { (case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18091 esac
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_try") 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; } &&
18097 { ac_try='test -s conftest.$ac_objext'
18098 { (case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18101 esac
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_try") 2>&5
18104 ac_status=$?
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18107 ac_cv_type_u_int64_t=yes
18108 else
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 ac_cv_type_u_int64_t=no
18115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18117 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18118 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18119 if test $ac_cv_type_u_int64_t = yes; then
18121 cat >>confdefs.h <<_ACEOF
18122 #define HAVE_U_INT64_T 1
18123 _ACEOF
18126 else
18127 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18128 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18129 { (exit 1); exit 1; }; }
18143 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18150 else
18151 cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h. */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18159 #define $ac_func innocuous_$ac_func
18161 /* System header to define __stub macros and hopefully few prototypes,
18162 which can conflict with char $ac_func (); below.
18163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18164 <limits.h> exists even on freestanding compilers. */
18166 #ifdef __STDC__
18167 # include <limits.h>
18168 #else
18169 # include <assert.h>
18170 #endif
18172 #undef $ac_func
18174 /* Override any GCC internal prototype to avoid an error.
18175 Use char because int might match the return type of a GCC
18176 builtin and then its argument prototype would still apply. */
18177 #ifdef __cplusplus
18178 extern "C"
18179 #endif
18180 char $ac_func ();
18181 /* The GNU C library defines this for functions which it implements
18182 to always fail with ENOSYS. Some functions are actually named
18183 something starting with __ and the normal name is an alias. */
18184 #if defined __stub_$ac_func || defined __stub___$ac_func
18185 choke me
18186 #endif
18189 main ()
18191 return $ac_func ();
18193 return 0;
18195 _ACEOF
18196 rm -f conftest.$ac_objext conftest$ac_exeext
18197 if { (ac_try="$ac_link"
18198 case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18201 esac
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_link") 2>conftest.er1
18204 ac_status=$?
18205 grep -v '^ *+' conftest.er1 >conftest.err
18206 rm -f conftest.er1
18207 cat conftest.err >&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
18210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18211 { (case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18214 esac
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_try") 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; } &&
18220 { ac_try='test -s conftest$ac_exeext'
18221 { (case "(($ac_try" in
18222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223 *) ac_try_echo=$ac_try;;
18224 esac
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226 (eval "$ac_try") 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18230 eval "$as_ac_var=yes"
18231 else
18232 echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18235 eval "$as_ac_var=no"
18238 rm -f core conftest.err conftest.$ac_objext \
18239 conftest$ac_exeext conftest.$ac_ext
18241 ac_res=`eval echo '${'$as_ac_var'}'`
18242 { echo "$as_me:$LINENO: result: $ac_res" >&5
18243 echo "${ECHO_T}$ac_res" >&6; }
18244 if test `eval echo '${'$as_ac_var'}'` = yes; then
18245 cat >>confdefs.h <<_ACEOF
18246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18247 _ACEOF
18250 done
18256 for ac_func in powf fmodf strtof round
18258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18262 echo $ECHO_N "(cached) $ECHO_C" >&6
18263 else
18264 cat >conftest.$ac_ext <<_ACEOF
18265 /* confdefs.h. */
18266 _ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18272 #define $ac_func innocuous_$ac_func
18274 /* System header to define __stub macros and hopefully few prototypes,
18275 which can conflict with char $ac_func (); below.
18276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18277 <limits.h> exists even on freestanding compilers. */
18279 #ifdef __STDC__
18280 # include <limits.h>
18281 #else
18282 # include <assert.h>
18283 #endif
18285 #undef $ac_func
18287 /* Override any GCC internal prototype to avoid an error.
18288 Use char because int might match the return type of a GCC
18289 builtin and then its argument prototype would still apply. */
18290 #ifdef __cplusplus
18291 extern "C"
18292 #endif
18293 char $ac_func ();
18294 /* The GNU C library defines this for functions which it implements
18295 to always fail with ENOSYS. Some functions are actually named
18296 something starting with __ and the normal name is an alias. */
18297 #if defined __stub_$ac_func || defined __stub___$ac_func
18298 choke me
18299 #endif
18302 main ()
18304 return $ac_func ();
18306 return 0;
18308 _ACEOF
18309 rm -f conftest.$ac_objext conftest$ac_exeext
18310 if { (ac_try="$ac_link"
18311 case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18314 esac
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316 (eval "$ac_link") 2>conftest.er1
18317 ac_status=$?
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
18323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18324 { (case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18327 esac
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_try") 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; } &&
18333 { ac_try='test -s conftest$ac_exeext'
18334 { (case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18337 esac
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_try") 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 eval "$as_ac_var=yes"
18344 else
18345 echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18348 eval "$as_ac_var=no"
18351 rm -f core conftest.err conftest.$ac_objext \
18352 conftest$ac_exeext conftest.$ac_ext
18354 ac_res=`eval echo '${'$as_ac_var'}'`
18355 { echo "$as_me:$LINENO: result: $ac_res" >&5
18356 echo "${ECHO_T}$ac_res" >&6; }
18357 if test `eval echo '${'$as_ac_var'}'` = yes; then
18358 cat >>confdefs.h <<_ACEOF
18359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18360 _ACEOF
18363 done
18370 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18377 else
18378 cat >conftest.$ac_ext <<_ACEOF
18379 /* confdefs.h. */
18380 _ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18386 #define $ac_func innocuous_$ac_func
18388 /* System header to define __stub macros and hopefully few prototypes,
18389 which can conflict with char $ac_func (); below.
18390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18391 <limits.h> exists even on freestanding compilers. */
18393 #ifdef __STDC__
18394 # include <limits.h>
18395 #else
18396 # include <assert.h>
18397 #endif
18399 #undef $ac_func
18401 /* Override any GCC internal prototype to avoid an error.
18402 Use char because int might match the return type of a GCC
18403 builtin and then its argument prototype would still apply. */
18404 #ifdef __cplusplus
18405 extern "C"
18406 #endif
18407 char $ac_func ();
18408 /* The GNU C library defines this for functions which it implements
18409 to always fail with ENOSYS. Some functions are actually named
18410 something starting with __ and the normal name is an alias. */
18411 #if defined __stub_$ac_func || defined __stub___$ac_func
18412 choke me
18413 #endif
18416 main ()
18418 return $ac_func ();
18420 return 0;
18422 _ACEOF
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (ac_try="$ac_link"
18425 case "(($ac_try" in
18426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427 *) ac_try_echo=$ac_try;;
18428 esac
18429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18430 (eval "$ac_link") 2>conftest.er1
18431 ac_status=$?
18432 grep -v '^ *+' conftest.er1 >conftest.err
18433 rm -f conftest.er1
18434 cat conftest.err >&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
18437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18438 { (case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18441 esac
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_try") 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; } &&
18447 { ac_try='test -s conftest$ac_exeext'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18451 esac
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 eval "$as_ac_var=yes"
18458 else
18459 echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.$ac_ext >&5
18462 eval "$as_ac_var=no"
18465 rm -f core conftest.err conftest.$ac_objext \
18466 conftest$ac_exeext conftest.$ac_ext
18468 ac_res=`eval echo '${'$as_ac_var'}'`
18469 { echo "$as_me:$LINENO: result: $ac_res" >&5
18470 echo "${ECHO_T}$ac_res" >&6; }
18471 if test `eval echo '${'$as_ac_var'}'` = yes; then
18472 cat >>confdefs.h <<_ACEOF
18473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18474 _ACEOF
18477 done
18482 for ac_func in isatty mkdtemp mkstemp
18484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18488 echo $ECHO_N "(cached) $ECHO_C" >&6
18489 else
18490 cat >conftest.$ac_ext <<_ACEOF
18491 /* confdefs.h. */
18492 _ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18498 #define $ac_func innocuous_$ac_func
18500 /* System header to define __stub macros and hopefully few prototypes,
18501 which can conflict with char $ac_func (); below.
18502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18503 <limits.h> exists even on freestanding compilers. */
18505 #ifdef __STDC__
18506 # include <limits.h>
18507 #else
18508 # include <assert.h>
18509 #endif
18511 #undef $ac_func
18513 /* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18516 #ifdef __cplusplus
18517 extern "C"
18518 #endif
18519 char $ac_func ();
18520 /* The GNU C library defines this for functions which it implements
18521 to always fail with ENOSYS. Some functions are actually named
18522 something starting with __ and the normal name is an alias. */
18523 #if defined __stub_$ac_func || defined __stub___$ac_func
18524 choke me
18525 #endif
18528 main ()
18530 return $ac_func ();
18532 return 0;
18534 _ACEOF
18535 rm -f conftest.$ac_objext conftest$ac_exeext
18536 if { (ac_try="$ac_link"
18537 case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_link") 2>conftest.er1
18543 ac_status=$?
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } &&
18549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18550 { (case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18553 esac
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_try") 2>&5
18556 ac_status=$?
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; } &&
18559 { ac_try='test -s conftest$ac_exeext'
18560 { (case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18563 esac
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_try") 2>&5
18566 ac_status=$?
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; }; then
18569 eval "$as_ac_var=yes"
18570 else
18571 echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 eval "$as_ac_var=no"
18577 rm -f core conftest.err conftest.$ac_objext \
18578 conftest$ac_exeext conftest.$ac_ext
18580 ac_res=`eval echo '${'$as_ac_var'}'`
18581 { echo "$as_me:$LINENO: result: $ac_res" >&5
18582 echo "${ECHO_T}$ac_res" >&6; }
18583 if test `eval echo '${'$as_ac_var'}'` = yes; then
18584 cat >>confdefs.h <<_ACEOF
18585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18586 _ACEOF
18589 done
18597 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18604 else
18605 cat >conftest.$ac_ext <<_ACEOF
18606 /* confdefs.h. */
18607 _ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18613 #define $ac_func innocuous_$ac_func
18615 /* System header to define __stub macros and hopefully few prototypes,
18616 which can conflict with char $ac_func (); below.
18617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18618 <limits.h> exists even on freestanding compilers. */
18620 #ifdef __STDC__
18621 # include <limits.h>
18622 #else
18623 # include <assert.h>
18624 #endif
18626 #undef $ac_func
18628 /* Override any GCC internal prototype to avoid an error.
18629 Use char because int might match the return type of a GCC
18630 builtin and then its argument prototype would still apply. */
18631 #ifdef __cplusplus
18632 extern "C"
18633 #endif
18634 char $ac_func ();
18635 /* The GNU C library defines this for functions which it implements
18636 to always fail with ENOSYS. Some functions are actually named
18637 something starting with __ and the normal name is an alias. */
18638 #if defined __stub_$ac_func || defined __stub___$ac_func
18639 choke me
18640 #endif
18643 main ()
18645 return $ac_func ();
18647 return 0;
18649 _ACEOF
18650 rm -f conftest.$ac_objext conftest$ac_exeext
18651 if { (ac_try="$ac_link"
18652 case "(($ac_try" in
18653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654 *) ac_try_echo=$ac_try;;
18655 esac
18656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657 (eval "$ac_link") 2>conftest.er1
18658 ac_status=$?
18659 grep -v '^ *+' conftest.er1 >conftest.err
18660 rm -f conftest.er1
18661 cat conftest.err >&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } &&
18664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18665 { (case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18668 esac
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_try") 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; } &&
18674 { ac_try='test -s conftest$ac_exeext'
18675 { (case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18678 esac
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_try") 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 eval "$as_ac_var=yes"
18685 else
18686 echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18689 eval "$as_ac_var=no"
18692 rm -f core conftest.err conftest.$ac_objext \
18693 conftest$ac_exeext conftest.$ac_ext
18695 ac_res=`eval echo '${'$as_ac_var'}'`
18696 { echo "$as_me:$LINENO: result: $ac_res" >&5
18697 echo "${ECHO_T}$ac_res" >&6; }
18698 if test `eval echo '${'$as_ac_var'}'` = yes; then
18699 cat >>confdefs.h <<_ACEOF
18700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18701 _ACEOF
18704 done
18709 for ac_func in strerror strerror_r setenv
18711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18716 else
18717 cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h. */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18725 #define $ac_func innocuous_$ac_func
18727 /* System header to define __stub macros and hopefully few prototypes,
18728 which can conflict with char $ac_func (); below.
18729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18730 <limits.h> exists even on freestanding compilers. */
18732 #ifdef __STDC__
18733 # include <limits.h>
18734 #else
18735 # include <assert.h>
18736 #endif
18738 #undef $ac_func
18740 /* Override any GCC internal prototype to avoid an error.
18741 Use char because int might match the return type of a GCC
18742 builtin and then its argument prototype would still apply. */
18743 #ifdef __cplusplus
18744 extern "C"
18745 #endif
18746 char $ac_func ();
18747 /* The GNU C library defines this for functions which it implements
18748 to always fail with ENOSYS. Some functions are actually named
18749 something starting with __ and the normal name is an alias. */
18750 #if defined __stub_$ac_func || defined __stub___$ac_func
18751 choke me
18752 #endif
18755 main ()
18757 return $ac_func ();
18759 return 0;
18761 _ACEOF
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (ac_try="$ac_link"
18764 case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18767 esac
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_link") 2>conftest.er1
18770 ac_status=$?
18771 grep -v '^ *+' conftest.er1 >conftest.err
18772 rm -f conftest.er1
18773 cat conftest.err >&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } &&
18776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18777 { (case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_try") 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; } &&
18786 { ac_try='test -s conftest$ac_exeext'
18787 { (case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18790 esac
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_try") 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; }; then
18796 eval "$as_ac_var=yes"
18797 else
18798 echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18801 eval "$as_ac_var=no"
18804 rm -f core conftest.err conftest.$ac_objext \
18805 conftest$ac_exeext conftest.$ac_ext
18807 ac_res=`eval echo '${'$as_ac_var'}'`
18808 { echo "$as_me:$LINENO: result: $ac_res" >&5
18809 echo "${ECHO_T}$ac_res" >&6; }
18810 if test `eval echo '${'$as_ac_var'}'` = yes; then
18811 cat >>confdefs.h <<_ACEOF
18812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18813 _ACEOF
18816 done
18822 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 else
18830 cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h. */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18838 #define $ac_func innocuous_$ac_func
18840 /* System header to define __stub macros and hopefully few prototypes,
18841 which can conflict with char $ac_func (); below.
18842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18843 <limits.h> exists even on freestanding compilers. */
18845 #ifdef __STDC__
18846 # include <limits.h>
18847 #else
18848 # include <assert.h>
18849 #endif
18851 #undef $ac_func
18853 /* Override any GCC internal prototype to avoid an error.
18854 Use char because int might match the return type of a GCC
18855 builtin and then its argument prototype would still apply. */
18856 #ifdef __cplusplus
18857 extern "C"
18858 #endif
18859 char $ac_func ();
18860 /* The GNU C library defines this for functions which it implements
18861 to always fail with ENOSYS. Some functions are actually named
18862 something starting with __ and the normal name is an alias. */
18863 #if defined __stub_$ac_func || defined __stub___$ac_func
18864 choke me
18865 #endif
18868 main ()
18870 return $ac_func ();
18872 return 0;
18874 _ACEOF
18875 rm -f conftest.$ac_objext conftest$ac_exeext
18876 if { (ac_try="$ac_link"
18877 case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18880 esac
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_link") 2>conftest.er1
18883 ac_status=$?
18884 grep -v '^ *+' conftest.er1 >conftest.err
18885 rm -f conftest.er1
18886 cat conftest.err >&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } &&
18889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest$ac_exeext'
18900 { (case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18903 esac
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_try") 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 eval "$as_ac_var=yes"
18910 else
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18914 eval "$as_ac_var=no"
18917 rm -f core conftest.err conftest.$ac_objext \
18918 conftest$ac_exeext conftest.$ac_ext
18920 ac_res=`eval echo '${'$as_ac_var'}'`
18921 { echo "$as_me:$LINENO: result: $ac_res" >&5
18922 echo "${ECHO_T}$ac_res" >&6; }
18923 if test `eval echo '${'$as_ac_var'}'` = yes; then
18924 cat >>confdefs.h <<_ACEOF
18925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18926 _ACEOF
18929 done
18936 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 else
18944 cat >conftest.$ac_ext <<_ACEOF
18945 /* confdefs.h. */
18946 _ACEOF
18947 cat confdefs.h >>conftest.$ac_ext
18948 cat >>conftest.$ac_ext <<_ACEOF
18949 /* end confdefs.h. */
18950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18952 #define $ac_func innocuous_$ac_func
18954 /* System header to define __stub macros and hopefully few prototypes,
18955 which can conflict with char $ac_func (); below.
18956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18957 <limits.h> exists even on freestanding compilers. */
18959 #ifdef __STDC__
18960 # include <limits.h>
18961 #else
18962 # include <assert.h>
18963 #endif
18965 #undef $ac_func
18967 /* Override any GCC internal prototype to avoid an error.
18968 Use char because int might match the return type of a GCC
18969 builtin and then its argument prototype would still apply. */
18970 #ifdef __cplusplus
18971 extern "C"
18972 #endif
18973 char $ac_func ();
18974 /* The GNU C library defines this for functions which it implements
18975 to always fail with ENOSYS. Some functions are actually named
18976 something starting with __ and the normal name is an alias. */
18977 #if defined __stub_$ac_func || defined __stub___$ac_func
18978 choke me
18979 #endif
18982 main ()
18984 return $ac_func ();
18986 return 0;
18988 _ACEOF
18989 rm -f conftest.$ac_objext conftest$ac_exeext
18990 if { (ac_try="$ac_link"
18991 case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18994 esac
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_link") 2>conftest.er1
18997 ac_status=$?
18998 grep -v '^ *+' conftest.er1 >conftest.err
18999 rm -f conftest.er1
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } &&
19003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19004 { (case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19007 esac
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_try") 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try='test -s conftest$ac_exeext'
19014 { (case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19017 esac
19018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_try") 2>&5
19020 ac_status=$?
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
19023 eval "$as_ac_var=yes"
19024 else
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028 eval "$as_ac_var=no"
19031 rm -f core conftest.err conftest.$ac_objext \
19032 conftest$ac_exeext conftest.$ac_ext
19034 ac_res=`eval echo '${'$as_ac_var'}'`
19035 { echo "$as_me:$LINENO: result: $ac_res" >&5
19036 echo "${ECHO_T}$ac_res" >&6; }
19037 if test `eval echo '${'$as_ac_var'}'` = yes; then
19038 cat >>confdefs.h <<_ACEOF
19039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19040 _ACEOF
19043 done
19045 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19046 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19047 if test "${llvm_cv_c_printf_a+set}" = set; then
19048 echo $ECHO_N "(cached) $ECHO_C" >&6
19049 else
19050 ac_ext=c
19051 ac_cpp='$CPP $CPPFLAGS'
19052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19056 if test "$cross_compiling" = yes; then
19057 llvmac_cv_c_printf_a=no
19058 else
19059 cat >conftest.$ac_ext <<_ACEOF
19061 /* confdefs.h. */
19062 _ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h. */
19067 #include <stdio.h>
19068 #include <stdlib.h>
19071 main ()
19074 volatile double A, B;
19075 char Buffer[100];
19076 A = 1;
19077 A /= 10.0;
19078 sprintf(Buffer, "%a", A);
19079 B = atof(Buffer);
19080 if (A != B)
19081 return (1);
19082 if (A != 0x1.999999999999ap-4)
19083 return (1);
19084 return (0);
19086 return 0;
19088 _ACEOF
19089 rm -f conftest$ac_exeext
19090 if { (ac_try="$ac_link"
19091 case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094 esac
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_link") 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103 esac
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 llvm_cv_c_printf_a=yes
19110 else
19111 echo "$as_me: program exited with status $ac_status" >&5
19112 echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19115 ( exit $ac_status )
19116 llvmac_cv_c_printf_a=no
19118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19122 ac_ext=c
19123 ac_cpp='$CPP $CPPFLAGS'
19124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19129 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19130 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19131 if test "$llvm_cv_c_printf_a" = "yes"; then
19133 cat >>confdefs.h <<\_ACEOF
19134 #define HAVE_PRINTF_A 1
19135 _ACEOF
19140 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19141 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19142 if test "${ac_cv_func_rand48+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19144 else
19145 ac_ext=cpp
19146 ac_cpp='$CXXCPP $CPPFLAGS'
19147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19151 cat >conftest.$ac_ext <<_ACEOF
19152 /* confdefs.h. */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 #include <stdlib.h>
19159 main ()
19161 srand48(0);lrand48();drand48();
19163 return 0;
19165 _ACEOF
19166 rm -f conftest.$ac_objext
19167 if { (ac_try="$ac_compile"
19168 case "(($ac_try" in
19169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170 *) ac_try_echo=$ac_try;;
19171 esac
19172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173 (eval "$ac_compile") 2>conftest.er1
19174 ac_status=$?
19175 grep -v '^ *+' conftest.er1 >conftest.err
19176 rm -f conftest.er1
19177 cat conftest.err >&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } &&
19180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19181 { (case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19184 esac
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_try") 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; } &&
19190 { ac_try='test -s conftest.$ac_objext'
19191 { (case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19194 esac
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_try") 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; }; then
19200 ac_cv_func_rand48=yes
19201 else
19202 echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19205 ac_cv_func_rand48=no
19208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19209 ac_ext=c
19210 ac_cpp='$CPP $CPPFLAGS'
19211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19216 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19217 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19219 if test "$ac_cv_func_rand48" = "yes" ; then
19221 cat >>confdefs.h <<\_ACEOF
19222 #define HAVE_RAND48 1
19223 _ACEOF
19228 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19229 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19230 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 else
19233 cat >conftest.$ac_ext <<_ACEOF
19234 /* confdefs.h. */
19235 _ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19239 $ac_includes_default
19241 main ()
19243 #ifndef strerror_s
19244 char *p = (char *) strerror_s;
19245 return !p;
19246 #endif
19249 return 0;
19251 _ACEOF
19252 rm -f conftest.$ac_objext
19253 if { (ac_try="$ac_compile"
19254 case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19257 esac
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_compile") 2>conftest.er1
19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19267 { (case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270 esac
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_try") 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; } &&
19276 { ac_try='test -s conftest.$ac_objext'
19277 { (case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19280 esac
19281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_try") 2>&5
19283 ac_status=$?
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286 ac_cv_have_decl_strerror_s=yes
19287 else
19288 echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19291 ac_cv_have_decl_strerror_s=no
19294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19297 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19298 if test $ac_cv_have_decl_strerror_s = yes; then
19300 cat >>confdefs.h <<_ACEOF
19301 #define HAVE_DECL_STRERROR_S 1
19302 _ACEOF
19305 else
19306 cat >>confdefs.h <<_ACEOF
19307 #define HAVE_DECL_STRERROR_S 0
19308 _ACEOF
19315 if test "$llvm_cv_os_type" = "MingW" ; then
19316 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19317 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19318 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19319 echo $ECHO_N "(cached) $ECHO_C" >&6
19320 else
19321 ac_check_lib_save_LIBS=$LIBS
19322 LIBS="-lgcc $LIBS"
19323 cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h. */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19330 /* Override any GCC internal prototype to avoid an error.
19331 Use char because int might match the return type of a GCC
19332 builtin and then its argument prototype would still apply. */
19333 #ifdef __cplusplus
19334 extern "C"
19335 #endif
19336 char _alloca ();
19338 main ()
19340 return _alloca ();
19342 return 0;
19344 _ACEOF
19345 rm -f conftest.$ac_objext conftest$ac_exeext
19346 if { (ac_try="$ac_link"
19347 case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350 esac
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_link") 2>conftest.er1
19353 ac_status=$?
19354 grep -v '^ *+' conftest.er1 >conftest.err
19355 rm -f conftest.er1
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19360 { (case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19363 esac
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_try") 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest$ac_exeext'
19370 { (case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19373 esac
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_try") 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_lib_gcc__alloca=yes
19380 else
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_lib_gcc__alloca=no
19387 rm -f core conftest.err conftest.$ac_objext \
19388 conftest$ac_exeext conftest.$ac_ext
19389 LIBS=$ac_check_lib_save_LIBS
19391 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19392 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19393 if test $ac_cv_lib_gcc__alloca = yes; then
19395 cat >>confdefs.h <<\_ACEOF
19396 #define HAVE__ALLOCA 1
19397 _ACEOF
19401 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19402 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19403 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 else
19406 ac_check_lib_save_LIBS=$LIBS
19407 LIBS="-lgcc $LIBS"
19408 cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h. */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19415 /* Override any GCC internal prototype to avoid an error.
19416 Use char because int might match the return type of a GCC
19417 builtin and then its argument prototype would still apply. */
19418 #ifdef __cplusplus
19419 extern "C"
19420 #endif
19421 char __alloca ();
19423 main ()
19425 return __alloca ();
19427 return 0;
19429 _ACEOF
19430 rm -f conftest.$ac_objext conftest$ac_exeext
19431 if { (ac_try="$ac_link"
19432 case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19435 esac
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_link") 2>conftest.er1
19438 ac_status=$?
19439 grep -v '^ *+' conftest.er1 >conftest.err
19440 rm -f conftest.er1
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } &&
19444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19445 { (case "(($ac_try" in
19446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447 *) ac_try_echo=$ac_try;;
19448 esac
19449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450 (eval "$ac_try") 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest$ac_exeext'
19455 { (case "(($ac_try" in
19456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457 *) ac_try_echo=$ac_try;;
19458 esac
19459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460 (eval "$ac_try") 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 ac_cv_lib_gcc___alloca=yes
19465 else
19466 echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19469 ac_cv_lib_gcc___alloca=no
19472 rm -f core conftest.err conftest.$ac_objext \
19473 conftest$ac_exeext conftest.$ac_ext
19474 LIBS=$ac_check_lib_save_LIBS
19476 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19477 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19478 if test $ac_cv_lib_gcc___alloca = yes; then
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE___ALLOCA 1
19482 _ACEOF
19486 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19487 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19488 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19490 else
19491 ac_check_lib_save_LIBS=$LIBS
19492 LIBS="-lgcc $LIBS"
19493 cat >conftest.$ac_ext <<_ACEOF
19494 /* confdefs.h. */
19495 _ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19500 /* Override any GCC internal prototype to avoid an error.
19501 Use char because int might match the return type of a GCC
19502 builtin and then its argument prototype would still apply. */
19503 #ifdef __cplusplus
19504 extern "C"
19505 #endif
19506 char __chkstk ();
19508 main ()
19510 return __chkstk ();
19512 return 0;
19514 _ACEOF
19515 rm -f conftest.$ac_objext conftest$ac_exeext
19516 if { (ac_try="$ac_link"
19517 case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520 esac
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_link") 2>conftest.er1
19523 ac_status=$?
19524 grep -v '^ *+' conftest.er1 >conftest.err
19525 rm -f conftest.er1
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } &&
19529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19530 { (case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_try") 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; } &&
19539 { ac_try='test -s conftest$ac_exeext'
19540 { (case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19543 esac
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_try") 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_cv_lib_gcc___chkstk=yes
19550 else
19551 echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.$ac_ext >&5
19554 ac_cv_lib_gcc___chkstk=no
19557 rm -f core conftest.err conftest.$ac_objext \
19558 conftest$ac_exeext conftest.$ac_ext
19559 LIBS=$ac_check_lib_save_LIBS
19561 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19562 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19563 if test $ac_cv_lib_gcc___chkstk = yes; then
19565 cat >>confdefs.h <<\_ACEOF
19566 #define HAVE___CHKSTK 1
19567 _ACEOF
19571 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19572 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19573 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 else
19576 ac_check_lib_save_LIBS=$LIBS
19577 LIBS="-lgcc $LIBS"
19578 cat >conftest.$ac_ext <<_ACEOF
19579 /* confdefs.h. */
19580 _ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19585 /* Override any GCC internal prototype to avoid an error.
19586 Use char because int might match the return type of a GCC
19587 builtin and then its argument prototype would still apply. */
19588 #ifdef __cplusplus
19589 extern "C"
19590 #endif
19591 char ___chkstk ();
19593 main ()
19595 return ___chkstk ();
19597 return 0;
19599 _ACEOF
19600 rm -f conftest.$ac_objext conftest$ac_exeext
19601 if { (ac_try="$ac_link"
19602 case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605 esac
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_link") 2>conftest.er1
19608 ac_status=$?
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } &&
19614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19615 { (case "(($ac_try" in
19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19618 esac
19619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620 (eval "$ac_try") 2>&5
19621 ac_status=$?
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; } &&
19624 { ac_try='test -s conftest$ac_exeext'
19625 { (case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19628 esac
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_try") 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; }; then
19634 ac_cv_lib_gcc____chkstk=yes
19635 else
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19639 ac_cv_lib_gcc____chkstk=no
19642 rm -f core conftest.err conftest.$ac_objext \
19643 conftest$ac_exeext conftest.$ac_ext
19644 LIBS=$ac_check_lib_save_LIBS
19646 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19647 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19648 if test $ac_cv_lib_gcc____chkstk = yes; then
19650 cat >>confdefs.h <<\_ACEOF
19651 #define HAVE____CHKSTK 1
19652 _ACEOF
19657 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19658 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19659 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19661 else
19662 ac_check_lib_save_LIBS=$LIBS
19663 LIBS="-lgcc $LIBS"
19664 cat >conftest.$ac_ext <<_ACEOF
19665 /* confdefs.h. */
19666 _ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19671 /* Override any GCC internal prototype to avoid an error.
19672 Use char because int might match the return type of a GCC
19673 builtin and then its argument prototype would still apply. */
19674 #ifdef __cplusplus
19675 extern "C"
19676 #endif
19677 char __ashldi3 ();
19679 main ()
19681 return __ashldi3 ();
19683 return 0;
19685 _ACEOF
19686 rm -f conftest.$ac_objext conftest$ac_exeext
19687 if { (ac_try="$ac_link"
19688 case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19691 esac
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_link") 2>conftest.er1
19694 ac_status=$?
19695 grep -v '^ *+' conftest.er1 >conftest.err
19696 rm -f conftest.er1
19697 cat conftest.err >&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } &&
19700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19701 { (case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19704 esac
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_try") 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; } &&
19710 { ac_try='test -s conftest$ac_exeext'
19711 { (case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19714 esac
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_try") 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; }; then
19720 ac_cv_lib_gcc___ashldi3=yes
19721 else
19722 echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.$ac_ext >&5
19725 ac_cv_lib_gcc___ashldi3=no
19728 rm -f core conftest.err conftest.$ac_objext \
19729 conftest$ac_exeext conftest.$ac_ext
19730 LIBS=$ac_check_lib_save_LIBS
19732 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19733 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19734 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19736 cat >>confdefs.h <<\_ACEOF
19737 #define HAVE___ASHLDI3 1
19738 _ACEOF
19742 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19743 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19744 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19746 else
19747 ac_check_lib_save_LIBS=$LIBS
19748 LIBS="-lgcc $LIBS"
19749 cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h. */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19756 /* Override any GCC internal prototype to avoid an error.
19757 Use char because int might match the return type of a GCC
19758 builtin and then its argument prototype would still apply. */
19759 #ifdef __cplusplus
19760 extern "C"
19761 #endif
19762 char __ashrdi3 ();
19764 main ()
19766 return __ashrdi3 ();
19768 return 0;
19770 _ACEOF
19771 rm -f conftest.$ac_objext conftest$ac_exeext
19772 if { (ac_try="$ac_link"
19773 case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19776 esac
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_link") 2>conftest.er1
19779 ac_status=$?
19780 grep -v '^ *+' conftest.er1 >conftest.err
19781 rm -f conftest.er1
19782 cat conftest.err >&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } &&
19785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19786 { (case "(($ac_try" in
19787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788 *) ac_try_echo=$ac_try;;
19789 esac
19790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791 (eval "$ac_try") 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try='test -s conftest$ac_exeext'
19796 { (case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19799 esac
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_try") 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; }; then
19805 ac_cv_lib_gcc___ashrdi3=yes
19806 else
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 ac_cv_lib_gcc___ashrdi3=no
19813 rm -f core conftest.err conftest.$ac_objext \
19814 conftest$ac_exeext conftest.$ac_ext
19815 LIBS=$ac_check_lib_save_LIBS
19817 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19818 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19819 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE___ASHRDI3 1
19823 _ACEOF
19827 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19828 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19829 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19831 else
19832 ac_check_lib_save_LIBS=$LIBS
19833 LIBS="-lgcc $LIBS"
19834 cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h. */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19841 /* Override any GCC internal prototype to avoid an error.
19842 Use char because int might match the return type of a GCC
19843 builtin and then its argument prototype would still apply. */
19844 #ifdef __cplusplus
19845 extern "C"
19846 #endif
19847 char __divdi3 ();
19849 main ()
19851 return __divdi3 ();
19853 return 0;
19855 _ACEOF
19856 rm -f conftest.$ac_objext conftest$ac_exeext
19857 if { (ac_try="$ac_link"
19858 case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_link") 2>conftest.er1
19864 ac_status=$?
19865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
19870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19871 { (case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_try") 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; } &&
19880 { ac_try='test -s conftest$ac_exeext'
19881 { (case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_try") 2>&5
19887 ac_status=$?
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890 ac_cv_lib_gcc___divdi3=yes
19891 else
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 ac_cv_lib_gcc___divdi3=no
19898 rm -f core conftest.err conftest.$ac_objext \
19899 conftest$ac_exeext conftest.$ac_ext
19900 LIBS=$ac_check_lib_save_LIBS
19902 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19903 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19904 if test $ac_cv_lib_gcc___divdi3 = yes; then
19906 cat >>confdefs.h <<\_ACEOF
19907 #define HAVE___DIVDI3 1
19908 _ACEOF
19912 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19913 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19914 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 else
19917 ac_check_lib_save_LIBS=$LIBS
19918 LIBS="-lgcc $LIBS"
19919 cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h. */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19926 /* Override any GCC internal prototype to avoid an error.
19927 Use char because int might match the return type of a GCC
19928 builtin and then its argument prototype would still apply. */
19929 #ifdef __cplusplus
19930 extern "C"
19931 #endif
19932 char __fixdfdi ();
19934 main ()
19936 return __fixdfdi ();
19938 return 0;
19940 _ACEOF
19941 rm -f conftest.$ac_objext conftest$ac_exeext
19942 if { (ac_try="$ac_link"
19943 case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_link") 2>conftest.er1
19949 ac_status=$?
19950 grep -v '^ *+' conftest.er1 >conftest.err
19951 rm -f conftest.er1
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19956 { (case "(($ac_try" in
19957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958 *) ac_try_echo=$ac_try;;
19959 esac
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961 (eval "$ac_try") 2>&5
19962 ac_status=$?
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; } &&
19965 { ac_try='test -s conftest$ac_exeext'
19966 { (case "(($ac_try" in
19967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19969 esac
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_try") 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_cv_lib_gcc___fixdfdi=yes
19976 else
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 ac_cv_lib_gcc___fixdfdi=no
19983 rm -f core conftest.err conftest.$ac_objext \
19984 conftest$ac_exeext conftest.$ac_ext
19985 LIBS=$ac_check_lib_save_LIBS
19987 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19988 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19989 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19991 cat >>confdefs.h <<\_ACEOF
19992 #define HAVE___FIXDFDI 1
19993 _ACEOF
19997 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19998 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19999 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20001 else
20002 ac_check_lib_save_LIBS=$LIBS
20003 LIBS="-lgcc $LIBS"
20004 cat >conftest.$ac_ext <<_ACEOF
20005 /* confdefs.h. */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20011 /* Override any GCC internal prototype to avoid an error.
20012 Use char because int might match the return type of a GCC
20013 builtin and then its argument prototype would still apply. */
20014 #ifdef __cplusplus
20015 extern "C"
20016 #endif
20017 char __fixsfdi ();
20019 main ()
20021 return __fixsfdi ();
20023 return 0;
20025 _ACEOF
20026 rm -f conftest.$ac_objext conftest$ac_exeext
20027 if { (ac_try="$ac_link"
20028 case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031 esac
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_link") 2>conftest.er1
20034 ac_status=$?
20035 grep -v '^ *+' conftest.er1 >conftest.err
20036 rm -f conftest.er1
20037 cat conftest.err >&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } &&
20040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20041 { (case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20044 esac
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_try") 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; } &&
20050 { ac_try='test -s conftest$ac_exeext'
20051 { (case "(($ac_try" in
20052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053 *) ac_try_echo=$ac_try;;
20054 esac
20055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056 (eval "$ac_try") 2>&5
20057 ac_status=$?
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; }; then
20060 ac_cv_lib_gcc___fixsfdi=yes
20061 else
20062 echo "$as_me: failed program was:" >&5
20063 sed 's/^/| /' conftest.$ac_ext >&5
20065 ac_cv_lib_gcc___fixsfdi=no
20068 rm -f core conftest.err conftest.$ac_objext \
20069 conftest$ac_exeext conftest.$ac_ext
20070 LIBS=$ac_check_lib_save_LIBS
20072 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20073 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20074 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20076 cat >>confdefs.h <<\_ACEOF
20077 #define HAVE___FIXSFDI 1
20078 _ACEOF
20082 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20083 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20084 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087 ac_check_lib_save_LIBS=$LIBS
20088 LIBS="-lgcc $LIBS"
20089 cat >conftest.$ac_ext <<_ACEOF
20090 /* confdefs.h. */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20096 /* Override any GCC internal prototype to avoid an error.
20097 Use char because int might match the return type of a GCC
20098 builtin and then its argument prototype would still apply. */
20099 #ifdef __cplusplus
20100 extern "C"
20101 #endif
20102 char __floatdidf ();
20104 main ()
20106 return __floatdidf ();
20108 return 0;
20110 _ACEOF
20111 rm -f conftest.$ac_objext conftest$ac_exeext
20112 if { (ac_try="$ac_link"
20113 case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20116 esac
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_link") 2>conftest.er1
20119 ac_status=$?
20120 grep -v '^ *+' conftest.er1 >conftest.err
20121 rm -f conftest.er1
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } &&
20125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20126 { (case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20129 esac
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_try") 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; } &&
20135 { ac_try='test -s conftest$ac_exeext'
20136 { (case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20139 esac
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_try") 2>&5
20142 ac_status=$?
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; }; then
20145 ac_cv_lib_gcc___floatdidf=yes
20146 else
20147 echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20150 ac_cv_lib_gcc___floatdidf=no
20153 rm -f core conftest.err conftest.$ac_objext \
20154 conftest$ac_exeext conftest.$ac_ext
20155 LIBS=$ac_check_lib_save_LIBS
20157 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20158 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20159 if test $ac_cv_lib_gcc___floatdidf = yes; then
20161 cat >>confdefs.h <<\_ACEOF
20162 #define HAVE___FLOATDIDF 1
20163 _ACEOF
20167 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20168 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20169 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20171 else
20172 ac_check_lib_save_LIBS=$LIBS
20173 LIBS="-lgcc $LIBS"
20174 cat >conftest.$ac_ext <<_ACEOF
20175 /* confdefs.h. */
20176 _ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20181 /* Override any GCC internal prototype to avoid an error.
20182 Use char because int might match the return type of a GCC
20183 builtin and then its argument prototype would still apply. */
20184 #ifdef __cplusplus
20185 extern "C"
20186 #endif
20187 char __lshrdi3 ();
20189 main ()
20191 return __lshrdi3 ();
20193 return 0;
20195 _ACEOF
20196 rm -f conftest.$ac_objext conftest$ac_exeext
20197 if { (ac_try="$ac_link"
20198 case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20201 esac
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_link") 2>conftest.er1
20204 ac_status=$?
20205 grep -v '^ *+' conftest.er1 >conftest.err
20206 rm -f conftest.er1
20207 cat conftest.err >&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } &&
20210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20211 { (case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20214 esac
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_try") 2>&5
20217 ac_status=$?
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; } &&
20220 { ac_try='test -s conftest$ac_exeext'
20221 { (case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_try") 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 ac_cv_lib_gcc___lshrdi3=yes
20231 else
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20235 ac_cv_lib_gcc___lshrdi3=no
20238 rm -f core conftest.err conftest.$ac_objext \
20239 conftest$ac_exeext conftest.$ac_ext
20240 LIBS=$ac_check_lib_save_LIBS
20242 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20243 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20244 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20246 cat >>confdefs.h <<\_ACEOF
20247 #define HAVE___LSHRDI3 1
20248 _ACEOF
20252 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20253 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20254 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20255 echo $ECHO_N "(cached) $ECHO_C" >&6
20256 else
20257 ac_check_lib_save_LIBS=$LIBS
20258 LIBS="-lgcc $LIBS"
20259 cat >conftest.$ac_ext <<_ACEOF
20260 /* confdefs.h. */
20261 _ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20266 /* Override any GCC internal prototype to avoid an error.
20267 Use char because int might match the return type of a GCC
20268 builtin and then its argument prototype would still apply. */
20269 #ifdef __cplusplus
20270 extern "C"
20271 #endif
20272 char __moddi3 ();
20274 main ()
20276 return __moddi3 ();
20278 return 0;
20280 _ACEOF
20281 rm -f conftest.$ac_objext conftest$ac_exeext
20282 if { (ac_try="$ac_link"
20283 case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20286 esac
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_link") 2>conftest.er1
20289 ac_status=$?
20290 grep -v '^ *+' conftest.er1 >conftest.err
20291 rm -f conftest.er1
20292 cat conftest.err >&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } &&
20295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20296 { (case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20299 esac
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_try") 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; } &&
20305 { ac_try='test -s conftest$ac_exeext'
20306 { (case "(($ac_try" in
20307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308 *) ac_try_echo=$ac_try;;
20309 esac
20310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311 (eval "$ac_try") 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315 ac_cv_lib_gcc___moddi3=yes
20316 else
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 ac_cv_lib_gcc___moddi3=no
20323 rm -f core conftest.err conftest.$ac_objext \
20324 conftest$ac_exeext conftest.$ac_ext
20325 LIBS=$ac_check_lib_save_LIBS
20327 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20328 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20329 if test $ac_cv_lib_gcc___moddi3 = yes; then
20331 cat >>confdefs.h <<\_ACEOF
20332 #define HAVE___MODDI3 1
20333 _ACEOF
20337 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20338 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20339 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 else
20342 ac_check_lib_save_LIBS=$LIBS
20343 LIBS="-lgcc $LIBS"
20344 cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h. */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20351 /* Override any GCC internal prototype to avoid an error.
20352 Use char because int might match the return type of a GCC
20353 builtin and then its argument prototype would still apply. */
20354 #ifdef __cplusplus
20355 extern "C"
20356 #endif
20357 char __udivdi3 ();
20359 main ()
20361 return __udivdi3 ();
20363 return 0;
20365 _ACEOF
20366 rm -f conftest.$ac_objext conftest$ac_exeext
20367 if { (ac_try="$ac_link"
20368 case "(($ac_try" in
20369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370 *) ac_try_echo=$ac_try;;
20371 esac
20372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20373 (eval "$ac_link") 2>conftest.er1
20374 ac_status=$?
20375 grep -v '^ *+' conftest.er1 >conftest.err
20376 rm -f conftest.er1
20377 cat conftest.err >&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } &&
20380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20381 { (case "(($ac_try" in
20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383 *) ac_try_echo=$ac_try;;
20384 esac
20385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386 (eval "$ac_try") 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; } &&
20390 { ac_try='test -s conftest$ac_exeext'
20391 { (case "(($ac_try" in
20392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20393 *) ac_try_echo=$ac_try;;
20394 esac
20395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20396 (eval "$ac_try") 2>&5
20397 ac_status=$?
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400 ac_cv_lib_gcc___udivdi3=yes
20401 else
20402 echo "$as_me: failed program was:" >&5
20403 sed 's/^/| /' conftest.$ac_ext >&5
20405 ac_cv_lib_gcc___udivdi3=no
20408 rm -f core conftest.err conftest.$ac_objext \
20409 conftest$ac_exeext conftest.$ac_ext
20410 LIBS=$ac_check_lib_save_LIBS
20412 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20413 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20414 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20416 cat >>confdefs.h <<\_ACEOF
20417 #define HAVE___UDIVDI3 1
20418 _ACEOF
20422 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20423 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20424 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 else
20427 ac_check_lib_save_LIBS=$LIBS
20428 LIBS="-lgcc $LIBS"
20429 cat >conftest.$ac_ext <<_ACEOF
20430 /* confdefs.h. */
20431 _ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20436 /* Override any GCC internal prototype to avoid an error.
20437 Use char because int might match the return type of a GCC
20438 builtin and then its argument prototype would still apply. */
20439 #ifdef __cplusplus
20440 extern "C"
20441 #endif
20442 char __umoddi3 ();
20444 main ()
20446 return __umoddi3 ();
20448 return 0;
20450 _ACEOF
20451 rm -f conftest.$ac_objext conftest$ac_exeext
20452 if { (ac_try="$ac_link"
20453 case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20456 esac
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_link") 2>conftest.er1
20459 ac_status=$?
20460 grep -v '^ *+' conftest.er1 >conftest.err
20461 rm -f conftest.er1
20462 cat conftest.err >&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } &&
20465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20466 { (case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20469 esac
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_try") 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; } &&
20475 { ac_try='test -s conftest$ac_exeext'
20476 { (case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20479 esac
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_try") 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 ac_cv_lib_gcc___umoddi3=yes
20486 else
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20490 ac_cv_lib_gcc___umoddi3=no
20493 rm -f core conftest.err conftest.$ac_objext \
20494 conftest$ac_exeext conftest.$ac_ext
20495 LIBS=$ac_check_lib_save_LIBS
20497 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20498 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20499 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20501 cat >>confdefs.h <<\_ACEOF
20502 #define HAVE___UMODDI3 1
20503 _ACEOF
20508 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20509 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20510 if test "${ac_cv_lib_gcc___main+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20512 else
20513 ac_check_lib_save_LIBS=$LIBS
20514 LIBS="-lgcc $LIBS"
20515 cat >conftest.$ac_ext <<_ACEOF
20516 /* confdefs.h. */
20517 _ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20522 /* Override any GCC internal prototype to avoid an error.
20523 Use char because int might match the return type of a GCC
20524 builtin and then its argument prototype would still apply. */
20525 #ifdef __cplusplus
20526 extern "C"
20527 #endif
20528 char __main ();
20530 main ()
20532 return __main ();
20534 return 0;
20536 _ACEOF
20537 rm -f conftest.$ac_objext conftest$ac_exeext
20538 if { (ac_try="$ac_link"
20539 case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20542 esac
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_link") 2>conftest.er1
20545 ac_status=$?
20546 grep -v '^ *+' conftest.er1 >conftest.err
20547 rm -f conftest.er1
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } &&
20551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20552 { (case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555 esac
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_try") 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; } &&
20561 { ac_try='test -s conftest$ac_exeext'
20562 { (case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20565 esac
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_try") 2>&5
20568 ac_status=$?
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; }; then
20571 ac_cv_lib_gcc___main=yes
20572 else
20573 echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20576 ac_cv_lib_gcc___main=no
20579 rm -f core conftest.err conftest.$ac_objext \
20580 conftest$ac_exeext conftest.$ac_ext
20581 LIBS=$ac_check_lib_save_LIBS
20583 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20584 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20585 if test $ac_cv_lib_gcc___main = yes; then
20587 cat >>confdefs.h <<\_ACEOF
20588 #define HAVE___MAIN 1
20589 _ACEOF
20593 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20594 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20595 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
20597 else
20598 ac_check_lib_save_LIBS=$LIBS
20599 LIBS="-lgcc $LIBS"
20600 cat >conftest.$ac_ext <<_ACEOF
20601 /* confdefs.h. */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20607 /* Override any GCC internal prototype to avoid an error.
20608 Use char because int might match the return type of a GCC
20609 builtin and then its argument prototype would still apply. */
20610 #ifdef __cplusplus
20611 extern "C"
20612 #endif
20613 char __cmpdi2 ();
20615 main ()
20617 return __cmpdi2 ();
20619 return 0;
20621 _ACEOF
20622 rm -f conftest.$ac_objext conftest$ac_exeext
20623 if { (ac_try="$ac_link"
20624 case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20627 esac
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_link") 2>conftest.er1
20630 ac_status=$?
20631 grep -v '^ *+' conftest.er1 >conftest.err
20632 rm -f conftest.er1
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } &&
20636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20637 { (case "(($ac_try" in
20638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639 *) ac_try_echo=$ac_try;;
20640 esac
20641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642 (eval "$ac_try") 2>&5
20643 ac_status=$?
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; } &&
20646 { ac_try='test -s conftest$ac_exeext'
20647 { (case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20650 esac
20651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652 (eval "$ac_try") 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 ac_cv_lib_gcc___cmpdi2=yes
20657 else
20658 echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20661 ac_cv_lib_gcc___cmpdi2=no
20664 rm -f core conftest.err conftest.$ac_objext \
20665 conftest$ac_exeext conftest.$ac_ext
20666 LIBS=$ac_check_lib_save_LIBS
20668 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20669 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20670 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20672 cat >>confdefs.h <<\_ACEOF
20673 #define HAVE___CMPDI2 1
20674 _ACEOF
20680 if test "$llvm_cv_os_type" = "MingW" ; then
20681 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20682 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20683 cat >conftest.$ac_ext <<_ACEOF
20684 #include <windows.h>
20685 #include <imagehlp.h>
20686 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20687 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20688 _ACEOF
20689 rm -f conftest.$ac_objext
20690 if { (ac_try="$ac_compile"
20691 case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20694 esac
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_compile") 2>conftest.er1
20697 ac_status=$?
20698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
20703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20704 { (case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_try") 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest.$ac_objext'
20714 { (case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20717 esac
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_try") 2>&5
20720 ac_status=$?
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; }; then
20724 { echo "$as_me:$LINENO: result: yes" >&5
20725 echo "${ECHO_T}yes" >&6; }
20726 llvm_cv_win32_elmcb_pcstr="PCSTR"
20728 else
20729 echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20733 { echo "$as_me:$LINENO: result: no" >&5
20734 echo "${ECHO_T}no" >&6; }
20735 llvm_cv_win32_elmcb_pcstr="PSTR"
20739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741 cat >>confdefs.h <<_ACEOF
20742 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20743 _ACEOF
20748 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20749 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20750 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
20752 else
20753 ac_ext=cpp
20754 ac_cpp='$CXXCPP $CPPFLAGS'
20755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20759 cat >conftest.$ac_ext <<_ACEOF
20760 /* confdefs.h. */
20761 _ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h. */
20765 #include <math.h>
20767 main ()
20769 float f; isnan(f);
20771 return 0;
20773 _ACEOF
20774 rm -f conftest.$ac_objext
20775 if { (ac_try="$ac_compile"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_compile") 2>conftest.er1
20782 ac_status=$?
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } &&
20788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20789 { (case "(($ac_try" in
20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20792 esac
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_try") 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try='test -s conftest.$ac_objext'
20799 { (case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20802 esac
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_try") 2>&5
20805 ac_status=$?
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
20808 ac_cv_func_isnan_in_math_h=yes
20809 else
20810 echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20813 ac_cv_func_isnan_in_math_h=no
20816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20817 ac_ext=c
20818 ac_cpp='$CPP $CPPFLAGS'
20819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20824 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20825 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20828 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20830 cat >>confdefs.h <<\_ACEOF
20831 #define HAVE_ISNAN_IN_MATH_H 1
20832 _ACEOF
20836 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20837 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20838 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20840 else
20841 ac_ext=cpp
20842 ac_cpp='$CXXCPP $CPPFLAGS'
20843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20847 cat >conftest.$ac_ext <<_ACEOF
20848 /* confdefs.h. */
20849 _ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20853 #include <cmath>
20855 main ()
20857 float f; isnan(f);
20859 return 0;
20861 _ACEOF
20862 rm -f conftest.$ac_objext
20863 if { (ac_try="$ac_compile"
20864 case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20867 esac
20868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869 (eval "$ac_compile") 2>conftest.er1
20870 ac_status=$?
20871 grep -v '^ *+' conftest.er1 >conftest.err
20872 rm -f conftest.er1
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } &&
20876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20877 { (case "(($ac_try" in
20878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879 *) ac_try_echo=$ac_try;;
20880 esac
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882 (eval "$ac_try") 2>&5
20883 ac_status=$?
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; } &&
20886 { ac_try='test -s conftest.$ac_objext'
20887 { (case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20890 esac
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_try") 2>&5
20893 ac_status=$?
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; }; then
20896 ac_cv_func_isnan_in_cmath=yes
20897 else
20898 echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20901 ac_cv_func_isnan_in_cmath=no
20904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20905 ac_ext=c
20906 ac_cpp='$CPP $CPPFLAGS'
20907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20912 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20913 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20915 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20917 cat >>confdefs.h <<\_ACEOF
20918 #define HAVE_ISNAN_IN_CMATH 1
20919 _ACEOF
20923 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20924 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20925 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20926 echo $ECHO_N "(cached) $ECHO_C" >&6
20927 else
20928 ac_ext=cpp
20929 ac_cpp='$CXXCPP $CPPFLAGS'
20930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20934 cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h. */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20940 #include <cmath>
20942 main ()
20944 float f; std::isnan(f);
20946 return 0;
20948 _ACEOF
20949 rm -f conftest.$ac_objext
20950 if { (ac_try="$ac_compile"
20951 case "(($ac_try" in
20952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953 *) ac_try_echo=$ac_try;;
20954 esac
20955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956 (eval "$ac_compile") 2>conftest.er1
20957 ac_status=$?
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } &&
20963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20964 { (case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20967 esac
20968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_try") 2>&5
20970 ac_status=$?
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); }; } &&
20973 { ac_try='test -s conftest.$ac_objext'
20974 { (case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20977 esac
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
20980 ac_status=$?
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20983 ac_cv_func_std_isnan_in_cmath=yes
20984 else
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20988 ac_cv_func_std_isnan_in_cmath=no
20991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20992 ac_ext=c
20993 ac_cpp='$CPP $CPPFLAGS'
20994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20999 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21000 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21002 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21004 cat >>confdefs.h <<\_ACEOF
21005 #define HAVE_STD_ISNAN_IN_CMATH 1
21006 _ACEOF
21011 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21012 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21013 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 else
21016 ac_ext=cpp
21017 ac_cpp='$CXXCPP $CPPFLAGS'
21018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21022 cat >conftest.$ac_ext <<_ACEOF
21023 /* confdefs.h. */
21024 _ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h. */
21028 #include <math.h>
21030 main ()
21032 float f; isinf(f);
21034 return 0;
21036 _ACEOF
21037 rm -f conftest.$ac_objext
21038 if { (ac_try="$ac_compile"
21039 case "(($ac_try" in
21040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21041 *) ac_try_echo=$ac_try;;
21042 esac
21043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21044 (eval "$ac_compile") 2>conftest.er1
21045 ac_status=$?
21046 grep -v '^ *+' conftest.er1 >conftest.err
21047 rm -f conftest.er1
21048 cat conftest.err >&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } &&
21051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21052 { (case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21055 esac
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_try") 2>&5
21058 ac_status=$?
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; } &&
21061 { ac_try='test -s conftest.$ac_objext'
21062 { (case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_try") 2>&5
21068 ac_status=$?
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; }; then
21071 ac_cv_func_isinf_in_math_h=yes
21072 else
21073 echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21076 ac_cv_func_isinf_in_math_h=no
21079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080 ac_ext=c
21081 ac_cpp='$CPP $CPPFLAGS'
21082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21087 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21088 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21090 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21092 cat >>confdefs.h <<\_ACEOF
21093 #define HAVE_ISINF_IN_MATH_H 1
21094 _ACEOF
21098 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21099 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21100 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21102 else
21103 ac_ext=cpp
21104 ac_cpp='$CXXCPP $CPPFLAGS'
21105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21109 cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h. */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21115 #include <cmath>
21117 main ()
21119 float f; isinf(f);
21121 return 0;
21123 _ACEOF
21124 rm -f conftest.$ac_objext
21125 if { (ac_try="$ac_compile"
21126 case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_compile") 2>conftest.er1
21132 ac_status=$?
21133 grep -v '^ *+' conftest.er1 >conftest.err
21134 rm -f conftest.er1
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } &&
21138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21139 { (case "(($ac_try" in
21140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21141 *) ac_try_echo=$ac_try;;
21142 esac
21143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21144 (eval "$ac_try") 2>&5
21145 ac_status=$?
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; } &&
21148 { ac_try='test -s conftest.$ac_objext'
21149 { (case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21152 esac
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_try") 2>&5
21155 ac_status=$?
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; }; then
21158 ac_cv_func_isinf_in_cmath=yes
21159 else
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21163 ac_cv_func_isinf_in_cmath=no
21166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21167 ac_ext=c
21168 ac_cpp='$CPP $CPPFLAGS'
21169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21174 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21175 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21177 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21179 cat >>confdefs.h <<\_ACEOF
21180 #define HAVE_ISINF_IN_CMATH 1
21181 _ACEOF
21185 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21186 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21187 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
21189 else
21190 ac_ext=cpp
21191 ac_cpp='$CXXCPP $CPPFLAGS'
21192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21196 cat >conftest.$ac_ext <<_ACEOF
21197 /* confdefs.h. */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21202 #include <cmath>
21204 main ()
21206 float f; std::isinf(f)}
21208 return 0;
21210 _ACEOF
21211 rm -f conftest.$ac_objext
21212 if { (ac_try="$ac_compile"
21213 case "(($ac_try" in
21214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215 *) ac_try_echo=$ac_try;;
21216 esac
21217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21218 (eval "$ac_compile") 2>conftest.er1
21219 ac_status=$?
21220 grep -v '^ *+' conftest.er1 >conftest.err
21221 rm -f conftest.er1
21222 cat conftest.err >&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } &&
21225 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21226 { (case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21229 esac
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_try") 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; } &&
21235 { ac_try='test -s conftest.$ac_objext'
21236 { (case "(($ac_try" in
21237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238 *) ac_try_echo=$ac_try;;
21239 esac
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241 (eval "$ac_try") 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; }; then
21245 ac_cv_func_std_isinf_in_cmath=yes
21246 else
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ac_cv_func_std_isinf_in_cmath=no
21253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254 ac_ext=c
21255 ac_cpp='$CPP $CPPFLAGS'
21256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21261 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21262 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21264 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21266 cat >>confdefs.h <<\_ACEOF
21267 #define HAVE_STD_ISINF_IN_CMATH 1
21268 _ACEOF
21272 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21273 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21274 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21276 else
21277 ac_ext=cpp
21278 ac_cpp='$CXXCPP $CPPFLAGS'
21279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h. */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 #include <ieeefp.h>
21291 main ()
21293 float f; finite(f);
21295 return 0;
21297 _ACEOF
21298 rm -f conftest.$ac_objext
21299 if { (ac_try="$ac_compile"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21303 esac
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_compile") 2>conftest.er1
21306 ac_status=$?
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } &&
21312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21313 { (case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21316 esac
21317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_try") 2>&5
21319 ac_status=$?
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; } &&
21322 { ac_try='test -s conftest.$ac_objext'
21323 { (case "(($ac_try" in
21324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21325 *) ac_try_echo=$ac_try;;
21326 esac
21327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21328 (eval "$ac_try") 2>&5
21329 ac_status=$?
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; }; then
21332 ac_cv_func_finite_in_ieeefp_h=yes
21333 else
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21337 ac_cv_func_finite_in_ieeefp_h=no
21340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21341 ac_ext=c
21342 ac_cpp='$CPP $CPPFLAGS'
21343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21348 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21349 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21351 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21353 cat >>confdefs.h <<\_ACEOF
21354 #define HAVE_FINITE_IN_IEEEFP_H 1
21355 _ACEOF
21361 if test "$llvm_cv_platform_type" = "Unix" ; then
21364 for ac_header in stdlib.h unistd.h
21366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 ac_res=`eval echo '${'$as_ac_Header'}'`
21374 { echo "$as_me:$LINENO: result: $ac_res" >&5
21375 echo "${ECHO_T}$ac_res" >&6; }
21376 else
21377 # Is the header compilable?
21378 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21380 cat >conftest.$ac_ext <<_ACEOF
21381 /* confdefs.h. */
21382 _ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h. */
21386 $ac_includes_default
21387 #include <$ac_header>
21388 _ACEOF
21389 rm -f conftest.$ac_objext
21390 if { (ac_try="$ac_compile"
21391 case "(($ac_try" in
21392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393 *) ac_try_echo=$ac_try;;
21394 esac
21395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396 (eval "$ac_compile") 2>conftest.er1
21397 ac_status=$?
21398 grep -v '^ *+' conftest.er1 >conftest.err
21399 rm -f conftest.er1
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } &&
21403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21404 { (case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21407 esac
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409 (eval "$ac_try") 2>&5
21410 ac_status=$?
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; } &&
21413 { ac_try='test -s conftest.$ac_objext'
21414 { (case "(($ac_try" in
21415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416 *) ac_try_echo=$ac_try;;
21417 esac
21418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419 (eval "$ac_try") 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 ac_header_compiler=yes
21424 else
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21428 ac_header_compiler=no
21431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21433 echo "${ECHO_T}$ac_header_compiler" >&6; }
21435 # Is the header present?
21436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21438 cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h. */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 #include <$ac_header>
21445 _ACEOF
21446 if { (ac_try="$ac_cpp conftest.$ac_ext"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21453 ac_status=$?
21454 grep -v '^ *+' conftest.er1 >conftest.err
21455 rm -f conftest.er1
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } >/dev/null; then
21459 if test -s conftest.err; then
21460 ac_cpp_err=$ac_c_preproc_warn_flag
21461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21462 else
21463 ac_cpp_err=
21465 else
21466 ac_cpp_err=yes
21468 if test -z "$ac_cpp_err"; then
21469 ac_header_preproc=yes
21470 else
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21474 ac_header_preproc=no
21477 rm -f conftest.err conftest.$ac_ext
21478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21479 echo "${ECHO_T}$ac_header_preproc" >&6; }
21481 # So? What about this header?
21482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21483 yes:no: )
21484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21488 ac_header_preproc=yes
21490 no:yes:* )
21491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21503 ( cat <<\_ASBOX
21504 ## ----------------------------------- ##
21505 ## Report this to llvmbugs@cs.uiuc.edu ##
21506 ## ----------------------------------- ##
21507 _ASBOX
21508 ) | sed "s/^/$as_me: WARNING: /" >&2
21510 esac
21511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21515 else
21516 eval "$as_ac_Header=\$ac_header_preproc"
21518 ac_res=`eval echo '${'$as_ac_Header'}'`
21519 { echo "$as_me:$LINENO: result: $ac_res" >&5
21520 echo "${ECHO_T}$ac_res" >&6; }
21523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21524 cat >>confdefs.h <<_ACEOF
21525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21526 _ACEOF
21530 done
21533 for ac_func in getpagesize
21535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 else
21541 cat >conftest.$ac_ext <<_ACEOF
21542 /* confdefs.h. */
21543 _ACEOF
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h. */
21547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21549 #define $ac_func innocuous_$ac_func
21551 /* System header to define __stub macros and hopefully few prototypes,
21552 which can conflict with char $ac_func (); below.
21553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21554 <limits.h> exists even on freestanding compilers. */
21556 #ifdef __STDC__
21557 # include <limits.h>
21558 #else
21559 # include <assert.h>
21560 #endif
21562 #undef $ac_func
21564 /* Override any GCC internal prototype to avoid an error.
21565 Use char because int might match the return type of a GCC
21566 builtin and then its argument prototype would still apply. */
21567 #ifdef __cplusplus
21568 extern "C"
21569 #endif
21570 char $ac_func ();
21571 /* The GNU C library defines this for functions which it implements
21572 to always fail with ENOSYS. Some functions are actually named
21573 something starting with __ and the normal name is an alias. */
21574 #if defined __stub_$ac_func || defined __stub___$ac_func
21575 choke me
21576 #endif
21579 main ()
21581 return $ac_func ();
21583 return 0;
21585 _ACEOF
21586 rm -f conftest.$ac_objext conftest$ac_exeext
21587 if { (ac_try="$ac_link"
21588 case "(($ac_try" in
21589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590 *) ac_try_echo=$ac_try;;
21591 esac
21592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21593 (eval "$ac_link") 2>conftest.er1
21594 ac_status=$?
21595 grep -v '^ *+' conftest.er1 >conftest.err
21596 rm -f conftest.er1
21597 cat conftest.err >&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } &&
21600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21601 { (case "(($ac_try" in
21602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21604 esac
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_try") 2>&5
21607 ac_status=$?
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; } &&
21610 { ac_try='test -s conftest$ac_exeext'
21611 { (case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_try") 2>&5
21617 ac_status=$?
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; }; then
21620 eval "$as_ac_var=yes"
21621 else
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21625 eval "$as_ac_var=no"
21628 rm -f core conftest.err conftest.$ac_objext \
21629 conftest$ac_exeext conftest.$ac_ext
21631 ac_res=`eval echo '${'$as_ac_var'}'`
21632 { echo "$as_me:$LINENO: result: $ac_res" >&5
21633 echo "${ECHO_T}$ac_res" >&6; }
21634 if test `eval echo '${'$as_ac_var'}'` = yes; then
21635 cat >>confdefs.h <<_ACEOF
21636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21637 _ACEOF
21640 done
21642 { echo "$as_me:$LINENO: checking for working mmap" >&5
21643 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21644 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 else
21647 if test "$cross_compiling" = yes; then
21648 ac_cv_func_mmap_fixed_mapped=no
21649 else
21650 cat >conftest.$ac_ext <<_ACEOF
21651 /* confdefs.h. */
21652 _ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21656 $ac_includes_default
21657 /* malloc might have been renamed as rpl_malloc. */
21658 #undef malloc
21660 /* Thanks to Mike Haertel and Jim Avera for this test.
21661 Here is a matrix of mmap possibilities:
21662 mmap private not fixed
21663 mmap private fixed at somewhere currently unmapped
21664 mmap private fixed at somewhere already mapped
21665 mmap shared not fixed
21666 mmap shared fixed at somewhere currently unmapped
21667 mmap shared fixed at somewhere already mapped
21668 For private mappings, we should verify that changes cannot be read()
21669 back from the file, nor mmap's back from the file at a different
21670 address. (There have been systems where private was not correctly
21671 implemented like the infamous i386 svr4.0, and systems where the
21672 VM page cache was not coherent with the file system buffer cache
21673 like early versions of FreeBSD and possibly contemporary NetBSD.)
21674 For shared mappings, we should conversely verify that changes get
21675 propagated back to all the places they're supposed to be.
21677 Grep wants private fixed already mapped.
21678 The main things grep needs to know about mmap are:
21679 * does it exist and is it safe to write into the mmap'd area
21680 * how to use it (BSD variants) */
21682 #include <fcntl.h>
21683 #include <sys/mman.h>
21685 #if !STDC_HEADERS && !HAVE_STDLIB_H
21686 char *malloc ();
21687 #endif
21689 /* This mess was copied from the GNU getpagesize.h. */
21690 #if !HAVE_GETPAGESIZE
21691 /* Assume that all systems that can run configure have sys/param.h. */
21692 # if !HAVE_SYS_PARAM_H
21693 # define HAVE_SYS_PARAM_H 1
21694 # endif
21696 # ifdef _SC_PAGESIZE
21697 # define getpagesize() sysconf(_SC_PAGESIZE)
21698 # else /* no _SC_PAGESIZE */
21699 # if HAVE_SYS_PARAM_H
21700 # include <sys/param.h>
21701 # ifdef EXEC_PAGESIZE
21702 # define getpagesize() EXEC_PAGESIZE
21703 # else /* no EXEC_PAGESIZE */
21704 # ifdef NBPG
21705 # define getpagesize() NBPG * CLSIZE
21706 # ifndef CLSIZE
21707 # define CLSIZE 1
21708 # endif /* no CLSIZE */
21709 # else /* no NBPG */
21710 # ifdef NBPC
21711 # define getpagesize() NBPC
21712 # else /* no NBPC */
21713 # ifdef PAGESIZE
21714 # define getpagesize() PAGESIZE
21715 # endif /* PAGESIZE */
21716 # endif /* no NBPC */
21717 # endif /* no NBPG */
21718 # endif /* no EXEC_PAGESIZE */
21719 # else /* no HAVE_SYS_PARAM_H */
21720 # define getpagesize() 8192 /* punt totally */
21721 # endif /* no HAVE_SYS_PARAM_H */
21722 # endif /* no _SC_PAGESIZE */
21724 #endif /* no HAVE_GETPAGESIZE */
21727 main ()
21729 char *data, *data2, *data3;
21730 int i, pagesize;
21731 int fd;
21733 pagesize = getpagesize ();
21735 /* First, make a file with some known garbage in it. */
21736 data = (char *) malloc (pagesize);
21737 if (!data)
21738 return 1;
21739 for (i = 0; i < pagesize; ++i)
21740 *(data + i) = rand ();
21741 umask (0);
21742 fd = creat ("conftest.mmap", 0600);
21743 if (fd < 0)
21744 return 1;
21745 if (write (fd, data, pagesize) != pagesize)
21746 return 1;
21747 close (fd);
21749 /* Next, try to mmap the file at a fixed address which already has
21750 something else allocated at it. If we can, also make sure that
21751 we see the same garbage. */
21752 fd = open ("conftest.mmap", O_RDWR);
21753 if (fd < 0)
21754 return 1;
21755 data2 = (char *) malloc (2 * pagesize);
21756 if (!data2)
21757 return 1;
21758 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21759 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21760 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21761 return 1;
21762 for (i = 0; i < pagesize; ++i)
21763 if (*(data + i) != *(data2 + i))
21764 return 1;
21766 /* Finally, make sure that changes to the mapped area do not
21767 percolate back to the file as seen by read(). (This is a bug on
21768 some variants of i386 svr4.0.) */
21769 for (i = 0; i < pagesize; ++i)
21770 *(data2 + i) = *(data2 + i) + 1;
21771 data3 = (char *) malloc (pagesize);
21772 if (!data3)
21773 return 1;
21774 if (read (fd, data3, pagesize) != pagesize)
21775 return 1;
21776 for (i = 0; i < pagesize; ++i)
21777 if (*(data + i) != *(data3 + i))
21778 return 1;
21779 close (fd);
21780 return 0;
21782 _ACEOF
21783 rm -f conftest$ac_exeext
21784 if { (ac_try="$ac_link"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21788 esac
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_link") 2>&5
21791 ac_status=$?
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21794 { (case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21797 esac
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799 (eval "$ac_try") 2>&5
21800 ac_status=$?
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; }; then
21803 ac_cv_func_mmap_fixed_mapped=yes
21804 else
21805 echo "$as_me: program exited with status $ac_status" >&5
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 ( exit $ac_status )
21810 ac_cv_func_mmap_fixed_mapped=no
21812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21817 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21818 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21819 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21821 cat >>confdefs.h <<\_ACEOF
21822 #define HAVE_MMAP 1
21823 _ACEOF
21826 rm -f conftest.mmap
21828 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21829 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21830 if test "${ac_cv_func_mmap_file+set}" = set; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21832 else
21833 ac_ext=c
21834 ac_cpp='$CPP $CPPFLAGS'
21835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21839 if test "$cross_compiling" = yes; then
21840 ac_cv_func_mmap_file=no
21841 else
21842 cat >conftest.$ac_ext <<_ACEOF
21844 /* confdefs.h. */
21845 _ACEOF
21846 cat confdefs.h >>conftest.$ac_ext
21847 cat >>conftest.$ac_ext <<_ACEOF
21848 /* end confdefs.h. */
21850 #include <sys/types.h>
21851 #include <sys/mman.h>
21852 #include <fcntl.h>
21855 main ()
21858 int fd;
21859 fd = creat ("foo",0777);
21860 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21861 unlink ("foo");
21862 return (fd != (int) MAP_FAILED);
21864 return 0;
21866 _ACEOF
21867 rm -f conftest$ac_exeext
21868 if { (ac_try="$ac_link"
21869 case "(($ac_try" in
21870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21871 *) ac_try_echo=$ac_try;;
21872 esac
21873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21874 (eval "$ac_link") 2>&5
21875 ac_status=$?
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21878 { (case "(($ac_try" in
21879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21880 *) ac_try_echo=$ac_try;;
21881 esac
21882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21883 (eval "$ac_try") 2>&5
21884 ac_status=$?
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; }; then
21887 ac_cv_func_mmap_file=yes
21888 else
21889 echo "$as_me: program exited with status $ac_status" >&5
21890 echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21893 ( exit $ac_status )
21894 ac_cv_func_mmap_file=no
21896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21900 ac_ext=c
21901 ac_cpp='$CPP $CPPFLAGS'
21902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21908 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21909 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21910 if test "$ac_cv_func_mmap_file" = yes; then
21912 cat >>confdefs.h <<\_ACEOF
21913 #define HAVE_MMAP_FILE
21914 _ACEOF
21916 MMAP_FILE=yes
21920 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21921 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21922 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21924 else
21925 if test "$llvm_cv_os_type" = "Interix" ; then
21926 ac_cv_need_dev_zero_for_mmap=yes
21927 else
21928 ac_cv_need_dev_zero_for_mmap=no
21932 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21933 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21934 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21936 cat >>confdefs.h <<\_ACEOF
21937 #define NEED_DEV_ZERO_FOR_MMAP 1
21938 _ACEOF
21942 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21943 then
21944 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21945 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21947 if test "$ac_cv_func_mmap_file" = "no"
21948 then
21949 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21950 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21954 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21955 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21956 ac_ext=cpp
21957 ac_cpp='$CXXCPP $CPPFLAGS'
21958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21960 ac_compiler_gnu=$ac_cv_cxx_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 int main() {
21969 volatile unsigned long val = 1;
21970 __sync_synchronize();
21971 __sync_val_compare_and_swap(&val, 1, 0);
21972 __sync_add_and_fetch(&val, 1);
21973 __sync_sub_and_fetch(&val, 1);
21974 return 0;
21977 _ACEOF
21978 rm -f conftest.$ac_objext conftest$ac_exeext
21979 if { (ac_try="$ac_link"
21980 case "(($ac_try" in
21981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982 *) ac_try_echo=$ac_try;;
21983 esac
21984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985 (eval "$ac_link") 2>conftest.er1
21986 ac_status=$?
21987 grep -v '^ *+' conftest.er1 >conftest.err
21988 rm -f conftest.er1
21989 cat conftest.err >&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } &&
21992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21993 { (case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21996 esac
21997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_try") 2>&5
21999 ac_status=$?
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); }; } &&
22002 { ac_try='test -s conftest$ac_exeext'
22003 { (case "(($ac_try" in
22004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22006 esac
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_try") 2>&5
22009 ac_status=$?
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; }; then
22012 ac_ext=c
22013 ac_cpp='$CPP $CPPFLAGS'
22014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22018 { echo "$as_me:$LINENO: result: yes" >&5
22019 echo "${ECHO_T}yes" >&6; }
22021 cat >>confdefs.h <<\_ACEOF
22022 #define LLVM_MULTITHREADED 1
22023 _ACEOF
22025 else
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22029 { echo "$as_me:$LINENO: result: no" >&5
22030 echo "${ECHO_T}no" >&6; }
22032 cat >>confdefs.h <<\_ACEOF
22033 #define LLVM_MULTITHREADED 0
22034 _ACEOF
22036 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22037 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22040 rm -f core conftest.err conftest.$ac_objext \
22041 conftest$ac_exeext conftest.$ac_ext
22044 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22045 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22046 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22047 if test "${llvm_cv_linux_mixed+set}" = set; then
22048 echo $ECHO_N "(cached) $ECHO_C" >&6
22049 else
22050 ac_ext=c
22051 ac_cpp='$CPP $CPPFLAGS'
22052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22056 cat >conftest.$ac_ext <<_ACEOF
22057 /* confdefs.h. */
22058 _ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22062 #ifndef __x86_64__
22063 error: Not x86-64 even if uname says so!
22064 #endif
22067 main ()
22071 return 0;
22073 _ACEOF
22074 rm -f conftest.$ac_objext
22075 if { (ac_try="$ac_compile"
22076 case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22079 esac
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_compile") 2>conftest.er1
22082 ac_status=$?
22083 grep -v '^ *+' conftest.er1 >conftest.err
22084 rm -f conftest.er1
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } &&
22088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22089 { (case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_try") 2>&5
22095 ac_status=$?
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; } &&
22098 { ac_try='test -s conftest.$ac_objext'
22099 { (case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22102 esac
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_try") 2>&5
22105 ac_status=$?
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; }; then
22108 llvm_cv_linux_mixed=no
22109 else
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22113 llvm_cv_linux_mixed=yes
22116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22117 ac_ext=c
22118 ac_cpp='$CPP $CPPFLAGS'
22119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22125 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22126 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22128 if test "$llvm_cv_linux_mixed" = "yes"; then
22129 llvm_cv_target_arch="x86"
22130 ARCH="x86"
22135 for ac_func in __dso_handle
22137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22141 echo $ECHO_N "(cached) $ECHO_C" >&6
22142 else
22143 cat >conftest.$ac_ext <<_ACEOF
22144 /* confdefs.h. */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h. */
22149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22151 #define $ac_func innocuous_$ac_func
22153 /* System header to define __stub macros and hopefully few prototypes,
22154 which can conflict with char $ac_func (); below.
22155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22156 <limits.h> exists even on freestanding compilers. */
22158 #ifdef __STDC__
22159 # include <limits.h>
22160 #else
22161 # include <assert.h>
22162 #endif
22164 #undef $ac_func
22166 /* Override any GCC internal prototype to avoid an error.
22167 Use char because int might match the return type of a GCC
22168 builtin and then its argument prototype would still apply. */
22169 #ifdef __cplusplus
22170 extern "C"
22171 #endif
22172 char $ac_func ();
22173 /* The GNU C library defines this for functions which it implements
22174 to always fail with ENOSYS. Some functions are actually named
22175 something starting with __ and the normal name is an alias. */
22176 #if defined __stub_$ac_func || defined __stub___$ac_func
22177 choke me
22178 #endif
22181 main ()
22183 return $ac_func ();
22185 return 0;
22187 _ACEOF
22188 rm -f conftest.$ac_objext conftest$ac_exeext
22189 if { (ac_try="$ac_link"
22190 case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22193 esac
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_link") 2>conftest.er1
22196 ac_status=$?
22197 grep -v '^ *+' conftest.er1 >conftest.err
22198 rm -f conftest.er1
22199 cat conftest.err >&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } &&
22202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22203 { (case "(($ac_try" in
22204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205 *) ac_try_echo=$ac_try;;
22206 esac
22207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22208 (eval "$ac_try") 2>&5
22209 ac_status=$?
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); }; } &&
22212 { ac_try='test -s conftest$ac_exeext'
22213 { (case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22216 esac
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218 (eval "$ac_try") 2>&5
22219 ac_status=$?
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 eval "$as_ac_var=yes"
22223 else
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22227 eval "$as_ac_var=no"
22230 rm -f core conftest.err conftest.$ac_objext \
22231 conftest$ac_exeext conftest.$ac_ext
22233 ac_res=`eval echo '${'$as_ac_var'}'`
22234 { echo "$as_me:$LINENO: result: $ac_res" >&5
22235 echo "${ECHO_T}$ac_res" >&6; }
22236 if test `eval echo '${'$as_ac_var'}'` = yes; then
22237 cat >>confdefs.h <<_ACEOF
22238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22239 _ACEOF
22242 done
22245 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22246 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22247 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22249 else
22250 llvm_cv_llvmgcc_dragonegg="no"
22251 if test -n "$LLVMGCC" ; then
22252 cp /dev/null conftest.c
22253 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22254 if test $? -eq 0 ; then
22255 llvm_cv_llvmgcc_dragonegg="yes"
22257 rm conftest.c
22260 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22261 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22263 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22264 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22265 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
22266 else
22267 LLVMCC_EMITIR_FLAG="-emit-llvm"
22268 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22273 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22274 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22275 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22276 echo $ECHO_N "(cached) $ECHO_C" >&6
22277 else
22278 llvm_cv_llvmgcc_sanity="no"
22279 if test -n "$LLVMGCC" ; then
22280 cp /dev/null conftest.c
22281 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22282 grep 'target datalayout =' > /dev/null 2>&1
22283 if test $? -eq 0 ; then
22284 llvm_cv_llvmgcc_sanity="yes"
22286 rm conftest.c
22289 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22290 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22292 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22293 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22294 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22295 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22296 LLVMCC1=$llvmcc1path
22298 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22299 LLVMCC1PLUS=$llvmcc1pluspath
22301 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22302 LLVMGCCDIR=$llvmgccdir
22304 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22305 LLVMGCC_LANGS=$llvmgcclangs
22307 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22310 { echo "$as_me:$LINENO: result: ok" >&5
22311 echo "${ECHO_T}ok" >&6; }
22314 SHLIBEXT=$libltdl_cv_shlibext
22317 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22320 # Translate the various configuration directories and other basic
22321 # information into substitutions that will end up in Makefile.config.in
22322 # that these configured values can be used by the makefiles
22323 if test "${prefix}" = "NONE" ; then
22324 prefix="/usr/local"
22326 eval LLVM_PREFIX="${prefix}";
22327 eval LLVM_BINDIR="${prefix}/bin";
22328 eval LLVM_LIBDIR="${prefix}/lib";
22329 eval LLVM_DATADIR="${prefix}/share/llvm";
22330 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22331 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22332 eval LLVM_INCLUDEDIR="${prefix}/include";
22333 eval LLVM_INFODIR="${prefix}/info";
22334 eval LLVM_MANDIR="${prefix}/man";
22335 LLVM_CONFIGTIME=`date`
22347 # Place the various directores into the config.h file as #defines so that we
22348 # can know about the installation paths within LLVM.
22350 cat >>confdefs.h <<_ACEOF
22351 #define LLVM_PREFIX "$LLVM_PREFIX"
22352 _ACEOF
22355 cat >>confdefs.h <<_ACEOF
22356 #define LLVM_BINDIR "$LLVM_BINDIR"
22357 _ACEOF
22360 cat >>confdefs.h <<_ACEOF
22361 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22362 _ACEOF
22365 cat >>confdefs.h <<_ACEOF
22366 #define LLVM_DATADIR "$LLVM_DATADIR"
22367 _ACEOF
22370 cat >>confdefs.h <<_ACEOF
22371 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22372 _ACEOF
22375 cat >>confdefs.h <<_ACEOF
22376 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22377 _ACEOF
22380 cat >>confdefs.h <<_ACEOF
22381 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22382 _ACEOF
22385 cat >>confdefs.h <<_ACEOF
22386 #define LLVM_INFODIR "$LLVM_INFODIR"
22387 _ACEOF
22390 cat >>confdefs.h <<_ACEOF
22391 #define LLVM_MANDIR "$LLVM_MANDIR"
22392 _ACEOF
22395 cat >>confdefs.h <<_ACEOF
22396 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22397 _ACEOF
22400 cat >>confdefs.h <<_ACEOF
22401 #define LLVM_HOSTTRIPLE "$host"
22402 _ACEOF
22405 # Determine which bindings to build.
22406 if test "$BINDINGS_TO_BUILD" = auto ; then
22407 BINDINGS_TO_BUILD=""
22408 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22409 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22412 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22415 # This isn't really configurey, but it avoids having to repeat the list in
22416 # other files.
22417 ALL_BINDINGS=ocaml
22420 # Do any work necessary to ensure that bindings have what they need.
22421 binding_prereqs_failed=0
22422 for a_binding in $BINDINGS_TO_BUILD ; do
22423 case "$a_binding" in
22424 ocaml)
22425 if test "x$OCAMLC" = x ; then
22426 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22427 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22428 binding_prereqs_failed=1
22430 if test "x$OCAMLDEP" = x ; then
22431 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22432 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22433 binding_prereqs_failed=1
22435 if test "x$OCAMLOPT" = x ; then
22436 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22437 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22439 if test "x$with_ocaml_libdir" != xauto ; then
22440 OCAML_LIBDIR=$with_ocaml_libdir
22442 else
22443 ocaml_stdlib="`"$OCAMLC" -where`"
22444 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22445 then
22446 # ocaml stdlib is beneath our prefix; use stdlib
22447 OCAML_LIBDIR=$ocaml_stdlib
22449 else
22450 # ocaml stdlib is outside our prefix; use libdir/ocaml
22451 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22456 esac
22457 done
22458 if test "$binding_prereqs_failed" = 1 ; then
22459 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22460 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22461 { (exit 1); exit 1; }; }
22464 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22465 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22466 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22468 else
22469 ac_ext=cpp
22470 ac_cpp='$CXXCPP $CPPFLAGS'
22471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22475 oldcxxflags="$CXXFLAGS"
22476 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22477 cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h. */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22485 main ()
22489 return 0;
22491 _ACEOF
22492 rm -f conftest.$ac_objext
22493 if { (ac_try="$ac_compile"
22494 case "(($ac_try" in
22495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22496 *) ac_try_echo=$ac_try;;
22497 esac
22498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499 (eval "$ac_compile") 2>conftest.er1
22500 ac_status=$?
22501 grep -v '^ *+' conftest.er1 >conftest.err
22502 rm -f conftest.er1
22503 cat conftest.err >&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } &&
22506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22507 { (case "(($ac_try" in
22508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509 *) ac_try_echo=$ac_try;;
22510 esac
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512 (eval "$ac_try") 2>&5
22513 ac_status=$?
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; } &&
22516 { ac_try='test -s conftest.$ac_objext'
22517 { (case "(($ac_try" in
22518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22519 *) ac_try_echo=$ac_try;;
22520 esac
22521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22522 (eval "$ac_try") 2>&5
22523 ac_status=$?
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; }; then
22526 llvm_cv_cxx_visibility_inlines_hidden=yes
22527 else
22528 echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.$ac_ext >&5
22531 llvm_cv_cxx_visibility_inlines_hidden=no
22534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22535 CXXFLAGS="$oldcxxflags"
22536 ac_ext=c
22537 ac_cpp='$CPP $CPPFLAGS'
22538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22544 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22545 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22546 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22547 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22549 else
22550 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22555 if test "$llvm_cv_link_use_r" = "yes" ; then
22556 RPATH="-Wl,-R"
22557 else
22558 RPATH="-Wl,-rpath"
22562 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22563 RDYNAMIC="-Wl,-export-dynamic"
22564 else
22565 RDYNAMIC=""
22570 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22577 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22579 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22581 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22583 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22585 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22588 ac_config_files="$ac_config_files Makefile.config"
22591 ac_config_files="$ac_config_files llvm.spec"
22594 ac_config_files="$ac_config_files docs/doxygen.cfg"
22596 if test -f ${srcdir}/tools/clang/README.txt; then
22597 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22601 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22604 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22607 ac_config_commands="$ac_config_commands setup"
22609 ac_config_commands="$ac_config_commands Makefile"
22612 ac_config_commands="$ac_config_commands Makefile.common"
22615 ac_config_commands="$ac_config_commands examples/Makefile"
22618 ac_config_commands="$ac_config_commands lib/Makefile"
22621 ac_config_commands="$ac_config_commands runtime/Makefile"
22624 ac_config_commands="$ac_config_commands test/Makefile"
22627 ac_config_commands="$ac_config_commands test/Makefile.tests"
22630 ac_config_commands="$ac_config_commands unittests/Makefile"
22633 ac_config_commands="$ac_config_commands tools/Makefile"
22636 ac_config_commands="$ac_config_commands utils/Makefile"
22639 ac_config_commands="$ac_config_commands projects/Makefile"
22642 ac_config_commands="$ac_config_commands bindings/Makefile"
22645 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22649 cat >confcache <<\_ACEOF
22650 # This file is a shell script that caches the results of configure
22651 # tests run on this system so they can be shared between configure
22652 # scripts and configure runs, see configure's option --config-cache.
22653 # It is not useful on other systems. If it contains results you don't
22654 # want to keep, you may remove or edit it.
22656 # config.status only pays attention to the cache file if you give it
22657 # the --recheck option to rerun configure.
22659 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22660 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22661 # following values.
22663 _ACEOF
22665 # The following way of writing the cache mishandles newlines in values,
22666 # but we know of no workaround that is simple, portable, and efficient.
22667 # So, we kill variables containing newlines.
22668 # Ultrix sh set writes to stderr and can't be redirected directly,
22669 # and sets the high bit in the cache file unless we assign to the vars.
22671 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22672 eval ac_val=\$$ac_var
22673 case $ac_val in #(
22674 *${as_nl}*)
22675 case $ac_var in #(
22676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22678 esac
22679 case $ac_var in #(
22680 _ | IFS | as_nl) ;; #(
22681 *) $as_unset $ac_var ;;
22682 esac ;;
22683 esac
22684 done
22686 (set) 2>&1 |
22687 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22688 *${as_nl}ac_space=\ *)
22689 # `set' does not quote correctly, so add quotes (double-quote
22690 # substitution turns \\\\ into \\, and sed turns \\ into \).
22691 sed -n \
22692 "s/'/'\\\\''/g;
22693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22694 ;; #(
22696 # `set' quotes correctly as required by POSIX, so do not add quotes.
22697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22699 esac |
22700 sort
22702 sed '
22703 /^ac_cv_env_/b end
22704 t clear
22705 :clear
22706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22707 t end
22708 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22709 :end' >>confcache
22710 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22711 if test -w "$cache_file"; then
22712 test "x$cache_file" != "x/dev/null" &&
22713 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22714 echo "$as_me: updating cache $cache_file" >&6;}
22715 cat confcache >$cache_file
22716 else
22717 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22718 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22721 rm -f confcache
22723 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22724 # Let make expand exec_prefix.
22725 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22727 DEFS=-DHAVE_CONFIG_H
22729 ac_libobjs=
22730 ac_ltlibobjs=
22731 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22732 # 1. Remove the extension, and $U if already installed.
22733 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22734 ac_i=`echo "$ac_i" | sed "$ac_script"`
22735 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22736 # will be set to the directory where LIBOBJS objects are built.
22737 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22738 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22739 done
22740 LIBOBJS=$ac_libobjs
22742 LTLIBOBJS=$ac_ltlibobjs
22745 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22746 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22747 Usually this means the macro was only invoked conditionally." >&5
22748 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22749 Usually this means the macro was only invoked conditionally." >&2;}
22750 { (exit 1); exit 1; }; }
22752 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22753 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22754 Usually this means the macro was only invoked conditionally." >&5
22755 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22756 Usually this means the macro was only invoked conditionally." >&2;}
22757 { (exit 1); exit 1; }; }
22760 : ${CONFIG_STATUS=./config.status}
22761 ac_clean_files_save=$ac_clean_files
22762 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22763 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22764 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22765 cat >$CONFIG_STATUS <<_ACEOF
22766 #! $SHELL
22767 # Generated by $as_me.
22768 # Run this file to recreate the current configuration.
22769 # Compiler output produced by configure, useful for debugging
22770 # configure, is in config.log if it exists.
22772 debug=false
22773 ac_cs_recheck=false
22774 ac_cs_silent=false
22775 SHELL=\${CONFIG_SHELL-$SHELL}
22776 _ACEOF
22778 cat >>$CONFIG_STATUS <<\_ACEOF
22779 ## --------------------- ##
22780 ## M4sh Initialization. ##
22781 ## --------------------- ##
22783 # Be Bourne compatible
22784 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22785 emulate sh
22786 NULLCMD=:
22787 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22788 # is contrary to our usage. Disable this feature.
22789 alias -g '${1+"$@"}'='"$@"'
22790 setopt NO_GLOB_SUBST
22791 else
22792 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22794 BIN_SH=xpg4; export BIN_SH # for Tru64
22795 DUALCASE=1; export DUALCASE # for MKS sh
22798 # PATH needs CR
22799 # Avoid depending upon Character Ranges.
22800 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22801 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22802 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22803 as_cr_digits='0123456789'
22804 as_cr_alnum=$as_cr_Letters$as_cr_digits
22806 # The user is always right.
22807 if test "${PATH_SEPARATOR+set}" != set; then
22808 echo "#! /bin/sh" >conf$$.sh
22809 echo "exit 0" >>conf$$.sh
22810 chmod +x conf$$.sh
22811 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22812 PATH_SEPARATOR=';'
22813 else
22814 PATH_SEPARATOR=:
22816 rm -f conf$$.sh
22819 # Support unset when possible.
22820 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22821 as_unset=unset
22822 else
22823 as_unset=false
22827 # IFS
22828 # We need space, tab and new line, in precisely that order. Quoting is
22829 # there to prevent editors from complaining about space-tab.
22830 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22831 # splitting by setting IFS to empty value.)
22832 as_nl='
22834 IFS=" "" $as_nl"
22836 # Find who we are. Look in the path if we contain no directory separator.
22837 case $0 in
22838 *[\\/]* ) as_myself=$0 ;;
22839 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22840 for as_dir in $PATH
22842 IFS=$as_save_IFS
22843 test -z "$as_dir" && as_dir=.
22844 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22845 done
22846 IFS=$as_save_IFS
22849 esac
22850 # We did not find ourselves, most probably we were run as `sh COMMAND'
22851 # in which case we are not to be found in the path.
22852 if test "x$as_myself" = x; then
22853 as_myself=$0
22855 if test ! -f "$as_myself"; then
22856 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22857 { (exit 1); exit 1; }
22860 # Work around bugs in pre-3.0 UWIN ksh.
22861 for as_var in ENV MAIL MAILPATH
22862 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22863 done
22864 PS1='$ '
22865 PS2='> '
22866 PS4='+ '
22868 # NLS nuisances.
22869 for as_var in \
22870 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22871 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22872 LC_TELEPHONE LC_TIME
22874 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22875 eval $as_var=C; export $as_var
22876 else
22877 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22879 done
22881 # Required to use basename.
22882 if expr a : '\(a\)' >/dev/null 2>&1 &&
22883 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22884 as_expr=expr
22885 else
22886 as_expr=false
22889 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22890 as_basename=basename
22891 else
22892 as_basename=false
22896 # Name of the executable.
22897 as_me=`$as_basename -- "$0" ||
22898 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22899 X"$0" : 'X\(//\)$' \| \
22900 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22901 echo X/"$0" |
22902 sed '/^.*\/\([^/][^/]*\)\/*$/{
22903 s//\1/
22906 /^X\/\(\/\/\)$/{
22907 s//\1/
22910 /^X\/\(\/\).*/{
22911 s//\1/
22914 s/.*/./; q'`
22916 # CDPATH.
22917 $as_unset CDPATH
22921 as_lineno_1=$LINENO
22922 as_lineno_2=$LINENO
22923 test "x$as_lineno_1" != "x$as_lineno_2" &&
22924 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22926 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22927 # uniformly replaced by the line number. The first 'sed' inserts a
22928 # line-number line after each line using $LINENO; the second 'sed'
22929 # does the real work. The second script uses 'N' to pair each
22930 # line-number line with the line containing $LINENO, and appends
22931 # trailing '-' during substitution so that $LINENO is not a special
22932 # case at line end.
22933 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22934 # scripts with optimization help from Paolo Bonzini. Blame Lee
22935 # E. McMahon (1931-1989) for sed's syntax. :-)
22936 sed -n '
22938 /[$]LINENO/=
22939 ' <$as_myself |
22940 sed '
22941 s/[$]LINENO.*/&-/
22942 t lineno
22944 :lineno
22946 :loop
22947 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22948 t loop
22949 s/-\n.*//
22950 ' >$as_me.lineno &&
22951 chmod +x "$as_me.lineno" ||
22952 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22953 { (exit 1); exit 1; }; }
22955 # Don't try to exec as it changes $[0], causing all sort of problems
22956 # (the dirname of $[0] is not the place where we might find the
22957 # original and so on. Autoconf is especially sensitive to this).
22958 . "./$as_me.lineno"
22959 # Exit status is that of the last command.
22960 exit
22964 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22965 as_dirname=dirname
22966 else
22967 as_dirname=false
22970 ECHO_C= ECHO_N= ECHO_T=
22971 case `echo -n x` in
22972 -n*)
22973 case `echo 'x\c'` in
22974 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22975 *) ECHO_C='\c';;
22976 esac;;
22978 ECHO_N='-n';;
22979 esac
22981 if expr a : '\(a\)' >/dev/null 2>&1 &&
22982 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22983 as_expr=expr
22984 else
22985 as_expr=false
22988 rm -f conf$$ conf$$.exe conf$$.file
22989 if test -d conf$$.dir; then
22990 rm -f conf$$.dir/conf$$.file
22991 else
22992 rm -f conf$$.dir
22993 mkdir conf$$.dir
22995 echo >conf$$.file
22996 if ln -s conf$$.file conf$$ 2>/dev/null; then
22997 as_ln_s='ln -s'
22998 # ... but there are two gotchas:
22999 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23000 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23001 # In both cases, we have to default to `cp -p'.
23002 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23003 as_ln_s='cp -p'
23004 elif ln conf$$.file conf$$ 2>/dev/null; then
23005 as_ln_s=ln
23006 else
23007 as_ln_s='cp -p'
23009 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23010 rmdir conf$$.dir 2>/dev/null
23012 if mkdir -p . 2>/dev/null; then
23013 as_mkdir_p=:
23014 else
23015 test -d ./-p && rmdir ./-p
23016 as_mkdir_p=false
23019 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23020 # systems may use methods other than mode bits to determine executability.
23021 cat >conf$$.file <<_ASEOF
23022 #! /bin/sh
23023 exit 0
23024 _ASEOF
23025 chmod +x conf$$.file
23026 if test -x conf$$.file >/dev/null 2>&1; then
23027 as_executable_p="test -x"
23028 else
23029 as_executable_p=:
23031 rm -f conf$$.file
23033 # Sed expression to map a string onto a valid CPP name.
23034 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23036 # Sed expression to map a string onto a valid variable name.
23037 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23040 exec 6>&1
23042 # Save the log message, to keep $[0] and so on meaningful, and to
23043 # report actual input values of CONFIG_FILES etc. instead of their
23044 # values after options handling.
23045 ac_log="
23046 This file was extended by llvm $as_me 3.0svn, which was
23047 generated by GNU Autoconf 2.60. Invocation command line was
23049 CONFIG_FILES = $CONFIG_FILES
23050 CONFIG_HEADERS = $CONFIG_HEADERS
23051 CONFIG_LINKS = $CONFIG_LINKS
23052 CONFIG_COMMANDS = $CONFIG_COMMANDS
23053 $ $0 $@
23055 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23058 _ACEOF
23060 cat >>$CONFIG_STATUS <<_ACEOF
23061 # Files that config.status was made for.
23062 config_files="$ac_config_files"
23063 config_headers="$ac_config_headers"
23064 config_commands="$ac_config_commands"
23066 _ACEOF
23068 cat >>$CONFIG_STATUS <<\_ACEOF
23069 ac_cs_usage="\
23070 \`$as_me' instantiates files from templates according to the
23071 current configuration.
23073 Usage: $0 [OPTIONS] [FILE]...
23075 -h, --help print this help, then exit
23076 -V, --version print version number, then exit
23077 -q, --quiet do not print progress messages
23078 -d, --debug don't remove temporary files
23079 --recheck update $as_me by reconfiguring in the same conditions
23080 --file=FILE[:TEMPLATE]
23081 instantiate the configuration file FILE
23082 --header=FILE[:TEMPLATE]
23083 instantiate the configuration header FILE
23085 Configuration files:
23086 $config_files
23088 Configuration headers:
23089 $config_headers
23091 Configuration commands:
23092 $config_commands
23094 Report bugs to <bug-autoconf@gnu.org>."
23096 _ACEOF
23097 cat >>$CONFIG_STATUS <<_ACEOF
23098 ac_cs_version="\\
23099 llvm config.status 3.0svn
23100 configured by $0, generated by GNU Autoconf 2.60,
23101 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23103 Copyright (C) 2006 Free Software Foundation, Inc.
23104 This config.status script is free software; the Free Software Foundation
23105 gives unlimited permission to copy, distribute and modify it."
23107 ac_pwd='$ac_pwd'
23108 srcdir='$srcdir'
23109 INSTALL='$INSTALL'
23110 _ACEOF
23112 cat >>$CONFIG_STATUS <<\_ACEOF
23113 # If no file are specified by the user, then we need to provide default
23114 # value. By we need to know if files were specified by the user.
23115 ac_need_defaults=:
23116 while test $# != 0
23118 case $1 in
23119 --*=*)
23120 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23121 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23122 ac_shift=:
23125 ac_option=$1
23126 ac_optarg=$2
23127 ac_shift=shift
23129 esac
23131 case $ac_option in
23132 # Handling of the options.
23133 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23134 ac_cs_recheck=: ;;
23135 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23136 echo "$ac_cs_version"; exit ;;
23137 --debug | --debu | --deb | --de | --d | -d )
23138 debug=: ;;
23139 --file | --fil | --fi | --f )
23140 $ac_shift
23141 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23142 ac_need_defaults=false;;
23143 --header | --heade | --head | --hea )
23144 $ac_shift
23145 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23146 ac_need_defaults=false;;
23147 --he | --h)
23148 # Conflict between --help and --header
23149 { echo "$as_me: error: ambiguous option: $1
23150 Try \`$0 --help' for more information." >&2
23151 { (exit 1); exit 1; }; };;
23152 --help | --hel | -h )
23153 echo "$ac_cs_usage"; exit ;;
23154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23155 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23156 ac_cs_silent=: ;;
23158 # This is an error.
23159 -*) { echo "$as_me: error: unrecognized option: $1
23160 Try \`$0 --help' for more information." >&2
23161 { (exit 1); exit 1; }; } ;;
23163 *) ac_config_targets="$ac_config_targets $1"
23164 ac_need_defaults=false ;;
23166 esac
23167 shift
23168 done
23170 ac_configure_extra_args=
23172 if $ac_cs_silent; then
23173 exec 6>/dev/null
23174 ac_configure_extra_args="$ac_configure_extra_args --silent"
23177 _ACEOF
23178 cat >>$CONFIG_STATUS <<_ACEOF
23179 if \$ac_cs_recheck; then
23180 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23181 CONFIG_SHELL=$SHELL
23182 export CONFIG_SHELL
23183 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23186 _ACEOF
23187 cat >>$CONFIG_STATUS <<\_ACEOF
23188 exec 5>>config.log
23190 echo
23191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23192 ## Running $as_me. ##
23193 _ASBOX
23194 echo "$ac_log"
23195 } >&5
23197 _ACEOF
23198 cat >>$CONFIG_STATUS <<_ACEOF
23200 # INIT-COMMANDS
23202 llvm_src="${srcdir}"
23204 _ACEOF
23206 cat >>$CONFIG_STATUS <<\_ACEOF
23208 # Handling of arguments.
23209 for ac_config_target in $ac_config_targets
23211 case $ac_config_target in
23212 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23213 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23214 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23215 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23216 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23217 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23218 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23219 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23220 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23221 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23222 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23223 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23224 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23225 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23226 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23227 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23228 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23229 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23230 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23231 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23232 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23233 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23234 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23235 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23236 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23237 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23238 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23240 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23241 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23242 { (exit 1); exit 1; }; };;
23243 esac
23244 done
23247 # If the user did not use the arguments to specify the items to instantiate,
23248 # then the envvar interface is used. Set only those that are not.
23249 # We use the long form for the default assignment because of an extremely
23250 # bizarre bug on SunOS 4.1.3.
23251 if $ac_need_defaults; then
23252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23254 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23257 # Have a temporary directory for convenience. Make it in the build tree
23258 # simply because there is no reason against having it here, and in addition,
23259 # creating and moving files from /tmp can sometimes cause problems.
23260 # Hook for its removal unless debugging.
23261 # Note that there is a small window in which the directory will not be cleaned:
23262 # after its creation but before its name has been assigned to `$tmp'.
23263 $debug ||
23265 tmp=
23266 trap 'exit_status=$?
23267 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23269 trap '{ (exit 1); exit 1; }' 1 2 13 15
23271 # Create a (secure) tmp directory for tmp files.
23274 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23275 test -n "$tmp" && test -d "$tmp"
23276 } ||
23278 tmp=./conf$$-$RANDOM
23279 (umask 077 && mkdir "$tmp")
23280 } ||
23282 echo "$me: cannot create a temporary directory in ." >&2
23283 { (exit 1); exit 1; }
23287 # Set up the sed scripts for CONFIG_FILES section.
23290 # No need to generate the scripts if there are no CONFIG_FILES.
23291 # This happens for instance when ./config.status config.h
23292 if test -n "$CONFIG_FILES"; then
23294 _ACEOF
23298 ac_delim='%!_!# '
23299 for ac_last_try in false false false false false :; do
23300 cat >conf$$subs.sed <<_ACEOF
23301 SHELL!$SHELL$ac_delim
23302 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23303 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23304 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23305 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23306 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23307 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23308 exec_prefix!$exec_prefix$ac_delim
23309 prefix!$prefix$ac_delim
23310 program_transform_name!$program_transform_name$ac_delim
23311 bindir!$bindir$ac_delim
23312 sbindir!$sbindir$ac_delim
23313 libexecdir!$libexecdir$ac_delim
23314 datarootdir!$datarootdir$ac_delim
23315 datadir!$datadir$ac_delim
23316 sysconfdir!$sysconfdir$ac_delim
23317 sharedstatedir!$sharedstatedir$ac_delim
23318 localstatedir!$localstatedir$ac_delim
23319 includedir!$includedir$ac_delim
23320 oldincludedir!$oldincludedir$ac_delim
23321 docdir!$docdir$ac_delim
23322 infodir!$infodir$ac_delim
23323 htmldir!$htmldir$ac_delim
23324 dvidir!$dvidir$ac_delim
23325 pdfdir!$pdfdir$ac_delim
23326 psdir!$psdir$ac_delim
23327 libdir!$libdir$ac_delim
23328 localedir!$localedir$ac_delim
23329 mandir!$mandir$ac_delim
23330 DEFS!$DEFS$ac_delim
23331 ECHO_C!$ECHO_C$ac_delim
23332 ECHO_N!$ECHO_N$ac_delim
23333 ECHO_T!$ECHO_T$ac_delim
23334 LIBS!$LIBS$ac_delim
23335 build_alias!$build_alias$ac_delim
23336 host_alias!$host_alias$ac_delim
23337 target_alias!$target_alias$ac_delim
23338 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23339 subdirs!$subdirs$ac_delim
23340 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23341 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23342 build!$build$ac_delim
23343 build_cpu!$build_cpu$ac_delim
23344 build_vendor!$build_vendor$ac_delim
23345 build_os!$build_os$ac_delim
23346 host!$host$ac_delim
23347 host_cpu!$host_cpu$ac_delim
23348 host_vendor!$host_vendor$ac_delim
23349 host_os!$host_os$ac_delim
23350 target!$target$ac_delim
23351 target_cpu!$target_cpu$ac_delim
23352 target_vendor!$target_vendor$ac_delim
23353 target_os!$target_os$ac_delim
23354 OS!$OS$ac_delim
23355 HOST_OS!$HOST_OS$ac_delim
23356 TARGET_OS!$TARGET_OS$ac_delim
23357 LINKALL!$LINKALL$ac_delim
23358 NOLINKALL!$NOLINKALL$ac_delim
23359 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23360 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23361 ARCH!$ARCH$ac_delim
23362 ENDIAN!$ENDIAN$ac_delim
23363 CC!$CC$ac_delim
23364 CFLAGS!$CFLAGS$ac_delim
23365 LDFLAGS!$LDFLAGS$ac_delim
23366 CPPFLAGS!$CPPFLAGS$ac_delim
23367 ac_ct_CC!$ac_ct_CC$ac_delim
23368 EXEEXT!$EXEEXT$ac_delim
23369 OBJEXT!$OBJEXT$ac_delim
23370 CPP!$CPP$ac_delim
23371 GREP!$GREP$ac_delim
23372 EGREP!$EGREP$ac_delim
23373 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23374 BUILD_CC!$BUILD_CC$ac_delim
23375 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23376 BUILD_CXX!$BUILD_CXX$ac_delim
23377 CVSBUILD!$CVSBUILD$ac_delim
23378 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23379 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23380 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23381 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23382 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23383 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23384 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23385 JIT!$JIT$ac_delim
23386 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23387 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23388 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23389 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23390 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23391 ENABLE_PIC!$ENABLE_PIC$ac_delim
23392 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23393 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23394 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23395 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23396 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23397 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23398 _ACEOF
23400 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23401 break
23402 elif $ac_last_try; then
23403 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23404 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23405 { (exit 1); exit 1; }; }
23406 else
23407 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23409 done
23411 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23412 if test -n "$ac_eof"; then
23413 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23414 ac_eof=`expr $ac_eof + 1`
23417 cat >>$CONFIG_STATUS <<_ACEOF
23418 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23420 _ACEOF
23421 sed '
23422 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23423 s/^/s,@/; s/!/@,|#_!!_#|/
23426 s/'"$ac_delim"'$/,g/; t
23427 s/$/\\/; p
23428 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23429 ' >>$CONFIG_STATUS <conf$$subs.sed
23430 rm -f conf$$subs.sed
23431 cat >>$CONFIG_STATUS <<_ACEOF
23432 CEOF$ac_eof
23433 _ACEOF
23436 ac_delim='%!_!# '
23437 for ac_last_try in false false false false false :; do
23438 cat >conf$$subs.sed <<_ACEOF
23439 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23440 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23441 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23442 CLANGPATH!$CLANGPATH$ac_delim
23443 CLANGXXPATH!$CLANGXXPATH$ac_delim
23444 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23445 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23446 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23447 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23448 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23449 CXX!$CXX$ac_delim
23450 CXXFLAGS!$CXXFLAGS$ac_delim
23451 ac_ct_CXX!$ac_ct_CXX$ac_delim
23452 NM!$NM$ac_delim
23453 ifGNUmake!$ifGNUmake$ac_delim
23454 LN_S!$LN_S$ac_delim
23455 CMP!$CMP$ac_delim
23456 CP!$CP$ac_delim
23457 DATE!$DATE$ac_delim
23458 FIND!$FIND$ac_delim
23459 MKDIR!$MKDIR$ac_delim
23460 MV!$MV$ac_delim
23461 RANLIB!$RANLIB$ac_delim
23462 AR!$AR$ac_delim
23463 RM!$RM$ac_delim
23464 SED!$SED$ac_delim
23465 TAR!$TAR$ac_delim
23466 BINPWD!$BINPWD$ac_delim
23467 GRAPHVIZ!$GRAPHVIZ$ac_delim
23468 DOT!$DOT$ac_delim
23469 FDP!$FDP$ac_delim
23470 NEATO!$NEATO$ac_delim
23471 TWOPI!$TWOPI$ac_delim
23472 CIRCO!$CIRCO$ac_delim
23473 GV!$GV$ac_delim
23474 DOTTY!$DOTTY$ac_delim
23475 XDOT_PY!$XDOT_PY$ac_delim
23476 PERL!$PERL$ac_delim
23477 HAVE_PERL!$HAVE_PERL$ac_delim
23478 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23479 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23480 INSTALL_DATA!$INSTALL_DATA$ac_delim
23481 BZIP2!$BZIP2$ac_delim
23482 CAT!$CAT$ac_delim
23483 DOXYGEN!$DOXYGEN$ac_delim
23484 GROFF!$GROFF$ac_delim
23485 GZIPBIN!$GZIPBIN$ac_delim
23486 POD2HTML!$POD2HTML$ac_delim
23487 POD2MAN!$POD2MAN$ac_delim
23488 PDFROFF!$PDFROFF$ac_delim
23489 RUNTEST!$RUNTEST$ac_delim
23490 TCLSH!$TCLSH$ac_delim
23491 ZIP!$ZIP$ac_delim
23492 OCAMLC!$OCAMLC$ac_delim
23493 OCAMLOPT!$OCAMLOPT$ac_delim
23494 OCAMLDEP!$OCAMLDEP$ac_delim
23495 OCAMLDOC!$OCAMLDOC$ac_delim
23496 GAS!$GAS$ac_delim
23497 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23498 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23499 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23500 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23501 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23502 LIBADD_DL!$LIBADD_DL$ac_delim
23503 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23504 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23505 LLVMGCC!$LLVMGCC$ac_delim
23506 LLVMGXX!$LLVMGXX$ac_delim
23507 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23508 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23509 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23510 USE_UDIS86!$USE_UDIS86$ac_delim
23511 USE_OPROFILE!$USE_OPROFILE$ac_delim
23512 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23513 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23514 MMAP_FILE!$MMAP_FILE$ac_delim
23515 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23516 LLVMCC1!$LLVMCC1$ac_delim
23517 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23518 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23519 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23520 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23521 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23522 SHLIBEXT!$SHLIBEXT$ac_delim
23523 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23524 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23525 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23526 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23527 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23528 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23529 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23530 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23531 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23532 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23533 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23534 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23535 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23536 _ACEOF
23538 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23539 break
23540 elif $ac_last_try; then
23541 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23542 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23543 { (exit 1); exit 1; }; }
23544 else
23545 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23547 done
23549 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23550 if test -n "$ac_eof"; then
23551 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23552 ac_eof=`expr $ac_eof + 1`
23555 cat >>$CONFIG_STATUS <<_ACEOF
23556 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23558 _ACEOF
23559 sed '
23560 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23561 s/^/s,@/; s/!/@,|#_!!_#|/
23564 s/'"$ac_delim"'$/,g/; t
23565 s/$/\\/; p
23566 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23567 ' >>$CONFIG_STATUS <conf$$subs.sed
23568 rm -f conf$$subs.sed
23569 cat >>$CONFIG_STATUS <<_ACEOF
23570 CEOF$ac_eof
23571 _ACEOF
23574 ac_delim='%!_!# '
23575 for ac_last_try in false false false false false :; do
23576 cat >conf$$subs.sed <<_ACEOF
23577 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23578 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23579 RPATH!$RPATH$ac_delim
23580 RDYNAMIC!$RDYNAMIC$ac_delim
23581 LIBOBJS!$LIBOBJS$ac_delim
23582 LTLIBOBJS!$LTLIBOBJS$ac_delim
23583 _ACEOF
23585 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23586 break
23587 elif $ac_last_try; then
23588 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23589 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23590 { (exit 1); exit 1; }; }
23591 else
23592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23594 done
23596 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23597 if test -n "$ac_eof"; then
23598 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23599 ac_eof=`expr $ac_eof + 1`
23602 cat >>$CONFIG_STATUS <<_ACEOF
23603 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23604 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23605 _ACEOF
23606 sed '
23607 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23608 s/^/s,@/; s/!/@,|#_!!_#|/
23611 s/'"$ac_delim"'$/,g/; t
23612 s/$/\\/; p
23613 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23614 ' >>$CONFIG_STATUS <conf$$subs.sed
23615 rm -f conf$$subs.sed
23616 cat >>$CONFIG_STATUS <<_ACEOF
23617 :end
23618 s/|#_!!_#|//g
23619 CEOF$ac_eof
23620 _ACEOF
23623 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23624 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23625 # trailing colons and then remove the whole line if VPATH becomes empty
23626 # (actually we leave an empty line to preserve line numbers).
23627 if test "x$srcdir" = x.; then
23628 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23629 s/:*\$(srcdir):*/:/
23630 s/:*\${srcdir}:*/:/
23631 s/:*@srcdir@:*/:/
23632 s/^\([^=]*=[ ]*\):*/\1/
23633 s/:*$//
23634 s/^[^=]*=[ ]*$//
23638 cat >>$CONFIG_STATUS <<\_ACEOF
23639 fi # test -n "$CONFIG_FILES"
23642 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23644 case $ac_tag in
23645 :[FHLC]) ac_mode=$ac_tag; continue;;
23646 esac
23647 case $ac_mode$ac_tag in
23648 :[FHL]*:*);;
23649 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23650 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23651 { (exit 1); exit 1; }; };;
23652 :[FH]-) ac_tag=-:-;;
23653 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23654 esac
23655 ac_save_IFS=$IFS
23656 IFS=:
23657 set x $ac_tag
23658 IFS=$ac_save_IFS
23659 shift
23660 ac_file=$1
23661 shift
23663 case $ac_mode in
23664 :L) ac_source=$1;;
23665 :[FH])
23666 ac_file_inputs=
23667 for ac_f
23669 case $ac_f in
23670 -) ac_f="$tmp/stdin";;
23671 *) # Look for the file first in the build tree, then in the source tree
23672 # (if the path is not absolute). The absolute path cannot be DOS-style,
23673 # because $ac_f cannot contain `:'.
23674 test -f "$ac_f" ||
23675 case $ac_f in
23676 [\\/$]*) false;;
23677 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23678 esac ||
23679 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23680 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23681 { (exit 1); exit 1; }; };;
23682 esac
23683 ac_file_inputs="$ac_file_inputs $ac_f"
23684 done
23686 # Let's still pretend it is `configure' which instantiates (i.e., don't
23687 # use $as_me), people would be surprised to read:
23688 # /* config.h. Generated by config.status. */
23689 configure_input="Generated from "`IFS=:
23690 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23691 if test x"$ac_file" != x-; then
23692 configure_input="$ac_file. $configure_input"
23693 { echo "$as_me:$LINENO: creating $ac_file" >&5
23694 echo "$as_me: creating $ac_file" >&6;}
23697 case $ac_tag in
23698 *:-:* | *:-) cat >"$tmp/stdin";;
23699 esac
23701 esac
23703 ac_dir=`$as_dirname -- "$ac_file" ||
23704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23705 X"$ac_file" : 'X\(//\)[^/]' \| \
23706 X"$ac_file" : 'X\(//\)$' \| \
23707 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23708 echo X"$ac_file" |
23709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23710 s//\1/
23713 /^X\(\/\/\)[^/].*/{
23714 s//\1/
23717 /^X\(\/\/\)$/{
23718 s//\1/
23721 /^X\(\/\).*/{
23722 s//\1/
23725 s/.*/./; q'`
23726 { as_dir="$ac_dir"
23727 case $as_dir in #(
23728 -*) as_dir=./$as_dir;;
23729 esac
23730 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23731 as_dirs=
23732 while :; do
23733 case $as_dir in #(
23734 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23735 *) as_qdir=$as_dir;;
23736 esac
23737 as_dirs="'$as_qdir' $as_dirs"
23738 as_dir=`$as_dirname -- "$as_dir" ||
23739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23740 X"$as_dir" : 'X\(//\)[^/]' \| \
23741 X"$as_dir" : 'X\(//\)$' \| \
23742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23743 echo X"$as_dir" |
23744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23745 s//\1/
23748 /^X\(\/\/\)[^/].*/{
23749 s//\1/
23752 /^X\(\/\/\)$/{
23753 s//\1/
23756 /^X\(\/\).*/{
23757 s//\1/
23760 s/.*/./; q'`
23761 test -d "$as_dir" && break
23762 done
23763 test -z "$as_dirs" || eval "mkdir $as_dirs"
23764 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23765 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23766 { (exit 1); exit 1; }; }; }
23767 ac_builddir=.
23769 case "$ac_dir" in
23770 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23772 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23773 # A ".." for each directory in $ac_dir_suffix.
23774 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23775 case $ac_top_builddir_sub in
23776 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23777 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23778 esac ;;
23779 esac
23780 ac_abs_top_builddir=$ac_pwd
23781 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23782 # for backward compatibility:
23783 ac_top_builddir=$ac_top_build_prefix
23785 case $srcdir in
23786 .) # We are building in place.
23787 ac_srcdir=.
23788 ac_top_srcdir=$ac_top_builddir_sub
23789 ac_abs_top_srcdir=$ac_pwd ;;
23790 [\\/]* | ?:[\\/]* ) # Absolute name.
23791 ac_srcdir=$srcdir$ac_dir_suffix;
23792 ac_top_srcdir=$srcdir
23793 ac_abs_top_srcdir=$srcdir ;;
23794 *) # Relative name.
23795 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23796 ac_top_srcdir=$ac_top_build_prefix$srcdir
23797 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23798 esac
23799 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23802 case $ac_mode in
23805 # CONFIG_FILE
23808 case $INSTALL in
23809 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23810 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23811 esac
23812 _ACEOF
23814 cat >>$CONFIG_STATUS <<\_ACEOF
23815 # If the template does not know about datarootdir, expand it.
23816 # FIXME: This hack should be removed a few years after 2.60.
23817 ac_datarootdir_hack=; ac_datarootdir_seen=
23819 case `sed -n '/datarootdir/ {
23823 /@datadir@/p
23824 /@docdir@/p
23825 /@infodir@/p
23826 /@localedir@/p
23827 /@mandir@/p
23828 ' $ac_file_inputs` in
23829 *datarootdir*) ac_datarootdir_seen=yes;;
23830 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23831 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23832 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23833 _ACEOF
23834 cat >>$CONFIG_STATUS <<_ACEOF
23835 ac_datarootdir_hack='
23836 s&@datadir@&$datadir&g
23837 s&@docdir@&$docdir&g
23838 s&@infodir@&$infodir&g
23839 s&@localedir@&$localedir&g
23840 s&@mandir@&$mandir&g
23841 s&\\\${datarootdir}&$datarootdir&g' ;;
23842 esac
23843 _ACEOF
23845 # Neutralize VPATH when `$srcdir' = `.'.
23846 # Shell code in configure.ac might set extrasub.
23847 # FIXME: do we really want to maintain this feature?
23848 cat >>$CONFIG_STATUS <<_ACEOF
23849 sed "$ac_vpsub
23850 $extrasub
23851 _ACEOF
23852 cat >>$CONFIG_STATUS <<\_ACEOF
23854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23855 s&@configure_input@&$configure_input&;t t
23856 s&@top_builddir@&$ac_top_builddir_sub&;t t
23857 s&@srcdir@&$ac_srcdir&;t t
23858 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23859 s&@top_srcdir@&$ac_top_srcdir&;t t
23860 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23861 s&@builddir@&$ac_builddir&;t t
23862 s&@abs_builddir@&$ac_abs_builddir&;t t
23863 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23864 s&@INSTALL@&$ac_INSTALL&;t t
23865 $ac_datarootdir_hack
23866 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23868 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23869 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23871 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23872 which seems to be undefined. Please make sure it is defined." >&5
23873 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23874 which seems to be undefined. Please make sure it is defined." >&2;}
23876 rm -f "$tmp/stdin"
23877 case $ac_file in
23878 -) cat "$tmp/out"; rm -f "$tmp/out";;
23879 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23880 esac
23884 # CONFIG_HEADER
23886 _ACEOF
23888 # Transform confdefs.h into a sed script `conftest.defines', that
23889 # substitutes the proper values into config.h.in to produce config.h.
23890 rm -f conftest.defines conftest.tail
23891 # First, append a space to every undef/define line, to ease matching.
23892 echo 's/$/ /' >conftest.defines
23893 # Then, protect against being on the right side of a sed subst, or in
23894 # an unquoted here document, in config.status. If some macros were
23895 # called several times there might be several #defines for the same
23896 # symbol, which is useless. But do not sort them, since the last
23897 # AC_DEFINE must be honored.
23898 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23899 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23900 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23901 # PARAMS is the parameter list in the macro definition--in most cases, it's
23902 # just an empty string.
23903 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23904 ac_dB='\\)[ (].*,\\1define\\2'
23905 ac_dC=' '
23906 ac_dD=' ,'
23908 uniq confdefs.h |
23909 sed -n '
23910 t rset
23911 :rset
23912 s/^[ ]*#[ ]*define[ ][ ]*//
23913 t ok
23916 s/[\\&,]/\\&/g
23917 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23918 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23919 ' >>conftest.defines
23921 # Remove the space that was appended to ease matching.
23922 # Then replace #undef with comments. This is necessary, for
23923 # example, in the case of _POSIX_SOURCE, which is predefined and required
23924 # on some systems where configure will not decide to define it.
23925 # (The regexp can be short, since the line contains either #define or #undef.)
23926 echo 's/ $//
23927 s,^[ #]*u.*,/* & */,' >>conftest.defines
23929 # Break up conftest.defines:
23930 ac_max_sed_lines=50
23932 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23933 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23934 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23935 # et cetera.
23936 ac_in='$ac_file_inputs'
23937 ac_out='"$tmp/out1"'
23938 ac_nxt='"$tmp/out2"'
23940 while :
23942 # Write a here document:
23943 cat >>$CONFIG_STATUS <<_ACEOF
23944 # First, check the format of the line:
23945 cat >"\$tmp/defines.sed" <<\\CEOF
23946 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23947 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23949 :def
23950 _ACEOF
23951 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23952 echo 'CEOF
23953 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23954 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23955 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23956 grep . conftest.tail >/dev/null || break
23957 rm -f conftest.defines
23958 mv conftest.tail conftest.defines
23959 done
23960 rm -f conftest.defines conftest.tail
23962 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23963 cat >>$CONFIG_STATUS <<\_ACEOF
23964 if test x"$ac_file" != x-; then
23965 echo "/* $configure_input */" >"$tmp/config.h"
23966 cat "$ac_result" >>"$tmp/config.h"
23967 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23968 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23969 echo "$as_me: $ac_file is unchanged" >&6;}
23970 else
23971 rm -f $ac_file
23972 mv "$tmp/config.h" $ac_file
23974 else
23975 echo "/* $configure_input */"
23976 cat "$ac_result"
23978 rm -f "$tmp/out12"
23981 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23982 echo "$as_me: executing $ac_file commands" >&6;}
23984 esac
23987 case $ac_file$ac_mode in
23988 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23989 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23990 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23992 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23994 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23996 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23998 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24000 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24002 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24004 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24006 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24008 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24010 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24012 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24015 esac
24016 done # for ac_tag
24019 { (exit 0); exit 0; }
24020 _ACEOF
24021 chmod +x $CONFIG_STATUS
24022 ac_clean_files=$ac_clean_files_save
24025 # configure is writing to config.log, and then calls config.status.
24026 # config.status does its own redirection, appending to config.log.
24027 # Unfortunately, on DOS this fails, as config.log is still kept open
24028 # by configure, so config.status won't be able to write to it; its
24029 # output is simply discarded. So we exec the FD to /dev/null,
24030 # effectively closing config.log, so it can be properly (re)opened and
24031 # appended to by config.status. When coming back to configure, we
24032 # need to make the FD available again.
24033 if test "$no_create" != yes; then
24034 ac_cs_success=:
24035 ac_config_status_args=
24036 test "$silent" = yes &&
24037 ac_config_status_args="$ac_config_status_args --quiet"
24038 exec 5>/dev/null
24039 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24040 exec 5>>config.log
24041 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24042 # would make configure fail if this is the last instruction.
24043 $ac_cs_success || { (exit 1); exit 1; }
24047 # CONFIG_SUBDIRS section.
24049 if test "$no_recursion" != yes; then
24051 # Remove --cache-file and --srcdir arguments so they do not pile up.
24052 ac_sub_configure_args=
24053 ac_prev=
24054 eval "set x $ac_configure_args"
24055 shift
24056 for ac_arg
24058 if test -n "$ac_prev"; then
24059 ac_prev=
24060 continue
24062 case $ac_arg in
24063 -cache-file | --cache-file | --cache-fil | --cache-fi \
24064 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24065 ac_prev=cache_file ;;
24066 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24067 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24068 | --c=*)
24070 --config-cache | -C)
24072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24073 ac_prev=srcdir ;;
24074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24077 ac_prev=prefix ;;
24078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24081 case $ac_arg in
24082 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24083 esac
24084 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24085 esac
24086 done
24088 # Always prepend --prefix to ensure using the same prefix
24089 # in subdir configurations.
24090 ac_arg="--prefix=$prefix"
24091 case $ac_arg in
24092 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24093 esac
24094 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24096 ac_popdir=`pwd`
24097 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24099 # Do not complain, so a configure script can configure whichever
24100 # parts of a large source tree are present.
24101 test -d "$srcdir/$ac_dir" || continue
24103 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24104 echo "$as_me:$LINENO: $ac_msg" >&5
24105 echo "$ac_msg" >&6
24106 { as_dir="$ac_dir"
24107 case $as_dir in #(
24108 -*) as_dir=./$as_dir;;
24109 esac
24110 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24111 as_dirs=
24112 while :; do
24113 case $as_dir in #(
24114 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24115 *) as_qdir=$as_dir;;
24116 esac
24117 as_dirs="'$as_qdir' $as_dirs"
24118 as_dir=`$as_dirname -- "$as_dir" ||
24119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24120 X"$as_dir" : 'X\(//\)[^/]' \| \
24121 X"$as_dir" : 'X\(//\)$' \| \
24122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24123 echo X"$as_dir" |
24124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24125 s//\1/
24128 /^X\(\/\/\)[^/].*/{
24129 s//\1/
24132 /^X\(\/\/\)$/{
24133 s//\1/
24136 /^X\(\/\).*/{
24137 s//\1/
24140 s/.*/./; q'`
24141 test -d "$as_dir" && break
24142 done
24143 test -z "$as_dirs" || eval "mkdir $as_dirs"
24144 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24145 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24146 { (exit 1); exit 1; }; }; }
24147 ac_builddir=.
24149 case "$ac_dir" in
24150 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24152 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24153 # A ".." for each directory in $ac_dir_suffix.
24154 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24155 case $ac_top_builddir_sub in
24156 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24157 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24158 esac ;;
24159 esac
24160 ac_abs_top_builddir=$ac_pwd
24161 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24162 # for backward compatibility:
24163 ac_top_builddir=$ac_top_build_prefix
24165 case $srcdir in
24166 .) # We are building in place.
24167 ac_srcdir=.
24168 ac_top_srcdir=$ac_top_builddir_sub
24169 ac_abs_top_srcdir=$ac_pwd ;;
24170 [\\/]* | ?:[\\/]* ) # Absolute name.
24171 ac_srcdir=$srcdir$ac_dir_suffix;
24172 ac_top_srcdir=$srcdir
24173 ac_abs_top_srcdir=$srcdir ;;
24174 *) # Relative name.
24175 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24176 ac_top_srcdir=$ac_top_build_prefix$srcdir
24177 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24178 esac
24179 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24182 cd "$ac_dir"
24184 # Check for guested configure; otherwise get Cygnus style configure.
24185 if test -f "$ac_srcdir/configure.gnu"; then
24186 ac_sub_configure=$ac_srcdir/configure.gnu
24187 elif test -f "$ac_srcdir/configure"; then
24188 ac_sub_configure=$ac_srcdir/configure
24189 elif test -f "$ac_srcdir/configure.in"; then
24190 # This should be Cygnus configure.
24191 ac_sub_configure=$ac_aux_dir/configure
24192 else
24193 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24194 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24195 ac_sub_configure=
24198 # The recursion is here.
24199 if test -n "$ac_sub_configure"; then
24200 # Make the cache file name correct relative to the subdirectory.
24201 case $cache_file in
24202 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24203 *) # Relative name.
24204 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24205 esac
24207 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24208 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24209 # The eval makes quoting arguments work.
24210 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24211 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24212 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24213 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24214 { (exit 1); exit 1; }; }
24217 cd "$ac_popdir"
24218 done