Implement Paste
[llvm-core.git] / configure
blobc8b3c767ad0bd77ebd2105afc52a2d3544836565
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.1svn.
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.1svn'
565 PACKAGE_STRING='llvm 3.1svn'
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
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
651 CXXFLAGS
652 ac_ct_CXX
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_OPTIMIZED
686 ENABLE_PROFILING
687 DISABLE_ASSERTIONS
688 ENABLE_EXPENSIVE_CHECKS
689 EXPENSIVE_CHECKS
690 DEBUG_RUNTIME
691 DEBUG_SYMBOLS
693 TARGET_HAS_JIT
694 ENABLE_DOCS
695 ENABLE_DOXYGEN
696 ENABLE_THREADS
697 ENABLE_PTHREADS
698 ENABLE_PIC
699 ENABLE_SHARED
700 ENABLE_EMBED_STDCXX
701 ENABLE_TIMESTAMPS
702 TARGETS_TO_BUILD
703 LLVM_ENUM_TARGETS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
707 ENABLE_CBE_PRINTF_A
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 CLANG_SRC_ROOT
712 BINUTILS_INCDIR
714 ifGNUmake
715 LN_S
718 DATE
719 FIND
720 MKDIR
722 RANLIB
727 BINPWD
728 GRAPHVIZ
731 NEATO
732 TWOPI
733 CIRCO
735 DOTTY
736 XDOT_PY
737 PERL
738 HAVE_PERL
739 INSTALL_PROGRAM
740 INSTALL_SCRIPT
741 INSTALL_DATA
742 BZIP2
744 DOXYGEN
745 GROFF
746 GZIPBIN
747 POD2HTML
748 POD2MAN
749 PDFROFF
750 RUNTEST
751 TCLSH
753 OCAMLC
754 OCAMLOPT
755 OCAMLDEP
756 OCAMLDOC
758 HAVE_LINK_VERSION_SCRIPT
759 INSTALL_LTDL_TRUE
760 INSTALL_LTDL_FALSE
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
763 LIBADD_DL
764 NO_VARIADIC_MACROS
765 NO_MISSING_FIELD_INITIALIZERS
766 USE_UDIS86
767 USE_OPROFILE
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 SHLIBEXT
772 SHLIBPATH_VAR
773 LLVM_PREFIX
774 LLVM_BINDIR
775 LLVM_LIBDIR
776 LLVM_DATADIR
777 LLVM_DOCSDIR
778 LLVM_ETCDIR
779 LLVM_INCLUDEDIR
780 LLVM_INFODIR
781 LLVM_MANDIR
782 LLVM_CONFIGTIME
783 BINDINGS_TO_BUILD
784 ALL_BINDINGS
785 OCAML_LIBDIR
786 ENABLE_VISIBILITY_INLINES_HIDDEN
787 RPATH
788 RDYNAMIC
789 LIBOBJS
790 LTLIBOBJS'
791 ac_subst_files=''
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
796 CFLAGS
797 LDFLAGS
798 CPPFLAGS
800 CXXFLAGS
802 CPP'
803 ac_subdirs_all='projects/llvm-gcc
804 projects/test-suite
805 projects/llvm-test
806 projects/poolalloc
807 projects/llvm-poolalloc
808 projects/sample
809 projects/privbracket
810 projects/llvm-stacker
811 projects/llvm-reopt
812 projects/llvm-java
813 projects/llvm-tv
814 projects/safecode
815 projects/llvm-kernel
816 tools/polly'
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
864 ac_prev=
865 ac_dashdash=
866 for ac_option
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
875 case $ac_option in
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *) ac_optarg=yes ;;
878 esac
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
884 ac_dashdash=yes ;;
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
903 --config-cache | -C)
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
937 -enable-* | --enable-*)
938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1134 -with-* | --with-*)
1135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 esac
1193 done
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
1201 # Be sure to have absolute directory names.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1208 case $ac_val in
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 esac
1212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
1214 done
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237 test "$silent" = yes && exec 6>/dev/null
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 echo X"$0" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1268 /^X\(\/\/\)$/{
1269 s//\1/
1272 /^X\(\/\).*/{
1273 s//\1/
1276 s/.*/./; q'`
1277 srcdir=$ac_confdir
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 srcdir=..
1281 else
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
1293 pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
1318 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1327 Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 [PREFIX]
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1371 _ACEOF
1373 cat <<\_ACEOF
1375 System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1379 _ACEOF
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of llvm 3.1svn:";;
1385 esac
1386 cat <<\_ACEOF
1388 Optional Features:
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-polly Use polly if available (default is YES)
1392 --enable-optimized Compile with optimizations enabled (default is NO)
1393 --enable-profiling Compile with profiling enabled (default is NO)
1394 --enable-assertions Compile with assertion checks enabled (default is
1395 YES)
1396 --enable-expensive-checks
1397 Compile with expensive debug checks enabled (default
1398 is NO)
1399 --enable-debug-runtime Build runtime libs with debug symbols (default is
1401 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1402 optimization is on and YES if it's off)
1403 --enable-jit Enable Just In Time Compiling (default is YES)
1404 --enable-docs Build documents (default is YES)
1405 --enable-doxygen Build doxygen documentation (default is NO)
1406 --enable-threads Use threads if available (default is YES)
1407 --enable-pthreads Use pthreads if available (default is YES)
1408 --enable-pic Build LLVM with Position Independent Code (default
1409 is YES)
1410 --enable-shared Build a shared library and link tools against it
1411 (default is NO)
1412 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1413 Win32 DLL (default is NO)
1414 --enable-timestamps Enable embedding timestamp information in build
1415 (default is YES)
1416 --enable-targets Build specific host targets: all or
1417 target1,target2,... Valid targets are: host, x86,
1418 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1419 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1420 (default=all)
1421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 %a (default is YES)
1423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
1425 --enable-libffi Check for the presence of libffi (default is NO)
1426 --enable-ltdl-install install libltdl
1428 Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-optimize-option Select the compiler options to use for optimized
1432 builds
1433 --with-extra-options Specify additional options to compile LLVM with
1434 --with-extra-ld-options Specify additional options to link LLVM with
1435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1436 is stdlib)
1437 --with-clang-srcdir Directory to the out-of-tree Clang source
1438 --with-clang-resource-dir
1439 Relative directory from the Clang binary for
1440 resource files
1441 --with-c-include-dirs Colon separated list of directories clang will
1442 search for headers
1443 --with-cxx-include-root Directory with the libstdc++ headers.
1444 --with-cxx-include-arch Architecture of the libstdc++ headers.
1445 --with-cxx-include-32bit-dir
1446 32 bit multilib dir.
1447 --with-cxx-include-64bit-dir
1448 64 bit multilib directory.
1449 --with-binutils-include Specify path to binutils/include/ containing
1450 plugin-api.h file for gold plugin.
1451 --with-bug-report-url Specify the URL where bug reports should be
1452 submitted (default=http://llvm.org/bugs/)
1453 --with-tclinclude directory where tcl headers are
1454 --with-udis86=<path> Use udis86 external x86 disassembler library
1455 --with-oprofile=<prefix>
1456 Tell OProfile >= 0.9.4 how to symbolize JIT output
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
1467 CPP C preprocessor
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 Report bugs to <llvmbugs@cs.uiuc.edu>.
1473 _ACEOF
1474 ac_status=$?
1477 if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 test -d "$ac_dir" || continue
1481 ac_builddir=.
1483 case "$ac_dir" in
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 esac ;;
1493 esac
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1499 case $srcdir in
1500 .) # We are building in place.
1501 ac_srcdir=.
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
1505 ac_srcdir=$srcdir$ac_dir_suffix;
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1508 *) # Relative name.
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 esac
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1523 else
1524 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 fi || ac_status=$?
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1527 done
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1532 cat <<\_ACEOF
1533 llvm configure 3.1svn
1534 generated by GNU Autoconf 2.60
1536 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1537 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1541 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1542 _ACEOF
1543 exit
1545 cat >config.log <<_ACEOF
1546 This file contains any messages produced by compilers while
1547 running configure, to aid debugging if configure makes a mistake.
1549 It was created by llvm $as_me 3.1svn, which was
1550 generated by GNU Autoconf 2.60. Invocation command line was
1552 $ $0 $@
1554 _ACEOF
1555 exec 5>>config.log
1557 cat <<_ASUNAME
1558 ## --------- ##
1559 ## Platform. ##
1560 ## --------- ##
1562 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1571 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1572 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1573 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1574 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1575 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1576 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1577 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1579 _ASUNAME
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
1586 echo "PATH: $as_dir"
1587 done
1588 IFS=$as_save_IFS
1590 } >&5
1592 cat >&5 <<_ACEOF
1595 ## ----------- ##
1596 ## Core tests. ##
1597 ## ----------- ##
1599 _ACEOF
1602 # Keep a trace of the command line.
1603 # Strip out --no-create and --no-recursion so they do not pile up.
1604 # Strip out --silent because we don't want to record it for future runs.
1605 # Also quote any args containing shell meta-characters.
1606 # Make two passes to allow for proper duplicate-argument suppression.
1607 ac_configure_args=
1608 ac_configure_args0=
1609 ac_configure_args1=
1610 ac_must_keep_next=false
1611 for ac_pass in 1 2
1613 for ac_arg
1615 case $ac_arg in
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1619 continue ;;
1620 *\'*)
1621 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1622 esac
1623 case $ac_pass in
1624 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627 if test $ac_must_keep_next = true; then
1628 ac_must_keep_next=false # Got value, back to normal.
1629 else
1630 case $ac_arg in
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637 esac
1639 -* ) ac_must_keep_next=true ;;
1640 esac
1642 ac_configure_args="$ac_configure_args '$ac_arg'"
1644 esac
1645 done
1646 done
1647 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650 # When interrupted or exit'd, cleanup temporary files, and complete
1651 # config.log. We remove comments because anyway the quotes in there
1652 # would cause problems or look ugly.
1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655 trap 'exit_status=$?
1656 # Save into config.log some information that might help in debugging.
1658 echo
1660 cat <<\_ASBOX
1661 ## ---------------- ##
1662 ## Cache variables. ##
1663 ## ---------------- ##
1664 _ASBOX
1665 echo
1666 # The following way of writing the cache mishandles newlines in values,
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1670 case $ac_val in #(
1671 *${as_nl}*)
1672 case $ac_var in #(
1673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1675 esac
1676 case $ac_var in #(
1677 _ | IFS | as_nl) ;; #(
1678 *) $as_unset $ac_var ;;
1679 esac ;;
1680 esac
1681 done
1682 (set) 2>&1 |
1683 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684 *${as_nl}ac_space=\ *)
1685 sed -n \
1686 "s/'\''/'\''\\\\'\'''\''/g;
1687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688 ;; #(
1690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1692 esac |
1693 sort
1695 echo
1697 cat <<\_ASBOX
1698 ## ----------------- ##
1699 ## Output variables. ##
1700 ## ----------------- ##
1701 _ASBOX
1702 echo
1703 for ac_var in $ac_subst_vars
1705 eval ac_val=\$$ac_var
1706 case $ac_val in
1707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708 esac
1709 echo "$ac_var='\''$ac_val'\''"
1710 done | sort
1711 echo
1713 if test -n "$ac_subst_files"; then
1714 cat <<\_ASBOX
1715 ## ------------------- ##
1716 ## File substitutions. ##
1717 ## ------------------- ##
1718 _ASBOX
1719 echo
1720 for ac_var in $ac_subst_files
1722 eval ac_val=\$$ac_var
1723 case $ac_val in
1724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725 esac
1726 echo "$ac_var='\''$ac_val'\''"
1727 done | sort
1728 echo
1731 if test -s confdefs.h; then
1732 cat <<\_ASBOX
1733 ## ----------- ##
1734 ## confdefs.h. ##
1735 ## ----------- ##
1736 _ASBOX
1737 echo
1738 cat confdefs.h
1739 echo
1741 test "$ac_signal" != 0 &&
1742 echo "$as_me: caught signal $ac_signal"
1743 echo "$as_me: exit $exit_status"
1744 } >&5
1745 rm -f core *.core core.conftest.* &&
1746 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1747 exit $exit_status
1749 for ac_signal in 1 2 13 15; do
1750 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1751 done
1752 ac_signal=0
1754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1755 rm -f -r conftest* confdefs.h
1757 # Predefined preprocessor variables.
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_NAME "$PACKAGE_NAME"
1761 _ACEOF
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766 _ACEOF
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1771 _ACEOF
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_STRING "$PACKAGE_STRING"
1776 _ACEOF
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781 _ACEOF
1784 # Let the site file select an alternate cache file if it wants to.
1785 # Prefer explicitly selected file to automatically selected ones.
1786 if test -n "$CONFIG_SITE"; then
1787 set x "$CONFIG_SITE"
1788 elif test "x$prefix" != xNONE; then
1789 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1790 else
1791 set x "$ac_default_prefix/share/config.site" \
1792 "$ac_default_prefix/etc/config.site"
1794 shift
1795 for ac_site_file
1797 if test -r "$ac_site_file"; then
1798 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799 echo "$as_me: loading site script $ac_site_file" >&6;}
1800 sed 's/^/| /' "$ac_site_file" >&5
1801 . "$ac_site_file"
1803 done
1805 if test -r "$cache_file"; then
1806 # Some versions of bash will fail to source /dev/null (special
1807 # files actually), so we avoid doing that.
1808 if test -f "$cache_file"; then
1809 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810 echo "$as_me: loading cache $cache_file" >&6;}
1811 case $cache_file in
1812 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813 *) . "./$cache_file";;
1814 esac
1816 else
1817 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818 echo "$as_me: creating cache $cache_file" >&6;}
1819 >$cache_file
1822 # Check that the precious variables saved in the cache have kept the same
1823 # value.
1824 ac_cache_corrupted=false
1825 for ac_var in $ac_precious_vars; do
1826 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827 eval ac_new_set=\$ac_env_${ac_var}_set
1828 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829 eval ac_new_val=\$ac_env_${ac_var}_value
1830 case $ac_old_set,$ac_new_set in
1831 set,)
1832 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1834 ac_cache_corrupted=: ;;
1835 ,set)
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1838 ac_cache_corrupted=: ;;
1839 ,);;
1841 if test "x$ac_old_val" != "x$ac_new_val"; then
1842 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1845 echo "$as_me: former value: $ac_old_val" >&2;}
1846 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1847 echo "$as_me: current value: $ac_new_val" >&2;}
1848 ac_cache_corrupted=:
1849 fi;;
1850 esac
1851 # Pass precious variables to config.status.
1852 if test "$ac_new_set" = set; then
1853 case $ac_new_val in
1854 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 *) ac_arg=$ac_var=$ac_new_val ;;
1856 esac
1857 case " $ac_configure_args " in
1858 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1859 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1860 esac
1862 done
1863 if $ac_cache_corrupted; then
1864 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868 { (exit 1); exit 1; }; }
1895 ac_ext=c
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1911 ac_aux_dir=
1912 for ac_dir in autoconf "$srcdir"/autoconf; do
1913 if test -f "$ac_dir/install-sh"; then
1914 ac_aux_dir=$ac_dir
1915 ac_install_sh="$ac_aux_dir/install-sh -c"
1916 break
1917 elif test -f "$ac_dir/install.sh"; then
1918 ac_aux_dir=$ac_dir
1919 ac_install_sh="$ac_aux_dir/install.sh -c"
1920 break
1921 elif test -f "$ac_dir/shtool"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/shtool install -c"
1924 break
1926 done
1927 if test -z "$ac_aux_dir"; then
1928 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1929 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1930 { (exit 1); exit 1; }; }
1933 # These three variables are undocumented and unsupported,
1934 # and are intended to be withdrawn in a future Autoconf release.
1935 # They can cause serious problems if a builder's source tree is in a directory
1936 # whose full name contains unusual characters.
1937 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1938 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1939 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943 if test ${srcdir} != "." ; then
1944 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1945 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1946 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1947 { (exit 1); exit 1; }; }
1951 ac_ext=c
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 if test -n "$ac_tool_prefix"; then
1957 for ac_prog in clang llvm-gcc gcc
1959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963 if test "${ac_cv_prog_CC+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1968 else
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1976 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 break 2
1980 done
1981 done
1982 IFS=$as_save_IFS
1986 CC=$ac_cv_prog_CC
1987 if test -n "$CC"; then
1988 { echo "$as_me:$LINENO: result: $CC" >&5
1989 echo "${ECHO_T}$CC" >&6; }
1990 else
1991 { echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6; }
1996 test -n "$CC" && break
1997 done
1999 if test -z "$CC"; then
2000 ac_ct_CC=$CC
2001 for ac_prog in clang llvm-gcc gcc
2003 # Extract the first word of "$ac_prog", so it can be a program name with args.
2004 set dummy $ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010 if test -n "$ac_ct_CC"; then
2011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020 ac_cv_prog_ac_ct_CC="$ac_prog"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 break 2
2024 done
2025 done
2026 IFS=$as_save_IFS
2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031 if test -n "$ac_ct_CC"; then
2032 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033 echo "${ECHO_T}$ac_ct_CC" >&6; }
2034 else
2035 { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2040 test -n "$ac_ct_CC" && break
2041 done
2043 if test "x$ac_ct_CC" = x; then
2044 CC=""
2045 else
2046 case $cross_compiling:$ac_tool_warned in
2047 yes:)
2048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2049 whose name does not start with the host triplet. If you think this
2050 configuration is useful to you, please write to autoconf@gnu.org." >&5
2051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet. If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2054 ac_tool_warned=yes ;;
2055 esac
2056 CC=$ac_ct_CC
2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO: checking for C compiler version" >&5
2069 ac_compiler=`set X $ac_compile; echo $2`
2070 { (ac_try="$ac_compiler --version >&5"
2071 case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074 esac
2075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2076 (eval "$ac_compiler --version >&5") 2>&5
2077 ac_status=$?
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }
2080 { (ac_try="$ac_compiler -v >&5"
2081 case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084 esac
2085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086 (eval "$ac_compiler -v >&5") 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (ac_try="$ac_compiler -V >&5"
2091 case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094 esac
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler -V >&5") 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2101 cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h. */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2109 main ()
2113 return 0;
2115 _ACEOF
2116 ac_clean_files_save=$ac_clean_files
2117 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2118 # Try to create an executable without -o first, disregard a.out.
2119 # It will help us diagnose broken compilers, and finding out an intuition
2120 # of exeext.
2121 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2123 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2125 # List of possible output files, starting from the most likely.
2126 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2127 # only as a last resort. b.out is created by i960 compilers.
2128 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2130 # The IRIX 6 linker writes into existing files which may not be
2131 # executable, retaining their permissions. Remove them first so a
2132 # subsequent execution test works.
2133 ac_rmfiles=
2134 for ac_file in $ac_files
2136 case $ac_file in
2137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2139 esac
2140 done
2141 rm -f $ac_rmfiles
2143 if { (ac_try="$ac_link_default"
2144 case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147 esac
2148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149 (eval "$ac_link_default") 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
2153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2156 # so that the user can short-circuit this test for compilers unknown to
2157 # Autoconf.
2158 for ac_file in $ac_files
2160 test -f "$ac_file" || continue
2161 case $ac_file in
2162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2164 [ab].out )
2165 # We found the default executable, but exeext='' is most
2166 # certainly right.
2167 break;;
2168 *.* )
2169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2170 then :; else
2171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173 # We set ac_cv_exeext here because the later test for it is not
2174 # safe: cross compilers may not add the suffix if given an `-o'
2175 # argument, so we may need to know it at that point already.
2176 # Even if this section looks crufty: it has the advantage of
2177 # actually working.
2178 break;;
2180 break;;
2181 esac
2182 done
2183 test "$ac_cv_exeext" = no && ac_cv_exeext=
2185 else
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2189 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&2;}
2193 { (exit 77); exit 77; }; }
2196 ac_exeext=$ac_cv_exeext
2197 { echo "$as_me:$LINENO: result: $ac_file" >&5
2198 echo "${ECHO_T}$ac_file" >&6; }
2200 # Check that the compiler produces executables we can run. If not, either
2201 # the compiler is broken, or we cross compile.
2202 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207 if { ac_try='./$ac_file'
2208 { (case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2211 esac
2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213 (eval "$ac_try") 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 cross_compiling=no
2218 else
2219 if test "$cross_compiling" = maybe; then
2220 cross_compiling=yes
2221 else
2222 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2232 { echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6; }
2235 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2236 ac_clean_files=$ac_clean_files_save
2237 # Check that the compiler produces executables we can run. If not, either
2238 # the compiler is broken, or we cross compile.
2239 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2241 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242 echo "${ECHO_T}$cross_compiling" >&6; }
2244 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2246 if { (ac_try="$ac_link"
2247 case "(($ac_try" in
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2250 esac
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252 (eval "$ac_link") 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; then
2256 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2258 # work properly (i.e., refer to `conftest.exe'), while it won't with
2259 # `rm'.
2260 for ac_file in conftest.exe conftest conftest.*; do
2261 test -f "$ac_file" || continue
2262 case $ac_file in
2263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2264 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265 break;;
2266 * ) break;;
2267 esac
2268 done
2269 else
2270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2277 rm -f conftest$ac_cv_exeext
2278 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2283 ac_exeext=$EXEEXT
2284 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2286 if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289 cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h. */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2297 main ()
2301 return 0;
2303 _ACEOF
2304 rm -f conftest.o conftest.obj
2305 if { (ac_try="$ac_compile"
2306 case "(($ac_try" in
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2309 esac
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311 (eval "$ac_compile") 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
2315 for ac_file in conftest.o conftest.obj conftest.*; do
2316 test -f "$ac_file" || continue;
2317 case $ac_file in
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320 break;;
2321 esac
2322 done
2323 else
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
2334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2336 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337 echo "${ECHO_T}$ac_cv_objext" >&6; }
2338 OBJEXT=$ac_cv_objext
2339 ac_objext=$OBJEXT
2340 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2342 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345 cat >conftest.$ac_ext <<_ACEOF
2346 /* confdefs.h. */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2353 main ()
2355 #ifndef __GNUC__
2356 choke me
2357 #endif
2360 return 0;
2362 _ACEOF
2363 rm -f conftest.$ac_objext
2364 if { (ac_try="$ac_compile"
2365 case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368 esac
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compile") 2>conftest.er1
2371 ac_status=$?
2372 grep -v '^ *+' conftest.er1 >conftest.err
2373 rm -f conftest.er1
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2378 { (case "(($ac_try" in
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2381 esac
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_try") 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391 esac
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_try") 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2397 ac_compiler_gnu=yes
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 ac_compiler_gnu=no
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2409 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
2412 ac_test_CFLAGS=${CFLAGS+set}
2413 ac_save_CFLAGS=$CFLAGS
2414 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419 ac_save_c_werror_flag=$ac_c_werror_flag
2420 ac_c_werror_flag=yes
2421 ac_cv_prog_cc_g=no
2422 CFLAGS="-g"
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2431 main ()
2435 return 0;
2437 _ACEOF
2438 rm -f conftest.$ac_objext
2439 if { (ac_try="$ac_compile"
2440 case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compile") 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2453 { (case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456 esac
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_try") 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_try") 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2472 ac_cv_prog_cc_g=yes
2473 else
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2477 CFLAGS=""
2478 cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h. */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2486 main ()
2490 return 0;
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (ac_try="$ac_compile"
2495 case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_compile") 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508 { (case "(($ac_try" in
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2511 esac
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_try") 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_try") 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2528 else
2529 echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2532 ac_c_werror_flag=$ac_save_c_werror_flag
2533 CFLAGS="-g"
2534 cat >conftest.$ac_ext <<_ACEOF
2535 /* confdefs.h. */
2536 _ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2542 main ()
2546 return 0;
2548 _ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (ac_try="$ac_compile"
2551 case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2554 esac
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_compile") 2>conftest.er1
2557 ac_status=$?
2558 grep -v '^ *+' conftest.er1 >conftest.err
2559 rm -f conftest.er1
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2564 { (case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_try") 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_try") 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 ac_cv_prog_cc_g=yes
2584 else
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 ac_c_werror_flag=$ac_save_c_werror_flag
2600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2601 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2602 if test "$ac_test_CFLAGS" = set; then
2603 CFLAGS=$ac_save_CFLAGS
2604 elif test $ac_cv_prog_cc_g = yes; then
2605 if test "$GCC" = yes; then
2606 CFLAGS="-g -O2"
2607 else
2608 CFLAGS="-g"
2610 else
2611 if test "$GCC" = yes; then
2612 CFLAGS="-O2"
2613 else
2614 CFLAGS=
2617 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2618 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2619 if test "${ac_cv_prog_cc_c89+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622 ac_cv_prog_cc_c89=no
2623 ac_save_CC=$CC
2624 cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h. */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2630 #include <stdarg.h>
2631 #include <stdio.h>
2632 #include <sys/types.h>
2633 #include <sys/stat.h>
2634 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2635 struct buf { int x; };
2636 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2637 static char *e (p, i)
2638 char **p;
2639 int i;
2641 return p[i];
2643 static char *f (char * (*g) (char **, int), char **p, ...)
2645 char *s;
2646 va_list v;
2647 va_start (v,p);
2648 s = g (p, va_arg (v,int));
2649 va_end (v);
2650 return s;
2653 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2654 function prototypes and stuff, but not '\xHH' hex character constants.
2655 These don't provoke an error unfortunately, instead are silently treated
2656 as 'x'. The following induces an error, until -std is added to get
2657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2658 array size at least. It's necessary to write '\x00'==0 to get something
2659 that's true only with -std. */
2660 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2662 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2663 inside strings and character constants. */
2664 #define FOO(x) 'x'
2665 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2667 int test (int i, double x);
2668 struct s1 {int (*f) (int a);};
2669 struct s2 {int (*f) (double a);};
2670 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2671 int argc;
2672 char **argv;
2674 main ()
2676 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2678 return 0;
2680 _ACEOF
2681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2684 CC="$ac_save_CC $ac_arg"
2685 rm -f conftest.$ac_objext
2686 if { (ac_try="$ac_compile"
2687 case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690 esac
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2693 ac_status=$?
2694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700 { (case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_try") 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 ac_cv_prog_cc_c89=$ac_arg
2720 else
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f core conftest.err conftest.$ac_objext
2728 test "x$ac_cv_prog_cc_c89" != "xno" && break
2729 done
2730 rm -f conftest.$ac_ext
2731 CC=$ac_save_CC
2734 # AC_CACHE_VAL
2735 case "x$ac_cv_prog_cc_c89" in
2737 { echo "$as_me:$LINENO: result: none needed" >&5
2738 echo "${ECHO_T}none needed" >&6; } ;;
2739 xno)
2740 { echo "$as_me:$LINENO: result: unsupported" >&5
2741 echo "${ECHO_T}unsupported" >&6; } ;;
2743 CC="$CC $ac_cv_prog_cc_c89"
2744 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2745 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2746 esac
2749 ac_ext=c
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 ac_ext=cpp
2756 ac_cpp='$CXXCPP $CPPFLAGS'
2757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2760 if test -z "$CXX"; then
2761 if test -n "$CCC"; then
2762 CXX=$CCC
2763 else
2764 if test -n "$ac_tool_prefix"; then
2765 for ac_prog in clang++ llvm-g++ g++
2767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_CXX+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774 if test -n "$CXX"; then
2775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2788 done
2789 done
2790 IFS=$as_save_IFS
2794 CXX=$ac_cv_prog_CXX
2795 if test -n "$CXX"; then
2796 { echo "$as_me:$LINENO: result: $CXX" >&5
2797 echo "${ECHO_T}$CXX" >&6; }
2798 else
2799 { echo "$as_me:$LINENO: result: no" >&5
2800 echo "${ECHO_T}no" >&6; }
2804 test -n "$CXX" && break
2805 done
2807 if test -z "$CXX"; then
2808 ac_ct_CXX=$CXX
2809 for ac_prog in clang++ llvm-g++ g++
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 if test -n "$ac_ct_CXX"; then
2819 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_ac_ct_CXX="$ac_prog"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2832 done
2833 done
2834 IFS=$as_save_IFS
2838 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2839 if test -n "$ac_ct_CXX"; then
2840 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2841 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2842 else
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2848 test -n "$ac_ct_CXX" && break
2849 done
2851 if test "x$ac_ct_CXX" = x; then
2852 CXX="g++"
2853 else
2854 case $cross_compiling:$ac_tool_warned in
2855 yes:)
2856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857 whose name does not start with the host triplet. If you think this
2858 configuration is useful to you, please write to autoconf@gnu.org." >&5
2859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet. If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2862 ac_tool_warned=yes ;;
2863 esac
2864 CXX=$ac_ct_CXX
2870 # Provide some information about the compiler.
2871 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2872 ac_compiler=`set X $ac_compile; echo $2`
2873 { (ac_try="$ac_compiler --version >&5"
2874 case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compiler --version >&5") 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883 { (ac_try="$ac_compiler -v >&5"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler -v >&5") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893 { (ac_try="$ac_compiler -V >&5"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -V >&5") 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2904 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2905 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2906 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909 cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h. */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2917 main ()
2919 #ifndef __GNUC__
2920 choke me
2921 #endif
2924 return 0;
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (ac_try="$ac_compile"
2929 case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2942 { (case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_try") 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_try") 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2961 ac_compiler_gnu=yes
2962 else
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2966 ac_compiler_gnu=no
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2973 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2974 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2975 GXX=`test $ac_compiler_gnu = yes && echo yes`
2976 ac_test_CXXFLAGS=${CXXFLAGS+set}
2977 ac_save_CXXFLAGS=$CXXFLAGS
2978 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2979 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_cxx_g+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2984 ac_cxx_werror_flag=yes
2985 ac_cv_prog_cxx_g=no
2986 CXXFLAGS="-g"
2987 cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h. */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2995 main ()
2999 return 0;
3001 _ACEOF
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3010 ac_status=$?
3011 grep -v '^ *+' conftest.er1 >conftest.err
3012 rm -f conftest.er1
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } &&
3016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3017 { (case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020 esac
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_try") 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 ac_cv_prog_cxx_g=yes
3037 else
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3041 CXXFLAGS=""
3042 cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h. */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3050 main ()
3054 return 0;
3056 _ACEOF
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3059 case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3072 { (case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_try") 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3092 else
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3097 CXXFLAGS="-g"
3098 cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h. */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3106 main ()
3110 return 0;
3112 _ACEOF
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_prog_cxx_g=yes
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3164 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3165 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3166 if test "$ac_test_CXXFLAGS" = set; then
3167 CXXFLAGS=$ac_save_CXXFLAGS
3168 elif test $ac_cv_prog_cxx_g = yes; then
3169 if test "$GXX" = yes; then
3170 CXXFLAGS="-g -O2"
3171 else
3172 CXXFLAGS="-g"
3174 else
3175 if test "$GXX" = yes; then
3176 CXXFLAGS="-O2"
3177 else
3178 CXXFLAGS=
3181 ac_ext=c
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187 ac_ext=c
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3193 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3194 # On Suns, sometimes $CPP names a directory.
3195 if test -n "$CPP" && test -d "$CPP"; then
3196 CPP=
3198 if test -z "$CPP"; then
3199 if test "${ac_cv_prog_CPP+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 # Double quotes because CPP needs to be expanded
3203 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3205 ac_preproc_ok=false
3206 for ac_c_preproc_warn_flag in '' yes
3208 # Use a header file that comes with gcc, so configuring glibc
3209 # with a fresh cross-compiler works.
3210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3211 # <limits.h> exists even on freestanding compilers.
3212 # On the NeXT, cc -E runs the code through the compiler's parser,
3213 # not just through cpp. "Syntax error" is here to catch this case.
3214 cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h. */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3220 #ifdef __STDC__
3221 # include <limits.h>
3222 #else
3223 # include <assert.h>
3224 #endif
3225 Syntax error
3226 _ACEOF
3227 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
3240 if test -s conftest.err; then
3241 ac_cpp_err=$ac_c_preproc_warn_flag
3242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243 else
3244 ac_cpp_err=
3246 else
3247 ac_cpp_err=yes
3249 if test -z "$ac_cpp_err"; then
3251 else
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 # Broken: fails on valid input.
3256 continue
3259 rm -f conftest.err conftest.$ac_ext
3261 # OK, works on sane cases. Now check whether nonexistent headers
3262 # can be detected and how.
3263 cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h. */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269 #include <ac_nonexistent.h>
3270 _ACEOF
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null; then
3284 if test -s conftest.err; then
3285 ac_cpp_err=$ac_c_preproc_warn_flag
3286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3287 else
3288 ac_cpp_err=
3290 else
3291 ac_cpp_err=yes
3293 if test -z "$ac_cpp_err"; then
3294 # Broken: success on invalid input.
3295 continue
3296 else
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 # Passes both tests.
3301 ac_preproc_ok=:
3302 break
3305 rm -f conftest.err conftest.$ac_ext
3307 done
3308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309 rm -f conftest.err conftest.$ac_ext
3310 if $ac_preproc_ok; then
3311 break
3314 done
3315 ac_cv_prog_CPP=$CPP
3318 CPP=$ac_cv_prog_CPP
3319 else
3320 ac_cv_prog_CPP=$CPP
3322 { echo "$as_me:$LINENO: result: $CPP" >&5
3323 echo "${ECHO_T}$CPP" >&6; }
3324 ac_preproc_ok=false
3325 for ac_c_preproc_warn_flag in '' yes
3327 # Use a header file that comes with gcc, so configuring glibc
3328 # with a fresh cross-compiler works.
3329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3330 # <limits.h> exists even on freestanding compilers.
3331 # On the NeXT, cc -E runs the code through the compiler's parser,
3332 # not just through cpp. "Syntax error" is here to catch this case.
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #ifdef __STDC__
3340 # include <limits.h>
3341 #else
3342 # include <assert.h>
3343 #endif
3344 Syntax error
3345 _ACEOF
3346 if { (ac_try="$ac_cpp conftest.$ac_ext"
3347 case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3353 ac_status=$?
3354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362 else
3363 ac_cpp_err=
3365 else
3366 ac_cpp_err=yes
3368 if test -z "$ac_cpp_err"; then
3370 else
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 # Broken: fails on valid input.
3375 continue
3378 rm -f conftest.err conftest.$ac_ext
3380 # OK, works on sane cases. Now check whether nonexistent headers
3381 # can be detected and how.
3382 cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h. */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388 #include <ac_nonexistent.h>
3389 _ACEOF
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_c_preproc_warn_flag
3405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406 else
3407 ac_cpp_err=
3409 else
3410 ac_cpp_err=yes
3412 if test -z "$ac_cpp_err"; then
3413 # Broken: success on invalid input.
3414 continue
3415 else
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3419 # Passes both tests.
3420 ac_preproc_ok=:
3421 break
3424 rm -f conftest.err conftest.$ac_ext
3426 done
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3431 else
3432 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435 See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
3439 ac_ext=c
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 if test -d ${srcdir}/projects/llvm-gcc ; then
3449 subdirs="$subdirs projects/llvm-gcc"
3453 if test -d ${srcdir}/projects/test-suite ; then
3454 subdirs="$subdirs projects/test-suite"
3458 if test -d ${srcdir}/projects/llvm-test ; then
3459 subdirs="$subdirs projects/llvm-test"
3463 if test -d ${srcdir}/projects/poolalloc ; then
3464 subdirs="$subdirs projects/poolalloc"
3468 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3469 subdirs="$subdirs projects/llvm-poolalloc"
3473 for i in `ls ${srcdir}/projects`
3475 if test -d ${srcdir}/projects/${i} ; then
3476 case ${i} in
3477 sample) subdirs="$subdirs projects/sample"
3479 privbracket) subdirs="$subdirs projects/privbracket"
3481 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3483 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3485 llvm-java) subdirs="$subdirs projects/llvm-java"
3487 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3489 safecode) subdirs="$subdirs projects/safecode"
3491 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3493 llvm-gcc) ;;
3494 test-suite) ;;
3495 llvm-test) ;;
3496 poolalloc) ;;
3497 llvm-poolalloc) ;;
3499 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3500 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3502 esac
3504 done
3506 # Check whether --enable-polly was given.
3507 if test "${enable_polly+set}" = set; then
3508 enableval=$enable_polly;
3509 else
3510 enableval=default
3513 case "$enableval" in
3514 yes) ENABLE_POLLY=1
3516 no) ENABLE_POLLY=0
3518 default) ENABLE_POLLY=1
3520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3521 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3522 { (exit 1); exit 1; }; } ;;
3523 esac
3526 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3527 LLVM_HAS_POLLY=1
3529 subdirs="$subdirs tools/polly"
3534 # Make sure we can run config.sub.
3535 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3536 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3537 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3538 { (exit 1); exit 1; }; }
3540 { echo "$as_me:$LINENO: checking build system type" >&5
3541 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3542 if test "${ac_cv_build+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 ac_build_alias=$build_alias
3546 test "x$ac_build_alias" = x &&
3547 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3548 test "x$ac_build_alias" = x &&
3549 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3550 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3551 { (exit 1); exit 1; }; }
3552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3553 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3554 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3555 { (exit 1); exit 1; }; }
3558 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3559 echo "${ECHO_T}$ac_cv_build" >&6; }
3560 case $ac_cv_build in
3561 *-*-*) ;;
3562 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3563 echo "$as_me: error: invalid value of canonical build" >&2;}
3564 { (exit 1); exit 1; }; };;
3565 esac
3566 build=$ac_cv_build
3567 ac_save_IFS=$IFS; IFS='-'
3568 set x $ac_cv_build
3569 shift
3570 build_cpu=$1
3571 build_vendor=$2
3572 shift; shift
3573 # Remember, the first character of IFS is used to create $*,
3574 # except with old shells:
3575 build_os=$*
3576 IFS=$ac_save_IFS
3577 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3580 { echo "$as_me:$LINENO: checking host system type" >&5
3581 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3582 if test "${ac_cv_host+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585 if test "x$host_alias" = x; then
3586 ac_cv_host=$ac_cv_build
3587 else
3588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3589 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3590 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3591 { (exit 1); exit 1; }; }
3595 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3596 echo "${ECHO_T}$ac_cv_host" >&6; }
3597 case $ac_cv_host in
3598 *-*-*) ;;
3599 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3600 echo "$as_me: error: invalid value of canonical host" >&2;}
3601 { (exit 1); exit 1; }; };;
3602 esac
3603 host=$ac_cv_host
3604 ac_save_IFS=$IFS; IFS='-'
3605 set x $ac_cv_host
3606 shift
3607 host_cpu=$1
3608 host_vendor=$2
3609 shift; shift
3610 # Remember, the first character of IFS is used to create $*,
3611 # except with old shells:
3612 host_os=$*
3613 IFS=$ac_save_IFS
3614 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3617 { echo "$as_me:$LINENO: checking target system type" >&5
3618 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3619 if test "${ac_cv_target+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622 if test "x$target_alias" = x; then
3623 ac_cv_target=$ac_cv_host
3624 else
3625 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3626 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3627 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3628 { (exit 1); exit 1; }; }
3632 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3633 echo "${ECHO_T}$ac_cv_target" >&6; }
3634 case $ac_cv_target in
3635 *-*-*) ;;
3636 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3637 echo "$as_me: error: invalid value of canonical target" >&2;}
3638 { (exit 1); exit 1; }; };;
3639 esac
3640 target=$ac_cv_target
3641 ac_save_IFS=$IFS; IFS='-'
3642 set x $ac_cv_target
3643 shift
3644 target_cpu=$1
3645 target_vendor=$2
3646 shift; shift
3647 # Remember, the first character of IFS is used to create $*,
3648 # except with old shells:
3649 target_os=$*
3650 IFS=$ac_save_IFS
3651 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3654 # The aliases save the names the user supplied, while $host etc.
3655 # will get canonicalized.
3656 test -n "$target_alias" &&
3657 test "$program_prefix$program_suffix$program_transform_name" = \
3658 NONENONEs,x,x, &&
3659 program_prefix=${target_alias}-
3661 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3662 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3663 if test "${llvm_cv_os_type+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 case $host in
3667 *-*-aix*)
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="AIX"
3671 llvm_cv_platform_type="Unix" ;;
3672 *-*-irix*)
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="IRIX"
3676 llvm_cv_platform_type="Unix" ;;
3677 *-*-cygwin*)
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="Cygwin"
3681 llvm_cv_platform_type="Unix" ;;
3682 *-*-darwin*)
3683 llvm_cv_link_all_option="-Wl,-all_load"
3684 llvm_cv_no_link_all_option="-Wl,-noall_load"
3685 llvm_cv_os_type="Darwin"
3686 llvm_cv_platform_type="Unix" ;;
3687 *-*-minix*)
3688 llvm_cv_link_all_option="-Wl,-all_load"
3689 llvm_cv_no_link_all_option="-Wl,-noall_load"
3690 llvm_cv_os_type="Minix"
3691 llvm_cv_platform_type="Unix" ;;
3692 *-*-freebsd*)
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="FreeBSD"
3696 llvm_cv_platform_type="Unix" ;;
3697 *-*-openbsd*)
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="OpenBSD"
3701 llvm_cv_platform_type="Unix" ;;
3702 *-*-netbsd*)
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="NetBSD"
3706 llvm_cv_platform_type="Unix" ;;
3707 *-*-dragonfly*)
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="DragonFly"
3711 llvm_cv_platform_type="Unix" ;;
3712 *-*-hpux*)
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="HP-UX"
3716 llvm_cv_platform_type="Unix" ;;
3717 *-*-interix*)
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Interix"
3721 llvm_cv_platform_type="Unix" ;;
3722 *-*-linux*)
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Linux"
3726 llvm_cv_platform_type="Unix" ;;
3727 *-*-solaris*)
3728 llvm_cv_link_all_option="-Wl,-z,allextract"
3729 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3730 llvm_cv_os_type="SunOS"
3731 llvm_cv_platform_type="Unix" ;;
3732 *-*-auroraux*)
3733 llvm_cv_link_all_option="-Wl,-z,allextract"
3734 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3735 llvm_cv_os_type="AuroraUX"
3736 llvm_cv_platform_type="Unix" ;;
3737 *-*-win32*)
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="Win32"
3741 llvm_cv_platform_type="Win32" ;;
3742 *-*-mingw*)
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="MingW"
3746 llvm_cv_platform_type="Win32" ;;
3747 *-*-haiku*)
3748 llvm_cv_link_all_option="-Wl,--whole-archive"
3749 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750 llvm_cv_os_type="Haiku"
3751 llvm_cv_platform_type="Unix" ;;
3752 *-unknown-eabi*)
3753 llvm_cv_link_all_option="-Wl,--whole-archive"
3754 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755 llvm_cv_os_type="Freestanding"
3756 llvm_cv_platform_type="Unix" ;;
3757 *-unknown-elf*)
3758 llvm_cv_link_all_option="-Wl,--whole-archive"
3759 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760 llvm_cv_os_type="Freestanding"
3761 llvm_cv_platform_type="Unix" ;;
3763 llvm_cv_link_all_option=""
3764 llvm_cv_no_link_all_option=""
3765 llvm_cv_os_type="Unknown"
3766 llvm_cv_platform_type="Unknown" ;;
3767 esac
3769 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3770 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3772 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3773 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3774 if test "${llvm_cv_target_os_type+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777 case $target in
3778 *-*-aix*)
3779 llvm_cv_target_os_type="AIX" ;;
3780 *-*-irix*)
3781 llvm_cv_target_os_type="IRIX" ;;
3782 *-*-cygwin*)
3783 llvm_cv_target_os_type="Cygwin" ;;
3784 *-*-darwin*)
3785 llvm_cv_target_os_type="Darwin" ;;
3786 *-*-minix*)
3787 llvm_cv_target_os_type="Minix" ;;
3788 *-*-freebsd*)
3789 llvm_cv_target_os_type="FreeBSD" ;;
3790 *-*-openbsd*)
3791 llvm_cv_target_os_type="OpenBSD" ;;
3792 *-*-netbsd*)
3793 llvm_cv_target_os_type="NetBSD" ;;
3794 *-*-dragonfly*)
3795 llvm_cv_target_os_type="DragonFly" ;;
3796 *-*-hpux*)
3797 llvm_cv_target_os_type="HP-UX" ;;
3798 *-*-interix*)
3799 llvm_cv_target_os_type="Interix" ;;
3800 *-*-linux*)
3801 llvm_cv_target_os_type="Linux" ;;
3802 *-*-solaris*)
3803 llvm_cv_target_os_type="SunOS" ;;
3804 *-*-auroraux*)
3805 llvm_cv_target_os_type="AuroraUX" ;;
3806 *-*-win32*)
3807 llvm_cv_target_os_type="Win32" ;;
3808 *-*-mingw*)
3809 llvm_cv_target_os_type="MingW" ;;
3810 *-*-haiku*)
3811 llvm_cv_target_os_type="Haiku" ;;
3812 *-*-rtems*)
3813 llvm_cv_target_os_type="RTEMS" ;;
3814 *-*-nacl*)
3815 llvm_cv_target_os_type="NativeClient" ;;
3816 *-unknown-eabi*)
3817 llvm_cv_target_os_type="Freestanding" ;;
3819 llvm_cv_target_os_type="Unknown" ;;
3820 esac
3822 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3823 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3825 if test "$llvm_cv_os_type" = "Unknown" ; then
3826 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3827 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3828 { (exit 1); exit 1; }; }
3831 OS=$llvm_cv_os_type
3833 HOST_OS=$llvm_cv_os_type
3835 TARGET_OS=$llvm_cv_target_os_type
3838 LINKALL=$llvm_cv_link_all_option
3840 NOLINKALL=$llvm_cv_no_link_all_option
3843 case $llvm_cv_platform_type in
3844 Unix)
3846 cat >>confdefs.h <<\_ACEOF
3847 #define LLVM_ON_UNIX 1
3848 _ACEOF
3850 LLVM_ON_UNIX=1
3852 LLVM_ON_WIN32=0
3855 Win32)
3857 cat >>confdefs.h <<\_ACEOF
3858 #define LLVM_ON_WIN32 1
3859 _ACEOF
3861 LLVM_ON_UNIX=0
3863 LLVM_ON_WIN32=1
3866 esac
3868 { echo "$as_me:$LINENO: checking target architecture" >&5
3869 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3870 if test "${llvm_cv_target_arch+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873 case $target in
3874 i?86-*) llvm_cv_target_arch="x86" ;;
3875 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3876 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3877 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3878 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3879 arm*-*) llvm_cv_target_arch="ARM" ;;
3880 mips-*) llvm_cv_target_arch="Mips" ;;
3881 xcore-*) llvm_cv_target_arch="XCore" ;;
3882 msp430-*) llvm_cv_target_arch="MSP430" ;;
3883 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3884 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3885 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3886 ptx-*) llvm_cv_target_arch="PTX" ;;
3887 *) llvm_cv_target_arch="Unknown" ;;
3888 esac
3890 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3891 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3893 if test "$llvm_cv_target_arch" = "Unknown" ; then
3894 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3895 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3898 # Determine the LLVM native architecture for the target
3899 case "$llvm_cv_target_arch" in
3900 x86) LLVM_NATIVE_ARCH="X86" ;;
3901 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3902 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3903 esac
3905 ARCH=$llvm_cv_target_arch
3910 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3911 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3912 if test "${ac_cv_path_GREP+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915 # Extract the first word of "grep ggrep" to use in msg output
3916 if test -z "$GREP"; then
3917 set dummy grep ggrep; ac_prog_name=$2
3918 if test "${ac_cv_path_GREP+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921 ac_path_GREP_found=false
3922 # Loop through the user's path and test for each of PROGNAME-LIST
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_prog in grep ggrep; do
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3931 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3932 # Check for GNU ac_path_GREP and select it if it is found.
3933 # Check for GNU $ac_path_GREP
3934 case `"$ac_path_GREP" --version 2>&1` in
3935 *GNU*)
3936 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3938 ac_count=0
3939 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3940 while :
3942 cat "conftest.in" "conftest.in" >"conftest.tmp"
3943 mv "conftest.tmp" "conftest.in"
3944 cp "conftest.in" "conftest.nl"
3945 echo 'GREP' >> "conftest.nl"
3946 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3948 ac_count=`expr $ac_count + 1`
3949 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3950 # Best one so far, save it but keep looking for a better one
3951 ac_cv_path_GREP="$ac_path_GREP"
3952 ac_path_GREP_max=$ac_count
3954 # 10*(2^10) chars as input seems more than enough
3955 test $ac_count -gt 10 && break
3956 done
3957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3958 esac
3961 $ac_path_GREP_found && break 3
3962 done
3963 done
3965 done
3966 IFS=$as_save_IFS
3971 GREP="$ac_cv_path_GREP"
3972 if test -z "$GREP"; then
3973 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3974 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3975 { (exit 1); exit 1; }; }
3978 else
3979 ac_cv_path_GREP=$GREP
3984 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3985 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3986 GREP="$ac_cv_path_GREP"
3989 { echo "$as_me:$LINENO: checking for egrep" >&5
3990 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3991 if test "${ac_cv_path_EGREP+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3995 then ac_cv_path_EGREP="$GREP -E"
3996 else
3997 # Extract the first word of "egrep" to use in msg output
3998 if test -z "$EGREP"; then
3999 set dummy egrep; ac_prog_name=$2
4000 if test "${ac_cv_path_EGREP+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 ac_path_EGREP_found=false
4004 # Loop through the user's path and test for each of PROGNAME-LIST
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_prog in egrep; do
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4013 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4014 # Check for GNU ac_path_EGREP and select it if it is found.
4015 # Check for GNU $ac_path_EGREP
4016 case `"$ac_path_EGREP" --version 2>&1` in
4017 *GNU*)
4018 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4020 ac_count=0
4021 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4022 while :
4024 cat "conftest.in" "conftest.in" >"conftest.tmp"
4025 mv "conftest.tmp" "conftest.in"
4026 cp "conftest.in" "conftest.nl"
4027 echo 'EGREP' >> "conftest.nl"
4028 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4030 ac_count=`expr $ac_count + 1`
4031 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4032 # Best one so far, save it but keep looking for a better one
4033 ac_cv_path_EGREP="$ac_path_EGREP"
4034 ac_path_EGREP_max=$ac_count
4036 # 10*(2^10) chars as input seems more than enough
4037 test $ac_count -gt 10 && break
4038 done
4039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040 esac
4043 $ac_path_EGREP_found && break 3
4044 done
4045 done
4047 done
4048 IFS=$as_save_IFS
4053 EGREP="$ac_cv_path_EGREP"
4054 if test -z "$EGREP"; then
4055 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4056 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4057 { (exit 1); exit 1; }; }
4060 else
4061 ac_cv_path_EGREP=$EGREP
4067 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4068 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4069 EGREP="$ac_cv_path_EGREP"
4072 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4073 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4074 if test "${ac_cv_header_stdc+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077 cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h. */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 #include <stdlib.h>
4084 #include <stdarg.h>
4085 #include <string.h>
4086 #include <float.h>
4089 main ()
4093 return 0;
4095 _ACEOF
4096 rm -f conftest.$ac_objext
4097 if { (ac_try="$ac_compile"
4098 case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101 esac
4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_compile") 2>conftest.er1
4104 ac_status=$?
4105 grep -v '^ *+' conftest.er1 >conftest.err
4106 rm -f conftest.er1
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } &&
4110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4111 { (case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_try") 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4124 esac
4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126 (eval "$ac_try") 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4130 ac_cv_header_stdc=yes
4131 else
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 ac_cv_header_stdc=no
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 if test $ac_cv_header_stdc = yes; then
4141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4142 cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h. */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4148 #include <string.h>
4150 _ACEOF
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152 $EGREP "memchr" >/dev/null 2>&1; then
4154 else
4155 ac_cv_header_stdc=no
4157 rm -f conftest*
4161 if test $ac_cv_header_stdc = yes; then
4162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h. */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 #include <stdlib.h>
4171 _ACEOF
4172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4173 $EGREP "free" >/dev/null 2>&1; then
4175 else
4176 ac_cv_header_stdc=no
4178 rm -f conftest*
4182 if test $ac_cv_header_stdc = yes; then
4183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4184 if test "$cross_compiling" = yes; then
4186 else
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 #include <ctype.h>
4194 #include <stdlib.h>
4195 #if ((' ' & 0x0FF) == 0x020)
4196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4198 #else
4199 # define ISLOWER(c) \
4200 (('a' <= (c) && (c) <= 'i') \
4201 || ('j' <= (c) && (c) <= 'r') \
4202 || ('s' <= (c) && (c) <= 'z'))
4203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4204 #endif
4206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4208 main ()
4210 int i;
4211 for (i = 0; i < 256; i++)
4212 if (XOR (islower (i), ISLOWER (i))
4213 || toupper (i) != TOUPPER (i))
4214 return 2;
4215 return 0;
4217 _ACEOF
4218 rm -f conftest$ac_exeext
4219 if { (ac_try="$ac_link"
4220 case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223 esac
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_link") 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232 esac
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4239 else
4240 echo "$as_me: program exited with status $ac_status" >&5
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 ( exit $ac_status )
4245 ac_cv_header_stdc=no
4247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4253 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4254 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4255 if test $ac_cv_header_stdc = yes; then
4257 cat >>confdefs.h <<\_ACEOF
4258 #define STDC_HEADERS 1
4259 _ACEOF
4263 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4273 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4274 inttypes.h stdint.h unistd.h
4276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282 cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h. */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 $ac_includes_default
4290 #include <$ac_header>
4291 _ACEOF
4292 rm -f conftest.$ac_objext
4293 if { (ac_try="$ac_compile"
4294 case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_compile") 2>conftest.er1
4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4307 { (case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310 esac
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_try") 2>&5
4313 ac_status=$?
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; } &&
4316 { ac_try='test -s conftest.$ac_objext'
4317 { (case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320 esac
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_try") 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 eval "$as_ac_Header=yes"
4327 else
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4331 eval "$as_ac_Header=no"
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336 ac_res=`eval echo '${'$as_ac_Header'}'`
4337 { echo "$as_me:$LINENO: result: $ac_res" >&5
4338 echo "${ECHO_T}$ac_res" >&6; }
4339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4340 cat >>confdefs.h <<_ACEOF
4341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4342 _ACEOF
4346 done
4349 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4350 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4351 if test "${ac_cv_c_bigendian+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354 # See if sys/param.h defines the BYTE_ORDER macro.
4355 cat >conftest.$ac_ext <<_ACEOF
4356 /* confdefs.h. */
4357 _ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 #include <sys/types.h>
4362 #include <sys/param.h>
4365 main ()
4367 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4368 bogus endian macros
4369 #endif
4372 return 0;
4374 _ACEOF
4375 rm -f conftest.$ac_objext
4376 if { (ac_try="$ac_compile"
4377 case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380 esac
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_compile") 2>conftest.er1
4383 ac_status=$?
4384 grep -v '^ *+' conftest.er1 >conftest.err
4385 rm -f conftest.er1
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4390 { (case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4393 esac
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_try") 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; } &&
4399 { ac_try='test -s conftest.$ac_objext'
4400 { (case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403 esac
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_try") 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
4409 # It does; now see whether it defined to BIG_ENDIAN or not.
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 #include <sys/types.h>
4417 #include <sys/param.h>
4420 main ()
4422 #if BYTE_ORDER != BIG_ENDIAN
4423 not big endian
4424 #endif
4427 return 0;
4429 _ACEOF
4430 rm -f conftest.$ac_objext
4431 if { (ac_try="$ac_compile"
4432 case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435 esac
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_compile") 2>conftest.er1
4438 ac_status=$?
4439 grep -v '^ *+' conftest.er1 >conftest.err
4440 rm -f conftest.er1
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4445 { (case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448 esac
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_try") 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try='test -s conftest.$ac_objext'
4455 { (case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458 esac
4459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460 (eval "$ac_try") 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 ac_cv_c_bigendian=yes
4465 else
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 ac_cv_c_bigendian=no
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 # It does not; compile a test program.
4478 if test "$cross_compiling" = yes; then
4479 # try to guess the endianness by grepping values into an object file
4480 ac_cv_c_bigendian=unknown
4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h. */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4488 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4489 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4490 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4491 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4492 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4494 main ()
4496 _ascii (); _ebcdic ();
4498 return 0;
4500 _ACEOF
4501 rm -f conftest.$ac_objext
4502 if { (ac_try="$ac_compile"
4503 case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4506 esac
4507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508 (eval "$ac_compile") 2>conftest.er1
4509 ac_status=$?
4510 grep -v '^ *+' conftest.er1 >conftest.err
4511 rm -f conftest.er1
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4516 { (case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519 esac
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_try") 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; } &&
4525 { ac_try='test -s conftest.$ac_objext'
4526 { (case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529 esac
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_try") 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; }; then
4535 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4536 ac_cv_c_bigendian=yes
4538 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4539 if test "$ac_cv_c_bigendian" = unknown; then
4540 ac_cv_c_bigendian=no
4541 else
4542 # finding both strings is unlikely to happen, but who knows?
4543 ac_cv_c_bigendian=unknown
4546 else
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 else
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h. */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 $ac_includes_default
4563 main ()
4566 /* Are we little or big endian? From Harbison&Steele. */
4567 union
4569 long int l;
4570 char c[sizeof (long int)];
4571 } u;
4572 u.l = 1;
4573 return u.c[sizeof (long int) - 1] == 1;
4576 return 0;
4578 _ACEOF
4579 rm -f conftest$ac_exeext
4580 if { (ac_try="$ac_link"
4581 case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584 esac
4585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586 (eval "$ac_link") 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4590 { (case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593 esac
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_try") 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4599 ac_cv_c_bigendian=no
4600 else
4601 echo "$as_me: program exited with status $ac_status" >&5
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 ( exit $ac_status )
4606 ac_cv_c_bigendian=yes
4608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4617 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4618 case $ac_cv_c_bigendian in
4619 yes)
4620 ENDIAN=big
4623 ENDIAN=little
4626 { { echo "$as_me:$LINENO: error: unknown endianness
4627 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4628 echo "$as_me: error: unknown endianness
4629 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4630 { (exit 1); exit 1; }; } ;;
4631 esac
4634 if test "$cross_compiling" = yes; then
4635 LLVM_CROSS_COMPILING=1
4638 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4639 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4640 if test "${ac_cv_build_exeext+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4644 ac_cv_build_exeext=.exe
4645 else
4646 ac_build_prefix=${build_alias}-
4648 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4649 set dummy ${ac_build_prefix}gcc; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655 if test -n "$BUILD_CC"; then
4656 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4669 done
4670 done
4671 IFS=$as_save_IFS
4675 BUILD_CC=$ac_cv_prog_BUILD_CC
4676 if test -n "$BUILD_CC"; then
4677 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4678 echo "${ECHO_T}$BUILD_CC" >&6; }
4679 else
4680 { echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6; }
4685 if test -z "$BUILD_CC"; then
4686 # Extract the first word of "gcc", so it can be a program name with args.
4687 set dummy gcc; ac_word=$2
4688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693 if test -n "$BUILD_CC"; then
4694 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_prog_BUILD_CC="gcc"
4704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4707 done
4708 done
4709 IFS=$as_save_IFS
4713 BUILD_CC=$ac_cv_prog_BUILD_CC
4714 if test -n "$BUILD_CC"; then
4715 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4716 echo "${ECHO_T}$BUILD_CC" >&6; }
4717 else
4718 { echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6; }
4723 if test -z "$BUILD_CC"; then
4724 # Extract the first word of "cc", so it can be a program name with args.
4725 set dummy cc; ac_word=$2
4726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4728 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731 if test -n "$BUILD_CC"; then
4732 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4733 else
4734 ac_prog_rejected=no
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4743 ac_prog_rejected=yes
4744 continue
4746 ac_cv_prog_BUILD_CC="cc"
4747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4750 done
4751 done
4752 IFS=$as_save_IFS
4754 if test $ac_prog_rejected = yes; then
4755 # We found a bogon in the path, so make sure we never use it.
4756 set dummy $ac_cv_prog_BUILD_CC
4757 shift
4758 if test $# != 0; then
4759 # We chose a different compiler from the bogus one.
4760 # However, it has the same basename, so the bogon will be chosen
4761 # first if we set BUILD_CC to just the basename; use the full file name.
4762 shift
4763 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4768 BUILD_CC=$ac_cv_prog_BUILD_CC
4769 if test -n "$BUILD_CC"; then
4770 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4771 echo "${ECHO_T}$BUILD_CC" >&6; }
4772 else
4773 { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4780 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4781 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4782 { (exit 1); exit 1; }; }
4783 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4784 rm -f conftest*
4785 echo 'int main () { return 0; }' > conftest.$ac_ext
4786 ac_cv_build_exeext=
4787 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4788 (eval $ac_build_link) 2>&5
4789 ac_status=$?
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; then
4792 for file in conftest.*; do
4793 case $file in
4794 *.c | *.o | *.obj | *.dSYM) ;;
4795 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4796 esac
4797 done
4798 else
4799 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4800 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4801 { (exit 1); exit 1; }; }
4803 rm -f conftest*
4804 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4808 BUILD_EXEEXT=""
4809 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4810 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4811 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4812 ac_build_exeext=$BUILD_EXEEXT
4814 ac_build_prefix=${build_alias}-
4815 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4816 set dummy ${ac_build_prefix}g++; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822 if test -n "$BUILD_CXX"; then
4823 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4836 done
4837 done
4838 IFS=$as_save_IFS
4842 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4843 if test -n "$BUILD_CXX"; then
4844 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4845 echo "${ECHO_T}$BUILD_CXX" >&6; }
4846 else
4847 { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4852 if test -z "$BUILD_CXX"; then
4853 # Extract the first word of "g++", so it can be a program name with args.
4854 set dummy g++; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860 if test -n "$BUILD_CXX"; then
4861 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_BUILD_CXX="g++"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4874 done
4875 done
4876 IFS=$as_save_IFS
4880 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4881 if test -n "$BUILD_CXX"; then
4882 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4883 echo "${ECHO_T}$BUILD_CXX" >&6; }
4884 else
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4890 if test -z "$BUILD_CXX"; then
4891 # Extract the first word of "c++", so it can be a program name with args.
4892 set dummy c++; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898 if test -n "$BUILD_CXX"; then
4899 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4900 else
4901 ac_prog_rejected=no
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4910 ac_prog_rejected=yes
4911 continue
4913 ac_cv_prog_BUILD_CXX="c++"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4917 done
4918 done
4919 IFS=$as_save_IFS
4921 if test $ac_prog_rejected = yes; then
4922 # We found a bogon in the path, so make sure we never use it.
4923 set dummy $ac_cv_prog_BUILD_CXX
4924 shift
4925 if test $# != 0; then
4926 # We chose a different compiler from the bogus one.
4927 # However, it has the same basename, so the bogon will be chosen
4928 # first if we set BUILD_CXX to just the basename; use the full file name.
4929 shift
4930 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4935 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4936 if test -n "$BUILD_CXX"; then
4937 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4938 echo "${ECHO_T}$BUILD_CXX" >&6; }
4939 else
4940 { echo "$as_me:$LINENO: result: no" >&5
4941 echo "${ECHO_T}no" >&6; }
4947 else
4948 LLVM_CROSS_COMPILING=0
4952 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4953 cvsbuild="yes"
4954 optimize="no"
4955 CVSBUILD=CVSBUILD=1
4957 else
4958 cvsbuild="no"
4959 optimize="yes"
4963 # Check whether --enable-optimized was given.
4964 if test "${enable_optimized+set}" = set; then
4965 enableval=$enable_optimized;
4966 else
4967 enableval=$optimize
4970 if test ${enableval} = "no" ; then
4971 ENABLE_OPTIMIZED=
4973 else
4974 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4978 # Check whether --enable-profiling was given.
4979 if test "${enable_profiling+set}" = set; then
4980 enableval=$enable_profiling;
4981 else
4982 enableval="no"
4985 if test ${enableval} = "no" ; then
4986 ENABLE_PROFILING=
4988 else
4989 ENABLE_PROFILING=ENABLE_PROFILING=1
4993 # Check whether --enable-assertions was given.
4994 if test "${enable_assertions+set}" = set; then
4995 enableval=$enable_assertions;
4996 else
4997 enableval="yes"
5000 if test ${enableval} = "yes" ; then
5001 DISABLE_ASSERTIONS=
5003 else
5004 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5008 # Check whether --enable-expensive-checks was given.
5009 if test "${enable_expensive_checks+set}" = set; then
5010 enableval=$enable_expensive_checks;
5011 else
5012 enableval="no"
5015 if test ${enableval} = "yes" ; then
5016 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5018 EXPENSIVE_CHECKS=yes
5020 else
5021 ENABLE_EXPENSIVE_CHECKS=
5023 EXPENSIVE_CHECKS=no
5027 # Check whether --enable-debug-runtime was given.
5028 if test "${enable_debug_runtime+set}" = set; then
5029 enableval=$enable_debug_runtime;
5030 else
5031 enableval=no
5034 if test ${enableval} = "no" ; then
5035 DEBUG_RUNTIME=
5037 else
5038 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5042 # Check whether --enable-debug-symbols was given.
5043 if test "${enable_debug_symbols+set}" = set; then
5044 enableval=$enable_debug_symbols;
5045 else
5046 enableval=no
5049 if test ${enableval} = "no" ; then
5050 DEBUG_SYMBOLS=
5052 else
5053 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5057 # Check whether --enable-jit was given.
5058 if test "${enable_jit+set}" = set; then
5059 enableval=$enable_jit;
5060 else
5061 enableval=default
5064 if test ${enableval} = "no"
5065 then
5066 JIT=
5068 else
5069 case "$llvm_cv_target_arch" in
5070 x86) TARGET_HAS_JIT=1
5072 Sparc) TARGET_HAS_JIT=0
5074 PowerPC) TARGET_HAS_JIT=1
5076 x86_64) TARGET_HAS_JIT=1
5078 Alpha) TARGET_HAS_JIT=0
5080 ARM) TARGET_HAS_JIT=1
5082 Mips) TARGET_HAS_JIT=1
5084 XCore) TARGET_HAS_JIT=0
5086 MSP430) TARGET_HAS_JIT=0
5088 SystemZ) TARGET_HAS_JIT=0
5090 Blackfin) TARGET_HAS_JIT=0
5092 MBlaze) TARGET_HAS_JIT=0
5094 PTX) TARGET_HAS_JIT=0
5096 *) TARGET_HAS_JIT=0
5098 esac
5101 # Check whether --enable-docs was given.
5102 if test "${enable_docs+set}" = set; then
5103 enableval=$enable_docs;
5104 else
5105 enableval=default
5108 case "$enableval" in
5109 yes) ENABLE_DOCS=1
5111 no) ENABLE_DOCS=0
5113 default) ENABLE_DOCS=1
5115 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5116 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5117 { (exit 1); exit 1; }; } ;;
5118 esac
5120 # Check whether --enable-doxygen was given.
5121 if test "${enable_doxygen+set}" = set; then
5122 enableval=$enable_doxygen;
5123 else
5124 enableval=default
5127 case "$enableval" in
5128 yes) ENABLE_DOXYGEN=1
5130 no) ENABLE_DOXYGEN=0
5132 default) ENABLE_DOXYGEN=0
5134 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5135 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5136 { (exit 1); exit 1; }; } ;;
5137 esac
5139 # Check whether --enable-threads was given.
5140 if test "${enable_threads+set}" = set; then
5141 enableval=$enable_threads;
5142 else
5143 enableval=default
5146 case "$enableval" in
5147 yes) ENABLE_THREADS=1
5149 no) ENABLE_THREADS=0
5151 default) ENABLE_THREADS=1
5153 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5154 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5155 { (exit 1); exit 1; }; } ;;
5156 esac
5158 cat >>confdefs.h <<_ACEOF
5159 #define ENABLE_THREADS $ENABLE_THREADS
5160 _ACEOF
5163 # Check whether --enable-pthreads was given.
5164 if test "${enable_pthreads+set}" = set; then
5165 enableval=$enable_pthreads;
5166 else
5167 enableval=default
5170 case "$enableval" in
5171 yes) ENABLE_PTHREADS=1
5173 no) ENABLE_PTHREADS=0
5175 default) ENABLE_PTHREADS=1
5177 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5178 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5179 { (exit 1); exit 1; }; } ;;
5180 esac
5182 # Check whether --enable-pic was given.
5183 if test "${enable_pic+set}" = set; then
5184 enableval=$enable_pic;
5185 else
5186 enableval=default
5189 case "$enableval" in
5190 yes) ENABLE_PIC=1
5192 no) ENABLE_PIC=0
5194 default) ENABLE_PIC=1
5196 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5197 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5198 { (exit 1); exit 1; }; } ;;
5199 esac
5201 cat >>confdefs.h <<_ACEOF
5202 #define ENABLE_PIC $ENABLE_PIC
5203 _ACEOF
5206 # Check whether --enable-shared was given.
5207 if test "${enable_shared+set}" = set; then
5208 enableval=$enable_shared;
5209 else
5210 enableval=default
5213 case "$enableval" in
5214 yes) ENABLE_SHARED=1
5216 no) ENABLE_SHARED=0
5218 default) ENABLE_SHARED=0
5220 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5221 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5222 { (exit 1); exit 1; }; } ;;
5223 esac
5225 # Check whether --enable-embed-stdcxx was given.
5226 if test "${enable_embed_stdcxx+set}" = set; then
5227 enableval=$enable_embed_stdcxx;
5228 else
5229 enableval=default
5232 case "$enableval" in
5233 yes) ENABLE_EMBED_STDCXX=1
5235 no) ENABLE_EMBED_STDCXX=0
5237 default) ENABLE_EMBED_STDCXX=0
5239 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5240 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5241 { (exit 1); exit 1; }; } ;;
5242 esac
5244 # Check whether --enable-timestamps was given.
5245 if test "${enable_timestamps+set}" = set; then
5246 enableval=$enable_timestamps;
5247 else
5248 enableval=default
5251 case "$enableval" in
5252 yes) ENABLE_TIMESTAMPS=1
5254 no) ENABLE_TIMESTAMPS=0
5256 default) ENABLE_TIMESTAMPS=1
5258 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5259 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5260 { (exit 1); exit 1; }; } ;;
5261 esac
5263 cat >>confdefs.h <<_ACEOF
5264 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5265 _ACEOF
5268 TARGETS_TO_BUILD=""
5269 # Check whether --enable-targets was given.
5270 if test "${enable_targets+set}" = set; then
5271 enableval=$enable_targets;
5272 else
5273 enableval=all
5276 if test "$enableval" = host-only ; then
5277 enableval=host
5279 case "$enableval" in
5280 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5281 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5282 case "$a_target" in
5283 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5284 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5285 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5286 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5287 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5288 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5289 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5290 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5291 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5292 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5293 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5294 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5295 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5296 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5297 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5298 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5299 host) case "$llvm_cv_target_arch" in
5300 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5301 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5302 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5303 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5304 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5305 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5306 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5307 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5308 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5309 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5310 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5311 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5312 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5313 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5314 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5315 echo "$as_me: error: Can not set target to build" >&2;}
5316 { (exit 1); exit 1; }; } ;;
5317 esac ;;
5318 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5319 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5320 { (exit 1); exit 1; }; } ;;
5321 esac
5322 done
5324 esac
5325 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5328 # Determine whether we are building LLVM support for the native architecture.
5329 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5330 for a_target in $TARGETS_TO_BUILD; do
5331 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5333 cat >>confdefs.h <<_ACEOF
5334 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5335 _ACEOF
5337 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5338 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5339 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5340 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5341 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5342 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5345 cat >>confdefs.h <<_ACEOF
5346 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5347 _ACEOF
5350 cat >>confdefs.h <<_ACEOF
5351 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5352 _ACEOF
5355 cat >>confdefs.h <<_ACEOF
5356 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5357 _ACEOF
5360 cat >>confdefs.h <<_ACEOF
5361 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5362 _ACEOF
5364 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5366 cat >>confdefs.h <<_ACEOF
5367 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5368 _ACEOF
5372 done
5374 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5375 # target feature def files.
5376 LLVM_ENUM_TARGETS=""
5377 LLVM_ENUM_ASM_PRINTERS=""
5378 LLVM_ENUM_ASM_PARSERS=""
5379 LLVM_ENUM_DISASSEMBLERS=""
5380 for target_to_build in $TARGETS_TO_BUILD; do
5381 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5382 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5383 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5385 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5386 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5388 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5389 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5391 done
5397 # Check whether --enable-cbe-printf-a was given.
5398 if test "${enable_cbe_printf_a+set}" = set; then
5399 enableval=$enable_cbe_printf_a;
5400 else
5401 enableval=default
5404 case "$enableval" in
5405 yes) ENABLE_CBE_PRINTF_A=1
5407 no) ENABLE_CBE_PRINTF_A=0
5409 default) ENABLE_CBE_PRINTF_A=1
5411 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5412 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5413 { (exit 1); exit 1; }; } ;;
5414 esac
5416 cat >>confdefs.h <<_ACEOF
5417 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5418 _ACEOF
5422 # Check whether --with-optimize-option was given.
5423 if test "${with_optimize_option+set}" = set; then
5424 withval=$with_optimize_option;
5425 else
5426 withval=default
5429 { echo "$as_me:$LINENO: checking optimization flags" >&5
5430 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5431 case "$withval" in
5432 default)
5433 case "$llvm_cv_os_type" in
5434 FreeBSD) optimize_option=-O2 ;;
5435 MingW) optimize_option=-O2 ;;
5436 *) optimize_option=-O3 ;;
5437 esac ;;
5438 *) optimize_option="$withval" ;;
5439 esac
5440 OPTIMIZE_OPTION=$optimize_option
5442 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5443 echo "${ECHO_T}$optimize_option" >&6; }
5446 # Check whether --with-extra-options was given.
5447 if test "${with_extra_options+set}" = set; then
5448 withval=$with_extra_options;
5449 else
5450 withval=default
5453 case "$withval" in
5454 default) EXTRA_OPTIONS= ;;
5455 *) EXTRA_OPTIONS=$withval ;;
5456 esac
5457 EXTRA_OPTIONS=$EXTRA_OPTIONS
5461 # Check whether --with-extra-ld-options was given.
5462 if test "${with_extra_ld_options+set}" = set; then
5463 withval=$with_extra_ld_options;
5464 else
5465 withval=default
5468 case "$withval" in
5469 default) EXTRA_LD_OPTIONS= ;;
5470 *) EXTRA_LD_OPTIONS=$withval ;;
5471 esac
5472 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5475 # Check whether --enable-bindings was given.
5476 if test "${enable_bindings+set}" = set; then
5477 enableval=$enable_bindings;
5478 else
5479 enableval=default
5482 BINDINGS_TO_BUILD=""
5483 case "$enableval" in
5484 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5485 all ) BINDINGS_TO_BUILD="ocaml" ;;
5486 none | no) BINDINGS_TO_BUILD="" ;;
5487 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5488 case "$a_binding" in
5489 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5490 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5491 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5492 { (exit 1); exit 1; }; } ;;
5493 esac
5494 done
5496 esac
5499 # Check whether --with-ocaml-libdir was given.
5500 if test "${with_ocaml_libdir+set}" = set; then
5501 withval=$with_ocaml_libdir;
5502 else
5503 withval=auto
5506 case "$withval" in
5507 auto) with_ocaml_libdir="$withval" ;;
5508 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5509 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5510 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5511 { (exit 1); exit 1; }; } ;;
5512 esac
5515 # Check whether --with-clang-srcdir was given.
5516 if test "${with_clang_srcdir+set}" = set; then
5517 withval=$with_clang_srcdir;
5518 else
5519 withval="-"
5522 case "$withval" in
5523 -) clang_src_root="" ;;
5524 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5525 *) clang_src_root="$ac_pwd/$withval" ;;
5526 esac
5527 CLANG_SRC_ROOT=$clang_src_root
5531 # Check whether --with-clang-resource-dir was given.
5532 if test "${with_clang_resource_dir+set}" = set; then
5533 withval=$with_clang_resource_dir;
5534 else
5535 withval=""
5539 cat >>confdefs.h <<_ACEOF
5540 #define CLANG_RESOURCE_DIR "$withval"
5541 _ACEOF
5545 # Check whether --with-c-include-dirs was given.
5546 if test "${with_c_include_dirs+set}" = set; then
5547 withval=$with_c_include_dirs;
5548 else
5549 withval=""
5553 cat >>confdefs.h <<_ACEOF
5554 #define C_INCLUDE_DIRS "$withval"
5555 _ACEOF
5559 # Check whether --with-cxx-include-root was given.
5560 if test "${with_cxx_include_root+set}" = set; then
5561 withval=$with_cxx_include_root;
5562 else
5563 withval=""
5567 cat >>confdefs.h <<_ACEOF
5568 #define CXX_INCLUDE_ROOT "$withval"
5569 _ACEOF
5573 # Check whether --with-cxx-include-arch was given.
5574 if test "${with_cxx_include_arch+set}" = set; then
5575 withval=$with_cxx_include_arch;
5576 else
5577 withval=""
5581 cat >>confdefs.h <<_ACEOF
5582 #define CXX_INCLUDE_ARCH "$withval"
5583 _ACEOF
5587 # Check whether --with-cxx-include-32bit-dir was given.
5588 if test "${with_cxx_include_32bit_dir+set}" = set; then
5589 withval=$with_cxx_include_32bit_dir;
5590 else
5591 withval=""
5595 cat >>confdefs.h <<_ACEOF
5596 #define CXX_INCLUDE_32BIT_DIR "$withval"
5597 _ACEOF
5601 # Check whether --with-cxx-include-64bit-dir was given.
5602 if test "${with_cxx_include_64bit_dir+set}" = set; then
5603 withval=$with_cxx_include_64bit_dir;
5604 else
5605 withval=""
5609 cat >>confdefs.h <<_ACEOF
5610 #define CXX_INCLUDE_64BIT_DIR "$withval"
5611 _ACEOF
5615 # Check whether --with-binutils-include was given.
5616 if test "${with_binutils_include+set}" = set; then
5617 withval=$with_binutils_include;
5618 else
5619 withval=default
5622 case "$withval" in
5623 default) WITH_BINUTILS_INCDIR=default ;;
5624 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5625 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5626 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5627 { (exit 1); exit 1; }; } ;;
5628 esac
5629 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5630 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5632 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5633 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5634 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5635 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5636 { (exit 1); exit 1; }; };
5641 # Check whether --with-bug-report-url was given.
5642 if test "${with_bug_report_url+set}" = set; then
5643 withval=$with_bug_report_url;
5644 else
5645 withval="http://llvm.org/bugs/"
5649 cat >>confdefs.h <<_ACEOF
5650 #define BUG_REPORT_URL "$withval"
5651 _ACEOF
5654 # Check whether --enable-libffi was given.
5655 if test "${enable_libffi+set}" = set; then
5656 enableval=$enable_libffi; case "$enableval" in
5657 yes) llvm_cv_enable_libffi="yes" ;;
5658 no) llvm_cv_enable_libffi="no" ;;
5659 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5660 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5661 { (exit 1); exit 1; }; } ;;
5662 esac
5663 else
5664 llvm_cv_enable_libffi=no
5669 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5670 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5671 if test "${lt_cv_path_NM+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674 if test -n "$NM"; then
5675 # Let the user override the test.
5676 lt_cv_path_NM="$NM"
5677 else
5678 lt_nm_to_check="${ac_tool_prefix}nm"
5679 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5680 lt_nm_to_check="$lt_nm_to_check nm"
5682 for lt_tmp_nm in $lt_nm_to_check; do
5683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5684 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5685 IFS="$lt_save_ifs"
5686 test -z "$ac_dir" && ac_dir=.
5687 tmp_nm="$ac_dir/$lt_tmp_nm"
5688 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5689 # Check to see if the nm accepts a BSD-compat flag.
5690 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5691 # nm: unknown option "B" ignored
5692 # Tru64's nm complains that /dev/null is an invalid object file
5693 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5694 */dev/null* | *'Invalid file or object type'*)
5695 lt_cv_path_NM="$tmp_nm -B"
5696 break
5699 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5700 */dev/null*)
5701 lt_cv_path_NM="$tmp_nm -p"
5702 break
5705 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5706 continue # so that we can try to find one that supports BSD flags
5708 esac
5710 esac
5712 done
5713 IFS="$lt_save_ifs"
5714 done
5715 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5718 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5719 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5720 NM="$lt_cv_path_NM"
5724 { echo "$as_me:$LINENO: checking for GNU make" >&5
5725 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5726 if test "${llvm_cv_gnu_make_command+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729 llvm_cv_gnu_make_command=''
5730 for a in "$MAKE" make gmake gnumake ; do
5731 if test -z "$a" ; then continue ; fi ;
5732 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5733 then
5734 llvm_cv_gnu_make_command=$a ;
5735 break;
5737 done
5739 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5740 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5741 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5742 ifGNUmake='' ;
5743 else
5744 ifGNUmake='#' ;
5745 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5746 echo "${ECHO_T}\"Not found\"" >&6; };
5750 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5751 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5752 LN_S=$as_ln_s
5753 if test "$LN_S" = "ln -s"; then
5754 { echo "$as_me:$LINENO: result: yes" >&5
5755 echo "${ECHO_T}yes" >&6; }
5756 else
5757 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5758 echo "${ECHO_T}no, using $LN_S" >&6; }
5761 # Extract the first word of "cmp", so it can be a program name with args.
5762 set dummy cmp; ac_word=$2
5763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5765 if test "${ac_cv_path_CMP+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768 case $CMP in
5769 [\\/]* | ?:[\\/]*)
5770 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5780 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 break 2
5784 done
5785 done
5786 IFS=$as_save_IFS
5788 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5790 esac
5792 CMP=$ac_cv_path_CMP
5793 if test -n "$CMP"; then
5794 { echo "$as_me:$LINENO: result: $CMP" >&5
5795 echo "${ECHO_T}$CMP" >&6; }
5796 else
5797 { echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6; }
5802 # Extract the first word of "cp", so it can be a program name with args.
5803 set dummy cp; ac_word=$2
5804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5806 if test "${ac_cv_path_CP+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 case $CP in
5810 [\\/]* | ?:[\\/]*)
5811 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5825 done
5826 done
5827 IFS=$as_save_IFS
5829 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5831 esac
5833 CP=$ac_cv_path_CP
5834 if test -n "$CP"; then
5835 { echo "$as_me:$LINENO: result: $CP" >&5
5836 echo "${ECHO_T}$CP" >&6; }
5837 else
5838 { echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6; }
5843 # Extract the first word of "date", so it can be a program name with args.
5844 set dummy date; ac_word=$2
5845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5847 if test "${ac_cv_path_DATE+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850 case $DATE in
5851 [\\/]* | ?:[\\/]*)
5852 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5862 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5866 done
5867 done
5868 IFS=$as_save_IFS
5870 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5872 esac
5874 DATE=$ac_cv_path_DATE
5875 if test -n "$DATE"; then
5876 { echo "$as_me:$LINENO: result: $DATE" >&5
5877 echo "${ECHO_T}$DATE" >&6; }
5878 else
5879 { echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6; }
5884 # Extract the first word of "find", so it can be a program name with args.
5885 set dummy find; ac_word=$2
5886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5888 if test "${ac_cv_path_FIND+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891 case $FIND in
5892 [\\/]* | ?:[\\/]*)
5893 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5907 done
5908 done
5909 IFS=$as_save_IFS
5911 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5913 esac
5915 FIND=$ac_cv_path_FIND
5916 if test -n "$FIND"; then
5917 { echo "$as_me:$LINENO: result: $FIND" >&5
5918 echo "${ECHO_T}$FIND" >&6; }
5919 else
5920 { echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6; }
5925 # Extract the first word of "grep", so it can be a program name with args.
5926 set dummy grep; ac_word=$2
5927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929 if test "${ac_cv_path_GREP+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932 case $GREP in
5933 [\\/]* | ?:[\\/]*)
5934 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5948 done
5949 done
5950 IFS=$as_save_IFS
5952 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5954 esac
5956 GREP=$ac_cv_path_GREP
5957 if test -n "$GREP"; then
5958 { echo "$as_me:$LINENO: result: $GREP" >&5
5959 echo "${ECHO_T}$GREP" >&6; }
5960 else
5961 { echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6; }
5966 # Extract the first word of "mkdir", so it can be a program name with args.
5967 set dummy mkdir; ac_word=$2
5968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970 if test "${ac_cv_path_MKDIR+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973 case $MKDIR in
5974 [\\/]* | ?:[\\/]*)
5975 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5989 done
5990 done
5991 IFS=$as_save_IFS
5993 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5995 esac
5997 MKDIR=$ac_cv_path_MKDIR
5998 if test -n "$MKDIR"; then
5999 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6000 echo "${ECHO_T}$MKDIR" >&6; }
6001 else
6002 { echo "$as_me:$LINENO: result: no" >&5
6003 echo "${ECHO_T}no" >&6; }
6007 # Extract the first word of "mv", so it can be a program name with args.
6008 set dummy mv; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_path_MV+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 case $MV in
6015 [\\/]* | ?:[\\/]*)
6016 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6026 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 break 2
6030 done
6031 done
6032 IFS=$as_save_IFS
6034 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6036 esac
6038 MV=$ac_cv_path_MV
6039 if test -n "$MV"; then
6040 { echo "$as_me:$LINENO: result: $MV" >&5
6041 echo "${ECHO_T}$MV" >&6; }
6042 else
6043 { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6048 if test -n "$ac_tool_prefix"; then
6049 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6050 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053 if test "${ac_cv_prog_RANLIB+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 if test -n "$RANLIB"; then
6057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6070 done
6071 done
6072 IFS=$as_save_IFS
6076 RANLIB=$ac_cv_prog_RANLIB
6077 if test -n "$RANLIB"; then
6078 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6079 echo "${ECHO_T}$RANLIB" >&6; }
6080 else
6081 { echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6; }
6087 if test -z "$ac_cv_prog_RANLIB"; then
6088 ac_ct_RANLIB=$RANLIB
6089 # Extract the first word of "ranlib", so it can be a program name with args.
6090 set dummy ranlib; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096 if test -n "$ac_ct_RANLIB"; then
6097 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_ac_ct_RANLIB="ranlib"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 break 2
6110 done
6111 done
6112 IFS=$as_save_IFS
6116 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6117 if test -n "$ac_ct_RANLIB"; then
6118 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6119 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6120 else
6121 { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6125 if test "x$ac_ct_RANLIB" = x; then
6126 RANLIB=":"
6127 else
6128 case $cross_compiling:$ac_tool_warned in
6129 yes:)
6130 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6131 whose name does not start with the host triplet. If you think this
6132 configuration is useful to you, please write to autoconf@gnu.org." >&5
6133 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6134 whose name does not start with the host triplet. If you think this
6135 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6136 ac_tool_warned=yes ;;
6137 esac
6138 RANLIB=$ac_ct_RANLIB
6140 else
6141 RANLIB="$ac_cv_prog_RANLIB"
6144 if test -n "$ac_tool_prefix"; then
6145 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6146 set dummy ${ac_tool_prefix}ar; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_prog_AR+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152 if test -n "$AR"; then
6153 ac_cv_prog_AR="$AR" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_AR="${ac_tool_prefix}ar"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6166 done
6167 done
6168 IFS=$as_save_IFS
6172 AR=$ac_cv_prog_AR
6173 if test -n "$AR"; then
6174 { echo "$as_me:$LINENO: result: $AR" >&5
6175 echo "${ECHO_T}$AR" >&6; }
6176 else
6177 { echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6; }
6183 if test -z "$ac_cv_prog_AR"; then
6184 ac_ct_AR=$AR
6185 # Extract the first word of "ar", so it can be a program name with args.
6186 set dummy ar; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192 if test -n "$ac_ct_AR"; then
6193 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6198 IFS=$as_save_IFS
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6202 ac_cv_prog_ac_ct_AR="ar"
6203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 break 2
6206 done
6207 done
6208 IFS=$as_save_IFS
6212 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6213 if test -n "$ac_ct_AR"; then
6214 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6215 echo "${ECHO_T}$ac_ct_AR" >&6; }
6216 else
6217 { echo "$as_me:$LINENO: result: no" >&5
6218 echo "${ECHO_T}no" >&6; }
6221 if test "x$ac_ct_AR" = x; then
6222 AR="false"
6223 else
6224 case $cross_compiling:$ac_tool_warned in
6225 yes:)
6226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6227 whose name does not start with the host triplet. If you think this
6228 configuration is useful to you, please write to autoconf@gnu.org." >&5
6229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6230 whose name does not start with the host triplet. If you think this
6231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6232 ac_tool_warned=yes ;;
6233 esac
6234 AR=$ac_ct_AR
6236 else
6237 AR="$ac_cv_prog_AR"
6240 # Extract the first word of "rm", so it can be a program name with args.
6241 set dummy rm; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_path_RM+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247 case $RM in
6248 [\\/]* | ?:[\\/]*)
6249 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6259 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6263 done
6264 done
6265 IFS=$as_save_IFS
6267 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6269 esac
6271 RM=$ac_cv_path_RM
6272 if test -n "$RM"; then
6273 { echo "$as_me:$LINENO: result: $RM" >&5
6274 echo "${ECHO_T}$RM" >&6; }
6275 else
6276 { echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6; }
6281 # Extract the first word of "sed", so it can be a program name with args.
6282 set dummy sed; ac_word=$2
6283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6285 if test "${ac_cv_path_SED+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288 case $SED in
6289 [\\/]* | ?:[\\/]*)
6290 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6304 done
6305 done
6306 IFS=$as_save_IFS
6308 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6310 esac
6312 SED=$ac_cv_path_SED
6313 if test -n "$SED"; then
6314 { echo "$as_me:$LINENO: result: $SED" >&5
6315 echo "${ECHO_T}$SED" >&6; }
6316 else
6317 { echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6; }
6322 # Extract the first word of "tar", so it can be a program name with args.
6323 set dummy tar; ac_word=$2
6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326 if test "${ac_cv_path_TAR+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329 case $TAR in
6330 [\\/]* | ?:[\\/]*)
6331 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6345 done
6346 done
6347 IFS=$as_save_IFS
6349 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6351 esac
6353 TAR=$ac_cv_path_TAR
6354 if test -n "$TAR"; then
6355 { echo "$as_me:$LINENO: result: $TAR" >&5
6356 echo "${ECHO_T}$TAR" >&6; }
6357 else
6358 { echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6; }
6363 # Extract the first word of "pwd", so it can be a program name with args.
6364 set dummy pwd; ac_word=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_BINPWD+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 case $BINPWD in
6371 [\\/]* | ?:[\\/]*)
6372 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
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_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
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
6390 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6392 esac
6394 BINPWD=$ac_cv_path_BINPWD
6395 if test -n "$BINPWD"; then
6396 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6397 echo "${ECHO_T}$BINPWD" >&6; }
6398 else
6399 { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6405 # Extract the first word of "Graphviz", so it can be a program name with args.
6406 set dummy Graphviz; ac_word=$2
6407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412 case $GRAPHVIZ in
6413 [\\/]* | ?:[\\/]*)
6414 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6428 done
6429 done
6430 IFS=$as_save_IFS
6432 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6434 esac
6436 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6437 if test -n "$GRAPHVIZ"; then
6438 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6439 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6440 else
6441 { echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6; }
6446 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6448 cat >>confdefs.h <<\_ACEOF
6449 #define HAVE_GRAPHVIZ 1
6450 _ACEOF
6452 if test "$llvm_cv_os_type" = "MingW" ; then
6453 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6456 cat >>confdefs.h <<_ACEOF
6457 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6458 _ACEOF
6461 # Extract the first word of "dot", so it can be a program name with args.
6462 set dummy dot; ac_word=$2
6463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465 if test "${ac_cv_path_DOT+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468 case $DOT in
6469 [\\/]* | ?:[\\/]*)
6470 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6484 done
6485 done
6486 IFS=$as_save_IFS
6488 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6490 esac
6492 DOT=$ac_cv_path_DOT
6493 if test -n "$DOT"; then
6494 { echo "$as_me:$LINENO: result: $DOT" >&5
6495 echo "${ECHO_T}$DOT" >&6; }
6496 else
6497 { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6502 if test "$DOT" != "echo dot" ; then
6504 cat >>confdefs.h <<\_ACEOF
6505 #define HAVE_DOT 1
6506 _ACEOF
6508 if test "$llvm_cv_os_type" = "MingW" ; then
6509 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6512 cat >>confdefs.h <<_ACEOF
6513 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6514 _ACEOF
6517 # Extract the first word of "fdp", so it can be a program name with args.
6518 set dummy fdp; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_path_FDP+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524 case $FDP in
6525 [\\/]* | ?:[\\/]*)
6526 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6540 done
6541 done
6542 IFS=$as_save_IFS
6544 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6546 esac
6548 FDP=$ac_cv_path_FDP
6549 if test -n "$FDP"; then
6550 { echo "$as_me:$LINENO: result: $FDP" >&5
6551 echo "${ECHO_T}$FDP" >&6; }
6552 else
6553 { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6558 if test "$FDP" != "echo fdp" ; then
6560 cat >>confdefs.h <<\_ACEOF
6561 #define HAVE_FDP 1
6562 _ACEOF
6564 if test "$llvm_cv_os_type" = "MingW" ; then
6565 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6568 cat >>confdefs.h <<_ACEOF
6569 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6570 _ACEOF
6573 # Extract the first word of "neato", so it can be a program name with args.
6574 set dummy neato; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_path_NEATO+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580 case $NEATO in
6581 [\\/]* | ?:[\\/]*)
6582 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6596 done
6597 done
6598 IFS=$as_save_IFS
6600 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6602 esac
6604 NEATO=$ac_cv_path_NEATO
6605 if test -n "$NEATO"; then
6606 { echo "$as_me:$LINENO: result: $NEATO" >&5
6607 echo "${ECHO_T}$NEATO" >&6; }
6608 else
6609 { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6614 if test "$NEATO" != "echo neato" ; then
6616 cat >>confdefs.h <<\_ACEOF
6617 #define HAVE_NEATO 1
6618 _ACEOF
6620 if test "$llvm_cv_os_type" = "MingW" ; then
6621 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6624 cat >>confdefs.h <<_ACEOF
6625 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6626 _ACEOF
6629 # Extract the first word of "twopi", so it can be a program name with args.
6630 set dummy twopi; ac_word=$2
6631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633 if test "${ac_cv_path_TWOPI+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636 case $TWOPI in
6637 [\\/]* | ?:[\\/]*)
6638 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6652 done
6653 done
6654 IFS=$as_save_IFS
6656 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6658 esac
6660 TWOPI=$ac_cv_path_TWOPI
6661 if test -n "$TWOPI"; then
6662 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6663 echo "${ECHO_T}$TWOPI" >&6; }
6664 else
6665 { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6670 if test "$TWOPI" != "echo twopi" ; then
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_TWOPI 1
6674 _ACEOF
6676 if test "$llvm_cv_os_type" = "MingW" ; then
6677 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6680 cat >>confdefs.h <<_ACEOF
6681 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6682 _ACEOF
6685 # Extract the first word of "circo", so it can be a program name with args.
6686 set dummy circo; ac_word=$2
6687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689 if test "${ac_cv_path_CIRCO+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692 case $CIRCO in
6693 [\\/]* | ?:[\\/]*)
6694 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6708 done
6709 done
6710 IFS=$as_save_IFS
6712 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6714 esac
6716 CIRCO=$ac_cv_path_CIRCO
6717 if test -n "$CIRCO"; then
6718 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6719 echo "${ECHO_T}$CIRCO" >&6; }
6720 else
6721 { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6726 if test "$CIRCO" != "echo circo" ; then
6728 cat >>confdefs.h <<\_ACEOF
6729 #define HAVE_CIRCO 1
6730 _ACEOF
6732 if test "$llvm_cv_os_type" = "MingW" ; then
6733 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6736 cat >>confdefs.h <<_ACEOF
6737 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6738 _ACEOF
6741 for ac_prog in gv gsview32
6743 # Extract the first word of "$ac_prog", so it can be a program name with args.
6744 set dummy $ac_prog; ac_word=$2
6745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747 if test "${ac_cv_path_GV+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750 case $GV in
6751 [\\/]* | ?:[\\/]*)
6752 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 break 2
6766 done
6767 done
6768 IFS=$as_save_IFS
6771 esac
6773 GV=$ac_cv_path_GV
6774 if test -n "$GV"; then
6775 { echo "$as_me:$LINENO: result: $GV" >&5
6776 echo "${ECHO_T}$GV" >&6; }
6777 else
6778 { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6783 test -n "$GV" && break
6784 done
6785 test -n "$GV" || GV="echo gv"
6787 if test "$GV" != "echo gv" ; then
6789 cat >>confdefs.h <<\_ACEOF
6790 #define HAVE_GV 1
6791 _ACEOF
6793 if test "$llvm_cv_os_type" = "MingW" ; then
6794 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6797 cat >>confdefs.h <<_ACEOF
6798 #define LLVM_PATH_GV "$GV${EXEEXT}"
6799 _ACEOF
6802 # Extract the first word of "dotty", so it can be a program name with args.
6803 set dummy dotty; ac_word=$2
6804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806 if test "${ac_cv_path_DOTTY+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809 case $DOTTY in
6810 [\\/]* | ?:[\\/]*)
6811 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6825 done
6826 done
6827 IFS=$as_save_IFS
6829 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6831 esac
6833 DOTTY=$ac_cv_path_DOTTY
6834 if test -n "$DOTTY"; then
6835 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6836 echo "${ECHO_T}$DOTTY" >&6; }
6837 else
6838 { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6843 if test "$DOTTY" != "echo dotty" ; then
6845 cat >>confdefs.h <<\_ACEOF
6846 #define HAVE_DOTTY 1
6847 _ACEOF
6849 if test "$llvm_cv_os_type" = "MingW" ; then
6850 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6853 cat >>confdefs.h <<_ACEOF
6854 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6855 _ACEOF
6858 # Extract the first word of "xdot.py", so it can be a program name with args.
6859 set dummy xdot.py; ac_word=$2
6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865 case $XDOT_PY in
6866 [\\/]* | ?:[\\/]*)
6867 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6881 done
6882 done
6883 IFS=$as_save_IFS
6885 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6887 esac
6889 XDOT_PY=$ac_cv_path_XDOT_PY
6890 if test -n "$XDOT_PY"; then
6891 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6892 echo "${ECHO_T}$XDOT_PY" >&6; }
6893 else
6894 { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6899 if test "$XDOT_PY" != "echo xdot.py" ; then
6901 cat >>confdefs.h <<\_ACEOF
6902 #define HAVE_XDOT_PY 1
6903 _ACEOF
6905 if test "$llvm_cv_os_type" = "MingW" ; then
6906 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6909 cat >>confdefs.h <<_ACEOF
6910 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6911 _ACEOF
6916 # Extract the first word of "perl", so it can be a program name with args.
6917 set dummy perl; ac_word=$2
6918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6920 if test "${ac_cv_path_PERL+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923 case $PERL in
6924 [\\/]* | ?:[\\/]*)
6925 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6931 IFS=$as_save_IFS
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6935 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 break 2
6939 done
6940 done
6941 IFS=$as_save_IFS
6943 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6945 esac
6947 PERL=$ac_cv_path_PERL
6948 if test -n "$PERL"; then
6949 { echo "$as_me:$LINENO: result: $PERL" >&5
6950 echo "${ECHO_T}$PERL" >&6; }
6951 else
6952 { echo "$as_me:$LINENO: result: no" >&5
6953 echo "${ECHO_T}no" >&6; }
6957 if test "$PERL" != "none"; then
6958 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6959 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6960 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6961 { echo "$as_me:$LINENO: result: yes" >&5
6962 echo "${ECHO_T}yes" >&6; }
6963 else
6964 PERL=none
6965 { echo "$as_me:$LINENO: result: not found" >&5
6966 echo "${ECHO_T}not found" >&6; }
6971 if test x"$PERL" = xnone; then
6972 HAVE_PERL=0
6974 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6975 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6976 { (exit 1); exit 1; }; }
6977 else
6978 HAVE_PERL=1
6982 # Find a good install program. We prefer a C program (faster),
6983 # so one script is as good as another. But avoid the broken or
6984 # incompatible versions:
6985 # SysV /etc/install, /usr/sbin/install
6986 # SunOS /usr/etc/install
6987 # IRIX /sbin/install
6988 # AIX /bin/install
6989 # AmigaOS /C/install, which installs bootblocks on floppy discs
6990 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6991 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6992 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6993 # OS/2's system install, which has a completely different semantic
6994 # ./install, which can be erroneously created by make from ./install.sh.
6995 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6996 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6997 if test -z "$INSTALL"; then
6998 if test "${ac_cv_path_install+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 # Account for people who put trailing slashes in PATH elements.
7007 case $as_dir/ in
7008 ./ | .// | /cC/* | \
7009 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7010 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7011 /usr/ucb/* ) ;;
7013 # OSF1 and SCO ODT 3.0 have their own names for install.
7014 # Don't use installbsd from OSF since it installs stuff as root
7015 # by default.
7016 for ac_prog in ginstall scoinst install; do
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7019 if test $ac_prog = install &&
7020 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7021 # AIX install. It has an incompatible calling convention.
7023 elif test $ac_prog = install &&
7024 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7025 # program-specific install script used by HP pwplus--don't use.
7027 else
7028 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7029 break 3
7032 done
7033 done
7035 esac
7036 done
7037 IFS=$as_save_IFS
7041 if test "${ac_cv_path_install+set}" = set; then
7042 INSTALL=$ac_cv_path_install
7043 else
7044 # As a last resort, use the slow shell script. Don't cache a
7045 # value for INSTALL within a source directory, because that will
7046 # break other packages using the cache if that directory is
7047 # removed, or if the value is a relative name.
7048 INSTALL=$ac_install_sh
7051 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7052 echo "${ECHO_T}$INSTALL" >&6; }
7054 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7055 # It thinks the first close brace ends the variable substitution.
7056 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7058 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7060 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7062 case "$INSTALL" in
7063 [\\/$]* | ?:[\\/]* ) ;;
7064 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7065 esac
7067 # Extract the first word of "bzip2", so it can be a program name with args.
7068 set dummy bzip2; ac_word=$2
7069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7071 if test "${ac_cv_path_BZIP2+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074 case $BZIP2 in
7075 [\\/]* | ?:[\\/]*)
7076 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7086 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7090 done
7091 done
7092 IFS=$as_save_IFS
7095 esac
7097 BZIP2=$ac_cv_path_BZIP2
7098 if test -n "$BZIP2"; then
7099 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7100 echo "${ECHO_T}$BZIP2" >&6; }
7101 else
7102 { echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6; }
7107 # Extract the first word of "cat", so it can be a program name with args.
7108 set dummy cat; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_path_CAT+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114 case $CAT in
7115 [\\/]* | ?:[\\/]*)
7116 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7130 done
7131 done
7132 IFS=$as_save_IFS
7135 esac
7137 CAT=$ac_cv_path_CAT
7138 if test -n "$CAT"; then
7139 { echo "$as_me:$LINENO: result: $CAT" >&5
7140 echo "${ECHO_T}$CAT" >&6; }
7141 else
7142 { echo "$as_me:$LINENO: result: no" >&5
7143 echo "${ECHO_T}no" >&6; }
7147 # Extract the first word of "doxygen", so it can be a program name with args.
7148 set dummy doxygen; ac_word=$2
7149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7151 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154 case $DOXYGEN in
7155 [\\/]* | ?:[\\/]*)
7156 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 for as_dir in $PATH
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7166 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 break 2
7170 done
7171 done
7172 IFS=$as_save_IFS
7175 esac
7177 DOXYGEN=$ac_cv_path_DOXYGEN
7178 if test -n "$DOXYGEN"; then
7179 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7180 echo "${ECHO_T}$DOXYGEN" >&6; }
7181 else
7182 { echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6; }
7187 # Extract the first word of "groff", so it can be a program name with args.
7188 set dummy groff; ac_word=$2
7189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7191 if test "${ac_cv_path_GROFF+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194 case $GROFF in
7195 [\\/]* | ?:[\\/]*)
7196 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7206 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7210 done
7211 done
7212 IFS=$as_save_IFS
7215 esac
7217 GROFF=$ac_cv_path_GROFF
7218 if test -n "$GROFF"; then
7219 { echo "$as_me:$LINENO: result: $GROFF" >&5
7220 echo "${ECHO_T}$GROFF" >&6; }
7221 else
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7227 # Extract the first word of "gzip", so it can be a program name with args.
7228 set dummy gzip; ac_word=$2
7229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7231 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234 case $GZIPBIN in
7235 [\\/]* | ?:[\\/]*)
7236 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7246 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7250 done
7251 done
7252 IFS=$as_save_IFS
7255 esac
7257 GZIPBIN=$ac_cv_path_GZIPBIN
7258 if test -n "$GZIPBIN"; then
7259 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7260 echo "${ECHO_T}$GZIPBIN" >&6; }
7261 else
7262 { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7267 # Extract the first word of "pod2html", so it can be a program name with args.
7268 set dummy pod2html; ac_word=$2
7269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7271 if test "${ac_cv_path_POD2HTML+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274 case $POD2HTML in
7275 [\\/]* | ?:[\\/]*)
7276 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7286 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 break 2
7290 done
7291 done
7292 IFS=$as_save_IFS
7295 esac
7297 POD2HTML=$ac_cv_path_POD2HTML
7298 if test -n "$POD2HTML"; then
7299 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7300 echo "${ECHO_T}$POD2HTML" >&6; }
7301 else
7302 { echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6; }
7307 # Extract the first word of "pod2man", so it can be a program name with args.
7308 set dummy pod2man; ac_word=$2
7309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7311 if test "${ac_cv_path_POD2MAN+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 case $POD2MAN in
7315 [\\/]* | ?:[\\/]*)
7316 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7326 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7330 done
7331 done
7332 IFS=$as_save_IFS
7335 esac
7337 POD2MAN=$ac_cv_path_POD2MAN
7338 if test -n "$POD2MAN"; then
7339 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7340 echo "${ECHO_T}$POD2MAN" >&6; }
7341 else
7342 { echo "$as_me:$LINENO: result: no" >&5
7343 echo "${ECHO_T}no" >&6; }
7347 # Extract the first word of "pdfroff", so it can be a program name with args.
7348 set dummy pdfroff; ac_word=$2
7349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7351 if test "${ac_cv_path_PDFROFF+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354 case $PDFROFF in
7355 [\\/]* | ?:[\\/]*)
7356 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7366 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7370 done
7371 done
7372 IFS=$as_save_IFS
7375 esac
7377 PDFROFF=$ac_cv_path_PDFROFF
7378 if test -n "$PDFROFF"; then
7379 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7380 echo "${ECHO_T}$PDFROFF" >&6; }
7381 else
7382 { echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6; }
7387 # Extract the first word of "runtest", so it can be a program name with args.
7388 set dummy runtest; ac_word=$2
7389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391 if test "${ac_cv_path_RUNTEST+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 else
7394 case $RUNTEST in
7395 [\\/]* | ?:[\\/]*)
7396 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7410 done
7411 done
7412 IFS=$as_save_IFS
7415 esac
7417 RUNTEST=$ac_cv_path_RUNTEST
7418 if test -n "$RUNTEST"; then
7419 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7420 echo "${ECHO_T}$RUNTEST" >&6; }
7421 else
7422 { echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6; }
7428 no_itcl=true
7429 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7430 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7432 # Check whether --with-tclinclude was given.
7433 if test "${with_tclinclude+set}" = set; then
7434 withval=$with_tclinclude; with_tclinclude=${withval}
7435 else
7436 with_tclinclude=''
7439 if test "${ac_cv_path_tclsh+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7443 if test x"${with_tclinclude}" != x ; then
7444 if test -f ${with_tclinclude}/tclsh ; then
7445 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7446 elif test -f ${with_tclinclude}/src/tclsh ; then
7447 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7448 else
7449 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7450 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7451 { (exit 1); exit 1; }; }
7457 if test x"${ac_cv_path_tclsh}" = x ; then
7458 { echo "$as_me:$LINENO: result: none" >&5
7459 echo "${ECHO_T}none" >&6; }
7460 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
7462 # Extract the first word of "$ac_prog", so it can be a program name with args.
7463 set dummy $ac_prog; ac_word=$2
7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466 if test "${ac_cv_path_TCLSH+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469 case $TCLSH in
7470 [\\/]* | ?:[\\/]*)
7471 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7485 done
7486 done
7487 IFS=$as_save_IFS
7490 esac
7492 TCLSH=$ac_cv_path_TCLSH
7493 if test -n "$TCLSH"; then
7494 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7495 echo "${ECHO_T}$TCLSH" >&6; }
7496 else
7497 { echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6; }
7502 test -n "$TCLSH" && break
7503 done
7505 if test x"${TCLSH}" = x ; then
7506 ac_cv_path_tclsh='';
7507 else
7508 ac_cv_path_tclsh="${TCLSH}";
7510 else
7511 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7512 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7513 TCLSH="${ac_cv_path_tclsh}"
7517 # Extract the first word of "zip", so it can be a program name with args.
7518 set dummy zip; ac_word=$2
7519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521 if test "${ac_cv_path_ZIP+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524 case $ZIP in
7525 [\\/]* | ?:[\\/]*)
7526 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in $PATH
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7536 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 break 2
7540 done
7541 done
7542 IFS=$as_save_IFS
7545 esac
7547 ZIP=$ac_cv_path_ZIP
7548 if test -n "$ZIP"; then
7549 { echo "$as_me:$LINENO: result: $ZIP" >&5
7550 echo "${ECHO_T}$ZIP" >&6; }
7551 else
7552 { echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6; }
7557 for ac_prog in ocamlc
7559 # Extract the first word of "$ac_prog", so it can be a program name with args.
7560 set dummy $ac_prog; ac_word=$2
7561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7563 if test "${ac_cv_path_OCAMLC+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566 case $OCAMLC in
7567 [\\/]* | ?:[\\/]*)
7568 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 break 2
7582 done
7583 done
7584 IFS=$as_save_IFS
7587 esac
7589 OCAMLC=$ac_cv_path_OCAMLC
7590 if test -n "$OCAMLC"; then
7591 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7592 echo "${ECHO_T}$OCAMLC" >&6; }
7593 else
7594 { echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6; }
7599 test -n "$OCAMLC" && break
7600 done
7602 for ac_prog in ocamlopt
7604 # Extract the first word of "$ac_prog", so it can be a program name with args.
7605 set dummy $ac_prog; ac_word=$2
7606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7608 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611 case $OCAMLOPT in
7612 [\\/]* | ?:[\\/]*)
7613 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7623 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7627 done
7628 done
7629 IFS=$as_save_IFS
7632 esac
7634 OCAMLOPT=$ac_cv_path_OCAMLOPT
7635 if test -n "$OCAMLOPT"; then
7636 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7637 echo "${ECHO_T}$OCAMLOPT" >&6; }
7638 else
7639 { echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6; }
7644 test -n "$OCAMLOPT" && break
7645 done
7647 for ac_prog in ocamldep
7649 # Extract the first word of "$ac_prog", so it can be a program name with args.
7650 set dummy $ac_prog; ac_word=$2
7651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7653 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656 case $OCAMLDEP in
7657 [\\/]* | ?:[\\/]*)
7658 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7668 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7672 done
7673 done
7674 IFS=$as_save_IFS
7677 esac
7679 OCAMLDEP=$ac_cv_path_OCAMLDEP
7680 if test -n "$OCAMLDEP"; then
7681 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7682 echo "${ECHO_T}$OCAMLDEP" >&6; }
7683 else
7684 { echo "$as_me:$LINENO: result: no" >&5
7685 echo "${ECHO_T}no" >&6; }
7689 test -n "$OCAMLDEP" && break
7690 done
7692 for ac_prog in ocamldoc
7694 # Extract the first word of "$ac_prog", so it can be a program name with args.
7695 set dummy $ac_prog; ac_word=$2
7696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7698 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7700 else
7701 case $OCAMLDOC in
7702 [\\/]* | ?:[\\/]*)
7703 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7717 done
7718 done
7719 IFS=$as_save_IFS
7722 esac
7724 OCAMLDOC=$ac_cv_path_OCAMLDOC
7725 if test -n "$OCAMLDOC"; then
7726 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7727 echo "${ECHO_T}$OCAMLDOC" >&6; }
7728 else
7729 { echo "$as_me:$LINENO: result: no" >&5
7730 echo "${ECHO_T}no" >&6; }
7734 test -n "$OCAMLDOC" && break
7735 done
7737 for ac_prog in gas as
7739 # Extract the first word of "$ac_prog", so it can be a program name with args.
7740 set dummy $ac_prog; ac_word=$2
7741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7743 if test "${ac_cv_path_GAS+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746 case $GAS in
7747 [\\/]* | ?:[\\/]*)
7748 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7758 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7762 done
7763 done
7764 IFS=$as_save_IFS
7767 esac
7769 GAS=$ac_cv_path_GAS
7770 if test -n "$GAS"; then
7771 { echo "$as_me:$LINENO: result: $GAS" >&5
7772 echo "${ECHO_T}$GAS" >&6; }
7773 else
7774 { echo "$as_me:$LINENO: result: no" >&5
7775 echo "${ECHO_T}no" >&6; }
7779 test -n "$GAS" && break
7780 done
7783 { echo "$as_me:$LINENO: checking for linker version" >&5
7784 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7785 if test "${llvm_cv_link_version+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7789 version_string="$(ld -v 2>&1 | head -1)"
7791 # Check for ld64.
7792 if (echo "$version_string" | grep -q "ld64"); then
7793 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7794 else
7795 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7799 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7800 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7802 cat >>confdefs.h <<_ACEOF
7803 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7804 _ACEOF
7808 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7809 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7810 if test "${llvm_cv_link_use_r+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813 ac_ext=c
7814 ac_cpp='$CPP $CPPFLAGS'
7815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7819 oldcflags="$CFLAGS"
7820 CFLAGS="$CFLAGS -Wl,-R."
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7829 main ()
7833 return 0;
7835 _ACEOF
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (ac_try="$ac_link"
7838 case "(($ac_try" in
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7841 esac
7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843 (eval "$ac_link") 2>conftest.er1
7844 ac_status=$?
7845 grep -v '^ *+' conftest.er1 >conftest.err
7846 rm -f conftest.er1
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7851 { (case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854 esac
7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_try") 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; } &&
7860 { ac_try='test -s conftest$ac_exeext'
7861 { (case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_try") 2>&5
7867 ac_status=$?
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; }; then
7870 llvm_cv_link_use_r=yes
7871 else
7872 echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7875 llvm_cv_link_use_r=no
7878 rm -f core conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
7880 CFLAGS="$oldcflags"
7881 ac_ext=c
7882 ac_cpp='$CPP $CPPFLAGS'
7883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7889 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7890 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7891 if test "$llvm_cv_link_use_r" = yes ; then
7893 cat >>confdefs.h <<\_ACEOF
7894 #define HAVE_LINK_R 1
7895 _ACEOF
7900 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7901 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7902 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905 ac_ext=c
7906 ac_cpp='$CPP $CPPFLAGS'
7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7911 oldcflags="$CFLAGS"
7912 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7913 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h. */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7921 main ()
7925 return 0;
7927 _ACEOF
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (ac_try="$ac_link"
7930 case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_link") 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7943 { (case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7946 esac
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_try") 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try='test -s conftest$ac_exeext'
7953 { (case "(($ac_try" in
7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7956 esac
7957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7958 (eval "$ac_try") 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 llvm_cv_link_use_export_dynamic=yes
7963 else
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 llvm_cv_link_use_export_dynamic=no
7970 rm -f core conftest.err conftest.$ac_objext \
7971 conftest$ac_exeext conftest.$ac_ext
7972 CFLAGS="$oldcflags"
7973 ac_ext=c
7974 ac_cpp='$CPP $CPPFLAGS'
7975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7981 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7982 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7983 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7985 cat >>confdefs.h <<\_ACEOF
7986 #define HAVE_LINK_EXPORT_DYNAMIC 1
7987 _ACEOF
7992 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7993 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7994 if test "${llvm_cv_link_use_version_script+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997 ac_ext=c
7998 ac_cpp='$CPP $CPPFLAGS'
7999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003 oldcflags="$CFLAGS"
8005 # The following code is from the autoconf manual,
8006 # "11.13: Limitations of Usual Tools".
8007 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8008 # Use mktemp if possible; otherwise fall back on mkdir,
8009 # with $RANDOM to make collisions less likely.
8010 : ${TMPDIR=/tmp}
8012 tmp=`
8013 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8014 ` &&
8015 test -n "$tmp" && test -d "$tmp"
8016 } || {
8017 tmp=$TMPDIR/foo$$-$RANDOM
8018 (umask 077 && mkdir "$tmp")
8019 } || exit $?
8021 echo "{" > "$tmp/export.map"
8022 echo " global: main;" >> "$tmp/export.map"
8023 echo " local: *;" >> "$tmp/export.map"
8024 echo "};" >> "$tmp/export.map"
8026 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8027 cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h. */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8035 main ()
8039 return 0;
8041 _ACEOF
8042 rm -f conftest.$ac_objext conftest$ac_exeext
8043 if { (ac_try="$ac_link"
8044 case "(($ac_try" in
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8047 esac
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_link") 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
8056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8057 { (case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8060 esac
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_try") 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; } &&
8066 { ac_try='test -s conftest$ac_exeext'
8067 { (case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_try") 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 llvm_cv_link_use_version_script=yes
8077 else
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 llvm_cv_link_use_version_script=no
8084 rm -f core conftest.err conftest.$ac_objext \
8085 conftest$ac_exeext conftest.$ac_ext
8086 rm "$tmp/export.map"
8087 rmdir "$tmp"
8088 CFLAGS="$oldcflags"
8089 ac_ext=c
8090 ac_cpp='$CPP $CPPFLAGS'
8091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8097 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8098 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8099 if test "$llvm_cv_link_use_version_script" = yes ; then
8100 HAVE_LINK_VERSION_SCRIPT=1
8107 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8108 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8109 if test "${ac_cv_c_const+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112 cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h. */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8120 main ()
8122 /* FIXME: Include the comments suggested by Paul. */
8123 #ifndef __cplusplus
8124 /* Ultrix mips cc rejects this. */
8125 typedef int charset[2];
8126 const charset x;
8127 /* SunOS 4.1.1 cc rejects this. */
8128 char const *const *ccp;
8129 char **p;
8130 /* NEC SVR4.0.2 mips cc rejects this. */
8131 struct point {int x, y;};
8132 static struct point const zero = {0,0};
8133 /* AIX XL C 1.02.0.0 rejects this.
8134 It does not let you subtract one const X* pointer from another in
8135 an arm of an if-expression whose if-part is not a constant
8136 expression */
8137 const char *g = "string";
8138 ccp = &g + (g ? g-g : 0);
8139 /* HPUX 7.0 cc rejects these. */
8140 ++ccp;
8141 p = (char**) ccp;
8142 ccp = (char const *const *) p;
8143 { /* SCO 3.2v4 cc rejects this. */
8144 char *t;
8145 char const *s = 0 ? (char *) 0 : (char const *) 0;
8147 *t++ = 0;
8148 if (s) return 0;
8150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8151 int x[] = {25, 17};
8152 const int *foo = &x[0];
8153 ++foo;
8155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8156 typedef const int *iptr;
8157 iptr p = 0;
8158 ++p;
8160 { /* AIX XL C 1.02.0.0 rejects this saying
8161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8162 struct s { int j; const int *ap[3]; };
8163 struct s *b; b->j = 5;
8165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8166 const int foo = 10;
8167 if (!foo) return 0;
8169 return !x[0] && !zero.x;
8170 #endif
8173 return 0;
8175 _ACEOF
8176 rm -f conftest.$ac_objext
8177 if { (ac_try="$ac_compile"
8178 case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8181 esac
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_compile") 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194 esac
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_try") 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; } &&
8200 { ac_try='test -s conftest.$ac_objext'
8201 { (case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8204 esac
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_try") 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_cv_c_const=yes
8211 else
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_cv_c_const=no
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8221 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8222 if test $ac_cv_c_const = no; then
8224 cat >>confdefs.h <<\_ACEOF
8225 #define const
8226 _ACEOF
8235 ac_header_dirent=no
8236 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8237 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8238 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8239 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243 cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h. */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8249 #include <sys/types.h>
8250 #include <$ac_hdr>
8253 main ()
8255 if ((DIR *) 0)
8256 return 0;
8258 return 0;
8260 _ACEOF
8261 rm -f conftest.$ac_objext
8262 if { (ac_try="$ac_compile"
8263 case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_compile") 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8276 { (case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_try") 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; } &&
8285 { ac_try='test -s conftest.$ac_objext'
8286 { (case "(($ac_try" in
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8289 esac
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_try") 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8295 eval "$as_ac_Header=yes"
8296 else
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8300 eval "$as_ac_Header=no"
8303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 ac_res=`eval echo '${'$as_ac_Header'}'`
8306 { echo "$as_me:$LINENO: result: $ac_res" >&5
8307 echo "${ECHO_T}$ac_res" >&6; }
8308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8309 cat >>confdefs.h <<_ACEOF
8310 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8311 _ACEOF
8313 ac_header_dirent=$ac_hdr; break
8316 done
8317 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8318 if test $ac_header_dirent = dirent.h; then
8319 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8320 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8321 if test "${ac_cv_search_opendir+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324 ac_func_search_save_LIBS=$LIBS
8325 cat >conftest.$ac_ext <<_ACEOF
8326 /* confdefs.h. */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8332 /* Override any GCC internal prototype to avoid an error.
8333 Use char because int might match the return type of a GCC
8334 builtin and then its argument prototype would still apply. */
8335 #ifdef __cplusplus
8336 extern "C"
8337 #endif
8338 char opendir ();
8340 main ()
8342 return opendir ();
8344 return 0;
8346 _ACEOF
8347 for ac_lib in '' dir; do
8348 if test -z "$ac_lib"; then
8349 ac_res="none required"
8350 else
8351 ac_res=-l$ac_lib
8352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8354 rm -f conftest.$ac_objext conftest$ac_exeext
8355 if { (ac_try="$ac_link"
8356 case "(($ac_try" in
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8359 esac
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_link") 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_try") 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; } &&
8378 { ac_try='test -s conftest$ac_exeext'
8379 { (case "(($ac_try" in
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8382 esac
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_try") 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_cv_search_opendir=$ac_res
8389 else
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8396 rm -f core conftest.err conftest.$ac_objext \
8397 conftest$ac_exeext
8398 if test "${ac_cv_search_opendir+set}" = set; then
8399 break
8401 done
8402 if test "${ac_cv_search_opendir+set}" = set; then
8404 else
8405 ac_cv_search_opendir=no
8407 rm conftest.$ac_ext
8408 LIBS=$ac_func_search_save_LIBS
8410 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8411 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8412 ac_res=$ac_cv_search_opendir
8413 if test "$ac_res" != no; then
8414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8418 else
8419 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8420 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8421 if test "${ac_cv_search_opendir+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424 ac_func_search_save_LIBS=$LIBS
8425 cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h. */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8432 /* Override any GCC internal prototype to avoid an error.
8433 Use char because int might match the return type of a GCC
8434 builtin and then its argument prototype would still apply. */
8435 #ifdef __cplusplus
8436 extern "C"
8437 #endif
8438 char opendir ();
8440 main ()
8442 return opendir ();
8444 return 0;
8446 _ACEOF
8447 for ac_lib in '' x; do
8448 if test -z "$ac_lib"; then
8449 ac_res="none required"
8450 else
8451 ac_res=-l$ac_lib
8452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (ac_try="$ac_link"
8456 case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_link") 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8469 { (case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_try") 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest$ac_exeext'
8479 { (case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482 esac
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_try") 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_search_opendir=$ac_res
8489 else
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8496 rm -f core conftest.err conftest.$ac_objext \
8497 conftest$ac_exeext
8498 if test "${ac_cv_search_opendir+set}" = set; then
8499 break
8501 done
8502 if test "${ac_cv_search_opendir+set}" = set; then
8504 else
8505 ac_cv_search_opendir=no
8507 rm conftest.$ac_ext
8508 LIBS=$ac_func_search_save_LIBS
8510 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8511 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8512 ac_res=$ac_cv_search_opendir
8513 if test "$ac_res" != no; then
8514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8521 for ac_header in dlfcn.h
8523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 ac_res=`eval echo '${'$as_ac_Header'}'`
8531 { echo "$as_me:$LINENO: result: $ac_res" >&5
8532 echo "${ECHO_T}$ac_res" >&6; }
8533 else
8534 # Is the header compilable?
8535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h. */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 $ac_includes_default
8544 #include <$ac_header>
8545 _ACEOF
8546 rm -f conftest.$ac_objext
8547 if { (ac_try="$ac_compile"
8548 case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_compile") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8561 { (case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564 esac
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_try") 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; } &&
8570 { ac_try='test -s conftest.$ac_objext'
8571 { (case "(($ac_try" in
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8574 esac
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576 (eval "$ac_try") 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_header_compiler=yes
8581 else
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_header_compiler=no
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8590 echo "${ECHO_T}$ac_header_compiler" >&6; }
8592 # Is the header present?
8593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8595 cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h. */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 #include <$ac_header>
8602 _ACEOF
8603 if { (ac_try="$ac_cpp conftest.$ac_ext"
8604 case "(($ac_try" in
8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606 *) ac_try_echo=$ac_try;;
8607 esac
8608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } >/dev/null; then
8616 if test -s conftest.err; then
8617 ac_cpp_err=$ac_c_preproc_warn_flag
8618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8619 else
8620 ac_cpp_err=
8622 else
8623 ac_cpp_err=yes
8625 if test -z "$ac_cpp_err"; then
8626 ac_header_preproc=yes
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_header_preproc=no
8634 rm -f conftest.err conftest.$ac_ext
8635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8636 echo "${ECHO_T}$ac_header_preproc" >&6; }
8638 # So? What about this header?
8639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8640 yes:no: )
8641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8645 ac_header_preproc=yes
8647 no:yes:* )
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8655 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8660 ( cat <<\_ASBOX
8661 ## ----------------------------------- ##
8662 ## Report this to llvmbugs@cs.uiuc.edu ##
8663 ## ----------------------------------- ##
8664 _ASBOX
8665 ) | sed "s/^/$as_me: WARNING: /" >&2
8667 esac
8668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673 eval "$as_ac_Header=\$ac_header_preproc"
8675 ac_res=`eval echo '${'$as_ac_Header'}'`
8676 { echo "$as_me:$LINENO: result: $ac_res" >&5
8677 echo "${ECHO_T}$ac_res" >&6; }
8680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8681 cat >>confdefs.h <<_ACEOF
8682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8683 _ACEOF
8687 done
8689 # Check whether --enable-ltdl-install was given.
8690 if test "${enable_ltdl_install+set}" = set; then
8691 enableval=$enable_ltdl_install;
8697 if test x"${enable_ltdl_install-no}" != xno; then
8698 INSTALL_LTDL_TRUE=
8699 INSTALL_LTDL_FALSE='#'
8700 else
8701 INSTALL_LTDL_TRUE='#'
8702 INSTALL_LTDL_FALSE=
8707 if test x"${enable_ltdl_convenience-no}" != xno; then
8708 CONVENIENCE_LTDL_TRUE=
8709 CONVENIENCE_LTDL_FALSE='#'
8710 else
8711 CONVENIENCE_LTDL_TRUE='#'
8712 CONVENIENCE_LTDL_FALSE=
8716 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8717 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8718 library_names_spec=
8719 libname_spec='lib$name'
8720 soname_spec=
8721 shrext_cmds=".so"
8722 postinstall_cmds=
8723 postuninstall_cmds=
8724 finish_cmds=
8725 finish_eval=
8726 shlibpath_var=
8727 shlibpath_overrides_runpath=unknown
8728 version_type=none
8729 dynamic_linker="$host_os ld.so"
8730 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8731 if test "$GCC" = yes; then
8732 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8733 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8734 # if the path contains ";" then we assume it to be the separator
8735 # otherwise default to the standard path separator (i.e. ":") - it is
8736 # assumed that no part of a normal pathname contains ";" but that should
8737 # okay in the real world where ";" in dirpaths is itself problematic.
8738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8739 else
8740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8742 else
8743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8745 need_lib_prefix=unknown
8746 hardcode_into_libs=no
8748 # when you set need_version to no, make sure it does not cause -set_version
8749 # flags to be left without arguments
8750 need_version=unknown
8752 case $host_os in
8753 aix3*)
8754 version_type=linux
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8756 shlibpath_var=LIBPATH
8758 # AIX 3 has no versioning support, so we append a major version to the name.
8759 soname_spec='${libname}${release}${shared_ext}$major'
8762 aix4* | aix5*)
8763 version_type=linux
8764 need_lib_prefix=no
8765 need_version=no
8766 hardcode_into_libs=yes
8767 if test "$host_cpu" = ia64; then
8768 # AIX 5 supports IA64
8769 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8770 shlibpath_var=LD_LIBRARY_PATH
8771 else
8772 # With GCC up to 2.95.x, collect2 would create an import file
8773 # for dependence libraries. The import file would start with
8774 # the line `#! .'. This would cause the generated library to
8775 # depend on `.', always an invalid library. This was fixed in
8776 # development snapshots of GCC prior to 3.0.
8777 case $host_os in
8778 aix4 | aix4.[01] | aix4.[01].*)
8779 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8780 echo ' yes '
8781 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8783 else
8784 can_build_shared=no
8787 esac
8788 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8789 # soname into executable. Probably we can add versioning support to
8790 # collect2, so additional links can be useful in future.
8791 if test "$aix_use_runtimelinking" = yes; then
8792 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8793 # instead of lib<name>.a to let people know that these are not
8794 # typical AIX shared libraries.
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8796 else
8797 # We preserve .a as extension for shared libraries through AIX4.2
8798 # and later when we are not doing run time linking.
8799 library_names_spec='${libname}${release}.a $libname.a'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8802 shlibpath_var=LIBPATH
8806 amigaos*)
8807 library_names_spec='$libname.ixlibrary $libname.a'
8808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8809 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'
8812 beos*)
8813 library_names_spec='${libname}${shared_ext}'
8814 dynamic_linker="$host_os ld.so"
8815 shlibpath_var=LIBRARY_PATH
8818 bsdi[45]*)
8819 version_type=linux
8820 need_version=no
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8824 shlibpath_var=LD_LIBRARY_PATH
8825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8827 # the default ld.so.conf also contains /usr/contrib/lib and
8828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8829 # libtool to hard-code these into programs
8832 cygwin* | mingw* | pw32*)
8833 version_type=windows
8834 shrext_cmds=".dll"
8835 need_version=no
8836 need_lib_prefix=no
8838 case $GCC,$host_os in
8839 yes,cygwin* | yes,mingw* | yes,pw32*)
8840 library_names_spec='$libname.dll.a'
8841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8842 postinstall_cmds='base_file=`basename \${file}`~
8843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8844 dldir=$destdir/`dirname \$dlpath`~
8845 test -d \$dldir || mkdir -p \$dldir~
8846 $install_prog $dir/$dlname \$dldir/$dlname~
8847 chmod a+x \$dldir/$dlname'
8848 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8849 dlpath=$dir/\$dldll~
8850 $rm \$dlpath'
8851 shlibpath_overrides_runpath=yes
8853 case $host_os in
8854 cygwin*)
8855 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8856 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8857 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8859 mingw*)
8860 # MinGW DLLs use traditional 'lib' prefix
8861 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8862 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8863 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8864 # It is most probably a Windows format PATH printed by
8865 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8866 # path with ; separators, and with drive letters. We can handle the
8867 # drive letters (cygwin fileutils understands them), so leave them,
8868 # especially as we might pass files found there to a mingw objdump,
8869 # which wouldn't understand a cygwinified path. Ahh.
8870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8871 else
8872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8875 pw32*)
8876 # pw32 DLLs use 'pw' prefix rather than 'lib'
8877 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8879 esac
8883 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8885 esac
8886 dynamic_linker='Win32 ld.exe'
8887 # FIXME: first we should search . and the directory the executable is in
8888 shlibpath_var=PATH
8891 darwin* | rhapsody*)
8892 dynamic_linker="$host_os dyld"
8893 version_type=darwin
8894 need_lib_prefix=no
8895 need_version=no
8896 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8897 soname_spec='${libname}${release}${major}$shared_ext'
8898 shlibpath_overrides_runpath=yes
8899 shlibpath_var=DYLD_LIBRARY_PATH
8900 shrext_cmds='.dylib'
8901 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8902 if test "$GCC" = yes; then
8903 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"`
8904 else
8905 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8907 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8910 dgux*)
8911 version_type=linux
8912 need_lib_prefix=no
8913 need_version=no
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 shlibpath_var=LD_LIBRARY_PATH
8919 freebsd1*)
8920 dynamic_linker=no
8923 kfreebsd*-gnu)
8924 version_type=linux
8925 need_lib_prefix=no
8926 need_version=no
8927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=no
8931 hardcode_into_libs=yes
8932 dynamic_linker='GNU ld.so'
8935 freebsd* | dragonfly*)
8936 # DragonFly does not have aout. When/if they implement a new
8937 # versioning mechanism, adjust this.
8938 if test -x /usr/bin/objformat; then
8939 objformat=`/usr/bin/objformat`
8940 else
8941 case $host_os in
8942 freebsd[123]*) objformat=aout ;;
8943 *) objformat=elf ;;
8944 esac
8946 version_type=freebsd-$objformat
8947 case $version_type in
8948 freebsd-elf*)
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8950 need_version=no
8951 need_lib_prefix=no
8953 freebsd-*)
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8955 need_version=yes
8957 esac
8958 shlibpath_var=LD_LIBRARY_PATH
8959 case $host_os in
8960 freebsd2*)
8961 shlibpath_overrides_runpath=yes
8963 freebsd3.[01]* | freebsdelf3.[01]*)
8964 shlibpath_overrides_runpath=yes
8965 hardcode_into_libs=yes
8967 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8968 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8969 shlibpath_overrides_runpath=no
8970 hardcode_into_libs=yes
8972 freebsd*) # from 4.6 on
8973 shlibpath_overrides_runpath=yes
8974 hardcode_into_libs=yes
8976 esac
8979 gnu*)
8980 version_type=linux
8981 need_lib_prefix=no
8982 need_version=no
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8984 soname_spec='${libname}${release}${shared_ext}$major'
8985 shlibpath_var=LD_LIBRARY_PATH
8986 hardcode_into_libs=yes
8989 hpux9* | hpux10* | hpux11*)
8990 # Give a soname corresponding to the major version so that dld.sl refuses to
8991 # link against other versions.
8992 version_type=sunos
8993 need_lib_prefix=no
8994 need_version=no
8995 case $host_cpu in
8996 ia64*)
8997 shrext_cmds='.so'
8998 hardcode_into_libs=yes
8999 dynamic_linker="$host_os dld.so"
9000 shlibpath_var=LD_LIBRARY_PATH
9001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 if test "X$HPUX_IA64_MODE" = X32; then
9005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9006 else
9007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9011 hppa*64*)
9012 shrext_cmds='.sl'
9013 hardcode_into_libs=yes
9014 dynamic_linker="$host_os dld.sl"
9015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9023 shrext_cmds='.sl'
9024 dynamic_linker="$host_os dld.sl"
9025 shlibpath_var=SHLIB_PATH
9026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9028 soname_spec='${libname}${release}${shared_ext}$major'
9030 esac
9031 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9032 postinstall_cmds='chmod 555 $lib'
9035 interix3*)
9036 version_type=linux
9037 need_lib_prefix=no
9038 need_version=no
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9041 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 shlibpath_overrides_runpath=no
9044 hardcode_into_libs=yes
9047 irix5* | irix6* | nonstopux*)
9048 case $host_os in
9049 nonstopux*) version_type=nonstopux ;;
9051 if test "$lt_cv_prog_gnu_ld" = yes; then
9052 version_type=linux
9053 else
9054 version_type=irix
9055 fi ;;
9056 esac
9057 need_lib_prefix=no
9058 need_version=no
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9061 case $host_os in
9062 irix5* | nonstopux*)
9063 libsuff= shlibsuff=
9066 case $LD in # libtool.m4 will add one of these switches to LD
9067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9068 libsuff= shlibsuff= libmagic=32-bit;;
9069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9070 libsuff=32 shlibsuff=N32 libmagic=N32;;
9071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9072 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9073 *) libsuff= shlibsuff= libmagic=never-match;;
9074 esac
9076 esac
9077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9078 shlibpath_overrides_runpath=no
9079 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9080 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9081 hardcode_into_libs=yes
9084 # No shared lib support for Linux oldld, aout, or coff.
9085 linux*oldld* | linux*aout* | linux*coff*)
9086 dynamic_linker=no
9089 # This must be Linux ELF.
9090 linux*)
9091 version_type=linux
9092 need_lib_prefix=no
9093 need_version=no
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=no
9099 # This implies no fast_install, which is unacceptable.
9100 # Some rework will be needed to allow for fast_install
9101 # before this can be enabled.
9102 hardcode_into_libs=yes
9104 # Append ld.so.conf contents to the search path
9105 if test -f /etc/ld.so.conf; then
9106 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' ' '`
9107 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9110 # We used to test for /lib/ld.so.1 and disable shared libraries on
9111 # powerpc, because MkLinux only supported shared libraries with the
9112 # GNU dynamic linker. Since this was broken with cross compilers,
9113 # most powerpc-linux boxes support dynamic linking these days and
9114 # people can always --disable-shared, the test was removed, and we
9115 # assume the GNU/Linux dynamic linker is in use.
9116 dynamic_linker='GNU/Linux ld.so'
9119 knetbsd*-gnu)
9120 version_type=linux
9121 need_lib_prefix=no
9122 need_version=no
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 shlibpath_var=LD_LIBRARY_PATH
9126 shlibpath_overrides_runpath=no
9127 hardcode_into_libs=yes
9128 dynamic_linker='GNU ld.so'
9131 netbsd*)
9132 version_type=sunos
9133 need_lib_prefix=no
9134 need_version=no
9135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9138 dynamic_linker='NetBSD (a.out) ld.so'
9139 else
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 dynamic_linker='NetBSD ld.elf_so'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 shlibpath_overrides_runpath=yes
9146 hardcode_into_libs=yes
9149 newsos6)
9150 version_type=linux
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=yes
9156 nto-qnx*)
9157 version_type=linux
9158 need_lib_prefix=no
9159 need_version=no
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 shlibpath_var=LD_LIBRARY_PATH
9163 shlibpath_overrides_runpath=yes
9166 openbsd*)
9167 version_type=sunos
9168 sys_lib_dlsearch_path_spec="/usr/lib"
9169 need_lib_prefix=no
9170 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9171 case $host_os in
9172 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9173 *) need_version=no ;;
9174 esac
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9177 shlibpath_var=LD_LIBRARY_PATH
9178 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9179 case $host_os in
9180 openbsd2.[89] | openbsd2.[89].*)
9181 shlibpath_overrides_runpath=no
9184 shlibpath_overrides_runpath=yes
9186 esac
9187 else
9188 shlibpath_overrides_runpath=yes
9192 os2*)
9193 libname_spec='$name'
9194 shrext_cmds=".dll"
9195 need_lib_prefix=no
9196 library_names_spec='$libname${shared_ext} $libname.a'
9197 dynamic_linker='OS/2 ld.exe'
9198 shlibpath_var=LIBPATH
9201 osf3* | osf4* | osf5*)
9202 version_type=osf
9203 need_lib_prefix=no
9204 need_version=no
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9209 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9212 solaris*)
9213 version_type=linux
9214 need_lib_prefix=no
9215 need_version=no
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=yes
9220 hardcode_into_libs=yes
9221 # ldd complains unless libraries are executable
9222 postinstall_cmds='chmod +x $lib'
9225 sunos4*)
9226 version_type=sunos
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9228 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9229 shlibpath_var=LD_LIBRARY_PATH
9230 shlibpath_overrides_runpath=yes
9231 if test "$with_gnu_ld" = yes; then
9232 need_lib_prefix=no
9234 need_version=yes
9237 sysv4 | sysv4.3*)
9238 version_type=linux
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 case $host_vendor in
9243 sni)
9244 shlibpath_overrides_runpath=no
9245 need_lib_prefix=no
9246 export_dynamic_flag_spec='${wl}-Blargedynsym'
9247 runpath_var=LD_RUN_PATH
9249 siemens)
9250 need_lib_prefix=no
9252 motorola)
9253 need_lib_prefix=no
9254 need_version=no
9255 shlibpath_overrides_runpath=no
9256 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9258 esac
9261 sysv4*MP*)
9262 if test -d /usr/nec ;then
9263 version_type=linux
9264 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9265 soname_spec='$libname${shared_ext}.$major'
9266 shlibpath_var=LD_LIBRARY_PATH
9270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9271 version_type=freebsd-elf
9272 need_lib_prefix=no
9273 need_version=no
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 hardcode_into_libs=yes
9278 if test "$with_gnu_ld" = yes; then
9279 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9280 shlibpath_overrides_runpath=no
9281 else
9282 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9283 shlibpath_overrides_runpath=yes
9284 case $host_os in
9285 sco3.2v5*)
9286 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9288 esac
9290 sys_lib_dlsearch_path_spec='/usr/lib'
9293 uts4*)
9294 version_type=linux
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 shlibpath_var=LD_LIBRARY_PATH
9301 dynamic_linker=no
9303 esac
9304 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9305 echo "${ECHO_T}$dynamic_linker" >&6; }
9306 test "$dynamic_linker" = no && can_build_shared=no
9308 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9309 if test "$GCC" = yes; then
9310 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9314 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9315 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9316 if test "${libltdl_cv_shlibext+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9320 module=yes
9321 eval libltdl_cv_shlibext=$shrext_cmds
9324 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9325 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9326 if test -n "$libltdl_cv_shlibext"; then
9328 cat >>confdefs.h <<_ACEOF
9329 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9330 _ACEOF
9335 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9336 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9337 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340 libltdl_cv_shlibpath_var="$shlibpath_var"
9342 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9343 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9344 if test -n "$libltdl_cv_shlibpath_var"; then
9346 cat >>confdefs.h <<_ACEOF
9347 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9348 _ACEOF
9353 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9354 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9355 if test "${libltdl_cv_sys_search_path+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9360 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9361 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9362 if test -n "$libltdl_cv_sys_search_path"; then
9363 sys_search_path=
9364 for dir in $libltdl_cv_sys_search_path; do
9365 if test -z "$sys_search_path"; then
9366 sys_search_path="$dir"
9367 else
9368 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9370 done
9372 cat >>confdefs.h <<_ACEOF
9373 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9374 _ACEOF
9378 { echo "$as_me:$LINENO: checking for objdir" >&5
9379 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9380 if test "${libltdl_cv_objdir+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9382 else
9383 libltdl_cv_objdir="$objdir"
9384 if test -n "$objdir"; then
9386 else
9387 rm -f .libs 2>/dev/null
9388 mkdir .libs 2>/dev/null
9389 if test -d .libs; then
9390 libltdl_cv_objdir=.libs
9391 else
9392 # MS-DOS does not allow filenames that begin with a dot.
9393 libltdl_cv_objdir=_libs
9395 rmdir .libs 2>/dev/null
9399 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9400 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9402 cat >>confdefs.h <<_ACEOF
9403 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9404 _ACEOF
9411 # Check for command to grab the raw symbol name followed by C symbol from nm.
9412 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9413 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9414 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9418 # These are sane defaults that work on at least a few old systems.
9419 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9421 # Character class describing NM global symbol codes.
9422 symcode='[BCDEGRST]'
9424 # Regexp to match symbols that can be accessed directly from C.
9425 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9427 # Transform an extracted symbol line into a proper C declaration
9428 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9430 # Transform an extracted symbol line into symbol name and symbol address
9431 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'"
9433 # Define system-specific variables.
9434 case $host_os in
9435 aix*)
9436 symcode='[BCDT]'
9438 cygwin* | mingw* | pw32*)
9439 symcode='[ABCDGISTW]'
9441 hpux*) # Its linker distinguishes data from code symbols
9442 if test "$host_cpu" = ia64; then
9443 symcode='[ABCDEGRST]'
9445 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9446 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'"
9448 linux*)
9449 if test "$host_cpu" = ia64; then
9450 symcode='[ABCDGIRSTW]'
9451 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9452 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'"
9455 irix* | nonstopux*)
9456 symcode='[BCDEGRST]'
9458 osf*)
9459 symcode='[BCDEGQRST]'
9461 solaris*)
9462 symcode='[BDRT]'
9464 sco3.2v5*)
9465 symcode='[DT]'
9467 sysv4.2uw2*)
9468 symcode='[DT]'
9470 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9471 symcode='[ABDT]'
9473 sysv4)
9474 symcode='[DFNSTU]'
9476 esac
9478 # Handle CRLF in mingw tool chain
9479 opt_cr=
9480 case $build_os in
9481 mingw*)
9482 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9484 esac
9486 # If we're using GNU nm, then use its standard symbol codes.
9487 case `$NM -V 2>&1` in
9488 *GNU* | *'with BFD'*)
9489 symcode='[ABCDGIRSTW]' ;;
9490 esac
9492 # Try without a prefix undercore, then with it.
9493 for ac_symprfx in "" "_"; do
9495 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9496 symxfrm="\\1 $ac_symprfx\\2 \\2"
9498 # Write the raw and C identifiers.
9499 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9501 # Check to see that the pipe works correctly.
9502 pipe_works=no
9504 rm -f conftest*
9505 cat > conftest.$ac_ext <<EOF
9506 #ifdef __cplusplus
9507 extern "C" {
9508 #endif
9509 char nm_test_var;
9510 void nm_test_func(){}
9511 #ifdef __cplusplus
9513 #endif
9514 int main(){nm_test_var='a';nm_test_func();return(0);}
9517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9518 (eval $ac_compile) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; then
9522 # Now try to grab the symbols.
9523 nlist=conftest.nm
9524 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9525 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9526 ac_status=$?
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && test -s "$nlist"; then
9529 # Try sorting and uniquifying the output.
9530 if sort "$nlist" | uniq > "$nlist"T; then
9531 mv -f "$nlist"T "$nlist"
9532 else
9533 rm -f "$nlist"T
9536 # Make sure that we snagged all the symbols we need.
9537 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9538 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9539 cat <<EOF > conftest.$ac_ext
9540 #ifdef __cplusplus
9541 extern "C" {
9542 #endif
9545 # Now generate the symbol file.
9546 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9548 cat <<EOF >> conftest.$ac_ext
9549 #if defined (__STDC__) && __STDC__
9550 # define lt_ptr_t void *
9551 #else
9552 # define lt_ptr_t char *
9553 # define const
9554 #endif
9556 /* The mapping between symbol names and symbols. */
9557 const struct {
9558 const char *name;
9559 lt_ptr_t address;
9561 lt_preloaded_symbols[] =
9564 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9565 cat <<\EOF >> conftest.$ac_ext
9566 {0, (lt_ptr_t) 0}
9569 #ifdef __cplusplus
9571 #endif
9573 # Now try linking the two files.
9574 mv conftest.$ac_objext conftstm.$ac_objext
9575 lt_save_LIBS="$LIBS"
9576 lt_save_CFLAGS="$CFLAGS"
9577 LIBS="conftstm.$ac_objext"
9578 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9580 (eval $ac_link) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9584 pipe_works=yes
9586 LIBS="$lt_save_LIBS"
9587 CFLAGS="$lt_save_CFLAGS"
9588 else
9589 echo "cannot find nm_test_func in $nlist" >&5
9591 else
9592 echo "cannot find nm_test_var in $nlist" >&5
9594 else
9595 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9597 else
9598 echo "$progname: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9601 rm -f conftest* conftst*
9603 # Do not use the global_symbol_pipe unless it works.
9604 if test "$pipe_works" = yes; then
9605 break
9606 else
9607 lt_cv_sys_global_symbol_pipe=
9609 done
9613 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9614 lt_cv_sys_global_symbol_to_cdecl=
9616 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9617 { echo "$as_me:$LINENO: result: failed" >&5
9618 echo "${ECHO_T}failed" >&6; }
9619 else
9620 { echo "$as_me:$LINENO: result: ok" >&5
9621 echo "${ECHO_T}ok" >&6; }
9625 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9626 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9627 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9631 libltdl_cv_preloaded_symbols=yes
9632 else
9633 libltdl_cv_preloaded_symbols=no
9637 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9638 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9639 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9641 cat >>confdefs.h <<\_ACEOF
9642 #define HAVE_PRELOADED_SYMBOLS 1
9643 _ACEOF
9647 LIBADD_DL=
9649 ac_ext=c
9650 ac_cpp='$CPP $CPPFLAGS'
9651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9656 { echo "$as_me:$LINENO: checking for shl_load" >&5
9657 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9658 if test "${ac_cv_func_shl_load+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 else
9661 cat >conftest.$ac_ext <<_ACEOF
9662 /* confdefs.h. */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9667 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9669 #define shl_load innocuous_shl_load
9671 /* System header to define __stub macros and hopefully few prototypes,
9672 which can conflict with char shl_load (); below.
9673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9674 <limits.h> exists even on freestanding compilers. */
9676 #ifdef __STDC__
9677 # include <limits.h>
9678 #else
9679 # include <assert.h>
9680 #endif
9682 #undef shl_load
9684 /* Override any GCC internal prototype to avoid an error.
9685 Use char because int might match the return type of a GCC
9686 builtin and then its argument prototype would still apply. */
9687 #ifdef __cplusplus
9688 extern "C"
9689 #endif
9690 char shl_load ();
9691 /* The GNU C library defines this for functions which it implements
9692 to always fail with ENOSYS. Some functions are actually named
9693 something starting with __ and the normal name is an alias. */
9694 #if defined __stub_shl_load || defined __stub___shl_load
9695 choke me
9696 #endif
9699 main ()
9701 return shl_load ();
9703 return 0;
9705 _ACEOF
9706 rm -f conftest.$ac_objext conftest$ac_exeext
9707 if { (ac_try="$ac_link"
9708 case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9711 esac
9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_link") 2>conftest.er1
9714 ac_status=$?
9715 grep -v '^ *+' conftest.er1 >conftest.err
9716 rm -f conftest.er1
9717 cat conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; } &&
9730 { ac_try='test -s conftest$ac_exeext'
9731 { (case "(($ac_try" in
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9734 esac
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_try") 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 ac_cv_func_shl_load=yes
9741 else
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9745 ac_cv_func_shl_load=no
9748 rm -f core conftest.err conftest.$ac_objext \
9749 conftest$ac_exeext conftest.$ac_ext
9751 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9752 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9753 if test $ac_cv_func_shl_load = yes; then
9755 cat >>confdefs.h <<\_ACEOF
9756 #define HAVE_SHL_LOAD 1
9757 _ACEOF
9759 else
9760 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9761 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9762 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765 ac_check_lib_save_LIBS=$LIBS
9766 LIBS="-ldld $LIBS"
9767 cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h. */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9774 /* Override any GCC internal prototype to avoid an error.
9775 Use char because int might match the return type of a GCC
9776 builtin and then its argument prototype would still apply. */
9777 #ifdef __cplusplus
9778 extern "C"
9779 #endif
9780 char shl_load ();
9782 main ()
9784 return shl_load ();
9786 return 0;
9788 _ACEOF
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9791 case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9794 esac
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_link") 2>conftest.er1
9797 ac_status=$?
9798 grep -v '^ *+' conftest.er1 >conftest.err
9799 rm -f conftest.er1
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9804 { (case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9807 esac
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_try") 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
9813 { ac_try='test -s conftest$ac_exeext'
9814 { (case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817 esac
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_try") 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 ac_cv_lib_dld_shl_load=yes
9824 else
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9828 ac_cv_lib_dld_shl_load=no
9831 rm -f core conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_lib_save_LIBS
9835 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9836 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9837 if test $ac_cv_lib_dld_shl_load = yes; then
9839 cat >>confdefs.h <<\_ACEOF
9840 #define HAVE_SHL_LOAD 1
9841 _ACEOF
9843 LIBADD_DL="$LIBADD_DL -ldld"
9844 else
9845 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9846 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9847 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850 ac_check_lib_save_LIBS=$LIBS
9851 LIBS="-ldl $LIBS"
9852 cat >conftest.$ac_ext <<_ACEOF
9853 /* confdefs.h. */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9859 /* Override any GCC internal prototype to avoid an error.
9860 Use char because int might match the return type of a GCC
9861 builtin and then its argument prototype would still apply. */
9862 #ifdef __cplusplus
9863 extern "C"
9864 #endif
9865 char dlopen ();
9867 main ()
9869 return dlopen ();
9871 return 0;
9873 _ACEOF
9874 rm -f conftest.$ac_objext conftest$ac_exeext
9875 if { (ac_try="$ac_link"
9876 case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_link") 2>conftest.er1
9882 ac_status=$?
9883 grep -v '^ *+' conftest.er1 >conftest.err
9884 rm -f conftest.er1
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } &&
9888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9889 { (case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_try") 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; } &&
9898 { ac_try='test -s conftest$ac_exeext'
9899 { (case "(($ac_try" in
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9902 esac
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_try") 2>&5
9905 ac_status=$?
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; }; then
9908 ac_cv_lib_dl_dlopen=yes
9909 else
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9913 ac_cv_lib_dl_dlopen=no
9916 rm -f core conftest.err conftest.$ac_objext \
9917 conftest$ac_exeext conftest.$ac_ext
9918 LIBS=$ac_check_lib_save_LIBS
9920 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9921 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9922 if test $ac_cv_lib_dl_dlopen = yes; then
9924 cat >>confdefs.h <<\_ACEOF
9925 #define HAVE_LIBDL 1
9926 _ACEOF
9928 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9929 else
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h. */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9936 #if HAVE_DLFCN_H
9937 # include <dlfcn.h>
9938 #endif
9941 main ()
9943 dlopen(0, 0);
9945 return 0;
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9950 case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9983 cat >>confdefs.h <<\_ACEOF
9984 #define HAVE_LIBDL 1
9985 _ACEOF
9986 libltdl_cv_func_dlopen="yes"
9987 else
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9992 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9993 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 else
9996 ac_check_lib_save_LIBS=$LIBS
9997 LIBS="-lsvld $LIBS"
9998 cat >conftest.$ac_ext <<_ACEOF
9999 /* confdefs.h. */
10000 _ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10005 /* Override any GCC internal prototype to avoid an error.
10006 Use char because int might match the return type of a GCC
10007 builtin and then its argument prototype would still apply. */
10008 #ifdef __cplusplus
10009 extern "C"
10010 #endif
10011 char dlopen ();
10013 main ()
10015 return dlopen ();
10017 return 0;
10019 _ACEOF
10020 rm -f conftest.$ac_objext conftest$ac_exeext
10021 if { (ac_try="$ac_link"
10022 case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10025 esac
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_link") 2>conftest.er1
10028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } &&
10034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10035 { (case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038 esac
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_try") 2>&5
10041 ac_status=$?
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048 esac
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_try") 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 ac_cv_lib_svld_dlopen=yes
10055 else
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_cv_lib_svld_dlopen=no
10062 rm -f core conftest.err conftest.$ac_objext \
10063 conftest$ac_exeext conftest.$ac_ext
10064 LIBS=$ac_check_lib_save_LIBS
10066 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10067 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10068 if test $ac_cv_lib_svld_dlopen = yes; then
10070 cat >>confdefs.h <<\_ACEOF
10071 #define HAVE_LIBDL 1
10072 _ACEOF
10074 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10075 else
10076 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10077 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10078 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081 ac_check_lib_save_LIBS=$LIBS
10082 LIBS="-ldld $LIBS"
10083 cat >conftest.$ac_ext <<_ACEOF
10084 /* confdefs.h. */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10090 /* Override any GCC internal prototype to avoid an error.
10091 Use char because int might match the return type of a GCC
10092 builtin and then its argument prototype would still apply. */
10093 #ifdef __cplusplus
10094 extern "C"
10095 #endif
10096 char dld_link ();
10098 main ()
10100 return dld_link ();
10102 return 0;
10104 _ACEOF
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (ac_try="$ac_link"
10107 case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10110 esac
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
10113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } &&
10119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10120 { (case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_try") 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; } &&
10129 { ac_try='test -s conftest$ac_exeext'
10130 { (case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10133 esac
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_try") 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 ac_cv_lib_dld_dld_link=yes
10140 else
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10144 ac_cv_lib_dld_dld_link=no
10147 rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10149 LIBS=$ac_check_lib_save_LIBS
10151 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10152 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10153 if test $ac_cv_lib_dld_dld_link = yes; then
10155 cat >>confdefs.h <<\_ACEOF
10156 #define HAVE_DLD 1
10157 _ACEOF
10159 LIBADD_DL="$LIBADD_DL -ldld"
10160 else
10161 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10162 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10163 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 else
10166 cat >conftest.$ac_ext <<_ACEOF
10167 /* confdefs.h. */
10168 _ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10174 #define _dyld_func_lookup innocuous__dyld_func_lookup
10176 /* System header to define __stub macros and hopefully few prototypes,
10177 which can conflict with char _dyld_func_lookup (); below.
10178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10179 <limits.h> exists even on freestanding compilers. */
10181 #ifdef __STDC__
10182 # include <limits.h>
10183 #else
10184 # include <assert.h>
10185 #endif
10187 #undef _dyld_func_lookup
10189 /* Override any GCC internal prototype to avoid an error.
10190 Use char because int might match the return type of a GCC
10191 builtin and then its argument prototype would still apply. */
10192 #ifdef __cplusplus
10193 extern "C"
10194 #endif
10195 char _dyld_func_lookup ();
10196 /* The GNU C library defines this for functions which it implements
10197 to always fail with ENOSYS. Some functions are actually named
10198 something starting with __ and the normal name is an alias. */
10199 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10200 choke me
10201 #endif
10204 main ()
10206 return _dyld_func_lookup ();
10208 return 0;
10210 _ACEOF
10211 rm -f conftest.$ac_objext conftest$ac_exeext
10212 if { (ac_try="$ac_link"
10213 case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_link") 2>conftest.er1
10219 ac_status=$?
10220 grep -v '^ *+' conftest.er1 >conftest.err
10221 rm -f conftest.er1
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
10225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10226 { (case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10229 esac
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_try") 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; } &&
10235 { ac_try='test -s conftest$ac_exeext'
10236 { (case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10239 esac
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_try") 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 ac_cv_func__dyld_func_lookup=yes
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 ac_cv_func__dyld_func_lookup=no
10253 rm -f core conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10256 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10257 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10258 if test $ac_cv_func__dyld_func_lookup = yes; then
10260 cat >>confdefs.h <<\_ACEOF
10261 #define HAVE_DYLD 1
10262 _ACEOF
10275 rm -f core conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
10287 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10288 then
10289 lt_save_LIBS="$LIBS"
10290 LIBS="$LIBS $LIBADD_DL"
10292 for ac_func in dlerror
10294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300 cat >conftest.$ac_ext <<_ACEOF
10301 /* confdefs.h. */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10308 #define $ac_func innocuous_$ac_func
10310 /* System header to define __stub macros and hopefully few prototypes,
10311 which can conflict with char $ac_func (); below.
10312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10313 <limits.h> exists even on freestanding compilers. */
10315 #ifdef __STDC__
10316 # include <limits.h>
10317 #else
10318 # include <assert.h>
10319 #endif
10321 #undef $ac_func
10323 /* Override any GCC internal prototype to avoid an error.
10324 Use char because int might match the return type of a GCC
10325 builtin and then its argument prototype would still apply. */
10326 #ifdef __cplusplus
10327 extern "C"
10328 #endif
10329 char $ac_func ();
10330 /* The GNU C library defines this for functions which it implements
10331 to always fail with ENOSYS. Some functions are actually named
10332 something starting with __ and the normal name is an alias. */
10333 #if defined __stub_$ac_func || defined __stub___$ac_func
10334 choke me
10335 #endif
10338 main ()
10340 return $ac_func ();
10342 return 0;
10344 _ACEOF
10345 rm -f conftest.$ac_objext conftest$ac_exeext
10346 if { (ac_try="$ac_link"
10347 case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10350 esac
10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352 (eval "$ac_link") 2>conftest.er1
10353 ac_status=$?
10354 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -f conftest.er1
10356 cat conftest.err >&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
10359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10360 { (case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_try") 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; } &&
10369 { ac_try='test -s conftest$ac_exeext'
10370 { (case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10373 esac
10374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_try") 2>&5
10376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
10379 eval "$as_ac_var=yes"
10380 else
10381 echo "$as_me: failed program was:" >&5
10382 sed 's/^/| /' conftest.$ac_ext >&5
10384 eval "$as_ac_var=no"
10387 rm -f core conftest.err conftest.$ac_objext \
10388 conftest$ac_exeext conftest.$ac_ext
10390 ac_res=`eval echo '${'$as_ac_var'}'`
10391 { echo "$as_me:$LINENO: result: $ac_res" >&5
10392 echo "${ECHO_T}$ac_res" >&6; }
10393 if test `eval echo '${'$as_ac_var'}'` = yes; then
10394 cat >>confdefs.h <<_ACEOF
10395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10396 _ACEOF
10399 done
10401 LIBS="$lt_save_LIBS"
10403 ac_ext=c
10404 ac_cpp='$CPP $CPPFLAGS'
10405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10411 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10412 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10413 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 else
10416 ac_cv_sys_symbol_underscore=no
10417 cat > conftest.$ac_ext <<EOF
10418 void nm_test_func(){}
10419 int main(){nm_test_func;return 0;}
10421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422 (eval $ac_compile) 2>&5
10423 ac_status=$?
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; then
10426 # Now try to grab the symbols.
10427 ac_nlist=conftest.nm
10428 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10429 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } && test -s "$ac_nlist"; then
10433 # See whether the symbols have a leading underscore.
10434 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10435 ac_cv_sys_symbol_underscore=yes
10436 else
10437 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10439 else
10440 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10443 else
10444 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10446 else
10447 echo "configure: failed program was:" >&5
10448 cat conftest.c >&5
10450 rm -rf conftest*
10453 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10454 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10457 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10458 if test x"$libltdl_cv_func_dlopen" = xyes ||
10459 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10460 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10461 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10462 if test "${libltdl_cv_need_uscore+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465 libltdl_cv_need_uscore=unknown
10466 save_LIBS="$LIBS"
10467 LIBS="$LIBS $LIBADD_DL"
10468 if test "$cross_compiling" = yes; then :
10469 libltdl_cv_need_uscore=cross
10470 else
10471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10472 lt_status=$lt_dlunknown
10473 cat > conftest.$ac_ext <<EOF
10474 #line 10474 "configure"
10475 #include "confdefs.h"
10477 #if HAVE_DLFCN_H
10478 #include <dlfcn.h>
10479 #endif
10481 #include <stdio.h>
10483 #ifdef RTLD_GLOBAL
10484 # define LT_DLGLOBAL RTLD_GLOBAL
10485 #else
10486 # ifdef DL_GLOBAL
10487 # define LT_DLGLOBAL DL_GLOBAL
10488 # else
10489 # define LT_DLGLOBAL 0
10490 # endif
10491 #endif
10493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10494 find out it does not work in some platform. */
10495 #ifndef LT_DLLAZY_OR_NOW
10496 # ifdef RTLD_LAZY
10497 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10498 # else
10499 # ifdef DL_LAZY
10500 # define LT_DLLAZY_OR_NOW DL_LAZY
10501 # else
10502 # ifdef RTLD_NOW
10503 # define LT_DLLAZY_OR_NOW RTLD_NOW
10504 # else
10505 # ifdef DL_NOW
10506 # define LT_DLLAZY_OR_NOW DL_NOW
10507 # else
10508 # define LT_DLLAZY_OR_NOW 0
10509 # endif
10510 # endif
10511 # endif
10512 # endif
10513 #endif
10515 #ifdef __cplusplus
10516 extern "C" void exit (int);
10517 #endif
10519 void fnord() { int i=42;}
10520 int main ()
10522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10523 int status = $lt_dlunknown;
10525 if (self)
10527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10528 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10529 /* dlclose (self); */
10531 else
10532 puts (dlerror ());
10534 exit (status);
10537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10538 (eval $ac_link) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10542 (./conftest; exit; ) >&5 2>/dev/null
10543 lt_status=$?
10544 case x$lt_status in
10545 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10546 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10547 x$lt_dlunknown|x*) ;;
10548 esac
10549 else :
10550 # compilation failed
10554 rm -fr conftest*
10556 LIBS="$save_LIBS"
10559 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10560 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10564 if test x"$libltdl_cv_need_uscore" = xyes; then
10566 cat >>confdefs.h <<\_ACEOF
10567 #define NEED_USCORE 1
10568 _ACEOF
10573 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10574 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10575 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578 # PORTME does your system automatically load deplibs for dlopen?
10579 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10580 # For now, we just catch OSes we know something about -- in the
10581 # future, we'll try test this programmatically.
10582 libltdl_cv_sys_dlopen_deplibs=unknown
10583 case "$host_os" in
10584 aix3*|aix4.1.*|aix4.2.*)
10585 # Unknown whether this is true for these versions of AIX, but
10586 # we want this `case' here to explicitly catch those versions.
10587 libltdl_cv_sys_dlopen_deplibs=unknown
10589 aix[45]*)
10590 libltdl_cv_sys_dlopen_deplibs=yes
10592 darwin*)
10593 # Assuming the user has installed a libdl from somewhere, this is true
10594 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10595 libltdl_cv_sys_dlopen_deplibs=yes
10597 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10598 # GNU and its variants, using gnu ld.so (Glibc)
10599 libltdl_cv_sys_dlopen_deplibs=yes
10601 hpux10*|hpux11*)
10602 libltdl_cv_sys_dlopen_deplibs=yes
10604 interix*)
10605 libltdl_cv_sys_dlopen_deplibs=yes
10607 irix[12345]*|irix6.[01]*)
10608 # Catch all versions of IRIX before 6.2, and indicate that we don't
10609 # know how it worked for any of those versions.
10610 libltdl_cv_sys_dlopen_deplibs=unknown
10612 irix*)
10613 # The case above catches anything before 6.2, and it's known that
10614 # at 6.2 and later dlopen does load deplibs.
10615 libltdl_cv_sys_dlopen_deplibs=yes
10617 netbsd*)
10618 libltdl_cv_sys_dlopen_deplibs=yes
10620 openbsd*)
10621 libltdl_cv_sys_dlopen_deplibs=yes
10623 osf[1234]*)
10624 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10625 # it did *not* use an RPATH in a shared library to find objects the
10626 # library depends on, so we explicitly say `no'.
10627 libltdl_cv_sys_dlopen_deplibs=no
10629 osf5.0|osf5.0a|osf5.1)
10630 # dlopen *does* load deplibs and with the right loader patch applied
10631 # it even uses RPATH in a shared library to search for shared objects
10632 # that the library depends on, but there's no easy way to know if that
10633 # patch is installed. Since this is the case, all we can really
10634 # say is unknown -- it depends on the patch being installed. If
10635 # it is, this changes to `yes'. Without it, it would be `no'.
10636 libltdl_cv_sys_dlopen_deplibs=unknown
10638 osf*)
10639 # the two cases above should catch all versions of osf <= 5.1. Read
10640 # the comments above for what we know about them.
10641 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10642 # is used to find them so we can finally say `yes'.
10643 libltdl_cv_sys_dlopen_deplibs=yes
10645 solaris*)
10646 libltdl_cv_sys_dlopen_deplibs=yes
10648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10649 libltdl_cv_sys_dlopen_deplibs=yes
10651 esac
10654 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10655 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10656 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10658 cat >>confdefs.h <<\_ACEOF
10659 #define LTDL_DLOPEN_DEPLIBS 1
10660 _ACEOF
10665 for ac_header in argz.h
10667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 ac_res=`eval echo '${'$as_ac_Header'}'`
10675 { echo "$as_me:$LINENO: result: $ac_res" >&5
10676 echo "${ECHO_T}$ac_res" >&6; }
10677 else
10678 # Is the header compilable?
10679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10681 cat >conftest.$ac_ext <<_ACEOF
10682 /* confdefs.h. */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687 $ac_includes_default
10688 #include <$ac_header>
10689 _ACEOF
10690 rm -f conftest.$ac_objext
10691 if { (ac_try="$ac_compile"
10692 case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695 esac
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_compile") 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } &&
10704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10705 { (case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708 esac
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_try") 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try='test -s conftest.$ac_objext'
10715 { (case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10718 esac
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_try") 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; }; then
10724 ac_header_compiler=yes
10725 else
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10729 ac_header_compiler=no
10732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10734 echo "${ECHO_T}$ac_header_compiler" >&6; }
10736 # Is the header present?
10737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10739 cat >conftest.$ac_ext <<_ACEOF
10740 /* confdefs.h. */
10741 _ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10745 #include <$ac_header>
10746 _ACEOF
10747 if { (ac_try="$ac_cpp conftest.$ac_ext"
10748 case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10751 esac
10752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10754 ac_status=$?
10755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } >/dev/null; then
10760 if test -s conftest.err; then
10761 ac_cpp_err=$ac_c_preproc_warn_flag
10762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10763 else
10764 ac_cpp_err=
10766 else
10767 ac_cpp_err=yes
10769 if test -z "$ac_cpp_err"; then
10770 ac_header_preproc=yes
10771 else
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_header_preproc=no
10778 rm -f conftest.err conftest.$ac_ext
10779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10780 echo "${ECHO_T}$ac_header_preproc" >&6; }
10782 # So? What about this header?
10783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10784 yes:no: )
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10789 ac_header_preproc=yes
10791 no:yes:* )
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10804 ( cat <<\_ASBOX
10805 ## ----------------------------------- ##
10806 ## Report this to llvmbugs@cs.uiuc.edu ##
10807 ## ----------------------------------- ##
10808 _ASBOX
10809 ) | sed "s/^/$as_me: WARNING: /" >&2
10811 esac
10812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817 eval "$as_ac_Header=\$ac_header_preproc"
10819 ac_res=`eval echo '${'$as_ac_Header'}'`
10820 { echo "$as_me:$LINENO: result: $ac_res" >&5
10821 echo "${ECHO_T}$ac_res" >&6; }
10824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10825 cat >>confdefs.h <<_ACEOF
10826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10827 _ACEOF
10831 done
10834 { echo "$as_me:$LINENO: checking for error_t" >&5
10835 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10836 if test "${ac_cv_type_error_t+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839 cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h. */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10845 #if HAVE_ARGZ_H
10846 # include <argz.h>
10847 #endif
10849 typedef error_t ac__type_new_;
10851 main ()
10853 if ((ac__type_new_ *) 0)
10854 return 0;
10855 if (sizeof (ac__type_new_))
10856 return 0;
10858 return 0;
10860 _ACEOF
10861 rm -f conftest.$ac_objext
10862 if { (ac_try="$ac_compile"
10863 case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_compile") 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10876 { (case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10879 esac
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_try") 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest.$ac_objext'
10886 { (case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_try") 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895 ac_cv_type_error_t=yes
10896 else
10897 echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10900 ac_cv_type_error_t=no
10903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10905 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10906 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10907 if test $ac_cv_type_error_t = yes; then
10909 cat >>confdefs.h <<_ACEOF
10910 #define HAVE_ERROR_T 1
10911 _ACEOF
10914 else
10916 cat >>confdefs.h <<\_ACEOF
10917 #define error_t int
10918 _ACEOF
10928 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10931 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10933 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 else
10936 cat >conftest.$ac_ext <<_ACEOF
10937 /* confdefs.h. */
10938 _ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10944 #define $ac_func innocuous_$ac_func
10946 /* System header to define __stub macros and hopefully few prototypes,
10947 which can conflict with char $ac_func (); below.
10948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10949 <limits.h> exists even on freestanding compilers. */
10951 #ifdef __STDC__
10952 # include <limits.h>
10953 #else
10954 # include <assert.h>
10955 #endif
10957 #undef $ac_func
10959 /* Override any GCC internal prototype to avoid an error.
10960 Use char because int might match the return type of a GCC
10961 builtin and then its argument prototype would still apply. */
10962 #ifdef __cplusplus
10963 extern "C"
10964 #endif
10965 char $ac_func ();
10966 /* The GNU C library defines this for functions which it implements
10967 to always fail with ENOSYS. Some functions are actually named
10968 something starting with __ and the normal name is an alias. */
10969 #if defined __stub_$ac_func || defined __stub___$ac_func
10970 choke me
10971 #endif
10974 main ()
10976 return $ac_func ();
10978 return 0;
10980 _ACEOF
10981 rm -f conftest.$ac_objext conftest$ac_exeext
10982 if { (ac_try="$ac_link"
10983 case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10986 esac
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_link") 2>conftest.er1
10989 ac_status=$?
10990 grep -v '^ *+' conftest.er1 >conftest.err
10991 rm -f conftest.er1
10992 cat conftest.err >&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } &&
10995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10996 { (case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
10999 esac
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_try") 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; } &&
11005 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11015 eval "$as_ac_var=yes"
11016 else
11017 echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11020 eval "$as_ac_var=no"
11023 rm -f core conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext conftest.$ac_ext
11026 ac_res=`eval echo '${'$as_ac_var'}'`
11027 { echo "$as_me:$LINENO: result: $ac_res" >&5
11028 echo "${ECHO_T}$ac_res" >&6; }
11029 if test `eval echo '${'$as_ac_var'}'` = yes; then
11030 cat >>confdefs.h <<_ACEOF
11031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11032 _ACEOF
11035 done
11064 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11065 stdio.h unistd.h
11067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 ac_res=`eval echo '${'$as_ac_Header'}'`
11075 { echo "$as_me:$LINENO: result: $ac_res" >&5
11076 echo "${ECHO_T}$ac_res" >&6; }
11077 else
11078 # Is the header compilable?
11079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11081 cat >conftest.$ac_ext <<_ACEOF
11082 /* confdefs.h. */
11083 _ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087 $ac_includes_default
11088 #include <$ac_header>
11089 _ACEOF
11090 rm -f conftest.$ac_objext
11091 if { (ac_try="$ac_compile"
11092 case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11095 esac
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_compile") 2>conftest.er1
11098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } &&
11104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11108 esac
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; } &&
11114 { ac_try='test -s conftest.$ac_objext'
11115 { (case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11118 esac
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_try") 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 ac_header_compiler=yes
11125 else
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11129 ac_header_compiler=no
11132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11134 echo "${ECHO_T}$ac_header_compiler" >&6; }
11136 # Is the header present?
11137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h. */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 #include <$ac_header>
11146 _ACEOF
11147 if { (ac_try="$ac_cpp conftest.$ac_ext"
11148 case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11151 esac
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11154 ac_status=$?
11155 grep -v '^ *+' conftest.er1 >conftest.err
11156 rm -f conftest.er1
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } >/dev/null; then
11160 if test -s conftest.err; then
11161 ac_cpp_err=$ac_c_preproc_warn_flag
11162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11163 else
11164 ac_cpp_err=
11166 else
11167 ac_cpp_err=yes
11169 if test -z "$ac_cpp_err"; then
11170 ac_header_preproc=yes
11171 else
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11175 ac_header_preproc=no
11178 rm -f conftest.err conftest.$ac_ext
11179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11180 echo "${ECHO_T}$ac_header_preproc" >&6; }
11182 # So? What about this header?
11183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11184 yes:no: )
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11189 ac_header_preproc=yes
11191 no:yes:* )
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11204 ( cat <<\_ASBOX
11205 ## ----------------------------------- ##
11206 ## Report this to llvmbugs@cs.uiuc.edu ##
11207 ## ----------------------------------- ##
11208 _ASBOX
11209 ) | sed "s/^/$as_me: WARNING: /" >&2
11211 esac
11212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217 eval "$as_ac_Header=\$ac_header_preproc"
11219 ac_res=`eval echo '${'$as_ac_Header'}'`
11220 { echo "$as_me:$LINENO: result: $ac_res" >&5
11221 echo "${ECHO_T}$ac_res" >&6; }
11224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11225 cat >>confdefs.h <<_ACEOF
11226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11227 _ACEOF
11231 done
11237 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 ac_res=`eval echo '${'$as_ac_Header'}'`
11247 { echo "$as_me:$LINENO: result: $ac_res" >&5
11248 echo "${ECHO_T}$ac_res" >&6; }
11249 else
11250 # Is the header compilable?
11251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11253 cat >conftest.$ac_ext <<_ACEOF
11254 /* confdefs.h. */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 $ac_includes_default
11260 #include <$ac_header>
11261 _ACEOF
11262 rm -f conftest.$ac_objext
11263 if { (ac_try="$ac_compile"
11264 case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11267 esac
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_compile") 2>conftest.er1
11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } &&
11276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; } &&
11286 { ac_try='test -s conftest.$ac_objext'
11287 { (case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290 esac
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_try") 2>&5
11293 ac_status=$?
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 ac_header_compiler=yes
11297 else
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 ac_header_compiler=no
11304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11306 echo "${ECHO_T}$ac_header_compiler" >&6; }
11308 # Is the header present?
11309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h. */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 #include <$ac_header>
11318 _ACEOF
11319 if { (ac_try="$ac_cpp conftest.$ac_ext"
11320 case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11323 esac
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11326 ac_status=$?
11327 grep -v '^ *+' conftest.er1 >conftest.err
11328 rm -f conftest.er1
11329 cat conftest.err >&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } >/dev/null; then
11332 if test -s conftest.err; then
11333 ac_cpp_err=$ac_c_preproc_warn_flag
11334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11335 else
11336 ac_cpp_err=
11338 else
11339 ac_cpp_err=yes
11341 if test -z "$ac_cpp_err"; then
11342 ac_header_preproc=yes
11343 else
11344 echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11347 ac_header_preproc=no
11350 rm -f conftest.err conftest.$ac_ext
11351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11352 echo "${ECHO_T}$ac_header_preproc" >&6; }
11354 # So? What about this header?
11355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11356 yes:no: )
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11361 ac_header_preproc=yes
11363 no:yes:* )
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11376 ( cat <<\_ASBOX
11377 ## ----------------------------------- ##
11378 ## Report this to llvmbugs@cs.uiuc.edu ##
11379 ## ----------------------------------- ##
11380 _ASBOX
11381 ) | sed "s/^/$as_me: WARNING: /" >&2
11383 esac
11384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 else
11389 eval "$as_ac_Header=\$ac_header_preproc"
11391 ac_res=`eval echo '${'$as_ac_Header'}'`
11392 { echo "$as_me:$LINENO: result: $ac_res" >&5
11393 echo "${ECHO_T}$ac_res" >&6; }
11396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11397 cat >>confdefs.h <<_ACEOF
11398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11399 _ACEOF
11403 done
11407 for ac_header in string.h strings.h
11409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 ac_res=`eval echo '${'$as_ac_Header'}'`
11417 { echo "$as_me:$LINENO: result: $ac_res" >&5
11418 echo "${ECHO_T}$ac_res" >&6; }
11419 else
11420 # Is the header compilable?
11421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11423 cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h. */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 $ac_includes_default
11430 #include <$ac_header>
11431 _ACEOF
11432 rm -f conftest.$ac_objext
11433 if { (ac_try="$ac_compile"
11434 case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_compile") 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450 esac
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_try") 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest.$ac_objext'
11457 { (case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11460 esac
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_try") 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 ac_header_compiler=yes
11467 else
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 ac_header_compiler=no
11474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11476 echo "${ECHO_T}$ac_header_compiler" >&6; }
11478 # Is the header present?
11479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11481 cat >conftest.$ac_ext <<_ACEOF
11482 /* confdefs.h. */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 #include <$ac_header>
11488 _ACEOF
11489 if { (ac_try="$ac_cpp conftest.$ac_ext"
11490 case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493 esac
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11496 ac_status=$?
11497 grep -v '^ *+' conftest.er1 >conftest.err
11498 rm -f conftest.er1
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } >/dev/null; then
11502 if test -s conftest.err; then
11503 ac_cpp_err=$ac_c_preproc_warn_flag
11504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11505 else
11506 ac_cpp_err=
11508 else
11509 ac_cpp_err=yes
11511 if test -z "$ac_cpp_err"; then
11512 ac_header_preproc=yes
11513 else
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ac_header_preproc=no
11520 rm -f conftest.err conftest.$ac_ext
11521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11522 echo "${ECHO_T}$ac_header_preproc" >&6; }
11524 # So? What about this header?
11525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11526 yes:no: )
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11531 ac_header_preproc=yes
11533 no:yes:* )
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11546 ( cat <<\_ASBOX
11547 ## ----------------------------------- ##
11548 ## Report this to llvmbugs@cs.uiuc.edu ##
11549 ## ----------------------------------- ##
11550 _ASBOX
11551 ) | sed "s/^/$as_me: WARNING: /" >&2
11553 esac
11554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559 eval "$as_ac_Header=\$ac_header_preproc"
11561 ac_res=`eval echo '${'$as_ac_Header'}'`
11562 { echo "$as_me:$LINENO: result: $ac_res" >&5
11563 echo "${ECHO_T}$ac_res" >&6; }
11566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11567 cat >>confdefs.h <<_ACEOF
11568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11569 _ACEOF
11570 break
11573 done
11578 for ac_func in strchr index
11580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 else
11586 cat >conftest.$ac_ext <<_ACEOF
11587 /* confdefs.h. */
11588 _ACEOF
11589 cat confdefs.h >>conftest.$ac_ext
11590 cat >>conftest.$ac_ext <<_ACEOF
11591 /* end confdefs.h. */
11592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11594 #define $ac_func innocuous_$ac_func
11596 /* System header to define __stub macros and hopefully few prototypes,
11597 which can conflict with char $ac_func (); below.
11598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11599 <limits.h> exists even on freestanding compilers. */
11601 #ifdef __STDC__
11602 # include <limits.h>
11603 #else
11604 # include <assert.h>
11605 #endif
11607 #undef $ac_func
11609 /* Override any GCC internal prototype to avoid an error.
11610 Use char because int might match the return type of a GCC
11611 builtin and then its argument prototype would still apply. */
11612 #ifdef __cplusplus
11613 extern "C"
11614 #endif
11615 char $ac_func ();
11616 /* The GNU C library defines this for functions which it implements
11617 to always fail with ENOSYS. Some functions are actually named
11618 something starting with __ and the normal name is an alias. */
11619 #if defined __stub_$ac_func || defined __stub___$ac_func
11620 choke me
11621 #endif
11624 main ()
11626 return $ac_func ();
11628 return 0;
11630 _ACEOF
11631 rm -f conftest.$ac_objext conftest$ac_exeext
11632 if { (ac_try="$ac_link"
11633 case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11636 esac
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_link") 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11646 { (case "(($ac_try" in
11647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648 *) ac_try_echo=$ac_try;;
11649 esac
11650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651 (eval "$ac_try") 2>&5
11652 ac_status=$?
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; } &&
11655 { ac_try='test -s conftest$ac_exeext'
11656 { (case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659 esac
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_try") 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 eval "$as_ac_var=yes"
11666 else
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11670 eval "$as_ac_var=no"
11673 rm -f core conftest.err conftest.$ac_objext \
11674 conftest$ac_exeext conftest.$ac_ext
11676 ac_res=`eval echo '${'$as_ac_var'}'`
11677 { echo "$as_me:$LINENO: result: $ac_res" >&5
11678 echo "${ECHO_T}$ac_res" >&6; }
11679 if test `eval echo '${'$as_ac_var'}'` = yes; then
11680 cat >>confdefs.h <<_ACEOF
11681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11682 _ACEOF
11683 break
11685 done
11689 for ac_func in strrchr rindex
11691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11692 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11696 else
11697 cat >conftest.$ac_ext <<_ACEOF
11698 /* confdefs.h. */
11699 _ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h. */
11703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11705 #define $ac_func innocuous_$ac_func
11707 /* System header to define __stub macros and hopefully few prototypes,
11708 which can conflict with char $ac_func (); below.
11709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11710 <limits.h> exists even on freestanding compilers. */
11712 #ifdef __STDC__
11713 # include <limits.h>
11714 #else
11715 # include <assert.h>
11716 #endif
11718 #undef $ac_func
11720 /* Override any GCC internal prototype to avoid an error.
11721 Use char because int might match the return type of a GCC
11722 builtin and then its argument prototype would still apply. */
11723 #ifdef __cplusplus
11724 extern "C"
11725 #endif
11726 char $ac_func ();
11727 /* The GNU C library defines this for functions which it implements
11728 to always fail with ENOSYS. Some functions are actually named
11729 something starting with __ and the normal name is an alias. */
11730 #if defined __stub_$ac_func || defined __stub___$ac_func
11731 choke me
11732 #endif
11735 main ()
11737 return $ac_func ();
11739 return 0;
11741 _ACEOF
11742 rm -f conftest.$ac_objext conftest$ac_exeext
11743 if { (ac_try="$ac_link"
11744 case "(($ac_try" in
11745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 *) ac_try_echo=$ac_try;;
11747 esac
11748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749 (eval "$ac_link") 2>conftest.er1
11750 ac_status=$?
11751 grep -v '^ *+' conftest.er1 >conftest.err
11752 rm -f conftest.er1
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11757 { (case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760 esac
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_try") 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest$ac_exeext'
11767 { (case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11770 esac
11771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772 (eval "$ac_try") 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; }; then
11776 eval "$as_ac_var=yes"
11777 else
11778 echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11781 eval "$as_ac_var=no"
11784 rm -f core conftest.err conftest.$ac_objext \
11785 conftest$ac_exeext conftest.$ac_ext
11787 ac_res=`eval echo '${'$as_ac_var'}'`
11788 { echo "$as_me:$LINENO: result: $ac_res" >&5
11789 echo "${ECHO_T}$ac_res" >&6; }
11790 if test `eval echo '${'$as_ac_var'}'` = yes; then
11791 cat >>confdefs.h <<_ACEOF
11792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11793 _ACEOF
11794 break
11796 done
11800 for ac_func in memcpy bcopy
11802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 else
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h. */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11816 #define $ac_func innocuous_$ac_func
11818 /* System header to define __stub macros and hopefully few prototypes,
11819 which can conflict with char $ac_func (); below.
11820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11821 <limits.h> exists even on freestanding compilers. */
11823 #ifdef __STDC__
11824 # include <limits.h>
11825 #else
11826 # include <assert.h>
11827 #endif
11829 #undef $ac_func
11831 /* Override any GCC internal prototype to avoid an error.
11832 Use char because int might match the return type of a GCC
11833 builtin and then its argument prototype would still apply. */
11834 #ifdef __cplusplus
11835 extern "C"
11836 #endif
11837 char $ac_func ();
11838 /* The GNU C library defines this for functions which it implements
11839 to always fail with ENOSYS. Some functions are actually named
11840 something starting with __ and the normal name is an alias. */
11841 #if defined __stub_$ac_func || defined __stub___$ac_func
11842 choke me
11843 #endif
11846 main ()
11848 return $ac_func ();
11850 return 0;
11852 _ACEOF
11853 rm -f conftest.$ac_objext conftest$ac_exeext
11854 if { (ac_try="$ac_link"
11855 case "(($ac_try" in
11856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857 *) ac_try_echo=$ac_try;;
11858 esac
11859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860 (eval "$ac_link") 2>conftest.er1
11861 ac_status=$?
11862 grep -v '^ *+' conftest.er1 >conftest.err
11863 rm -f conftest.er1
11864 cat conftest.err >&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } &&
11867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11868 { (case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871 esac
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_try") 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; } &&
11877 { ac_try='test -s conftest$ac_exeext'
11878 { (case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11881 esac
11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883 (eval "$ac_try") 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11887 eval "$as_ac_var=yes"
11888 else
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11892 eval "$as_ac_var=no"
11895 rm -f core conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11898 ac_res=`eval echo '${'$as_ac_var'}'`
11899 { echo "$as_me:$LINENO: result: $ac_res" >&5
11900 echo "${ECHO_T}$ac_res" >&6; }
11901 if test `eval echo '${'$as_ac_var'}'` = yes; then
11902 cat >>confdefs.h <<_ACEOF
11903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11904 _ACEOF
11905 break
11907 done
11911 for ac_func in memmove strcmp
11913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919 cat >conftest.$ac_ext <<_ACEOF
11920 /* confdefs.h. */
11921 _ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11927 #define $ac_func innocuous_$ac_func
11929 /* System header to define __stub macros and hopefully few prototypes,
11930 which can conflict with char $ac_func (); below.
11931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11932 <limits.h> exists even on freestanding compilers. */
11934 #ifdef __STDC__
11935 # include <limits.h>
11936 #else
11937 # include <assert.h>
11938 #endif
11940 #undef $ac_func
11942 /* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11945 #ifdef __cplusplus
11946 extern "C"
11947 #endif
11948 char $ac_func ();
11949 /* The GNU C library defines this for functions which it implements
11950 to always fail with ENOSYS. Some functions are actually named
11951 something starting with __ and the normal name is an alias. */
11952 #if defined __stub_$ac_func || defined __stub___$ac_func
11953 choke me
11954 #endif
11957 main ()
11959 return $ac_func ();
11961 return 0;
11963 _ACEOF
11964 rm -f conftest.$ac_objext conftest$ac_exeext
11965 if { (ac_try="$ac_link"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969 esac
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_link") 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } &&
11978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11979 { (case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982 esac
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_try") 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; } &&
11988 { ac_try='test -s conftest$ac_exeext'
11989 { (case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992 esac
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_try") 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; }; then
11998 eval "$as_ac_var=yes"
11999 else
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12003 eval "$as_ac_var=no"
12006 rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12009 ac_res=`eval echo '${'$as_ac_var'}'`
12010 { echo "$as_me:$LINENO: result: $ac_res" >&5
12011 echo "${ECHO_T}$ac_res" >&6; }
12012 if test `eval echo '${'$as_ac_var'}'` = yes; then
12013 cat >>confdefs.h <<_ACEOF
12014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12015 _ACEOF
12018 done
12023 for ac_func in closedir opendir readdir
12025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 else
12031 cat >conftest.$ac_ext <<_ACEOF
12032 /* confdefs.h. */
12033 _ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12039 #define $ac_func innocuous_$ac_func
12041 /* System header to define __stub macros and hopefully few prototypes,
12042 which can conflict with char $ac_func (); below.
12043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12044 <limits.h> exists even on freestanding compilers. */
12046 #ifdef __STDC__
12047 # include <limits.h>
12048 #else
12049 # include <assert.h>
12050 #endif
12052 #undef $ac_func
12054 /* Override any GCC internal prototype to avoid an error.
12055 Use char because int might match the return type of a GCC
12056 builtin and then its argument prototype would still apply. */
12057 #ifdef __cplusplus
12058 extern "C"
12059 #endif
12060 char $ac_func ();
12061 /* The GNU C library defines this for functions which it implements
12062 to always fail with ENOSYS. Some functions are actually named
12063 something starting with __ and the normal name is an alias. */
12064 #if defined __stub_$ac_func || defined __stub___$ac_func
12065 choke me
12066 #endif
12069 main ()
12071 return $ac_func ();
12073 return 0;
12075 _ACEOF
12076 rm -f conftest.$ac_objext conftest$ac_exeext
12077 if { (ac_try="$ac_link"
12078 case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_link") 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } &&
12090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12091 { (case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12094 esac
12095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096 (eval "$ac_try") 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; } &&
12100 { ac_try='test -s conftest$ac_exeext'
12101 { (case "(($ac_try" in
12102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103 *) ac_try_echo=$ac_try;;
12104 esac
12105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106 (eval "$ac_try") 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 eval "$as_ac_var=yes"
12111 else
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12115 eval "$as_ac_var=no"
12118 rm -f core conftest.err conftest.$ac_objext \
12119 conftest$ac_exeext conftest.$ac_ext
12121 ac_res=`eval echo '${'$as_ac_var'}'`
12122 { echo "$as_me:$LINENO: result: $ac_res" >&5
12123 echo "${ECHO_T}$ac_res" >&6; }
12124 if test `eval echo '${'$as_ac_var'}'` = yes; then
12125 cat >>confdefs.h <<_ACEOF
12126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12127 _ACEOF
12130 done
12134 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12135 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12137 ICC=no
12138 IXX=no
12139 case $CC in
12140 icc*|icpc*)
12141 ICC=yes
12142 IXX=yes
12146 esac
12148 if test "$GCC" != "yes" && test "$ICC" != "yes"
12149 then
12150 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12151 echo "$as_me: error: gcc|icc required but not found" >&2;}
12152 { (exit 1); exit 1; }; }
12155 if test "$GXX" != "yes" && test "$IXX" != "yes"
12156 then
12157 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12158 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12159 { (exit 1); exit 1; }; }
12162 if test "$GCC" = "yes"
12163 then
12164 cat >conftest.$ac_ext <<_ACEOF
12165 #if !defined(__GNUC__) || __GNUC__ < 3
12166 #error Unsupported GCC version
12167 #endif
12169 _ACEOF
12170 rm -f conftest.$ac_objext
12171 if { (ac_try="$ac_compile"
12172 case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12175 esac
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_compile") 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12185 { (case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12188 esac
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_try") 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest.$ac_objext'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; }; then
12205 else
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12209 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12210 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12211 { (exit 1); exit 1; }; }
12214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217 if test -z "$llvm_cv_gnu_make_command"
12218 then
12219 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12220 echo "$as_me: error: GNU Make required but not found" >&2;}
12221 { (exit 1); exit 1; }; }
12224 { echo "$as_me:$LINENO: result: ok" >&5
12225 echo "${ECHO_T}ok" >&6; }
12227 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12228 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12229 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12231 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12233 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12234 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12238 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12239 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12240 if test "${ac_cv_lib_m_sin+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243 ac_check_lib_save_LIBS=$LIBS
12244 LIBS="-lm $LIBS"
12245 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h. */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12252 /* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
12255 #ifdef __cplusplus
12256 extern "C"
12257 #endif
12258 char sin ();
12260 main ()
12262 return sin ();
12264 return 0;
12266 _ACEOF
12267 rm -f conftest.$ac_objext conftest$ac_exeext
12268 if { (ac_try="$ac_link"
12269 case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12272 esac
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_link") 2>conftest.er1
12275 ac_status=$?
12276 grep -v '^ *+' conftest.er1 >conftest.err
12277 rm -f conftest.er1
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
12281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12282 { (case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12285 esac
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_try") 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest$ac_exeext'
12292 { (case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12295 esac
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_try") 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301 ac_cv_lib_m_sin=yes
12302 else
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12306 ac_cv_lib_m_sin=no
12309 rm -f core conftest.err conftest.$ac_objext \
12310 conftest$ac_exeext conftest.$ac_ext
12311 LIBS=$ac_check_lib_save_LIBS
12313 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12314 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12315 if test $ac_cv_lib_m_sin = yes; then
12316 cat >>confdefs.h <<_ACEOF
12317 #define HAVE_LIBM 1
12318 _ACEOF
12320 LIBS="-lm $LIBS"
12324 if test "$llvm_cv_os_type" = "MingW" ; then
12326 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12327 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12328 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331 ac_check_lib_save_LIBS=$LIBS
12332 LIBS="-limagehlp $LIBS"
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h. */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12342 main ()
12344 return main ();
12346 return 0;
12348 _ACEOF
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (ac_try="$ac_link"
12351 case "(($ac_try" in
12352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353 *) ac_try_echo=$ac_try;;
12354 esac
12355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356 (eval "$ac_link") 2>conftest.er1
12357 ac_status=$?
12358 grep -v '^ *+' conftest.er1 >conftest.err
12359 rm -f conftest.er1
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12364 { (case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12367 esac
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_try") 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; } &&
12373 { ac_try='test -s conftest$ac_exeext'
12374 { (case "(($ac_try" in
12375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12376 *) ac_try_echo=$ac_try;;
12377 esac
12378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379 (eval "$ac_try") 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_cv_lib_imagehlp_main=yes
12384 else
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12388 ac_cv_lib_imagehlp_main=no
12391 rm -f core conftest.err conftest.$ac_objext \
12392 conftest$ac_exeext conftest.$ac_ext
12393 LIBS=$ac_check_lib_save_LIBS
12395 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12396 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12397 if test $ac_cv_lib_imagehlp_main = yes; then
12398 cat >>confdefs.h <<_ACEOF
12399 #define HAVE_LIBIMAGEHLP 1
12400 _ACEOF
12402 LIBS="-limagehlp $LIBS"
12407 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12408 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12409 if test "${ac_cv_lib_psapi_main+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 else
12412 ac_check_lib_save_LIBS=$LIBS
12413 LIBS="-lpsapi $LIBS"
12414 cat >conftest.$ac_ext <<_ACEOF
12415 /* confdefs.h. */
12416 _ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12423 main ()
12425 return main ();
12427 return 0;
12429 _ACEOF
12430 rm -f conftest.$ac_objext conftest$ac_exeext
12431 if { (ac_try="$ac_link"
12432 case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12435 esac
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_link") 2>conftest.er1
12438 ac_status=$?
12439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12445 { (case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12448 esac
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_try") 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest$ac_exeext'
12455 { (case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12458 esac
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_try") 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 ac_cv_lib_psapi_main=yes
12465 else
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12469 ac_cv_lib_psapi_main=no
12472 rm -f core conftest.err conftest.$ac_objext \
12473 conftest$ac_exeext conftest.$ac_ext
12474 LIBS=$ac_check_lib_save_LIBS
12476 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12477 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12478 if test $ac_cv_lib_psapi_main = yes; then
12479 cat >>confdefs.h <<_ACEOF
12480 #define HAVE_LIBPSAPI 1
12481 _ACEOF
12483 LIBS="-lpsapi $LIBS"
12489 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12490 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12491 if test "${ac_cv_search_dlopen+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494 ac_func_search_save_LIBS=$LIBS
12495 cat >conftest.$ac_ext <<_ACEOF
12496 /* confdefs.h. */
12497 _ACEOF
12498 cat confdefs.h >>conftest.$ac_ext
12499 cat >>conftest.$ac_ext <<_ACEOF
12500 /* end confdefs.h. */
12502 /* Override any GCC internal prototype to avoid an error.
12503 Use char because int might match the return type of a GCC
12504 builtin and then its argument prototype would still apply. */
12505 #ifdef __cplusplus
12506 extern "C"
12507 #endif
12508 char dlopen ();
12510 main ()
12512 return dlopen ();
12514 return 0;
12516 _ACEOF
12517 for ac_lib in '' dl; do
12518 if test -z "$ac_lib"; then
12519 ac_res="none required"
12520 else
12521 ac_res=-l$ac_lib
12522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (ac_try="$ac_link"
12526 case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12529 esac
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_link") 2>conftest.er1
12532 ac_status=$?
12533 grep -v '^ *+' conftest.er1 >conftest.err
12534 rm -f conftest.er1
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12539 { (case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12542 esac
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_try") 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; } &&
12548 { ac_try='test -s conftest$ac_exeext'
12549 { (case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12552 esac
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_try") 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 ac_cv_search_dlopen=$ac_res
12559 else
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12566 rm -f core conftest.err conftest.$ac_objext \
12567 conftest$ac_exeext
12568 if test "${ac_cv_search_dlopen+set}" = set; then
12569 break
12571 done
12572 if test "${ac_cv_search_dlopen+set}" = set; then
12574 else
12575 ac_cv_search_dlopen=no
12577 rm conftest.$ac_ext
12578 LIBS=$ac_func_search_save_LIBS
12580 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12581 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12582 ac_res=$ac_cv_search_dlopen
12583 if test "$ac_res" != no; then
12584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12586 cat >>confdefs.h <<\_ACEOF
12587 #define HAVE_DLOPEN 1
12588 _ACEOF
12590 else
12591 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12592 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12596 if test "$llvm_cv_enable_libffi" = "yes" ; then
12597 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12598 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12599 if test "${ac_cv_search_ffi_call+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602 ac_func_search_save_LIBS=$LIBS
12603 cat >conftest.$ac_ext <<_ACEOF
12604 /* confdefs.h. */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12610 /* Override any GCC internal prototype to avoid an error.
12611 Use char because int might match the return type of a GCC
12612 builtin and then its argument prototype would still apply. */
12613 #ifdef __cplusplus
12614 extern "C"
12615 #endif
12616 char ffi_call ();
12618 main ()
12620 return ffi_call ();
12622 return 0;
12624 _ACEOF
12625 for ac_lib in '' ffi; do
12626 if test -z "$ac_lib"; then
12627 ac_res="none required"
12628 else
12629 ac_res=-l$ac_lib
12630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12632 rm -f conftest.$ac_objext conftest$ac_exeext
12633 if { (ac_try="$ac_link"
12634 case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12637 esac
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_link") 2>conftest.er1
12640 ac_status=$?
12641 grep -v '^ *+' conftest.er1 >conftest.err
12642 rm -f conftest.er1
12643 cat conftest.err >&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } &&
12646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12647 { (case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650 esac
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_try") 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest$ac_exeext'
12657 { (case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12660 esac
12661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662 (eval "$ac_try") 2>&5
12663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; }; then
12666 ac_cv_search_ffi_call=$ac_res
12667 else
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12674 rm -f core conftest.err conftest.$ac_objext \
12675 conftest$ac_exeext
12676 if test "${ac_cv_search_ffi_call+set}" = set; then
12677 break
12679 done
12680 if test "${ac_cv_search_ffi_call+set}" = set; then
12682 else
12683 ac_cv_search_ffi_call=no
12685 rm conftest.$ac_ext
12686 LIBS=$ac_func_search_save_LIBS
12688 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12689 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12690 ac_res=$ac_cv_search_ffi_call
12691 if test "$ac_res" != no; then
12692 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12694 cat >>confdefs.h <<\_ACEOF
12695 #define HAVE_FFI_CALL 1
12696 _ACEOF
12698 else
12699 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12700 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12701 { (exit 1); exit 1; }; }
12706 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12707 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12708 if test "${ac_cv_search_mallinfo+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 else
12711 ac_func_search_save_LIBS=$LIBS
12712 cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h. */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12719 /* Override any GCC internal prototype to avoid an error.
12720 Use char because int might match the return type of a GCC
12721 builtin and then its argument prototype would still apply. */
12722 #ifdef __cplusplus
12723 extern "C"
12724 #endif
12725 char mallinfo ();
12727 main ()
12729 return mallinfo ();
12731 return 0;
12733 _ACEOF
12734 for ac_lib in '' malloc; do
12735 if test -z "$ac_lib"; then
12736 ac_res="none required"
12737 else
12738 ac_res=-l$ac_lib
12739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12741 rm -f conftest.$ac_objext conftest$ac_exeext
12742 if { (ac_try="$ac_link"
12743 case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12746 esac
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_link") 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12756 { (case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12759 esac
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_try") 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; } &&
12765 { ac_try='test -s conftest$ac_exeext'
12766 { (case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12769 esac
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_try") 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_cv_search_mallinfo=$ac_res
12776 else
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext
12785 if test "${ac_cv_search_mallinfo+set}" = set; then
12786 break
12788 done
12789 if test "${ac_cv_search_mallinfo+set}" = set; then
12791 else
12792 ac_cv_search_mallinfo=no
12794 rm conftest.$ac_ext
12795 LIBS=$ac_func_search_save_LIBS
12797 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12798 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12799 ac_res=$ac_cv_search_mallinfo
12800 if test "$ac_res" != no; then
12801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12803 cat >>confdefs.h <<\_ACEOF
12804 #define HAVE_MALLINFO 1
12805 _ACEOF
12810 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12812 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12813 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12814 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817 ac_check_lib_save_LIBS=$LIBS
12818 LIBS="-lpthread $LIBS"
12819 cat >conftest.$ac_ext <<_ACEOF
12820 /* confdefs.h. */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h. */
12826 /* Override any GCC internal prototype to avoid an error.
12827 Use char because int might match the return type of a GCC
12828 builtin and then its argument prototype would still apply. */
12829 #ifdef __cplusplus
12830 extern "C"
12831 #endif
12832 char pthread_mutex_init ();
12834 main ()
12836 return pthread_mutex_init ();
12838 return 0;
12840 _ACEOF
12841 rm -f conftest.$ac_objext conftest$ac_exeext
12842 if { (ac_try="$ac_link"
12843 case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12846 esac
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_link") 2>conftest.er1
12849 ac_status=$?
12850 grep -v '^ *+' conftest.er1 >conftest.err
12851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12856 { (case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12859 esac
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_try") 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } &&
12865 { ac_try='test -s conftest$ac_exeext'
12866 { (case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12869 esac
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_try") 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 ac_cv_lib_pthread_pthread_mutex_init=yes
12876 else
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12880 ac_cv_lib_pthread_pthread_mutex_init=no
12883 rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LIBS=$ac_check_lib_save_LIBS
12887 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12888 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12889 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12890 cat >>confdefs.h <<_ACEOF
12891 #define HAVE_LIBPTHREAD 1
12892 _ACEOF
12894 LIBS="-lpthread $LIBS"
12898 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12899 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12900 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903 ac_func_search_save_LIBS=$LIBS
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h. */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12911 /* Override any GCC internal prototype to avoid an error.
12912 Use char because int might match the return type of a GCC
12913 builtin and then its argument prototype would still apply. */
12914 #ifdef __cplusplus
12915 extern "C"
12916 #endif
12917 char pthread_mutex_lock ();
12919 main ()
12921 return pthread_mutex_lock ();
12923 return 0;
12925 _ACEOF
12926 for ac_lib in '' pthread; do
12927 if test -z "$ac_lib"; then
12928 ac_res="none required"
12929 else
12930 ac_res=-l$ac_lib
12931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12933 rm -f conftest.$ac_objext conftest$ac_exeext
12934 if { (ac_try="$ac_link"
12935 case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12938 esac
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940 (eval "$ac_link") 2>conftest.er1
12941 ac_status=$?
12942 grep -v '^ *+' conftest.er1 >conftest.err
12943 rm -f conftest.er1
12944 cat conftest.err >&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } &&
12947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12948 { (case "(($ac_try" in
12949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950 *) ac_try_echo=$ac_try;;
12951 esac
12952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12953 (eval "$ac_try") 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; } &&
12957 { ac_try='test -s conftest$ac_exeext'
12958 { (case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12961 esac
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_try") 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12967 ac_cv_search_pthread_mutex_lock=$ac_res
12968 else
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12975 rm -f core conftest.err conftest.$ac_objext \
12976 conftest$ac_exeext
12977 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12978 break
12980 done
12981 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12983 else
12984 ac_cv_search_pthread_mutex_lock=no
12986 rm conftest.$ac_ext
12987 LIBS=$ac_func_search_save_LIBS
12989 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12990 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12991 ac_res=$ac_cv_search_pthread_mutex_lock
12992 if test "$ac_res" != no; then
12993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12995 cat >>confdefs.h <<\_ACEOF
12996 #define HAVE_PTHREAD_MUTEX_LOCK 1
12997 _ACEOF
13001 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13002 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13003 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 else
13006 ac_func_search_save_LIBS=$LIBS
13007 cat >conftest.$ac_ext <<_ACEOF
13008 /* confdefs.h. */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13014 /* Override any GCC internal prototype to avoid an error.
13015 Use char because int might match the return type of a GCC
13016 builtin and then its argument prototype would still apply. */
13017 #ifdef __cplusplus
13018 extern "C"
13019 #endif
13020 char pthread_rwlock_init ();
13022 main ()
13024 return pthread_rwlock_init ();
13026 return 0;
13028 _ACEOF
13029 for ac_lib in '' pthread; do
13030 if test -z "$ac_lib"; then
13031 ac_res="none required"
13032 else
13033 ac_res=-l$ac_lib
13034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13036 rm -f conftest.$ac_objext conftest$ac_exeext
13037 if { (ac_try="$ac_link"
13038 case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13041 esac
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_link") 2>conftest.er1
13044 ac_status=$?
13045 grep -v '^ *+' conftest.er1 >conftest.err
13046 rm -f conftest.er1
13047 cat conftest.err >&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
13050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13051 { (case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13054 esac
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_try") 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; } &&
13060 { ac_try='test -s conftest$ac_exeext'
13061 { (case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13064 esac
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_try") 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13070 ac_cv_search_pthread_rwlock_init=$ac_res
13071 else
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13078 rm -f core conftest.err conftest.$ac_objext \
13079 conftest$ac_exeext
13080 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13081 break
13083 done
13084 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13086 else
13087 ac_cv_search_pthread_rwlock_init=no
13089 rm conftest.$ac_ext
13090 LIBS=$ac_func_search_save_LIBS
13092 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13093 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13094 ac_res=$ac_cv_search_pthread_rwlock_init
13095 if test "$ac_res" != no; then
13096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13098 cat >>confdefs.h <<\_ACEOF
13099 #define HAVE_PTHREAD_RWLOCK_INIT 1
13100 _ACEOF
13104 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13105 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13106 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13108 else
13109 ac_func_search_save_LIBS=$LIBS
13110 cat >conftest.$ac_ext <<_ACEOF
13111 /* confdefs.h. */
13112 _ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h. */
13117 /* Override any GCC internal prototype to avoid an error.
13118 Use char because int might match the return type of a GCC
13119 builtin and then its argument prototype would still apply. */
13120 #ifdef __cplusplus
13121 extern "C"
13122 #endif
13123 char pthread_getspecific ();
13125 main ()
13127 return pthread_getspecific ();
13129 return 0;
13131 _ACEOF
13132 for ac_lib in '' pthread; do
13133 if test -z "$ac_lib"; then
13134 ac_res="none required"
13135 else
13136 ac_res=-l$ac_lib
13137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13139 rm -f conftest.$ac_objext conftest$ac_exeext
13140 if { (ac_try="$ac_link"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_link") 2>conftest.er1
13147 ac_status=$?
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } &&
13153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13154 { (case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13157 esac
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_try") 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; } &&
13163 { ac_try='test -s conftest$ac_exeext'
13164 { (case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167 esac
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169 (eval "$ac_try") 2>&5
13170 ac_status=$?
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173 ac_cv_search_pthread_getspecific=$ac_res
13174 else
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13181 rm -f core conftest.err conftest.$ac_objext \
13182 conftest$ac_exeext
13183 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13184 break
13186 done
13187 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13189 else
13190 ac_cv_search_pthread_getspecific=no
13192 rm conftest.$ac_ext
13193 LIBS=$ac_func_search_save_LIBS
13195 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13196 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13197 ac_res=$ac_cv_search_pthread_getspecific
13198 if test "$ac_res" != no; then
13199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13201 cat >>confdefs.h <<\_ACEOF
13202 #define HAVE_PTHREAD_GETSPECIFIC 1
13203 _ACEOF
13210 # Check whether --with-udis86 was given.
13211 if test "${with_udis86+set}" = set; then
13212 withval=$with_udis86;
13213 USE_UDIS86=1
13215 case "$withval" in
13216 /usr/lib|yes) ;;
13217 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13218 esac
13220 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13221 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13222 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
13224 else
13225 ac_check_lib_save_LIBS=$LIBS
13226 LIBS="-ludis86 $LIBS"
13227 cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h. */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13234 /* Override any GCC internal prototype to avoid an error.
13235 Use char because int might match the return type of a GCC
13236 builtin and then its argument prototype would still apply. */
13237 #ifdef __cplusplus
13238 extern "C"
13239 #endif
13240 char ud_init ();
13242 main ()
13244 return ud_init ();
13246 return 0;
13248 _ACEOF
13249 rm -f conftest.$ac_objext conftest$ac_exeext
13250 if { (ac_try="$ac_link"
13251 case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13254 esac
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_link") 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13264 { (case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13267 esac
13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_try") 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; } &&
13273 { ac_try='test -s conftest$ac_exeext'
13274 { (case "(($ac_try" in
13275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276 *) ac_try_echo=$ac_try;;
13277 esac
13278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279 (eval "$ac_try") 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; }; then
13283 ac_cv_lib_udis86_ud_init=yes
13284 else
13285 echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13288 ac_cv_lib_udis86_ud_init=no
13291 rm -f core conftest.err conftest.$ac_objext \
13292 conftest$ac_exeext conftest.$ac_ext
13293 LIBS=$ac_check_lib_save_LIBS
13295 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13296 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13297 if test $ac_cv_lib_udis86_ud_init = yes; then
13298 cat >>confdefs.h <<_ACEOF
13299 #define HAVE_LIBUDIS86 1
13300 _ACEOF
13302 LIBS="-ludis86 $LIBS"
13304 else
13306 echo "Error! You need to have libudis86 around."
13307 exit -1
13312 else
13313 USE_UDIS86=0
13318 cat >>confdefs.h <<_ACEOF
13319 #define USE_UDIS86 $USE_UDIS86
13320 _ACEOF
13324 # Check whether --with-oprofile was given.
13325 if test "${with_oprofile+set}" = set; then
13326 withval=$with_oprofile;
13327 USE_OPROFILE=1
13329 case "$withval" in
13330 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13331 no) llvm_cv_oppath=
13332 USE_OPROFILE=0
13334 *) llvm_cv_oppath="${withval}/lib/oprofile"
13335 CPPFLAGS="-I${withval}/include";;
13336 esac
13337 if test -n "$llvm_cv_oppath" ; then
13338 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13339 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13340 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13341 if test "${ac_cv_search_bfd_init+set}" = set; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13344 ac_func_search_save_LIBS=$LIBS
13345 cat >conftest.$ac_ext <<_ACEOF
13346 /* confdefs.h. */
13347 _ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13352 /* Override any GCC internal prototype to avoid an error.
13353 Use char because int might match the return type of a GCC
13354 builtin and then its argument prototype would still apply. */
13355 #ifdef __cplusplus
13356 extern "C"
13357 #endif
13358 char bfd_init ();
13360 main ()
13362 return bfd_init ();
13364 return 0;
13366 _ACEOF
13367 for ac_lib in '' bfd; do
13368 if test -z "$ac_lib"; then
13369 ac_res="none required"
13370 else
13371 ac_res=-l$ac_lib
13372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13374 rm -f conftest.$ac_objext conftest$ac_exeext
13375 if { (ac_try="$ac_link"
13376 case "(($ac_try" in
13377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378 *) ac_try_echo=$ac_try;;
13379 esac
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381 (eval "$ac_link") 2>conftest.er1
13382 ac_status=$?
13383 grep -v '^ *+' conftest.er1 >conftest.err
13384 rm -f conftest.er1
13385 cat conftest.err >&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13389 { (case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13392 esac
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_try") 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; } &&
13398 { ac_try='test -s conftest$ac_exeext'
13399 { (case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13402 esac
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_try") 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_search_bfd_init=$ac_res
13409 else
13410 echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13416 rm -f core conftest.err conftest.$ac_objext \
13417 conftest$ac_exeext
13418 if test "${ac_cv_search_bfd_init+set}" = set; then
13419 break
13421 done
13422 if test "${ac_cv_search_bfd_init+set}" = set; then
13424 else
13425 ac_cv_search_bfd_init=no
13427 rm conftest.$ac_ext
13428 LIBS=$ac_func_search_save_LIBS
13430 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13431 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13432 ac_res=$ac_cv_search_bfd_init
13433 if test "$ac_res" != no; then
13434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13438 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13439 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13440 if test "${ac_cv_search_op_open_agent+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443 ac_func_search_save_LIBS=$LIBS
13444 cat >conftest.$ac_ext <<_ACEOF
13445 /* confdefs.h. */
13446 _ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13451 /* Override any GCC internal prototype to avoid an error.
13452 Use char because int might match the return type of a GCC
13453 builtin and then its argument prototype would still apply. */
13454 #ifdef __cplusplus
13455 extern "C"
13456 #endif
13457 char op_open_agent ();
13459 main ()
13461 return op_open_agent ();
13463 return 0;
13465 _ACEOF
13466 for ac_lib in '' opagent; do
13467 if test -z "$ac_lib"; then
13468 ac_res="none required"
13469 else
13470 ac_res=-l$ac_lib
13471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13473 rm -f conftest.$ac_objext conftest$ac_exeext
13474 if { (ac_try="$ac_link"
13475 case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478 esac
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_link") 2>conftest.er1
13481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } &&
13487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13488 { (case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13491 esac
13492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493 (eval "$ac_try") 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; } &&
13497 { ac_try='test -s conftest$ac_exeext'
13498 { (case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13501 esac
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_try") 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; }; then
13507 ac_cv_search_op_open_agent=$ac_res
13508 else
13509 echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13515 rm -f core conftest.err conftest.$ac_objext \
13516 conftest$ac_exeext
13517 if test "${ac_cv_search_op_open_agent+set}" = set; then
13518 break
13520 done
13521 if test "${ac_cv_search_op_open_agent+set}" = set; then
13523 else
13524 ac_cv_search_op_open_agent=no
13526 rm conftest.$ac_ext
13527 LIBS=$ac_func_search_save_LIBS
13529 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13530 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13531 ac_res=$ac_cv_search_op_open_agent
13532 if test "$ac_res" != no; then
13533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13535 else
13537 echo "Error! You need to have libopagent around."
13538 exit -1
13542 if test "${ac_cv_header_opagent_h+set}" = set; then
13543 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13544 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13545 if test "${ac_cv_header_opagent_h+set}" = set; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13548 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13549 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13550 else
13551 # Is the header compilable?
13552 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13553 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 $ac_includes_default
13561 #include <opagent.h>
13562 _ACEOF
13563 rm -f conftest.$ac_objext
13564 if { (ac_try="$ac_compile"
13565 case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_compile") 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13578 { (case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_try") 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; } &&
13587 { ac_try='test -s conftest.$ac_objext'
13588 { (case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591 esac
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_try") 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_header_compiler=yes
13598 else
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13602 ac_header_compiler=no
13605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13607 echo "${ECHO_T}$ac_header_compiler" >&6; }
13609 # Is the header present?
13610 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13611 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13612 cat >conftest.$ac_ext <<_ACEOF
13613 /* confdefs.h. */
13614 _ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13618 #include <opagent.h>
13619 _ACEOF
13620 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
13627 ac_status=$?
13628 grep -v '^ *+' conftest.er1 >conftest.err
13629 rm -f conftest.er1
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } >/dev/null; then
13633 if test -s conftest.err; then
13634 ac_cpp_err=$ac_c_preproc_warn_flag
13635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13636 else
13637 ac_cpp_err=
13639 else
13640 ac_cpp_err=yes
13642 if test -z "$ac_cpp_err"; then
13643 ac_header_preproc=yes
13644 else
13645 echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13648 ac_header_preproc=no
13651 rm -f conftest.err conftest.$ac_ext
13652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13653 echo "${ECHO_T}$ac_header_preproc" >&6; }
13655 # So? What about this header?
13656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13657 yes:no: )
13658 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13659 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13661 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13662 ac_header_preproc=yes
13664 no:yes:* )
13665 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13666 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13668 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13669 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13670 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13672 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13673 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13674 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13675 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13676 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13677 ( cat <<\_ASBOX
13678 ## ----------------------------------- ##
13679 ## Report this to llvmbugs@cs.uiuc.edu ##
13680 ## ----------------------------------- ##
13681 _ASBOX
13682 ) | sed "s/^/$as_me: WARNING: /" >&2
13684 esac
13685 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13686 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13687 if test "${ac_cv_header_opagent_h+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13689 else
13690 ac_cv_header_opagent_h=$ac_header_preproc
13692 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13693 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13696 if test $ac_cv_header_opagent_h = yes; then
13698 else
13700 echo "Error! You need to have opagent.h around."
13701 exit -1
13708 else
13710 USE_OPROFILE=0
13716 cat >>confdefs.h <<_ACEOF
13717 #define USE_OPROFILE $USE_OPROFILE
13718 _ACEOF
13727 ac_header_dirent=no
13728 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13729 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13730 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13731 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735 cat >conftest.$ac_ext <<_ACEOF
13736 /* confdefs.h. */
13737 _ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h. */
13741 #include <sys/types.h>
13742 #include <$ac_hdr>
13745 main ()
13747 if ((DIR *) 0)
13748 return 0;
13750 return 0;
13752 _ACEOF
13753 rm -f conftest.$ac_objext
13754 if { (ac_try="$ac_compile"
13755 case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758 esac
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_compile") 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13768 { (case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771 esac
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_try") 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest.$ac_objext'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 eval "$as_ac_Header=yes"
13788 else
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13792 eval "$as_ac_Header=no"
13795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797 ac_res=`eval echo '${'$as_ac_Header'}'`
13798 { echo "$as_me:$LINENO: result: $ac_res" >&5
13799 echo "${ECHO_T}$ac_res" >&6; }
13800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13801 cat >>confdefs.h <<_ACEOF
13802 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13803 _ACEOF
13805 ac_header_dirent=$ac_hdr; break
13808 done
13809 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13810 if test $ac_header_dirent = dirent.h; then
13811 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13812 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13813 if test "${ac_cv_search_opendir+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13816 ac_func_search_save_LIBS=$LIBS
13817 cat >conftest.$ac_ext <<_ACEOF
13818 /* confdefs.h. */
13819 _ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13824 /* Override any GCC internal prototype to avoid an error.
13825 Use char because int might match the return type of a GCC
13826 builtin and then its argument prototype would still apply. */
13827 #ifdef __cplusplus
13828 extern "C"
13829 #endif
13830 char opendir ();
13832 main ()
13834 return opendir ();
13836 return 0;
13838 _ACEOF
13839 for ac_lib in '' dir; do
13840 if test -z "$ac_lib"; then
13841 ac_res="none required"
13842 else
13843 ac_res=-l$ac_lib
13844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13846 rm -f conftest.$ac_objext conftest$ac_exeext
13847 if { (ac_try="$ac_link"
13848 case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13851 esac
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_link") 2>conftest.er1
13854 ac_status=$?
13855 grep -v '^ *+' conftest.er1 >conftest.err
13856 rm -f conftest.er1
13857 cat conftest.err >&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
13860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13861 { (case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13864 esac
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_try") 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; } &&
13870 { ac_try='test -s conftest$ac_exeext'
13871 { (case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13874 esac
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_try") 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 ac_cv_search_opendir=$ac_res
13881 else
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13888 rm -f core conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext
13890 if test "${ac_cv_search_opendir+set}" = set; then
13891 break
13893 done
13894 if test "${ac_cv_search_opendir+set}" = set; then
13896 else
13897 ac_cv_search_opendir=no
13899 rm conftest.$ac_ext
13900 LIBS=$ac_func_search_save_LIBS
13902 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13903 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13904 ac_res=$ac_cv_search_opendir
13905 if test "$ac_res" != no; then
13906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13910 else
13911 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13912 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13913 if test "${ac_cv_search_opendir+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916 ac_func_search_save_LIBS=$LIBS
13917 cat >conftest.$ac_ext <<_ACEOF
13918 /* confdefs.h. */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h. */
13924 /* Override any GCC internal prototype to avoid an error.
13925 Use char because int might match the return type of a GCC
13926 builtin and then its argument prototype would still apply. */
13927 #ifdef __cplusplus
13928 extern "C"
13929 #endif
13930 char opendir ();
13932 main ()
13934 return opendir ();
13936 return 0;
13938 _ACEOF
13939 for ac_lib in '' x; do
13940 if test -z "$ac_lib"; then
13941 ac_res="none required"
13942 else
13943 ac_res=-l$ac_lib
13944 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13946 rm -f conftest.$ac_objext conftest$ac_exeext
13947 if { (ac_try="$ac_link"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_link") 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } &&
13960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13961 { (case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13964 esac
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_try") 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; } &&
13970 { ac_try='test -s conftest$ac_exeext'
13971 { (case "(($ac_try" in
13972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13974 esac
13975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13976 (eval "$ac_try") 2>&5
13977 ac_status=$?
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; }; then
13980 ac_cv_search_opendir=$ac_res
13981 else
13982 echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13988 rm -f core conftest.err conftest.$ac_objext \
13989 conftest$ac_exeext
13990 if test "${ac_cv_search_opendir+set}" = set; then
13991 break
13993 done
13994 if test "${ac_cv_search_opendir+set}" = set; then
13996 else
13997 ac_cv_search_opendir=no
13999 rm conftest.$ac_ext
14000 LIBS=$ac_func_search_save_LIBS
14002 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14003 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14004 ac_res=$ac_cv_search_opendir
14005 if test "$ac_res" != no; then
14006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14012 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14013 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14014 if test "${ac_cv_header_mmap_anon+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017 ac_ext=c
14018 ac_cpp='$CPP $CPPFLAGS'
14019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14023 cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h. */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14029 #include <sys/mman.h>
14030 #include <unistd.h>
14031 #include <fcntl.h>
14033 main ()
14035 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14037 return 0;
14039 _ACEOF
14040 rm -f conftest.$ac_objext
14041 if { (ac_try="$ac_compile"
14042 case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045 esac
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_compile") 2>conftest.er1
14048 ac_status=$?
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } &&
14054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14055 { (case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14058 esac
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_try") 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; } &&
14064 { ac_try='test -s conftest.$ac_objext'
14065 { (case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14068 esac
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070 (eval "$ac_try") 2>&5
14071 ac_status=$?
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }; then
14074 ac_cv_header_mmap_anon=yes
14075 else
14076 echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14079 ac_cv_header_mmap_anon=no
14082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14083 ac_ext=c
14084 ac_cpp='$CPP $CPPFLAGS'
14085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14091 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14092 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14093 if test "$ac_cv_header_mmap_anon" = yes; then
14095 cat >>confdefs.h <<\_ACEOF
14096 #define HAVE_MMAP_ANONYMOUS 1
14097 _ACEOF
14101 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14102 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14103 if test "${ac_cv_header_stat_broken+set}" = set; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 else
14106 cat >conftest.$ac_ext <<_ACEOF
14107 /* confdefs.h. */
14108 _ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14112 #include <sys/types.h>
14113 #include <sys/stat.h>
14115 #if defined S_ISBLK && defined S_IFDIR
14116 # if S_ISBLK (S_IFDIR)
14117 You lose.
14118 # endif
14119 #endif
14121 #if defined S_ISBLK && defined S_IFCHR
14122 # if S_ISBLK (S_IFCHR)
14123 You lose.
14124 # endif
14125 #endif
14127 #if defined S_ISLNK && defined S_IFREG
14128 # if S_ISLNK (S_IFREG)
14129 You lose.
14130 # endif
14131 #endif
14133 #if defined S_ISSOCK && defined S_IFREG
14134 # if S_ISSOCK (S_IFREG)
14135 You lose.
14136 # endif
14137 #endif
14139 _ACEOF
14140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14141 $EGREP "You lose" >/dev/null 2>&1; then
14142 ac_cv_header_stat_broken=yes
14143 else
14144 ac_cv_header_stat_broken=no
14146 rm -f conftest*
14149 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14150 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14151 if test $ac_cv_header_stat_broken = yes; then
14153 cat >>confdefs.h <<\_ACEOF
14154 #define STAT_MACROS_BROKEN 1
14155 _ACEOF
14159 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14160 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14161 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 else
14164 cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h. */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 #include <sys/types.h>
14171 #include <sys/wait.h>
14172 #ifndef WEXITSTATUS
14173 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14174 #endif
14175 #ifndef WIFEXITED
14176 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14177 #endif
14180 main ()
14182 int s;
14183 wait (&s);
14184 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14186 return 0;
14188 _ACEOF
14189 rm -f conftest.$ac_objext
14190 if { (ac_try="$ac_compile"
14191 case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14194 esac
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_compile") 2>conftest.er1
14197 ac_status=$?
14198 grep -v '^ *+' conftest.er1 >conftest.err
14199 rm -f conftest.er1
14200 cat conftest.err >&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } &&
14203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14204 { (case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_try") 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; } &&
14213 { ac_try='test -s conftest.$ac_objext'
14214 { (case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14217 esac
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_try") 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14223 ac_cv_header_sys_wait_h=yes
14224 else
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 ac_cv_header_sys_wait_h=no
14231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14233 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14234 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14235 if test $ac_cv_header_sys_wait_h = yes; then
14237 cat >>confdefs.h <<\_ACEOF
14238 #define HAVE_SYS_WAIT_H 1
14239 _ACEOF
14243 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14244 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14245 if test "${ac_cv_header_time+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248 cat >conftest.$ac_ext <<_ACEOF
14249 /* confdefs.h. */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14254 #include <sys/types.h>
14255 #include <sys/time.h>
14256 #include <time.h>
14259 main ()
14261 if ((struct tm *) 0)
14262 return 0;
14264 return 0;
14266 _ACEOF
14267 rm -f conftest.$ac_objext
14268 if { (ac_try="$ac_compile"
14269 case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14272 esac
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_compile") 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
14281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14282 { (case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14285 esac
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_try") 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; } &&
14291 { ac_try='test -s conftest.$ac_objext'
14292 { (case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14295 esac
14296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297 (eval "$ac_try") 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }; then
14301 ac_cv_header_time=yes
14302 else
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 ac_cv_header_time=no
14309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14311 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14312 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14313 if test $ac_cv_header_time = yes; then
14315 cat >>confdefs.h <<\_ACEOF
14316 #define TIME_WITH_SYS_TIME 1
14317 _ACEOF
14328 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 ac_res=`eval echo '${'$as_ac_Header'}'`
14338 { echo "$as_me:$LINENO: result: $ac_res" >&5
14339 echo "${ECHO_T}$ac_res" >&6; }
14340 else
14341 # Is the header compilable?
14342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14344 cat >conftest.$ac_ext <<_ACEOF
14345 /* confdefs.h. */
14346 _ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14350 $ac_includes_default
14351 #include <$ac_header>
14352 _ACEOF
14353 rm -f conftest.$ac_objext
14354 if { (ac_try="$ac_compile"
14355 case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14358 esac
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360 (eval "$ac_compile") 2>conftest.er1
14361 ac_status=$?
14362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } &&
14367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14368 { (case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14371 esac
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_try") 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; } &&
14377 { ac_try='test -s conftest.$ac_objext'
14378 { (case "(($ac_try" in
14379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380 *) ac_try_echo=$ac_try;;
14381 esac
14382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383 (eval "$ac_try") 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14387 ac_header_compiler=yes
14388 else
14389 echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14392 ac_header_compiler=no
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14397 echo "${ECHO_T}$ac_header_compiler" >&6; }
14399 # Is the header present?
14400 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14402 cat >conftest.$ac_ext <<_ACEOF
14403 /* confdefs.h. */
14404 _ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h. */
14408 #include <$ac_header>
14409 _ACEOF
14410 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14417 ac_status=$?
14418 grep -v '^ *+' conftest.er1 >conftest.err
14419 rm -f conftest.er1
14420 cat conftest.err >&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } >/dev/null; then
14423 if test -s conftest.err; then
14424 ac_cpp_err=$ac_c_preproc_warn_flag
14425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14426 else
14427 ac_cpp_err=
14429 else
14430 ac_cpp_err=yes
14432 if test -z "$ac_cpp_err"; then
14433 ac_header_preproc=yes
14434 else
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14438 ac_header_preproc=no
14441 rm -f conftest.err conftest.$ac_ext
14442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14443 echo "${ECHO_T}$ac_header_preproc" >&6; }
14445 # So? What about this header?
14446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14447 yes:no: )
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14452 ac_header_preproc=yes
14454 no:yes:* )
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14467 ( cat <<\_ASBOX
14468 ## ----------------------------------- ##
14469 ## Report this to llvmbugs@cs.uiuc.edu ##
14470 ## ----------------------------------- ##
14471 _ASBOX
14472 ) | sed "s/^/$as_me: WARNING: /" >&2
14474 esac
14475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 else
14480 eval "$as_ac_Header=\$ac_header_preproc"
14482 ac_res=`eval echo '${'$as_ac_Header'}'`
14483 { echo "$as_me:$LINENO: result: $ac_res" >&5
14484 echo "${ECHO_T}$ac_res" >&6; }
14487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14488 cat >>confdefs.h <<_ACEOF
14489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14490 _ACEOF
14494 done
14502 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 ac_res=`eval echo '${'$as_ac_Header'}'`
14512 { echo "$as_me:$LINENO: result: $ac_res" >&5
14513 echo "${ECHO_T}$ac_res" >&6; }
14514 else
14515 # Is the header compilable?
14516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14518 cat >conftest.$ac_ext <<_ACEOF
14519 /* confdefs.h. */
14520 _ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524 $ac_includes_default
14525 #include <$ac_header>
14526 _ACEOF
14527 rm -f conftest.$ac_objext
14528 if { (ac_try="$ac_compile"
14529 case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532 esac
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_compile") 2>conftest.er1
14535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14542 { (case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14545 esac
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_try") 2>&5
14548 ac_status=$?
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; } &&
14551 { ac_try='test -s conftest.$ac_objext'
14552 { (case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14555 esac
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_try") 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14561 ac_header_compiler=yes
14562 else
14563 echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14566 ac_header_compiler=no
14569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14571 echo "${ECHO_T}$ac_header_compiler" >&6; }
14573 # Is the header present?
14574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14576 cat >conftest.$ac_ext <<_ACEOF
14577 /* confdefs.h. */
14578 _ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14582 #include <$ac_header>
14583 _ACEOF
14584 if { (ac_try="$ac_cpp conftest.$ac_ext"
14585 case "(($ac_try" in
14586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587 *) ac_try_echo=$ac_try;;
14588 esac
14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14591 ac_status=$?
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } >/dev/null; then
14597 if test -s conftest.err; then
14598 ac_cpp_err=$ac_c_preproc_warn_flag
14599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14600 else
14601 ac_cpp_err=
14603 else
14604 ac_cpp_err=yes
14606 if test -z "$ac_cpp_err"; then
14607 ac_header_preproc=yes
14608 else
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 ac_header_preproc=no
14615 rm -f conftest.err conftest.$ac_ext
14616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14617 echo "${ECHO_T}$ac_header_preproc" >&6; }
14619 # So? What about this header?
14620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14621 yes:no: )
14622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14626 ac_header_preproc=yes
14628 no:yes:* )
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14641 ( cat <<\_ASBOX
14642 ## ----------------------------------- ##
14643 ## Report this to llvmbugs@cs.uiuc.edu ##
14644 ## ----------------------------------- ##
14645 _ASBOX
14646 ) | sed "s/^/$as_me: WARNING: /" >&2
14648 esac
14649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 else
14654 eval "$as_ac_Header=\$ac_header_preproc"
14656 ac_res=`eval echo '${'$as_ac_Header'}'`
14657 { echo "$as_me:$LINENO: result: $ac_res" >&5
14658 echo "${ECHO_T}$ac_res" >&6; }
14661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14662 cat >>confdefs.h <<_ACEOF
14663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14664 _ACEOF
14668 done
14672 for ac_header in utime.h windows.h
14674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14681 ac_res=`eval echo '${'$as_ac_Header'}'`
14682 { echo "$as_me:$LINENO: result: $ac_res" >&5
14683 echo "${ECHO_T}$ac_res" >&6; }
14684 else
14685 # Is the header compilable?
14686 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14688 cat >conftest.$ac_ext <<_ACEOF
14689 /* confdefs.h. */
14690 _ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h. */
14694 $ac_includes_default
14695 #include <$ac_header>
14696 _ACEOF
14697 rm -f conftest.$ac_objext
14698 if { (ac_try="$ac_compile"
14699 case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14702 esac
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_compile") 2>conftest.er1
14705 ac_status=$?
14706 grep -v '^ *+' conftest.er1 >conftest.err
14707 rm -f conftest.er1
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
14711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14712 { (case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14715 esac
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_try") 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14725 esac
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_try") 2>&5
14728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14731 ac_header_compiler=yes
14732 else
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ac_header_compiler=no
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14741 echo "${ECHO_T}$ac_header_compiler" >&6; }
14743 # Is the header present?
14744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14746 cat >conftest.$ac_ext <<_ACEOF
14747 /* confdefs.h. */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14752 #include <$ac_header>
14753 _ACEOF
14754 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14761 ac_status=$?
14762 grep -v '^ *+' conftest.er1 >conftest.err
14763 rm -f conftest.er1
14764 cat conftest.err >&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); } >/dev/null; then
14767 if test -s conftest.err; then
14768 ac_cpp_err=$ac_c_preproc_warn_flag
14769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14770 else
14771 ac_cpp_err=
14773 else
14774 ac_cpp_err=yes
14776 if test -z "$ac_cpp_err"; then
14777 ac_header_preproc=yes
14778 else
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 ac_header_preproc=no
14785 rm -f conftest.err conftest.$ac_ext
14786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14787 echo "${ECHO_T}$ac_header_preproc" >&6; }
14789 # So? What about this header?
14790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14791 yes:no: )
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14796 ac_header_preproc=yes
14798 no:yes:* )
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14811 ( cat <<\_ASBOX
14812 ## ----------------------------------- ##
14813 ## Report this to llvmbugs@cs.uiuc.edu ##
14814 ## ----------------------------------- ##
14815 _ASBOX
14816 ) | sed "s/^/$as_me: WARNING: /" >&2
14818 esac
14819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14823 else
14824 eval "$as_ac_Header=\$ac_header_preproc"
14826 ac_res=`eval echo '${'$as_ac_Header'}'`
14827 { echo "$as_me:$LINENO: result: $ac_res" >&5
14828 echo "${ECHO_T}$ac_res" >&6; }
14831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14832 cat >>confdefs.h <<_ACEOF
14833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14834 _ACEOF
14838 done
14845 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 ac_res=`eval echo '${'$as_ac_Header'}'`
14855 { echo "$as_me:$LINENO: result: $ac_res" >&5
14856 echo "${ECHO_T}$ac_res" >&6; }
14857 else
14858 # Is the header compilable?
14859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14861 cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h. */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14867 $ac_includes_default
14868 #include <$ac_header>
14869 _ACEOF
14870 rm -f conftest.$ac_objext
14871 if { (ac_try="$ac_compile"
14872 case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14875 esac
14876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 (eval "$ac_compile") 2>conftest.er1
14878 ac_status=$?
14879 grep -v '^ *+' conftest.er1 >conftest.err
14880 rm -f conftest.er1
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14885 { (case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14888 esac
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_try") 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; } &&
14894 { ac_try='test -s conftest.$ac_objext'
14895 { (case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14898 esac
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_try") 2>&5
14901 ac_status=$?
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }; then
14904 ac_header_compiler=yes
14905 else
14906 echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 ac_header_compiler=no
14912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14914 echo "${ECHO_T}$ac_header_compiler" >&6; }
14916 # Is the header present?
14917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14919 cat >conftest.$ac_ext <<_ACEOF
14920 /* confdefs.h. */
14921 _ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14925 #include <$ac_header>
14926 _ACEOF
14927 if { (ac_try="$ac_cpp conftest.$ac_ext"
14928 case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14931 esac
14932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14934 ac_status=$?
14935 grep -v '^ *+' conftest.er1 >conftest.err
14936 rm -f conftest.er1
14937 cat conftest.err >&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } >/dev/null; then
14940 if test -s conftest.err; then
14941 ac_cpp_err=$ac_c_preproc_warn_flag
14942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14943 else
14944 ac_cpp_err=
14946 else
14947 ac_cpp_err=yes
14949 if test -z "$ac_cpp_err"; then
14950 ac_header_preproc=yes
14951 else
14952 echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14955 ac_header_preproc=no
14958 rm -f conftest.err conftest.$ac_ext
14959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14960 echo "${ECHO_T}$ac_header_preproc" >&6; }
14962 # So? What about this header?
14963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14964 yes:no: )
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14969 ac_header_preproc=yes
14971 no:yes:* )
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14984 ( cat <<\_ASBOX
14985 ## ----------------------------------- ##
14986 ## Report this to llvmbugs@cs.uiuc.edu ##
14987 ## ----------------------------------- ##
14988 _ASBOX
14989 ) | sed "s/^/$as_me: WARNING: /" >&2
14991 esac
14992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997 eval "$as_ac_Header=\$ac_header_preproc"
14999 ac_res=`eval echo '${'$as_ac_Header'}'`
15000 { echo "$as_me:$LINENO: result: $ac_res" >&5
15001 echo "${ECHO_T}$ac_res" >&6; }
15004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15005 cat >>confdefs.h <<_ACEOF
15006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15007 _ACEOF
15011 done
15017 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 ac_res=`eval echo '${'$as_ac_Header'}'`
15027 { echo "$as_me:$LINENO: result: $ac_res" >&5
15028 echo "${ECHO_T}$ac_res" >&6; }
15029 else
15030 # Is the header compilable?
15031 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15033 cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h. */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15039 $ac_includes_default
15040 #include <$ac_header>
15041 _ACEOF
15042 rm -f conftest.$ac_objext
15043 if { (ac_try="$ac_compile"
15044 case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15047 esac
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_compile") 2>conftest.er1
15050 ac_status=$?
15051 grep -v '^ *+' conftest.er1 >conftest.err
15052 rm -f conftest.er1
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } &&
15056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15057 { (case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15060 esac
15061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_try") 2>&5
15063 ac_status=$?
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; } &&
15066 { ac_try='test -s conftest.$ac_objext'
15067 { (case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15070 esac
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_try") 2>&5
15073 ac_status=$?
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }; then
15076 ac_header_compiler=yes
15077 else
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15081 ac_header_compiler=no
15084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15086 echo "${ECHO_T}$ac_header_compiler" >&6; }
15088 # Is the header present?
15089 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15091 cat >conftest.$ac_ext <<_ACEOF
15092 /* confdefs.h. */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 #include <$ac_header>
15098 _ACEOF
15099 if { (ac_try="$ac_cpp conftest.$ac_ext"
15100 case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15103 esac
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15106 ac_status=$?
15107 grep -v '^ *+' conftest.er1 >conftest.err
15108 rm -f conftest.er1
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } >/dev/null; then
15112 if test -s conftest.err; then
15113 ac_cpp_err=$ac_c_preproc_warn_flag
15114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15115 else
15116 ac_cpp_err=
15118 else
15119 ac_cpp_err=yes
15121 if test -z "$ac_cpp_err"; then
15122 ac_header_preproc=yes
15123 else
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 ac_header_preproc=no
15130 rm -f conftest.err conftest.$ac_ext
15131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15132 echo "${ECHO_T}$ac_header_preproc" >&6; }
15134 # So? What about this header?
15135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15136 yes:no: )
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15141 ac_header_preproc=yes
15143 no:yes:* )
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15151 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15156 ( cat <<\_ASBOX
15157 ## ----------------------------------- ##
15158 ## Report this to llvmbugs@cs.uiuc.edu ##
15159 ## ----------------------------------- ##
15160 _ASBOX
15161 ) | sed "s/^/$as_me: WARNING: /" >&2
15163 esac
15164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15168 else
15169 eval "$as_ac_Header=\$ac_header_preproc"
15171 ac_res=`eval echo '${'$as_ac_Header'}'`
15172 { echo "$as_me:$LINENO: result: $ac_res" >&5
15173 echo "${ECHO_T}$ac_res" >&6; }
15176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15177 cat >>confdefs.h <<_ACEOF
15178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15179 _ACEOF
15183 done
15186 for ac_header in valgrind/valgrind.h
15188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 ac_res=`eval echo '${'$as_ac_Header'}'`
15196 { echo "$as_me:$LINENO: result: $ac_res" >&5
15197 echo "${ECHO_T}$ac_res" >&6; }
15198 else
15199 # Is the header compilable?
15200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h. */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 $ac_includes_default
15209 #include <$ac_header>
15210 _ACEOF
15211 rm -f conftest.$ac_objext
15212 if { (ac_try="$ac_compile"
15213 case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15216 esac
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_compile") 2>conftest.er1
15219 ac_status=$?
15220 grep -v '^ *+' conftest.er1 >conftest.err
15221 rm -f conftest.er1
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } &&
15225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15226 { (case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15229 esac
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_try") 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest.$ac_objext'
15236 { (case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15239 esac
15240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15241 (eval "$ac_try") 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 ac_header_compiler=yes
15246 else
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15250 ac_header_compiler=no
15253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15255 echo "${ECHO_T}$ac_header_compiler" >&6; }
15257 # Is the header present?
15258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15260 cat >conftest.$ac_ext <<_ACEOF
15261 /* confdefs.h. */
15262 _ACEOF
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15266 #include <$ac_header>
15267 _ACEOF
15268 if { (ac_try="$ac_cpp conftest.$ac_ext"
15269 case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15272 esac
15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15275 ac_status=$?
15276 grep -v '^ *+' conftest.er1 >conftest.err
15277 rm -f conftest.er1
15278 cat conftest.err >&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } >/dev/null; then
15281 if test -s conftest.err; then
15282 ac_cpp_err=$ac_c_preproc_warn_flag
15283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15284 else
15285 ac_cpp_err=
15287 else
15288 ac_cpp_err=yes
15290 if test -z "$ac_cpp_err"; then
15291 ac_header_preproc=yes
15292 else
15293 echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15296 ac_header_preproc=no
15299 rm -f conftest.err conftest.$ac_ext
15300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15301 echo "${ECHO_T}$ac_header_preproc" >&6; }
15303 # So? What about this header?
15304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15305 yes:no: )
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15310 ac_header_preproc=yes
15312 no:yes:* )
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15325 ( cat <<\_ASBOX
15326 ## ----------------------------------- ##
15327 ## Report this to llvmbugs@cs.uiuc.edu ##
15328 ## ----------------------------------- ##
15329 _ASBOX
15330 ) | sed "s/^/$as_me: WARNING: /" >&2
15332 esac
15333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338 eval "$as_ac_Header=\$ac_header_preproc"
15340 ac_res=`eval echo '${'$as_ac_Header'}'`
15341 { echo "$as_me:$LINENO: result: $ac_res" >&5
15342 echo "${ECHO_T}$ac_res" >&6; }
15345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15346 cat >>confdefs.h <<_ACEOF
15347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15348 _ACEOF
15352 done
15355 for ac_header in fenv.h
15357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15364 ac_res=`eval echo '${'$as_ac_Header'}'`
15365 { echo "$as_me:$LINENO: result: $ac_res" >&5
15366 echo "${ECHO_T}$ac_res" >&6; }
15367 else
15368 # Is the header compilable?
15369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15371 cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h. */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 $ac_includes_default
15378 #include <$ac_header>
15379 _ACEOF
15380 rm -f conftest.$ac_objext
15381 if { (ac_try="$ac_compile"
15382 case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15385 esac
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_compile") 2>conftest.er1
15388 ac_status=$?
15389 grep -v '^ *+' conftest.er1 >conftest.err
15390 rm -f conftest.er1
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15395 { (case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15398 esac
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_try") 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; } &&
15404 { ac_try='test -s conftest.$ac_objext'
15405 { (case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_header_compiler=yes
15415 else
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15419 ac_header_compiler=no
15422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15424 echo "${ECHO_T}$ac_header_compiler" >&6; }
15426 # Is the header present?
15427 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15429 cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h. */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15435 #include <$ac_header>
15436 _ACEOF
15437 if { (ac_try="$ac_cpp conftest.$ac_ext"
15438 case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15441 esac
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } >/dev/null; then
15450 if test -s conftest.err; then
15451 ac_cpp_err=$ac_c_preproc_warn_flag
15452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15453 else
15454 ac_cpp_err=
15456 else
15457 ac_cpp_err=yes
15459 if test -z "$ac_cpp_err"; then
15460 ac_header_preproc=yes
15461 else
15462 echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 ac_header_preproc=no
15468 rm -f conftest.err conftest.$ac_ext
15469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15470 echo "${ECHO_T}$ac_header_preproc" >&6; }
15472 # So? What about this header?
15473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15474 yes:no: )
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15479 ac_header_preproc=yes
15481 no:yes:* )
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15494 ( cat <<\_ASBOX
15495 ## ----------------------------------- ##
15496 ## Report this to llvmbugs@cs.uiuc.edu ##
15497 ## ----------------------------------- ##
15498 _ASBOX
15499 ) | sed "s/^/$as_me: WARNING: /" >&2
15501 esac
15502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507 eval "$as_ac_Header=\$ac_header_preproc"
15509 ac_res=`eval echo '${'$as_ac_Header'}'`
15510 { echo "$as_me:$LINENO: result: $ac_res" >&5
15511 echo "${ECHO_T}$ac_res" >&6; }
15514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15515 cat >>confdefs.h <<_ACEOF
15516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15517 _ACEOF
15521 done
15523 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15525 for ac_header in pthread.h
15527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15534 ac_res=`eval echo '${'$as_ac_Header'}'`
15535 { echo "$as_me:$LINENO: result: $ac_res" >&5
15536 echo "${ECHO_T}$ac_res" >&6; }
15537 else
15538 # Is the header compilable?
15539 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15540 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15541 cat >conftest.$ac_ext <<_ACEOF
15542 /* confdefs.h. */
15543 _ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h. */
15547 $ac_includes_default
15548 #include <$ac_header>
15549 _ACEOF
15550 rm -f conftest.$ac_objext
15551 if { (ac_try="$ac_compile"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_compile") 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15565 { (case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15568 esac
15569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570 (eval "$ac_try") 2>&5
15571 ac_status=$?
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; } &&
15574 { ac_try='test -s conftest.$ac_objext'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15578 esac
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_header_compiler=yes
15585 else
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_header_compiler=no
15592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15594 echo "${ECHO_T}$ac_header_compiler" >&6; }
15596 # Is the header present?
15597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15599 cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h. */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15605 #include <$ac_header>
15606 _ACEOF
15607 if { (ac_try="$ac_cpp conftest.$ac_ext"
15608 case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611 esac
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15614 ac_status=$?
15615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } >/dev/null; then
15620 if test -s conftest.err; then
15621 ac_cpp_err=$ac_c_preproc_warn_flag
15622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15623 else
15624 ac_cpp_err=
15626 else
15627 ac_cpp_err=yes
15629 if test -z "$ac_cpp_err"; then
15630 ac_header_preproc=yes
15631 else
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15635 ac_header_preproc=no
15638 rm -f conftest.err conftest.$ac_ext
15639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15640 echo "${ECHO_T}$ac_header_preproc" >&6; }
15642 # So? What about this header?
15643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15644 yes:no: )
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15649 ac_header_preproc=yes
15651 no:yes:* )
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15664 ( cat <<\_ASBOX
15665 ## ----------------------------------- ##
15666 ## Report this to llvmbugs@cs.uiuc.edu ##
15667 ## ----------------------------------- ##
15668 _ASBOX
15669 ) | sed "s/^/$as_me: WARNING: /" >&2
15671 esac
15672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677 eval "$as_ac_Header=\$ac_header_preproc"
15679 ac_res=`eval echo '${'$as_ac_Header'}'`
15680 { echo "$as_me:$LINENO: result: $ac_res" >&5
15681 echo "${ECHO_T}$ac_res" >&6; }
15684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15685 cat >>confdefs.h <<_ACEOF
15686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15687 _ACEOF
15688 HAVE_PTHREAD=1
15690 else
15691 HAVE_PTHREAD=0
15695 done
15697 else
15698 HAVE_PTHREAD=0
15702 if test "$llvm_cv_enable_libffi" = "yes" ; then
15705 for ac_header in ffi.h ffi/ffi.h
15707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15714 ac_res=`eval echo '${'$as_ac_Header'}'`
15715 { echo "$as_me:$LINENO: result: $ac_res" >&5
15716 echo "${ECHO_T}$ac_res" >&6; }
15717 else
15718 # Is the header compilable?
15719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15721 cat >conftest.$ac_ext <<_ACEOF
15722 /* confdefs.h. */
15723 _ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h. */
15727 $ac_includes_default
15728 #include <$ac_header>
15729 _ACEOF
15730 rm -f conftest.$ac_objext
15731 if { (ac_try="$ac_compile"
15732 case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_compile") 2>conftest.er1
15738 ac_status=$?
15739 grep -v '^ *+' conftest.er1 >conftest.err
15740 rm -f conftest.er1
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } &&
15744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15745 { (case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15748 esac
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_try") 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; } &&
15754 { ac_try='test -s conftest.$ac_objext'
15755 { (case "(($ac_try" in
15756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757 *) ac_try_echo=$ac_try;;
15758 esac
15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760 (eval "$ac_try") 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_header_compiler=yes
15765 else
15766 echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15769 ac_header_compiler=no
15772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15774 echo "${ECHO_T}$ac_header_compiler" >&6; }
15776 # Is the header present?
15777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15779 cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h. */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h. */
15785 #include <$ac_header>
15786 _ACEOF
15787 if { (ac_try="$ac_cpp conftest.$ac_ext"
15788 case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791 esac
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15794 ac_status=$?
15795 grep -v '^ *+' conftest.er1 >conftest.err
15796 rm -f conftest.er1
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } >/dev/null; then
15800 if test -s conftest.err; then
15801 ac_cpp_err=$ac_c_preproc_warn_flag
15802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15803 else
15804 ac_cpp_err=
15806 else
15807 ac_cpp_err=yes
15809 if test -z "$ac_cpp_err"; then
15810 ac_header_preproc=yes
15811 else
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15815 ac_header_preproc=no
15818 rm -f conftest.err conftest.$ac_ext
15819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15820 echo "${ECHO_T}$ac_header_preproc" >&6; }
15822 # So? What about this header?
15823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15824 yes:no: )
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15829 ac_header_preproc=yes
15831 no:yes:* )
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15844 ( cat <<\_ASBOX
15845 ## ----------------------------------- ##
15846 ## Report this to llvmbugs@cs.uiuc.edu ##
15847 ## ----------------------------------- ##
15848 _ASBOX
15849 ) | sed "s/^/$as_me: WARNING: /" >&2
15851 esac
15852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15855 echo $ECHO_N "(cached) $ECHO_C" >&6
15856 else
15857 eval "$as_ac_Header=\$ac_header_preproc"
15859 ac_res=`eval echo '${'$as_ac_Header'}'`
15860 { echo "$as_me:$LINENO: result: $ac_res" >&5
15861 echo "${ECHO_T}$ac_res" >&6; }
15864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15867 _ACEOF
15871 done
15876 for ac_header in CrashReporterClient.h
15878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15885 ac_res=`eval echo '${'$as_ac_Header'}'`
15886 { echo "$as_me:$LINENO: result: $ac_res" >&5
15887 echo "${ECHO_T}$ac_res" >&6; }
15888 else
15889 # Is the header compilable?
15890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15892 cat >conftest.$ac_ext <<_ACEOF
15893 /* confdefs.h. */
15894 _ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15898 $ac_includes_default
15899 #include <$ac_header>
15900 _ACEOF
15901 rm -f conftest.$ac_objext
15902 if { (ac_try="$ac_compile"
15903 case "(($ac_try" in
15904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905 *) ac_try_echo=$ac_try;;
15906 esac
15907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908 (eval "$ac_compile") 2>conftest.er1
15909 ac_status=$?
15910 grep -v '^ *+' conftest.er1 >conftest.err
15911 rm -f conftest.er1
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } &&
15915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15916 { (case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15919 esac
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_try") 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; } &&
15925 { ac_try='test -s conftest.$ac_objext'
15926 { (case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15929 esac
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_try") 2>&5
15932 ac_status=$?
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
15935 ac_header_compiler=yes
15936 else
15937 echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15940 ac_header_compiler=no
15943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15945 echo "${ECHO_T}$ac_header_compiler" >&6; }
15947 # Is the header present?
15948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15950 cat >conftest.$ac_ext <<_ACEOF
15951 /* confdefs.h. */
15952 _ACEOF
15953 cat confdefs.h >>conftest.$ac_ext
15954 cat >>conftest.$ac_ext <<_ACEOF
15955 /* end confdefs.h. */
15956 #include <$ac_header>
15957 _ACEOF
15958 if { (ac_try="$ac_cpp conftest.$ac_ext"
15959 case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15962 esac
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15965 ac_status=$?
15966 grep -v '^ *+' conftest.er1 >conftest.err
15967 rm -f conftest.er1
15968 cat conftest.err >&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); } >/dev/null; then
15971 if test -s conftest.err; then
15972 ac_cpp_err=$ac_c_preproc_warn_flag
15973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15974 else
15975 ac_cpp_err=
15977 else
15978 ac_cpp_err=yes
15980 if test -z "$ac_cpp_err"; then
15981 ac_header_preproc=yes
15982 else
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15986 ac_header_preproc=no
15989 rm -f conftest.err conftest.$ac_ext
15990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15991 echo "${ECHO_T}$ac_header_preproc" >&6; }
15993 # So? What about this header?
15994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15995 yes:no: )
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16000 ac_header_preproc=yes
16002 no:yes:* )
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16010 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16015 ( cat <<\_ASBOX
16016 ## ----------------------------------- ##
16017 ## Report this to llvmbugs@cs.uiuc.edu ##
16018 ## ----------------------------------- ##
16019 _ASBOX
16020 ) | sed "s/^/$as_me: WARNING: /" >&2
16022 esac
16023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028 eval "$as_ac_Header=\$ac_header_preproc"
16030 ac_res=`eval echo '${'$as_ac_Header'}'`
16031 { echo "$as_me:$LINENO: result: $ac_res" >&5
16032 echo "${ECHO_T}$ac_res" >&6; }
16035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16036 cat >>confdefs.h <<_ACEOF
16037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16038 _ACEOF
16042 done
16045 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16046 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16047 cat >conftest.$ac_ext <<_ACEOF
16048 /* confdefs.h. */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 extern const char *__crashreporter_info__;
16054 int main() {
16055 __crashreporter_info__ = "test";
16056 return 0;
16059 _ACEOF
16060 rm -f conftest.$ac_objext conftest$ac_exeext
16061 if { (ac_try="$ac_link"
16062 case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16065 esac
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_link") 2>conftest.er1
16068 ac_status=$?
16069 grep -v '^ *+' conftest.er1 >conftest.err
16070 rm -f conftest.er1
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } &&
16074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16075 { (case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16078 esac
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_try") 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; } &&
16084 { ac_try='test -s conftest$ac_exeext'
16085 { (case "(($ac_try" in
16086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087 *) ac_try_echo=$ac_try;;
16088 esac
16089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16090 (eval "$ac_try") 2>&5
16091 ac_status=$?
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; }; then
16094 { echo "$as_me:$LINENO: result: yes" >&5
16095 echo "${ECHO_T}yes" >&6; }
16097 cat >>confdefs.h <<\_ACEOF
16098 #define HAVE_CRASHREPORTER_INFO 1
16099 _ACEOF
16101 else
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16105 { echo "$as_me:$LINENO: result: no" >&5
16106 echo "${ECHO_T}no" >&6; }
16108 cat >>confdefs.h <<\_ACEOF
16109 #define HAVE_CRASHREPORTER_INFO 0
16110 _ACEOF
16114 rm -f core conftest.err conftest.$ac_objext \
16115 conftest$ac_exeext conftest.$ac_ext
16120 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16121 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16122 if test "${ac_cv_huge_val_sanity+set}" = set; then
16123 echo $ECHO_N "(cached) $ECHO_C" >&6
16124 else
16126 ac_ext=cpp
16127 ac_cpp='$CXXCPP $CPPFLAGS'
16128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16132 ac_save_CXXFLAGS=$CXXFLAGS
16133 CXXFLAGS=-pedantic
16134 if test "$cross_compiling" = yes; then
16135 ac_cv_huge_val_sanity=yes
16136 else
16137 cat >conftest.$ac_ext <<_ACEOF
16138 /* confdefs.h. */
16139 _ACEOF
16140 cat confdefs.h >>conftest.$ac_ext
16141 cat >>conftest.$ac_ext <<_ACEOF
16142 /* end confdefs.h. */
16143 #include <math.h>
16145 main ()
16147 double x = HUGE_VAL; return x != x;
16149 return 0;
16151 _ACEOF
16152 rm -f conftest$ac_exeext
16153 if { (ac_try="$ac_link"
16154 case "(($ac_try" in
16155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16157 esac
16158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159 (eval "$ac_link") 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16163 { (case "(($ac_try" in
16164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165 *) ac_try_echo=$ac_try;;
16166 esac
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168 (eval "$ac_try") 2>&5
16169 ac_status=$?
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; }; then
16172 ac_cv_huge_val_sanity=yes
16173 else
16174 echo "$as_me: program exited with status $ac_status" >&5
16175 echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16178 ( exit $ac_status )
16179 ac_cv_huge_val_sanity=no
16181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16185 CXXFLAGS=$ac_save_CXXFLAGS
16186 ac_ext=c
16187 ac_cpp='$CPP $CPPFLAGS'
16188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16194 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16195 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16196 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16199 { echo "$as_me:$LINENO: checking for pid_t" >&5
16200 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16201 if test "${ac_cv_type_pid_t+set}" = set; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 else
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h. */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 $ac_includes_default
16211 typedef pid_t ac__type_new_;
16213 main ()
16215 if ((ac__type_new_ *) 0)
16216 return 0;
16217 if (sizeof (ac__type_new_))
16218 return 0;
16220 return 0;
16222 _ACEOF
16223 rm -f conftest.$ac_objext
16224 if { (ac_try="$ac_compile"
16225 case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16228 esac
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_compile") 2>conftest.er1
16231 ac_status=$?
16232 grep -v '^ *+' conftest.er1 >conftest.err
16233 rm -f conftest.er1
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } &&
16237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16238 { (case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_try") 2>&5
16244 ac_status=$?
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; } &&
16247 { ac_try='test -s conftest.$ac_objext'
16248 { (case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16251 esac
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_try") 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 ac_cv_type_pid_t=yes
16258 else
16259 echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16262 ac_cv_type_pid_t=no
16265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16267 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16268 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16269 if test $ac_cv_type_pid_t = yes; then
16271 else
16273 cat >>confdefs.h <<_ACEOF
16274 #define pid_t int
16275 _ACEOF
16279 { echo "$as_me:$LINENO: checking for size_t" >&5
16280 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16281 if test "${ac_cv_type_size_t+set}" = set; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16283 else
16284 cat >conftest.$ac_ext <<_ACEOF
16285 /* confdefs.h. */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290 $ac_includes_default
16291 typedef size_t ac__type_new_;
16293 main ()
16295 if ((ac__type_new_ *) 0)
16296 return 0;
16297 if (sizeof (ac__type_new_))
16298 return 0;
16300 return 0;
16302 _ACEOF
16303 rm -f conftest.$ac_objext
16304 if { (ac_try="$ac_compile"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_compile") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16321 esac
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; } &&
16327 { ac_try='test -s conftest.$ac_objext'
16328 { (case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16331 esac
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_try") 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; }; then
16337 ac_cv_type_size_t=yes
16338 else
16339 echo "$as_me: failed program was:" >&5
16340 sed 's/^/| /' conftest.$ac_ext >&5
16342 ac_cv_type_size_t=no
16345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16347 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16348 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16349 if test $ac_cv_type_size_t = yes; then
16351 else
16353 cat >>confdefs.h <<_ACEOF
16354 #define size_t unsigned int
16355 _ACEOF
16360 cat >>confdefs.h <<_ACEOF
16361 #define RETSIGTYPE void
16362 _ACEOF
16364 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16365 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16366 if test "${ac_cv_struct_tm+set}" = set; then
16367 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 else
16369 cat >conftest.$ac_ext <<_ACEOF
16370 /* confdefs.h. */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375 #include <sys/types.h>
16376 #include <time.h>
16379 main ()
16381 struct tm *tp; tp->tm_sec;
16383 return 0;
16385 _ACEOF
16386 rm -f conftest.$ac_objext
16387 if { (ac_try="$ac_compile"
16388 case "(($ac_try" in
16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16391 esac
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393 (eval "$ac_compile") 2>conftest.er1
16394 ac_status=$?
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } &&
16400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16401 { (case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404 esac
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_try") 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; } &&
16410 { ac_try='test -s conftest.$ac_objext'
16411 { (case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16414 esac
16415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416 (eval "$ac_try") 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; }; then
16420 ac_cv_struct_tm=time.h
16421 else
16422 echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16425 ac_cv_struct_tm=sys/time.h
16428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16431 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16432 if test $ac_cv_struct_tm = sys/time.h; then
16434 cat >>confdefs.h <<\_ACEOF
16435 #define TM_IN_SYS_TIME 1
16436 _ACEOF
16440 { echo "$as_me:$LINENO: checking for int64_t" >&5
16441 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16442 if test "${ac_cv_type_int64_t+set}" = set; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445 cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h. */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 $ac_includes_default
16452 typedef int64_t ac__type_new_;
16454 main ()
16456 if ((ac__type_new_ *) 0)
16457 return 0;
16458 if (sizeof (ac__type_new_))
16459 return 0;
16461 return 0;
16463 _ACEOF
16464 rm -f conftest.$ac_objext
16465 if { (ac_try="$ac_compile"
16466 case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469 esac
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_compile") 2>conftest.er1
16472 ac_status=$?
16473 grep -v '^ *+' conftest.er1 >conftest.err
16474 rm -f conftest.er1
16475 cat conftest.err >&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } &&
16478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16482 esac
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; } &&
16488 { ac_try='test -s conftest.$ac_objext'
16489 { (case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16492 esac
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_try") 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; }; then
16498 ac_cv_type_int64_t=yes
16499 else
16500 echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16503 ac_cv_type_int64_t=no
16506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16508 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16509 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16510 if test $ac_cv_type_int64_t = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 #define HAVE_INT64_T 1
16514 _ACEOF
16517 else
16518 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16519 echo "$as_me: error: Type int64_t required but not found" >&2;}
16520 { (exit 1); exit 1; }; }
16523 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16524 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16525 if test "${ac_cv_type_uint64_t+set}" = set; then
16526 echo $ECHO_N "(cached) $ECHO_C" >&6
16527 else
16528 cat >conftest.$ac_ext <<_ACEOF
16529 /* confdefs.h. */
16530 _ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16534 $ac_includes_default
16535 typedef uint64_t ac__type_new_;
16537 main ()
16539 if ((ac__type_new_ *) 0)
16540 return 0;
16541 if (sizeof (ac__type_new_))
16542 return 0;
16544 return 0;
16546 _ACEOF
16547 rm -f conftest.$ac_objext
16548 if { (ac_try="$ac_compile"
16549 case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16552 esac
16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554 (eval "$ac_compile") 2>conftest.er1
16555 ac_status=$?
16556 grep -v '^ *+' conftest.er1 >conftest.err
16557 rm -f conftest.er1
16558 cat conftest.err >&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } &&
16561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16562 { (case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_try") 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; } &&
16571 { ac_try='test -s conftest.$ac_objext'
16572 { (case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16575 esac
16576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_try") 2>&5
16578 ac_status=$?
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); }; }; then
16581 ac_cv_type_uint64_t=yes
16582 else
16583 echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16586 ac_cv_type_uint64_t=no
16589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16591 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16592 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16593 if test $ac_cv_type_uint64_t = yes; then
16595 cat >>confdefs.h <<_ACEOF
16596 #define HAVE_UINT64_T 1
16597 _ACEOF
16600 else
16601 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16602 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16603 if test "${ac_cv_type_u_int64_t+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 else
16606 cat >conftest.$ac_ext <<_ACEOF
16607 /* confdefs.h. */
16608 _ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h. */
16612 $ac_includes_default
16613 typedef u_int64_t ac__type_new_;
16615 main ()
16617 if ((ac__type_new_ *) 0)
16618 return 0;
16619 if (sizeof (ac__type_new_))
16620 return 0;
16622 return 0;
16624 _ACEOF
16625 rm -f conftest.$ac_objext
16626 if { (ac_try="$ac_compile"
16627 case "(($ac_try" in
16628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16629 *) ac_try_echo=$ac_try;;
16630 esac
16631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16632 (eval "$ac_compile") 2>conftest.er1
16633 ac_status=$?
16634 grep -v '^ *+' conftest.er1 >conftest.err
16635 rm -f conftest.er1
16636 cat conftest.err >&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } &&
16639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16640 { (case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16643 esac
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_try") 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; } &&
16649 { ac_try='test -s conftest.$ac_objext'
16650 { (case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16653 esac
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_try") 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 ac_cv_type_u_int64_t=yes
16660 else
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16664 ac_cv_type_u_int64_t=no
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16669 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16670 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16671 if test $ac_cv_type_u_int64_t = yes; then
16673 cat >>confdefs.h <<_ACEOF
16674 #define HAVE_U_INT64_T 1
16675 _ACEOF
16678 else
16679 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16680 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16681 { (exit 1); exit 1; }; }
16695 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 else
16703 cat >conftest.$ac_ext <<_ACEOF
16704 /* confdefs.h. */
16705 _ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16711 #define $ac_func innocuous_$ac_func
16713 /* System header to define __stub macros and hopefully few prototypes,
16714 which can conflict with char $ac_func (); below.
16715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16716 <limits.h> exists even on freestanding compilers. */
16718 #ifdef __STDC__
16719 # include <limits.h>
16720 #else
16721 # include <assert.h>
16722 #endif
16724 #undef $ac_func
16726 /* Override any GCC internal prototype to avoid an error.
16727 Use char because int might match the return type of a GCC
16728 builtin and then its argument prototype would still apply. */
16729 #ifdef __cplusplus
16730 extern "C"
16731 #endif
16732 char $ac_func ();
16733 /* The GNU C library defines this for functions which it implements
16734 to always fail with ENOSYS. Some functions are actually named
16735 something starting with __ and the normal name is an alias. */
16736 #if defined __stub_$ac_func || defined __stub___$ac_func
16737 choke me
16738 #endif
16741 main ()
16743 return $ac_func ();
16745 return 0;
16747 _ACEOF
16748 rm -f conftest.$ac_objext conftest$ac_exeext
16749 if { (ac_try="$ac_link"
16750 case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16753 esac
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_link") 2>conftest.er1
16756 ac_status=$?
16757 grep -v '^ *+' conftest.er1 >conftest.err
16758 rm -f conftest.er1
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } &&
16762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16763 { (case "(($ac_try" in
16764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765 *) ac_try_echo=$ac_try;;
16766 esac
16767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768 (eval "$ac_try") 2>&5
16769 ac_status=$?
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; } &&
16772 { ac_try='test -s conftest$ac_exeext'
16773 { (case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16776 esac
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_try") 2>&5
16779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; }; then
16782 eval "$as_ac_var=yes"
16783 else
16784 echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16787 eval "$as_ac_var=no"
16790 rm -f core conftest.err conftest.$ac_objext \
16791 conftest$ac_exeext conftest.$ac_ext
16793 ac_res=`eval echo '${'$as_ac_var'}'`
16794 { echo "$as_me:$LINENO: result: $ac_res" >&5
16795 echo "${ECHO_T}$ac_res" >&6; }
16796 if test `eval echo '${'$as_ac_var'}'` = yes; then
16797 cat >>confdefs.h <<_ACEOF
16798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16799 _ACEOF
16802 done
16808 for ac_func in powf fmodf strtof round
16810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815 else
16816 cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h. */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16824 #define $ac_func innocuous_$ac_func
16826 /* System header to define __stub macros and hopefully few prototypes,
16827 which can conflict with char $ac_func (); below.
16828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16829 <limits.h> exists even on freestanding compilers. */
16831 #ifdef __STDC__
16832 # include <limits.h>
16833 #else
16834 # include <assert.h>
16835 #endif
16837 #undef $ac_func
16839 /* Override any GCC internal prototype to avoid an error.
16840 Use char because int might match the return type of a GCC
16841 builtin and then its argument prototype would still apply. */
16842 #ifdef __cplusplus
16843 extern "C"
16844 #endif
16845 char $ac_func ();
16846 /* The GNU C library defines this for functions which it implements
16847 to always fail with ENOSYS. Some functions are actually named
16848 something starting with __ and the normal name is an alias. */
16849 #if defined __stub_$ac_func || defined __stub___$ac_func
16850 choke me
16851 #endif
16854 main ()
16856 return $ac_func ();
16858 return 0;
16860 _ACEOF
16861 rm -f conftest.$ac_objext conftest$ac_exeext
16862 if { (ac_try="$ac_link"
16863 case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866 esac
16867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_link") 2>conftest.er1
16869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } &&
16875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879 esac
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; } &&
16885 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16895 eval "$as_ac_var=yes"
16896 else
16897 echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 eval "$as_ac_var=no"
16903 rm -f core conftest.err conftest.$ac_objext \
16904 conftest$ac_exeext conftest.$ac_ext
16906 ac_res=`eval echo '${'$as_ac_var'}'`
16907 { echo "$as_me:$LINENO: result: $ac_res" >&5
16908 echo "${ECHO_T}$ac_res" >&6; }
16909 if test `eval echo '${'$as_ac_var'}'` = yes; then
16910 cat >>confdefs.h <<_ACEOF
16911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16912 _ACEOF
16915 done
16922 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16929 else
16930 cat >conftest.$ac_ext <<_ACEOF
16931 /* confdefs.h. */
16932 _ACEOF
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h. */
16936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16938 #define $ac_func innocuous_$ac_func
16940 /* System header to define __stub macros and hopefully few prototypes,
16941 which can conflict with char $ac_func (); below.
16942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16943 <limits.h> exists even on freestanding compilers. */
16945 #ifdef __STDC__
16946 # include <limits.h>
16947 #else
16948 # include <assert.h>
16949 #endif
16951 #undef $ac_func
16953 /* Override any GCC internal prototype to avoid an error.
16954 Use char because int might match the return type of a GCC
16955 builtin and then its argument prototype would still apply. */
16956 #ifdef __cplusplus
16957 extern "C"
16958 #endif
16959 char $ac_func ();
16960 /* The GNU C library defines this for functions which it implements
16961 to always fail with ENOSYS. Some functions are actually named
16962 something starting with __ and the normal name is an alias. */
16963 #if defined __stub_$ac_func || defined __stub___$ac_func
16964 choke me
16965 #endif
16968 main ()
16970 return $ac_func ();
16972 return 0;
16974 _ACEOF
16975 rm -f conftest.$ac_objext conftest$ac_exeext
16976 if { (ac_try="$ac_link"
16977 case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16980 esac
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_link") 2>conftest.er1
16983 ac_status=$?
16984 grep -v '^ *+' conftest.er1 >conftest.err
16985 rm -f conftest.er1
16986 cat conftest.err >&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } &&
16989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16990 { (case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16993 esac
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_try") 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 eval "$as_ac_var=yes"
17010 else
17011 echo "$as_me: failed program was:" >&5
17012 sed 's/^/| /' conftest.$ac_ext >&5
17014 eval "$as_ac_var=no"
17017 rm -f core conftest.err conftest.$ac_objext \
17018 conftest$ac_exeext conftest.$ac_ext
17020 ac_res=`eval echo '${'$as_ac_var'}'`
17021 { echo "$as_me:$LINENO: result: $ac_res" >&5
17022 echo "${ECHO_T}$ac_res" >&6; }
17023 if test `eval echo '${'$as_ac_var'}'` = yes; then
17024 cat >>confdefs.h <<_ACEOF
17025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17026 _ACEOF
17029 done
17034 for ac_func in isatty mkdtemp mkstemp
17036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 else
17042 cat >conftest.$ac_ext <<_ACEOF
17043 /* confdefs.h. */
17044 _ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17050 #define $ac_func innocuous_$ac_func
17052 /* System header to define __stub macros and hopefully few prototypes,
17053 which can conflict with char $ac_func (); below.
17054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17055 <limits.h> exists even on freestanding compilers. */
17057 #ifdef __STDC__
17058 # include <limits.h>
17059 #else
17060 # include <assert.h>
17061 #endif
17063 #undef $ac_func
17065 /* Override any GCC internal prototype to avoid an error.
17066 Use char because int might match the return type of a GCC
17067 builtin and then its argument prototype would still apply. */
17068 #ifdef __cplusplus
17069 extern "C"
17070 #endif
17071 char $ac_func ();
17072 /* The GNU C library defines this for functions which it implements
17073 to always fail with ENOSYS. Some functions are actually named
17074 something starting with __ and the normal name is an alias. */
17075 #if defined __stub_$ac_func || defined __stub___$ac_func
17076 choke me
17077 #endif
17080 main ()
17082 return $ac_func ();
17084 return 0;
17086 _ACEOF
17087 rm -f conftest.$ac_objext conftest$ac_exeext
17088 if { (ac_try="$ac_link"
17089 case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092 esac
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_link") 2>conftest.er1
17095 ac_status=$?
17096 grep -v '^ *+' conftest.er1 >conftest.err
17097 rm -f conftest.er1
17098 cat conftest.err >&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } &&
17101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17102 { (case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17105 esac
17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_try") 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; } &&
17111 { ac_try='test -s conftest$ac_exeext'
17112 { (case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17115 esac
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_try") 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; }; then
17121 eval "$as_ac_var=yes"
17122 else
17123 echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17126 eval "$as_ac_var=no"
17129 rm -f core conftest.err conftest.$ac_objext \
17130 conftest$ac_exeext conftest.$ac_ext
17132 ac_res=`eval echo '${'$as_ac_var'}'`
17133 { echo "$as_me:$LINENO: result: $ac_res" >&5
17134 echo "${ECHO_T}$ac_res" >&6; }
17135 if test `eval echo '${'$as_ac_var'}'` = yes; then
17136 cat >>confdefs.h <<_ACEOF
17137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17138 _ACEOF
17141 done
17149 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17156 else
17157 cat >conftest.$ac_ext <<_ACEOF
17158 /* confdefs.h. */
17159 _ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17165 #define $ac_func innocuous_$ac_func
17167 /* System header to define __stub macros and hopefully few prototypes,
17168 which can conflict with char $ac_func (); below.
17169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17170 <limits.h> exists even on freestanding compilers. */
17172 #ifdef __STDC__
17173 # include <limits.h>
17174 #else
17175 # include <assert.h>
17176 #endif
17178 #undef $ac_func
17180 /* Override any GCC internal prototype to avoid an error.
17181 Use char because int might match the return type of a GCC
17182 builtin and then its argument prototype would still apply. */
17183 #ifdef __cplusplus
17184 extern "C"
17185 #endif
17186 char $ac_func ();
17187 /* The GNU C library defines this for functions which it implements
17188 to always fail with ENOSYS. Some functions are actually named
17189 something starting with __ and the normal name is an alias. */
17190 #if defined __stub_$ac_func || defined __stub___$ac_func
17191 choke me
17192 #endif
17195 main ()
17197 return $ac_func ();
17199 return 0;
17201 _ACEOF
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (ac_try="$ac_link"
17204 case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17207 esac
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_link") 2>conftest.er1
17210 ac_status=$?
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17217 { (case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17220 esac
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_try") 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; } &&
17226 { ac_try='test -s conftest$ac_exeext'
17227 { (case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17230 esac
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_try") 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 eval "$as_ac_var=yes"
17237 else
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 eval "$as_ac_var=no"
17244 rm -f core conftest.err conftest.$ac_objext \
17245 conftest$ac_exeext conftest.$ac_ext
17247 ac_res=`eval echo '${'$as_ac_var'}'`
17248 { echo "$as_me:$LINENO: result: $ac_res" >&5
17249 echo "${ECHO_T}$ac_res" >&6; }
17250 if test `eval echo '${'$as_ac_var'}'` = yes; then
17251 cat >>confdefs.h <<_ACEOF
17252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17253 _ACEOF
17256 done
17261 for ac_func in strerror strerror_r setenv
17263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269 cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h. */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17277 #define $ac_func innocuous_$ac_func
17279 /* System header to define __stub macros and hopefully few prototypes,
17280 which can conflict with char $ac_func (); below.
17281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17282 <limits.h> exists even on freestanding compilers. */
17284 #ifdef __STDC__
17285 # include <limits.h>
17286 #else
17287 # include <assert.h>
17288 #endif
17290 #undef $ac_func
17292 /* Override any GCC internal prototype to avoid an error.
17293 Use char because int might match the return type of a GCC
17294 builtin and then its argument prototype would still apply. */
17295 #ifdef __cplusplus
17296 extern "C"
17297 #endif
17298 char $ac_func ();
17299 /* The GNU C library defines this for functions which it implements
17300 to always fail with ENOSYS. Some functions are actually named
17301 something starting with __ and the normal name is an alias. */
17302 #if defined __stub_$ac_func || defined __stub___$ac_func
17303 choke me
17304 #endif
17307 main ()
17309 return $ac_func ();
17311 return 0;
17313 _ACEOF
17314 rm -f conftest.$ac_objext conftest$ac_exeext
17315 if { (ac_try="$ac_link"
17316 case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_link") 2>conftest.er1
17322 ac_status=$?
17323 grep -v '^ *+' conftest.er1 >conftest.err
17324 rm -f conftest.er1
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } &&
17328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17329 { (case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17332 esac
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334 (eval "$ac_try") 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; } &&
17338 { ac_try='test -s conftest$ac_exeext'
17339 { (case "(($ac_try" in
17340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341 *) ac_try_echo=$ac_try;;
17342 esac
17343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344 (eval "$ac_try") 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; }; then
17348 eval "$as_ac_var=yes"
17349 else
17350 echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17353 eval "$as_ac_var=no"
17356 rm -f core conftest.err conftest.$ac_objext \
17357 conftest$ac_exeext conftest.$ac_ext
17359 ac_res=`eval echo '${'$as_ac_var'}'`
17360 { echo "$as_me:$LINENO: result: $ac_res" >&5
17361 echo "${ECHO_T}$ac_res" >&6; }
17362 if test `eval echo '${'$as_ac_var'}'` = yes; then
17363 cat >>confdefs.h <<_ACEOF
17364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17365 _ACEOF
17368 done
17374 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17380 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 else
17382 cat >conftest.$ac_ext <<_ACEOF
17383 /* confdefs.h. */
17384 _ACEOF
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h. */
17388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17390 #define $ac_func innocuous_$ac_func
17392 /* System header to define __stub macros and hopefully few prototypes,
17393 which can conflict with char $ac_func (); below.
17394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17395 <limits.h> exists even on freestanding compilers. */
17397 #ifdef __STDC__
17398 # include <limits.h>
17399 #else
17400 # include <assert.h>
17401 #endif
17403 #undef $ac_func
17405 /* Override any GCC internal prototype to avoid an error.
17406 Use char because int might match the return type of a GCC
17407 builtin and then its argument prototype would still apply. */
17408 #ifdef __cplusplus
17409 extern "C"
17410 #endif
17411 char $ac_func ();
17412 /* The GNU C library defines this for functions which it implements
17413 to always fail with ENOSYS. Some functions are actually named
17414 something starting with __ and the normal name is an alias. */
17415 #if defined __stub_$ac_func || defined __stub___$ac_func
17416 choke me
17417 #endif
17420 main ()
17422 return $ac_func ();
17424 return 0;
17426 _ACEOF
17427 rm -f conftest.$ac_objext conftest$ac_exeext
17428 if { (ac_try="$ac_link"
17429 case "(($ac_try" in
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431 *) ac_try_echo=$ac_try;;
17432 esac
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434 (eval "$ac_link") 2>conftest.er1
17435 ac_status=$?
17436 grep -v '^ *+' conftest.er1 >conftest.err
17437 rm -f conftest.er1
17438 cat conftest.err >&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } &&
17441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17442 { (case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17445 esac
17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_try") 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; } &&
17451 { ac_try='test -s conftest$ac_exeext'
17452 { (case "(($ac_try" in
17453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454 *) ac_try_echo=$ac_try;;
17455 esac
17456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17457 (eval "$ac_try") 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461 eval "$as_ac_var=yes"
17462 else
17463 echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17466 eval "$as_ac_var=no"
17469 rm -f core conftest.err conftest.$ac_objext \
17470 conftest$ac_exeext conftest.$ac_ext
17472 ac_res=`eval echo '${'$as_ac_var'}'`
17473 { echo "$as_me:$LINENO: result: $ac_res" >&5
17474 echo "${ECHO_T}$ac_res" >&6; }
17475 if test `eval echo '${'$as_ac_var'}'` = yes; then
17476 cat >>confdefs.h <<_ACEOF
17477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17478 _ACEOF
17481 done
17488 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496 cat >conftest.$ac_ext <<_ACEOF
17497 /* confdefs.h. */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17504 #define $ac_func innocuous_$ac_func
17506 /* System header to define __stub macros and hopefully few prototypes,
17507 which can conflict with char $ac_func (); below.
17508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17509 <limits.h> exists even on freestanding compilers. */
17511 #ifdef __STDC__
17512 # include <limits.h>
17513 #else
17514 # include <assert.h>
17515 #endif
17517 #undef $ac_func
17519 /* Override any GCC internal prototype to avoid an error.
17520 Use char because int might match the return type of a GCC
17521 builtin and then its argument prototype would still apply. */
17522 #ifdef __cplusplus
17523 extern "C"
17524 #endif
17525 char $ac_func ();
17526 /* The GNU C library defines this for functions which it implements
17527 to always fail with ENOSYS. Some functions are actually named
17528 something starting with __ and the normal name is an alias. */
17529 #if defined __stub_$ac_func || defined __stub___$ac_func
17530 choke me
17531 #endif
17534 main ()
17536 return $ac_func ();
17538 return 0;
17540 _ACEOF
17541 rm -f conftest.$ac_objext conftest$ac_exeext
17542 if { (ac_try="$ac_link"
17543 case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17546 esac
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_link") 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17556 { (case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17559 esac
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_try") 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest$ac_exeext'
17566 { (case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17569 esac
17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_try") 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; }; then
17575 eval "$as_ac_var=yes"
17576 else
17577 echo "$as_me: failed program was:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17580 eval "$as_ac_var=no"
17583 rm -f core conftest.err conftest.$ac_objext \
17584 conftest$ac_exeext conftest.$ac_ext
17586 ac_res=`eval echo '${'$as_ac_var'}'`
17587 { echo "$as_me:$LINENO: result: $ac_res" >&5
17588 echo "${ECHO_T}$ac_res" >&6; }
17589 if test `eval echo '${'$as_ac_var'}'` = yes; then
17590 cat >>confdefs.h <<_ACEOF
17591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17592 _ACEOF
17595 done
17597 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17598 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17599 if test "${llvm_cv_c_printf_a+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602 ac_ext=c
17603 ac_cpp='$CPP $CPPFLAGS'
17604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17608 if test "$cross_compiling" = yes; then
17609 llvmac_cv_c_printf_a=no
17610 else
17611 cat >conftest.$ac_ext <<_ACEOF
17613 /* confdefs.h. */
17614 _ACEOF
17615 cat confdefs.h >>conftest.$ac_ext
17616 cat >>conftest.$ac_ext <<_ACEOF
17617 /* end confdefs.h. */
17619 #include <stdio.h>
17620 #include <stdlib.h>
17623 main ()
17626 volatile double A, B;
17627 char Buffer[100];
17628 A = 1;
17629 A /= 10.0;
17630 sprintf(Buffer, "%a", A);
17631 B = atof(Buffer);
17632 if (A != B)
17633 return (1);
17634 if (A != 0x1.999999999999ap-4)
17635 return (1);
17636 return (0);
17638 return 0;
17640 _ACEOF
17641 rm -f conftest$ac_exeext
17642 if { (ac_try="$ac_link"
17643 case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17646 esac
17647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648 (eval "$ac_link") 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17652 { (case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17655 esac
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_try") 2>&5
17658 ac_status=$?
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
17661 llvm_cv_c_printf_a=yes
17662 else
17663 echo "$as_me: program exited with status $ac_status" >&5
17664 echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17667 ( exit $ac_status )
17668 llvmac_cv_c_printf_a=no
17670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17674 ac_ext=c
17675 ac_cpp='$CPP $CPPFLAGS'
17676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17681 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17682 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17683 if test "$llvm_cv_c_printf_a" = "yes"; then
17685 cat >>confdefs.h <<\_ACEOF
17686 #define HAVE_PRINTF_A 1
17687 _ACEOF
17692 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17693 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17694 if test "${ac_cv_func_rand48+set}" = set; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17696 else
17697 ac_ext=cpp
17698 ac_cpp='$CXXCPP $CPPFLAGS'
17699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17703 cat >conftest.$ac_ext <<_ACEOF
17704 /* confdefs.h. */
17705 _ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h. */
17709 #include <stdlib.h>
17711 main ()
17713 srand48(0);lrand48();drand48();
17715 return 0;
17717 _ACEOF
17718 rm -f conftest.$ac_objext
17719 if { (ac_try="$ac_compile"
17720 case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723 esac
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_compile") 2>conftest.er1
17726 ac_status=$?
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17733 { (case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } &&
17742 { ac_try='test -s conftest.$ac_objext'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_cv_func_rand48=yes
17753 else
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 ac_cv_func_rand48=no
17760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17761 ac_ext=c
17762 ac_cpp='$CPP $CPPFLAGS'
17763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17768 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17769 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17771 if test "$ac_cv_func_rand48" = "yes" ; then
17773 cat >>confdefs.h <<\_ACEOF
17774 #define HAVE_RAND48 1
17775 _ACEOF
17780 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17781 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17782 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17783 echo $ECHO_N "(cached) $ECHO_C" >&6
17784 else
17785 cat >conftest.$ac_ext <<_ACEOF
17786 /* confdefs.h. */
17787 _ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17791 $ac_includes_default
17793 main ()
17795 #ifndef strerror_s
17796 char *p = (char *) strerror_s;
17797 return !p;
17798 #endif
17801 return 0;
17803 _ACEOF
17804 rm -f conftest.$ac_objext
17805 if { (ac_try="$ac_compile"
17806 case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17809 esac
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_compile") 2>conftest.er1
17812 ac_status=$?
17813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
17818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17819 { (case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17822 esac
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824 (eval "$ac_try") 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest.$ac_objext'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17832 esac
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 ac_cv_have_decl_strerror_s=yes
17839 else
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17843 ac_cv_have_decl_strerror_s=no
17846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17848 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17849 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17850 if test $ac_cv_have_decl_strerror_s = yes; then
17852 cat >>confdefs.h <<_ACEOF
17853 #define HAVE_DECL_STRERROR_S 1
17854 _ACEOF
17857 else
17858 cat >>confdefs.h <<_ACEOF
17859 #define HAVE_DECL_STRERROR_S 0
17860 _ACEOF
17867 if test "$llvm_cv_os_type" = "MingW" ; then
17868 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17869 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17870 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17871 echo $ECHO_N "(cached) $ECHO_C" >&6
17872 else
17873 ac_check_lib_save_LIBS=$LIBS
17874 LIBS="-lgcc $LIBS"
17875 cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h. */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17882 /* Override any GCC internal prototype to avoid an error.
17883 Use char because int might match the return type of a GCC
17884 builtin and then its argument prototype would still apply. */
17885 #ifdef __cplusplus
17886 extern "C"
17887 #endif
17888 char _alloca ();
17890 main ()
17892 return _alloca ();
17894 return 0;
17896 _ACEOF
17897 rm -f conftest.$ac_objext conftest$ac_exeext
17898 if { (ac_try="$ac_link"
17899 case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17902 esac
17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904 (eval "$ac_link") 2>conftest.er1
17905 ac_status=$?
17906 grep -v '^ *+' conftest.er1 >conftest.err
17907 rm -f conftest.er1
17908 cat conftest.err >&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } &&
17911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17912 { (case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17915 esac
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917 (eval "$ac_try") 2>&5
17918 ac_status=$?
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; } &&
17921 { ac_try='test -s conftest$ac_exeext'
17922 { (case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17925 esac
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_try") 2>&5
17928 ac_status=$?
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; }; then
17931 ac_cv_lib_gcc__alloca=yes
17932 else
17933 echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.$ac_ext >&5
17936 ac_cv_lib_gcc__alloca=no
17939 rm -f core conftest.err conftest.$ac_objext \
17940 conftest$ac_exeext conftest.$ac_ext
17941 LIBS=$ac_check_lib_save_LIBS
17943 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17944 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17945 if test $ac_cv_lib_gcc__alloca = yes; then
17947 cat >>confdefs.h <<\_ACEOF
17948 #define HAVE__ALLOCA 1
17949 _ACEOF
17953 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17954 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17955 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17957 else
17958 ac_check_lib_save_LIBS=$LIBS
17959 LIBS="-lgcc $LIBS"
17960 cat >conftest.$ac_ext <<_ACEOF
17961 /* confdefs.h. */
17962 _ACEOF
17963 cat confdefs.h >>conftest.$ac_ext
17964 cat >>conftest.$ac_ext <<_ACEOF
17965 /* end confdefs.h. */
17967 /* Override any GCC internal prototype to avoid an error.
17968 Use char because int might match the return type of a GCC
17969 builtin and then its argument prototype would still apply. */
17970 #ifdef __cplusplus
17971 extern "C"
17972 #endif
17973 char __alloca ();
17975 main ()
17977 return __alloca ();
17979 return 0;
17981 _ACEOF
17982 rm -f conftest.$ac_objext conftest$ac_exeext
17983 if { (ac_try="$ac_link"
17984 case "(($ac_try" in
17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17987 esac
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_link") 2>conftest.er1
17990 ac_status=$?
17991 grep -v '^ *+' conftest.er1 >conftest.err
17992 rm -f conftest.er1
17993 cat conftest.err >&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
17996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; } &&
18006 { ac_try='test -s conftest$ac_exeext'
18007 { (case "(($ac_try" in
18008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009 *) ac_try_echo=$ac_try;;
18010 esac
18011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012 (eval "$ac_try") 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
18016 ac_cv_lib_gcc___alloca=yes
18017 else
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 ac_cv_lib_gcc___alloca=no
18024 rm -f core conftest.err conftest.$ac_objext \
18025 conftest$ac_exeext conftest.$ac_ext
18026 LIBS=$ac_check_lib_save_LIBS
18028 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18029 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18030 if test $ac_cv_lib_gcc___alloca = yes; then
18032 cat >>confdefs.h <<\_ACEOF
18033 #define HAVE___ALLOCA 1
18034 _ACEOF
18038 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18039 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18040 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18041 echo $ECHO_N "(cached) $ECHO_C" >&6
18042 else
18043 ac_check_lib_save_LIBS=$LIBS
18044 LIBS="-lgcc $LIBS"
18045 cat >conftest.$ac_ext <<_ACEOF
18046 /* confdefs.h. */
18047 _ACEOF
18048 cat confdefs.h >>conftest.$ac_ext
18049 cat >>conftest.$ac_ext <<_ACEOF
18050 /* end confdefs.h. */
18052 /* Override any GCC internal prototype to avoid an error.
18053 Use char because int might match the return type of a GCC
18054 builtin and then its argument prototype would still apply. */
18055 #ifdef __cplusplus
18056 extern "C"
18057 #endif
18058 char __chkstk ();
18060 main ()
18062 return __chkstk ();
18064 return 0;
18066 _ACEOF
18067 rm -f conftest.$ac_objext conftest$ac_exeext
18068 if { (ac_try="$ac_link"
18069 case "(($ac_try" in
18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071 *) ac_try_echo=$ac_try;;
18072 esac
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074 (eval "$ac_link") 2>conftest.er1
18075 ac_status=$?
18076 grep -v '^ *+' conftest.er1 >conftest.err
18077 rm -f conftest.er1
18078 cat conftest.err >&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); } &&
18081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18082 { (case "(($ac_try" in
18083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084 *) ac_try_echo=$ac_try;;
18085 esac
18086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087 (eval "$ac_try") 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; } &&
18091 { ac_try='test -s conftest$ac_exeext'
18092 { (case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18095 esac
18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_try") 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; }; then
18101 ac_cv_lib_gcc___chkstk=yes
18102 else
18103 echo "$as_me: failed program was:" >&5
18104 sed 's/^/| /' conftest.$ac_ext >&5
18106 ac_cv_lib_gcc___chkstk=no
18109 rm -f core conftest.err conftest.$ac_objext \
18110 conftest$ac_exeext conftest.$ac_ext
18111 LIBS=$ac_check_lib_save_LIBS
18113 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18114 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18115 if test $ac_cv_lib_gcc___chkstk = yes; then
18117 cat >>confdefs.h <<\_ACEOF
18118 #define HAVE___CHKSTK 1
18119 _ACEOF
18123 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18124 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18125 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18126 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 else
18128 ac_check_lib_save_LIBS=$LIBS
18129 LIBS="-lgcc $LIBS"
18130 cat >conftest.$ac_ext <<_ACEOF
18131 /* confdefs.h. */
18132 _ACEOF
18133 cat confdefs.h >>conftest.$ac_ext
18134 cat >>conftest.$ac_ext <<_ACEOF
18135 /* end confdefs.h. */
18137 /* Override any GCC internal prototype to avoid an error.
18138 Use char because int might match the return type of a GCC
18139 builtin and then its argument prototype would still apply. */
18140 #ifdef __cplusplus
18141 extern "C"
18142 #endif
18143 char ___chkstk ();
18145 main ()
18147 return ___chkstk ();
18149 return 0;
18151 _ACEOF
18152 rm -f conftest.$ac_objext conftest$ac_exeext
18153 if { (ac_try="$ac_link"
18154 case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18157 esac
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_link") 2>conftest.er1
18160 ac_status=$?
18161 grep -v '^ *+' conftest.er1 >conftest.err
18162 rm -f conftest.er1
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } &&
18166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18167 { (case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18170 esac
18171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_try") 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; } &&
18176 { ac_try='test -s conftest$ac_exeext'
18177 { (case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18180 esac
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_try") 2>&5
18183 ac_status=$?
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; }; then
18186 ac_cv_lib_gcc____chkstk=yes
18187 else
18188 echo "$as_me: failed program was:" >&5
18189 sed 's/^/| /' conftest.$ac_ext >&5
18191 ac_cv_lib_gcc____chkstk=no
18194 rm -f core conftest.err conftest.$ac_objext \
18195 conftest$ac_exeext conftest.$ac_ext
18196 LIBS=$ac_check_lib_save_LIBS
18198 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18199 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18200 if test $ac_cv_lib_gcc____chkstk = yes; then
18202 cat >>confdefs.h <<\_ACEOF
18203 #define HAVE____CHKSTK 1
18204 _ACEOF
18209 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18210 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18211 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18213 else
18214 ac_check_lib_save_LIBS=$LIBS
18215 LIBS="-lgcc $LIBS"
18216 cat >conftest.$ac_ext <<_ACEOF
18217 /* confdefs.h. */
18218 _ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h. */
18223 /* Override any GCC internal prototype to avoid an error.
18224 Use char because int might match the return type of a GCC
18225 builtin and then its argument prototype would still apply. */
18226 #ifdef __cplusplus
18227 extern "C"
18228 #endif
18229 char __ashldi3 ();
18231 main ()
18233 return __ashldi3 ();
18235 return 0;
18237 _ACEOF
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
18246 ac_status=$?
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18253 { (case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18256 esac
18257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_try") 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest$ac_exeext'
18263 { (case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18266 esac
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_try") 2>&5
18269 ac_status=$?
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; }; then
18272 ac_cv_lib_gcc___ashldi3=yes
18273 else
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18277 ac_cv_lib_gcc___ashldi3=no
18280 rm -f core conftest.err conftest.$ac_objext \
18281 conftest$ac_exeext conftest.$ac_ext
18282 LIBS=$ac_check_lib_save_LIBS
18284 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18285 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18286 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18288 cat >>confdefs.h <<\_ACEOF
18289 #define HAVE___ASHLDI3 1
18290 _ACEOF
18294 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18295 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18296 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299 ac_check_lib_save_LIBS=$LIBS
18300 LIBS="-lgcc $LIBS"
18301 cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h. */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18308 /* Override any GCC internal prototype to avoid an error.
18309 Use char because int might match the return type of a GCC
18310 builtin and then its argument prototype would still apply. */
18311 #ifdef __cplusplus
18312 extern "C"
18313 #endif
18314 char __ashrdi3 ();
18316 main ()
18318 return __ashrdi3 ();
18320 return 0;
18322 _ACEOF
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (ac_try="$ac_link"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18328 esac
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_link") 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18338 { (case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18341 esac
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_try") 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest$ac_exeext'
18348 { (case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18351 esac
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_try") 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 ac_cv_lib_gcc___ashrdi3=yes
18358 else
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18362 ac_cv_lib_gcc___ashrdi3=no
18365 rm -f core conftest.err conftest.$ac_objext \
18366 conftest$ac_exeext conftest.$ac_ext
18367 LIBS=$ac_check_lib_save_LIBS
18369 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18370 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18371 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18373 cat >>confdefs.h <<\_ACEOF
18374 #define HAVE___ASHRDI3 1
18375 _ACEOF
18379 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18380 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18381 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 else
18384 ac_check_lib_save_LIBS=$LIBS
18385 LIBS="-lgcc $LIBS"
18386 cat >conftest.$ac_ext <<_ACEOF
18387 /* confdefs.h. */
18388 _ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18393 /* Override any GCC internal prototype to avoid an error.
18394 Use char because int might match the return type of a GCC
18395 builtin and then its argument prototype would still apply. */
18396 #ifdef __cplusplus
18397 extern "C"
18398 #endif
18399 char __divdi3 ();
18401 main ()
18403 return __divdi3 ();
18405 return 0;
18407 _ACEOF
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (ac_try="$ac_link"
18410 case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413 esac
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_link") 2>conftest.er1
18416 ac_status=$?
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18423 { (case "(($ac_try" in
18424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425 *) ac_try_echo=$ac_try;;
18426 esac
18427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428 (eval "$ac_try") 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest$ac_exeext'
18433 { (case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18436 esac
18437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_try") 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_cv_lib_gcc___divdi3=yes
18443 else
18444 echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18447 ac_cv_lib_gcc___divdi3=no
18450 rm -f core conftest.err conftest.$ac_objext \
18451 conftest$ac_exeext conftest.$ac_ext
18452 LIBS=$ac_check_lib_save_LIBS
18454 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18455 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18456 if test $ac_cv_lib_gcc___divdi3 = yes; then
18458 cat >>confdefs.h <<\_ACEOF
18459 #define HAVE___DIVDI3 1
18460 _ACEOF
18464 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18465 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18466 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18468 else
18469 ac_check_lib_save_LIBS=$LIBS
18470 LIBS="-lgcc $LIBS"
18471 cat >conftest.$ac_ext <<_ACEOF
18472 /* confdefs.h. */
18473 _ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h. */
18478 /* Override any GCC internal prototype to avoid an error.
18479 Use char because int might match the return type of a GCC
18480 builtin and then its argument prototype would still apply. */
18481 #ifdef __cplusplus
18482 extern "C"
18483 #endif
18484 char __fixdfdi ();
18486 main ()
18488 return __fixdfdi ();
18490 return 0;
18492 _ACEOF
18493 rm -f conftest.$ac_objext conftest$ac_exeext
18494 if { (ac_try="$ac_link"
18495 case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18498 esac
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_link") 2>conftest.er1
18501 ac_status=$?
18502 grep -v '^ *+' conftest.er1 >conftest.err
18503 rm -f conftest.er1
18504 cat conftest.err >&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } &&
18507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18508 { (case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511 esac
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_try") 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; } &&
18517 { ac_try='test -s conftest$ac_exeext'
18518 { (case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18521 esac
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_try") 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; }; then
18527 ac_cv_lib_gcc___fixdfdi=yes
18528 else
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18532 ac_cv_lib_gcc___fixdfdi=no
18535 rm -f core conftest.err conftest.$ac_objext \
18536 conftest$ac_exeext conftest.$ac_ext
18537 LIBS=$ac_check_lib_save_LIBS
18539 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18540 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18541 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18543 cat >>confdefs.h <<\_ACEOF
18544 #define HAVE___FIXDFDI 1
18545 _ACEOF
18549 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18550 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18551 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554 ac_check_lib_save_LIBS=$LIBS
18555 LIBS="-lgcc $LIBS"
18556 cat >conftest.$ac_ext <<_ACEOF
18557 /* confdefs.h. */
18558 _ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h. */
18563 /* Override any GCC internal prototype to avoid an error.
18564 Use char because int might match the return type of a GCC
18565 builtin and then its argument prototype would still apply. */
18566 #ifdef __cplusplus
18567 extern "C"
18568 #endif
18569 char __fixsfdi ();
18571 main ()
18573 return __fixsfdi ();
18575 return 0;
18577 _ACEOF
18578 rm -f conftest.$ac_objext conftest$ac_exeext
18579 if { (ac_try="$ac_link"
18580 case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18583 esac
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_link") 2>conftest.er1
18586 ac_status=$?
18587 grep -v '^ *+' conftest.er1 >conftest.err
18588 rm -f conftest.er1
18589 cat conftest.err >&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
18592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18593 { (case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18596 esac
18597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598 (eval "$ac_try") 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; } &&
18602 { ac_try='test -s conftest$ac_exeext'
18603 { (case "(($ac_try" in
18604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605 *) ac_try_echo=$ac_try;;
18606 esac
18607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608 (eval "$ac_try") 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; }; then
18612 ac_cv_lib_gcc___fixsfdi=yes
18613 else
18614 echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18617 ac_cv_lib_gcc___fixsfdi=no
18620 rm -f core conftest.err conftest.$ac_objext \
18621 conftest$ac_exeext conftest.$ac_ext
18622 LIBS=$ac_check_lib_save_LIBS
18624 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18625 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18626 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18628 cat >>confdefs.h <<\_ACEOF
18629 #define HAVE___FIXSFDI 1
18630 _ACEOF
18634 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18635 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18636 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18638 else
18639 ac_check_lib_save_LIBS=$LIBS
18640 LIBS="-lgcc $LIBS"
18641 cat >conftest.$ac_ext <<_ACEOF
18642 /* confdefs.h. */
18643 _ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h. */
18648 /* Override any GCC internal prototype to avoid an error.
18649 Use char because int might match the return type of a GCC
18650 builtin and then its argument prototype would still apply. */
18651 #ifdef __cplusplus
18652 extern "C"
18653 #endif
18654 char __floatdidf ();
18656 main ()
18658 return __floatdidf ();
18660 return 0;
18662 _ACEOF
18663 rm -f conftest.$ac_objext conftest$ac_exeext
18664 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18671 ac_status=$?
18672 grep -v '^ *+' conftest.er1 >conftest.err
18673 rm -f conftest.er1
18674 cat conftest.err >&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } &&
18677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18678 { (case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18681 esac
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_try") 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest$ac_exeext'
18688 { (case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18691 esac
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_try") 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; }; then
18697 ac_cv_lib_gcc___floatdidf=yes
18698 else
18699 echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18702 ac_cv_lib_gcc___floatdidf=no
18705 rm -f core conftest.err conftest.$ac_objext \
18706 conftest$ac_exeext conftest.$ac_ext
18707 LIBS=$ac_check_lib_save_LIBS
18709 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18710 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18711 if test $ac_cv_lib_gcc___floatdidf = yes; then
18713 cat >>confdefs.h <<\_ACEOF
18714 #define HAVE___FLOATDIDF 1
18715 _ACEOF
18719 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18720 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18721 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18722 echo $ECHO_N "(cached) $ECHO_C" >&6
18723 else
18724 ac_check_lib_save_LIBS=$LIBS
18725 LIBS="-lgcc $LIBS"
18726 cat >conftest.$ac_ext <<_ACEOF
18727 /* confdefs.h. */
18728 _ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18733 /* Override any GCC internal prototype to avoid an error.
18734 Use char because int might match the return type of a GCC
18735 builtin and then its argument prototype would still apply. */
18736 #ifdef __cplusplus
18737 extern "C"
18738 #endif
18739 char __lshrdi3 ();
18741 main ()
18743 return __lshrdi3 ();
18745 return 0;
18747 _ACEOF
18748 rm -f conftest.$ac_objext conftest$ac_exeext
18749 if { (ac_try="$ac_link"
18750 case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753 esac
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_link") 2>conftest.er1
18756 ac_status=$?
18757 grep -v '^ *+' conftest.er1 >conftest.err
18758 rm -f conftest.er1
18759 cat conftest.err >&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } &&
18762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18763 { (case "(($ac_try" in
18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18766 esac
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768 (eval "$ac_try") 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; } &&
18772 { ac_try='test -s conftest$ac_exeext'
18773 { (case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18776 esac
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_try") 2>&5
18779 ac_status=$?
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); }; }; then
18782 ac_cv_lib_gcc___lshrdi3=yes
18783 else
18784 echo "$as_me: failed program was:" >&5
18785 sed 's/^/| /' conftest.$ac_ext >&5
18787 ac_cv_lib_gcc___lshrdi3=no
18790 rm -f core conftest.err conftest.$ac_objext \
18791 conftest$ac_exeext conftest.$ac_ext
18792 LIBS=$ac_check_lib_save_LIBS
18794 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18795 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18796 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18798 cat >>confdefs.h <<\_ACEOF
18799 #define HAVE___LSHRDI3 1
18800 _ACEOF
18804 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18805 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18806 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18808 else
18809 ac_check_lib_save_LIBS=$LIBS
18810 LIBS="-lgcc $LIBS"
18811 cat >conftest.$ac_ext <<_ACEOF
18812 /* confdefs.h. */
18813 _ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18818 /* Override any GCC internal prototype to avoid an error.
18819 Use char because int might match the return type of a GCC
18820 builtin and then its argument prototype would still apply. */
18821 #ifdef __cplusplus
18822 extern "C"
18823 #endif
18824 char __moddi3 ();
18826 main ()
18828 return __moddi3 ();
18830 return 0;
18832 _ACEOF
18833 rm -f conftest.$ac_objext conftest$ac_exeext
18834 if { (ac_try="$ac_link"
18835 case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18838 esac
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_link") 2>conftest.er1
18841 ac_status=$?
18842 grep -v '^ *+' conftest.er1 >conftest.err
18843 rm -f conftest.er1
18844 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } &&
18847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18848 { (case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18851 esac
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_try") 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; } &&
18857 { ac_try='test -s conftest$ac_exeext'
18858 { (case "(($ac_try" in
18859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860 *) ac_try_echo=$ac_try;;
18861 esac
18862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863 (eval "$ac_try") 2>&5
18864 ac_status=$?
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; }; then
18867 ac_cv_lib_gcc___moddi3=yes
18868 else
18869 echo "$as_me: failed program was:" >&5
18870 sed 's/^/| /' conftest.$ac_ext >&5
18872 ac_cv_lib_gcc___moddi3=no
18875 rm -f core conftest.err conftest.$ac_objext \
18876 conftest$ac_exeext conftest.$ac_ext
18877 LIBS=$ac_check_lib_save_LIBS
18879 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18880 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18881 if test $ac_cv_lib_gcc___moddi3 = yes; then
18883 cat >>confdefs.h <<\_ACEOF
18884 #define HAVE___MODDI3 1
18885 _ACEOF
18889 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18890 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18891 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18892 echo $ECHO_N "(cached) $ECHO_C" >&6
18893 else
18894 ac_check_lib_save_LIBS=$LIBS
18895 LIBS="-lgcc $LIBS"
18896 cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h. */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18903 /* Override any GCC internal prototype to avoid an error.
18904 Use char because int might match the return type of a GCC
18905 builtin and then its argument prototype would still apply. */
18906 #ifdef __cplusplus
18907 extern "C"
18908 #endif
18909 char __udivdi3 ();
18911 main ()
18913 return __udivdi3 ();
18915 return 0;
18917 _ACEOF
18918 rm -f conftest.$ac_objext conftest$ac_exeext
18919 if { (ac_try="$ac_link"
18920 case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18923 esac
18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_link") 2>conftest.er1
18926 ac_status=$?
18927 grep -v '^ *+' conftest.er1 >conftest.err
18928 rm -f conftest.er1
18929 cat conftest.err >&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } &&
18932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18933 { (case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18936 esac
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_try") 2>&5
18939 ac_status=$?
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; } &&
18942 { ac_try='test -s conftest$ac_exeext'
18943 { (case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18946 esac
18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_try") 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; }; then
18952 ac_cv_lib_gcc___udivdi3=yes
18953 else
18954 echo "$as_me: failed program was:" >&5
18955 sed 's/^/| /' conftest.$ac_ext >&5
18957 ac_cv_lib_gcc___udivdi3=no
18960 rm -f core conftest.err conftest.$ac_objext \
18961 conftest$ac_exeext conftest.$ac_ext
18962 LIBS=$ac_check_lib_save_LIBS
18964 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18965 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18966 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18968 cat >>confdefs.h <<\_ACEOF
18969 #define HAVE___UDIVDI3 1
18970 _ACEOF
18974 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18975 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18976 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 else
18979 ac_check_lib_save_LIBS=$LIBS
18980 LIBS="-lgcc $LIBS"
18981 cat >conftest.$ac_ext <<_ACEOF
18982 /* confdefs.h. */
18983 _ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h. */
18988 /* Override any GCC internal prototype to avoid an error.
18989 Use char because int might match the return type of a GCC
18990 builtin and then its argument prototype would still apply. */
18991 #ifdef __cplusplus
18992 extern "C"
18993 #endif
18994 char __umoddi3 ();
18996 main ()
18998 return __umoddi3 ();
19000 return 0;
19002 _ACEOF
19003 rm -f conftest.$ac_objext conftest$ac_exeext
19004 if { (ac_try="$ac_link"
19005 case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19008 esac
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_link") 2>conftest.er1
19011 ac_status=$?
19012 grep -v '^ *+' conftest.er1 >conftest.err
19013 rm -f conftest.er1
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } &&
19017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19018 { (case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19021 esac
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_try") 2>&5
19024 ac_status=$?
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; } &&
19027 { ac_try='test -s conftest$ac_exeext'
19028 { (case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19031 esac
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_try") 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
19037 ac_cv_lib_gcc___umoddi3=yes
19038 else
19039 echo "$as_me: failed program was:" >&5
19040 sed 's/^/| /' conftest.$ac_ext >&5
19042 ac_cv_lib_gcc___umoddi3=no
19045 rm -f core conftest.err conftest.$ac_objext \
19046 conftest$ac_exeext conftest.$ac_ext
19047 LIBS=$ac_check_lib_save_LIBS
19049 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19050 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19051 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19053 cat >>confdefs.h <<\_ACEOF
19054 #define HAVE___UMODDI3 1
19055 _ACEOF
19060 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19061 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19062 if test "${ac_cv_lib_gcc___main+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19064 else
19065 ac_check_lib_save_LIBS=$LIBS
19066 LIBS="-lgcc $LIBS"
19067 cat >conftest.$ac_ext <<_ACEOF
19068 /* confdefs.h. */
19069 _ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19074 /* Override any GCC internal prototype to avoid an error.
19075 Use char because int might match the return type of a GCC
19076 builtin and then its argument prototype would still apply. */
19077 #ifdef __cplusplus
19078 extern "C"
19079 #endif
19080 char __main ();
19082 main ()
19084 return __main ();
19086 return 0;
19088 _ACEOF
19089 rm -f conftest.$ac_objext 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>conftest.er1
19097 ac_status=$?
19098 grep -v '^ *+' conftest.er1 >conftest.err
19099 rm -f conftest.er1
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19104 { (case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19107 esac
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109 (eval "$ac_try") 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; } &&
19113 { ac_try='test -s conftest$ac_exeext'
19114 { (case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19117 esac
19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119 (eval "$ac_try") 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 ac_cv_lib_gcc___main=yes
19124 else
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19128 ac_cv_lib_gcc___main=no
19131 rm -f core conftest.err conftest.$ac_objext \
19132 conftest$ac_exeext conftest.$ac_ext
19133 LIBS=$ac_check_lib_save_LIBS
19135 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19136 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19137 if test $ac_cv_lib_gcc___main = yes; then
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE___MAIN 1
19141 _ACEOF
19145 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19146 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19147 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19149 else
19150 ac_check_lib_save_LIBS=$LIBS
19151 LIBS="-lgcc $LIBS"
19152 cat >conftest.$ac_ext <<_ACEOF
19153 /* confdefs.h. */
19154 _ACEOF
19155 cat confdefs.h >>conftest.$ac_ext
19156 cat >>conftest.$ac_ext <<_ACEOF
19157 /* end confdefs.h. */
19159 /* Override any GCC internal prototype to avoid an error.
19160 Use char because int might match the return type of a GCC
19161 builtin and then its argument prototype would still apply. */
19162 #ifdef __cplusplus
19163 extern "C"
19164 #endif
19165 char __cmpdi2 ();
19167 main ()
19169 return __cmpdi2 ();
19171 return 0;
19173 _ACEOF
19174 rm -f conftest.$ac_objext conftest$ac_exeext
19175 if { (ac_try="$ac_link"
19176 case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_link") 2>conftest.er1
19182 ac_status=$?
19183 grep -v '^ *+' conftest.er1 >conftest.err
19184 rm -f conftest.er1
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
19188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19192 esac
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; } &&
19198 { ac_try='test -s conftest$ac_exeext'
19199 { (case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19202 esac
19203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_try") 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_cv_lib_gcc___cmpdi2=yes
19209 else
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19213 ac_cv_lib_gcc___cmpdi2=no
19216 rm -f core conftest.err conftest.$ac_objext \
19217 conftest$ac_exeext conftest.$ac_ext
19218 LIBS=$ac_check_lib_save_LIBS
19220 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19221 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19222 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19224 cat >>confdefs.h <<\_ACEOF
19225 #define HAVE___CMPDI2 1
19226 _ACEOF
19232 if test "$llvm_cv_os_type" = "MingW" ; then
19233 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19234 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19235 cat >conftest.$ac_ext <<_ACEOF
19236 #include <windows.h>
19237 #include <imagehlp.h>
19238 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19239 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19240 _ACEOF
19241 rm -f conftest.$ac_objext
19242 if { (ac_try="$ac_compile"
19243 case "(($ac_try" in
19244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19245 *) ac_try_echo=$ac_try;;
19246 esac
19247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19248 (eval "$ac_compile") 2>conftest.er1
19249 ac_status=$?
19250 grep -v '^ *+' conftest.er1 >conftest.err
19251 rm -f conftest.er1
19252 cat conftest.err >&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } &&
19255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19256 { (case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259 esac
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_try") 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; } &&
19265 { ac_try='test -s conftest.$ac_objext'
19266 { (case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_try") 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; }; then
19276 { echo "$as_me:$LINENO: result: yes" >&5
19277 echo "${ECHO_T}yes" >&6; }
19278 llvm_cv_win32_elmcb_pcstr="PCSTR"
19280 else
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19285 { echo "$as_me:$LINENO: result: no" >&5
19286 echo "${ECHO_T}no" >&6; }
19287 llvm_cv_win32_elmcb_pcstr="PSTR"
19291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19293 cat >>confdefs.h <<_ACEOF
19294 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19295 _ACEOF
19300 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19301 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19302 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19303 echo $ECHO_N "(cached) $ECHO_C" >&6
19304 else
19305 ac_ext=cpp
19306 ac_cpp='$CXXCPP $CPPFLAGS'
19307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19311 cat >conftest.$ac_ext <<_ACEOF
19312 /* confdefs.h. */
19313 _ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h. */
19317 #include <math.h>
19319 main ()
19321 float f; isnan(f);
19323 return 0;
19325 _ACEOF
19326 rm -f conftest.$ac_objext
19327 if { (ac_try="$ac_compile"
19328 case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19331 esac
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_compile") 2>conftest.er1
19334 ac_status=$?
19335 grep -v '^ *+' conftest.er1 >conftest.err
19336 rm -f conftest.er1
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } &&
19340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19341 { (case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19344 esac
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_try") 2>&5
19347 ac_status=$?
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; } &&
19350 { ac_try='test -s conftest.$ac_objext'
19351 { (case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19354 esac
19355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_try") 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; }; then
19360 ac_cv_func_isnan_in_math_h=yes
19361 else
19362 echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19365 ac_cv_func_isnan_in_math_h=no
19368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19369 ac_ext=c
19370 ac_cpp='$CPP $CPPFLAGS'
19371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19376 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19377 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19380 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19382 cat >>confdefs.h <<\_ACEOF
19383 #define HAVE_ISNAN_IN_MATH_H 1
19384 _ACEOF
19388 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19389 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19390 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19392 else
19393 ac_ext=cpp
19394 ac_cpp='$CXXCPP $CPPFLAGS'
19395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19399 cat >conftest.$ac_ext <<_ACEOF
19400 /* confdefs.h. */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19405 #include <cmath>
19407 main ()
19409 float f; isnan(f);
19411 return 0;
19413 _ACEOF
19414 rm -f conftest.$ac_objext
19415 if { (ac_try="$ac_compile"
19416 case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19419 esac
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_compile") 2>conftest.er1
19422 ac_status=$?
19423 grep -v '^ *+' conftest.er1 >conftest.err
19424 rm -f conftest.er1
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } &&
19428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19429 { (case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432 esac
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_try") 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; } &&
19438 { ac_try='test -s conftest.$ac_objext'
19439 { (case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19442 esac
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_try") 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 ac_cv_func_isnan_in_cmath=yes
19449 else
19450 echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19453 ac_cv_func_isnan_in_cmath=no
19456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19457 ac_ext=c
19458 ac_cpp='$CPP $CPPFLAGS'
19459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19464 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19465 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19467 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19469 cat >>confdefs.h <<\_ACEOF
19470 #define HAVE_ISNAN_IN_CMATH 1
19471 _ACEOF
19475 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19476 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19477 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19478 echo $ECHO_N "(cached) $ECHO_C" >&6
19479 else
19480 ac_ext=cpp
19481 ac_cpp='$CXXCPP $CPPFLAGS'
19482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19486 cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h. */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19492 #include <cmath>
19494 main ()
19496 float f; std::isnan(f);
19498 return 0;
19500 _ACEOF
19501 rm -f conftest.$ac_objext
19502 if { (ac_try="$ac_compile"
19503 case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19506 esac
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_compile") 2>conftest.er1
19509 ac_status=$?
19510 grep -v '^ *+' conftest.er1 >conftest.err
19511 rm -f conftest.er1
19512 cat conftest.err >&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } &&
19515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19516 { (case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519 esac
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_try") 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; } &&
19525 { ac_try='test -s conftest.$ac_objext'
19526 { (case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19529 esac
19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$ac_try") 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 ac_cv_func_std_isnan_in_cmath=yes
19536 else
19537 echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.$ac_ext >&5
19540 ac_cv_func_std_isnan_in_cmath=no
19543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19544 ac_ext=c
19545 ac_cpp='$CPP $CPPFLAGS'
19546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19551 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19552 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19554 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19556 cat >>confdefs.h <<\_ACEOF
19557 #define HAVE_STD_ISNAN_IN_CMATH 1
19558 _ACEOF
19563 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19564 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19565 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 else
19568 ac_ext=cpp
19569 ac_cpp='$CXXCPP $CPPFLAGS'
19570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19574 cat >conftest.$ac_ext <<_ACEOF
19575 /* confdefs.h. */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580 #include <math.h>
19582 main ()
19584 float f; isinf(f);
19586 return 0;
19588 _ACEOF
19589 rm -f conftest.$ac_objext
19590 if { (ac_try="$ac_compile"
19591 case "(($ac_try" in
19592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19593 *) ac_try_echo=$ac_try;;
19594 esac
19595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19596 (eval "$ac_compile") 2>conftest.er1
19597 ac_status=$?
19598 grep -v '^ *+' conftest.er1 >conftest.err
19599 rm -f conftest.er1
19600 cat conftest.err >&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } &&
19603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19604 { (case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19607 esac
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_try") 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; } &&
19613 { ac_try='test -s conftest.$ac_objext'
19614 { (case "(($ac_try" in
19615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19616 *) ac_try_echo=$ac_try;;
19617 esac
19618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19619 (eval "$ac_try") 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
19623 ac_cv_func_isinf_in_math_h=yes
19624 else
19625 echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19628 ac_cv_func_isinf_in_math_h=no
19631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19632 ac_ext=c
19633 ac_cpp='$CPP $CPPFLAGS'
19634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19639 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19640 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19642 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19644 cat >>confdefs.h <<\_ACEOF
19645 #define HAVE_ISINF_IN_MATH_H 1
19646 _ACEOF
19650 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19651 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19652 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655 ac_ext=cpp
19656 ac_cpp='$CXXCPP $CPPFLAGS'
19657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19661 cat >conftest.$ac_ext <<_ACEOF
19662 /* confdefs.h. */
19663 _ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h. */
19667 #include <cmath>
19669 main ()
19671 float f; isinf(f);
19673 return 0;
19675 _ACEOF
19676 rm -f conftest.$ac_objext
19677 if { (ac_try="$ac_compile"
19678 case "(($ac_try" in
19679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680 *) ac_try_echo=$ac_try;;
19681 esac
19682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683 (eval "$ac_compile") 2>conftest.er1
19684 ac_status=$?
19685 grep -v '^ *+' conftest.er1 >conftest.err
19686 rm -f conftest.er1
19687 cat conftest.err >&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); } &&
19690 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19691 { (case "(($ac_try" in
19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693 *) ac_try_echo=$ac_try;;
19694 esac
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696 (eval "$ac_try") 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; } &&
19700 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19710 ac_cv_func_isinf_in_cmath=yes
19711 else
19712 echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19715 ac_cv_func_isinf_in_cmath=no
19718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19719 ac_ext=c
19720 ac_cpp='$CPP $CPPFLAGS'
19721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19726 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19727 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19729 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19731 cat >>confdefs.h <<\_ACEOF
19732 #define HAVE_ISINF_IN_CMATH 1
19733 _ACEOF
19737 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19738 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19739 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 else
19742 ac_ext=cpp
19743 ac_cpp='$CXXCPP $CPPFLAGS'
19744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19748 cat >conftest.$ac_ext <<_ACEOF
19749 /* confdefs.h. */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754 #include <cmath>
19756 main ()
19758 float f; std::isinf(f)}
19760 return 0;
19762 _ACEOF
19763 rm -f conftest.$ac_objext
19764 if { (ac_try="$ac_compile"
19765 case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19768 esac
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_compile") 2>conftest.er1
19771 ac_status=$?
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
19777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19778 { (case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19781 esac
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_try") 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; } &&
19787 { ac_try='test -s conftest.$ac_objext'
19788 { (case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19791 esac
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_try") 2>&5
19794 ac_status=$?
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; }; then
19797 ac_cv_func_std_isinf_in_cmath=yes
19798 else
19799 echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 ac_cv_func_std_isinf_in_cmath=no
19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806 ac_ext=c
19807 ac_cpp='$CPP $CPPFLAGS'
19808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19813 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19814 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19816 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19818 cat >>confdefs.h <<\_ACEOF
19819 #define HAVE_STD_ISINF_IN_CMATH 1
19820 _ACEOF
19824 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19825 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19826 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19828 else
19829 ac_ext=cpp
19830 ac_cpp='$CXXCPP $CPPFLAGS'
19831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h. */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 #include <ieeefp.h>
19843 main ()
19845 float f; finite(f);
19847 return 0;
19849 _ACEOF
19850 rm -f conftest.$ac_objext
19851 if { (ac_try="$ac_compile"
19852 case "(($ac_try" in
19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854 *) ac_try_echo=$ac_try;;
19855 esac
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857 (eval "$ac_compile") 2>conftest.er1
19858 ac_status=$?
19859 grep -v '^ *+' conftest.er1 >conftest.err
19860 rm -f conftest.er1
19861 cat conftest.err >&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); } &&
19864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19865 { (case "(($ac_try" in
19866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19868 esac
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870 (eval "$ac_try") 2>&5
19871 ac_status=$?
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest.$ac_objext'
19875 { (case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19878 esac
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_try") 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 ac_cv_func_finite_in_ieeefp_h=yes
19885 else
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ac_cv_func_finite_in_ieeefp_h=no
19892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19893 ac_ext=c
19894 ac_cpp='$CPP $CPPFLAGS'
19895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19900 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19901 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19903 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19905 cat >>confdefs.h <<\_ACEOF
19906 #define HAVE_FINITE_IN_IEEEFP_H 1
19907 _ACEOF
19913 if test "$llvm_cv_platform_type" = "Unix" ; then
19916 for ac_header in stdlib.h unistd.h
19918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19925 ac_res=`eval echo '${'$as_ac_Header'}'`
19926 { echo "$as_me:$LINENO: result: $ac_res" >&5
19927 echo "${ECHO_T}$ac_res" >&6; }
19928 else
19929 # Is the header compilable?
19930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19932 cat >conftest.$ac_ext <<_ACEOF
19933 /* confdefs.h. */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19938 $ac_includes_default
19939 #include <$ac_header>
19940 _ACEOF
19941 rm -f conftest.$ac_objext
19942 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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_header_compiler=yes
19976 else
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 ac_header_compiler=no
19983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19985 echo "${ECHO_T}$ac_header_compiler" >&6; }
19987 # Is the header present?
19988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19990 cat >conftest.$ac_ext <<_ACEOF
19991 /* confdefs.h. */
19992 _ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h. */
19996 #include <$ac_header>
19997 _ACEOF
19998 if { (ac_try="$ac_cpp conftest.$ac_ext"
19999 case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20002 esac
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20005 ac_status=$?
20006 grep -v '^ *+' conftest.er1 >conftest.err
20007 rm -f conftest.er1
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } >/dev/null; then
20011 if test -s conftest.err; then
20012 ac_cpp_err=$ac_c_preproc_warn_flag
20013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20014 else
20015 ac_cpp_err=
20017 else
20018 ac_cpp_err=yes
20020 if test -z "$ac_cpp_err"; then
20021 ac_header_preproc=yes
20022 else
20023 echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20026 ac_header_preproc=no
20029 rm -f conftest.err conftest.$ac_ext
20030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20031 echo "${ECHO_T}$ac_header_preproc" >&6; }
20033 # So? What about this header?
20034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20035 yes:no: )
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20040 ac_header_preproc=yes
20042 no:yes:* )
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20055 ( cat <<\_ASBOX
20056 ## ----------------------------------- ##
20057 ## Report this to llvmbugs@cs.uiuc.edu ##
20058 ## ----------------------------------- ##
20059 _ASBOX
20060 ) | sed "s/^/$as_me: WARNING: /" >&2
20062 esac
20063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20067 else
20068 eval "$as_ac_Header=\$ac_header_preproc"
20070 ac_res=`eval echo '${'$as_ac_Header'}'`
20071 { echo "$as_me:$LINENO: result: $ac_res" >&5
20072 echo "${ECHO_T}$ac_res" >&6; }
20075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20076 cat >>confdefs.h <<_ACEOF
20077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20078 _ACEOF
20082 done
20085 for ac_func in getpagesize
20087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093 cat >conftest.$ac_ext <<_ACEOF
20094 /* confdefs.h. */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20101 #define $ac_func innocuous_$ac_func
20103 /* System header to define __stub macros and hopefully few prototypes,
20104 which can conflict with char $ac_func (); below.
20105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20106 <limits.h> exists even on freestanding compilers. */
20108 #ifdef __STDC__
20109 # include <limits.h>
20110 #else
20111 # include <assert.h>
20112 #endif
20114 #undef $ac_func
20116 /* Override any GCC internal prototype to avoid an error.
20117 Use char because int might match the return type of a GCC
20118 builtin and then its argument prototype would still apply. */
20119 #ifdef __cplusplus
20120 extern "C"
20121 #endif
20122 char $ac_func ();
20123 /* The GNU C library defines this for functions which it implements
20124 to always fail with ENOSYS. Some functions are actually named
20125 something starting with __ and the normal name is an alias. */
20126 #if defined __stub_$ac_func || defined __stub___$ac_func
20127 choke me
20128 #endif
20131 main ()
20133 return $ac_func ();
20135 return 0;
20137 _ACEOF
20138 rm -f conftest.$ac_objext conftest$ac_exeext
20139 if { (ac_try="$ac_link"
20140 case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143 esac
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_link") 2>conftest.er1
20146 ac_status=$?
20147 grep -v '^ *+' conftest.er1 >conftest.err
20148 rm -f conftest.er1
20149 cat conftest.err >&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } &&
20152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20153 { (case "(($ac_try" in
20154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155 *) ac_try_echo=$ac_try;;
20156 esac
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158 (eval "$ac_try") 2>&5
20159 ac_status=$?
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; } &&
20162 { ac_try='test -s conftest$ac_exeext'
20163 { (case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20166 esac
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168 (eval "$ac_try") 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20172 eval "$as_ac_var=yes"
20173 else
20174 echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20177 eval "$as_ac_var=no"
20180 rm -f core conftest.err conftest.$ac_objext \
20181 conftest$ac_exeext conftest.$ac_ext
20183 ac_res=`eval echo '${'$as_ac_var'}'`
20184 { echo "$as_me:$LINENO: result: $ac_res" >&5
20185 echo "${ECHO_T}$ac_res" >&6; }
20186 if test `eval echo '${'$as_ac_var'}'` = yes; then
20187 cat >>confdefs.h <<_ACEOF
20188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20189 _ACEOF
20192 done
20194 { echo "$as_me:$LINENO: checking for working mmap" >&5
20195 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20196 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 else
20199 if test "$cross_compiling" = yes; then
20200 ac_cv_func_mmap_fixed_mapped=no
20201 else
20202 cat >conftest.$ac_ext <<_ACEOF
20203 /* confdefs.h. */
20204 _ACEOF
20205 cat confdefs.h >>conftest.$ac_ext
20206 cat >>conftest.$ac_ext <<_ACEOF
20207 /* end confdefs.h. */
20208 $ac_includes_default
20209 /* malloc might have been renamed as rpl_malloc. */
20210 #undef malloc
20212 /* Thanks to Mike Haertel and Jim Avera for this test.
20213 Here is a matrix of mmap possibilities:
20214 mmap private not fixed
20215 mmap private fixed at somewhere currently unmapped
20216 mmap private fixed at somewhere already mapped
20217 mmap shared not fixed
20218 mmap shared fixed at somewhere currently unmapped
20219 mmap shared fixed at somewhere already mapped
20220 For private mappings, we should verify that changes cannot be read()
20221 back from the file, nor mmap's back from the file at a different
20222 address. (There have been systems where private was not correctly
20223 implemented like the infamous i386 svr4.0, and systems where the
20224 VM page cache was not coherent with the file system buffer cache
20225 like early versions of FreeBSD and possibly contemporary NetBSD.)
20226 For shared mappings, we should conversely verify that changes get
20227 propagated back to all the places they're supposed to be.
20229 Grep wants private fixed already mapped.
20230 The main things grep needs to know about mmap are:
20231 * does it exist and is it safe to write into the mmap'd area
20232 * how to use it (BSD variants) */
20234 #include <fcntl.h>
20235 #include <sys/mman.h>
20237 #if !STDC_HEADERS && !HAVE_STDLIB_H
20238 char *malloc ();
20239 #endif
20241 /* This mess was copied from the GNU getpagesize.h. */
20242 #if !HAVE_GETPAGESIZE
20243 /* Assume that all systems that can run configure have sys/param.h. */
20244 # if !HAVE_SYS_PARAM_H
20245 # define HAVE_SYS_PARAM_H 1
20246 # endif
20248 # ifdef _SC_PAGESIZE
20249 # define getpagesize() sysconf(_SC_PAGESIZE)
20250 # else /* no _SC_PAGESIZE */
20251 # if HAVE_SYS_PARAM_H
20252 # include <sys/param.h>
20253 # ifdef EXEC_PAGESIZE
20254 # define getpagesize() EXEC_PAGESIZE
20255 # else /* no EXEC_PAGESIZE */
20256 # ifdef NBPG
20257 # define getpagesize() NBPG * CLSIZE
20258 # ifndef CLSIZE
20259 # define CLSIZE 1
20260 # endif /* no CLSIZE */
20261 # else /* no NBPG */
20262 # ifdef NBPC
20263 # define getpagesize() NBPC
20264 # else /* no NBPC */
20265 # ifdef PAGESIZE
20266 # define getpagesize() PAGESIZE
20267 # endif /* PAGESIZE */
20268 # endif /* no NBPC */
20269 # endif /* no NBPG */
20270 # endif /* no EXEC_PAGESIZE */
20271 # else /* no HAVE_SYS_PARAM_H */
20272 # define getpagesize() 8192 /* punt totally */
20273 # endif /* no HAVE_SYS_PARAM_H */
20274 # endif /* no _SC_PAGESIZE */
20276 #endif /* no HAVE_GETPAGESIZE */
20279 main ()
20281 char *data, *data2, *data3;
20282 int i, pagesize;
20283 int fd;
20285 pagesize = getpagesize ();
20287 /* First, make a file with some known garbage in it. */
20288 data = (char *) malloc (pagesize);
20289 if (!data)
20290 return 1;
20291 for (i = 0; i < pagesize; ++i)
20292 *(data + i) = rand ();
20293 umask (0);
20294 fd = creat ("conftest.mmap", 0600);
20295 if (fd < 0)
20296 return 1;
20297 if (write (fd, data, pagesize) != pagesize)
20298 return 1;
20299 close (fd);
20301 /* Next, try to mmap the file at a fixed address which already has
20302 something else allocated at it. If we can, also make sure that
20303 we see the same garbage. */
20304 fd = open ("conftest.mmap", O_RDWR);
20305 if (fd < 0)
20306 return 1;
20307 data2 = (char *) malloc (2 * pagesize);
20308 if (!data2)
20309 return 1;
20310 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20311 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20312 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20313 return 1;
20314 for (i = 0; i < pagesize; ++i)
20315 if (*(data + i) != *(data2 + i))
20316 return 1;
20318 /* Finally, make sure that changes to the mapped area do not
20319 percolate back to the file as seen by read(). (This is a bug on
20320 some variants of i386 svr4.0.) */
20321 for (i = 0; i < pagesize; ++i)
20322 *(data2 + i) = *(data2 + i) + 1;
20323 data3 = (char *) malloc (pagesize);
20324 if (!data3)
20325 return 1;
20326 if (read (fd, data3, pagesize) != pagesize)
20327 return 1;
20328 for (i = 0; i < pagesize; ++i)
20329 if (*(data + i) != *(data3 + i))
20330 return 1;
20331 close (fd);
20332 return 0;
20334 _ACEOF
20335 rm -f conftest$ac_exeext
20336 if { (ac_try="$ac_link"
20337 case "(($ac_try" in
20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339 *) ac_try_echo=$ac_try;;
20340 esac
20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342 (eval "$ac_link") 2>&5
20343 ac_status=$?
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20346 { (case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_try") 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 ac_cv_func_mmap_fixed_mapped=yes
20356 else
20357 echo "$as_me: program exited with status $ac_status" >&5
20358 echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20361 ( exit $ac_status )
20362 ac_cv_func_mmap_fixed_mapped=no
20364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20369 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20370 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20371 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20373 cat >>confdefs.h <<\_ACEOF
20374 #define HAVE_MMAP 1
20375 _ACEOF
20378 rm -f conftest.mmap
20380 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20381 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20382 if test "${ac_cv_func_mmap_file+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20384 else
20385 ac_ext=c
20386 ac_cpp='$CPP $CPPFLAGS'
20387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20391 if test "$cross_compiling" = yes; then
20392 ac_cv_func_mmap_file=no
20393 else
20394 cat >conftest.$ac_ext <<_ACEOF
20396 /* confdefs.h. */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20402 #include <sys/types.h>
20403 #include <sys/mman.h>
20404 #include <fcntl.h>
20407 main ()
20410 int fd;
20411 fd = creat ("foo",0777);
20412 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20413 unlink ("foo");
20414 return (fd != (int) MAP_FAILED);
20416 return 0;
20418 _ACEOF
20419 rm -f conftest$ac_exeext
20420 if { (ac_try="$ac_link"
20421 case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20424 esac
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_link") 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20430 { (case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20433 esac
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_try") 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20439 ac_cv_func_mmap_file=yes
20440 else
20441 echo "$as_me: program exited with status $ac_status" >&5
20442 echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20445 ( exit $ac_status )
20446 ac_cv_func_mmap_file=no
20448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20452 ac_ext=c
20453 ac_cpp='$CPP $CPPFLAGS'
20454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20460 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20461 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20462 if test "$ac_cv_func_mmap_file" = yes; then
20464 cat >>confdefs.h <<\_ACEOF
20465 #define HAVE_MMAP_FILE
20466 _ACEOF
20468 MMAP_FILE=yes
20472 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20473 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20474 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 else
20477 if test "$llvm_cv_os_type" = "Interix" ; then
20478 ac_cv_need_dev_zero_for_mmap=yes
20479 else
20480 ac_cv_need_dev_zero_for_mmap=no
20484 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20485 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20486 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20488 cat >>confdefs.h <<\_ACEOF
20489 #define NEED_DEV_ZERO_FOR_MMAP 1
20490 _ACEOF
20494 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20495 then
20496 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20497 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20499 if test "$ac_cv_func_mmap_file" = "no"
20500 then
20501 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20502 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20506 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20507 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20508 ac_ext=cpp
20509 ac_cpp='$CXXCPP $CPPFLAGS'
20510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20514 cat >conftest.$ac_ext <<_ACEOF
20515 /* confdefs.h. */
20516 _ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h. */
20520 int main() {
20521 volatile unsigned long val = 1;
20522 __sync_synchronize();
20523 __sync_val_compare_and_swap(&val, 1, 0);
20524 __sync_add_and_fetch(&val, 1);
20525 __sync_sub_and_fetch(&val, 1);
20526 return 0;
20529 _ACEOF
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (ac_try="$ac_link"
20532 case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20535 esac
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_link") 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
20544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20545 { (case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_try") 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; } &&
20554 { ac_try='test -s conftest$ac_exeext'
20555 { (case "(($ac_try" in
20556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557 *) ac_try_echo=$ac_try;;
20558 esac
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560 (eval "$ac_try") 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
20564 ac_ext=c
20565 ac_cpp='$CPP $CPPFLAGS'
20566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20570 { echo "$as_me:$LINENO: result: yes" >&5
20571 echo "${ECHO_T}yes" >&6; }
20573 cat >>confdefs.h <<\_ACEOF
20574 #define LLVM_HAS_ATOMICS 1
20575 _ACEOF
20577 else
20578 echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20581 { echo "$as_me:$LINENO: result: no" >&5
20582 echo "${ECHO_T}no" >&6; }
20584 cat >>confdefs.h <<\_ACEOF
20585 #define LLVM_HAS_ATOMICS 0
20586 _ACEOF
20588 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20589 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20592 rm -f core conftest.err conftest.$ac_objext \
20593 conftest$ac_exeext conftest.$ac_ext
20596 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20597 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20598 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20599 if test "${llvm_cv_linux_mixed+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 else
20602 ac_ext=c
20603 ac_cpp='$CPP $CPPFLAGS'
20604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20608 cat >conftest.$ac_ext <<_ACEOF
20609 /* confdefs.h. */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20614 #ifndef __x86_64__
20615 error: Not x86-64 even if uname says so!
20616 #endif
20619 main ()
20623 return 0;
20625 _ACEOF
20626 rm -f conftest.$ac_objext
20627 if { (ac_try="$ac_compile"
20628 case "(($ac_try" in
20629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630 *) ac_try_echo=$ac_try;;
20631 esac
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_compile") 2>conftest.er1
20634 ac_status=$?
20635 grep -v '^ *+' conftest.er1 >conftest.err
20636 rm -f conftest.er1
20637 cat conftest.err >&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); } &&
20640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20641 { (case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20644 esac
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_try") 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; } &&
20650 { ac_try='test -s conftest.$ac_objext'
20651 { (case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20654 esac
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_try") 2>&5
20657 ac_status=$?
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; }; then
20660 llvm_cv_linux_mixed=no
20661 else
20662 echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20665 llvm_cv_linux_mixed=yes
20668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669 ac_ext=c
20670 ac_cpp='$CPP $CPPFLAGS'
20671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20677 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20678 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20680 if test "$llvm_cv_linux_mixed" = "yes"; then
20681 llvm_cv_target_arch="x86"
20682 ARCH="x86"
20687 for ac_func in __dso_handle
20689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 else
20695 cat >conftest.$ac_ext <<_ACEOF
20696 /* confdefs.h. */
20697 _ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h. */
20701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20703 #define $ac_func innocuous_$ac_func
20705 /* System header to define __stub macros and hopefully few prototypes,
20706 which can conflict with char $ac_func (); below.
20707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20708 <limits.h> exists even on freestanding compilers. */
20710 #ifdef __STDC__
20711 # include <limits.h>
20712 #else
20713 # include <assert.h>
20714 #endif
20716 #undef $ac_func
20718 /* Override any GCC internal prototype to avoid an error.
20719 Use char because int might match the return type of a GCC
20720 builtin and then its argument prototype would still apply. */
20721 #ifdef __cplusplus
20722 extern "C"
20723 #endif
20724 char $ac_func ();
20725 /* The GNU C library defines this for functions which it implements
20726 to always fail with ENOSYS. Some functions are actually named
20727 something starting with __ and the normal name is an alias. */
20728 #if defined __stub_$ac_func || defined __stub___$ac_func
20729 choke me
20730 #endif
20733 main ()
20735 return $ac_func ();
20737 return 0;
20739 _ACEOF
20740 rm -f conftest.$ac_objext conftest$ac_exeext
20741 if { (ac_try="$ac_link"
20742 case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20745 esac
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747 (eval "$ac_link") 2>conftest.er1
20748 ac_status=$?
20749 grep -v '^ *+' conftest.er1 >conftest.err
20750 rm -f conftest.er1
20751 cat conftest.err >&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); } &&
20754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20755 { (case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20758 esac
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_try") 2>&5
20761 ac_status=$?
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; } &&
20764 { ac_try='test -s conftest$ac_exeext'
20765 { (case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20768 esac
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_try") 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; }; then
20774 eval "$as_ac_var=yes"
20775 else
20776 echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20779 eval "$as_ac_var=no"
20782 rm -f core conftest.err conftest.$ac_objext \
20783 conftest$ac_exeext conftest.$ac_ext
20785 ac_res=`eval echo '${'$as_ac_var'}'`
20786 { echo "$as_me:$LINENO: result: $ac_res" >&5
20787 echo "${ECHO_T}$ac_res" >&6; }
20788 if test `eval echo '${'$as_ac_var'}'` = yes; then
20789 cat >>confdefs.h <<_ACEOF
20790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20791 _ACEOF
20794 done
20797 SHLIBEXT=$libltdl_cv_shlibext
20800 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20803 # Translate the various configuration directories and other basic
20804 # information into substitutions that will end up in Makefile.config.in
20805 # that these configured values can be used by the makefiles
20806 if test "${prefix}" = "NONE" ; then
20807 prefix="/usr/local"
20809 eval LLVM_PREFIX="${prefix}";
20810 eval LLVM_BINDIR="${prefix}/bin";
20811 eval LLVM_LIBDIR="${prefix}/lib";
20812 eval LLVM_DATADIR="${prefix}/share/llvm";
20813 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20814 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20815 eval LLVM_INCLUDEDIR="${prefix}/include";
20816 eval LLVM_INFODIR="${prefix}/info";
20817 eval LLVM_MANDIR="${prefix}/man";
20818 LLVM_CONFIGTIME=`date`
20830 # Place the various directores into the config.h file as #defines so that we
20831 # can know about the installation paths within LLVM.
20833 cat >>confdefs.h <<_ACEOF
20834 #define LLVM_PREFIX "$LLVM_PREFIX"
20835 _ACEOF
20838 cat >>confdefs.h <<_ACEOF
20839 #define LLVM_BINDIR "$LLVM_BINDIR"
20840 _ACEOF
20843 cat >>confdefs.h <<_ACEOF
20844 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20845 _ACEOF
20848 cat >>confdefs.h <<_ACEOF
20849 #define LLVM_DATADIR "$LLVM_DATADIR"
20850 _ACEOF
20853 cat >>confdefs.h <<_ACEOF
20854 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20855 _ACEOF
20858 cat >>confdefs.h <<_ACEOF
20859 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20860 _ACEOF
20863 cat >>confdefs.h <<_ACEOF
20864 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20865 _ACEOF
20868 cat >>confdefs.h <<_ACEOF
20869 #define LLVM_INFODIR "$LLVM_INFODIR"
20870 _ACEOF
20873 cat >>confdefs.h <<_ACEOF
20874 #define LLVM_MANDIR "$LLVM_MANDIR"
20875 _ACEOF
20878 cat >>confdefs.h <<_ACEOF
20879 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20880 _ACEOF
20883 cat >>confdefs.h <<_ACEOF
20884 #define LLVM_HOSTTRIPLE "$host"
20885 _ACEOF
20888 # Determine which bindings to build.
20889 if test "$BINDINGS_TO_BUILD" = auto ; then
20890 BINDINGS_TO_BUILD=""
20891 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20892 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20895 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20898 # This isn't really configurey, but it avoids having to repeat the list in
20899 # other files.
20900 ALL_BINDINGS=ocaml
20903 # Do any work necessary to ensure that bindings have what they need.
20904 binding_prereqs_failed=0
20905 for a_binding in $BINDINGS_TO_BUILD ; do
20906 case "$a_binding" in
20907 ocaml)
20908 if test "x$OCAMLC" = x ; then
20909 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20910 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20911 binding_prereqs_failed=1
20913 if test "x$OCAMLDEP" = x ; then
20914 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20915 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20916 binding_prereqs_failed=1
20918 if test "x$OCAMLOPT" = x ; then
20919 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20920 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20922 if test "x$with_ocaml_libdir" != xauto ; then
20923 OCAML_LIBDIR=$with_ocaml_libdir
20925 else
20926 ocaml_stdlib="`"$OCAMLC" -where`"
20927 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20928 then
20929 # ocaml stdlib is beneath our prefix; use stdlib
20930 OCAML_LIBDIR=$ocaml_stdlib
20932 else
20933 # ocaml stdlib is outside our prefix; use libdir/ocaml
20934 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20939 esac
20940 done
20941 if test "$binding_prereqs_failed" = 1 ; then
20942 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20943 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20944 { (exit 1); exit 1; }; }
20947 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20948 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20949 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
20951 else
20952 ac_ext=cpp
20953 ac_cpp='$CXXCPP $CPPFLAGS'
20954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20958 oldcxxflags="$CXXFLAGS"
20959 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20960 cat >conftest.$ac_ext <<_ACEOF
20961 /* confdefs.h. */
20962 _ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h. */
20968 main ()
20972 return 0;
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_compile") 2>conftest.er1
20983 ac_status=$?
20984 grep -v '^ *+' conftest.er1 >conftest.err
20985 rm -f conftest.er1
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
20989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20990 { (case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_try") 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try='test -s conftest.$ac_objext'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21003 esac
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_try") 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 llvm_cv_cxx_visibility_inlines_hidden=yes
21010 else
21011 echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 llvm_cv_cxx_visibility_inlines_hidden=no
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018 CXXFLAGS="$oldcxxflags"
21019 ac_ext=c
21020 ac_cpp='$CPP $CPPFLAGS'
21021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21027 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21028 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21029 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21030 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21032 else
21033 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21038 if test "$llvm_cv_link_use_r" = "yes" ; then
21039 RPATH="-Wl,-R"
21040 else
21041 RPATH="-Wl,-rpath"
21045 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21046 RDYNAMIC="-Wl,-export-dynamic"
21047 else
21048 RDYNAMIC=""
21053 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21060 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21062 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21064 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21066 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21068 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21071 ac_config_files="$ac_config_files Makefile.config"
21073 ac_config_files="$ac_config_files llvm.spec"
21076 ac_config_files="$ac_config_files docs/doxygen.cfg"
21078 if test -f ${srcdir}/tools/clang/README.txt; then
21079 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21083 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21085 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21087 ac_config_commands="$ac_config_commands setup"
21089 ac_config_commands="$ac_config_commands Makefile"
21092 ac_config_commands="$ac_config_commands Makefile.common"
21095 ac_config_commands="$ac_config_commands examples/Makefile"
21098 ac_config_commands="$ac_config_commands lib/Makefile"
21101 ac_config_commands="$ac_config_commands runtime/Makefile"
21104 ac_config_commands="$ac_config_commands test/Makefile"
21107 ac_config_commands="$ac_config_commands test/Makefile.tests"
21110 ac_config_commands="$ac_config_commands unittests/Makefile"
21113 ac_config_commands="$ac_config_commands tools/Makefile"
21116 ac_config_commands="$ac_config_commands utils/Makefile"
21119 ac_config_commands="$ac_config_commands projects/Makefile"
21122 ac_config_commands="$ac_config_commands bindings/Makefile"
21125 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21129 cat >confcache <<\_ACEOF
21130 # This file is a shell script that caches the results of configure
21131 # tests run on this system so they can be shared between configure
21132 # scripts and configure runs, see configure's option --config-cache.
21133 # It is not useful on other systems. If it contains results you don't
21134 # want to keep, you may remove or edit it.
21136 # config.status only pays attention to the cache file if you give it
21137 # the --recheck option to rerun configure.
21139 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21140 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21141 # following values.
21143 _ACEOF
21145 # The following way of writing the cache mishandles newlines in values,
21146 # but we know of no workaround that is simple, portable, and efficient.
21147 # So, we kill variables containing newlines.
21148 # Ultrix sh set writes to stderr and can't be redirected directly,
21149 # and sets the high bit in the cache file unless we assign to the vars.
21151 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21152 eval ac_val=\$$ac_var
21153 case $ac_val in #(
21154 *${as_nl}*)
21155 case $ac_var in #(
21156 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21157 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21158 esac
21159 case $ac_var in #(
21160 _ | IFS | as_nl) ;; #(
21161 *) $as_unset $ac_var ;;
21162 esac ;;
21163 esac
21164 done
21166 (set) 2>&1 |
21167 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21168 *${as_nl}ac_space=\ *)
21169 # `set' does not quote correctly, so add quotes (double-quote
21170 # substitution turns \\\\ into \\, and sed turns \\ into \).
21171 sed -n \
21172 "s/'/'\\\\''/g;
21173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21174 ;; #(
21176 # `set' quotes correctly as required by POSIX, so do not add quotes.
21177 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21179 esac |
21180 sort
21182 sed '
21183 /^ac_cv_env_/b end
21184 t clear
21185 :clear
21186 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21187 t end
21188 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21189 :end' >>confcache
21190 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21191 if test -w "$cache_file"; then
21192 test "x$cache_file" != "x/dev/null" &&
21193 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21194 echo "$as_me: updating cache $cache_file" >&6;}
21195 cat confcache >$cache_file
21196 else
21197 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21198 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21201 rm -f confcache
21203 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21204 # Let make expand exec_prefix.
21205 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21207 DEFS=-DHAVE_CONFIG_H
21209 ac_libobjs=
21210 ac_ltlibobjs=
21211 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21212 # 1. Remove the extension, and $U if already installed.
21213 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21214 ac_i=`echo "$ac_i" | sed "$ac_script"`
21215 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21216 # will be set to the directory where LIBOBJS objects are built.
21217 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21218 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21219 done
21220 LIBOBJS=$ac_libobjs
21222 LTLIBOBJS=$ac_ltlibobjs
21225 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21226 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21227 Usually this means the macro was only invoked conditionally." >&5
21228 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21229 Usually this means the macro was only invoked conditionally." >&2;}
21230 { (exit 1); exit 1; }; }
21232 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21233 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21234 Usually this means the macro was only invoked conditionally." >&5
21235 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21236 Usually this means the macro was only invoked conditionally." >&2;}
21237 { (exit 1); exit 1; }; }
21240 : ${CONFIG_STATUS=./config.status}
21241 ac_clean_files_save=$ac_clean_files
21242 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21243 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21244 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21245 cat >$CONFIG_STATUS <<_ACEOF
21246 #! $SHELL
21247 # Generated by $as_me.
21248 # Run this file to recreate the current configuration.
21249 # Compiler output produced by configure, useful for debugging
21250 # configure, is in config.log if it exists.
21252 debug=false
21253 ac_cs_recheck=false
21254 ac_cs_silent=false
21255 SHELL=\${CONFIG_SHELL-$SHELL}
21256 _ACEOF
21258 cat >>$CONFIG_STATUS <<\_ACEOF
21259 ## --------------------- ##
21260 ## M4sh Initialization. ##
21261 ## --------------------- ##
21263 # Be Bourne compatible
21264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21265 emulate sh
21266 NULLCMD=:
21267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21268 # is contrary to our usage. Disable this feature.
21269 alias -g '${1+"$@"}'='"$@"'
21270 setopt NO_GLOB_SUBST
21271 else
21272 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21274 BIN_SH=xpg4; export BIN_SH # for Tru64
21275 DUALCASE=1; export DUALCASE # for MKS sh
21278 # PATH needs CR
21279 # Avoid depending upon Character Ranges.
21280 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21281 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21282 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21283 as_cr_digits='0123456789'
21284 as_cr_alnum=$as_cr_Letters$as_cr_digits
21286 # The user is always right.
21287 if test "${PATH_SEPARATOR+set}" != set; then
21288 echo "#! /bin/sh" >conf$$.sh
21289 echo "exit 0" >>conf$$.sh
21290 chmod +x conf$$.sh
21291 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21292 PATH_SEPARATOR=';'
21293 else
21294 PATH_SEPARATOR=:
21296 rm -f conf$$.sh
21299 # Support unset when possible.
21300 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21301 as_unset=unset
21302 else
21303 as_unset=false
21307 # IFS
21308 # We need space, tab and new line, in precisely that order. Quoting is
21309 # there to prevent editors from complaining about space-tab.
21310 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21311 # splitting by setting IFS to empty value.)
21312 as_nl='
21314 IFS=" "" $as_nl"
21316 # Find who we are. Look in the path if we contain no directory separator.
21317 case $0 in
21318 *[\\/]* ) as_myself=$0 ;;
21319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21320 for as_dir in $PATH
21322 IFS=$as_save_IFS
21323 test -z "$as_dir" && as_dir=.
21324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21325 done
21326 IFS=$as_save_IFS
21329 esac
21330 # We did not find ourselves, most probably we were run as `sh COMMAND'
21331 # in which case we are not to be found in the path.
21332 if test "x$as_myself" = x; then
21333 as_myself=$0
21335 if test ! -f "$as_myself"; then
21336 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21337 { (exit 1); exit 1; }
21340 # Work around bugs in pre-3.0 UWIN ksh.
21341 for as_var in ENV MAIL MAILPATH
21342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21343 done
21344 PS1='$ '
21345 PS2='> '
21346 PS4='+ '
21348 # NLS nuisances.
21349 for as_var in \
21350 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21351 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21352 LC_TELEPHONE LC_TIME
21354 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21355 eval $as_var=C; export $as_var
21356 else
21357 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21359 done
21361 # Required to use basename.
21362 if expr a : '\(a\)' >/dev/null 2>&1 &&
21363 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21364 as_expr=expr
21365 else
21366 as_expr=false
21369 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21370 as_basename=basename
21371 else
21372 as_basename=false
21376 # Name of the executable.
21377 as_me=`$as_basename -- "$0" ||
21378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21379 X"$0" : 'X\(//\)$' \| \
21380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21381 echo X/"$0" |
21382 sed '/^.*\/\([^/][^/]*\)\/*$/{
21383 s//\1/
21386 /^X\/\(\/\/\)$/{
21387 s//\1/
21390 /^X\/\(\/\).*/{
21391 s//\1/
21394 s/.*/./; q'`
21396 # CDPATH.
21397 $as_unset CDPATH
21401 as_lineno_1=$LINENO
21402 as_lineno_2=$LINENO
21403 test "x$as_lineno_1" != "x$as_lineno_2" &&
21404 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21406 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21407 # uniformly replaced by the line number. The first 'sed' inserts a
21408 # line-number line after each line using $LINENO; the second 'sed'
21409 # does the real work. The second script uses 'N' to pair each
21410 # line-number line with the line containing $LINENO, and appends
21411 # trailing '-' during substitution so that $LINENO is not a special
21412 # case at line end.
21413 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21414 # scripts with optimization help from Paolo Bonzini. Blame Lee
21415 # E. McMahon (1931-1989) for sed's syntax. :-)
21416 sed -n '
21418 /[$]LINENO/=
21419 ' <$as_myself |
21420 sed '
21421 s/[$]LINENO.*/&-/
21422 t lineno
21424 :lineno
21426 :loop
21427 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21428 t loop
21429 s/-\n.*//
21430 ' >$as_me.lineno &&
21431 chmod +x "$as_me.lineno" ||
21432 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21433 { (exit 1); exit 1; }; }
21435 # Don't try to exec as it changes $[0], causing all sort of problems
21436 # (the dirname of $[0] is not the place where we might find the
21437 # original and so on. Autoconf is especially sensitive to this).
21438 . "./$as_me.lineno"
21439 # Exit status is that of the last command.
21440 exit
21444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21445 as_dirname=dirname
21446 else
21447 as_dirname=false
21450 ECHO_C= ECHO_N= ECHO_T=
21451 case `echo -n x` in
21452 -n*)
21453 case `echo 'x\c'` in
21454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21455 *) ECHO_C='\c';;
21456 esac;;
21458 ECHO_N='-n';;
21459 esac
21461 if expr a : '\(a\)' >/dev/null 2>&1 &&
21462 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21463 as_expr=expr
21464 else
21465 as_expr=false
21468 rm -f conf$$ conf$$.exe conf$$.file
21469 if test -d conf$$.dir; then
21470 rm -f conf$$.dir/conf$$.file
21471 else
21472 rm -f conf$$.dir
21473 mkdir conf$$.dir
21475 echo >conf$$.file
21476 if ln -s conf$$.file conf$$ 2>/dev/null; then
21477 as_ln_s='ln -s'
21478 # ... but there are two gotchas:
21479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21481 # In both cases, we have to default to `cp -p'.
21482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21483 as_ln_s='cp -p'
21484 elif ln conf$$.file conf$$ 2>/dev/null; then
21485 as_ln_s=ln
21486 else
21487 as_ln_s='cp -p'
21489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21490 rmdir conf$$.dir 2>/dev/null
21492 if mkdir -p . 2>/dev/null; then
21493 as_mkdir_p=:
21494 else
21495 test -d ./-p && rmdir ./-p
21496 as_mkdir_p=false
21499 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21500 # systems may use methods other than mode bits to determine executability.
21501 cat >conf$$.file <<_ASEOF
21502 #! /bin/sh
21503 exit 0
21504 _ASEOF
21505 chmod +x conf$$.file
21506 if test -x conf$$.file >/dev/null 2>&1; then
21507 as_executable_p="test -x"
21508 else
21509 as_executable_p=:
21511 rm -f conf$$.file
21513 # Sed expression to map a string onto a valid CPP name.
21514 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21516 # Sed expression to map a string onto a valid variable name.
21517 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21520 exec 6>&1
21522 # Save the log message, to keep $[0] and so on meaningful, and to
21523 # report actual input values of CONFIG_FILES etc. instead of their
21524 # values after options handling.
21525 ac_log="
21526 This file was extended by llvm $as_me 3.1svn, which was
21527 generated by GNU Autoconf 2.60. Invocation command line was
21529 CONFIG_FILES = $CONFIG_FILES
21530 CONFIG_HEADERS = $CONFIG_HEADERS
21531 CONFIG_LINKS = $CONFIG_LINKS
21532 CONFIG_COMMANDS = $CONFIG_COMMANDS
21533 $ $0 $@
21535 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21538 _ACEOF
21540 cat >>$CONFIG_STATUS <<_ACEOF
21541 # Files that config.status was made for.
21542 config_files="$ac_config_files"
21543 config_headers="$ac_config_headers"
21544 config_commands="$ac_config_commands"
21546 _ACEOF
21548 cat >>$CONFIG_STATUS <<\_ACEOF
21549 ac_cs_usage="\
21550 \`$as_me' instantiates files from templates according to the
21551 current configuration.
21553 Usage: $0 [OPTIONS] [FILE]...
21555 -h, --help print this help, then exit
21556 -V, --version print version number, then exit
21557 -q, --quiet do not print progress messages
21558 -d, --debug don't remove temporary files
21559 --recheck update $as_me by reconfiguring in the same conditions
21560 --file=FILE[:TEMPLATE]
21561 instantiate the configuration file FILE
21562 --header=FILE[:TEMPLATE]
21563 instantiate the configuration header FILE
21565 Configuration files:
21566 $config_files
21568 Configuration headers:
21569 $config_headers
21571 Configuration commands:
21572 $config_commands
21574 Report bugs to <bug-autoconf@gnu.org>."
21576 _ACEOF
21577 cat >>$CONFIG_STATUS <<_ACEOF
21578 ac_cs_version="\\
21579 llvm config.status 3.1svn
21580 configured by $0, generated by GNU Autoconf 2.60,
21581 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21583 Copyright (C) 2006 Free Software Foundation, Inc.
21584 This config.status script is free software; the Free Software Foundation
21585 gives unlimited permission to copy, distribute and modify it."
21587 ac_pwd='$ac_pwd'
21588 srcdir='$srcdir'
21589 INSTALL='$INSTALL'
21590 _ACEOF
21592 cat >>$CONFIG_STATUS <<\_ACEOF
21593 # If no file are specified by the user, then we need to provide default
21594 # value. By we need to know if files were specified by the user.
21595 ac_need_defaults=:
21596 while test $# != 0
21598 case $1 in
21599 --*=*)
21600 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21601 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21602 ac_shift=:
21605 ac_option=$1
21606 ac_optarg=$2
21607 ac_shift=shift
21609 esac
21611 case $ac_option in
21612 # Handling of the options.
21613 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21614 ac_cs_recheck=: ;;
21615 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21616 echo "$ac_cs_version"; exit ;;
21617 --debug | --debu | --deb | --de | --d | -d )
21618 debug=: ;;
21619 --file | --fil | --fi | --f )
21620 $ac_shift
21621 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21622 ac_need_defaults=false;;
21623 --header | --heade | --head | --hea )
21624 $ac_shift
21625 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21626 ac_need_defaults=false;;
21627 --he | --h)
21628 # Conflict between --help and --header
21629 { echo "$as_me: error: ambiguous option: $1
21630 Try \`$0 --help' for more information." >&2
21631 { (exit 1); exit 1; }; };;
21632 --help | --hel | -h )
21633 echo "$ac_cs_usage"; exit ;;
21634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21635 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21636 ac_cs_silent=: ;;
21638 # This is an error.
21639 -*) { echo "$as_me: error: unrecognized option: $1
21640 Try \`$0 --help' for more information." >&2
21641 { (exit 1); exit 1; }; } ;;
21643 *) ac_config_targets="$ac_config_targets $1"
21644 ac_need_defaults=false ;;
21646 esac
21647 shift
21648 done
21650 ac_configure_extra_args=
21652 if $ac_cs_silent; then
21653 exec 6>/dev/null
21654 ac_configure_extra_args="$ac_configure_extra_args --silent"
21657 _ACEOF
21658 cat >>$CONFIG_STATUS <<_ACEOF
21659 if \$ac_cs_recheck; then
21660 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21661 CONFIG_SHELL=$SHELL
21662 export CONFIG_SHELL
21663 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21666 _ACEOF
21667 cat >>$CONFIG_STATUS <<\_ACEOF
21668 exec 5>>config.log
21670 echo
21671 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21672 ## Running $as_me. ##
21673 _ASBOX
21674 echo "$ac_log"
21675 } >&5
21677 _ACEOF
21678 cat >>$CONFIG_STATUS <<_ACEOF
21680 # INIT-COMMANDS
21682 llvm_src="${srcdir}"
21684 _ACEOF
21686 cat >>$CONFIG_STATUS <<\_ACEOF
21688 # Handling of arguments.
21689 for ac_config_target in $ac_config_targets
21691 case $ac_config_target in
21692 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21693 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21694 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21695 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21696 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21697 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21698 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21699 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21700 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21701 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21702 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21703 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21704 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21705 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21706 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21707 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21708 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21709 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21710 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21711 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21712 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21713 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21714 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21715 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21716 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21717 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21719 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21720 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21721 { (exit 1); exit 1; }; };;
21722 esac
21723 done
21726 # If the user did not use the arguments to specify the items to instantiate,
21727 # then the envvar interface is used. Set only those that are not.
21728 # We use the long form for the default assignment because of an extremely
21729 # bizarre bug on SunOS 4.1.3.
21730 if $ac_need_defaults; then
21731 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21732 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21733 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21736 # Have a temporary directory for convenience. Make it in the build tree
21737 # simply because there is no reason against having it here, and in addition,
21738 # creating and moving files from /tmp can sometimes cause problems.
21739 # Hook for its removal unless debugging.
21740 # Note that there is a small window in which the directory will not be cleaned:
21741 # after its creation but before its name has been assigned to `$tmp'.
21742 $debug ||
21744 tmp=
21745 trap 'exit_status=$?
21746 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21748 trap '{ (exit 1); exit 1; }' 1 2 13 15
21750 # Create a (secure) tmp directory for tmp files.
21753 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21754 test -n "$tmp" && test -d "$tmp"
21755 } ||
21757 tmp=./conf$$-$RANDOM
21758 (umask 077 && mkdir "$tmp")
21759 } ||
21761 echo "$me: cannot create a temporary directory in ." >&2
21762 { (exit 1); exit 1; }
21766 # Set up the sed scripts for CONFIG_FILES section.
21769 # No need to generate the scripts if there are no CONFIG_FILES.
21770 # This happens for instance when ./config.status config.h
21771 if test -n "$CONFIG_FILES"; then
21773 _ACEOF
21777 ac_delim='%!_!# '
21778 for ac_last_try in false false false false false :; do
21779 cat >conf$$subs.sed <<_ACEOF
21780 SHELL!$SHELL$ac_delim
21781 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21782 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21783 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21784 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21785 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21786 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21787 exec_prefix!$exec_prefix$ac_delim
21788 prefix!$prefix$ac_delim
21789 program_transform_name!$program_transform_name$ac_delim
21790 bindir!$bindir$ac_delim
21791 sbindir!$sbindir$ac_delim
21792 libexecdir!$libexecdir$ac_delim
21793 datarootdir!$datarootdir$ac_delim
21794 datadir!$datadir$ac_delim
21795 sysconfdir!$sysconfdir$ac_delim
21796 sharedstatedir!$sharedstatedir$ac_delim
21797 localstatedir!$localstatedir$ac_delim
21798 includedir!$includedir$ac_delim
21799 oldincludedir!$oldincludedir$ac_delim
21800 docdir!$docdir$ac_delim
21801 infodir!$infodir$ac_delim
21802 htmldir!$htmldir$ac_delim
21803 dvidir!$dvidir$ac_delim
21804 pdfdir!$pdfdir$ac_delim
21805 psdir!$psdir$ac_delim
21806 libdir!$libdir$ac_delim
21807 localedir!$localedir$ac_delim
21808 mandir!$mandir$ac_delim
21809 DEFS!$DEFS$ac_delim
21810 ECHO_C!$ECHO_C$ac_delim
21811 ECHO_N!$ECHO_N$ac_delim
21812 ECHO_T!$ECHO_T$ac_delim
21813 LIBS!$LIBS$ac_delim
21814 build_alias!$build_alias$ac_delim
21815 host_alias!$host_alias$ac_delim
21816 target_alias!$target_alias$ac_delim
21817 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21818 CC!$CC$ac_delim
21819 CFLAGS!$CFLAGS$ac_delim
21820 LDFLAGS!$LDFLAGS$ac_delim
21821 CPPFLAGS!$CPPFLAGS$ac_delim
21822 ac_ct_CC!$ac_ct_CC$ac_delim
21823 EXEEXT!$EXEEXT$ac_delim
21824 OBJEXT!$OBJEXT$ac_delim
21825 CXX!$CXX$ac_delim
21826 CXXFLAGS!$CXXFLAGS$ac_delim
21827 ac_ct_CXX!$ac_ct_CXX$ac_delim
21828 CPP!$CPP$ac_delim
21829 subdirs!$subdirs$ac_delim
21830 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21831 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21832 build!$build$ac_delim
21833 build_cpu!$build_cpu$ac_delim
21834 build_vendor!$build_vendor$ac_delim
21835 build_os!$build_os$ac_delim
21836 host!$host$ac_delim
21837 host_cpu!$host_cpu$ac_delim
21838 host_vendor!$host_vendor$ac_delim
21839 host_os!$host_os$ac_delim
21840 target!$target$ac_delim
21841 target_cpu!$target_cpu$ac_delim
21842 target_vendor!$target_vendor$ac_delim
21843 target_os!$target_os$ac_delim
21844 OS!$OS$ac_delim
21845 HOST_OS!$HOST_OS$ac_delim
21846 TARGET_OS!$TARGET_OS$ac_delim
21847 LINKALL!$LINKALL$ac_delim
21848 NOLINKALL!$NOLINKALL$ac_delim
21849 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21850 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21851 ARCH!$ARCH$ac_delim
21852 ENDIAN!$ENDIAN$ac_delim
21853 GREP!$GREP$ac_delim
21854 EGREP!$EGREP$ac_delim
21855 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21856 BUILD_CC!$BUILD_CC$ac_delim
21857 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21858 BUILD_CXX!$BUILD_CXX$ac_delim
21859 CVSBUILD!$CVSBUILD$ac_delim
21860 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21861 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21862 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21863 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21864 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21865 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21866 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21867 JIT!$JIT$ac_delim
21868 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21869 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21870 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21871 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21872 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21873 ENABLE_PIC!$ENABLE_PIC$ac_delim
21874 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21875 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21876 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21877 _ACEOF
21879 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21880 break
21881 elif $ac_last_try; then
21882 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21883 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21884 { (exit 1); exit 1; }; }
21885 else
21886 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21888 done
21890 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21891 if test -n "$ac_eof"; then
21892 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21893 ac_eof=`expr $ac_eof + 1`
21896 cat >>$CONFIG_STATUS <<_ACEOF
21897 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21898 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21899 _ACEOF
21900 sed '
21901 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21902 s/^/s,@/; s/!/@,|#_!!_#|/
21905 s/'"$ac_delim"'$/,g/; t
21906 s/$/\\/; p
21907 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21908 ' >>$CONFIG_STATUS <conf$$subs.sed
21909 rm -f conf$$subs.sed
21910 cat >>$CONFIG_STATUS <<_ACEOF
21911 CEOF$ac_eof
21912 _ACEOF
21915 ac_delim='%!_!# '
21916 for ac_last_try in false false false false false :; do
21917 cat >conf$$subs.sed <<_ACEOF
21918 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21919 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21920 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21921 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21922 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21923 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21924 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21925 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21926 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21927 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21928 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21929 NM!$NM$ac_delim
21930 ifGNUmake!$ifGNUmake$ac_delim
21931 LN_S!$LN_S$ac_delim
21932 CMP!$CMP$ac_delim
21933 CP!$CP$ac_delim
21934 DATE!$DATE$ac_delim
21935 FIND!$FIND$ac_delim
21936 MKDIR!$MKDIR$ac_delim
21937 MV!$MV$ac_delim
21938 RANLIB!$RANLIB$ac_delim
21939 AR!$AR$ac_delim
21940 RM!$RM$ac_delim
21941 SED!$SED$ac_delim
21942 TAR!$TAR$ac_delim
21943 BINPWD!$BINPWD$ac_delim
21944 GRAPHVIZ!$GRAPHVIZ$ac_delim
21945 DOT!$DOT$ac_delim
21946 FDP!$FDP$ac_delim
21947 NEATO!$NEATO$ac_delim
21948 TWOPI!$TWOPI$ac_delim
21949 CIRCO!$CIRCO$ac_delim
21950 GV!$GV$ac_delim
21951 DOTTY!$DOTTY$ac_delim
21952 XDOT_PY!$XDOT_PY$ac_delim
21953 PERL!$PERL$ac_delim
21954 HAVE_PERL!$HAVE_PERL$ac_delim
21955 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21956 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21957 INSTALL_DATA!$INSTALL_DATA$ac_delim
21958 BZIP2!$BZIP2$ac_delim
21959 CAT!$CAT$ac_delim
21960 DOXYGEN!$DOXYGEN$ac_delim
21961 GROFF!$GROFF$ac_delim
21962 GZIPBIN!$GZIPBIN$ac_delim
21963 POD2HTML!$POD2HTML$ac_delim
21964 POD2MAN!$POD2MAN$ac_delim
21965 PDFROFF!$PDFROFF$ac_delim
21966 RUNTEST!$RUNTEST$ac_delim
21967 TCLSH!$TCLSH$ac_delim
21968 ZIP!$ZIP$ac_delim
21969 OCAMLC!$OCAMLC$ac_delim
21970 OCAMLOPT!$OCAMLOPT$ac_delim
21971 OCAMLDEP!$OCAMLDEP$ac_delim
21972 OCAMLDOC!$OCAMLDOC$ac_delim
21973 GAS!$GAS$ac_delim
21974 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21975 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21976 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21977 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21978 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21979 LIBADD_DL!$LIBADD_DL$ac_delim
21980 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21981 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21982 USE_UDIS86!$USE_UDIS86$ac_delim
21983 USE_OPROFILE!$USE_OPROFILE$ac_delim
21984 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21985 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21986 MMAP_FILE!$MMAP_FILE$ac_delim
21987 SHLIBEXT!$SHLIBEXT$ac_delim
21988 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21989 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21990 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21991 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21992 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21993 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21994 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21995 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21996 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21997 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21998 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21999 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22000 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22001 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22002 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22003 RPATH!$RPATH$ac_delim
22004 RDYNAMIC!$RDYNAMIC$ac_delim
22005 LIBOBJS!$LIBOBJS$ac_delim
22006 LTLIBOBJS!$LTLIBOBJS$ac_delim
22007 _ACEOF
22009 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
22010 break
22011 elif $ac_last_try; then
22012 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22013 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22014 { (exit 1); exit 1; }; }
22015 else
22016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22018 done
22020 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22021 if test -n "$ac_eof"; then
22022 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22023 ac_eof=`expr $ac_eof + 1`
22026 cat >>$CONFIG_STATUS <<_ACEOF
22027 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22029 _ACEOF
22030 sed '
22031 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22032 s/^/s,@/; s/!/@,|#_!!_#|/
22035 s/'"$ac_delim"'$/,g/; t
22036 s/$/\\/; p
22037 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22038 ' >>$CONFIG_STATUS <conf$$subs.sed
22039 rm -f conf$$subs.sed
22040 cat >>$CONFIG_STATUS <<_ACEOF
22041 :end
22042 s/|#_!!_#|//g
22043 CEOF$ac_eof
22044 _ACEOF
22047 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22048 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22049 # trailing colons and then remove the whole line if VPATH becomes empty
22050 # (actually we leave an empty line to preserve line numbers).
22051 if test "x$srcdir" = x.; then
22052 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22053 s/:*\$(srcdir):*/:/
22054 s/:*\${srcdir}:*/:/
22055 s/:*@srcdir@:*/:/
22056 s/^\([^=]*=[ ]*\):*/\1/
22057 s/:*$//
22058 s/^[^=]*=[ ]*$//
22062 cat >>$CONFIG_STATUS <<\_ACEOF
22063 fi # test -n "$CONFIG_FILES"
22066 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22068 case $ac_tag in
22069 :[FHLC]) ac_mode=$ac_tag; continue;;
22070 esac
22071 case $ac_mode$ac_tag in
22072 :[FHL]*:*);;
22073 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22074 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22075 { (exit 1); exit 1; }; };;
22076 :[FH]-) ac_tag=-:-;;
22077 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22078 esac
22079 ac_save_IFS=$IFS
22080 IFS=:
22081 set x $ac_tag
22082 IFS=$ac_save_IFS
22083 shift
22084 ac_file=$1
22085 shift
22087 case $ac_mode in
22088 :L) ac_source=$1;;
22089 :[FH])
22090 ac_file_inputs=
22091 for ac_f
22093 case $ac_f in
22094 -) ac_f="$tmp/stdin";;
22095 *) # Look for the file first in the build tree, then in the source tree
22096 # (if the path is not absolute). The absolute path cannot be DOS-style,
22097 # because $ac_f cannot contain `:'.
22098 test -f "$ac_f" ||
22099 case $ac_f in
22100 [\\/$]*) false;;
22101 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22102 esac ||
22103 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22104 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22105 { (exit 1); exit 1; }; };;
22106 esac
22107 ac_file_inputs="$ac_file_inputs $ac_f"
22108 done
22110 # Let's still pretend it is `configure' which instantiates (i.e., don't
22111 # use $as_me), people would be surprised to read:
22112 # /* config.h. Generated by config.status. */
22113 configure_input="Generated from "`IFS=:
22114 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22115 if test x"$ac_file" != x-; then
22116 configure_input="$ac_file. $configure_input"
22117 { echo "$as_me:$LINENO: creating $ac_file" >&5
22118 echo "$as_me: creating $ac_file" >&6;}
22121 case $ac_tag in
22122 *:-:* | *:-) cat >"$tmp/stdin";;
22123 esac
22125 esac
22127 ac_dir=`$as_dirname -- "$ac_file" ||
22128 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22129 X"$ac_file" : 'X\(//\)[^/]' \| \
22130 X"$ac_file" : 'X\(//\)$' \| \
22131 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22132 echo X"$ac_file" |
22133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22134 s//\1/
22137 /^X\(\/\/\)[^/].*/{
22138 s//\1/
22141 /^X\(\/\/\)$/{
22142 s//\1/
22145 /^X\(\/\).*/{
22146 s//\1/
22149 s/.*/./; q'`
22150 { as_dir="$ac_dir"
22151 case $as_dir in #(
22152 -*) as_dir=./$as_dir;;
22153 esac
22154 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22155 as_dirs=
22156 while :; do
22157 case $as_dir in #(
22158 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22159 *) as_qdir=$as_dir;;
22160 esac
22161 as_dirs="'$as_qdir' $as_dirs"
22162 as_dir=`$as_dirname -- "$as_dir" ||
22163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22164 X"$as_dir" : 'X\(//\)[^/]' \| \
22165 X"$as_dir" : 'X\(//\)$' \| \
22166 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22167 echo X"$as_dir" |
22168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22169 s//\1/
22172 /^X\(\/\/\)[^/].*/{
22173 s//\1/
22176 /^X\(\/\/\)$/{
22177 s//\1/
22180 /^X\(\/\).*/{
22181 s//\1/
22184 s/.*/./; q'`
22185 test -d "$as_dir" && break
22186 done
22187 test -z "$as_dirs" || eval "mkdir $as_dirs"
22188 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22189 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22190 { (exit 1); exit 1; }; }; }
22191 ac_builddir=.
22193 case "$ac_dir" in
22194 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22196 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22197 # A ".." for each directory in $ac_dir_suffix.
22198 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22199 case $ac_top_builddir_sub in
22200 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22201 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22202 esac ;;
22203 esac
22204 ac_abs_top_builddir=$ac_pwd
22205 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22206 # for backward compatibility:
22207 ac_top_builddir=$ac_top_build_prefix
22209 case $srcdir in
22210 .) # We are building in place.
22211 ac_srcdir=.
22212 ac_top_srcdir=$ac_top_builddir_sub
22213 ac_abs_top_srcdir=$ac_pwd ;;
22214 [\\/]* | ?:[\\/]* ) # Absolute name.
22215 ac_srcdir=$srcdir$ac_dir_suffix;
22216 ac_top_srcdir=$srcdir
22217 ac_abs_top_srcdir=$srcdir ;;
22218 *) # Relative name.
22219 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22220 ac_top_srcdir=$ac_top_build_prefix$srcdir
22221 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22222 esac
22223 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22226 case $ac_mode in
22229 # CONFIG_FILE
22232 case $INSTALL in
22233 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22234 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22235 esac
22236 _ACEOF
22238 cat >>$CONFIG_STATUS <<\_ACEOF
22239 # If the template does not know about datarootdir, expand it.
22240 # FIXME: This hack should be removed a few years after 2.60.
22241 ac_datarootdir_hack=; ac_datarootdir_seen=
22243 case `sed -n '/datarootdir/ {
22247 /@datadir@/p
22248 /@docdir@/p
22249 /@infodir@/p
22250 /@localedir@/p
22251 /@mandir@/p
22252 ' $ac_file_inputs` in
22253 *datarootdir*) ac_datarootdir_seen=yes;;
22254 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22255 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22256 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22257 _ACEOF
22258 cat >>$CONFIG_STATUS <<_ACEOF
22259 ac_datarootdir_hack='
22260 s&@datadir@&$datadir&g
22261 s&@docdir@&$docdir&g
22262 s&@infodir@&$infodir&g
22263 s&@localedir@&$localedir&g
22264 s&@mandir@&$mandir&g
22265 s&\\\${datarootdir}&$datarootdir&g' ;;
22266 esac
22267 _ACEOF
22269 # Neutralize VPATH when `$srcdir' = `.'.
22270 # Shell code in configure.ac might set extrasub.
22271 # FIXME: do we really want to maintain this feature?
22272 cat >>$CONFIG_STATUS <<_ACEOF
22273 sed "$ac_vpsub
22274 $extrasub
22275 _ACEOF
22276 cat >>$CONFIG_STATUS <<\_ACEOF
22278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22279 s&@configure_input@&$configure_input&;t t
22280 s&@top_builddir@&$ac_top_builddir_sub&;t t
22281 s&@srcdir@&$ac_srcdir&;t t
22282 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22283 s&@top_srcdir@&$ac_top_srcdir&;t t
22284 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22285 s&@builddir@&$ac_builddir&;t t
22286 s&@abs_builddir@&$ac_abs_builddir&;t t
22287 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22288 s&@INSTALL@&$ac_INSTALL&;t t
22289 $ac_datarootdir_hack
22290 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22292 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22293 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22294 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22295 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22296 which seems to be undefined. Please make sure it is defined." >&5
22297 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22298 which seems to be undefined. Please make sure it is defined." >&2;}
22300 rm -f "$tmp/stdin"
22301 case $ac_file in
22302 -) cat "$tmp/out"; rm -f "$tmp/out";;
22303 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22304 esac
22308 # CONFIG_HEADER
22310 _ACEOF
22312 # Transform confdefs.h into a sed script `conftest.defines', that
22313 # substitutes the proper values into config.h.in to produce config.h.
22314 rm -f conftest.defines conftest.tail
22315 # First, append a space to every undef/define line, to ease matching.
22316 echo 's/$/ /' >conftest.defines
22317 # Then, protect against being on the right side of a sed subst, or in
22318 # an unquoted here document, in config.status. If some macros were
22319 # called several times there might be several #defines for the same
22320 # symbol, which is useless. But do not sort them, since the last
22321 # AC_DEFINE must be honored.
22322 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22323 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22324 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22325 # PARAMS is the parameter list in the macro definition--in most cases, it's
22326 # just an empty string.
22327 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22328 ac_dB='\\)[ (].*,\\1define\\2'
22329 ac_dC=' '
22330 ac_dD=' ,'
22332 uniq confdefs.h |
22333 sed -n '
22334 t rset
22335 :rset
22336 s/^[ ]*#[ ]*define[ ][ ]*//
22337 t ok
22340 s/[\\&,]/\\&/g
22341 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22342 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22343 ' >>conftest.defines
22345 # Remove the space that was appended to ease matching.
22346 # Then replace #undef with comments. This is necessary, for
22347 # example, in the case of _POSIX_SOURCE, which is predefined and required
22348 # on some systems where configure will not decide to define it.
22349 # (The regexp can be short, since the line contains either #define or #undef.)
22350 echo 's/ $//
22351 s,^[ #]*u.*,/* & */,' >>conftest.defines
22353 # Break up conftest.defines:
22354 ac_max_sed_lines=50
22356 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22357 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22358 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22359 # et cetera.
22360 ac_in='$ac_file_inputs'
22361 ac_out='"$tmp/out1"'
22362 ac_nxt='"$tmp/out2"'
22364 while :
22366 # Write a here document:
22367 cat >>$CONFIG_STATUS <<_ACEOF
22368 # First, check the format of the line:
22369 cat >"\$tmp/defines.sed" <<\\CEOF
22370 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22371 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22373 :def
22374 _ACEOF
22375 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22376 echo 'CEOF
22377 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22378 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22379 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22380 grep . conftest.tail >/dev/null || break
22381 rm -f conftest.defines
22382 mv conftest.tail conftest.defines
22383 done
22384 rm -f conftest.defines conftest.tail
22386 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22387 cat >>$CONFIG_STATUS <<\_ACEOF
22388 if test x"$ac_file" != x-; then
22389 echo "/* $configure_input */" >"$tmp/config.h"
22390 cat "$ac_result" >>"$tmp/config.h"
22391 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22392 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22393 echo "$as_me: $ac_file is unchanged" >&6;}
22394 else
22395 rm -f $ac_file
22396 mv "$tmp/config.h" $ac_file
22398 else
22399 echo "/* $configure_input */"
22400 cat "$ac_result"
22402 rm -f "$tmp/out12"
22405 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22406 echo "$as_me: executing $ac_file commands" >&6;}
22408 esac
22411 case $ac_file$ac_mode in
22412 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22413 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22414 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22415 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22416 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22417 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22418 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22419 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22420 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22421 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22422 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22423 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22424 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22425 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22426 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22427 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22428 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22429 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22430 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22431 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22432 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22433 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22434 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22435 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22436 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22437 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22439 esac
22440 done # for ac_tag
22443 { (exit 0); exit 0; }
22444 _ACEOF
22445 chmod +x $CONFIG_STATUS
22446 ac_clean_files=$ac_clean_files_save
22449 # configure is writing to config.log, and then calls config.status.
22450 # config.status does its own redirection, appending to config.log.
22451 # Unfortunately, on DOS this fails, as config.log is still kept open
22452 # by configure, so config.status won't be able to write to it; its
22453 # output is simply discarded. So we exec the FD to /dev/null,
22454 # effectively closing config.log, so it can be properly (re)opened and
22455 # appended to by config.status. When coming back to configure, we
22456 # need to make the FD available again.
22457 if test "$no_create" != yes; then
22458 ac_cs_success=:
22459 ac_config_status_args=
22460 test "$silent" = yes &&
22461 ac_config_status_args="$ac_config_status_args --quiet"
22462 exec 5>/dev/null
22463 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22464 exec 5>>config.log
22465 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22466 # would make configure fail if this is the last instruction.
22467 $ac_cs_success || { (exit 1); exit 1; }
22471 # CONFIG_SUBDIRS section.
22473 if test "$no_recursion" != yes; then
22475 # Remove --cache-file and --srcdir arguments so they do not pile up.
22476 ac_sub_configure_args=
22477 ac_prev=
22478 eval "set x $ac_configure_args"
22479 shift
22480 for ac_arg
22482 if test -n "$ac_prev"; then
22483 ac_prev=
22484 continue
22486 case $ac_arg in
22487 -cache-file | --cache-file | --cache-fil | --cache-fi \
22488 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22489 ac_prev=cache_file ;;
22490 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22491 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22492 | --c=*)
22494 --config-cache | -C)
22496 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22497 ac_prev=srcdir ;;
22498 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22501 ac_prev=prefix ;;
22502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22505 case $ac_arg in
22506 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22507 esac
22508 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22509 esac
22510 done
22512 # Always prepend --prefix to ensure using the same prefix
22513 # in subdir configurations.
22514 ac_arg="--prefix=$prefix"
22515 case $ac_arg in
22516 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22517 esac
22518 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22520 ac_popdir=`pwd`
22521 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22523 # Do not complain, so a configure script can configure whichever
22524 # parts of a large source tree are present.
22525 test -d "$srcdir/$ac_dir" || continue
22527 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22528 echo "$as_me:$LINENO: $ac_msg" >&5
22529 echo "$ac_msg" >&6
22530 { as_dir="$ac_dir"
22531 case $as_dir in #(
22532 -*) as_dir=./$as_dir;;
22533 esac
22534 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22535 as_dirs=
22536 while :; do
22537 case $as_dir in #(
22538 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22539 *) as_qdir=$as_dir;;
22540 esac
22541 as_dirs="'$as_qdir' $as_dirs"
22542 as_dir=`$as_dirname -- "$as_dir" ||
22543 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22544 X"$as_dir" : 'X\(//\)[^/]' \| \
22545 X"$as_dir" : 'X\(//\)$' \| \
22546 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22547 echo X"$as_dir" |
22548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22549 s//\1/
22552 /^X\(\/\/\)[^/].*/{
22553 s//\1/
22556 /^X\(\/\/\)$/{
22557 s//\1/
22560 /^X\(\/\).*/{
22561 s//\1/
22564 s/.*/./; q'`
22565 test -d "$as_dir" && break
22566 done
22567 test -z "$as_dirs" || eval "mkdir $as_dirs"
22568 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22569 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22570 { (exit 1); exit 1; }; }; }
22571 ac_builddir=.
22573 case "$ac_dir" in
22574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22576 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22577 # A ".." for each directory in $ac_dir_suffix.
22578 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22579 case $ac_top_builddir_sub in
22580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22582 esac ;;
22583 esac
22584 ac_abs_top_builddir=$ac_pwd
22585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22586 # for backward compatibility:
22587 ac_top_builddir=$ac_top_build_prefix
22589 case $srcdir in
22590 .) # We are building in place.
22591 ac_srcdir=.
22592 ac_top_srcdir=$ac_top_builddir_sub
22593 ac_abs_top_srcdir=$ac_pwd ;;
22594 [\\/]* | ?:[\\/]* ) # Absolute name.
22595 ac_srcdir=$srcdir$ac_dir_suffix;
22596 ac_top_srcdir=$srcdir
22597 ac_abs_top_srcdir=$srcdir ;;
22598 *) # Relative name.
22599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22600 ac_top_srcdir=$ac_top_build_prefix$srcdir
22601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22602 esac
22603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22606 cd "$ac_dir"
22608 # Check for guested configure; otherwise get Cygnus style configure.
22609 if test -f "$ac_srcdir/configure.gnu"; then
22610 ac_sub_configure=$ac_srcdir/configure.gnu
22611 elif test -f "$ac_srcdir/configure"; then
22612 ac_sub_configure=$ac_srcdir/configure
22613 elif test -f "$ac_srcdir/configure.in"; then
22614 # This should be Cygnus configure.
22615 ac_sub_configure=$ac_aux_dir/configure
22616 else
22617 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22618 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22619 ac_sub_configure=
22622 # The recursion is here.
22623 if test -n "$ac_sub_configure"; then
22624 # Make the cache file name correct relative to the subdirectory.
22625 case $cache_file in
22626 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22627 *) # Relative name.
22628 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22629 esac
22631 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22632 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22633 # The eval makes quoting arguments work.
22634 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22635 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22636 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22637 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22638 { (exit 1); exit 1; }; }
22641 cd "$ac_popdir"
22642 done