Silence -Wunused-variable in release builds.
[llvm/stm8.git] / configure
blob7d1662021944bfe8dc2d4132063b5086e8b9f7ca
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
275 (as_func_return () {
276 (exit $1)
278 as_func_success () {
279 as_func_return 0
281 as_func_failure () {
282 as_func_return 1
284 as_func_ret_success () {
285 return 0
287 as_func_ret_failure () {
288 return 1
291 exitcode=0
292 if as_func_success; then
294 else
295 exitcode=1
296 echo as_func_success failed.
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 else
319 exitcode=1
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331 _ASEOF
332 }; then
333 break
338 done
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
365 (exit \$1)
367 as_func_success () {
368 as_func_return 0
370 as_func_failure () {
371 as_func_return 1
373 as_func_ret_success () {
374 return 0
376 as_func_ret_failure () {
377 return 1
380 exitcode=0
381 if as_func_success; then
383 else
384 exitcode=1
385 echo as_func_success failed.
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 else
408 exitcode=1
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
444 :lineno
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484 else
485 as_expr=false
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491 else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506 else
507 as_ln_s='cp -p'
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528 else
529 as_executable_p=:
531 rm -f conf$$.file
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
562 PACKAGE_NAME='llvm'
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='3.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 subdirs
644 ENABLE_POLLY
645 LLVM_HAS_POLLY
646 build
647 build_cpu
648 build_vendor
649 build_os
650 host
651 host_cpu
652 host_vendor
653 host_os
654 target
655 target_cpu
656 target_vendor
657 target_os
659 HOST_OS
660 TARGET_OS
661 LINKALL
662 NOLINKALL
663 LLVM_ON_UNIX
664 LLVM_ON_WIN32
665 ARCH
666 ENDIAN
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
675 GREP
676 EGREP
677 LLVM_CROSS_COMPILING
678 BUILD_CC
679 BUILD_EXEEXT
680 BUILD_CXX
681 CVSBUILD
682 ENABLE_OPTIMIZED
683 ENABLE_PROFILING
684 DISABLE_ASSERTIONS
685 ENABLE_EXPENSIVE_CHECKS
686 EXPENSIVE_CHECKS
687 DEBUG_RUNTIME
688 DEBUG_SYMBOLS
690 TARGET_HAS_JIT
691 ENABLE_DOCS
692 ENABLE_DOXYGEN
693 ENABLE_THREADS
694 ENABLE_PTHREADS
695 ENABLE_PIC
696 ENABLE_SHARED
697 ENABLE_EMBED_STDCXX
698 ENABLE_TIMESTAMPS
699 TARGETS_TO_BUILD
700 LLVM_ENUM_TARGETS
701 LLVM_ENUM_ASM_PRINTERS
702 LLVM_ENUM_ASM_PARSERS
703 LLVM_ENUM_DISASSEMBLERS
704 ENABLE_CBE_PRINTF_A
705 CLANGPATH
706 CLANGXXPATH
707 ENABLE_BUILT_CLANG
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 BINUTILS_INCDIR
713 CXXFLAGS
714 ac_ct_CXX
716 ifGNUmake
717 LN_S
720 DATE
721 FIND
722 MKDIR
724 RANLIB
729 BINPWD
730 GRAPHVIZ
733 NEATO
734 TWOPI
735 CIRCO
737 DOTTY
738 XDOT_PY
739 PERL
740 HAVE_PERL
741 INSTALL_PROGRAM
742 INSTALL_SCRIPT
743 INSTALL_DATA
744 BZIP2
746 DOXYGEN
747 GROFF
748 GZIPBIN
749 POD2HTML
750 POD2MAN
751 PDFROFF
752 RUNTEST
753 TCLSH
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
760 HAVE_LINK_VERSION_SCRIPT
761 INSTALL_LTDL_TRUE
762 INSTALL_LTDL_FALSE
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
765 LIBADD_DL
766 LLVMGCCCOMMAND
767 LLVMGXXCOMMAND
768 LLVMGCC
769 LLVMGXX
770 LLVMCC_OPTION
771 NO_VARIADIC_MACROS
772 NO_MISSING_FIELD_INITIALIZERS
773 USE_UDIS86
774 USE_OPROFILE
775 HAVE_PTHREAD
776 HUGE_VAL_SANITY
777 MMAP_FILE
778 LLVMCC_EMITIR_FLAG
779 LLVMCC1
780 LLVMCC1PLUS
781 LLVMGCCDIR
782 LLVMGCC_LANGS
783 LLVMGCC_DRAGONEGG
784 LLVMCC_DISABLEOPT_FLAGS
785 SHLIBEXT
786 SHLIBPATH_VAR
787 LLVM_PREFIX
788 LLVM_BINDIR
789 LLVM_LIBDIR
790 LLVM_DATADIR
791 LLVM_DOCSDIR
792 LLVM_ETCDIR
793 LLVM_INCLUDEDIR
794 LLVM_INFODIR
795 LLVM_MANDIR
796 LLVM_CONFIGTIME
797 BINDINGS_TO_BUILD
798 ALL_BINDINGS
799 OCAML_LIBDIR
800 ENABLE_VISIBILITY_INLINES_HIDDEN
801 RPATH
802 RDYNAMIC
803 LIBOBJS
804 LTLIBOBJS'
805 ac_subst_files=''
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
810 CFLAGS
811 LDFLAGS
812 CPPFLAGS
815 CXXFLAGS
816 CCC'
817 ac_subdirs_all='projects/llvm-gcc
818 projects/test-suite
819 projects/llvm-test
820 projects/poolalloc
821 projects/llvm-poolalloc
822 projects/sample
823 projects/privbracket
824 projects/llvm-stacker
825 projects/llvm-reopt
826 projects/llvm-java
827 projects/llvm-tv
828 projects/safecode
829 projects/llvm-kernel
830 tools/polly'
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
878 ac_prev=
879 ac_dashdash=
880 for ac_option
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
885 ac_prev=
886 continue
889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
898 ac_dashdash=yes ;;
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
917 --config-cache | -C)
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
951 -enable-* | --enable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1148 -with-* | --with-*)
1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 esac
1207 done
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1228 done
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 echo X"$0" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1282 /^X\(\/\/\)$/{
1283 s//\1/
1286 /^X\(\/\).*/{
1287 s//\1/
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1295 else
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1387 cat <<\_ACEOF
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393 _ACEOF
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
1399 esac
1400 cat <<\_ACEOF
1402 Optional Features:
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-polly Use polly if available (default is YES)
1406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1409 YES)
1410 --enable-expensive-checks
1411 Compile with expensive debug checks enabled (default
1412 is NO)
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
1417 --enable-jit Enable Just In Time Compiling (default is YES)
1418 --enable-docs Build documents (default is YES)
1419 --enable-doxygen Build doxygen documentation (default is NO)
1420 --enable-threads Use threads if available (default is YES)
1421 --enable-pthreads Use pthreads if available (default is YES)
1422 --enable-pic Build LLVM with Position Independent Code (default
1423 is YES)
1424 --enable-shared Build a shared library and link tools against it
1425 (default is NO)
1426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
1428 --enable-timestamps Enable embedding timestamp information in build
1429 (default is YES)
1430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434 (default=all)
1435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1436 %a (default is YES)
1437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
1439 --enable-libffi Check for the presence of libffi (default is NO)
1440 --enable-ltdl-install install libltdl
1442 Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1446 searches PATH)
1447 --with-llvmgcc Specify location of llvm-gcc driver (default
1448 searches PATH)
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1450 searches PATH)
1451 --with-clang Specify location of clang compiler (default is
1452 --with-built-clang)
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1454 (default=check)
1455 --with-optimize-option Select the compiler options to use for optimized
1456 builds
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 is stdlib)
1461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1463 resource files
1464 --with-c-include-dirs Colon separated list of directories clang will
1465 search for headers
1466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
1472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
1474 --with-tclinclude directory where tcl headers are
1475 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1476 clang, or none; default=check)
1477 --with-udis86=<path> Use udis86 external x86 disassembler library
1478 --with-oprofile=<prefix>
1479 Tell OProfile >= 0.9.4 how to symbolize JIT output
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CPP C preprocessor
1489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to <llvmbugs@cs.uiuc.edu>.
1496 _ACEOF
1497 ac_status=$?
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" || continue
1504 ac_builddir=.
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1522 case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555 cat <<\_ACEOF
1556 llvm configure 3.0svn
1557 generated by GNU Autoconf 2.60
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1564 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1565 _ACEOF
1566 exit
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1572 It was created by llvm $as_me 3.0svn, which was
1573 generated by GNU Autoconf 2.60. Invocation command line was
1575 $ $0 $@
1577 _ACEOF
1578 exec 5>>config.log
1580 cat <<_ASUNAME
1581 ## --------- ##
1582 ## Platform. ##
1583 ## --------- ##
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1602 _ASUNAME
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
1609 echo "PATH: $as_dir"
1610 done
1611 IFS=$as_save_IFS
1613 } >&5
1615 cat >&5 <<_ACEOF
1618 ## ----------- ##
1619 ## Core tests. ##
1620 ## ----------- ##
1622 _ACEOF
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_configure_args=
1631 ac_configure_args0=
1632 ac_configure_args1=
1633 ac_must_keep_next=false
1634 for ac_pass in 1 2
1636 for ac_arg
1638 case $ac_arg in
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1642 continue ;;
1643 *\'*)
1644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1645 esac
1646 case $ac_pass in
1647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650 if test $ac_must_keep_next = true; then
1651 ac_must_keep_next=false # Got value, back to normal.
1652 else
1653 case $ac_arg in
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660 esac
1662 -* ) ac_must_keep_next=true ;;
1663 esac
1665 ac_configure_args="$ac_configure_args '$ac_arg'"
1667 esac
1668 done
1669 done
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log. We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1681 echo
1683 cat <<\_ASBOX
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1687 _ASBOX
1688 echo
1689 # The following way of writing the cache mishandles newlines in values,
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1693 case $ac_val in #(
1694 *${as_nl}*)
1695 case $ac_var in #(
1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1698 esac
1699 case $ac_var in #(
1700 _ | IFS | as_nl) ;; #(
1701 *) $as_unset $ac_var ;;
1702 esac ;;
1703 esac
1704 done
1705 (set) 2>&1 |
1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
1708 sed -n \
1709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 ;; #(
1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1715 esac |
1716 sort
1718 echo
1720 cat <<\_ASBOX
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1724 _ASBOX
1725 echo
1726 for ac_var in $ac_subst_vars
1728 eval ac_val=\$$ac_var
1729 case $ac_val in
1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731 esac
1732 echo "$ac_var='\''$ac_val'\''"
1733 done | sort
1734 echo
1736 if test -n "$ac_subst_files"; then
1737 cat <<\_ASBOX
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1741 _ASBOX
1742 echo
1743 for ac_var in $ac_subst_files
1745 eval ac_val=\$$ac_var
1746 case $ac_val in
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 esac
1749 echo "$ac_var='\''$ac_val'\''"
1750 done | sort
1751 echo
1754 if test -s confdefs.h; then
1755 cat <<\_ASBOX
1756 ## ----------- ##
1757 ## confdefs.h. ##
1758 ## ----------- ##
1759 _ASBOX
1760 echo
1761 cat confdefs.h
1762 echo
1764 test "$ac_signal" != 0 &&
1765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
1767 } >&5
1768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1770 exit $exit_status
1772 for ac_signal in 1 2 13 15; do
1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 done
1775 ac_signal=0
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1780 # Predefined preprocessor variables.
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 _ACEOF
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 _ACEOF
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 _ACEOF
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 _ACEOF
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 _ACEOF
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1813 else
1814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
1817 shift
1818 for ac_site_file
1820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823 sed 's/^/| /' "$ac_site_file" >&5
1824 . "$ac_site_file"
1826 done
1828 if test -r "$cache_file"; then
1829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1834 case $cache_file in
1835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
1837 esac
1839 else
1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1842 >$cache_file
1845 # Check that the precious variables saved in the cache have kept the same
1846 # value.
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
1851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
1853 case $ac_old_set,$ac_new_set in
1854 set,)
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1858 ,set)
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1862 ,);;
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868 echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870 echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
1872 fi;;
1873 esac
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1876 case $ac_new_val in
1877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 *) ac_arg=$ac_var=$ac_new_val ;;
1879 esac
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883 esac
1885 done
1886 if $ac_cache_corrupted; then
1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
1918 ac_ext=c
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1934 ac_aux_dir=
1935 for ac_dir in autoconf "$srcdir"/autoconf; do
1936 if test -f "$ac_dir/install-sh"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 break
1940 elif test -f "$ac_dir/install.sh"; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 break
1944 elif test -f "$ac_dir/shtool"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 break
1949 done
1950 if test -z "$ac_aux_dir"; then
1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1966 if test ${srcdir} != "." ; then
1967 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970 { (exit 1); exit 1; }; }
1976 if test -d ${srcdir}/projects/llvm-gcc ; then
1977 subdirs="$subdirs projects/llvm-gcc"
1981 if test -d ${srcdir}/projects/test-suite ; then
1982 subdirs="$subdirs projects/test-suite"
1986 if test -d ${srcdir}/projects/llvm-test ; then
1987 subdirs="$subdirs projects/llvm-test"
1991 if test -d ${srcdir}/projects/poolalloc ; then
1992 subdirs="$subdirs projects/poolalloc"
1996 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1997 subdirs="$subdirs projects/llvm-poolalloc"
2001 for i in `ls ${srcdir}/projects`
2003 if test -d ${srcdir}/projects/${i} ; then
2004 case ${i} in
2005 sample) subdirs="$subdirs projects/sample"
2007 privbracket) subdirs="$subdirs projects/privbracket"
2009 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2011 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2013 llvm-java) subdirs="$subdirs projects/llvm-java"
2015 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2017 safecode) subdirs="$subdirs projects/safecode"
2019 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2021 llvm-gcc) ;;
2022 test-suite) ;;
2023 llvm-test) ;;
2024 poolalloc) ;;
2025 llvm-poolalloc) ;;
2027 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2028 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2030 esac
2032 done
2034 # Check whether --enable-polly was given.
2035 if test "${enable_polly+set}" = set; then
2036 enableval=$enable_polly;
2037 else
2038 enableval=default
2041 case "$enableval" in
2042 yes) ENABLE_POLLY=1
2044 no) ENABLE_POLLY=0
2046 default) ENABLE_POLLY=1
2048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2049 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2050 { (exit 1); exit 1; }; } ;;
2051 esac
2054 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2055 LLVM_HAS_POLLY=1
2057 subdirs="$subdirs tools/polly"
2062 # Make sure we can run config.sub.
2063 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2064 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066 { (exit 1); exit 1; }; }
2068 { echo "$as_me:$LINENO: checking build system type" >&5
2069 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2070 if test "${ac_cv_build+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 ac_build_alias=$build_alias
2074 test "x$ac_build_alias" = x &&
2075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2076 test "x$ac_build_alias" = x &&
2077 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079 { (exit 1); exit 1; }; }
2080 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
2086 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087 echo "${ECHO_T}$ac_cv_build" >&6; }
2088 case $ac_cv_build in
2089 *-*-*) ;;
2090 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091 echo "$as_me: error: invalid value of canonical build" >&2;}
2092 { (exit 1); exit 1; }; };;
2093 esac
2094 build=$ac_cv_build
2095 ac_save_IFS=$IFS; IFS='-'
2096 set x $ac_cv_build
2097 shift
2098 build_cpu=$1
2099 build_vendor=$2
2100 shift; shift
2101 # Remember, the first character of IFS is used to create $*,
2102 # except with old shells:
2103 build_os=$*
2104 IFS=$ac_save_IFS
2105 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2108 { echo "$as_me:$LINENO: checking host system type" >&5
2109 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2110 if test "${ac_cv_host+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 if test "x$host_alias" = x; then
2114 ac_cv_host=$ac_cv_build
2115 else
2116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2117 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119 { (exit 1); exit 1; }; }
2123 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124 echo "${ECHO_T}$ac_cv_host" >&6; }
2125 case $ac_cv_host in
2126 *-*-*) ;;
2127 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128 echo "$as_me: error: invalid value of canonical host" >&2;}
2129 { (exit 1); exit 1; }; };;
2130 esac
2131 host=$ac_cv_host
2132 ac_save_IFS=$IFS; IFS='-'
2133 set x $ac_cv_host
2134 shift
2135 host_cpu=$1
2136 host_vendor=$2
2137 shift; shift
2138 # Remember, the first character of IFS is used to create $*,
2139 # except with old shells:
2140 host_os=$*
2141 IFS=$ac_save_IFS
2142 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2145 { echo "$as_me:$LINENO: checking target system type" >&5
2146 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2147 if test "${ac_cv_target+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150 if test "x$target_alias" = x; then
2151 ac_cv_target=$ac_cv_host
2152 else
2153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2155 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
2160 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2161 echo "${ECHO_T}$ac_cv_target" >&6; }
2162 case $ac_cv_target in
2163 *-*-*) ;;
2164 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2165 echo "$as_me: error: invalid value of canonical target" >&2;}
2166 { (exit 1); exit 1; }; };;
2167 esac
2168 target=$ac_cv_target
2169 ac_save_IFS=$IFS; IFS='-'
2170 set x $ac_cv_target
2171 shift
2172 target_cpu=$1
2173 target_vendor=$2
2174 shift; shift
2175 # Remember, the first character of IFS is used to create $*,
2176 # except with old shells:
2177 target_os=$*
2178 IFS=$ac_save_IFS
2179 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2182 # The aliases save the names the user supplied, while $host etc.
2183 # will get canonicalized.
2184 test -n "$target_alias" &&
2185 test "$program_prefix$program_suffix$program_transform_name" = \
2186 NONENONEs,x,x, &&
2187 program_prefix=${target_alias}-
2189 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2190 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2191 if test "${llvm_cv_os_type+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194 case $host in
2195 *-*-aix*)
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="AIX"
2199 llvm_cv_platform_type="Unix" ;;
2200 *-*-irix*)
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="IRIX"
2204 llvm_cv_platform_type="Unix" ;;
2205 *-*-cygwin*)
2206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208 llvm_cv_os_type="Cygwin"
2209 llvm_cv_platform_type="Unix" ;;
2210 *-*-darwin*)
2211 llvm_cv_link_all_option="-Wl,-all_load"
2212 llvm_cv_no_link_all_option="-Wl,-noall_load"
2213 llvm_cv_os_type="Darwin"
2214 llvm_cv_platform_type="Unix" ;;
2215 *-*-minix*)
2216 llvm_cv_link_all_option="-Wl,-all_load"
2217 llvm_cv_no_link_all_option="-Wl,-noall_load"
2218 llvm_cv_os_type="Minix"
2219 llvm_cv_platform_type="Unix" ;;
2220 *-*-freebsd*)
2221 llvm_cv_link_all_option="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2223 llvm_cv_os_type="FreeBSD"
2224 llvm_cv_platform_type="Unix" ;;
2225 *-*-openbsd*)
2226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228 llvm_cv_os_type="OpenBSD"
2229 llvm_cv_platform_type="Unix" ;;
2230 *-*-netbsd*)
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="NetBSD"
2234 llvm_cv_platform_type="Unix" ;;
2235 *-*-dragonfly*)
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="DragonFly"
2239 llvm_cv_platform_type="Unix" ;;
2240 *-*-hpux*)
2241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243 llvm_cv_os_type="HP-UX"
2244 llvm_cv_platform_type="Unix" ;;
2245 *-*-interix*)
2246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248 llvm_cv_os_type="Interix"
2249 llvm_cv_platform_type="Unix" ;;
2250 *-*-linux*)
2251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253 llvm_cv_os_type="Linux"
2254 llvm_cv_platform_type="Unix" ;;
2255 *-*-solaris*)
2256 llvm_cv_link_all_option="-Wl,-z,allextract"
2257 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2258 llvm_cv_os_type="SunOS"
2259 llvm_cv_platform_type="Unix" ;;
2260 *-*-auroraux*)
2261 llvm_cv_link_all_option="-Wl,-z,allextract"
2262 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2263 llvm_cv_os_type="AuroraUX"
2264 llvm_cv_platform_type="Unix" ;;
2265 *-*-win32*)
2266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268 llvm_cv_os_type="Win32"
2269 llvm_cv_platform_type="Win32" ;;
2270 *-*-mingw*)
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="MingW"
2274 llvm_cv_platform_type="Win32" ;;
2275 *-*-haiku*)
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="Haiku"
2279 llvm_cv_platform_type="Unix" ;;
2280 *-unknown-eabi*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="Freestanding"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-unknown-elf*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="Freestanding"
2289 llvm_cv_platform_type="Unix" ;;
2291 llvm_cv_link_all_option=""
2292 llvm_cv_no_link_all_option=""
2293 llvm_cv_os_type="Unknown"
2294 llvm_cv_platform_type="Unknown" ;;
2295 esac
2297 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2298 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2300 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2301 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2302 if test "${llvm_cv_target_os_type+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305 case $target in
2306 *-*-aix*)
2307 llvm_cv_target_os_type="AIX" ;;
2308 *-*-irix*)
2309 llvm_cv_target_os_type="IRIX" ;;
2310 *-*-cygwin*)
2311 llvm_cv_target_os_type="Cygwin" ;;
2312 *-*-darwin*)
2313 llvm_cv_target_os_type="Darwin" ;;
2314 *-*-minix*)
2315 llvm_cv_target_os_type="Minix" ;;
2316 *-*-freebsd*)
2317 llvm_cv_target_os_type="FreeBSD" ;;
2318 *-*-openbsd*)
2319 llvm_cv_target_os_type="OpenBSD" ;;
2320 *-*-netbsd*)
2321 llvm_cv_target_os_type="NetBSD" ;;
2322 *-*-dragonfly*)
2323 llvm_cv_target_os_type="DragonFly" ;;
2324 *-*-hpux*)
2325 llvm_cv_target_os_type="HP-UX" ;;
2326 *-*-interix*)
2327 llvm_cv_target_os_type="Interix" ;;
2328 *-*-linux*)
2329 llvm_cv_target_os_type="Linux" ;;
2330 *-*-solaris*)
2331 llvm_cv_target_os_type="SunOS" ;;
2332 *-*-auroraux*)
2333 llvm_cv_target_os_type="AuroraUX" ;;
2334 *-*-win32*)
2335 llvm_cv_target_os_type="Win32" ;;
2336 *-*-mingw*)
2337 llvm_cv_target_os_type="MingW" ;;
2338 *-*-haiku*)
2339 llvm_cv_target_os_type="Haiku" ;;
2340 *-*-rtems*)
2341 llvm_cv_target_os_type="RTEMS" ;;
2342 *-unknown-eabi*)
2343 llvm_cv_target_os_type="Freestanding" ;;
2345 llvm_cv_target_os_type="Unknown" ;;
2346 esac
2348 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2349 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2351 if test "$llvm_cv_os_type" = "Unknown" ; then
2352 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2353 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2354 { (exit 1); exit 1; }; }
2357 OS=$llvm_cv_os_type
2359 HOST_OS=$llvm_cv_os_type
2361 TARGET_OS=$llvm_cv_target_os_type
2364 LINKALL=$llvm_cv_link_all_option
2366 NOLINKALL=$llvm_cv_no_link_all_option
2369 case $llvm_cv_platform_type in
2370 Unix)
2372 cat >>confdefs.h <<\_ACEOF
2373 #define LLVM_ON_UNIX 1
2374 _ACEOF
2376 LLVM_ON_UNIX=1
2378 LLVM_ON_WIN32=0
2381 Win32)
2383 cat >>confdefs.h <<\_ACEOF
2384 #define LLVM_ON_WIN32 1
2385 _ACEOF
2387 LLVM_ON_UNIX=0
2389 LLVM_ON_WIN32=1
2392 esac
2394 { echo "$as_me:$LINENO: checking target architecture" >&5
2395 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2396 if test "${llvm_cv_target_arch+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 case $target in
2400 i?86-*) llvm_cv_target_arch="x86" ;;
2401 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2402 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2403 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2404 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2405 arm*-*) llvm_cv_target_arch="ARM" ;;
2406 mips-*) llvm_cv_target_arch="Mips" ;;
2407 xcore-*) llvm_cv_target_arch="XCore" ;;
2408 msp430-*) llvm_cv_target_arch="MSP430" ;;
2409 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2410 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2411 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2412 ptx-*) llvm_cv_target_arch="PTX" ;;
2413 *) llvm_cv_target_arch="Unknown" ;;
2414 esac
2416 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2417 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2419 if test "$llvm_cv_target_arch" = "Unknown" ; then
2420 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2421 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2424 # Determine the LLVM native architecture for the target
2425 case "$llvm_cv_target_arch" in
2426 x86) LLVM_NATIVE_ARCH="X86" ;;
2427 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2428 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2429 esac
2431 ARCH=$llvm_cv_target_arch
2434 ac_ext=c
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2444 if test "${ac_cv_prog_CC+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447 if test -n "$CC"; then
2448 ac_cv_prog_CC="$CC" # Let the user override the test.
2449 else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 break 2
2461 done
2462 done
2463 IFS=$as_save_IFS
2467 CC=$ac_cv_prog_CC
2468 if test -n "$CC"; then
2469 { echo "$as_me:$LINENO: result: $CC" >&5
2470 echo "${ECHO_T}$CC" >&6; }
2471 else
2472 { echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6; }
2478 if test -z "$ac_cv_prog_CC"; then
2479 ac_ct_CC=$CC
2480 # Extract the first word of "gcc", so it can be a program name with args.
2481 set dummy gcc; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_ac_ct_CC="gcc"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2501 done
2502 done
2503 IFS=$as_save_IFS
2507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2508 if test -n "$ac_ct_CC"; then
2509 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2510 echo "${ECHO_T}$ac_ct_CC" >&6; }
2511 else
2512 { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2516 if test "x$ac_ct_CC" = x; then
2517 CC=""
2518 else
2519 case $cross_compiling:$ac_tool_warned in
2520 yes:)
2521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet. If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&5
2524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet. If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2527 ac_tool_warned=yes ;;
2528 esac
2529 CC=$ac_ct_CC
2531 else
2532 CC="$ac_cv_prog_CC"
2535 if test -z "$CC"; then
2536 if test -n "$ac_tool_prefix"; then
2537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2538 set dummy ${ac_tool_prefix}cc; ac_word=$2
2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541 if test "${ac_cv_prog_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_CC="${ac_tool_prefix}cc"
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2558 done
2559 done
2560 IFS=$as_save_IFS
2564 CC=$ac_cv_prog_CC
2565 if test -n "$CC"; then
2566 { echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6; }
2568 else
2569 { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2576 if test -z "$CC"; then
2577 # Extract the first word of "cc", so it can be a program name with args.
2578 set dummy cc; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2586 else
2587 ac_prog_rejected=no
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2596 ac_prog_rejected=yes
2597 continue
2599 ac_cv_prog_CC="cc"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2603 done
2604 done
2605 IFS=$as_save_IFS
2607 if test $ac_prog_rejected = yes; then
2608 # We found a bogon in the path, so make sure we never use it.
2609 set dummy $ac_cv_prog_CC
2610 shift
2611 if test $# != 0; then
2612 # We chose a different compiler from the bogus one.
2613 # However, it has the same basename, so the bogon will be chosen
2614 # first if we set CC to just the basename; use the full file name.
2615 shift
2616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2621 CC=$ac_cv_prog_CC
2622 if test -n "$CC"; then
2623 { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2625 else
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2632 if test -z "$CC"; then
2633 if test -n "$ac_tool_prefix"; then
2634 for ac_prog in cl.exe
2636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_CC+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643 if test -n "$CC"; then
2644 ac_cv_prog_CC="$CC" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2657 done
2658 done
2659 IFS=$as_save_IFS
2663 CC=$ac_cv_prog_CC
2664 if test -n "$CC"; then
2665 { echo "$as_me:$LINENO: result: $CC" >&5
2666 echo "${ECHO_T}$CC" >&6; }
2667 else
2668 { echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6; }
2673 test -n "$CC" && break
2674 done
2676 if test -z "$CC"; then
2677 ac_ct_CC=$CC
2678 for ac_prog in cl.exe
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 if test -n "$ac_ct_CC"; then
2688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_ac_ct_CC="$ac_prog"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2701 done
2702 done
2703 IFS=$as_save_IFS
2707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708 if test -n "$ac_ct_CC"; then
2709 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710 echo "${ECHO_T}$ac_ct_CC" >&6; }
2711 else
2712 { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2717 test -n "$ac_ct_CC" && break
2718 done
2720 if test "x$ac_ct_CC" = x; then
2721 CC=""
2722 else
2723 case $cross_compiling:$ac_tool_warned in
2724 yes:)
2725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2726 whose name does not start with the host triplet. If you think this
2727 configuration is useful to you, please write to autoconf@gnu.org." >&5
2728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2729 whose name does not start with the host triplet. If you think this
2730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2731 ac_tool_warned=yes ;;
2732 esac
2733 CC=$ac_ct_CC
2740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2741 See \`config.log' for more details." >&5
2742 echo "$as_me: error: no acceptable C compiler found in \$PATH
2743 See \`config.log' for more details." >&2;}
2744 { (exit 1); exit 1; }; }
2746 # Provide some information about the compiler.
2747 echo "$as_me:$LINENO: checking for C compiler version" >&5
2748 ac_compiler=`set X $ac_compile; echo $2`
2749 { (ac_try="$ac_compiler --version >&5"
2750 case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753 esac
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler --version >&5") 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2759 { (ac_try="$ac_compiler -v >&5"
2760 case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763 esac
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compiler -v >&5") 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
2769 { (ac_try="$ac_compiler -V >&5"
2770 case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compiler -V >&5") 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
2780 cat >conftest.$ac_ext <<_ACEOF
2781 /* confdefs.h. */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2788 main ()
2792 return 0;
2794 _ACEOF
2795 ac_clean_files_save=$ac_clean_files
2796 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2797 # Try to create an executable without -o first, disregard a.out.
2798 # It will help us diagnose broken compilers, and finding out an intuition
2799 # of exeext.
2800 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2801 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2802 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2804 # List of possible output files, starting from the most likely.
2805 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2806 # only as a last resort. b.out is created by i960 compilers.
2807 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2809 # The IRIX 6 linker writes into existing files which may not be
2810 # executable, retaining their permissions. Remove them first so a
2811 # subsequent execution test works.
2812 ac_rmfiles=
2813 for ac_file in $ac_files
2815 case $ac_file in
2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2817 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818 esac
2819 done
2820 rm -f $ac_rmfiles
2822 if { (ac_try="$ac_link_default"
2823 case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_link_default") 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; then
2832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2833 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2834 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2835 # so that the user can short-circuit this test for compilers unknown to
2836 # Autoconf.
2837 for ac_file in $ac_files
2839 test -f "$ac_file" || continue
2840 case $ac_file in
2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2843 [ab].out )
2844 # We found the default executable, but exeext='' is most
2845 # certainly right.
2846 break;;
2847 *.* )
2848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2849 then :; else
2850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852 # We set ac_cv_exeext here because the later test for it is not
2853 # safe: cross compilers may not add the suffix if given an `-o'
2854 # argument, so we may need to know it at that point already.
2855 # Even if this section looks crufty: it has the advantage of
2856 # actually working.
2857 break;;
2859 break;;
2860 esac
2861 done
2862 test "$ac_cv_exeext" = no && ac_cv_exeext=
2864 else
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2869 See \`config.log' for more details." >&5
2870 echo "$as_me: error: C compiler cannot create executables
2871 See \`config.log' for more details." >&2;}
2872 { (exit 77); exit 77; }; }
2875 ac_exeext=$ac_cv_exeext
2876 { echo "$as_me:$LINENO: result: $ac_file" >&5
2877 echo "${ECHO_T}$ac_file" >&6; }
2879 # Check that the compiler produces executables we can run. If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2884 # If not cross compiling, check that we can run a simple program.
2885 if test "$cross_compiling" != yes; then
2886 if { ac_try='./$ac_file'
2887 { (case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_try") 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 cross_compiling=no
2897 else
2898 if test "$cross_compiling" = maybe; then
2899 cross_compiling=yes
2900 else
2901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2902 If you meant to cross compile, use \`--host'.
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2911 { echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6; }
2914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2915 ac_clean_files=$ac_clean_files_save
2916 # Check that the compiler produces executables we can run. If not, either
2917 # the compiler is broken, or we cross compile.
2918 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2920 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921 echo "${ECHO_T}$cross_compiling" >&6; }
2923 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2925 if { (ac_try="$ac_link"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_link") 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; then
2935 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2936 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2937 # work properly (i.e., refer to `conftest.exe'), while it won't with
2938 # `rm'.
2939 for ac_file in conftest.exe conftest conftest.*; do
2940 test -f "$ac_file" || continue
2941 case $ac_file in
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2943 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944 break;;
2945 * ) break;;
2946 esac
2947 done
2948 else
2949 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
2956 rm -f conftest$ac_cv_exeext
2957 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2958 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2960 rm -f conftest.$ac_ext
2961 EXEEXT=$ac_cv_exeext
2962 ac_exeext=$EXEEXT
2963 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2964 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2965 if test "${ac_cv_objext+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968 cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h. */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2976 main ()
2980 return 0;
2982 _ACEOF
2983 rm -f conftest.o conftest.obj
2984 if { (ac_try="$ac_compile"
2985 case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_compile") 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; then
2994 for ac_file in conftest.o conftest.obj conftest.*; do
2995 test -f "$ac_file" || continue;
2996 case $ac_file in
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2999 break;;
3000 esac
3001 done
3002 else
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
3013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3015 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3016 echo "${ECHO_T}$ac_cv_objext" >&6; }
3017 OBJEXT=$ac_cv_objext
3018 ac_objext=$OBJEXT
3019 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h. */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3032 main ()
3034 #ifndef __GNUC__
3035 choke me
3036 #endif
3039 return 0;
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3044 case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3057 { (case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_try") 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_try") 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 ac_compiler_gnu=yes
3077 else
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3081 ac_compiler_gnu=no
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3088 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3089 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3090 GCC=`test $ac_compiler_gnu = yes && echo yes`
3091 ac_test_CFLAGS=${CFLAGS+set}
3092 ac_save_CFLAGS=$CFLAGS
3093 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3094 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3095 if test "${ac_cv_prog_cc_g+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098 ac_save_c_werror_flag=$ac_c_werror_flag
3099 ac_c_werror_flag=yes
3100 ac_cv_prog_cc_g=no
3101 CFLAGS="-g"
3102 cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h. */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3110 main ()
3114 return 0;
3116 _ACEOF
3117 rm -f conftest.$ac_objext
3118 if { (ac_try="$ac_compile"
3119 case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compile") 2>conftest.er1
3125 ac_status=$?
3126 grep -v '^ *+' conftest.er1 >conftest.err
3127 rm -f conftest.er1
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3132 { (case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_try") 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3151 ac_cv_prog_cc_g=yes
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 CFLAGS=""
3157 cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h. */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3165 main ()
3169 return 0;
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3180 ac_status=$?
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_try") 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3207 else
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 ac_c_werror_flag=$ac_save_c_werror_flag
3212 CFLAGS="-g"
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3221 main ()
3225 return 0;
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243 { (case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_try") 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256 esac
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_try") 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 ac_cv_prog_cc_g=yes
3263 else
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277 ac_c_werror_flag=$ac_save_c_werror_flag
3279 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3281 if test "$ac_test_CFLAGS" = set; then
3282 CFLAGS=$ac_save_CFLAGS
3283 elif test $ac_cv_prog_cc_g = yes; then
3284 if test "$GCC" = yes; then
3285 CFLAGS="-g -O2"
3286 else
3287 CFLAGS="-g"
3289 else
3290 if test "$GCC" = yes; then
3291 CFLAGS="-O2"
3292 else
3293 CFLAGS=
3296 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3297 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3298 if test "${ac_cv_prog_cc_c89+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301 ac_cv_prog_cc_c89=no
3302 ac_save_CC=$CC
3303 cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h. */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3309 #include <stdarg.h>
3310 #include <stdio.h>
3311 #include <sys/types.h>
3312 #include <sys/stat.h>
3313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3314 struct buf { int x; };
3315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316 static char *e (p, i)
3317 char **p;
3318 int i;
3320 return p[i];
3322 static char *f (char * (*g) (char **, int), char **p, ...)
3324 char *s;
3325 va_list v;
3326 va_start (v,p);
3327 s = g (p, va_arg (v,int));
3328 va_end (v);
3329 return s;
3332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3333 function prototypes and stuff, but not '\xHH' hex character constants.
3334 These don't provoke an error unfortunately, instead are silently treated
3335 as 'x'. The following induces an error, until -std is added to get
3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3337 array size at least. It's necessary to write '\x00'==0 to get something
3338 that's true only with -std. */
3339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342 inside strings and character constants. */
3343 #define FOO(x) 'x'
3344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 int argc;
3351 char **argv;
3353 main ()
3355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3357 return 0;
3359 _ACEOF
3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363 CC="$ac_save_CC $ac_arg"
3364 rm -f conftest.$ac_objext
3365 if { (ac_try="$ac_compile"
3366 case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369 esac
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_compile") 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3379 { (case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_try") 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; } &&
3388 { ac_try='test -s conftest.$ac_objext'
3389 { (case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_try") 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 ac_cv_prog_cc_c89=$ac_arg
3399 else
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3406 rm -f core conftest.err conftest.$ac_objext
3407 test "x$ac_cv_prog_cc_c89" != "xno" && break
3408 done
3409 rm -f conftest.$ac_ext
3410 CC=$ac_save_CC
3413 # AC_CACHE_VAL
3414 case "x$ac_cv_prog_cc_c89" in
3416 { echo "$as_me:$LINENO: result: none needed" >&5
3417 echo "${ECHO_T}none needed" >&6; } ;;
3418 xno)
3419 { echo "$as_me:$LINENO: result: unsupported" >&5
3420 echo "${ECHO_T}unsupported" >&6; } ;;
3422 CC="$CC $ac_cv_prog_cc_c89"
3423 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3424 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3425 esac
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435 ac_ext=c
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3441 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3442 # On Suns, sometimes $CPP names a directory.
3443 if test -n "$CPP" && test -d "$CPP"; then
3444 CPP=
3446 if test -z "$CPP"; then
3447 if test "${ac_cv_prog_CPP+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 # Double quotes because CPP needs to be expanded
3451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3453 ac_preproc_ok=false
3454 for ac_c_preproc_warn_flag in '' yes
3456 # Use a header file that comes with gcc, so configuring glibc
3457 # with a fresh cross-compiler works.
3458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3459 # <limits.h> exists even on freestanding compilers.
3460 # On the NeXT, cc -E runs the code through the compiler's parser,
3461 # not just through cpp. "Syntax error" is here to catch this case.
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 #ifdef __STDC__
3469 # include <limits.h>
3470 #else
3471 # include <assert.h>
3472 #endif
3473 Syntax error
3474 _ACEOF
3475 if { (ac_try="$ac_cpp conftest.$ac_ext"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev/null; then
3488 if test -s conftest.err; then
3489 ac_cpp_err=$ac_c_preproc_warn_flag
3490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3491 else
3492 ac_cpp_err=
3494 else
3495 ac_cpp_err=yes
3497 if test -z "$ac_cpp_err"; then
3499 else
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 # Broken: fails on valid input.
3504 continue
3507 rm -f conftest.err conftest.$ac_ext
3509 # OK, works on sane cases. Now check whether nonexistent headers
3510 # can be detected and how.
3511 cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h. */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 #include <ac_nonexistent.h>
3518 _ACEOF
3519 if { (ac_try="$ac_cpp conftest.$ac_ext"
3520 case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3535 else
3536 ac_cpp_err=
3538 else
3539 ac_cpp_err=yes
3541 if test -z "$ac_cpp_err"; then
3542 # Broken: success on invalid input.
3543 continue
3544 else
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 # Passes both tests.
3549 ac_preproc_ok=:
3550 break
3553 rm -f conftest.err conftest.$ac_ext
3555 done
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3559 break
3562 done
3563 ac_cv_prog_CPP=$CPP
3566 CPP=$ac_cv_prog_CPP
3567 else
3568 ac_cv_prog_CPP=$CPP
3570 { echo "$as_me:$LINENO: result: $CPP" >&5
3571 echo "${ECHO_T}$CPP" >&6; }
3572 ac_preproc_ok=false
3573 for ac_c_preproc_warn_flag in '' yes
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
3581 cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h. */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 #ifdef __STDC__
3588 # include <limits.h>
3589 #else
3590 # include <assert.h>
3591 #endif
3592 Syntax error
3593 _ACEOF
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null; then
3607 if test -s conftest.err; then
3608 ac_cpp_err=$ac_c_preproc_warn_flag
3609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3610 else
3611 ac_cpp_err=
3613 else
3614 ac_cpp_err=yes
3616 if test -z "$ac_cpp_err"; then
3618 else
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3622 # Broken: fails on valid input.
3623 continue
3626 rm -f conftest.err conftest.$ac_ext
3628 # OK, works on sane cases. Now check whether nonexistent headers
3629 # can be detected and how.
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h. */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3636 #include <ac_nonexistent.h>
3637 _ACEOF
3638 if { (ac_try="$ac_cpp conftest.$ac_ext"
3639 case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642 esac
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } >/dev/null; then
3651 if test -s conftest.err; then
3652 ac_cpp_err=$ac_c_preproc_warn_flag
3653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3654 else
3655 ac_cpp_err=
3657 else
3658 ac_cpp_err=yes
3660 if test -z "$ac_cpp_err"; then
3661 # Broken: success on invalid input.
3662 continue
3663 else
3664 echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3667 # Passes both tests.
3668 ac_preproc_ok=:
3669 break
3672 rm -f conftest.err conftest.$ac_ext
3674 done
3675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3676 rm -f conftest.err conftest.$ac_ext
3677 if $ac_preproc_ok; then
3679 else
3680 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3681 See \`config.log' for more details." >&5
3682 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3683 See \`config.log' for more details." >&2;}
3684 { (exit 1); exit 1; }; }
3687 ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3695 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3696 if test "${ac_cv_path_GREP+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 # Extract the first word of "grep ggrep" to use in msg output
3700 if test -z "$GREP"; then
3701 set dummy grep ggrep; ac_prog_name=$2
3702 if test "${ac_cv_path_GREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705 ac_path_GREP_found=false
3706 # Loop through the user's path and test for each of PROGNAME-LIST
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_prog in grep ggrep; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3715 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3716 # Check for GNU ac_path_GREP and select it if it is found.
3717 # Check for GNU $ac_path_GREP
3718 case `"$ac_path_GREP" --version 2>&1` in
3719 *GNU*)
3720 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3722 ac_count=0
3723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3724 while :
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
3729 echo 'GREP' >> "conftest.nl"
3730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732 ac_count=`expr $ac_count + 1`
3733 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_GREP="$ac_path_GREP"
3736 ac_path_GREP_max=$ac_count
3738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3740 done
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742 esac
3745 $ac_path_GREP_found && break 3
3746 done
3747 done
3749 done
3750 IFS=$as_save_IFS
3755 GREP="$ac_cv_path_GREP"
3756 if test -z "$GREP"; then
3757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3758 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3759 { (exit 1); exit 1; }; }
3762 else
3763 ac_cv_path_GREP=$GREP
3768 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3769 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3770 GREP="$ac_cv_path_GREP"
3773 { echo "$as_me:$LINENO: checking for egrep" >&5
3774 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3775 if test "${ac_cv_path_EGREP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3779 then ac_cv_path_EGREP="$GREP -E"
3780 else
3781 # Extract the first word of "egrep" to use in msg output
3782 if test -z "$EGREP"; then
3783 set dummy egrep; ac_prog_name=$2
3784 if test "${ac_cv_path_EGREP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 ac_path_EGREP_found=false
3788 # Loop through the user's path and test for each of PROGNAME-LIST
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_prog in egrep; do
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3797 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3798 # Check for GNU ac_path_EGREP and select it if it is found.
3799 # Check for GNU $ac_path_EGREP
3800 case `"$ac_path_EGREP" --version 2>&1` in
3801 *GNU*)
3802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3804 ac_count=0
3805 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3806 while :
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
3811 echo 'EGREP' >> "conftest.nl"
3812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3814 ac_count=`expr $ac_count + 1`
3815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_EGREP="$ac_path_EGREP"
3818 ac_path_EGREP_max=$ac_count
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3822 done
3823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824 esac
3827 $ac_path_EGREP_found && break 3
3828 done
3829 done
3831 done
3832 IFS=$as_save_IFS
3837 EGREP="$ac_cv_path_EGREP"
3838 if test -z "$EGREP"; then
3839 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3840 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3841 { (exit 1); exit 1; }; }
3844 else
3845 ac_cv_path_EGREP=$EGREP
3851 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3852 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3853 EGREP="$ac_cv_path_EGREP"
3856 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3858 if test "${ac_cv_header_stdc+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h. */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3867 #include <stdlib.h>
3868 #include <stdarg.h>
3869 #include <string.h>
3870 #include <float.h>
3873 main ()
3877 return 0;
3879 _ACEOF
3880 rm -f conftest.$ac_objext
3881 if { (ac_try="$ac_compile"
3882 case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885 esac
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3895 { (case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898 esac
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_try") 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; } &&
3904 { ac_try='test -s conftest.$ac_objext'
3905 { (case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908 esac
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_try") 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 ac_cv_header_stdc=yes
3915 else
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 ac_cv_header_stdc=no
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 if test $ac_cv_header_stdc = yes; then
3925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3926 cat >conftest.$ac_ext <<_ACEOF
3927 /* confdefs.h. */
3928 _ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3932 #include <string.h>
3934 _ACEOF
3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936 $EGREP "memchr" >/dev/null 2>&1; then
3938 else
3939 ac_cv_header_stdc=no
3941 rm -f conftest*
3945 if test $ac_cv_header_stdc = yes; then
3946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 #include <stdlib.h>
3955 _ACEOF
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 $EGREP "free" >/dev/null 2>&1; then
3959 else
3960 ac_cv_header_stdc=no
3962 rm -f conftest*
3966 if test $ac_cv_header_stdc = yes; then
3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3968 if test "$cross_compiling" = yes; then
3970 else
3971 cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h. */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977 #include <ctype.h>
3978 #include <stdlib.h>
3979 #if ((' ' & 0x0FF) == 0x020)
3980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3982 #else
3983 # define ISLOWER(c) \
3984 (('a' <= (c) && (c) <= 'i') \
3985 || ('j' <= (c) && (c) <= 'r') \
3986 || ('s' <= (c) && (c) <= 'z'))
3987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3988 #endif
3990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3992 main ()
3994 int i;
3995 for (i = 0; i < 256; i++)
3996 if (XOR (islower (i), ISLOWER (i))
3997 || toupper (i) != TOUPPER (i))
3998 return 2;
3999 return 0;
4001 _ACEOF
4002 rm -f conftest$ac_exeext
4003 if { (ac_try="$ac_link"
4004 case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007 esac
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_link") 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4013 { (case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_try") 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4023 else
4024 echo "$as_me: program exited with status $ac_status" >&5
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 ( exit $ac_status )
4029 ac_cv_header_stdc=no
4031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4039 if test $ac_cv_header_stdc = yes; then
4041 cat >>confdefs.h <<\_ACEOF
4042 #define STDC_HEADERS 1
4043 _ACEOF
4047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4058 inttypes.h stdint.h unistd.h
4060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h. */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 $ac_includes_default
4074 #include <$ac_header>
4075 _ACEOF
4076 rm -f conftest.$ac_objext
4077 if { (ac_try="$ac_compile"
4078 case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compile") 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094 esac
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_try") 2>&5
4107 ac_status=$?
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 eval "$as_ac_Header=yes"
4111 else
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4115 eval "$as_ac_Header=no"
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 ac_res=`eval echo '${'$as_ac_Header'}'`
4121 { echo "$as_me:$LINENO: result: $ac_res" >&5
4122 echo "${ECHO_T}$ac_res" >&6; }
4123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4124 cat >>confdefs.h <<_ACEOF
4125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4126 _ACEOF
4130 done
4133 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4134 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4135 if test "${ac_cv_c_bigendian+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 # See if sys/param.h defines the BYTE_ORDER macro.
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h. */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 #include <sys/types.h>
4146 #include <sys/param.h>
4149 main ()
4151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4152 bogus endian macros
4153 #endif
4156 return 0;
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4161 case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164 esac
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_compile") 2>conftest.er1
4167 ac_status=$?
4168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4174 { (case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_try") 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 # It does; now see whether it defined to BIG_ENDIAN or not.
4194 cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h. */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 #include <sys/types.h>
4201 #include <sys/param.h>
4204 main ()
4206 #if BYTE_ORDER != BIG_ENDIAN
4207 not big endian
4208 #endif
4211 return 0;
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (ac_try="$ac_compile"
4216 case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242 esac
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_try") 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_c_bigendian=yes
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4253 ac_cv_c_bigendian=no
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 else
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4261 # It does not; compile a test program.
4262 if test "$cross_compiling" = yes; then
4263 # try to guess the endianness by grepping values into an object file
4264 ac_cv_c_bigendian=unknown
4265 cat >conftest.$ac_ext <<_ACEOF
4266 /* confdefs.h. */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4272 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4273 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4274 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4275 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4276 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4278 main ()
4280 _ascii (); _ebcdic ();
4282 return 0;
4284 _ACEOF
4285 rm -f conftest.$ac_objext
4286 if { (ac_try="$ac_compile"
4287 case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_compile") 2>conftest.er1
4293 ac_status=$?
4294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4300 { (case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_try") 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; } &&
4309 { ac_try='test -s conftest.$ac_objext'
4310 { (case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_try") 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4320 ac_cv_c_bigendian=yes
4322 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4323 if test "$ac_cv_c_bigendian" = unknown; then
4324 ac_cv_c_bigendian=no
4325 else
4326 # finding both strings is unlikely to happen, but who knows?
4327 ac_cv_c_bigendian=unknown
4330 else
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 else
4339 cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h. */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 $ac_includes_default
4347 main ()
4350 /* Are we little or big endian? From Harbison&Steele. */
4351 union
4353 long int l;
4354 char c[sizeof (long int)];
4355 } u;
4356 u.l = 1;
4357 return u.c[sizeof (long int) - 1] == 1;
4360 return 0;
4362 _ACEOF
4363 rm -f conftest$ac_exeext
4364 if { (ac_try="$ac_link"
4365 case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368 esac
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_link") 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4374 { (case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377 esac
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_try") 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_c_bigendian=no
4384 else
4385 echo "$as_me: program exited with status $ac_status" >&5
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4389 ( exit $ac_status )
4390 ac_cv_c_bigendian=yes
4392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4401 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4402 case $ac_cv_c_bigendian in
4403 yes)
4404 ENDIAN=big
4407 ENDIAN=little
4410 { { echo "$as_me:$LINENO: error: unknown endianness
4411 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4412 echo "$as_me: error: unknown endianness
4413 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4414 { (exit 1); exit 1; }; } ;;
4415 esac
4418 if test "$cross_compiling" = yes; then
4419 LLVM_CROSS_COMPILING=1
4422 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4423 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4424 if test "${ac_cv_build_exeext+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4428 ac_cv_build_exeext=.exe
4429 else
4430 ac_build_prefix=${build_alias}-
4432 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4433 set dummy ${ac_build_prefix}gcc; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 if test -n "$BUILD_CC"; then
4440 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4453 done
4454 done
4455 IFS=$as_save_IFS
4459 BUILD_CC=$ac_cv_prog_BUILD_CC
4460 if test -n "$BUILD_CC"; then
4461 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462 echo "${ECHO_T}$BUILD_CC" >&6; }
4463 else
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4469 if test -z "$BUILD_CC"; then
4470 # Extract the first word of "gcc", so it can be a program name with args.
4471 set dummy gcc; ac_word=$2
4472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477 if test -n "$BUILD_CC"; then
4478 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_prog_BUILD_CC="gcc"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4491 done
4492 done
4493 IFS=$as_save_IFS
4497 BUILD_CC=$ac_cv_prog_BUILD_CC
4498 if test -n "$BUILD_CC"; then
4499 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4500 echo "${ECHO_T}$BUILD_CC" >&6; }
4501 else
4502 { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4507 if test -z "$BUILD_CC"; then
4508 # Extract the first word of "cc", so it can be a program name with args.
4509 set dummy cc; ac_word=$2
4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515 if test -n "$BUILD_CC"; then
4516 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4517 else
4518 ac_prog_rejected=no
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4527 ac_prog_rejected=yes
4528 continue
4530 ac_cv_prog_BUILD_CC="cc"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4534 done
4535 done
4536 IFS=$as_save_IFS
4538 if test $ac_prog_rejected = yes; then
4539 # We found a bogon in the path, so make sure we never use it.
4540 set dummy $ac_cv_prog_BUILD_CC
4541 shift
4542 if test $# != 0; then
4543 # We chose a different compiler from the bogus one.
4544 # However, it has the same basename, so the bogon will be chosen
4545 # first if we set BUILD_CC to just the basename; use the full file name.
4546 shift
4547 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4552 BUILD_CC=$ac_cv_prog_BUILD_CC
4553 if test -n "$BUILD_CC"; then
4554 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4555 echo "${ECHO_T}$BUILD_CC" >&6; }
4556 else
4557 { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4564 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4565 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4566 { (exit 1); exit 1; }; }
4567 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4568 rm -f conftest*
4569 echo 'int main () { return 0; }' > conftest.$ac_ext
4570 ac_cv_build_exeext=
4571 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4572 (eval $ac_build_link) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; then
4576 for file in conftest.*; do
4577 case $file in
4578 *.c | *.o | *.obj | *.dSYM) ;;
4579 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4580 esac
4581 done
4582 else
4583 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4584 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4585 { (exit 1); exit 1; }; }
4587 rm -f conftest*
4588 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4592 BUILD_EXEEXT=""
4593 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4594 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4595 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4596 ac_build_exeext=$BUILD_EXEEXT
4598 ac_build_prefix=${build_alias}-
4599 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4600 set dummy ${ac_build_prefix}g++; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606 if test -n "$BUILD_CXX"; then
4607 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4620 done
4621 done
4622 IFS=$as_save_IFS
4626 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4627 if test -n "$BUILD_CXX"; then
4628 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4629 echo "${ECHO_T}$BUILD_CXX" >&6; }
4630 else
4631 { echo "$as_me:$LINENO: result: no" >&5
4632 echo "${ECHO_T}no" >&6; }
4636 if test -z "$BUILD_CXX"; then
4637 # Extract the first word of "g++", so it can be a program name with args.
4638 set dummy g++; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644 if test -n "$BUILD_CXX"; then
4645 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_BUILD_CXX="g++"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4658 done
4659 done
4660 IFS=$as_save_IFS
4664 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4665 if test -n "$BUILD_CXX"; then
4666 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4667 echo "${ECHO_T}$BUILD_CXX" >&6; }
4668 else
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4674 if test -z "$BUILD_CXX"; then
4675 # Extract the first word of "c++", so it can be a program name with args.
4676 set dummy c++; ac_word=$2
4677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 if test -n "$BUILD_CXX"; then
4683 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4684 else
4685 ac_prog_rejected=no
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4694 ac_prog_rejected=yes
4695 continue
4697 ac_cv_prog_BUILD_CXX="c++"
4698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4701 done
4702 done
4703 IFS=$as_save_IFS
4705 if test $ac_prog_rejected = yes; then
4706 # We found a bogon in the path, so make sure we never use it.
4707 set dummy $ac_cv_prog_BUILD_CXX
4708 shift
4709 if test $# != 0; then
4710 # We chose a different compiler from the bogus one.
4711 # However, it has the same basename, so the bogon will be chosen
4712 # first if we set BUILD_CXX to just the basename; use the full file name.
4713 shift
4714 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4719 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4720 if test -n "$BUILD_CXX"; then
4721 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4722 echo "${ECHO_T}$BUILD_CXX" >&6; }
4723 else
4724 { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4731 else
4732 LLVM_CROSS_COMPILING=0
4736 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4737 cvsbuild="yes"
4738 optimize="no"
4739 CVSBUILD=CVSBUILD=1
4741 else
4742 cvsbuild="no"
4743 optimize="yes"
4747 # Check whether --enable-optimized was given.
4748 if test "${enable_optimized+set}" = set; then
4749 enableval=$enable_optimized;
4750 else
4751 enableval=$optimize
4754 if test ${enableval} = "no" ; then
4755 ENABLE_OPTIMIZED=
4757 else
4758 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4762 # Check whether --enable-profiling was given.
4763 if test "${enable_profiling+set}" = set; then
4764 enableval=$enable_profiling;
4765 else
4766 enableval="no"
4769 if test ${enableval} = "no" ; then
4770 ENABLE_PROFILING=
4772 else
4773 ENABLE_PROFILING=ENABLE_PROFILING=1
4777 # Check whether --enable-assertions was given.
4778 if test "${enable_assertions+set}" = set; then
4779 enableval=$enable_assertions;
4780 else
4781 enableval="yes"
4784 if test ${enableval} = "yes" ; then
4785 DISABLE_ASSERTIONS=
4787 else
4788 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4792 # Check whether --enable-expensive-checks was given.
4793 if test "${enable_expensive_checks+set}" = set; then
4794 enableval=$enable_expensive_checks;
4795 else
4796 enableval="no"
4799 if test ${enableval} = "yes" ; then
4800 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4802 EXPENSIVE_CHECKS=yes
4804 else
4805 ENABLE_EXPENSIVE_CHECKS=
4807 EXPENSIVE_CHECKS=no
4811 # Check whether --enable-debug-runtime was given.
4812 if test "${enable_debug_runtime+set}" = set; then
4813 enableval=$enable_debug_runtime;
4814 else
4815 enableval=no
4818 if test ${enableval} = "no" ; then
4819 DEBUG_RUNTIME=
4821 else
4822 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4826 # Check whether --enable-debug-symbols was given.
4827 if test "${enable_debug_symbols+set}" = set; then
4828 enableval=$enable_debug_symbols;
4829 else
4830 enableval=no
4833 if test ${enableval} = "no" ; then
4834 DEBUG_SYMBOLS=
4836 else
4837 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4841 # Check whether --enable-jit was given.
4842 if test "${enable_jit+set}" = set; then
4843 enableval=$enable_jit;
4844 else
4845 enableval=default
4848 if test ${enableval} = "no"
4849 then
4850 JIT=
4852 else
4853 case "$llvm_cv_target_arch" in
4854 x86) TARGET_HAS_JIT=1
4856 Sparc) TARGET_HAS_JIT=0
4858 PowerPC) TARGET_HAS_JIT=1
4860 x86_64) TARGET_HAS_JIT=1
4862 Alpha) TARGET_HAS_JIT=0
4864 ARM) TARGET_HAS_JIT=1
4866 Mips) TARGET_HAS_JIT=0
4868 XCore) TARGET_HAS_JIT=0
4870 MSP430) TARGET_HAS_JIT=0
4872 SystemZ) TARGET_HAS_JIT=0
4874 Blackfin) TARGET_HAS_JIT=0
4876 MBlaze) TARGET_HAS_JIT=0
4878 PTX) TARGET_HAS_JIT=0
4880 *) TARGET_HAS_JIT=0
4882 esac
4885 # Check whether --enable-docs was given.
4886 if test "${enable_docs+set}" = set; then
4887 enableval=$enable_docs;
4888 else
4889 enableval=default
4892 case "$enableval" in
4893 yes) ENABLE_DOCS=1
4895 no) ENABLE_DOCS=0
4897 default) ENABLE_DOCS=1
4899 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4900 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4901 { (exit 1); exit 1; }; } ;;
4902 esac
4904 # Check whether --enable-doxygen was given.
4905 if test "${enable_doxygen+set}" = set; then
4906 enableval=$enable_doxygen;
4907 else
4908 enableval=default
4911 case "$enableval" in
4912 yes) ENABLE_DOXYGEN=1
4914 no) ENABLE_DOXYGEN=0
4916 default) ENABLE_DOXYGEN=0
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4921 esac
4923 # Check whether --enable-threads was given.
4924 if test "${enable_threads+set}" = set; then
4925 enableval=$enable_threads;
4926 else
4927 enableval=default
4930 case "$enableval" in
4931 yes) ENABLE_THREADS=1
4933 no) ENABLE_THREADS=0
4935 default) ENABLE_THREADS=1
4937 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4938 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4939 { (exit 1); exit 1; }; } ;;
4940 esac
4942 cat >>confdefs.h <<_ACEOF
4943 #define ENABLE_THREADS $ENABLE_THREADS
4944 _ACEOF
4947 # Check whether --enable-pthreads was given.
4948 if test "${enable_pthreads+set}" = set; then
4949 enableval=$enable_pthreads;
4950 else
4951 enableval=default
4954 case "$enableval" in
4955 yes) ENABLE_PTHREADS=1
4957 no) ENABLE_PTHREADS=0
4959 default) ENABLE_PTHREADS=1
4961 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4962 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4964 esac
4966 # Check whether --enable-pic was given.
4967 if test "${enable_pic+set}" = set; then
4968 enableval=$enable_pic;
4969 else
4970 enableval=default
4973 case "$enableval" in
4974 yes) ENABLE_PIC=1
4976 no) ENABLE_PIC=0
4978 default) ENABLE_PIC=1
4980 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4981 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4982 { (exit 1); exit 1; }; } ;;
4983 esac
4985 cat >>confdefs.h <<_ACEOF
4986 #define ENABLE_PIC $ENABLE_PIC
4987 _ACEOF
4990 # Check whether --enable-shared was given.
4991 if test "${enable_shared+set}" = set; then
4992 enableval=$enable_shared;
4993 else
4994 enableval=default
4997 case "$enableval" in
4998 yes) ENABLE_SHARED=1
5000 no) ENABLE_SHARED=0
5002 default) ENABLE_SHARED=0
5004 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5005 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5006 { (exit 1); exit 1; }; } ;;
5007 esac
5009 # Check whether --enable-embed-stdcxx was given.
5010 if test "${enable_embed_stdcxx+set}" = set; then
5011 enableval=$enable_embed_stdcxx;
5012 else
5013 enableval=default
5016 case "$enableval" in
5017 yes) ENABLE_EMBED_STDCXX=1
5019 no) ENABLE_EMBED_STDCXX=0
5021 default) ENABLE_EMBED_STDCXX=1
5023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5024 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5025 { (exit 1); exit 1; }; } ;;
5026 esac
5028 # Check whether --enable-timestamps was given.
5029 if test "${enable_timestamps+set}" = set; then
5030 enableval=$enable_timestamps;
5031 else
5032 enableval=default
5035 case "$enableval" in
5036 yes) ENABLE_TIMESTAMPS=1
5038 no) ENABLE_TIMESTAMPS=0
5040 default) ENABLE_TIMESTAMPS=1
5042 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5043 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5044 { (exit 1); exit 1; }; } ;;
5045 esac
5047 cat >>confdefs.h <<_ACEOF
5048 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5049 _ACEOF
5052 TARGETS_TO_BUILD=""
5053 # Check whether --enable-targets was given.
5054 if test "${enable_targets+set}" = set; then
5055 enableval=$enable_targets;
5056 else
5057 enableval=all
5060 if test "$enableval" = host-only ; then
5061 enableval=host
5063 case "$enableval" in
5064 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5065 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5066 case "$a_target" in
5067 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5068 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5069 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5070 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5071 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5072 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5073 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5074 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5075 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5076 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5077 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5078 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5079 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5080 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5081 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5082 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5083 host) case "$llvm_cv_target_arch" in
5084 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5085 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5086 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5087 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5088 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5089 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5090 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5091 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5092 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5093 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5094 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5095 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5096 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5097 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5098 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5099 echo "$as_me: error: Can not set target to build" >&2;}
5100 { (exit 1); exit 1; }; } ;;
5101 esac ;;
5102 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5103 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5105 esac
5106 done
5108 esac
5109 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5112 # Determine whether we are building LLVM support for the native architecture.
5113 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5114 for a_target in $TARGETS_TO_BUILD; do
5115 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5117 cat >>confdefs.h <<_ACEOF
5118 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5119 _ACEOF
5121 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5122 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5123 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5124 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5125 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5128 cat >>confdefs.h <<_ACEOF
5129 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5130 _ACEOF
5133 cat >>confdefs.h <<_ACEOF
5134 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5135 _ACEOF
5138 cat >>confdefs.h <<_ACEOF
5139 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5140 _ACEOF
5142 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5144 cat >>confdefs.h <<_ACEOF
5145 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5146 _ACEOF
5150 done
5152 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5153 # target feature def files.
5154 LLVM_ENUM_TARGETS=""
5155 LLVM_ENUM_ASM_PRINTERS=""
5156 LLVM_ENUM_ASM_PARSERS=""
5157 LLVM_ENUM_DISASSEMBLERS=""
5158 for target_to_build in $TARGETS_TO_BUILD; do
5159 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5160 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5161 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5163 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5164 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5166 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5167 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5169 done
5175 # Check whether --enable-cbe-printf-a was given.
5176 if test "${enable_cbe_printf_a+set}" = set; then
5177 enableval=$enable_cbe_printf_a;
5178 else
5179 enableval=default
5182 case "$enableval" in
5183 yes) ENABLE_CBE_PRINTF_A=1
5185 no) ENABLE_CBE_PRINTF_A=0
5187 default) ENABLE_CBE_PRINTF_A=1
5189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5191 { (exit 1); exit 1; }; } ;;
5192 esac
5194 cat >>confdefs.h <<_ACEOF
5195 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5196 _ACEOF
5200 # Check whether --with-llvmgccdir was given.
5201 if test "${with_llvmgccdir+set}" = set; then
5202 withval=$with_llvmgccdir;
5203 else
5204 withval=default
5207 case "$withval" in
5208 default) WITH_LLVMGCCDIR=default ;;
5209 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5210 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5211 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5212 { (exit 1); exit 1; }; } ;;
5213 esac
5216 # Check whether --with-llvmgcc was given.
5217 if test "${with_llvmgcc+set}" = set; then
5218 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5219 WITH_LLVMGCCDIR=""
5224 # Check whether --with-llvmgxx was given.
5225 if test "${with_llvmgxx+set}" = set; then
5226 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5227 WITH_LLVMGCCDIR=""
5231 if test -n "$LLVMGCC"; then
5232 LLVMGCCCOMMAND="$LLVMGCC"
5235 if test -n "$LLVMGXX"; then
5236 LLVMGXXCOMMAND="$LLVMGXX"
5239 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5240 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5241 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5242 { (exit 1); exit 1; }; };
5245 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5246 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5247 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5248 { (exit 1); exit 1; }; };
5252 # Check whether --with-clang was given.
5253 if test "${with_clang+set}" = set; then
5254 withval=$with_clang;
5255 else
5256 with_clang=default
5261 # Check whether --with-built-clang was given.
5262 if test "${with_built_clang+set}" = set; then
5263 withval=$with_built_clang;
5264 else
5265 with_built_clang=check
5269 { echo "$as_me:$LINENO: checking clang compiler" >&5
5270 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5271 WITH_CLANGPATH=""
5272 WITH_BUILT_CLANG=0
5273 if test "$with_clang" != "default"; then
5274 WITH_CLANGPATH="$with_clang"
5275 if ! test -x "$WITH_CLANGPATH"; then
5276 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5277 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5278 { (exit 1); exit 1; }; }
5280 elif test "$with_built_clang" = "yes"; then
5281 WITH_BUILT_CLANG=1
5282 elif test "$with_built_clang" = "no"; then
5283 WITH_BUILT_CLANG=0
5284 else
5285 if test "$with_built_clang" != "check"; then
5286 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5287 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5288 { (exit 1); exit 1; }; }
5291 if test -f ${srcdir}/tools/clang/README.txt; then
5292 WITH_BUILT_CLANG=1
5296 if ! test -z "$WITH_CLANGPATH"; then
5297 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5298 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5299 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5300 elif test "$WITH_BUILT_CLANG" = "1"; then
5301 { echo "$as_me:$LINENO: result: built" >&5
5302 echo "${ECHO_T}built" >&6; }
5303 else
5304 { echo "$as_me:$LINENO: result: none" >&5
5305 echo "${ECHO_T}none" >&6; }
5307 CLANGPATH=$WITH_CLANGPATH
5309 CLANGXXPATH=$WITH_CLANGXXPATH
5311 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5315 # Check whether --with-optimize-option was given.
5316 if test "${with_optimize_option+set}" = set; then
5317 withval=$with_optimize_option;
5318 else
5319 withval=default
5322 { echo "$as_me:$LINENO: checking optimization flags" >&5
5323 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5324 case "$withval" in
5325 default)
5326 case "$llvm_cv_os_type" in
5327 FreeBSD) optimize_option=-O2 ;;
5328 MingW) optimize_option=-O2 ;;
5329 *) optimize_option=-O3 ;;
5330 esac ;;
5331 *) optimize_option="$withval" ;;
5332 esac
5333 OPTIMIZE_OPTION=$optimize_option
5335 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5336 echo "${ECHO_T}$optimize_option" >&6; }
5339 # Check whether --with-extra-options was given.
5340 if test "${with_extra_options+set}" = set; then
5341 withval=$with_extra_options;
5342 else
5343 withval=default
5346 case "$withval" in
5347 default) EXTRA_OPTIONS= ;;
5348 *) EXTRA_OPTIONS=$withval ;;
5349 esac
5350 EXTRA_OPTIONS=$EXTRA_OPTIONS
5354 # Check whether --with-extra-ld-options was given.
5355 if test "${with_extra_ld_options+set}" = set; then
5356 withval=$with_extra_ld_options;
5357 else
5358 withval=default
5361 case "$withval" in
5362 default) EXTRA_LD_OPTIONS= ;;
5363 *) EXTRA_LD_OPTIONS=$withval ;;
5364 esac
5365 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5368 # Check whether --enable-bindings was given.
5369 if test "${enable_bindings+set}" = set; then
5370 enableval=$enable_bindings;
5371 else
5372 enableval=default
5375 BINDINGS_TO_BUILD=""
5376 case "$enableval" in
5377 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5378 all ) BINDINGS_TO_BUILD="ocaml" ;;
5379 none | no) BINDINGS_TO_BUILD="" ;;
5380 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5381 case "$a_binding" in
5382 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5383 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5384 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5385 { (exit 1); exit 1; }; } ;;
5386 esac
5387 done
5389 esac
5392 # Check whether --with-ocaml-libdir was given.
5393 if test "${with_ocaml_libdir+set}" = set; then
5394 withval=$with_ocaml_libdir;
5395 else
5396 withval=auto
5399 case "$withval" in
5400 auto) with_ocaml_libdir="$withval" ;;
5401 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5402 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5403 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5404 { (exit 1); exit 1; }; } ;;
5405 esac
5408 # Check whether --with-clang-resource-dir was given.
5409 if test "${with_clang_resource_dir+set}" = set; then
5410 withval=$with_clang_resource_dir;
5411 else
5412 withval=""
5416 cat >>confdefs.h <<_ACEOF
5417 #define CLANG_RESOURCE_DIR "$withval"
5418 _ACEOF
5422 # Check whether --with-c-include-dirs was given.
5423 if test "${with_c_include_dirs+set}" = set; then
5424 withval=$with_c_include_dirs;
5425 else
5426 withval=""
5430 cat >>confdefs.h <<_ACEOF
5431 #define C_INCLUDE_DIRS "$withval"
5432 _ACEOF
5436 # Check whether --with-cxx-include-root was given.
5437 if test "${with_cxx_include_root+set}" = set; then
5438 withval=$with_cxx_include_root;
5439 else
5440 withval=""
5444 cat >>confdefs.h <<_ACEOF
5445 #define CXX_INCLUDE_ROOT "$withval"
5446 _ACEOF
5450 # Check whether --with-cxx-include-arch was given.
5451 if test "${with_cxx_include_arch+set}" = set; then
5452 withval=$with_cxx_include_arch;
5453 else
5454 withval=""
5458 cat >>confdefs.h <<_ACEOF
5459 #define CXX_INCLUDE_ARCH "$withval"
5460 _ACEOF
5464 # Check whether --with-cxx-include-32bit-dir was given.
5465 if test "${with_cxx_include_32bit_dir+set}" = set; then
5466 withval=$with_cxx_include_32bit_dir;
5467 else
5468 withval=""
5472 cat >>confdefs.h <<_ACEOF
5473 #define CXX_INCLUDE_32BIT_DIR "$withval"
5474 _ACEOF
5478 # Check whether --with-cxx-include-64bit-dir was given.
5479 if test "${with_cxx_include_64bit_dir+set}" = set; then
5480 withval=$with_cxx_include_64bit_dir;
5481 else
5482 withval=""
5486 cat >>confdefs.h <<_ACEOF
5487 #define CXX_INCLUDE_64BIT_DIR "$withval"
5488 _ACEOF
5492 # Check whether --with-binutils-include was given.
5493 if test "${with_binutils_include+set}" = set; then
5494 withval=$with_binutils_include;
5495 else
5496 withval=default
5499 case "$withval" in
5500 default) WITH_BINUTILS_INCDIR=default ;;
5501 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5502 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5503 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5504 { (exit 1); exit 1; }; } ;;
5505 esac
5506 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5507 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5509 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5510 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5511 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5512 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5513 { (exit 1); exit 1; }; };
5517 # Check whether --enable-libffi was given.
5518 if test "${enable_libffi+set}" = set; then
5519 enableval=$enable_libffi; case "$enableval" in
5520 yes) llvm_cv_enable_libffi="yes" ;;
5521 no) llvm_cv_enable_libffi="no" ;;
5522 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5523 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5524 { (exit 1); exit 1; }; } ;;
5525 esac
5526 else
5527 llvm_cv_enable_libffi=no
5532 ac_ext=c
5533 ac_cpp='$CPP $CPPFLAGS'
5534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5538 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5539 # On Suns, sometimes $CPP names a directory.
5540 if test -n "$CPP" && test -d "$CPP"; then
5541 CPP=
5543 if test -z "$CPP"; then
5544 if test "${ac_cv_prog_CPP+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 else
5547 # Double quotes because CPP needs to be expanded
5548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5550 ac_preproc_ok=false
5551 for ac_c_preproc_warn_flag in '' yes
5553 # Use a header file that comes with gcc, so configuring glibc
5554 # with a fresh cross-compiler works.
5555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5556 # <limits.h> exists even on freestanding compilers.
5557 # On the NeXT, cc -E runs the code through the compiler's parser,
5558 # not just through cpp. "Syntax error" is here to catch this case.
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h. */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 #ifdef __STDC__
5566 # include <limits.h>
5567 #else
5568 # include <assert.h>
5569 #endif
5570 Syntax error
5571 _ACEOF
5572 if { (ac_try="$ac_cpp conftest.$ac_ext"
5573 case "(($ac_try" in
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5576 esac
5577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5579 ac_status=$?
5580 grep -v '^ *+' conftest.er1 >conftest.err
5581 rm -f conftest.er1
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } >/dev/null; then
5585 if test -s conftest.err; then
5586 ac_cpp_err=$ac_c_preproc_warn_flag
5587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5588 else
5589 ac_cpp_err=
5591 else
5592 ac_cpp_err=yes
5594 if test -z "$ac_cpp_err"; then
5596 else
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5600 # Broken: fails on valid input.
5601 continue
5604 rm -f conftest.err conftest.$ac_ext
5606 # OK, works on sane cases. Now check whether nonexistent headers
5607 # can be detected and how.
5608 cat >conftest.$ac_ext <<_ACEOF
5609 /* confdefs.h. */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5614 #include <ac_nonexistent.h>
5615 _ACEOF
5616 if { (ac_try="$ac_cpp conftest.$ac_ext"
5617 case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5623 ac_status=$?
5624 grep -v '^ *+' conftest.er1 >conftest.err
5625 rm -f conftest.er1
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } >/dev/null; then
5629 if test -s conftest.err; then
5630 ac_cpp_err=$ac_c_preproc_warn_flag
5631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5632 else
5633 ac_cpp_err=
5635 else
5636 ac_cpp_err=yes
5638 if test -z "$ac_cpp_err"; then
5639 # Broken: success on invalid input.
5640 continue
5641 else
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645 # Passes both tests.
5646 ac_preproc_ok=:
5647 break
5650 rm -f conftest.err conftest.$ac_ext
5652 done
5653 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5654 rm -f conftest.err conftest.$ac_ext
5655 if $ac_preproc_ok; then
5656 break
5659 done
5660 ac_cv_prog_CPP=$CPP
5663 CPP=$ac_cv_prog_CPP
5664 else
5665 ac_cv_prog_CPP=$CPP
5667 { echo "$as_me:$LINENO: result: $CPP" >&5
5668 echo "${ECHO_T}$CPP" >&6; }
5669 ac_preproc_ok=false
5670 for ac_c_preproc_warn_flag in '' yes
5672 # Use a header file that comes with gcc, so configuring glibc
5673 # with a fresh cross-compiler works.
5674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5675 # <limits.h> exists even on freestanding compilers.
5676 # On the NeXT, cc -E runs the code through the compiler's parser,
5677 # not just through cpp. "Syntax error" is here to catch this case.
5678 cat >conftest.$ac_ext <<_ACEOF
5679 /* confdefs.h. */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 #ifdef __STDC__
5685 # include <limits.h>
5686 #else
5687 # include <assert.h>
5688 #endif
5689 Syntax error
5690 _ACEOF
5691 if { (ac_try="$ac_cpp conftest.$ac_ext"
5692 case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } >/dev/null; then
5704 if test -s conftest.err; then
5705 ac_cpp_err=$ac_c_preproc_warn_flag
5706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5707 else
5708 ac_cpp_err=
5710 else
5711 ac_cpp_err=yes
5713 if test -z "$ac_cpp_err"; then
5715 else
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 # Broken: fails on valid input.
5720 continue
5723 rm -f conftest.err conftest.$ac_ext
5725 # OK, works on sane cases. Now check whether nonexistent headers
5726 # can be detected and how.
5727 cat >conftest.$ac_ext <<_ACEOF
5728 /* confdefs.h. */
5729 _ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <ac_nonexistent.h>
5734 _ACEOF
5735 if { (ac_try="$ac_cpp conftest.$ac_ext"
5736 case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739 esac
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } >/dev/null; then
5748 if test -s conftest.err; then
5749 ac_cpp_err=$ac_c_preproc_warn_flag
5750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5751 else
5752 ac_cpp_err=
5754 else
5755 ac_cpp_err=yes
5757 if test -z "$ac_cpp_err"; then
5758 # Broken: success on invalid input.
5759 continue
5760 else
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 # Passes both tests.
5765 ac_preproc_ok=:
5766 break
5769 rm -f conftest.err conftest.$ac_ext
5771 done
5772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5773 rm -f conftest.err conftest.$ac_ext
5774 if $ac_preproc_ok; then
5776 else
5777 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5778 See \`config.log' for more details." >&5
5779 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5780 See \`config.log' for more details." >&2;}
5781 { (exit 1); exit 1; }; }
5784 ac_ext=c
5785 ac_cpp='$CPP $CPPFLAGS'
5786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5790 ac_ext=c
5791 ac_cpp='$CPP $CPPFLAGS'
5792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5795 if test -n "$ac_tool_prefix"; then
5796 for ac_prog in gcc
5798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5799 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5802 if test "${ac_cv_prog_CC+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805 if test -n "$CC"; then
5806 ac_cv_prog_CC="$CC" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5815 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 break 2
5819 done
5820 done
5821 IFS=$as_save_IFS
5825 CC=$ac_cv_prog_CC
5826 if test -n "$CC"; then
5827 { echo "$as_me:$LINENO: result: $CC" >&5
5828 echo "${ECHO_T}$CC" >&6; }
5829 else
5830 { echo "$as_me:$LINENO: result: no" >&5
5831 echo "${ECHO_T}no" >&6; }
5835 test -n "$CC" && break
5836 done
5838 if test -z "$CC"; then
5839 ac_ct_CC=$CC
5840 for ac_prog in gcc
5842 # Extract the first word of "$ac_prog", so it can be a program name with args.
5843 set dummy $ac_prog; ac_word=$2
5844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849 if test -n "$ac_ct_CC"; then
5850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5851 else
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5855 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5859 ac_cv_prog_ac_ct_CC="$ac_prog"
5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 break 2
5863 done
5864 done
5865 IFS=$as_save_IFS
5869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5870 if test -n "$ac_ct_CC"; then
5871 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5872 echo "${ECHO_T}$ac_ct_CC" >&6; }
5873 else
5874 { echo "$as_me:$LINENO: result: no" >&5
5875 echo "${ECHO_T}no" >&6; }
5879 test -n "$ac_ct_CC" && break
5880 done
5882 if test "x$ac_ct_CC" = x; then
5883 CC=""
5884 else
5885 case $cross_compiling:$ac_tool_warned in
5886 yes:)
5887 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5888 whose name does not start with the host triplet. If you think this
5889 configuration is useful to you, please write to autoconf@gnu.org." >&5
5890 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5891 whose name does not start with the host triplet. If you think this
5892 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5893 ac_tool_warned=yes ;;
5894 esac
5895 CC=$ac_ct_CC
5900 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5901 See \`config.log' for more details." >&5
5902 echo "$as_me: error: no acceptable C compiler found in \$PATH
5903 See \`config.log' for more details." >&2;}
5904 { (exit 1); exit 1; }; }
5906 # Provide some information about the compiler.
5907 echo "$as_me:$LINENO: checking for C compiler version" >&5
5908 ac_compiler=`set X $ac_compile; echo $2`
5909 { (ac_try="$ac_compiler --version >&5"
5910 case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_compiler --version >&5") 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }
5919 { (ac_try="$ac_compiler -v >&5"
5920 case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923 esac
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_compiler -v >&5") 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }
5929 { (ac_try="$ac_compiler -V >&5"
5930 case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_compiler -V >&5") 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }
5940 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5941 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5942 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945 cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h. */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5953 main ()
5955 #ifndef __GNUC__
5956 choke me
5957 #endif
5960 return 0;
5962 _ACEOF
5963 rm -f conftest.$ac_objext
5964 if { (ac_try="$ac_compile"
5965 case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_compile") 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5978 { (case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981 esac
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_try") 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try='test -s conftest.$ac_objext'
5988 { (case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5991 esac
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_try") 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 ac_compiler_gnu=yes
5998 else
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6002 ac_compiler_gnu=no
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6009 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6010 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6011 GCC=`test $ac_compiler_gnu = yes && echo yes`
6012 ac_test_CFLAGS=${CFLAGS+set}
6013 ac_save_CFLAGS=$CFLAGS
6014 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6015 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6016 if test "${ac_cv_prog_cc_g+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019 ac_save_c_werror_flag=$ac_c_werror_flag
6020 ac_c_werror_flag=yes
6021 ac_cv_prog_cc_g=no
6022 CFLAGS="-g"
6023 cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h. */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6031 main ()
6035 return 0;
6037 _ACEOF
6038 rm -f conftest.$ac_objext
6039 if { (ac_try="$ac_compile"
6040 case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043 esac
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_compile") 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } &&
6052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6053 { (case "(($ac_try" in
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_try") 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
6062 { ac_try='test -s conftest.$ac_objext'
6063 { (case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066 esac
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_try") 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
6072 ac_cv_prog_cc_g=yes
6073 else
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6077 CFLAGS=""
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h. */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6086 main ()
6090 return 0;
6092 _ACEOF
6093 rm -f conftest.$ac_objext
6094 if { (ac_try="$ac_compile"
6095 case "(($ac_try" in
6096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6098 esac
6099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100 (eval "$ac_compile") 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6108 { (case "(($ac_try" in
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6111 esac
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_try") 2>&5
6114 ac_status=$?
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; } &&
6117 { ac_try='test -s conftest.$ac_objext'
6118 { (case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121 esac
6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_try") 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 ac_c_werror_flag=$ac_save_c_werror_flag
6133 CFLAGS="-g"
6134 cat >conftest.$ac_ext <<_ACEOF
6135 /* confdefs.h. */
6136 _ACEOF
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6142 main ()
6146 return 0;
6148 _ACEOF
6149 rm -f conftest.$ac_objext
6150 if { (ac_try="$ac_compile"
6151 case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_compile") 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6164 { (case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6167 esac
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_try") 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest.$ac_objext'
6174 { (case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177 esac
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_try") 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6183 ac_cv_prog_cc_g=yes
6184 else
6185 echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 ac_c_werror_flag=$ac_save_c_werror_flag
6200 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6201 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6202 if test "$ac_test_CFLAGS" = set; then
6203 CFLAGS=$ac_save_CFLAGS
6204 elif test $ac_cv_prog_cc_g = yes; then
6205 if test "$GCC" = yes; then
6206 CFLAGS="-g -O2"
6207 else
6208 CFLAGS="-g"
6210 else
6211 if test "$GCC" = yes; then
6212 CFLAGS="-O2"
6213 else
6214 CFLAGS=
6217 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6218 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6219 if test "${ac_cv_prog_cc_c89+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 ac_cv_prog_cc_c89=no
6223 ac_save_CC=$CC
6224 cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h. */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 #include <stdarg.h>
6231 #include <stdio.h>
6232 #include <sys/types.h>
6233 #include <sys/stat.h>
6234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6235 struct buf { int x; };
6236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6237 static char *e (p, i)
6238 char **p;
6239 int i;
6241 return p[i];
6243 static char *f (char * (*g) (char **, int), char **p, ...)
6245 char *s;
6246 va_list v;
6247 va_start (v,p);
6248 s = g (p, va_arg (v,int));
6249 va_end (v);
6250 return s;
6253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6254 function prototypes and stuff, but not '\xHH' hex character constants.
6255 These don't provoke an error unfortunately, instead are silently treated
6256 as 'x'. The following induces an error, until -std is added to get
6257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6258 array size at least. It's necessary to write '\x00'==0 to get something
6259 that's true only with -std. */
6260 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6262 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6263 inside strings and character constants. */
6264 #define FOO(x) 'x'
6265 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6267 int test (int i, double x);
6268 struct s1 {int (*f) (int a);};
6269 struct s2 {int (*f) (double a);};
6270 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6271 int argc;
6272 char **argv;
6274 main ()
6276 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6278 return 0;
6280 _ACEOF
6281 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6284 CC="$ac_save_CC $ac_arg"
6285 rm -f conftest.$ac_objext
6286 if { (ac_try="$ac_compile"
6287 case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290 esac
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_compile") 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
6299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6300 { (case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_try") 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest.$ac_objext'
6310 { (case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313 esac
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_try") 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 ac_cv_prog_cc_c89=$ac_arg
6320 else
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6327 rm -f core conftest.err conftest.$ac_objext
6328 test "x$ac_cv_prog_cc_c89" != "xno" && break
6329 done
6330 rm -f conftest.$ac_ext
6331 CC=$ac_save_CC
6334 # AC_CACHE_VAL
6335 case "x$ac_cv_prog_cc_c89" in
6337 { echo "$as_me:$LINENO: result: none needed" >&5
6338 echo "${ECHO_T}none needed" >&6; } ;;
6339 xno)
6340 { echo "$as_me:$LINENO: result: unsupported" >&5
6341 echo "${ECHO_T}unsupported" >&6; } ;;
6343 CC="$CC $ac_cv_prog_cc_c89"
6344 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6345 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6346 esac
6349 ac_ext=c
6350 ac_cpp='$CPP $CPPFLAGS'
6351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6355 ac_ext=cpp
6356 ac_cpp='$CXXCPP $CPPFLAGS'
6357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6360 if test -z "$CXX"; then
6361 if test -n "$CCC"; then
6362 CXX=$CCC
6363 else
6364 if test -n "$ac_tool_prefix"; then
6365 for ac_prog in g++
6367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6368 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371 if test "${ac_cv_prog_CXX+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374 if test -n "$CXX"; then
6375 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6376 else
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 for as_dir in $PATH
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 break 2
6388 done
6389 done
6390 IFS=$as_save_IFS
6394 CXX=$ac_cv_prog_CXX
6395 if test -n "$CXX"; then
6396 { echo "$as_me:$LINENO: result: $CXX" >&5
6397 echo "${ECHO_T}$CXX" >&6; }
6398 else
6399 { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6404 test -n "$CXX" && break
6405 done
6407 if test -z "$CXX"; then
6408 ac_ct_CXX=$CXX
6409 for ac_prog in g++
6411 # Extract the first word of "$ac_prog", so it can be a program name with args.
6412 set dummy $ac_prog; ac_word=$2
6413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 else
6418 if test -n "$ac_ct_CXX"; then
6419 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_ac_ct_CXX="$ac_prog"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6432 done
6433 done
6434 IFS=$as_save_IFS
6438 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6439 if test -n "$ac_ct_CXX"; then
6440 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6441 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6442 else
6443 { echo "$as_me:$LINENO: result: no" >&5
6444 echo "${ECHO_T}no" >&6; }
6448 test -n "$ac_ct_CXX" && break
6449 done
6451 if test "x$ac_ct_CXX" = x; then
6452 CXX="g++"
6453 else
6454 case $cross_compiling:$ac_tool_warned in
6455 yes:)
6456 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6457 whose name does not start with the host triplet. If you think this
6458 configuration is useful to you, please write to autoconf@gnu.org." >&5
6459 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6460 whose name does not start with the host triplet. If you think this
6461 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464 CXX=$ac_ct_CXX
6470 # Provide some information about the compiler.
6471 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6472 ac_compiler=`set X $ac_compile; echo $2`
6473 { (ac_try="$ac_compiler --version >&5"
6474 case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477 esac
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_compiler --version >&5") 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }
6483 { (ac_try="$ac_compiler -v >&5"
6484 case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6487 esac
6488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_compiler -v >&5") 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }
6493 { (ac_try="$ac_compiler -V >&5"
6494 case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497 esac
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_compiler -V >&5") 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }
6504 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6505 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6506 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h. */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6517 main ()
6519 #ifndef __GNUC__
6520 choke me
6521 #endif
6524 return 0;
6526 _ACEOF
6527 rm -f conftest.$ac_objext
6528 if { (ac_try="$ac_compile"
6529 case "(($ac_try" in
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6532 esac
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_compile") 2>conftest.er1
6535 ac_status=$?
6536 grep -v '^ *+' conftest.er1 >conftest.err
6537 rm -f conftest.er1
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } &&
6541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6542 { (case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6545 esac
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_try") 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; } &&
6551 { ac_try='test -s conftest.$ac_objext'
6552 { (case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6555 esac
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_try") 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 ac_compiler_gnu=yes
6562 else
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6566 ac_compiler_gnu=no
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6573 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6574 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6575 GXX=`test $ac_compiler_gnu = yes && echo yes`
6576 ac_test_CXXFLAGS=${CXXFLAGS+set}
6577 ac_save_CXXFLAGS=$CXXFLAGS
6578 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6579 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6580 if test "${ac_cv_prog_cxx_g+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6584 ac_cxx_werror_flag=yes
6585 ac_cv_prog_cxx_g=no
6586 CXXFLAGS="-g"
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6595 main ()
6599 return 0;
6601 _ACEOF
6602 rm -f conftest.$ac_objext
6603 if { (ac_try="$ac_compile"
6604 case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607 esac
6608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 (eval "$ac_compile") 2>conftest.er1
6610 ac_status=$?
6611 grep -v '^ *+' conftest.er1 >conftest.err
6612 rm -f conftest.er1
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6617 { (case "(($ac_try" in
6618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6620 esac
6621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_try") 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; } &&
6626 { ac_try='test -s conftest.$ac_objext'
6627 { (case "(($ac_try" in
6628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6630 esac
6631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6632 (eval "$ac_try") 2>&5
6633 ac_status=$?
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6636 ac_cv_prog_cxx_g=yes
6637 else
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6641 CXXFLAGS=""
6642 cat >conftest.$ac_ext <<_ACEOF
6643 /* confdefs.h. */
6644 _ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6650 main ()
6654 return 0;
6656 _ACEOF
6657 rm -f conftest.$ac_objext
6658 if { (ac_try="$ac_compile"
6659 case "(($ac_try" in
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6662 esac
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_compile") 2>conftest.er1
6665 ac_status=$?
6666 grep -v '^ *+' conftest.er1 >conftest.err
6667 rm -f conftest.er1
6668 cat conftest.err >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } &&
6671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6672 { (case "(($ac_try" in
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6675 esac
6676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6677 (eval "$ac_try") 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try='test -s conftest.$ac_objext'
6682 { (case "(($ac_try" in
6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6685 esac
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687 (eval "$ac_try") 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; }; then
6692 else
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6696 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6697 CXXFLAGS="-g"
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h. */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6706 main ()
6710 return 0;
6712 _ACEOF
6713 rm -f conftest.$ac_objext
6714 if { (ac_try="$ac_compile"
6715 case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718 esac
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
6727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6728 { (case "(($ac_try" in
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6731 esac
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_try") 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; } &&
6737 { ac_try='test -s conftest.$ac_objext'
6738 { (case "(($ac_try" in
6739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6741 esac
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743 (eval "$ac_try") 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_cv_prog_cxx_g=yes
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6764 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6765 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6766 if test "$ac_test_CXXFLAGS" = set; then
6767 CXXFLAGS=$ac_save_CXXFLAGS
6768 elif test $ac_cv_prog_cxx_g = yes; then
6769 if test "$GXX" = yes; then
6770 CXXFLAGS="-g -O2"
6771 else
6772 CXXFLAGS="-g"
6774 else
6775 if test "$GXX" = yes; then
6776 CXXFLAGS="-O2"
6777 else
6778 CXXFLAGS=
6781 ac_ext=c
6782 ac_cpp='$CPP $CPPFLAGS'
6783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6788 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6789 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6790 if test "${lt_cv_path_NM+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 if test -n "$NM"; then
6794 # Let the user override the test.
6795 lt_cv_path_NM="$NM"
6796 else
6797 lt_nm_to_check="${ac_tool_prefix}nm"
6798 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6799 lt_nm_to_check="$lt_nm_to_check nm"
6801 for lt_tmp_nm in $lt_nm_to_check; do
6802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6803 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6804 IFS="$lt_save_ifs"
6805 test -z "$ac_dir" && ac_dir=.
6806 tmp_nm="$ac_dir/$lt_tmp_nm"
6807 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6808 # Check to see if the nm accepts a BSD-compat flag.
6809 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6810 # nm: unknown option "B" ignored
6811 # Tru64's nm complains that /dev/null is an invalid object file
6812 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6813 */dev/null* | *'Invalid file or object type'*)
6814 lt_cv_path_NM="$tmp_nm -B"
6815 break
6818 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6819 */dev/null*)
6820 lt_cv_path_NM="$tmp_nm -p"
6821 break
6824 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6825 continue # so that we can try to find one that supports BSD flags
6827 esac
6829 esac
6831 done
6832 IFS="$lt_save_ifs"
6833 done
6834 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6837 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6838 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6839 NM="$lt_cv_path_NM"
6843 { echo "$as_me:$LINENO: checking for GNU make" >&5
6844 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6845 if test "${llvm_cv_gnu_make_command+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848 llvm_cv_gnu_make_command=''
6849 for a in "$MAKE" make gmake gnumake ; do
6850 if test -z "$a" ; then continue ; fi ;
6851 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6852 then
6853 llvm_cv_gnu_make_command=$a ;
6854 break;
6856 done
6858 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6859 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6860 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6861 ifGNUmake='' ;
6862 else
6863 ifGNUmake='#' ;
6864 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6865 echo "${ECHO_T}\"Not found\"" >&6; };
6869 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6870 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6871 LN_S=$as_ln_s
6872 if test "$LN_S" = "ln -s"; then
6873 { echo "$as_me:$LINENO: result: yes" >&5
6874 echo "${ECHO_T}yes" >&6; }
6875 else
6876 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6877 echo "${ECHO_T}no, using $LN_S" >&6; }
6880 # Extract the first word of "cmp", so it can be a program name with args.
6881 set dummy cmp; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_CMP+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887 case $CMP in
6888 [\\/]* | ?:[\\/]*)
6889 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6903 done
6904 done
6905 IFS=$as_save_IFS
6907 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6909 esac
6911 CMP=$ac_cv_path_CMP
6912 if test -n "$CMP"; then
6913 { echo "$as_me:$LINENO: result: $CMP" >&5
6914 echo "${ECHO_T}$CMP" >&6; }
6915 else
6916 { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6921 # Extract the first word of "cp", so it can be a program name with args.
6922 set dummy cp; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_CP+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928 case $CP in
6929 [\\/]* | ?:[\\/]*)
6930 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6944 done
6945 done
6946 IFS=$as_save_IFS
6948 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6950 esac
6952 CP=$ac_cv_path_CP
6953 if test -n "$CP"; then
6954 { echo "$as_me:$LINENO: result: $CP" >&5
6955 echo "${ECHO_T}$CP" >&6; }
6956 else
6957 { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6962 # Extract the first word of "date", so it can be a program name with args.
6963 set dummy date; ac_word=$2
6964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966 if test "${ac_cv_path_DATE+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969 case $DATE in
6970 [\\/]* | ?:[\\/]*)
6971 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6985 done
6986 done
6987 IFS=$as_save_IFS
6989 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6991 esac
6993 DATE=$ac_cv_path_DATE
6994 if test -n "$DATE"; then
6995 { echo "$as_me:$LINENO: result: $DATE" >&5
6996 echo "${ECHO_T}$DATE" >&6; }
6997 else
6998 { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7003 # Extract the first word of "find", so it can be a program name with args.
7004 set dummy find; ac_word=$2
7005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7007 if test "${ac_cv_path_FIND+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010 case $FIND in
7011 [\\/]* | ?:[\\/]*)
7012 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7022 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7026 done
7027 done
7028 IFS=$as_save_IFS
7030 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7032 esac
7034 FIND=$ac_cv_path_FIND
7035 if test -n "$FIND"; then
7036 { echo "$as_me:$LINENO: result: $FIND" >&5
7037 echo "${ECHO_T}$FIND" >&6; }
7038 else
7039 { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7044 # Extract the first word of "grep", so it can be a program name with args.
7045 set dummy grep; ac_word=$2
7046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048 if test "${ac_cv_path_GREP+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051 case $GREP in
7052 [\\/]* | ?:[\\/]*)
7053 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7067 done
7068 done
7069 IFS=$as_save_IFS
7071 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7073 esac
7075 GREP=$ac_cv_path_GREP
7076 if test -n "$GREP"; then
7077 { echo "$as_me:$LINENO: result: $GREP" >&5
7078 echo "${ECHO_T}$GREP" >&6; }
7079 else
7080 { echo "$as_me:$LINENO: result: no" >&5
7081 echo "${ECHO_T}no" >&6; }
7085 # Extract the first word of "mkdir", so it can be a program name with args.
7086 set dummy mkdir; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_path_MKDIR+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092 case $MKDIR in
7093 [\\/]* | ?:[\\/]*)
7094 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7108 done
7109 done
7110 IFS=$as_save_IFS
7112 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7114 esac
7116 MKDIR=$ac_cv_path_MKDIR
7117 if test -n "$MKDIR"; then
7118 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7119 echo "${ECHO_T}$MKDIR" >&6; }
7120 else
7121 { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7126 # Extract the first word of "mv", so it can be a program name with args.
7127 set dummy mv; ac_word=$2
7128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130 if test "${ac_cv_path_MV+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133 case $MV in
7134 [\\/]* | ?:[\\/]*)
7135 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7149 done
7150 done
7151 IFS=$as_save_IFS
7153 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7155 esac
7157 MV=$ac_cv_path_MV
7158 if test -n "$MV"; then
7159 { echo "$as_me:$LINENO: result: $MV" >&5
7160 echo "${ECHO_T}$MV" >&6; }
7161 else
7162 { echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6; }
7167 if test -n "$ac_tool_prefix"; then
7168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7169 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7172 if test "${ac_cv_prog_RANLIB+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175 if test -n "$RANLIB"; then
7176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7189 done
7190 done
7191 IFS=$as_save_IFS
7195 RANLIB=$ac_cv_prog_RANLIB
7196 if test -n "$RANLIB"; then
7197 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7198 echo "${ECHO_T}$RANLIB" >&6; }
7199 else
7200 { echo "$as_me:$LINENO: result: no" >&5
7201 echo "${ECHO_T}no" >&6; }
7206 if test -z "$ac_cv_prog_RANLIB"; then
7207 ac_ct_RANLIB=$RANLIB
7208 # Extract the first word of "ranlib", so it can be a program name with args.
7209 set dummy ranlib; ac_word=$2
7210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215 if test -n "$ac_ct_RANLIB"; then
7216 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_prog_ac_ct_RANLIB="ranlib"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7229 done
7230 done
7231 IFS=$as_save_IFS
7235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7236 if test -n "$ac_ct_RANLIB"; then
7237 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7238 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7239 else
7240 { echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6; }
7244 if test "x$ac_ct_RANLIB" = x; then
7245 RANLIB=":"
7246 else
7247 case $cross_compiling:$ac_tool_warned in
7248 yes:)
7249 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7250 whose name does not start with the host triplet. If you think this
7251 configuration is useful to you, please write to autoconf@gnu.org." >&5
7252 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7253 whose name does not start with the host triplet. If you think this
7254 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7255 ac_tool_warned=yes ;;
7256 esac
7257 RANLIB=$ac_ct_RANLIB
7259 else
7260 RANLIB="$ac_cv_prog_RANLIB"
7263 if test -n "$ac_tool_prefix"; then
7264 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7265 set dummy ${ac_tool_prefix}ar; ac_word=$2
7266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7268 if test "${ac_cv_prog_AR+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271 if test -n "$AR"; then
7272 ac_cv_prog_AR="$AR" # Let the user override the test.
7273 else
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281 ac_cv_prog_AR="${ac_tool_prefix}ar"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7285 done
7286 done
7287 IFS=$as_save_IFS
7291 AR=$ac_cv_prog_AR
7292 if test -n "$AR"; then
7293 { echo "$as_me:$LINENO: result: $AR" >&5
7294 echo "${ECHO_T}$AR" >&6; }
7295 else
7296 { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7302 if test -z "$ac_cv_prog_AR"; then
7303 ac_ct_AR=$AR
7304 # Extract the first word of "ar", so it can be a program name with args.
7305 set dummy ar; ac_word=$2
7306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311 if test -n "$ac_ct_AR"; then
7312 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7313 else
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_prog_ac_ct_AR="ar"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7325 done
7326 done
7327 IFS=$as_save_IFS
7331 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7332 if test -n "$ac_ct_AR"; then
7333 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7334 echo "${ECHO_T}$ac_ct_AR" >&6; }
7335 else
7336 { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7340 if test "x$ac_ct_AR" = x; then
7341 AR="false"
7342 else
7343 case $cross_compiling:$ac_tool_warned in
7344 yes:)
7345 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7346 whose name does not start with the host triplet. If you think this
7347 configuration is useful to you, please write to autoconf@gnu.org." >&5
7348 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7349 whose name does not start with the host triplet. If you think this
7350 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7351 ac_tool_warned=yes ;;
7352 esac
7353 AR=$ac_ct_AR
7355 else
7356 AR="$ac_cv_prog_AR"
7359 # Extract the first word of "rm", so it can be a program name with args.
7360 set dummy rm; ac_word=$2
7361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7363 if test "${ac_cv_path_RM+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 case $RM in
7367 [\\/]* | ?:[\\/]*)
7368 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 break 2
7382 done
7383 done
7384 IFS=$as_save_IFS
7386 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7388 esac
7390 RM=$ac_cv_path_RM
7391 if test -n "$RM"; then
7392 { echo "$as_me:$LINENO: result: $RM" >&5
7393 echo "${ECHO_T}$RM" >&6; }
7394 else
7395 { echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6; }
7400 # Extract the first word of "sed", so it can be a program name with args.
7401 set dummy sed; ac_word=$2
7402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404 if test "${ac_cv_path_SED+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407 case $SED in
7408 [\\/]* | ?:[\\/]*)
7409 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7423 done
7424 done
7425 IFS=$as_save_IFS
7427 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7429 esac
7431 SED=$ac_cv_path_SED
7432 if test -n "$SED"; then
7433 { echo "$as_me:$LINENO: result: $SED" >&5
7434 echo "${ECHO_T}$SED" >&6; }
7435 else
7436 { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7441 # Extract the first word of "tar", so it can be a program name with args.
7442 set dummy tar; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_path_TAR+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448 case $TAR in
7449 [\\/]* | ?:[\\/]*)
7450 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7464 done
7465 done
7466 IFS=$as_save_IFS
7468 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7470 esac
7472 TAR=$ac_cv_path_TAR
7473 if test -n "$TAR"; then
7474 { echo "$as_me:$LINENO: result: $TAR" >&5
7475 echo "${ECHO_T}$TAR" >&6; }
7476 else
7477 { echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6; }
7482 # Extract the first word of "pwd", so it can be a program name with args.
7483 set dummy pwd; ac_word=$2
7484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486 if test "${ac_cv_path_BINPWD+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489 case $BINPWD in
7490 [\\/]* | ?:[\\/]*)
7491 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7501 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7505 done
7506 done
7507 IFS=$as_save_IFS
7509 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7511 esac
7513 BINPWD=$ac_cv_path_BINPWD
7514 if test -n "$BINPWD"; then
7515 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7516 echo "${ECHO_T}$BINPWD" >&6; }
7517 else
7518 { echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6; }
7524 # Extract the first word of "Graphviz", so it can be a program name with args.
7525 set dummy Graphviz; ac_word=$2
7526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7528 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531 case $GRAPHVIZ in
7532 [\\/]* | ?:[\\/]*)
7533 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7543 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 break 2
7547 done
7548 done
7549 IFS=$as_save_IFS
7551 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7553 esac
7555 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7556 if test -n "$GRAPHVIZ"; then
7557 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7558 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7559 else
7560 { echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6; }
7565 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7567 cat >>confdefs.h <<\_ACEOF
7568 #define HAVE_GRAPHVIZ 1
7569 _ACEOF
7571 if test "$llvm_cv_os_type" = "MingW" ; then
7572 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7575 cat >>confdefs.h <<_ACEOF
7576 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7577 _ACEOF
7580 # Extract the first word of "dot", so it can be a program name with args.
7581 set dummy dot; ac_word=$2
7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584 if test "${ac_cv_path_DOT+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 case $DOT in
7588 [\\/]* | ?:[\\/]*)
7589 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7603 done
7604 done
7605 IFS=$as_save_IFS
7607 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7609 esac
7611 DOT=$ac_cv_path_DOT
7612 if test -n "$DOT"; then
7613 { echo "$as_me:$LINENO: result: $DOT" >&5
7614 echo "${ECHO_T}$DOT" >&6; }
7615 else
7616 { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7621 if test "$DOT" != "echo dot" ; then
7623 cat >>confdefs.h <<\_ACEOF
7624 #define HAVE_DOT 1
7625 _ACEOF
7627 if test "$llvm_cv_os_type" = "MingW" ; then
7628 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7631 cat >>confdefs.h <<_ACEOF
7632 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7633 _ACEOF
7636 # Extract the first word of "fdp", so it can be a program name with args.
7637 set dummy fdp; ac_word=$2
7638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7640 if test "${ac_cv_path_FDP+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643 case $FDP in
7644 [\\/]* | ?:[\\/]*)
7645 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7655 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 break 2
7659 done
7660 done
7661 IFS=$as_save_IFS
7663 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7665 esac
7667 FDP=$ac_cv_path_FDP
7668 if test -n "$FDP"; then
7669 { echo "$as_me:$LINENO: result: $FDP" >&5
7670 echo "${ECHO_T}$FDP" >&6; }
7671 else
7672 { echo "$as_me:$LINENO: result: no" >&5
7673 echo "${ECHO_T}no" >&6; }
7677 if test "$FDP" != "echo fdp" ; then
7679 cat >>confdefs.h <<\_ACEOF
7680 #define HAVE_FDP 1
7681 _ACEOF
7683 if test "$llvm_cv_os_type" = "MingW" ; then
7684 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7687 cat >>confdefs.h <<_ACEOF
7688 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7689 _ACEOF
7692 # Extract the first word of "neato", so it can be a program name with args.
7693 set dummy neato; ac_word=$2
7694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7696 if test "${ac_cv_path_NEATO+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699 case $NEATO in
7700 [\\/]* | ?:[\\/]*)
7701 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7707 IFS=$as_save_IFS
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7711 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 break 2
7715 done
7716 done
7717 IFS=$as_save_IFS
7719 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7721 esac
7723 NEATO=$ac_cv_path_NEATO
7724 if test -n "$NEATO"; then
7725 { echo "$as_me:$LINENO: result: $NEATO" >&5
7726 echo "${ECHO_T}$NEATO" >&6; }
7727 else
7728 { echo "$as_me:$LINENO: result: no" >&5
7729 echo "${ECHO_T}no" >&6; }
7733 if test "$NEATO" != "echo neato" ; then
7735 cat >>confdefs.h <<\_ACEOF
7736 #define HAVE_NEATO 1
7737 _ACEOF
7739 if test "$llvm_cv_os_type" = "MingW" ; then
7740 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7743 cat >>confdefs.h <<_ACEOF
7744 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7745 _ACEOF
7748 # Extract the first word of "twopi", so it can be a program name with args.
7749 set dummy twopi; ac_word=$2
7750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7752 if test "${ac_cv_path_TWOPI+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755 case $TWOPI in
7756 [\\/]* | ?:[\\/]*)
7757 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 break 2
7771 done
7772 done
7773 IFS=$as_save_IFS
7775 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7777 esac
7779 TWOPI=$ac_cv_path_TWOPI
7780 if test -n "$TWOPI"; then
7781 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7782 echo "${ECHO_T}$TWOPI" >&6; }
7783 else
7784 { echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6; }
7789 if test "$TWOPI" != "echo twopi" ; then
7791 cat >>confdefs.h <<\_ACEOF
7792 #define HAVE_TWOPI 1
7793 _ACEOF
7795 if test "$llvm_cv_os_type" = "MingW" ; then
7796 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7799 cat >>confdefs.h <<_ACEOF
7800 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7801 _ACEOF
7804 # Extract the first word of "circo", so it can be a program name with args.
7805 set dummy circo; ac_word=$2
7806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7808 if test "${ac_cv_path_CIRCO+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811 case $CIRCO in
7812 [\\/]* | ?:[\\/]*)
7813 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 break 2
7827 done
7828 done
7829 IFS=$as_save_IFS
7831 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7833 esac
7835 CIRCO=$ac_cv_path_CIRCO
7836 if test -n "$CIRCO"; then
7837 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7838 echo "${ECHO_T}$CIRCO" >&6; }
7839 else
7840 { echo "$as_me:$LINENO: result: no" >&5
7841 echo "${ECHO_T}no" >&6; }
7845 if test "$CIRCO" != "echo circo" ; then
7847 cat >>confdefs.h <<\_ACEOF
7848 #define HAVE_CIRCO 1
7849 _ACEOF
7851 if test "$llvm_cv_os_type" = "MingW" ; then
7852 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7855 cat >>confdefs.h <<_ACEOF
7856 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7857 _ACEOF
7860 for ac_prog in gv gsview32
7862 # Extract the first word of "$ac_prog", so it can be a program name with args.
7863 set dummy $ac_prog; ac_word=$2
7864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7866 if test "${ac_cv_path_GV+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869 case $GV in
7870 [\\/]* | ?:[\\/]*)
7871 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 for as_dir in $PATH
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7881 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7885 done
7886 done
7887 IFS=$as_save_IFS
7890 esac
7892 GV=$ac_cv_path_GV
7893 if test -n "$GV"; then
7894 { echo "$as_me:$LINENO: result: $GV" >&5
7895 echo "${ECHO_T}$GV" >&6; }
7896 else
7897 { echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6; }
7902 test -n "$GV" && break
7903 done
7904 test -n "$GV" || GV="echo gv"
7906 if test "$GV" != "echo gv" ; then
7908 cat >>confdefs.h <<\_ACEOF
7909 #define HAVE_GV 1
7910 _ACEOF
7912 if test "$llvm_cv_os_type" = "MingW" ; then
7913 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7916 cat >>confdefs.h <<_ACEOF
7917 #define LLVM_PATH_GV "$GV${EXEEXT}"
7918 _ACEOF
7921 # Extract the first word of "dotty", so it can be a program name with args.
7922 set dummy dotty; ac_word=$2
7923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7925 if test "${ac_cv_path_DOTTY+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928 case $DOTTY in
7929 [\\/]* | ?:[\\/]*)
7930 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 for as_dir in $PATH
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7940 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 break 2
7944 done
7945 done
7946 IFS=$as_save_IFS
7948 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7950 esac
7952 DOTTY=$ac_cv_path_DOTTY
7953 if test -n "$DOTTY"; then
7954 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7955 echo "${ECHO_T}$DOTTY" >&6; }
7956 else
7957 { echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6; }
7962 if test "$DOTTY" != "echo dotty" ; then
7964 cat >>confdefs.h <<\_ACEOF
7965 #define HAVE_DOTTY 1
7966 _ACEOF
7968 if test "$llvm_cv_os_type" = "MingW" ; then
7969 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7972 cat >>confdefs.h <<_ACEOF
7973 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7974 _ACEOF
7977 # Extract the first word of "xdot.py", so it can be a program name with args.
7978 set dummy xdot.py; ac_word=$2
7979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7981 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984 case $XDOT_PY in
7985 [\\/]* | ?:[\\/]*)
7986 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7996 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
8000 done
8001 done
8002 IFS=$as_save_IFS
8004 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8006 esac
8008 XDOT_PY=$ac_cv_path_XDOT_PY
8009 if test -n "$XDOT_PY"; then
8010 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8011 echo "${ECHO_T}$XDOT_PY" >&6; }
8012 else
8013 { echo "$as_me:$LINENO: result: no" >&5
8014 echo "${ECHO_T}no" >&6; }
8018 if test "$XDOT_PY" != "echo xdot.py" ; then
8020 cat >>confdefs.h <<\_ACEOF
8021 #define HAVE_XDOT_PY 1
8022 _ACEOF
8024 if test "$llvm_cv_os_type" = "MingW" ; then
8025 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8028 cat >>confdefs.h <<_ACEOF
8029 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8030 _ACEOF
8035 # Extract the first word of "perl", so it can be a program name with args.
8036 set dummy perl; ac_word=$2
8037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8039 if test "${ac_cv_path_PERL+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042 case $PERL in
8043 [\\/]* | ?:[\\/]*)
8044 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8058 done
8059 done
8060 IFS=$as_save_IFS
8062 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8064 esac
8066 PERL=$ac_cv_path_PERL
8067 if test -n "$PERL"; then
8068 { echo "$as_me:$LINENO: result: $PERL" >&5
8069 echo "${ECHO_T}$PERL" >&6; }
8070 else
8071 { echo "$as_me:$LINENO: result: no" >&5
8072 echo "${ECHO_T}no" >&6; }
8076 if test "$PERL" != "none"; then
8077 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8078 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8079 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8080 { echo "$as_me:$LINENO: result: yes" >&5
8081 echo "${ECHO_T}yes" >&6; }
8082 else
8083 PERL=none
8084 { echo "$as_me:$LINENO: result: not found" >&5
8085 echo "${ECHO_T}not found" >&6; }
8090 if test x"$PERL" = xnone; then
8091 HAVE_PERL=0
8093 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8094 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8095 { (exit 1); exit 1; }; }
8096 else
8097 HAVE_PERL=1
8101 # Find a good install program. We prefer a C program (faster),
8102 # so one script is as good as another. But avoid the broken or
8103 # incompatible versions:
8104 # SysV /etc/install, /usr/sbin/install
8105 # SunOS /usr/etc/install
8106 # IRIX /sbin/install
8107 # AIX /bin/install
8108 # AmigaOS /C/install, which installs bootblocks on floppy discs
8109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8112 # OS/2's system install, which has a completely different semantic
8113 # ./install, which can be erroneously created by make from ./install.sh.
8114 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8115 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8116 if test -z "$INSTALL"; then
8117 if test "${ac_cv_path_install+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 for as_dir in $PATH
8123 IFS=$as_save_IFS
8124 test -z "$as_dir" && as_dir=.
8125 # Account for people who put trailing slashes in PATH elements.
8126 case $as_dir/ in
8127 ./ | .// | /cC/* | \
8128 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8129 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8130 /usr/ucb/* ) ;;
8132 # OSF1 and SCO ODT 3.0 have their own names for install.
8133 # Don't use installbsd from OSF since it installs stuff as root
8134 # by default.
8135 for ac_prog in ginstall scoinst install; do
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8138 if test $ac_prog = install &&
8139 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8140 # AIX install. It has an incompatible calling convention.
8142 elif test $ac_prog = install &&
8143 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8144 # program-specific install script used by HP pwplus--don't use.
8146 else
8147 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8148 break 3
8151 done
8152 done
8154 esac
8155 done
8156 IFS=$as_save_IFS
8160 if test "${ac_cv_path_install+set}" = set; then
8161 INSTALL=$ac_cv_path_install
8162 else
8163 # As a last resort, use the slow shell script. Don't cache a
8164 # value for INSTALL within a source directory, because that will
8165 # break other packages using the cache if that directory is
8166 # removed, or if the value is a relative name.
8167 INSTALL=$ac_install_sh
8170 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8171 echo "${ECHO_T}$INSTALL" >&6; }
8173 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8174 # It thinks the first close brace ends the variable substitution.
8175 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8177 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8179 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8181 case "$INSTALL" in
8182 [\\/$]* | ?:[\\/]* ) ;;
8183 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8184 esac
8186 # Extract the first word of "bzip2", so it can be a program name with args.
8187 set dummy bzip2; ac_word=$2
8188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8190 if test "${ac_cv_path_BZIP2+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193 case $BZIP2 in
8194 [\\/]* | ?:[\\/]*)
8195 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8201 IFS=$as_save_IFS
8202 test -z "$as_dir" && as_dir=.
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8205 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 break 2
8209 done
8210 done
8211 IFS=$as_save_IFS
8214 esac
8216 BZIP2=$ac_cv_path_BZIP2
8217 if test -n "$BZIP2"; then
8218 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8219 echo "${ECHO_T}$BZIP2" >&6; }
8220 else
8221 { echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6; }
8226 # Extract the first word of "cat", so it can be a program name with args.
8227 set dummy cat; ac_word=$2
8228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8230 if test "${ac_cv_path_CAT+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233 case $CAT in
8234 [\\/]* | ?:[\\/]*)
8235 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8241 IFS=$as_save_IFS
8242 test -z "$as_dir" && as_dir=.
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8245 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 break 2
8249 done
8250 done
8251 IFS=$as_save_IFS
8254 esac
8256 CAT=$ac_cv_path_CAT
8257 if test -n "$CAT"; then
8258 { echo "$as_me:$LINENO: result: $CAT" >&5
8259 echo "${ECHO_T}$CAT" >&6; }
8260 else
8261 { echo "$as_me:$LINENO: result: no" >&5
8262 echo "${ECHO_T}no" >&6; }
8266 # Extract the first word of "doxygen", so it can be a program name with args.
8267 set dummy doxygen; ac_word=$2
8268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8270 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273 case $DOXYGEN in
8274 [\\/]* | ?:[\\/]*)
8275 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8285 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8289 done
8290 done
8291 IFS=$as_save_IFS
8294 esac
8296 DOXYGEN=$ac_cv_path_DOXYGEN
8297 if test -n "$DOXYGEN"; then
8298 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8299 echo "${ECHO_T}$DOXYGEN" >&6; }
8300 else
8301 { echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6; }
8306 # Extract the first word of "groff", so it can be a program name with args.
8307 set dummy groff; ac_word=$2
8308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8310 if test "${ac_cv_path_GROFF+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313 case $GROFF in
8314 [\\/]* | ?:[\\/]*)
8315 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8325 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 break 2
8329 done
8330 done
8331 IFS=$as_save_IFS
8334 esac
8336 GROFF=$ac_cv_path_GROFF
8337 if test -n "$GROFF"; then
8338 { echo "$as_me:$LINENO: result: $GROFF" >&5
8339 echo "${ECHO_T}$GROFF" >&6; }
8340 else
8341 { echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6; }
8346 # Extract the first word of "gzip", so it can be a program name with args.
8347 set dummy gzip; ac_word=$2
8348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8350 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353 case $GZIPBIN in
8354 [\\/]* | ?:[\\/]*)
8355 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8365 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 break 2
8369 done
8370 done
8371 IFS=$as_save_IFS
8374 esac
8376 GZIPBIN=$ac_cv_path_GZIPBIN
8377 if test -n "$GZIPBIN"; then
8378 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8379 echo "${ECHO_T}$GZIPBIN" >&6; }
8380 else
8381 { echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6; }
8386 # Extract the first word of "pod2html", so it can be a program name with args.
8387 set dummy pod2html; ac_word=$2
8388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8390 if test "${ac_cv_path_POD2HTML+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 else
8393 case $POD2HTML in
8394 [\\/]* | ?:[\\/]*)
8395 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 for as_dir in $PATH
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 break 2
8409 done
8410 done
8411 IFS=$as_save_IFS
8414 esac
8416 POD2HTML=$ac_cv_path_POD2HTML
8417 if test -n "$POD2HTML"; then
8418 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8419 echo "${ECHO_T}$POD2HTML" >&6; }
8420 else
8421 { echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6; }
8426 # Extract the first word of "pod2man", so it can be a program name with args.
8427 set dummy pod2man; ac_word=$2
8428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8430 if test "${ac_cv_path_POD2MAN+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433 case $POD2MAN in
8434 [\\/]* | ?:[\\/]*)
8435 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8445 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8449 done
8450 done
8451 IFS=$as_save_IFS
8454 esac
8456 POD2MAN=$ac_cv_path_POD2MAN
8457 if test -n "$POD2MAN"; then
8458 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8459 echo "${ECHO_T}$POD2MAN" >&6; }
8460 else
8461 { echo "$as_me:$LINENO: result: no" >&5
8462 echo "${ECHO_T}no" >&6; }
8466 # Extract the first word of "pdfroff", so it can be a program name with args.
8467 set dummy pdfroff; ac_word=$2
8468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8470 if test "${ac_cv_path_PDFROFF+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473 case $PDFROFF in
8474 [\\/]* | ?:[\\/]*)
8475 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8485 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8489 done
8490 done
8491 IFS=$as_save_IFS
8494 esac
8496 PDFROFF=$ac_cv_path_PDFROFF
8497 if test -n "$PDFROFF"; then
8498 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8499 echo "${ECHO_T}$PDFROFF" >&6; }
8500 else
8501 { echo "$as_me:$LINENO: result: no" >&5
8502 echo "${ECHO_T}no" >&6; }
8506 # Extract the first word of "runtest", so it can be a program name with args.
8507 set dummy runtest; ac_word=$2
8508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8510 if test "${ac_cv_path_RUNTEST+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 else
8513 case $RUNTEST in
8514 [\\/]* | ?:[\\/]*)
8515 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 for as_dir in $PATH
8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8525 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 break 2
8529 done
8530 done
8531 IFS=$as_save_IFS
8534 esac
8536 RUNTEST=$ac_cv_path_RUNTEST
8537 if test -n "$RUNTEST"; then
8538 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8539 echo "${ECHO_T}$RUNTEST" >&6; }
8540 else
8541 { echo "$as_me:$LINENO: result: no" >&5
8542 echo "${ECHO_T}no" >&6; }
8547 no_itcl=true
8548 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8549 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8551 # Check whether --with-tclinclude was given.
8552 if test "${with_tclinclude+set}" = set; then
8553 withval=$with_tclinclude; with_tclinclude=${withval}
8554 else
8555 with_tclinclude=''
8558 if test "${ac_cv_path_tclsh+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8562 if test x"${with_tclinclude}" != x ; then
8563 if test -f ${with_tclinclude}/tclsh ; then
8564 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8565 elif test -f ${with_tclinclude}/src/tclsh ; then
8566 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8567 else
8568 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8569 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8570 { (exit 1); exit 1; }; }
8576 if test x"${ac_cv_path_tclsh}" = x ; then
8577 { echo "$as_me:$LINENO: result: none" >&5
8578 echo "${ECHO_T}none" >&6; }
8579 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
8581 # Extract the first word of "$ac_prog", so it can be a program name with args.
8582 set dummy $ac_prog; ac_word=$2
8583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8585 if test "${ac_cv_path_TCLSH+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 else
8588 case $TCLSH in
8589 [\\/]* | ?:[\\/]*)
8590 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8596 IFS=$as_save_IFS
8597 test -z "$as_dir" && as_dir=.
8598 for ac_exec_ext in '' $ac_executable_extensions; do
8599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8600 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 break 2
8604 done
8605 done
8606 IFS=$as_save_IFS
8609 esac
8611 TCLSH=$ac_cv_path_TCLSH
8612 if test -n "$TCLSH"; then
8613 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8614 echo "${ECHO_T}$TCLSH" >&6; }
8615 else
8616 { echo "$as_me:$LINENO: result: no" >&5
8617 echo "${ECHO_T}no" >&6; }
8621 test -n "$TCLSH" && break
8622 done
8624 if test x"${TCLSH}" = x ; then
8625 ac_cv_path_tclsh='';
8626 else
8627 ac_cv_path_tclsh="${TCLSH}";
8629 else
8630 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8631 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8632 TCLSH="${ac_cv_path_tclsh}"
8636 # Extract the first word of "zip", so it can be a program name with args.
8637 set dummy zip; ac_word=$2
8638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8640 if test "${ac_cv_path_ZIP+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643 case $ZIP in
8644 [\\/]* | ?:[\\/]*)
8645 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 for as_dir in $PATH
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8655 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 break 2
8659 done
8660 done
8661 IFS=$as_save_IFS
8664 esac
8666 ZIP=$ac_cv_path_ZIP
8667 if test -n "$ZIP"; then
8668 { echo "$as_me:$LINENO: result: $ZIP" >&5
8669 echo "${ECHO_T}$ZIP" >&6; }
8670 else
8671 { echo "$as_me:$LINENO: result: no" >&5
8672 echo "${ECHO_T}no" >&6; }
8676 for ac_prog in ocamlc
8678 # Extract the first word of "$ac_prog", so it can be a program name with args.
8679 set dummy $ac_prog; ac_word=$2
8680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8682 if test "${ac_cv_path_OCAMLC+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685 case $OCAMLC in
8686 [\\/]* | ?:[\\/]*)
8687 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691 for as_dir in $PATH
8693 IFS=$as_save_IFS
8694 test -z "$as_dir" && as_dir=.
8695 for ac_exec_ext in '' $ac_executable_extensions; do
8696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8697 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8699 break 2
8701 done
8702 done
8703 IFS=$as_save_IFS
8706 esac
8708 OCAMLC=$ac_cv_path_OCAMLC
8709 if test -n "$OCAMLC"; then
8710 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8711 echo "${ECHO_T}$OCAMLC" >&6; }
8712 else
8713 { echo "$as_me:$LINENO: result: no" >&5
8714 echo "${ECHO_T}no" >&6; }
8718 test -n "$OCAMLC" && break
8719 done
8721 for ac_prog in ocamlopt
8723 # Extract the first word of "$ac_prog", so it can be a program name with args.
8724 set dummy $ac_prog; ac_word=$2
8725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8727 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730 case $OCAMLOPT in
8731 [\\/]* | ?:[\\/]*)
8732 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 for as_dir in $PATH
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8742 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8744 break 2
8746 done
8747 done
8748 IFS=$as_save_IFS
8751 esac
8753 OCAMLOPT=$ac_cv_path_OCAMLOPT
8754 if test -n "$OCAMLOPT"; then
8755 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8756 echo "${ECHO_T}$OCAMLOPT" >&6; }
8757 else
8758 { echo "$as_me:$LINENO: result: no" >&5
8759 echo "${ECHO_T}no" >&6; }
8763 test -n "$OCAMLOPT" && break
8764 done
8766 for ac_prog in ocamldep
8768 # Extract the first word of "$ac_prog", so it can be a program name with args.
8769 set dummy $ac_prog; ac_word=$2
8770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8772 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775 case $OCAMLDEP in
8776 [\\/]* | ?:[\\/]*)
8777 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8783 IFS=$as_save_IFS
8784 test -z "$as_dir" && as_dir=.
8785 for ac_exec_ext in '' $ac_executable_extensions; do
8786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8787 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8789 break 2
8791 done
8792 done
8793 IFS=$as_save_IFS
8796 esac
8798 OCAMLDEP=$ac_cv_path_OCAMLDEP
8799 if test -n "$OCAMLDEP"; then
8800 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8801 echo "${ECHO_T}$OCAMLDEP" >&6; }
8802 else
8803 { echo "$as_me:$LINENO: result: no" >&5
8804 echo "${ECHO_T}no" >&6; }
8808 test -n "$OCAMLDEP" && break
8809 done
8811 for ac_prog in ocamldoc
8813 # Extract the first word of "$ac_prog", so it can be a program name with args.
8814 set dummy $ac_prog; ac_word=$2
8815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8817 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 else
8820 case $OCAMLDOC in
8821 [\\/]* | ?:[\\/]*)
8822 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8826 for as_dir in $PATH
8828 IFS=$as_save_IFS
8829 test -z "$as_dir" && as_dir=.
8830 for ac_exec_ext in '' $ac_executable_extensions; do
8831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8832 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8834 break 2
8836 done
8837 done
8838 IFS=$as_save_IFS
8841 esac
8843 OCAMLDOC=$ac_cv_path_OCAMLDOC
8844 if test -n "$OCAMLDOC"; then
8845 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8846 echo "${ECHO_T}$OCAMLDOC" >&6; }
8847 else
8848 { echo "$as_me:$LINENO: result: no" >&5
8849 echo "${ECHO_T}no" >&6; }
8853 test -n "$OCAMLDOC" && break
8854 done
8856 for ac_prog in gas as
8858 # Extract the first word of "$ac_prog", so it can be a program name with args.
8859 set dummy $ac_prog; ac_word=$2
8860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8862 if test "${ac_cv_path_GAS+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865 case $GAS in
8866 [\\/]* | ?:[\\/]*)
8867 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871 for as_dir in $PATH
8873 IFS=$as_save_IFS
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8877 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8879 break 2
8881 done
8882 done
8883 IFS=$as_save_IFS
8886 esac
8888 GAS=$ac_cv_path_GAS
8889 if test -n "$GAS"; then
8890 { echo "$as_me:$LINENO: result: $GAS" >&5
8891 echo "${ECHO_T}$GAS" >&6; }
8892 else
8893 { echo "$as_me:$LINENO: result: no" >&5
8894 echo "${ECHO_T}no" >&6; }
8898 test -n "$GAS" && break
8899 done
8902 { echo "$as_me:$LINENO: checking for linker version" >&5
8903 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8904 if test "${llvm_cv_link_version+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 else
8908 version_string="$(ld -v 2>&1 | head -1)"
8910 # Check for ld64.
8911 if (echo "$version_string" | grep -q "ld64"); then
8912 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8913 else
8914 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8918 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8919 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8921 cat >>confdefs.h <<_ACEOF
8922 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8923 _ACEOF
8927 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8928 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8929 if test "${llvm_cv_link_use_r+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 else
8932 ac_ext=c
8933 ac_cpp='$CPP $CPPFLAGS'
8934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8938 oldcflags="$CFLAGS"
8939 CFLAGS="$CFLAGS -Wl,-R."
8940 cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h. */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8948 main ()
8952 return 0;
8954 _ACEOF
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (ac_try="$ac_link"
8957 case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_link") 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970 { (case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973 esac
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_try") 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8983 esac
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 llvm_cv_link_use_r=yes
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 llvm_cv_link_use_r=no
8997 rm -f core conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
8999 CFLAGS="$oldcflags"
9000 ac_ext=c
9001 ac_cpp='$CPP $CPPFLAGS'
9002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9009 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
9010 if test "$llvm_cv_link_use_r" = yes ; then
9012 cat >>confdefs.h <<\_ACEOF
9013 #define HAVE_LINK_R 1
9014 _ACEOF
9019 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9020 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9021 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024 ac_ext=c
9025 ac_cpp='$CPP $CPPFLAGS'
9026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9030 oldcflags="$CFLAGS"
9031 CFLAGS="$CFLAGS -Wl,-export-dynamic"
9032 cat >conftest.$ac_ext <<_ACEOF
9033 /* confdefs.h. */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9040 main ()
9044 return 0;
9046 _ACEOF
9047 rm -f conftest.$ac_objext conftest$ac_exeext
9048 if { (ac_try="$ac_link"
9049 case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9052 esac
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_link") 2>conftest.er1
9055 ac_status=$?
9056 grep -v '^ *+' conftest.er1 >conftest.err
9057 rm -f conftest.er1
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9062 { (case "(($ac_try" in
9063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9065 esac
9066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067 (eval "$ac_try") 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest$ac_exeext'
9072 { (case "(($ac_try" in
9073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074 *) ac_try_echo=$ac_try;;
9075 esac
9076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077 (eval "$ac_try") 2>&5
9078 ac_status=$?
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 llvm_cv_link_use_export_dynamic=yes
9082 else
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9086 llvm_cv_link_use_export_dynamic=no
9089 rm -f core conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext conftest.$ac_ext
9091 CFLAGS="$oldcflags"
9092 ac_ext=c
9093 ac_cpp='$CPP $CPPFLAGS'
9094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9100 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9101 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9102 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9104 cat >>confdefs.h <<\_ACEOF
9105 #define HAVE_LINK_EXPORT_DYNAMIC 1
9106 _ACEOF
9111 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9112 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9113 if test "${llvm_cv_link_use_version_script+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116 ac_ext=c
9117 ac_cpp='$CPP $CPPFLAGS'
9118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9122 oldcflags="$CFLAGS"
9124 # The following code is from the autoconf manual,
9125 # "11.13: Limitations of Usual Tools".
9126 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9127 # Use mktemp if possible; otherwise fall back on mkdir,
9128 # with $RANDOM to make collisions less likely.
9129 : ${TMPDIR=/tmp}
9131 tmp=`
9132 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9133 ` &&
9134 test -n "$tmp" && test -d "$tmp"
9135 } || {
9136 tmp=$TMPDIR/foo$$-$RANDOM
9137 (umask 077 && mkdir "$tmp")
9138 } || exit $?
9140 echo "{" > "$tmp/export.map"
9141 echo " global: main;" >> "$tmp/export.map"
9142 echo " local: *;" >> "$tmp/export.map"
9143 echo "};" >> "$tmp/export.map"
9145 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h. */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9154 main ()
9158 return 0;
9160 _ACEOF
9161 rm -f conftest.$ac_objext conftest$ac_exeext
9162 if { (ac_try="$ac_link"
9163 case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166 esac
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_link") 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
9175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9176 { (case "(($ac_try" in
9177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178 *) ac_try_echo=$ac_try;;
9179 esac
9180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181 (eval "$ac_try") 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try='test -s conftest$ac_exeext'
9186 { (case "(($ac_try" in
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9189 esac
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_try") 2>&5
9192 ac_status=$?
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; }; then
9195 llvm_cv_link_use_version_script=yes
9196 else
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9200 llvm_cv_link_use_version_script=no
9203 rm -f core conftest.err conftest.$ac_objext \
9204 conftest$ac_exeext conftest.$ac_ext
9205 rm "$tmp/export.map"
9206 rmdir "$tmp"
9207 CFLAGS="$oldcflags"
9208 ac_ext=c
9209 ac_cpp='$CPP $CPPFLAGS'
9210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9216 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9217 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9218 if test "$llvm_cv_link_use_version_script" = yes ; then
9219 HAVE_LINK_VERSION_SCRIPT=1
9226 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9227 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9228 if test "${ac_cv_c_const+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 else
9231 cat >conftest.$ac_ext <<_ACEOF
9232 /* confdefs.h. */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9239 main ()
9241 /* FIXME: Include the comments suggested by Paul. */
9242 #ifndef __cplusplus
9243 /* Ultrix mips cc rejects this. */
9244 typedef int charset[2];
9245 const charset x;
9246 /* SunOS 4.1.1 cc rejects this. */
9247 char const *const *ccp;
9248 char **p;
9249 /* NEC SVR4.0.2 mips cc rejects this. */
9250 struct point {int x, y;};
9251 static struct point const zero = {0,0};
9252 /* AIX XL C 1.02.0.0 rejects this.
9253 It does not let you subtract one const X* pointer from another in
9254 an arm of an if-expression whose if-part is not a constant
9255 expression */
9256 const char *g = "string";
9257 ccp = &g + (g ? g-g : 0);
9258 /* HPUX 7.0 cc rejects these. */
9259 ++ccp;
9260 p = (char**) ccp;
9261 ccp = (char const *const *) p;
9262 { /* SCO 3.2v4 cc rejects this. */
9263 char *t;
9264 char const *s = 0 ? (char *) 0 : (char const *) 0;
9266 *t++ = 0;
9267 if (s) return 0;
9269 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9270 int x[] = {25, 17};
9271 const int *foo = &x[0];
9272 ++foo;
9274 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9275 typedef const int *iptr;
9276 iptr p = 0;
9277 ++p;
9279 { /* AIX XL C 1.02.0.0 rejects this saying
9280 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9281 struct s { int j; const int *ap[3]; };
9282 struct s *b; b->j = 5;
9284 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9285 const int foo = 10;
9286 if (!foo) return 0;
9288 return !x[0] && !zero.x;
9289 #endif
9292 return 0;
9294 _ACEOF
9295 rm -f conftest.$ac_objext
9296 if { (ac_try="$ac_compile"
9297 case "(($ac_try" in
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9300 esac
9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_compile") 2>conftest.er1
9303 ac_status=$?
9304 grep -v '^ *+' conftest.er1 >conftest.err
9305 rm -f conftest.er1
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9310 { (case "(($ac_try" in
9311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9312 *) ac_try_echo=$ac_try;;
9313 esac
9314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315 (eval "$ac_try") 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; } &&
9319 { ac_try='test -s conftest.$ac_objext'
9320 { (case "(($ac_try" in
9321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9322 *) ac_try_echo=$ac_try;;
9323 esac
9324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9325 (eval "$ac_try") 2>&5
9326 ac_status=$?
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9329 ac_cv_c_const=yes
9330 else
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9334 ac_cv_c_const=no
9337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9339 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9340 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9341 if test $ac_cv_c_const = no; then
9343 cat >>confdefs.h <<\_ACEOF
9344 #define const
9345 _ACEOF
9354 ac_header_dirent=no
9355 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9356 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9357 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9358 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9361 else
9362 cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h. */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 #include <sys/types.h>
9369 #include <$ac_hdr>
9372 main ()
9374 if ((DIR *) 0)
9375 return 0;
9377 return 0;
9379 _ACEOF
9380 rm -f conftest.$ac_objext
9381 if { (ac_try="$ac_compile"
9382 case "(($ac_try" in
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9385 esac
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_compile") 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9395 { (case "(($ac_try" in
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9398 esac
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_try") 2>&5
9401 ac_status=$?
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; } &&
9404 { ac_try='test -s conftest.$ac_objext'
9405 { (case "(($ac_try" in
9406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9408 esac
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_try") 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 eval "$as_ac_Header=yes"
9415 else
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 eval "$as_ac_Header=no"
9422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424 ac_res=`eval echo '${'$as_ac_Header'}'`
9425 { echo "$as_me:$LINENO: result: $ac_res" >&5
9426 echo "${ECHO_T}$ac_res" >&6; }
9427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9428 cat >>confdefs.h <<_ACEOF
9429 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9430 _ACEOF
9432 ac_header_dirent=$ac_hdr; break
9435 done
9436 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9437 if test $ac_header_dirent = dirent.h; then
9438 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9439 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9440 if test "${ac_cv_search_opendir+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443 ac_func_search_save_LIBS=$LIBS
9444 cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h. */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9451 /* Override any GCC internal prototype to avoid an error.
9452 Use char because int might match the return type of a GCC
9453 builtin and then its argument prototype would still apply. */
9454 #ifdef __cplusplus
9455 extern "C"
9456 #endif
9457 char opendir ();
9459 main ()
9461 return opendir ();
9463 return 0;
9465 _ACEOF
9466 for ac_lib in '' dir; do
9467 if test -z "$ac_lib"; then
9468 ac_res="none required"
9469 else
9470 ac_res=-l$ac_lib
9471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9473 rm -f conftest.$ac_objext conftest$ac_exeext
9474 if { (ac_try="$ac_link"
9475 case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9478 esac
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_link") 2>conftest.er1
9481 ac_status=$?
9482 grep -v '^ *+' conftest.er1 >conftest.err
9483 rm -f conftest.er1
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9488 { (case "(($ac_try" in
9489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490 *) ac_try_echo=$ac_try;;
9491 esac
9492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493 (eval "$ac_try") 2>&5
9494 ac_status=$?
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; } &&
9497 { ac_try='test -s conftest$ac_exeext'
9498 { (case "(($ac_try" in
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9501 esac
9502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503 (eval "$ac_try") 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 ac_cv_search_opendir=$ac_res
9508 else
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9515 rm -f core conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext
9517 if test "${ac_cv_search_opendir+set}" = set; then
9518 break
9520 done
9521 if test "${ac_cv_search_opendir+set}" = set; then
9523 else
9524 ac_cv_search_opendir=no
9526 rm conftest.$ac_ext
9527 LIBS=$ac_func_search_save_LIBS
9529 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9530 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9531 ac_res=$ac_cv_search_opendir
9532 if test "$ac_res" != no; then
9533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9537 else
9538 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9539 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9540 if test "${ac_cv_search_opendir+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543 ac_func_search_save_LIBS=$LIBS
9544 cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h. */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9551 /* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
9554 #ifdef __cplusplus
9555 extern "C"
9556 #endif
9557 char opendir ();
9559 main ()
9561 return opendir ();
9563 return 0;
9565 _ACEOF
9566 for ac_lib in '' x; do
9567 if test -z "$ac_lib"; then
9568 ac_res="none required"
9569 else
9570 ac_res=-l$ac_lib
9571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (ac_try="$ac_link"
9575 case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9578 esac
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_link") 2>conftest.er1
9581 ac_status=$?
9582 grep -v '^ *+' conftest.er1 >conftest.err
9583 rm -f conftest.er1
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9588 { (case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591 esac
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_try") 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest$ac_exeext'
9598 { (case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601 esac
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_try") 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_cv_search_opendir=$ac_res
9608 else
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9615 rm -f core conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext
9617 if test "${ac_cv_search_opendir+set}" = set; then
9618 break
9620 done
9621 if test "${ac_cv_search_opendir+set}" = set; then
9623 else
9624 ac_cv_search_opendir=no
9626 rm conftest.$ac_ext
9627 LIBS=$ac_func_search_save_LIBS
9629 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9630 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9631 ac_res=$ac_cv_search_opendir
9632 if test "$ac_res" != no; then
9633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9640 for ac_header in dlfcn.h
9642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 ac_res=`eval echo '${'$as_ac_Header'}'`
9650 { echo "$as_me:$LINENO: result: $ac_res" >&5
9651 echo "${ECHO_T}$ac_res" >&6; }
9652 else
9653 # Is the header compilable?
9654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 $ac_includes_default
9663 #include <$ac_header>
9664 _ACEOF
9665 rm -f conftest.$ac_objext
9666 if { (ac_try="$ac_compile"
9667 case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_compile") 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9680 { (case "(($ac_try" in
9681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9683 esac
9684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9685 (eval "$ac_try") 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try='test -s conftest.$ac_objext'
9690 { (case "(($ac_try" in
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9693 esac
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_try") 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_header_compiler=yes
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_header_compiler=no
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9709 echo "${ECHO_T}$ac_header_compiler" >&6; }
9711 # Is the header present?
9712 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9714 cat >conftest.$ac_ext <<_ACEOF
9715 /* confdefs.h. */
9716 _ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9720 #include <$ac_header>
9721 _ACEOF
9722 if { (ac_try="$ac_cpp conftest.$ac_ext"
9723 case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726 esac
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } >/dev/null; then
9735 if test -s conftest.err; then
9736 ac_cpp_err=$ac_c_preproc_warn_flag
9737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9738 else
9739 ac_cpp_err=
9741 else
9742 ac_cpp_err=yes
9744 if test -z "$ac_cpp_err"; then
9745 ac_header_preproc=yes
9746 else
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 ac_header_preproc=no
9753 rm -f conftest.err conftest.$ac_ext
9754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9755 echo "${ECHO_T}$ac_header_preproc" >&6; }
9757 # So? What about this header?
9758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9759 yes:no: )
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9764 ac_header_preproc=yes
9766 no:yes:* )
9767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9779 ( cat <<\_ASBOX
9780 ## ----------------------------------- ##
9781 ## Report this to llvmbugs@cs.uiuc.edu ##
9782 ## ----------------------------------- ##
9783 _ASBOX
9784 ) | sed "s/^/$as_me: WARNING: /" >&2
9786 esac
9787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792 eval "$as_ac_Header=\$ac_header_preproc"
9794 ac_res=`eval echo '${'$as_ac_Header'}'`
9795 { echo "$as_me:$LINENO: result: $ac_res" >&5
9796 echo "${ECHO_T}$ac_res" >&6; }
9799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9800 cat >>confdefs.h <<_ACEOF
9801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9802 _ACEOF
9806 done
9808 # Check whether --enable-ltdl-install was given.
9809 if test "${enable_ltdl_install+set}" = set; then
9810 enableval=$enable_ltdl_install;
9816 if test x"${enable_ltdl_install-no}" != xno; then
9817 INSTALL_LTDL_TRUE=
9818 INSTALL_LTDL_FALSE='#'
9819 else
9820 INSTALL_LTDL_TRUE='#'
9821 INSTALL_LTDL_FALSE=
9826 if test x"${enable_ltdl_convenience-no}" != xno; then
9827 CONVENIENCE_LTDL_TRUE=
9828 CONVENIENCE_LTDL_FALSE='#'
9829 else
9830 CONVENIENCE_LTDL_TRUE='#'
9831 CONVENIENCE_LTDL_FALSE=
9835 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9836 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9837 library_names_spec=
9838 libname_spec='lib$name'
9839 soname_spec=
9840 shrext_cmds=".so"
9841 postinstall_cmds=
9842 postuninstall_cmds=
9843 finish_cmds=
9844 finish_eval=
9845 shlibpath_var=
9846 shlibpath_overrides_runpath=unknown
9847 version_type=none
9848 dynamic_linker="$host_os ld.so"
9849 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9850 if test "$GCC" = yes; then
9851 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9852 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9853 # if the path contains ";" then we assume it to be the separator
9854 # otherwise default to the standard path separator (i.e. ":") - it is
9855 # assumed that no part of a normal pathname contains ";" but that should
9856 # okay in the real world where ";" in dirpaths is itself problematic.
9857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9858 else
9859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9861 else
9862 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9864 need_lib_prefix=unknown
9865 hardcode_into_libs=no
9867 # when you set need_version to no, make sure it does not cause -set_version
9868 # flags to be left without arguments
9869 need_version=unknown
9871 case $host_os in
9872 aix3*)
9873 version_type=linux
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9875 shlibpath_var=LIBPATH
9877 # AIX 3 has no versioning support, so we append a major version to the name.
9878 soname_spec='${libname}${release}${shared_ext}$major'
9881 aix4* | aix5*)
9882 version_type=linux
9883 need_lib_prefix=no
9884 need_version=no
9885 hardcode_into_libs=yes
9886 if test "$host_cpu" = ia64; then
9887 # AIX 5 supports IA64
9888 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9889 shlibpath_var=LD_LIBRARY_PATH
9890 else
9891 # With GCC up to 2.95.x, collect2 would create an import file
9892 # for dependence libraries. The import file would start with
9893 # the line `#! .'. This would cause the generated library to
9894 # depend on `.', always an invalid library. This was fixed in
9895 # development snapshots of GCC prior to 3.0.
9896 case $host_os in
9897 aix4 | aix4.[01] | aix4.[01].*)
9898 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9899 echo ' yes '
9900 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9902 else
9903 can_build_shared=no
9906 esac
9907 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9908 # soname into executable. Probably we can add versioning support to
9909 # collect2, so additional links can be useful in future.
9910 if test "$aix_use_runtimelinking" = yes; then
9911 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9912 # instead of lib<name>.a to let people know that these are not
9913 # typical AIX shared libraries.
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915 else
9916 # We preserve .a as extension for shared libraries through AIX4.2
9917 # and later when we are not doing run time linking.
9918 library_names_spec='${libname}${release}.a $libname.a'
9919 soname_spec='${libname}${release}${shared_ext}$major'
9921 shlibpath_var=LIBPATH
9925 amigaos*)
9926 library_names_spec='$libname.ixlibrary $libname.a'
9927 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9928 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'
9931 beos*)
9932 library_names_spec='${libname}${shared_ext}'
9933 dynamic_linker="$host_os ld.so"
9934 shlibpath_var=LIBRARY_PATH
9937 bsdi[45]*)
9938 version_type=linux
9939 need_version=no
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9943 shlibpath_var=LD_LIBRARY_PATH
9944 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9945 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9946 # the default ld.so.conf also contains /usr/contrib/lib and
9947 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9948 # libtool to hard-code these into programs
9951 cygwin* | mingw* | pw32*)
9952 version_type=windows
9953 shrext_cmds=".dll"
9954 need_version=no
9955 need_lib_prefix=no
9957 case $GCC,$host_os in
9958 yes,cygwin* | yes,mingw* | yes,pw32*)
9959 library_names_spec='$libname.dll.a'
9960 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9961 postinstall_cmds='base_file=`basename \${file}`~
9962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9963 dldir=$destdir/`dirname \$dlpath`~
9964 test -d \$dldir || mkdir -p \$dldir~
9965 $install_prog $dir/$dlname \$dldir/$dlname~
9966 chmod a+x \$dldir/$dlname'
9967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9968 dlpath=$dir/\$dldll~
9969 $rm \$dlpath'
9970 shlibpath_overrides_runpath=yes
9972 case $host_os in
9973 cygwin*)
9974 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9975 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9976 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9978 mingw*)
9979 # MinGW DLLs use traditional 'lib' prefix
9980 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9981 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9982 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9983 # It is most probably a Windows format PATH printed by
9984 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9985 # path with ; separators, and with drive letters. We can handle the
9986 # drive letters (cygwin fileutils understands them), so leave them,
9987 # especially as we might pass files found there to a mingw objdump,
9988 # which wouldn't understand a cygwinified path. Ahh.
9989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9990 else
9991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9994 pw32*)
9995 # pw32 DLLs use 'pw' prefix rather than 'lib'
9996 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9998 esac
10002 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10004 esac
10005 dynamic_linker='Win32 ld.exe'
10006 # FIXME: first we should search . and the directory the executable is in
10007 shlibpath_var=PATH
10010 darwin* | rhapsody*)
10011 dynamic_linker="$host_os dyld"
10012 version_type=darwin
10013 need_lib_prefix=no
10014 need_version=no
10015 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10016 soname_spec='${libname}${release}${major}$shared_ext'
10017 shlibpath_overrides_runpath=yes
10018 shlibpath_var=DYLD_LIBRARY_PATH
10019 shrext_cmds='.dylib'
10020 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10021 if test "$GCC" = yes; then
10022 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"`
10023 else
10024 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10026 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10029 dgux*)
10030 version_type=linux
10031 need_lib_prefix=no
10032 need_version=no
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10034 soname_spec='${libname}${release}${shared_ext}$major'
10035 shlibpath_var=LD_LIBRARY_PATH
10038 freebsd1*)
10039 dynamic_linker=no
10042 kfreebsd*-gnu)
10043 version_type=linux
10044 need_lib_prefix=no
10045 need_version=no
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10047 soname_spec='${libname}${release}${shared_ext}$major'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath=no
10050 hardcode_into_libs=yes
10051 dynamic_linker='GNU ld.so'
10054 freebsd* | dragonfly*)
10055 # DragonFly does not have aout. When/if they implement a new
10056 # versioning mechanism, adjust this.
10057 if test -x /usr/bin/objformat; then
10058 objformat=`/usr/bin/objformat`
10059 else
10060 case $host_os in
10061 freebsd[123]*) objformat=aout ;;
10062 *) objformat=elf ;;
10063 esac
10065 version_type=freebsd-$objformat
10066 case $version_type in
10067 freebsd-elf*)
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10069 need_version=no
10070 need_lib_prefix=no
10072 freebsd-*)
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10074 need_version=yes
10076 esac
10077 shlibpath_var=LD_LIBRARY_PATH
10078 case $host_os in
10079 freebsd2*)
10080 shlibpath_overrides_runpath=yes
10082 freebsd3.[01]* | freebsdelf3.[01]*)
10083 shlibpath_overrides_runpath=yes
10084 hardcode_into_libs=yes
10086 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10087 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10088 shlibpath_overrides_runpath=no
10089 hardcode_into_libs=yes
10091 freebsd*) # from 4.6 on
10092 shlibpath_overrides_runpath=yes
10093 hardcode_into_libs=yes
10095 esac
10098 gnu*)
10099 version_type=linux
10100 need_lib_prefix=no
10101 need_version=no
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 hardcode_into_libs=yes
10108 hpux9* | hpux10* | hpux11*)
10109 # Give a soname corresponding to the major version so that dld.sl refuses to
10110 # link against other versions.
10111 version_type=sunos
10112 need_lib_prefix=no
10113 need_version=no
10114 case $host_cpu in
10115 ia64*)
10116 shrext_cmds='.so'
10117 hardcode_into_libs=yes
10118 dynamic_linker="$host_os dld.so"
10119 shlibpath_var=LD_LIBRARY_PATH
10120 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 soname_spec='${libname}${release}${shared_ext}$major'
10123 if test "X$HPUX_IA64_MODE" = X32; then
10124 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10125 else
10126 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10130 hppa*64*)
10131 shrext_cmds='.sl'
10132 hardcode_into_libs=yes
10133 dynamic_linker="$host_os dld.sl"
10134 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10142 shrext_cmds='.sl'
10143 dynamic_linker="$host_os dld.sl"
10144 shlibpath_var=SHLIB_PATH
10145 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 soname_spec='${libname}${release}${shared_ext}$major'
10149 esac
10150 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10151 postinstall_cmds='chmod 555 $lib'
10154 interix3*)
10155 version_type=linux
10156 need_lib_prefix=no
10157 need_version=no
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10161 shlibpath_var=LD_LIBRARY_PATH
10162 shlibpath_overrides_runpath=no
10163 hardcode_into_libs=yes
10166 irix5* | irix6* | nonstopux*)
10167 case $host_os in
10168 nonstopux*) version_type=nonstopux ;;
10170 if test "$lt_cv_prog_gnu_ld" = yes; then
10171 version_type=linux
10172 else
10173 version_type=irix
10174 fi ;;
10175 esac
10176 need_lib_prefix=no
10177 need_version=no
10178 soname_spec='${libname}${release}${shared_ext}$major'
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10180 case $host_os in
10181 irix5* | nonstopux*)
10182 libsuff= shlibsuff=
10185 case $LD in # libtool.m4 will add one of these switches to LD
10186 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10187 libsuff= shlibsuff= libmagic=32-bit;;
10188 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10189 libsuff=32 shlibsuff=N32 libmagic=N32;;
10190 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10191 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10192 *) libsuff= shlibsuff= libmagic=never-match;;
10193 esac
10195 esac
10196 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10197 shlibpath_overrides_runpath=no
10198 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10199 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10200 hardcode_into_libs=yes
10203 # No shared lib support for Linux oldld, aout, or coff.
10204 linux*oldld* | linux*aout* | linux*coff*)
10205 dynamic_linker=no
10208 # This must be Linux ELF.
10209 linux*)
10210 version_type=linux
10211 need_lib_prefix=no
10212 need_version=no
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 shlibpath_overrides_runpath=no
10218 # This implies no fast_install, which is unacceptable.
10219 # Some rework will be needed to allow for fast_install
10220 # before this can be enabled.
10221 hardcode_into_libs=yes
10223 # Append ld.so.conf contents to the search path
10224 if test -f /etc/ld.so.conf; then
10225 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' ' '`
10226 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10229 # We used to test for /lib/ld.so.1 and disable shared libraries on
10230 # powerpc, because MkLinux only supported shared libraries with the
10231 # GNU dynamic linker. Since this was broken with cross compilers,
10232 # most powerpc-linux boxes support dynamic linking these days and
10233 # people can always --disable-shared, the test was removed, and we
10234 # assume the GNU/Linux dynamic linker is in use.
10235 dynamic_linker='GNU/Linux ld.so'
10238 knetbsd*-gnu)
10239 version_type=linux
10240 need_lib_prefix=no
10241 need_version=no
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=no
10246 hardcode_into_libs=yes
10247 dynamic_linker='GNU ld.so'
10250 netbsd*)
10251 version_type=sunos
10252 need_lib_prefix=no
10253 need_version=no
10254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10257 dynamic_linker='NetBSD (a.out) ld.so'
10258 else
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 dynamic_linker='NetBSD ld.elf_so'
10263 shlibpath_var=LD_LIBRARY_PATH
10264 shlibpath_overrides_runpath=yes
10265 hardcode_into_libs=yes
10268 newsos6)
10269 version_type=linux
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=yes
10275 nto-qnx*)
10276 version_type=linux
10277 need_lib_prefix=no
10278 need_version=no
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 shlibpath_var=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath=yes
10285 openbsd*)
10286 version_type=sunos
10287 sys_lib_dlsearch_path_spec="/usr/lib"
10288 need_lib_prefix=no
10289 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10290 case $host_os in
10291 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10292 *) need_version=no ;;
10293 esac
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10298 case $host_os in
10299 openbsd2.[89] | openbsd2.[89].*)
10300 shlibpath_overrides_runpath=no
10303 shlibpath_overrides_runpath=yes
10305 esac
10306 else
10307 shlibpath_overrides_runpath=yes
10311 os2*)
10312 libname_spec='$name'
10313 shrext_cmds=".dll"
10314 need_lib_prefix=no
10315 library_names_spec='$libname${shared_ext} $libname.a'
10316 dynamic_linker='OS/2 ld.exe'
10317 shlibpath_var=LIBPATH
10320 osf3* | osf4* | osf5*)
10321 version_type=osf
10322 need_lib_prefix=no
10323 need_version=no
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10328 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10331 solaris*)
10332 version_type=linux
10333 need_lib_prefix=no
10334 need_version=no
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath=yes
10339 hardcode_into_libs=yes
10340 # ldd complains unless libraries are executable
10341 postinstall_cmds='chmod +x $lib'
10344 sunos4*)
10345 version_type=sunos
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10347 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath=yes
10350 if test "$with_gnu_ld" = yes; then
10351 need_lib_prefix=no
10353 need_version=yes
10356 sysv4 | sysv4.3*)
10357 version_type=linux
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 case $host_vendor in
10362 sni)
10363 shlibpath_overrides_runpath=no
10364 need_lib_prefix=no
10365 export_dynamic_flag_spec='${wl}-Blargedynsym'
10366 runpath_var=LD_RUN_PATH
10368 siemens)
10369 need_lib_prefix=no
10371 motorola)
10372 need_lib_prefix=no
10373 need_version=no
10374 shlibpath_overrides_runpath=no
10375 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10377 esac
10380 sysv4*MP*)
10381 if test -d /usr/nec ;then
10382 version_type=linux
10383 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10384 soname_spec='$libname${shared_ext}.$major'
10385 shlibpath_var=LD_LIBRARY_PATH
10389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10390 version_type=freebsd-elf
10391 need_lib_prefix=no
10392 need_version=no
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 hardcode_into_libs=yes
10397 if test "$with_gnu_ld" = yes; then
10398 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10399 shlibpath_overrides_runpath=no
10400 else
10401 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10402 shlibpath_overrides_runpath=yes
10403 case $host_os in
10404 sco3.2v5*)
10405 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10407 esac
10409 sys_lib_dlsearch_path_spec='/usr/lib'
10412 uts4*)
10413 version_type=linux
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10415 soname_spec='${libname}${release}${shared_ext}$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10420 dynamic_linker=no
10422 esac
10423 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10424 echo "${ECHO_T}$dynamic_linker" >&6; }
10425 test "$dynamic_linker" = no && can_build_shared=no
10427 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10428 if test "$GCC" = yes; then
10429 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10433 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10434 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10435 if test "${libltdl_cv_shlibext+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10439 module=yes
10440 eval libltdl_cv_shlibext=$shrext_cmds
10443 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10444 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10445 if test -n "$libltdl_cv_shlibext"; then
10447 cat >>confdefs.h <<_ACEOF
10448 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10449 _ACEOF
10454 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10455 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10456 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10458 else
10459 libltdl_cv_shlibpath_var="$shlibpath_var"
10461 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10462 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10463 if test -n "$libltdl_cv_shlibpath_var"; then
10465 cat >>confdefs.h <<_ACEOF
10466 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10467 _ACEOF
10472 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10473 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10474 if test "${libltdl_cv_sys_search_path+set}" = set; then
10475 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 else
10477 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10479 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10480 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10481 if test -n "$libltdl_cv_sys_search_path"; then
10482 sys_search_path=
10483 for dir in $libltdl_cv_sys_search_path; do
10484 if test -z "$sys_search_path"; then
10485 sys_search_path="$dir"
10486 else
10487 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10489 done
10491 cat >>confdefs.h <<_ACEOF
10492 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10493 _ACEOF
10497 { echo "$as_me:$LINENO: checking for objdir" >&5
10498 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10499 if test "${libltdl_cv_objdir+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502 libltdl_cv_objdir="$objdir"
10503 if test -n "$objdir"; then
10505 else
10506 rm -f .libs 2>/dev/null
10507 mkdir .libs 2>/dev/null
10508 if test -d .libs; then
10509 libltdl_cv_objdir=.libs
10510 else
10511 # MS-DOS does not allow filenames that begin with a dot.
10512 libltdl_cv_objdir=_libs
10514 rmdir .libs 2>/dev/null
10518 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10519 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10521 cat >>confdefs.h <<_ACEOF
10522 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10523 _ACEOF
10530 # Check for command to grab the raw symbol name followed by C symbol from nm.
10531 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10532 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10533 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10535 else
10537 # These are sane defaults that work on at least a few old systems.
10538 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10540 # Character class describing NM global symbol codes.
10541 symcode='[BCDEGRST]'
10543 # Regexp to match symbols that can be accessed directly from C.
10544 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10546 # Transform an extracted symbol line into a proper C declaration
10547 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10549 # Transform an extracted symbol line into symbol name and symbol address
10550 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'"
10552 # Define system-specific variables.
10553 case $host_os in
10554 aix*)
10555 symcode='[BCDT]'
10557 cygwin* | mingw* | pw32*)
10558 symcode='[ABCDGISTW]'
10560 hpux*) # Its linker distinguishes data from code symbols
10561 if test "$host_cpu" = ia64; then
10562 symcode='[ABCDEGRST]'
10564 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10565 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'"
10567 linux*)
10568 if test "$host_cpu" = ia64; then
10569 symcode='[ABCDGIRSTW]'
10570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10571 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'"
10574 irix* | nonstopux*)
10575 symcode='[BCDEGRST]'
10577 osf*)
10578 symcode='[BCDEGQRST]'
10580 solaris*)
10581 symcode='[BDRT]'
10583 sco3.2v5*)
10584 symcode='[DT]'
10586 sysv4.2uw2*)
10587 symcode='[DT]'
10589 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10590 symcode='[ABDT]'
10592 sysv4)
10593 symcode='[DFNSTU]'
10595 esac
10597 # Handle CRLF in mingw tool chain
10598 opt_cr=
10599 case $build_os in
10600 mingw*)
10601 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10603 esac
10605 # If we're using GNU nm, then use its standard symbol codes.
10606 case `$NM -V 2>&1` in
10607 *GNU* | *'with BFD'*)
10608 symcode='[ABCDGIRSTW]' ;;
10609 esac
10611 # Try without a prefix undercore, then with it.
10612 for ac_symprfx in "" "_"; do
10614 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10615 symxfrm="\\1 $ac_symprfx\\2 \\2"
10617 # Write the raw and C identifiers.
10618 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10620 # Check to see that the pipe works correctly.
10621 pipe_works=no
10623 rm -f conftest*
10624 cat > conftest.$ac_ext <<EOF
10625 #ifdef __cplusplus
10626 extern "C" {
10627 #endif
10628 char nm_test_var;
10629 void nm_test_func(){}
10630 #ifdef __cplusplus
10632 #endif
10633 int main(){nm_test_var='a';nm_test_func();return(0);}
10636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10637 (eval $ac_compile) 2>&5
10638 ac_status=$?
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; then
10641 # Now try to grab the symbols.
10642 nlist=conftest.nm
10643 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10644 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } && test -s "$nlist"; then
10648 # Try sorting and uniquifying the output.
10649 if sort "$nlist" | uniq > "$nlist"T; then
10650 mv -f "$nlist"T "$nlist"
10651 else
10652 rm -f "$nlist"T
10655 # Make sure that we snagged all the symbols we need.
10656 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10657 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10658 cat <<EOF > conftest.$ac_ext
10659 #ifdef __cplusplus
10660 extern "C" {
10661 #endif
10664 # Now generate the symbol file.
10665 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10667 cat <<EOF >> conftest.$ac_ext
10668 #if defined (__STDC__) && __STDC__
10669 # define lt_ptr_t void *
10670 #else
10671 # define lt_ptr_t char *
10672 # define const
10673 #endif
10675 /* The mapping between symbol names and symbols. */
10676 const struct {
10677 const char *name;
10678 lt_ptr_t address;
10680 lt_preloaded_symbols[] =
10683 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10684 cat <<\EOF >> conftest.$ac_ext
10685 {0, (lt_ptr_t) 0}
10688 #ifdef __cplusplus
10690 #endif
10692 # Now try linking the two files.
10693 mv conftest.$ac_objext conftstm.$ac_objext
10694 lt_save_LIBS="$LIBS"
10695 lt_save_CFLAGS="$CFLAGS"
10696 LIBS="conftstm.$ac_objext"
10697 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699 (eval $ac_link) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10703 pipe_works=yes
10705 LIBS="$lt_save_LIBS"
10706 CFLAGS="$lt_save_CFLAGS"
10707 else
10708 echo "cannot find nm_test_func in $nlist" >&5
10710 else
10711 echo "cannot find nm_test_var in $nlist" >&5
10713 else
10714 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10716 else
10717 echo "$progname: failed program was:" >&5
10718 cat conftest.$ac_ext >&5
10720 rm -f conftest* conftst*
10722 # Do not use the global_symbol_pipe unless it works.
10723 if test "$pipe_works" = yes; then
10724 break
10725 else
10726 lt_cv_sys_global_symbol_pipe=
10728 done
10732 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10733 lt_cv_sys_global_symbol_to_cdecl=
10735 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10736 { echo "$as_me:$LINENO: result: failed" >&5
10737 echo "${ECHO_T}failed" >&6; }
10738 else
10739 { echo "$as_me:$LINENO: result: ok" >&5
10740 echo "${ECHO_T}ok" >&6; }
10744 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10745 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10746 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 else
10749 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10750 libltdl_cv_preloaded_symbols=yes
10751 else
10752 libltdl_cv_preloaded_symbols=no
10756 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10757 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10758 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10760 cat >>confdefs.h <<\_ACEOF
10761 #define HAVE_PRELOADED_SYMBOLS 1
10762 _ACEOF
10766 LIBADD_DL=
10768 ac_ext=c
10769 ac_cpp='$CPP $CPPFLAGS'
10770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10775 { echo "$as_me:$LINENO: checking for shl_load" >&5
10776 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10777 if test "${ac_cv_func_shl_load+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 else
10780 cat >conftest.$ac_ext <<_ACEOF
10781 /* confdefs.h. */
10782 _ACEOF
10783 cat confdefs.h >>conftest.$ac_ext
10784 cat >>conftest.$ac_ext <<_ACEOF
10785 /* end confdefs.h. */
10786 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10788 #define shl_load innocuous_shl_load
10790 /* System header to define __stub macros and hopefully few prototypes,
10791 which can conflict with char shl_load (); below.
10792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10793 <limits.h> exists even on freestanding compilers. */
10795 #ifdef __STDC__
10796 # include <limits.h>
10797 #else
10798 # include <assert.h>
10799 #endif
10801 #undef shl_load
10803 /* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10806 #ifdef __cplusplus
10807 extern "C"
10808 #endif
10809 char shl_load ();
10810 /* The GNU C library defines this for functions which it implements
10811 to always fail with ENOSYS. Some functions are actually named
10812 something starting with __ and the normal name is an alias. */
10813 #if defined __stub_shl_load || defined __stub___shl_load
10814 choke me
10815 #endif
10818 main ()
10820 return shl_load ();
10822 return 0;
10824 _ACEOF
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830 esac
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_link") 2>conftest.er1
10833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10840 { (case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10843 esac
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_try") 2>&5
10846 ac_status=$?
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; } &&
10849 { ac_try='test -s conftest$ac_exeext'
10850 { (case "(($ac_try" in
10851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852 *) ac_try_echo=$ac_try;;
10853 esac
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855 (eval "$ac_try") 2>&5
10856 ac_status=$?
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 ac_cv_func_shl_load=yes
10860 else
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_cv_func_shl_load=no
10867 rm -f core conftest.err conftest.$ac_objext \
10868 conftest$ac_exeext conftest.$ac_ext
10870 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10871 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10872 if test $ac_cv_func_shl_load = yes; then
10874 cat >>confdefs.h <<\_ACEOF
10875 #define HAVE_SHL_LOAD 1
10876 _ACEOF
10878 else
10879 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10880 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10881 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10883 else
10884 ac_check_lib_save_LIBS=$LIBS
10885 LIBS="-ldld $LIBS"
10886 cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h. */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10893 /* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10896 #ifdef __cplusplus
10897 extern "C"
10898 #endif
10899 char shl_load ();
10901 main ()
10903 return shl_load ();
10905 return 0;
10907 _ACEOF
10908 rm -f conftest.$ac_objext conftest$ac_exeext
10909 if { (ac_try="$ac_link"
10910 case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913 esac
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_link") 2>conftest.er1
10916 ac_status=$?
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923 { (case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10926 esac
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_try") 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest$ac_exeext'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936 esac
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 ac_cv_lib_dld_shl_load=yes
10943 else
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10947 ac_cv_lib_dld_shl_load=no
10950 rm -f core conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10952 LIBS=$ac_check_lib_save_LIBS
10954 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10955 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10956 if test $ac_cv_lib_dld_shl_load = yes; then
10958 cat >>confdefs.h <<\_ACEOF
10959 #define HAVE_SHL_LOAD 1
10960 _ACEOF
10962 LIBADD_DL="$LIBADD_DL -ldld"
10963 else
10964 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10965 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 else
10969 ac_check_lib_save_LIBS=$LIBS
10970 LIBS="-ldl $LIBS"
10971 cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h. */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10978 /* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10981 #ifdef __cplusplus
10982 extern "C"
10983 #endif
10984 char dlopen ();
10986 main ()
10988 return dlopen ();
10990 return 0;
10992 _ACEOF
10993 rm -f conftest.$ac_objext conftest$ac_exeext
10994 if { (ac_try="$ac_link"
10995 case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998 esac
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_link") 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008 { (case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11011 esac
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_try") 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest$ac_exeext'
11018 { (case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11021 esac
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_try") 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_cv_lib_dl_dlopen=yes
11028 else
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ac_cv_lib_dl_dlopen=no
11035 rm -f core conftest.err conftest.$ac_objext \
11036 conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11039 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11040 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11041 if test $ac_cv_lib_dl_dlopen = yes; then
11043 cat >>confdefs.h <<\_ACEOF
11044 #define HAVE_LIBDL 1
11045 _ACEOF
11047 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11048 else
11049 cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h. */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 #if HAVE_DLFCN_H
11056 # include <dlfcn.h>
11057 #endif
11060 main ()
11062 dlopen(0, 0);
11064 return 0;
11066 _ACEOF
11067 rm -f conftest.$ac_objext conftest$ac_exeext
11068 if { (ac_try="$ac_link"
11069 case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072 esac
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_link") 2>conftest.er1
11075 ac_status=$?
11076 grep -v '^ *+' conftest.er1 >conftest.err
11077 rm -f conftest.er1
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11082 { (case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085 esac
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_try") 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
11102 cat >>confdefs.h <<\_ACEOF
11103 #define HAVE_LIBDL 1
11104 _ACEOF
11105 libltdl_cv_func_dlopen="yes"
11106 else
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11110 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11111 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11112 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115 ac_check_lib_save_LIBS=$LIBS
11116 LIBS="-lsvld $LIBS"
11117 cat >conftest.$ac_ext <<_ACEOF
11118 /* confdefs.h. */
11119 _ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h. */
11124 /* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11127 #ifdef __cplusplus
11128 extern "C"
11129 #endif
11130 char dlopen ();
11132 main ()
11134 return dlopen ();
11136 return 0;
11138 _ACEOF
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_link") 2>conftest.er1
11147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11154 { (case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157 esac
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_try") 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try='test -s conftest$ac_exeext'
11164 { (case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_try") 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 ac_cv_lib_svld_dlopen=yes
11174 else
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 ac_cv_lib_svld_dlopen=no
11181 rm -f core conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
11183 LIBS=$ac_check_lib_save_LIBS
11185 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11186 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11187 if test $ac_cv_lib_svld_dlopen = yes; then
11189 cat >>confdefs.h <<\_ACEOF
11190 #define HAVE_LIBDL 1
11191 _ACEOF
11193 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11194 else
11195 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11196 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11197 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200 ac_check_lib_save_LIBS=$LIBS
11201 LIBS="-ldld $LIBS"
11202 cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h. */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11209 /* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11212 #ifdef __cplusplus
11213 extern "C"
11214 #endif
11215 char dld_link ();
11217 main ()
11219 return dld_link ();
11221 return 0;
11223 _ACEOF
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (ac_try="$ac_link"
11226 case "(($ac_try" in
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11229 esac
11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_link") 2>conftest.er1
11232 ac_status=$?
11233 grep -v '^ *+' conftest.er1 >conftest.err
11234 rm -f conftest.er1
11235 cat conftest.err >&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } &&
11238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11239 { (case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242 esac
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_try") 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest$ac_exeext'
11249 { (case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11252 esac
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254 (eval "$ac_try") 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
11258 ac_cv_lib_dld_dld_link=yes
11259 else
11260 echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.$ac_ext >&5
11263 ac_cv_lib_dld_dld_link=no
11266 rm -f core conftest.err conftest.$ac_objext \
11267 conftest$ac_exeext conftest.$ac_ext
11268 LIBS=$ac_check_lib_save_LIBS
11270 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11271 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11272 if test $ac_cv_lib_dld_dld_link = yes; then
11274 cat >>confdefs.h <<\_ACEOF
11275 #define HAVE_DLD 1
11276 _ACEOF
11278 LIBADD_DL="$LIBADD_DL -ldld"
11279 else
11280 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11281 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11282 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285 cat >conftest.$ac_ext <<_ACEOF
11286 /* confdefs.h. */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11293 #define _dyld_func_lookup innocuous__dyld_func_lookup
11295 /* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char _dyld_func_lookup (); below.
11297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11298 <limits.h> exists even on freestanding compilers. */
11300 #ifdef __STDC__
11301 # include <limits.h>
11302 #else
11303 # include <assert.h>
11304 #endif
11306 #undef _dyld_func_lookup
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 char _dyld_func_lookup ();
11315 /* The GNU C library defines this for functions which it implements
11316 to always fail with ENOSYS. Some functions are actually named
11317 something starting with __ and the normal name is an alias. */
11318 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11319 choke me
11320 #endif
11323 main ()
11325 return _dyld_func_lookup ();
11327 return 0;
11329 _ACEOF
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (ac_try="$ac_link"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_link") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } &&
11344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11345 { (case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11348 esac
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_try") 2>&5
11351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; } &&
11354 { ac_try='test -s conftest$ac_exeext'
11355 { (case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358 esac
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_try") 2>&5
11361 ac_status=$?
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }; then
11364 ac_cv_func__dyld_func_lookup=yes
11365 else
11366 echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11369 ac_cv_func__dyld_func_lookup=no
11372 rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11375 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11376 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11377 if test $ac_cv_func__dyld_func_lookup = yes; then
11379 cat >>confdefs.h <<\_ACEOF
11380 #define HAVE_DYLD 1
11381 _ACEOF
11394 rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext conftest.$ac_ext
11406 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11407 then
11408 lt_save_LIBS="$LIBS"
11409 LIBS="$LIBS $LIBADD_DL"
11411 for ac_func in dlerror
11413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 else
11419 cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h. */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11427 #define $ac_func innocuous_$ac_func
11429 /* System header to define __stub macros and hopefully few prototypes,
11430 which can conflict with char $ac_func (); below.
11431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11432 <limits.h> exists even on freestanding compilers. */
11434 #ifdef __STDC__
11435 # include <limits.h>
11436 #else
11437 # include <assert.h>
11438 #endif
11440 #undef $ac_func
11442 /* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 char $ac_func ();
11449 /* The GNU C library defines this for functions which it implements
11450 to always fail with ENOSYS. Some functions are actually named
11451 something starting with __ and the normal name is an alias. */
11452 #if defined __stub_$ac_func || defined __stub___$ac_func
11453 choke me
11454 #endif
11457 main ()
11459 return $ac_func ();
11461 return 0;
11463 _ACEOF
11464 rm -f conftest.$ac_objext conftest$ac_exeext
11465 if { (ac_try="$ac_link"
11466 case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11469 esac
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_link") 2>conftest.er1
11472 ac_status=$?
11473 grep -v '^ *+' conftest.er1 >conftest.err
11474 rm -f conftest.er1
11475 cat conftest.err >&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } &&
11478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11479 { (case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482 esac
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_try") 2>&5
11485 ac_status=$?
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try='test -s conftest$ac_exeext'
11489 { (case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11492 esac
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_try") 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; }; then
11498 eval "$as_ac_var=yes"
11499 else
11500 echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11503 eval "$as_ac_var=no"
11506 rm -f core conftest.err conftest.$ac_objext \
11507 conftest$ac_exeext conftest.$ac_ext
11509 ac_res=`eval echo '${'$as_ac_var'}'`
11510 { echo "$as_me:$LINENO: result: $ac_res" >&5
11511 echo "${ECHO_T}$ac_res" >&6; }
11512 if test `eval echo '${'$as_ac_var'}'` = yes; then
11513 cat >>confdefs.h <<_ACEOF
11514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11515 _ACEOF
11518 done
11520 LIBS="$lt_save_LIBS"
11522 ac_ext=c
11523 ac_cpp='$CPP $CPPFLAGS'
11524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11530 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11531 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11532 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 else
11535 ac_cv_sys_symbol_underscore=no
11536 cat > conftest.$ac_ext <<EOF
11537 void nm_test_func(){}
11538 int main(){nm_test_func;return 0;}
11540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11541 (eval $ac_compile) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; then
11545 # Now try to grab the symbols.
11546 ac_nlist=conftest.nm
11547 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11548 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } && test -s "$ac_nlist"; then
11552 # See whether the symbols have a leading underscore.
11553 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11554 ac_cv_sys_symbol_underscore=yes
11555 else
11556 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11558 else
11559 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11562 else
11563 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11565 else
11566 echo "configure: failed program was:" >&5
11567 cat conftest.c >&5
11569 rm -rf conftest*
11572 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11573 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11576 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11577 if test x"$libltdl_cv_func_dlopen" = xyes ||
11578 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11579 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11580 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11581 if test "${libltdl_cv_need_uscore+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584 libltdl_cv_need_uscore=unknown
11585 save_LIBS="$LIBS"
11586 LIBS="$LIBS $LIBADD_DL"
11587 if test "$cross_compiling" = yes; then :
11588 libltdl_cv_need_uscore=cross
11589 else
11590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11591 lt_status=$lt_dlunknown
11592 cat > conftest.$ac_ext <<EOF
11593 #line 11591 "configure"
11594 #include "confdefs.h"
11596 #if HAVE_DLFCN_H
11597 #include <dlfcn.h>
11598 #endif
11600 #include <stdio.h>
11602 #ifdef RTLD_GLOBAL
11603 # define LT_DLGLOBAL RTLD_GLOBAL
11604 #else
11605 # ifdef DL_GLOBAL
11606 # define LT_DLGLOBAL DL_GLOBAL
11607 # else
11608 # define LT_DLGLOBAL 0
11609 # endif
11610 #endif
11612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11613 find out it does not work in some platform. */
11614 #ifndef LT_DLLAZY_OR_NOW
11615 # ifdef RTLD_LAZY
11616 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11617 # else
11618 # ifdef DL_LAZY
11619 # define LT_DLLAZY_OR_NOW DL_LAZY
11620 # else
11621 # ifdef RTLD_NOW
11622 # define LT_DLLAZY_OR_NOW RTLD_NOW
11623 # else
11624 # ifdef DL_NOW
11625 # define LT_DLLAZY_OR_NOW DL_NOW
11626 # else
11627 # define LT_DLLAZY_OR_NOW 0
11628 # endif
11629 # endif
11630 # endif
11631 # endif
11632 #endif
11634 #ifdef __cplusplus
11635 extern "C" void exit (int);
11636 #endif
11638 void fnord() { int i=42;}
11639 int main ()
11641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11642 int status = $lt_dlunknown;
11644 if (self)
11646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11648 /* dlclose (self); */
11650 else
11651 puts (dlerror ());
11653 exit (status);
11656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11657 (eval $ac_link) 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11661 (./conftest; exit; ) >&5 2>/dev/null
11662 lt_status=$?
11663 case x$lt_status in
11664 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11665 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11666 x$lt_dlunknown|x*) ;;
11667 esac
11668 else :
11669 # compilation failed
11673 rm -fr conftest*
11675 LIBS="$save_LIBS"
11678 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11679 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11683 if test x"$libltdl_cv_need_uscore" = xyes; then
11685 cat >>confdefs.h <<\_ACEOF
11686 #define NEED_USCORE 1
11687 _ACEOF
11692 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11693 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11694 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11696 else
11697 # PORTME does your system automatically load deplibs for dlopen?
11698 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11699 # For now, we just catch OSes we know something about -- in the
11700 # future, we'll try test this programmatically.
11701 libltdl_cv_sys_dlopen_deplibs=unknown
11702 case "$host_os" in
11703 aix3*|aix4.1.*|aix4.2.*)
11704 # Unknown whether this is true for these versions of AIX, but
11705 # we want this `case' here to explicitly catch those versions.
11706 libltdl_cv_sys_dlopen_deplibs=unknown
11708 aix[45]*)
11709 libltdl_cv_sys_dlopen_deplibs=yes
11711 darwin*)
11712 # Assuming the user has installed a libdl from somewhere, this is true
11713 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11714 libltdl_cv_sys_dlopen_deplibs=yes
11716 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11717 # GNU and its variants, using gnu ld.so (Glibc)
11718 libltdl_cv_sys_dlopen_deplibs=yes
11720 hpux10*|hpux11*)
11721 libltdl_cv_sys_dlopen_deplibs=yes
11723 interix*)
11724 libltdl_cv_sys_dlopen_deplibs=yes
11726 irix[12345]*|irix6.[01]*)
11727 # Catch all versions of IRIX before 6.2, and indicate that we don't
11728 # know how it worked for any of those versions.
11729 libltdl_cv_sys_dlopen_deplibs=unknown
11731 irix*)
11732 # The case above catches anything before 6.2, and it's known that
11733 # at 6.2 and later dlopen does load deplibs.
11734 libltdl_cv_sys_dlopen_deplibs=yes
11736 netbsd*)
11737 libltdl_cv_sys_dlopen_deplibs=yes
11739 openbsd*)
11740 libltdl_cv_sys_dlopen_deplibs=yes
11742 osf[1234]*)
11743 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11744 # it did *not* use an RPATH in a shared library to find objects the
11745 # library depends on, so we explicitly say `no'.
11746 libltdl_cv_sys_dlopen_deplibs=no
11748 osf5.0|osf5.0a|osf5.1)
11749 # dlopen *does* load deplibs and with the right loader patch applied
11750 # it even uses RPATH in a shared library to search for shared objects
11751 # that the library depends on, but there's no easy way to know if that
11752 # patch is installed. Since this is the case, all we can really
11753 # say is unknown -- it depends on the patch being installed. If
11754 # it is, this changes to `yes'. Without it, it would be `no'.
11755 libltdl_cv_sys_dlopen_deplibs=unknown
11757 osf*)
11758 # the two cases above should catch all versions of osf <= 5.1. Read
11759 # the comments above for what we know about them.
11760 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11761 # is used to find them so we can finally say `yes'.
11762 libltdl_cv_sys_dlopen_deplibs=yes
11764 solaris*)
11765 libltdl_cv_sys_dlopen_deplibs=yes
11767 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11768 libltdl_cv_sys_dlopen_deplibs=yes
11770 esac
11773 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11774 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11775 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11777 cat >>confdefs.h <<\_ACEOF
11778 #define LTDL_DLOPEN_DEPLIBS 1
11779 _ACEOF
11784 for ac_header in argz.h
11786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 ac_res=`eval echo '${'$as_ac_Header'}'`
11794 { echo "$as_me:$LINENO: result: $ac_res" >&5
11795 echo "${ECHO_T}$ac_res" >&6; }
11796 else
11797 # Is the header compilable?
11798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11800 cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h. */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 $ac_includes_default
11807 #include <$ac_header>
11808 _ACEOF
11809 rm -f conftest.$ac_objext
11810 if { (ac_try="$ac_compile"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_compile") 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11824 { (case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11827 esac
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_try") 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try='test -s conftest.$ac_objext'
11834 { (case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11837 esac
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_try") 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; }; then
11843 ac_header_compiler=yes
11844 else
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 ac_header_compiler=no
11851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11853 echo "${ECHO_T}$ac_header_compiler" >&6; }
11855 # Is the header present?
11856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11858 cat >conftest.$ac_ext <<_ACEOF
11859 /* confdefs.h. */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11864 #include <$ac_header>
11865 _ACEOF
11866 if { (ac_try="$ac_cpp conftest.$ac_ext"
11867 case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11870 esac
11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11873 ac_status=$?
11874 grep -v '^ *+' conftest.er1 >conftest.err
11875 rm -f conftest.er1
11876 cat conftest.err >&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); } >/dev/null; then
11879 if test -s conftest.err; then
11880 ac_cpp_err=$ac_c_preproc_warn_flag
11881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11882 else
11883 ac_cpp_err=
11885 else
11886 ac_cpp_err=yes
11888 if test -z "$ac_cpp_err"; then
11889 ac_header_preproc=yes
11890 else
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11894 ac_header_preproc=no
11897 rm -f conftest.err conftest.$ac_ext
11898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11899 echo "${ECHO_T}$ac_header_preproc" >&6; }
11901 # So? What about this header?
11902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11903 yes:no: )
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11908 ac_header_preproc=yes
11910 no:yes:* )
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11923 ( cat <<\_ASBOX
11924 ## ----------------------------------- ##
11925 ## Report this to llvmbugs@cs.uiuc.edu ##
11926 ## ----------------------------------- ##
11927 _ASBOX
11928 ) | sed "s/^/$as_me: WARNING: /" >&2
11930 esac
11931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936 eval "$as_ac_Header=\$ac_header_preproc"
11938 ac_res=`eval echo '${'$as_ac_Header'}'`
11939 { echo "$as_me:$LINENO: result: $ac_res" >&5
11940 echo "${ECHO_T}$ac_res" >&6; }
11943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11944 cat >>confdefs.h <<_ACEOF
11945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11946 _ACEOF
11950 done
11953 { echo "$as_me:$LINENO: checking for error_t" >&5
11954 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11955 if test "${ac_cv_type_error_t+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 else
11958 cat >conftest.$ac_ext <<_ACEOF
11959 /* confdefs.h. */
11960 _ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11964 #if HAVE_ARGZ_H
11965 # include <argz.h>
11966 #endif
11968 typedef error_t ac__type_new_;
11970 main ()
11972 if ((ac__type_new_ *) 0)
11973 return 0;
11974 if (sizeof (ac__type_new_))
11975 return 0;
11977 return 0;
11979 _ACEOF
11980 rm -f conftest.$ac_objext
11981 if { (ac_try="$ac_compile"
11982 case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11985 esac
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_compile") 2>conftest.er1
11988 ac_status=$?
11989 grep -v '^ *+' conftest.er1 >conftest.err
11990 rm -f conftest.er1
11991 cat conftest.err >&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
11994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11995 { (case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998 esac
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_try") 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; } &&
12004 { ac_try='test -s conftest.$ac_objext'
12005 { (case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12008 esac
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_try") 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_type_error_t=yes
12015 else
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ac_cv_type_error_t=no
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12025 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12026 if test $ac_cv_type_error_t = yes; then
12028 cat >>confdefs.h <<_ACEOF
12029 #define HAVE_ERROR_T 1
12030 _ACEOF
12033 else
12035 cat >>confdefs.h <<\_ACEOF
12036 #define error_t int
12037 _ACEOF
12047 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055 cat >conftest.$ac_ext <<_ACEOF
12056 /* confdefs.h. */
12057 _ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12063 #define $ac_func innocuous_$ac_func
12065 /* System header to define __stub macros and hopefully few prototypes,
12066 which can conflict with char $ac_func (); below.
12067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12068 <limits.h> exists even on freestanding compilers. */
12070 #ifdef __STDC__
12071 # include <limits.h>
12072 #else
12073 # include <assert.h>
12074 #endif
12076 #undef $ac_func
12078 /* Override any GCC internal prototype to avoid an error.
12079 Use char because int might match the return type of a GCC
12080 builtin and then its argument prototype would still apply. */
12081 #ifdef __cplusplus
12082 extern "C"
12083 #endif
12084 char $ac_func ();
12085 /* The GNU C library defines this for functions which it implements
12086 to always fail with ENOSYS. Some functions are actually named
12087 something starting with __ and the normal name is an alias. */
12088 #if defined __stub_$ac_func || defined __stub___$ac_func
12089 choke me
12090 #endif
12093 main ()
12095 return $ac_func ();
12097 return 0;
12099 _ACEOF
12100 rm -f conftest.$ac_objext conftest$ac_exeext
12101 if { (ac_try="$ac_link"
12102 case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12105 esac
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_link") 2>conftest.er1
12108 ac_status=$?
12109 grep -v '^ *+' conftest.er1 >conftest.err
12110 rm -f conftest.er1
12111 cat conftest.err >&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
12114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12115 { (case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12118 esac
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_try") 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; } &&
12124 { ac_try='test -s conftest$ac_exeext'
12125 { (case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12128 esac
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_try") 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 eval "$as_ac_var=yes"
12135 else
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 eval "$as_ac_var=no"
12142 rm -f core conftest.err conftest.$ac_objext \
12143 conftest$ac_exeext conftest.$ac_ext
12145 ac_res=`eval echo '${'$as_ac_var'}'`
12146 { echo "$as_me:$LINENO: result: $ac_res" >&5
12147 echo "${ECHO_T}$ac_res" >&6; }
12148 if test `eval echo '${'$as_ac_var'}'` = yes; then
12149 cat >>confdefs.h <<_ACEOF
12150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12151 _ACEOF
12154 done
12183 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12184 stdio.h unistd.h
12186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 ac_res=`eval echo '${'$as_ac_Header'}'`
12194 { echo "$as_me:$LINENO: result: $ac_res" >&5
12195 echo "${ECHO_T}$ac_res" >&6; }
12196 else
12197 # Is the header compilable?
12198 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12200 cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h. */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 $ac_includes_default
12207 #include <$ac_header>
12208 _ACEOF
12209 rm -f conftest.$ac_objext
12210 if { (ac_try="$ac_compile"
12211 case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_compile") 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12224 { (case "(($ac_try" in
12225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226 *) ac_try_echo=$ac_try;;
12227 esac
12228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229 (eval "$ac_try") 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest.$ac_objext'
12234 { (case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12237 esac
12238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12239 (eval "$ac_try") 2>&5
12240 ac_status=$?
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12243 ac_header_compiler=yes
12244 else
12245 echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 ac_header_compiler=no
12251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12253 echo "${ECHO_T}$ac_header_compiler" >&6; }
12255 # Is the header present?
12256 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12258 cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h. */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12264 #include <$ac_header>
12265 _ACEOF
12266 if { (ac_try="$ac_cpp conftest.$ac_ext"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } >/dev/null; then
12279 if test -s conftest.err; then
12280 ac_cpp_err=$ac_c_preproc_warn_flag
12281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12282 else
12283 ac_cpp_err=
12285 else
12286 ac_cpp_err=yes
12288 if test -z "$ac_cpp_err"; then
12289 ac_header_preproc=yes
12290 else
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 ac_header_preproc=no
12297 rm -f conftest.err conftest.$ac_ext
12298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12299 echo "${ECHO_T}$ac_header_preproc" >&6; }
12301 # So? What about this header?
12302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12303 yes:no: )
12304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12308 ac_header_preproc=yes
12310 no:yes:* )
12311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12323 ( cat <<\_ASBOX
12324 ## ----------------------------------- ##
12325 ## Report this to llvmbugs@cs.uiuc.edu ##
12326 ## ----------------------------------- ##
12327 _ASBOX
12328 ) | sed "s/^/$as_me: WARNING: /" >&2
12330 esac
12331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335 else
12336 eval "$as_ac_Header=\$ac_header_preproc"
12338 ac_res=`eval echo '${'$as_ac_Header'}'`
12339 { echo "$as_me:$LINENO: result: $ac_res" >&5
12340 echo "${ECHO_T}$ac_res" >&6; }
12343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12344 cat >>confdefs.h <<_ACEOF
12345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12346 _ACEOF
12350 done
12356 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 ac_res=`eval echo '${'$as_ac_Header'}'`
12366 { echo "$as_me:$LINENO: result: $ac_res" >&5
12367 echo "${ECHO_T}$ac_res" >&6; }
12368 else
12369 # Is the header compilable?
12370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12372 cat >conftest.$ac_ext <<_ACEOF
12373 /* confdefs.h. */
12374 _ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12378 $ac_includes_default
12379 #include <$ac_header>
12380 _ACEOF
12381 rm -f conftest.$ac_objext
12382 if { (ac_try="$ac_compile"
12383 case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_compile") 2>conftest.er1
12389 ac_status=$?
12390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12396 { (case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12399 esac
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_try") 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest.$ac_objext'
12406 { (case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409 esac
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_try") 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 ac_header_compiler=yes
12416 else
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12420 ac_header_compiler=no
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12425 echo "${ECHO_T}$ac_header_compiler" >&6; }
12427 # Is the header present?
12428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12430 cat >conftest.$ac_ext <<_ACEOF
12431 /* confdefs.h. */
12432 _ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12436 #include <$ac_header>
12437 _ACEOF
12438 if { (ac_try="$ac_cpp conftest.$ac_ext"
12439 case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12442 esac
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12445 ac_status=$?
12446 grep -v '^ *+' conftest.er1 >conftest.err
12447 rm -f conftest.er1
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } >/dev/null; then
12451 if test -s conftest.err; then
12452 ac_cpp_err=$ac_c_preproc_warn_flag
12453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12454 else
12455 ac_cpp_err=
12457 else
12458 ac_cpp_err=yes
12460 if test -z "$ac_cpp_err"; then
12461 ac_header_preproc=yes
12462 else
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12466 ac_header_preproc=no
12469 rm -f conftest.err conftest.$ac_ext
12470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12471 echo "${ECHO_T}$ac_header_preproc" >&6; }
12473 # So? What about this header?
12474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12475 yes:no: )
12476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12480 ac_header_preproc=yes
12482 no:yes:* )
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12495 ( cat <<\_ASBOX
12496 ## ----------------------------------- ##
12497 ## Report this to llvmbugs@cs.uiuc.edu ##
12498 ## ----------------------------------- ##
12499 _ASBOX
12500 ) | sed "s/^/$as_me: WARNING: /" >&2
12502 esac
12503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 else
12508 eval "$as_ac_Header=\$ac_header_preproc"
12510 ac_res=`eval echo '${'$as_ac_Header'}'`
12511 { echo "$as_me:$LINENO: result: $ac_res" >&5
12512 echo "${ECHO_T}$ac_res" >&6; }
12515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12516 cat >>confdefs.h <<_ACEOF
12517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12518 _ACEOF
12522 done
12526 for ac_header in string.h strings.h
12528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 ac_res=`eval echo '${'$as_ac_Header'}'`
12536 { echo "$as_me:$LINENO: result: $ac_res" >&5
12537 echo "${ECHO_T}$ac_res" >&6; }
12538 else
12539 # Is the header compilable?
12540 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12542 cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h. */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548 $ac_includes_default
12549 #include <$ac_header>
12550 _ACEOF
12551 rm -f conftest.$ac_objext
12552 if { (ac_try="$ac_compile"
12553 case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12556 esac
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_compile") 2>conftest.er1
12559 ac_status=$?
12560 grep -v '^ *+' conftest.er1 >conftest.err
12561 rm -f conftest.er1
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12566 { (case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12569 esac
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_try") 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try='test -s conftest.$ac_objext'
12576 { (case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12579 esac
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_try") 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
12585 ac_header_compiler=yes
12586 else
12587 echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12590 ac_header_compiler=no
12593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12595 echo "${ECHO_T}$ac_header_compiler" >&6; }
12597 # Is the header present?
12598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12600 cat >conftest.$ac_ext <<_ACEOF
12601 /* confdefs.h. */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12606 #include <$ac_header>
12607 _ACEOF
12608 if { (ac_try="$ac_cpp conftest.$ac_ext"
12609 case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12612 esac
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } >/dev/null; then
12621 if test -s conftest.err; then
12622 ac_cpp_err=$ac_c_preproc_warn_flag
12623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12624 else
12625 ac_cpp_err=
12627 else
12628 ac_cpp_err=yes
12630 if test -z "$ac_cpp_err"; then
12631 ac_header_preproc=yes
12632 else
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12636 ac_header_preproc=no
12639 rm -f conftest.err conftest.$ac_ext
12640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12641 echo "${ECHO_T}$ac_header_preproc" >&6; }
12643 # So? What about this header?
12644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12645 yes:no: )
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12650 ac_header_preproc=yes
12652 no:yes:* )
12653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12665 ( cat <<\_ASBOX
12666 ## ----------------------------------- ##
12667 ## Report this to llvmbugs@cs.uiuc.edu ##
12668 ## ----------------------------------- ##
12669 _ASBOX
12670 ) | sed "s/^/$as_me: WARNING: /" >&2
12672 esac
12673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 else
12678 eval "$as_ac_Header=\$ac_header_preproc"
12680 ac_res=`eval echo '${'$as_ac_Header'}'`
12681 { echo "$as_me:$LINENO: result: $ac_res" >&5
12682 echo "${ECHO_T}$ac_res" >&6; }
12685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12686 cat >>confdefs.h <<_ACEOF
12687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12688 _ACEOF
12689 break
12692 done
12697 for ac_func in strchr index
12699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 else
12705 cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h. */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12713 #define $ac_func innocuous_$ac_func
12715 /* System header to define __stub macros and hopefully few prototypes,
12716 which can conflict with char $ac_func (); below.
12717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12718 <limits.h> exists even on freestanding compilers. */
12720 #ifdef __STDC__
12721 # include <limits.h>
12722 #else
12723 # include <assert.h>
12724 #endif
12726 #undef $ac_func
12728 /* Override any GCC internal prototype to avoid an error.
12729 Use char because int might match the return type of a GCC
12730 builtin and then its argument prototype would still apply. */
12731 #ifdef __cplusplus
12732 extern "C"
12733 #endif
12734 char $ac_func ();
12735 /* The GNU C library defines this for functions which it implements
12736 to always fail with ENOSYS. Some functions are actually named
12737 something starting with __ and the normal name is an alias. */
12738 #if defined __stub_$ac_func || defined __stub___$ac_func
12739 choke me
12740 #endif
12743 main ()
12745 return $ac_func ();
12747 return 0;
12749 _ACEOF
12750 rm -f conftest.$ac_objext conftest$ac_exeext
12751 if { (ac_try="$ac_link"
12752 case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755 esac
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_link") 2>conftest.er1
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12765 { (case "(($ac_try" in
12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12768 esac
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_try") 2>&5
12771 ac_status=$?
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; } &&
12774 { ac_try='test -s conftest$ac_exeext'
12775 { (case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_try") 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 eval "$as_ac_var=yes"
12785 else
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 eval "$as_ac_var=no"
12792 rm -f core conftest.err conftest.$ac_objext \
12793 conftest$ac_exeext conftest.$ac_ext
12795 ac_res=`eval echo '${'$as_ac_var'}'`
12796 { echo "$as_me:$LINENO: result: $ac_res" >&5
12797 echo "${ECHO_T}$ac_res" >&6; }
12798 if test `eval echo '${'$as_ac_var'}'` = yes; then
12799 cat >>confdefs.h <<_ACEOF
12800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12801 _ACEOF
12802 break
12804 done
12808 for ac_func in strrchr rindex
12810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12815 else
12816 cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h. */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12824 #define $ac_func innocuous_$ac_func
12826 /* System header to define __stub macros and hopefully few prototypes,
12827 which can conflict with char $ac_func (); below.
12828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12829 <limits.h> exists even on freestanding compilers. */
12831 #ifdef __STDC__
12832 # include <limits.h>
12833 #else
12834 # include <assert.h>
12835 #endif
12837 #undef $ac_func
12839 /* Override any GCC internal prototype to avoid an error.
12840 Use char because int might match the return type of a GCC
12841 builtin and then its argument prototype would still apply. */
12842 #ifdef __cplusplus
12843 extern "C"
12844 #endif
12845 char $ac_func ();
12846 /* The GNU C library defines this for functions which it implements
12847 to always fail with ENOSYS. Some functions are actually named
12848 something starting with __ and the normal name is an alias. */
12849 #if defined __stub_$ac_func || defined __stub___$ac_func
12850 choke me
12851 #endif
12854 main ()
12856 return $ac_func ();
12858 return 0;
12860 _ACEOF
12861 rm -f conftest.$ac_objext conftest$ac_exeext
12862 if { (ac_try="$ac_link"
12863 case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12866 esac
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_link") 2>conftest.er1
12869 ac_status=$?
12870 grep -v '^ *+' conftest.er1 >conftest.err
12871 rm -f conftest.er1
12872 cat conftest.err >&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12876 { (case "(($ac_try" in
12877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12879 esac
12880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12881 (eval "$ac_try") 2>&5
12882 ac_status=$?
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; } &&
12885 { ac_try='test -s conftest$ac_exeext'
12886 { (case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12889 esac
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_try") 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 eval "$as_ac_var=yes"
12896 else
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12900 eval "$as_ac_var=no"
12903 rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12906 ac_res=`eval echo '${'$as_ac_var'}'`
12907 { echo "$as_me:$LINENO: result: $ac_res" >&5
12908 echo "${ECHO_T}$ac_res" >&6; }
12909 if test `eval echo '${'$as_ac_var'}'` = yes; then
12910 cat >>confdefs.h <<_ACEOF
12911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12912 _ACEOF
12913 break
12915 done
12919 for ac_func in memcpy bcopy
12921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 else
12927 cat >conftest.$ac_ext <<_ACEOF
12928 /* confdefs.h. */
12929 _ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12935 #define $ac_func innocuous_$ac_func
12937 /* System header to define __stub macros and hopefully few prototypes,
12938 which can conflict with char $ac_func (); below.
12939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12940 <limits.h> exists even on freestanding compilers. */
12942 #ifdef __STDC__
12943 # include <limits.h>
12944 #else
12945 # include <assert.h>
12946 #endif
12948 #undef $ac_func
12950 /* Override any GCC internal prototype to avoid an error.
12951 Use char because int might match the return type of a GCC
12952 builtin and then its argument prototype would still apply. */
12953 #ifdef __cplusplus
12954 extern "C"
12955 #endif
12956 char $ac_func ();
12957 /* The GNU C library defines this for functions which it implements
12958 to always fail with ENOSYS. Some functions are actually named
12959 something starting with __ and the normal name is an alias. */
12960 #if defined __stub_$ac_func || defined __stub___$ac_func
12961 choke me
12962 #endif
12965 main ()
12967 return $ac_func ();
12969 return 0;
12971 _ACEOF
12972 rm -f conftest.$ac_objext conftest$ac_exeext
12973 if { (ac_try="$ac_link"
12974 case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_link") 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990 esac
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; } &&
12996 { ac_try='test -s conftest$ac_exeext'
12997 { (case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000 esac
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_try") 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 eval "$as_ac_var=yes"
13007 else
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13011 eval "$as_ac_var=no"
13014 rm -f core conftest.err conftest.$ac_objext \
13015 conftest$ac_exeext conftest.$ac_ext
13017 ac_res=`eval echo '${'$as_ac_var'}'`
13018 { echo "$as_me:$LINENO: result: $ac_res" >&5
13019 echo "${ECHO_T}$ac_res" >&6; }
13020 if test `eval echo '${'$as_ac_var'}'` = yes; then
13021 cat >>confdefs.h <<_ACEOF
13022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13023 _ACEOF
13024 break
13026 done
13030 for ac_func in memmove strcmp
13032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13033 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13037 else
13038 cat >conftest.$ac_ext <<_ACEOF
13039 /* confdefs.h. */
13040 _ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13046 #define $ac_func innocuous_$ac_func
13048 /* System header to define __stub macros and hopefully few prototypes,
13049 which can conflict with char $ac_func (); below.
13050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13051 <limits.h> exists even on freestanding compilers. */
13053 #ifdef __STDC__
13054 # include <limits.h>
13055 #else
13056 # include <assert.h>
13057 #endif
13059 #undef $ac_func
13061 /* Override any GCC internal prototype to avoid an error.
13062 Use char because int might match the return type of a GCC
13063 builtin and then its argument prototype would still apply. */
13064 #ifdef __cplusplus
13065 extern "C"
13066 #endif
13067 char $ac_func ();
13068 /* The GNU C library defines this for functions which it implements
13069 to always fail with ENOSYS. Some functions are actually named
13070 something starting with __ and the normal name is an alias. */
13071 #if defined __stub_$ac_func || defined __stub___$ac_func
13072 choke me
13073 #endif
13076 main ()
13078 return $ac_func ();
13080 return 0;
13082 _ACEOF
13083 rm -f conftest.$ac_objext conftest$ac_exeext
13084 if { (ac_try="$ac_link"
13085 case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088 esac
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_link") 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13098 { (case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13101 esac
13102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_try") 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest$ac_exeext'
13108 { (case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13111 esac
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_try") 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 eval "$as_ac_var=yes"
13118 else
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13122 eval "$as_ac_var=no"
13125 rm -f core conftest.err conftest.$ac_objext \
13126 conftest$ac_exeext conftest.$ac_ext
13128 ac_res=`eval echo '${'$as_ac_var'}'`
13129 { echo "$as_me:$LINENO: result: $ac_res" >&5
13130 echo "${ECHO_T}$ac_res" >&6; }
13131 if test `eval echo '${'$as_ac_var'}'` = yes; then
13132 cat >>confdefs.h <<_ACEOF
13133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13134 _ACEOF
13137 done
13142 for ac_func in closedir opendir readdir
13144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150 cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h. */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13158 #define $ac_func innocuous_$ac_func
13160 /* System header to define __stub macros and hopefully few prototypes,
13161 which can conflict with char $ac_func (); below.
13162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13163 <limits.h> exists even on freestanding compilers. */
13165 #ifdef __STDC__
13166 # include <limits.h>
13167 #else
13168 # include <assert.h>
13169 #endif
13171 #undef $ac_func
13173 /* Override any GCC internal prototype to avoid an error.
13174 Use char because int might match the return type of a GCC
13175 builtin and then its argument prototype would still apply. */
13176 #ifdef __cplusplus
13177 extern "C"
13178 #endif
13179 char $ac_func ();
13180 /* The GNU C library defines this for functions which it implements
13181 to always fail with ENOSYS. Some functions are actually named
13182 something starting with __ and the normal name is an alias. */
13183 #if defined __stub_$ac_func || defined __stub___$ac_func
13184 choke me
13185 #endif
13188 main ()
13190 return $ac_func ();
13192 return 0;
13194 _ACEOF
13195 rm -f conftest.$ac_objext conftest$ac_exeext
13196 if { (ac_try="$ac_link"
13197 case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13200 esac
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_link") 2>conftest.er1
13203 ac_status=$?
13204 grep -v '^ *+' conftest.er1 >conftest.err
13205 rm -f conftest.er1
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13210 { (case "(($ac_try" in
13211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212 *) ac_try_echo=$ac_try;;
13213 esac
13214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13215 (eval "$ac_try") 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; } &&
13219 { ac_try='test -s conftest$ac_exeext'
13220 { (case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223 esac
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_try") 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 eval "$as_ac_var=yes"
13230 else
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13234 eval "$as_ac_var=no"
13237 rm -f core conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13240 ac_res=`eval echo '${'$as_ac_var'}'`
13241 { echo "$as_me:$LINENO: result: $ac_res" >&5
13242 echo "${ECHO_T}$ac_res" >&6; }
13243 if test `eval echo '${'$as_ac_var'}'` = yes; then
13244 cat >>confdefs.h <<_ACEOF
13245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13246 _ACEOF
13249 done
13253 if test "$WITH_LLVMGCCDIR" = "default" ; then
13254 LLVMGCC="llvm-gcc${EXEEXT}"
13255 LLVMGXX="llvm-g++${EXEEXT}"
13256 LLVMGCCCOMMAND="$LLVMGCC"
13257 LLVMGXXCOMMAND="$LLVMGXX"
13258 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13260 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13262 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13263 set dummy $LLVMGCC; ac_word=$2
13264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13266 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 else
13269 case $LLVMGCC in
13270 [\\/]* | ?:[\\/]*)
13271 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13281 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 break 2
13285 done
13286 done
13287 IFS=$as_save_IFS
13290 esac
13292 LLVMGCC=$ac_cv_path_LLVMGCC
13293 if test -n "$LLVMGCC"; then
13294 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13295 echo "${ECHO_T}$LLVMGCC" >&6; }
13296 else
13297 { echo "$as_me:$LINENO: result: no" >&5
13298 echo "${ECHO_T}no" >&6; }
13302 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13303 set dummy $LLVMGXX; ac_word=$2
13304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13306 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309 case $LLVMGXX in
13310 [\\/]* | ?:[\\/]*)
13311 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315 for as_dir in $PATH
13317 IFS=$as_save_IFS
13318 test -z "$as_dir" && as_dir=.
13319 for ac_exec_ext in '' $ac_executable_extensions; do
13320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13321 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13323 break 2
13325 done
13326 done
13327 IFS=$as_save_IFS
13330 esac
13332 LLVMGXX=$ac_cv_path_LLVMGXX
13333 if test -n "$LLVMGXX"; then
13334 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13335 echo "${ECHO_T}$LLVMGXX" >&6; }
13336 else
13337 { echo "$as_me:$LINENO: result: no" >&5
13338 echo "${ECHO_T}no" >&6; }
13342 else
13343 if test -z "$LLVMGCC"; then
13344 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13345 LLVMGCCCOMMAND="$LLVMGCC"
13347 if test -z "$LLVMGXX"; then
13348 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13349 LLVMGXXCOMMAND="$LLVMGXX"
13352 LLVMGCC=$LLVMGCC
13354 LLVMGXX=$LLVMGXX
13356 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13358 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13363 # Check whether --with-llvmcc was given.
13364 if test "${with_llvmcc+set}" = set; then
13365 withval=$with_llvmcc;
13366 else
13367 with_llvmcc=check
13370 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13371 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13372 if test "$with_llvmcc" != "check"; then
13373 if (test "$with_llvmcc" != "llvm-gcc" &&
13374 test "$with_llvmcc" != "clang" &&
13375 test "$with_llvmcc" != "none"); then
13376 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13377 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13378 { (exit 1); exit 1; }; }
13380 WITH_LLVMCC="$with_llvmcc"
13381 elif test -n "$LLVMGCC"; then
13382 WITH_LLVMCC=llvm-gcc
13383 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13384 WITH_LLVMCC=clang
13385 else
13386 WITH_LLVMCC=none
13388 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13389 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13390 LLVMCC_OPTION=$WITH_LLVMCC
13393 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13394 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13396 ICC=no
13397 IXX=no
13398 case $CC in
13399 icc*|icpc*)
13400 ICC=yes
13401 IXX=yes
13405 esac
13407 if test "$GCC" != "yes" && test "$ICC" != "yes"
13408 then
13409 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13410 echo "$as_me: error: gcc|icc required but not found" >&2;}
13411 { (exit 1); exit 1; }; }
13414 if test "$GXX" != "yes" && test "$IXX" != "yes"
13415 then
13416 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13417 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13418 { (exit 1); exit 1; }; }
13421 if test "$GCC" = "yes"
13422 then
13423 cat >conftest.$ac_ext <<_ACEOF
13424 #if !defined(__GNUC__) || __GNUC__ < 3
13425 #error Unsupported GCC version
13426 #endif
13428 _ACEOF
13429 rm -f conftest.$ac_objext
13430 if { (ac_try="$ac_compile"
13431 case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13434 esac
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_compile") 2>conftest.er1
13437 ac_status=$?
13438 grep -v '^ *+' conftest.er1 >conftest.err
13439 rm -f conftest.er1
13440 cat conftest.err >&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13444 { (case "(($ac_try" in
13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13447 esac
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449 (eval "$ac_try") 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; } &&
13453 { ac_try='test -s conftest.$ac_objext'
13454 { (case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13457 esac
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_try") 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13464 else
13465 echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13469 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13470 { (exit 1); exit 1; }; }
13473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13476 if test -z "$llvm_cv_gnu_make_command"
13477 then
13478 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13479 echo "$as_me: error: GNU Make required but not found" >&2;}
13480 { (exit 1); exit 1; }; }
13483 { echo "$as_me:$LINENO: result: ok" >&5
13484 echo "${ECHO_T}ok" >&6; }
13486 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13487 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13488 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13490 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13492 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13493 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13497 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13498 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13499 if test "${ac_cv_lib_m_sin+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13502 ac_check_lib_save_LIBS=$LIBS
13503 LIBS="-lm $LIBS"
13504 cat >conftest.$ac_ext <<_ACEOF
13505 /* confdefs.h. */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13511 /* Override any GCC internal prototype to avoid an error.
13512 Use char because int might match the return type of a GCC
13513 builtin and then its argument prototype would still apply. */
13514 #ifdef __cplusplus
13515 extern "C"
13516 #endif
13517 char sin ();
13519 main ()
13521 return sin ();
13523 return 0;
13525 _ACEOF
13526 rm -f conftest.$ac_objext conftest$ac_exeext
13527 if { (ac_try="$ac_link"
13528 case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13531 esac
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_link") 2>conftest.er1
13534 ac_status=$?
13535 grep -v '^ *+' conftest.er1 >conftest.err
13536 rm -f conftest.er1
13537 cat conftest.err >&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } &&
13540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13541 { (case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544 esac
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_try") 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; } &&
13550 { ac_try='test -s conftest$ac_exeext'
13551 { (case "(($ac_try" in
13552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13553 *) ac_try_echo=$ac_try;;
13554 esac
13555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556 (eval "$ac_try") 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 ac_cv_lib_m_sin=yes
13561 else
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13565 ac_cv_lib_m_sin=no
13568 rm -f core conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
13570 LIBS=$ac_check_lib_save_LIBS
13572 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13573 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13574 if test $ac_cv_lib_m_sin = yes; then
13575 cat >>confdefs.h <<_ACEOF
13576 #define HAVE_LIBM 1
13577 _ACEOF
13579 LIBS="-lm $LIBS"
13583 if test "$llvm_cv_os_type" = "MingW" ; then
13585 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13586 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13587 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590 ac_check_lib_save_LIBS=$LIBS
13591 LIBS="-limagehlp $LIBS"
13592 cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h. */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13601 main ()
13603 return main ();
13605 return 0;
13607 _ACEOF
13608 rm -f conftest.$ac_objext conftest$ac_exeext
13609 if { (ac_try="$ac_link"
13610 case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13613 esac
13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_link") 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13623 { (case "(($ac_try" in
13624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13626 esac
13627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_try") 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } &&
13632 { ac_try='test -s conftest$ac_exeext'
13633 { (case "(($ac_try" in
13634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635 *) ac_try_echo=$ac_try;;
13636 esac
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638 (eval "$ac_try") 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13642 ac_cv_lib_imagehlp_main=yes
13643 else
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13647 ac_cv_lib_imagehlp_main=no
13650 rm -f core conftest.err conftest.$ac_objext \
13651 conftest$ac_exeext conftest.$ac_ext
13652 LIBS=$ac_check_lib_save_LIBS
13654 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13655 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13656 if test $ac_cv_lib_imagehlp_main = yes; then
13657 cat >>confdefs.h <<_ACEOF
13658 #define HAVE_LIBIMAGEHLP 1
13659 _ACEOF
13661 LIBS="-limagehlp $LIBS"
13666 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13667 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13668 if test "${ac_cv_lib_psapi_main+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 else
13671 ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-lpsapi $LIBS"
13673 cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h. */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13682 main ()
13684 return main ();
13686 return 0;
13688 _ACEOF
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (ac_try="$ac_link"
13691 case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13694 esac
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_link") 2>conftest.er1
13697 ac_status=$?
13698 grep -v '^ *+' conftest.er1 >conftest.err
13699 rm -f conftest.er1
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
13703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; } &&
13713 { ac_try='test -s conftest$ac_exeext'
13714 { (case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13717 esac
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_try") 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 ac_cv_lib_psapi_main=yes
13724 else
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13728 ac_cv_lib_psapi_main=no
13731 rm -f core conftest.err conftest.$ac_objext \
13732 conftest$ac_exeext conftest.$ac_ext
13733 LIBS=$ac_check_lib_save_LIBS
13735 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13736 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13737 if test $ac_cv_lib_psapi_main = yes; then
13738 cat >>confdefs.h <<_ACEOF
13739 #define HAVE_LIBPSAPI 1
13740 _ACEOF
13742 LIBS="-lpsapi $LIBS"
13748 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13749 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13750 if test "${ac_cv_search_dlopen+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 else
13753 ac_func_search_save_LIBS=$LIBS
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h. */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13761 /* Override any GCC internal prototype to avoid an error.
13762 Use char because int might match the return type of a GCC
13763 builtin and then its argument prototype would still apply. */
13764 #ifdef __cplusplus
13765 extern "C"
13766 #endif
13767 char dlopen ();
13769 main ()
13771 return dlopen ();
13773 return 0;
13775 _ACEOF
13776 for ac_lib in '' dl; do
13777 if test -z "$ac_lib"; then
13778 ac_res="none required"
13779 else
13780 ac_res=-l$ac_lib
13781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13783 rm -f conftest.$ac_objext conftest$ac_exeext
13784 if { (ac_try="$ac_link"
13785 case "(($ac_try" in
13786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13787 *) ac_try_echo=$ac_try;;
13788 esac
13789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13790 (eval "$ac_link") 2>conftest.er1
13791 ac_status=$?
13792 grep -v '^ *+' conftest.er1 >conftest.err
13793 rm -f conftest.er1
13794 cat conftest.err >&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } &&
13797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13798 { (case "(($ac_try" in
13799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13800 *) ac_try_echo=$ac_try;;
13801 esac
13802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13803 (eval "$ac_try") 2>&5
13804 ac_status=$?
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; } &&
13807 { ac_try='test -s conftest$ac_exeext'
13808 { (case "(($ac_try" in
13809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13811 esac
13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813 (eval "$ac_try") 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13817 ac_cv_search_dlopen=$ac_res
13818 else
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13825 rm -f core conftest.err conftest.$ac_objext \
13826 conftest$ac_exeext
13827 if test "${ac_cv_search_dlopen+set}" = set; then
13828 break
13830 done
13831 if test "${ac_cv_search_dlopen+set}" = set; then
13833 else
13834 ac_cv_search_dlopen=no
13836 rm conftest.$ac_ext
13837 LIBS=$ac_func_search_save_LIBS
13839 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13840 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13841 ac_res=$ac_cv_search_dlopen
13842 if test "$ac_res" != no; then
13843 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13845 cat >>confdefs.h <<\_ACEOF
13846 #define HAVE_DLOPEN 1
13847 _ACEOF
13849 else
13850 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13851 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13855 if test "$llvm_cv_enable_libffi" = "yes" ; then
13856 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13857 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13858 if test "${ac_cv_search_ffi_call+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861 ac_func_search_save_LIBS=$LIBS
13862 cat >conftest.$ac_ext <<_ACEOF
13863 /* confdefs.h. */
13864 _ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13869 /* Override any GCC internal prototype to avoid an error.
13870 Use char because int might match the return type of a GCC
13871 builtin and then its argument prototype would still apply. */
13872 #ifdef __cplusplus
13873 extern "C"
13874 #endif
13875 char ffi_call ();
13877 main ()
13879 return ffi_call ();
13881 return 0;
13883 _ACEOF
13884 for ac_lib in '' ffi; do
13885 if test -z "$ac_lib"; then
13886 ac_res="none required"
13887 else
13888 ac_res=-l$ac_lib
13889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13891 rm -f conftest.$ac_objext conftest$ac_exeext
13892 if { (ac_try="$ac_link"
13893 case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_link") 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13906 { (case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13909 esac
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_try") 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; } &&
13915 { ac_try='test -s conftest$ac_exeext'
13916 { (case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13919 esac
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_try") 2>&5
13922 ac_status=$?
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; }; then
13925 ac_cv_search_ffi_call=$ac_res
13926 else
13927 echo "$as_me: failed program was:" >&5
13928 sed 's/^/| /' conftest.$ac_ext >&5
13933 rm -f core conftest.err conftest.$ac_objext \
13934 conftest$ac_exeext
13935 if test "${ac_cv_search_ffi_call+set}" = set; then
13936 break
13938 done
13939 if test "${ac_cv_search_ffi_call+set}" = set; then
13941 else
13942 ac_cv_search_ffi_call=no
13944 rm conftest.$ac_ext
13945 LIBS=$ac_func_search_save_LIBS
13947 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13948 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13949 ac_res=$ac_cv_search_ffi_call
13950 if test "$ac_res" != no; then
13951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13953 cat >>confdefs.h <<\_ACEOF
13954 #define HAVE_FFI_CALL 1
13955 _ACEOF
13957 else
13958 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13959 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13960 { (exit 1); exit 1; }; }
13965 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13966 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13967 if test "${ac_cv_search_mallinfo+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13969 else
13970 ac_func_search_save_LIBS=$LIBS
13971 cat >conftest.$ac_ext <<_ACEOF
13972 /* confdefs.h. */
13973 _ACEOF
13974 cat confdefs.h >>conftest.$ac_ext
13975 cat >>conftest.$ac_ext <<_ACEOF
13976 /* end confdefs.h. */
13978 /* Override any GCC internal prototype to avoid an error.
13979 Use char because int might match the return type of a GCC
13980 builtin and then its argument prototype would still apply. */
13981 #ifdef __cplusplus
13982 extern "C"
13983 #endif
13984 char mallinfo ();
13986 main ()
13988 return mallinfo ();
13990 return 0;
13992 _ACEOF
13993 for ac_lib in '' malloc; do
13994 if test -z "$ac_lib"; then
13995 ac_res="none required"
13996 else
13997 ac_res=-l$ac_lib
13998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14000 rm -f conftest.$ac_objext conftest$ac_exeext
14001 if { (ac_try="$ac_link"
14002 case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14005 esac
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_link") 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
14014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14015 { (case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14018 esac
14019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020 (eval "$ac_try") 2>&5
14021 ac_status=$?
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; } &&
14024 { ac_try='test -s conftest$ac_exeext'
14025 { (case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14028 esac
14029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030 (eval "$ac_try") 2>&5
14031 ac_status=$?
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14034 ac_cv_search_mallinfo=$ac_res
14035 else
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14042 rm -f core conftest.err conftest.$ac_objext \
14043 conftest$ac_exeext
14044 if test "${ac_cv_search_mallinfo+set}" = set; then
14045 break
14047 done
14048 if test "${ac_cv_search_mallinfo+set}" = set; then
14050 else
14051 ac_cv_search_mallinfo=no
14053 rm conftest.$ac_ext
14054 LIBS=$ac_func_search_save_LIBS
14056 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14057 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14058 ac_res=$ac_cv_search_mallinfo
14059 if test "$ac_res" != no; then
14060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14062 cat >>confdefs.h <<\_ACEOF
14063 #define HAVE_MALLINFO 1
14064 _ACEOF
14069 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14071 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14072 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14073 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 else
14076 ac_check_lib_save_LIBS=$LIBS
14077 LIBS="-lpthread $LIBS"
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h. */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14085 /* Override any GCC internal prototype to avoid an error.
14086 Use char because int might match the return type of a GCC
14087 builtin and then its argument prototype would still apply. */
14088 #ifdef __cplusplus
14089 extern "C"
14090 #endif
14091 char pthread_mutex_init ();
14093 main ()
14095 return pthread_mutex_init ();
14097 return 0;
14099 _ACEOF
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (ac_try="$ac_link"
14102 case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14105 esac
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_link") 2>conftest.er1
14108 ac_status=$?
14109 grep -v '^ *+' conftest.er1 >conftest.err
14110 rm -f conftest.er1
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14115 { (case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14118 esac
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_try") 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest$ac_exeext'
14125 { (case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128 esac
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_try") 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_cv_lib_pthread_pthread_mutex_init=yes
14135 else
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14139 ac_cv_lib_pthread_pthread_mutex_init=no
14142 rm -f core conftest.err conftest.$ac_objext \
14143 conftest$ac_exeext conftest.$ac_ext
14144 LIBS=$ac_check_lib_save_LIBS
14146 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14147 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14148 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14149 cat >>confdefs.h <<_ACEOF
14150 #define HAVE_LIBPTHREAD 1
14151 _ACEOF
14153 LIBS="-lpthread $LIBS"
14157 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14158 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14159 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 else
14162 ac_func_search_save_LIBS=$LIBS
14163 cat >conftest.$ac_ext <<_ACEOF
14164 /* confdefs.h. */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14170 /* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
14173 #ifdef __cplusplus
14174 extern "C"
14175 #endif
14176 char pthread_mutex_lock ();
14178 main ()
14180 return pthread_mutex_lock ();
14182 return 0;
14184 _ACEOF
14185 for ac_lib in '' pthread; do
14186 if test -z "$ac_lib"; then
14187 ac_res="none required"
14188 else
14189 ac_res=-l$ac_lib
14190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14192 rm -f conftest.$ac_objext conftest$ac_exeext
14193 if { (ac_try="$ac_link"
14194 case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197 esac
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_link") 2>conftest.er1
14200 ac_status=$?
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } &&
14206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14207 { (case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210 esac
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_try") 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try='test -s conftest$ac_exeext'
14217 { (case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14220 esac
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_try") 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
14226 ac_cv_search_pthread_mutex_lock=$ac_res
14227 else
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14234 rm -f core conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext
14236 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14237 break
14239 done
14240 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14242 else
14243 ac_cv_search_pthread_mutex_lock=no
14245 rm conftest.$ac_ext
14246 LIBS=$ac_func_search_save_LIBS
14248 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14249 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14250 ac_res=$ac_cv_search_pthread_mutex_lock
14251 if test "$ac_res" != no; then
14252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14254 cat >>confdefs.h <<\_ACEOF
14255 #define HAVE_PTHREAD_MUTEX_LOCK 1
14256 _ACEOF
14260 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14261 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14262 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14264 else
14265 ac_func_search_save_LIBS=$LIBS
14266 cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h. */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14273 /* Override any GCC internal prototype to avoid an error.
14274 Use char because int might match the return type of a GCC
14275 builtin and then its argument prototype would still apply. */
14276 #ifdef __cplusplus
14277 extern "C"
14278 #endif
14279 char pthread_rwlock_init ();
14281 main ()
14283 return pthread_rwlock_init ();
14285 return 0;
14287 _ACEOF
14288 for ac_lib in '' pthread; do
14289 if test -z "$ac_lib"; then
14290 ac_res="none required"
14291 else
14292 ac_res=-l$ac_lib
14293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14295 rm -f conftest.$ac_objext conftest$ac_exeext
14296 if { (ac_try="$ac_link"
14297 case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14300 esac
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_link") 2>conftest.er1
14303 ac_status=$?
14304 grep -v '^ *+' conftest.er1 >conftest.err
14305 rm -f conftest.er1
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } &&
14309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14310 { (case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14313 esac
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315 (eval "$ac_try") 2>&5
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; } &&
14319 { ac_try='test -s conftest$ac_exeext'
14320 { (case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14323 esac
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_try") 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
14329 ac_cv_search_pthread_rwlock_init=$ac_res
14330 else
14331 echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14337 rm -f core conftest.err conftest.$ac_objext \
14338 conftest$ac_exeext
14339 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14340 break
14342 done
14343 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14345 else
14346 ac_cv_search_pthread_rwlock_init=no
14348 rm conftest.$ac_ext
14349 LIBS=$ac_func_search_save_LIBS
14351 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14352 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14353 ac_res=$ac_cv_search_pthread_rwlock_init
14354 if test "$ac_res" != no; then
14355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14357 cat >>confdefs.h <<\_ACEOF
14358 #define HAVE_PTHREAD_RWLOCK_INIT 1
14359 _ACEOF
14363 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14364 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14365 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 else
14368 ac_func_search_save_LIBS=$LIBS
14369 cat >conftest.$ac_ext <<_ACEOF
14370 /* confdefs.h. */
14371 _ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h. */
14376 /* Override any GCC internal prototype to avoid an error.
14377 Use char because int might match the return type of a GCC
14378 builtin and then its argument prototype would still apply. */
14379 #ifdef __cplusplus
14380 extern "C"
14381 #endif
14382 char pthread_getspecific ();
14384 main ()
14386 return pthread_getspecific ();
14388 return 0;
14390 _ACEOF
14391 for ac_lib in '' pthread; do
14392 if test -z "$ac_lib"; then
14393 ac_res="none required"
14394 else
14395 ac_res=-l$ac_lib
14396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14398 rm -f conftest.$ac_objext conftest$ac_exeext
14399 if { (ac_try="$ac_link"
14400 case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14403 esac
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_link") 2>conftest.er1
14406 ac_status=$?
14407 grep -v '^ *+' conftest.er1 >conftest.err
14408 rm -f conftest.er1
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14413 { (case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14416 esac
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_try") 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; } &&
14422 { ac_try='test -s conftest$ac_exeext'
14423 { (case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14426 esac
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_try") 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_cv_search_pthread_getspecific=$ac_res
14433 else
14434 echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14440 rm -f core conftest.err conftest.$ac_objext \
14441 conftest$ac_exeext
14442 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14443 break
14445 done
14446 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14448 else
14449 ac_cv_search_pthread_getspecific=no
14451 rm conftest.$ac_ext
14452 LIBS=$ac_func_search_save_LIBS
14454 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14455 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14456 ac_res=$ac_cv_search_pthread_getspecific
14457 if test "$ac_res" != no; then
14458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14460 cat >>confdefs.h <<\_ACEOF
14461 #define HAVE_PTHREAD_GETSPECIFIC 1
14462 _ACEOF
14469 # Check whether --with-udis86 was given.
14470 if test "${with_udis86+set}" = set; then
14471 withval=$with_udis86;
14472 USE_UDIS86=1
14474 case "$withval" in
14475 /usr/lib|yes) ;;
14476 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14477 esac
14479 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14480 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14481 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 else
14484 ac_check_lib_save_LIBS=$LIBS
14485 LIBS="-ludis86 $LIBS"
14486 cat >conftest.$ac_ext <<_ACEOF
14487 /* confdefs.h. */
14488 _ACEOF
14489 cat confdefs.h >>conftest.$ac_ext
14490 cat >>conftest.$ac_ext <<_ACEOF
14491 /* end confdefs.h. */
14493 /* Override any GCC internal prototype to avoid an error.
14494 Use char because int might match the return type of a GCC
14495 builtin and then its argument prototype would still apply. */
14496 #ifdef __cplusplus
14497 extern "C"
14498 #endif
14499 char ud_init ();
14501 main ()
14503 return ud_init ();
14505 return 0;
14507 _ACEOF
14508 rm -f conftest.$ac_objext conftest$ac_exeext
14509 if { (ac_try="$ac_link"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513 esac
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_link") 2>conftest.er1
14516 ac_status=$?
14517 grep -v '^ *+' conftest.er1 >conftest.err
14518 rm -f conftest.er1
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
14522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14523 { (case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14526 esac
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_try") 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try='test -s conftest$ac_exeext'
14533 { (case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14536 esac
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_try") 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 ac_cv_lib_udis86_ud_init=yes
14543 else
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14547 ac_cv_lib_udis86_ud_init=no
14550 rm -f core conftest.err conftest.$ac_objext \
14551 conftest$ac_exeext conftest.$ac_ext
14552 LIBS=$ac_check_lib_save_LIBS
14554 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14555 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14556 if test $ac_cv_lib_udis86_ud_init = yes; then
14557 cat >>confdefs.h <<_ACEOF
14558 #define HAVE_LIBUDIS86 1
14559 _ACEOF
14561 LIBS="-ludis86 $LIBS"
14563 else
14565 echo "Error! You need to have libudis86 around."
14566 exit -1
14571 else
14572 USE_UDIS86=0
14577 cat >>confdefs.h <<_ACEOF
14578 #define USE_UDIS86 $USE_UDIS86
14579 _ACEOF
14583 # Check whether --with-oprofile was given.
14584 if test "${with_oprofile+set}" = set; then
14585 withval=$with_oprofile;
14586 USE_OPROFILE=1
14588 case "$withval" in
14589 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14590 no) llvm_cv_oppath=
14591 USE_OPROFILE=0
14593 *) llvm_cv_oppath="${withval}/lib/oprofile"
14594 CPPFLAGS="-I${withval}/include";;
14595 esac
14596 if test -n "$llvm_cv_oppath" ; then
14597 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14598 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14599 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14600 if test "${ac_cv_search_bfd_init+set}" = set; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
14602 else
14603 ac_func_search_save_LIBS=$LIBS
14604 cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h. */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14611 /* Override any GCC internal prototype to avoid an error.
14612 Use char because int might match the return type of a GCC
14613 builtin and then its argument prototype would still apply. */
14614 #ifdef __cplusplus
14615 extern "C"
14616 #endif
14617 char bfd_init ();
14619 main ()
14621 return bfd_init ();
14623 return 0;
14625 _ACEOF
14626 for ac_lib in '' bfd; do
14627 if test -z "$ac_lib"; then
14628 ac_res="none required"
14629 else
14630 ac_res=-l$ac_lib
14631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14633 rm -f conftest.$ac_objext conftest$ac_exeext
14634 if { (ac_try="$ac_link"
14635 case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14638 esac
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_link") 2>conftest.er1
14641 ac_status=$?
14642 grep -v '^ *+' conftest.er1 >conftest.err
14643 rm -f conftest.er1
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
14647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14648 { (case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14651 esac
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_try") 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; } &&
14657 { ac_try='test -s conftest$ac_exeext'
14658 { (case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14661 esac
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_try") 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
14667 ac_cv_search_bfd_init=$ac_res
14668 else
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14675 rm -f core conftest.err conftest.$ac_objext \
14676 conftest$ac_exeext
14677 if test "${ac_cv_search_bfd_init+set}" = set; then
14678 break
14680 done
14681 if test "${ac_cv_search_bfd_init+set}" = set; then
14683 else
14684 ac_cv_search_bfd_init=no
14686 rm conftest.$ac_ext
14687 LIBS=$ac_func_search_save_LIBS
14689 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14690 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14691 ac_res=$ac_cv_search_bfd_init
14692 if test "$ac_res" != no; then
14693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14697 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14698 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14699 if test "${ac_cv_search_op_open_agent+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 else
14702 ac_func_search_save_LIBS=$LIBS
14703 cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h. */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14710 /* Override any GCC internal prototype to avoid an error.
14711 Use char because int might match the return type of a GCC
14712 builtin and then its argument prototype would still apply. */
14713 #ifdef __cplusplus
14714 extern "C"
14715 #endif
14716 char op_open_agent ();
14718 main ()
14720 return op_open_agent ();
14722 return 0;
14724 _ACEOF
14725 for ac_lib in '' opagent; do
14726 if test -z "$ac_lib"; then
14727 ac_res="none required"
14728 else
14729 ac_res=-l$ac_lib
14730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (ac_try="$ac_link"
14734 case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_link") 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14747 { (case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14750 esac
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_try") 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try='test -s conftest$ac_exeext'
14757 { (case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14760 esac
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_try") 2>&5
14763 ac_status=$?
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 ac_cv_search_op_open_agent=$ac_res
14767 else
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14774 rm -f core conftest.err conftest.$ac_objext \
14775 conftest$ac_exeext
14776 if test "${ac_cv_search_op_open_agent+set}" = set; then
14777 break
14779 done
14780 if test "${ac_cv_search_op_open_agent+set}" = set; then
14782 else
14783 ac_cv_search_op_open_agent=no
14785 rm conftest.$ac_ext
14786 LIBS=$ac_func_search_save_LIBS
14788 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14789 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14790 ac_res=$ac_cv_search_op_open_agent
14791 if test "$ac_res" != no; then
14792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14794 else
14796 echo "Error! You need to have libopagent around."
14797 exit -1
14801 if test "${ac_cv_header_opagent_h+set}" = set; then
14802 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14803 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14804 if test "${ac_cv_header_opagent_h+set}" = set; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14808 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14809 else
14810 # Is the header compilable?
14811 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14812 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h. */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819 $ac_includes_default
14820 #include <opagent.h>
14821 _ACEOF
14822 rm -f conftest.$ac_objext
14823 if { (ac_try="$ac_compile"
14824 case "(($ac_try" in
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14827 esac
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_compile") 2>conftest.er1
14830 ac_status=$?
14831 grep -v '^ *+' conftest.er1 >conftest.err
14832 rm -f conftest.er1
14833 cat conftest.err >&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } &&
14836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14837 { (case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14840 esac
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_try") 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try='test -s conftest.$ac_objext'
14847 { (case "(($ac_try" in
14848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849 *) ac_try_echo=$ac_try;;
14850 esac
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852 (eval "$ac_try") 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14856 ac_header_compiler=yes
14857 else
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14861 ac_header_compiler=no
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14866 echo "${ECHO_T}$ac_header_compiler" >&6; }
14868 # Is the header present?
14869 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14870 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14871 cat >conftest.$ac_ext <<_ACEOF
14872 /* confdefs.h. */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 #include <opagent.h>
14878 _ACEOF
14879 if { (ac_try="$ac_cpp conftest.$ac_ext"
14880 case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14886 ac_status=$?
14887 grep -v '^ *+' conftest.er1 >conftest.err
14888 rm -f conftest.er1
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } >/dev/null; then
14892 if test -s conftest.err; then
14893 ac_cpp_err=$ac_c_preproc_warn_flag
14894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14895 else
14896 ac_cpp_err=
14898 else
14899 ac_cpp_err=yes
14901 if test -z "$ac_cpp_err"; then
14902 ac_header_preproc=yes
14903 else
14904 echo "$as_me: failed program was:" >&5
14905 sed 's/^/| /' conftest.$ac_ext >&5
14907 ac_header_preproc=no
14910 rm -f conftest.err conftest.$ac_ext
14911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14912 echo "${ECHO_T}$ac_header_preproc" >&6; }
14914 # So? What about this header?
14915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14916 yes:no: )
14917 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14918 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14920 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14921 ac_header_preproc=yes
14923 no:yes:* )
14924 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14925 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14927 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14929 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14931 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14933 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14934 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14935 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14936 ( cat <<\_ASBOX
14937 ## ----------------------------------- ##
14938 ## Report this to llvmbugs@cs.uiuc.edu ##
14939 ## ----------------------------------- ##
14940 _ASBOX
14941 ) | sed "s/^/$as_me: WARNING: /" >&2
14943 esac
14944 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14945 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14946 if test "${ac_cv_header_opagent_h+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 else
14949 ac_cv_header_opagent_h=$ac_header_preproc
14951 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14952 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14955 if test $ac_cv_header_opagent_h = yes; then
14957 else
14959 echo "Error! You need to have opagent.h around."
14960 exit -1
14967 else
14969 USE_OPROFILE=0
14975 cat >>confdefs.h <<_ACEOF
14976 #define USE_OPROFILE $USE_OPROFILE
14977 _ACEOF
14986 ac_header_dirent=no
14987 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14988 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14989 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14990 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994 cat >conftest.$ac_ext <<_ACEOF
14995 /* confdefs.h. */
14996 _ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 #include <sys/types.h>
15001 #include <$ac_hdr>
15004 main ()
15006 if ((DIR *) 0)
15007 return 0;
15009 return 0;
15011 _ACEOF
15012 rm -f conftest.$ac_objext
15013 if { (ac_try="$ac_compile"
15014 case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15017 esac
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_compile") 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15027 { (case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15030 esac
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_try") 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest.$ac_objext'
15037 { (case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15040 esac
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_try") 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046 eval "$as_ac_Header=yes"
15047 else
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15051 eval "$as_ac_Header=no"
15054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 ac_res=`eval echo '${'$as_ac_Header'}'`
15057 { echo "$as_me:$LINENO: result: $ac_res" >&5
15058 echo "${ECHO_T}$ac_res" >&6; }
15059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15060 cat >>confdefs.h <<_ACEOF
15061 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15062 _ACEOF
15064 ac_header_dirent=$ac_hdr; break
15067 done
15068 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15069 if test $ac_header_dirent = dirent.h; then
15070 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15071 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15072 if test "${ac_cv_search_opendir+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 else
15075 ac_func_search_save_LIBS=$LIBS
15076 cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h. */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15083 /* Override any GCC internal prototype to avoid an error.
15084 Use char because int might match the return type of a GCC
15085 builtin and then its argument prototype would still apply. */
15086 #ifdef __cplusplus
15087 extern "C"
15088 #endif
15089 char opendir ();
15091 main ()
15093 return opendir ();
15095 return 0;
15097 _ACEOF
15098 for ac_lib in '' dir; do
15099 if test -z "$ac_lib"; then
15100 ac_res="none required"
15101 else
15102 ac_res=-l$ac_lib
15103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15105 rm -f conftest.$ac_objext conftest$ac_exeext
15106 if { (ac_try="$ac_link"
15107 case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15110 esac
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_link") 2>conftest.er1
15113 ac_status=$?
15114 grep -v '^ *+' conftest.er1 >conftest.err
15115 rm -f conftest.er1
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120 { (case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123 esac
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_try") 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try='test -s conftest$ac_exeext'
15130 { (case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15133 esac
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_try") 2>&5
15136 ac_status=$?
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
15139 ac_cv_search_opendir=$ac_res
15140 else
15141 echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15147 rm -f core conftest.err conftest.$ac_objext \
15148 conftest$ac_exeext
15149 if test "${ac_cv_search_opendir+set}" = set; then
15150 break
15152 done
15153 if test "${ac_cv_search_opendir+set}" = set; then
15155 else
15156 ac_cv_search_opendir=no
15158 rm conftest.$ac_ext
15159 LIBS=$ac_func_search_save_LIBS
15161 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15162 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15163 ac_res=$ac_cv_search_opendir
15164 if test "$ac_res" != no; then
15165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15169 else
15170 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15171 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15172 if test "${ac_cv_search_opendir+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175 ac_func_search_save_LIBS=$LIBS
15176 cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h. */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15183 /* Override any GCC internal prototype to avoid an error.
15184 Use char because int might match the return type of a GCC
15185 builtin and then its argument prototype would still apply. */
15186 #ifdef __cplusplus
15187 extern "C"
15188 #endif
15189 char opendir ();
15191 main ()
15193 return opendir ();
15195 return 0;
15197 _ACEOF
15198 for ac_lib in '' x; do
15199 if test -z "$ac_lib"; then
15200 ac_res="none required"
15201 else
15202 ac_res=-l$ac_lib
15203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210 esac
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_link") 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15220 { (case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15223 esac
15224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225 (eval "$ac_try") 2>&5
15226 ac_status=$?
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; } &&
15229 { ac_try='test -s conftest$ac_exeext'
15230 { (case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_try") 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; }; then
15239 ac_cv_search_opendir=$ac_res
15240 else
15241 echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15247 rm -f core conftest.err conftest.$ac_objext \
15248 conftest$ac_exeext
15249 if test "${ac_cv_search_opendir+set}" = set; then
15250 break
15252 done
15253 if test "${ac_cv_search_opendir+set}" = set; then
15255 else
15256 ac_cv_search_opendir=no
15258 rm conftest.$ac_ext
15259 LIBS=$ac_func_search_save_LIBS
15261 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15262 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15263 ac_res=$ac_cv_search_opendir
15264 if test "$ac_res" != no; then
15265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15271 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15272 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15273 if test "${ac_cv_header_mmap_anon+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276 ac_ext=c
15277 ac_cpp='$CPP $CPPFLAGS'
15278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15282 cat >conftest.$ac_ext <<_ACEOF
15283 /* confdefs.h. */
15284 _ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15288 #include <sys/mman.h>
15289 #include <unistd.h>
15290 #include <fcntl.h>
15292 main ()
15294 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15296 return 0;
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (ac_try="$ac_compile"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15304 esac
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_compile") 2>conftest.er1
15307 ac_status=$?
15308 grep -v '^ *+' conftest.er1 >conftest.err
15309 rm -f conftest.er1
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
15313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15314 { (case "(($ac_try" in
15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15317 esac
15318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15319 (eval "$ac_try") 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; } &&
15323 { ac_try='test -s conftest.$ac_objext'
15324 { (case "(($ac_try" in
15325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15327 esac
15328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_try") 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_cv_header_mmap_anon=yes
15334 else
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 ac_cv_header_mmap_anon=no
15341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15342 ac_ext=c
15343 ac_cpp='$CPP $CPPFLAGS'
15344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15350 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15351 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15352 if test "$ac_cv_header_mmap_anon" = yes; then
15354 cat >>confdefs.h <<\_ACEOF
15355 #define HAVE_MMAP_ANONYMOUS 1
15356 _ACEOF
15360 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15361 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15362 if test "${ac_cv_header_stat_broken+set}" = set; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15364 else
15365 cat >conftest.$ac_ext <<_ACEOF
15366 /* confdefs.h. */
15367 _ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15371 #include <sys/types.h>
15372 #include <sys/stat.h>
15374 #if defined S_ISBLK && defined S_IFDIR
15375 # if S_ISBLK (S_IFDIR)
15376 You lose.
15377 # endif
15378 #endif
15380 #if defined S_ISBLK && defined S_IFCHR
15381 # if S_ISBLK (S_IFCHR)
15382 You lose.
15383 # endif
15384 #endif
15386 #if defined S_ISLNK && defined S_IFREG
15387 # if S_ISLNK (S_IFREG)
15388 You lose.
15389 # endif
15390 #endif
15392 #if defined S_ISSOCK && defined S_IFREG
15393 # if S_ISSOCK (S_IFREG)
15394 You lose.
15395 # endif
15396 #endif
15398 _ACEOF
15399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15400 $EGREP "You lose" >/dev/null 2>&1; then
15401 ac_cv_header_stat_broken=yes
15402 else
15403 ac_cv_header_stat_broken=no
15405 rm -f conftest*
15408 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15409 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15410 if test $ac_cv_header_stat_broken = yes; then
15412 cat >>confdefs.h <<\_ACEOF
15413 #define STAT_MACROS_BROKEN 1
15414 _ACEOF
15418 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15420 if test "${ac_cv_header_stdc+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15422 else
15423 cat >conftest.$ac_ext <<_ACEOF
15424 /* confdefs.h. */
15425 _ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15429 #include <stdlib.h>
15430 #include <stdarg.h>
15431 #include <string.h>
15432 #include <float.h>
15435 main ()
15439 return 0;
15441 _ACEOF
15442 rm -f conftest.$ac_objext
15443 if { (ac_try="$ac_compile"
15444 case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15447 esac
15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_compile") 2>conftest.er1
15450 ac_status=$?
15451 grep -v '^ *+' conftest.er1 >conftest.err
15452 rm -f conftest.er1
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15457 { (case "(($ac_try" in
15458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15460 esac
15461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15462 (eval "$ac_try") 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest.$ac_objext'
15467 { (case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15470 esac
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_try") 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_cv_header_stdc=yes
15477 else
15478 echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15481 ac_cv_header_stdc=no
15484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15486 if test $ac_cv_header_stdc = yes; then
15487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15488 cat >conftest.$ac_ext <<_ACEOF
15489 /* confdefs.h. */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494 #include <string.h>
15496 _ACEOF
15497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15498 $EGREP "memchr" >/dev/null 2>&1; then
15500 else
15501 ac_cv_header_stdc=no
15503 rm -f conftest*
15507 if test $ac_cv_header_stdc = yes; then
15508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h. */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 #include <stdlib.h>
15517 _ACEOF
15518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15519 $EGREP "free" >/dev/null 2>&1; then
15521 else
15522 ac_cv_header_stdc=no
15524 rm -f conftest*
15528 if test $ac_cv_header_stdc = yes; then
15529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15530 if test "$cross_compiling" = yes; then
15532 else
15533 cat >conftest.$ac_ext <<_ACEOF
15534 /* confdefs.h. */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539 #include <ctype.h>
15540 #include <stdlib.h>
15541 #if ((' ' & 0x0FF) == 0x020)
15542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15543 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15544 #else
15545 # define ISLOWER(c) \
15546 (('a' <= (c) && (c) <= 'i') \
15547 || ('j' <= (c) && (c) <= 'r') \
15548 || ('s' <= (c) && (c) <= 'z'))
15549 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15550 #endif
15552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15554 main ()
15556 int i;
15557 for (i = 0; i < 256; i++)
15558 if (XOR (islower (i), ISLOWER (i))
15559 || toupper (i) != TOUPPER (i))
15560 return 2;
15561 return 0;
15563 _ACEOF
15564 rm -f conftest$ac_exeext
15565 if { (ac_try="$ac_link"
15566 case "(($ac_try" in
15567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15569 esac
15570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571 (eval "$ac_link") 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
15585 else
15586 echo "$as_me: program exited with status $ac_status" >&5
15587 echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15590 ( exit $ac_status )
15591 ac_cv_header_stdc=no
15593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15599 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15600 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15601 if test $ac_cv_header_stdc = yes; then
15603 cat >>confdefs.h <<\_ACEOF
15604 #define STDC_HEADERS 1
15605 _ACEOF
15609 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15610 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15611 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 else
15614 cat >conftest.$ac_ext <<_ACEOF
15615 /* confdefs.h. */
15616 _ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15620 #include <sys/types.h>
15621 #include <sys/wait.h>
15622 #ifndef WEXITSTATUS
15623 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15624 #endif
15625 #ifndef WIFEXITED
15626 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15627 #endif
15630 main ()
15632 int s;
15633 wait (&s);
15634 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15636 return 0;
15638 _ACEOF
15639 rm -f conftest.$ac_objext
15640 if { (ac_try="$ac_compile"
15641 case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15644 esac
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_compile") 2>conftest.er1
15647 ac_status=$?
15648 grep -v '^ *+' conftest.er1 >conftest.err
15649 rm -f conftest.er1
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
15653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15654 { (case "(($ac_try" in
15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656 *) ac_try_echo=$ac_try;;
15657 esac
15658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15659 (eval "$ac_try") 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; } &&
15663 { ac_try='test -s conftest.$ac_objext'
15664 { (case "(($ac_try" in
15665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666 *) ac_try_echo=$ac_try;;
15667 esac
15668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669 (eval "$ac_try") 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15673 ac_cv_header_sys_wait_h=yes
15674 else
15675 echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 ac_cv_header_sys_wait_h=no
15681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15684 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15685 if test $ac_cv_header_sys_wait_h = yes; then
15687 cat >>confdefs.h <<\_ACEOF
15688 #define HAVE_SYS_WAIT_H 1
15689 _ACEOF
15693 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15694 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15695 if test "${ac_cv_header_time+set}" = set; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 else
15698 cat >conftest.$ac_ext <<_ACEOF
15699 /* confdefs.h. */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 #include <sys/types.h>
15705 #include <sys/time.h>
15706 #include <time.h>
15709 main ()
15711 if ((struct tm *) 0)
15712 return 0;
15714 return 0;
15716 _ACEOF
15717 rm -f conftest.$ac_objext
15718 if { (ac_try="$ac_compile"
15719 case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722 esac
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_compile") 2>conftest.er1
15725 ac_status=$?
15726 grep -v '^ *+' conftest.er1 >conftest.err
15727 rm -f conftest.er1
15728 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
15731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15738 ac_status=$?
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; } &&
15741 { ac_try='test -s conftest.$ac_objext'
15742 { (case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15745 esac
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_try") 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 ac_cv_header_time=yes
15752 else
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15756 ac_cv_header_time=no
15759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15761 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15762 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15763 if test $ac_cv_header_time = yes; then
15765 cat >>confdefs.h <<\_ACEOF
15766 #define TIME_WITH_SYS_TIME 1
15767 _ACEOF
15778 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 ac_res=`eval echo '${'$as_ac_Header'}'`
15788 { echo "$as_me:$LINENO: result: $ac_res" >&5
15789 echo "${ECHO_T}$ac_res" >&6; }
15790 else
15791 # Is the header compilable?
15792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15794 cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h. */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 $ac_includes_default
15801 #include <$ac_header>
15802 _ACEOF
15803 rm -f conftest.$ac_objext
15804 if { (ac_try="$ac_compile"
15805 case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15808 esac
15809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810 (eval "$ac_compile") 2>conftest.er1
15811 ac_status=$?
15812 grep -v '^ *+' conftest.er1 >conftest.err
15813 rm -f conftest.er1
15814 cat conftest.err >&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } &&
15817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15818 { (case "(($ac_try" in
15819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820 *) ac_try_echo=$ac_try;;
15821 esac
15822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823 (eval "$ac_try") 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; } &&
15827 { ac_try='test -s conftest.$ac_objext'
15828 { (case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15831 esac
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_try") 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 ac_header_compiler=yes
15838 else
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15842 ac_header_compiler=no
15845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15847 echo "${ECHO_T}$ac_header_compiler" >&6; }
15849 # Is the header present?
15850 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15852 cat >conftest.$ac_ext <<_ACEOF
15853 /* confdefs.h. */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15858 #include <$ac_header>
15859 _ACEOF
15860 if { (ac_try="$ac_cpp conftest.$ac_ext"
15861 case "(($ac_try" in
15862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863 *) ac_try_echo=$ac_try;;
15864 esac
15865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15867 ac_status=$?
15868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } >/dev/null; then
15873 if test -s conftest.err; then
15874 ac_cpp_err=$ac_c_preproc_warn_flag
15875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15876 else
15877 ac_cpp_err=
15879 else
15880 ac_cpp_err=yes
15882 if test -z "$ac_cpp_err"; then
15883 ac_header_preproc=yes
15884 else
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15888 ac_header_preproc=no
15891 rm -f conftest.err conftest.$ac_ext
15892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15893 echo "${ECHO_T}$ac_header_preproc" >&6; }
15895 # So? What about this header?
15896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15897 yes:no: )
15898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15902 ac_header_preproc=yes
15904 no:yes:* )
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15917 ( cat <<\_ASBOX
15918 ## ----------------------------------- ##
15919 ## Report this to llvmbugs@cs.uiuc.edu ##
15920 ## ----------------------------------- ##
15921 _ASBOX
15922 ) | sed "s/^/$as_me: WARNING: /" >&2
15924 esac
15925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15929 else
15930 eval "$as_ac_Header=\$ac_header_preproc"
15932 ac_res=`eval echo '${'$as_ac_Header'}'`
15933 { echo "$as_me:$LINENO: result: $ac_res" >&5
15934 echo "${ECHO_T}$ac_res" >&6; }
15937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15938 cat >>confdefs.h <<_ACEOF
15939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15940 _ACEOF
15944 done
15952 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 ac_res=`eval echo '${'$as_ac_Header'}'`
15962 { echo "$as_me:$LINENO: result: $ac_res" >&5
15963 echo "${ECHO_T}$ac_res" >&6; }
15964 else
15965 # Is the header compilable?
15966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15968 cat >conftest.$ac_ext <<_ACEOF
15969 /* confdefs.h. */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15974 $ac_includes_default
15975 #include <$ac_header>
15976 _ACEOF
15977 rm -f conftest.$ac_objext
15978 if { (ac_try="$ac_compile"
15979 case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15982 esac
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_compile") 2>conftest.er1
15985 ac_status=$?
15986 grep -v '^ *+' conftest.er1 >conftest.err
15987 rm -f conftest.er1
15988 cat conftest.err >&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } &&
15991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15992 { (case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_try") 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try='test -s conftest.$ac_objext'
16002 { (case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16005 esac
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_try") 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16011 ac_header_compiler=yes
16012 else
16013 echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.$ac_ext >&5
16016 ac_header_compiler=no
16019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16021 echo "${ECHO_T}$ac_header_compiler" >&6; }
16023 # Is the header present?
16024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16026 cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h. */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032 #include <$ac_header>
16033 _ACEOF
16034 if { (ac_try="$ac_cpp conftest.$ac_ext"
16035 case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16038 esac
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16041 ac_status=$?
16042 grep -v '^ *+' conftest.er1 >conftest.err
16043 rm -f conftest.er1
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } >/dev/null; then
16047 if test -s conftest.err; then
16048 ac_cpp_err=$ac_c_preproc_warn_flag
16049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16050 else
16051 ac_cpp_err=
16053 else
16054 ac_cpp_err=yes
16056 if test -z "$ac_cpp_err"; then
16057 ac_header_preproc=yes
16058 else
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16062 ac_header_preproc=no
16065 rm -f conftest.err conftest.$ac_ext
16066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16067 echo "${ECHO_T}$ac_header_preproc" >&6; }
16069 # So? What about this header?
16070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16071 yes:no: )
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16076 ac_header_preproc=yes
16078 no:yes:* )
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16091 ( cat <<\_ASBOX
16092 ## ----------------------------------- ##
16093 ## Report this to llvmbugs@cs.uiuc.edu ##
16094 ## ----------------------------------- ##
16095 _ASBOX
16096 ) | sed "s/^/$as_me: WARNING: /" >&2
16098 esac
16099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16103 else
16104 eval "$as_ac_Header=\$ac_header_preproc"
16106 ac_res=`eval echo '${'$as_ac_Header'}'`
16107 { echo "$as_me:$LINENO: result: $ac_res" >&5
16108 echo "${ECHO_T}$ac_res" >&6; }
16111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16112 cat >>confdefs.h <<_ACEOF
16113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16114 _ACEOF
16118 done
16122 for ac_header in utime.h windows.h
16124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16129 echo $ECHO_N "(cached) $ECHO_C" >&6
16131 ac_res=`eval echo '${'$as_ac_Header'}'`
16132 { echo "$as_me:$LINENO: result: $ac_res" >&5
16133 echo "${ECHO_T}$ac_res" >&6; }
16134 else
16135 # Is the header compilable?
16136 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16138 cat >conftest.$ac_ext <<_ACEOF
16139 /* confdefs.h. */
16140 _ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h. */
16144 $ac_includes_default
16145 #include <$ac_header>
16146 _ACEOF
16147 rm -f conftest.$ac_objext
16148 if { (ac_try="$ac_compile"
16149 case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16152 esac
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_compile") 2>conftest.er1
16155 ac_status=$?
16156 grep -v '^ *+' conftest.er1 >conftest.err
16157 rm -f conftest.er1
16158 cat conftest.err >&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } &&
16161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16162 { (case "(($ac_try" in
16163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164 *) ac_try_echo=$ac_try;;
16165 esac
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167 (eval "$ac_try") 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; } &&
16171 { ac_try='test -s conftest.$ac_objext'
16172 { (case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16175 esac
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_try") 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_header_compiler=yes
16182 else
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16186 ac_header_compiler=no
16189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16191 echo "${ECHO_T}$ac_header_compiler" >&6; }
16193 # Is the header present?
16194 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16196 cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h. */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 #include <$ac_header>
16203 _ACEOF
16204 if { (ac_try="$ac_cpp conftest.$ac_ext"
16205 case "(($ac_try" in
16206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207 *) ac_try_echo=$ac_try;;
16208 esac
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16211 ac_status=$?
16212 grep -v '^ *+' conftest.er1 >conftest.err
16213 rm -f conftest.er1
16214 cat conftest.err >&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } >/dev/null; then
16217 if test -s conftest.err; then
16218 ac_cpp_err=$ac_c_preproc_warn_flag
16219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16220 else
16221 ac_cpp_err=
16223 else
16224 ac_cpp_err=yes
16226 if test -z "$ac_cpp_err"; then
16227 ac_header_preproc=yes
16228 else
16229 echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16232 ac_header_preproc=no
16235 rm -f conftest.err conftest.$ac_ext
16236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16237 echo "${ECHO_T}$ac_header_preproc" >&6; }
16239 # So? What about this header?
16240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16241 yes:no: )
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16246 ac_header_preproc=yes
16248 no:yes:* )
16249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16261 ( cat <<\_ASBOX
16262 ## ----------------------------------- ##
16263 ## Report this to llvmbugs@cs.uiuc.edu ##
16264 ## ----------------------------------- ##
16265 _ASBOX
16266 ) | sed "s/^/$as_me: WARNING: /" >&2
16268 esac
16269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16273 else
16274 eval "$as_ac_Header=\$ac_header_preproc"
16276 ac_res=`eval echo '${'$as_ac_Header'}'`
16277 { echo "$as_me:$LINENO: result: $ac_res" >&5
16278 echo "${ECHO_T}$ac_res" >&6; }
16281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16282 cat >>confdefs.h <<_ACEOF
16283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16284 _ACEOF
16288 done
16295 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16304 ac_res=`eval echo '${'$as_ac_Header'}'`
16305 { echo "$as_me:$LINENO: result: $ac_res" >&5
16306 echo "${ECHO_T}$ac_res" >&6; }
16307 else
16308 # Is the header compilable?
16309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16311 cat >conftest.$ac_ext <<_ACEOF
16312 /* confdefs.h. */
16313 _ACEOF
16314 cat confdefs.h >>conftest.$ac_ext
16315 cat >>conftest.$ac_ext <<_ACEOF
16316 /* end confdefs.h. */
16317 $ac_includes_default
16318 #include <$ac_header>
16319 _ACEOF
16320 rm -f conftest.$ac_objext
16321 if { (ac_try="$ac_compile"
16322 case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16325 esac
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_compile") 2>conftest.er1
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16335 { (case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16338 esac
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_try") 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; } &&
16344 { ac_try='test -s conftest.$ac_objext'
16345 { (case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16348 esac
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_try") 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16354 ac_header_compiler=yes
16355 else
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 ac_header_compiler=no
16362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16364 echo "${ECHO_T}$ac_header_compiler" >&6; }
16366 # Is the header present?
16367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 <$ac_header>
16376 _ACEOF
16377 if { (ac_try="$ac_cpp conftest.$ac_ext"
16378 case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16381 esac
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16384 ac_status=$?
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } >/dev/null; then
16390 if test -s conftest.err; then
16391 ac_cpp_err=$ac_c_preproc_warn_flag
16392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16393 else
16394 ac_cpp_err=
16396 else
16397 ac_cpp_err=yes
16399 if test -z "$ac_cpp_err"; then
16400 ac_header_preproc=yes
16401 else
16402 echo "$as_me: failed program was:" >&5
16403 sed 's/^/| /' conftest.$ac_ext >&5
16405 ac_header_preproc=no
16408 rm -f conftest.err conftest.$ac_ext
16409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16410 echo "${ECHO_T}$ac_header_preproc" >&6; }
16412 # So? What about this header?
16413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16414 yes:no: )
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16419 ac_header_preproc=yes
16421 no:yes:* )
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16434 ( cat <<\_ASBOX
16435 ## ----------------------------------- ##
16436 ## Report this to llvmbugs@cs.uiuc.edu ##
16437 ## ----------------------------------- ##
16438 _ASBOX
16439 ) | sed "s/^/$as_me: WARNING: /" >&2
16441 esac
16442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 else
16447 eval "$as_ac_Header=\$ac_header_preproc"
16449 ac_res=`eval echo '${'$as_ac_Header'}'`
16450 { echo "$as_me:$LINENO: result: $ac_res" >&5
16451 echo "${ECHO_T}$ac_res" >&6; }
16454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16455 cat >>confdefs.h <<_ACEOF
16456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16457 _ACEOF
16461 done
16467 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 ac_res=`eval echo '${'$as_ac_Header'}'`
16477 { echo "$as_me:$LINENO: result: $ac_res" >&5
16478 echo "${ECHO_T}$ac_res" >&6; }
16479 else
16480 # Is the header compilable?
16481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16483 cat >conftest.$ac_ext <<_ACEOF
16484 /* confdefs.h. */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16489 $ac_includes_default
16490 #include <$ac_header>
16491 _ACEOF
16492 rm -f conftest.$ac_objext
16493 if { (ac_try="$ac_compile"
16494 case "(($ac_try" in
16495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16497 esac
16498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499 (eval "$ac_compile") 2>conftest.er1
16500 ac_status=$?
16501 grep -v '^ *+' conftest.er1 >conftest.err
16502 rm -f conftest.er1
16503 cat conftest.err >&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
16506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16507 { (case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16510 esac
16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_try") 2>&5
16513 ac_status=$?
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; } &&
16516 { ac_try='test -s conftest.$ac_objext'
16517 { (case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_try") 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 ac_header_compiler=yes
16527 else
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16531 ac_header_compiler=no
16534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16536 echo "${ECHO_T}$ac_header_compiler" >&6; }
16538 # Is the header present?
16539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16541 cat >conftest.$ac_ext <<_ACEOF
16542 /* confdefs.h. */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16547 #include <$ac_header>
16548 _ACEOF
16549 if { (ac_try="$ac_cpp conftest.$ac_ext"
16550 case "(($ac_try" in
16551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552 *) ac_try_echo=$ac_try;;
16553 esac
16554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16556 ac_status=$?
16557 grep -v '^ *+' conftest.er1 >conftest.err
16558 rm -f conftest.er1
16559 cat conftest.err >&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } >/dev/null; then
16562 if test -s conftest.err; then
16563 ac_cpp_err=$ac_c_preproc_warn_flag
16564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16565 else
16566 ac_cpp_err=
16568 else
16569 ac_cpp_err=yes
16571 if test -z "$ac_cpp_err"; then
16572 ac_header_preproc=yes
16573 else
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 ac_header_preproc=no
16580 rm -f conftest.err conftest.$ac_ext
16581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16582 echo "${ECHO_T}$ac_header_preproc" >&6; }
16584 # So? What about this header?
16585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16586 yes:no: )
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16591 ac_header_preproc=yes
16593 no:yes:* )
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16606 ( cat <<\_ASBOX
16607 ## ----------------------------------- ##
16608 ## Report this to llvmbugs@cs.uiuc.edu ##
16609 ## ----------------------------------- ##
16610 _ASBOX
16611 ) | sed "s/^/$as_me: WARNING: /" >&2
16613 esac
16614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 else
16619 eval "$as_ac_Header=\$ac_header_preproc"
16621 ac_res=`eval echo '${'$as_ac_Header'}'`
16622 { echo "$as_me:$LINENO: result: $ac_res" >&5
16623 echo "${ECHO_T}$ac_res" >&6; }
16626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16627 cat >>confdefs.h <<_ACEOF
16628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16629 _ACEOF
16633 done
16636 for ac_header in valgrind/valgrind.h
16638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 ac_res=`eval echo '${'$as_ac_Header'}'`
16646 { echo "$as_me:$LINENO: result: $ac_res" >&5
16647 echo "${ECHO_T}$ac_res" >&6; }
16648 else
16649 # Is the header compilable?
16650 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16652 cat >conftest.$ac_ext <<_ACEOF
16653 /* confdefs.h. */
16654 _ACEOF
16655 cat confdefs.h >>conftest.$ac_ext
16656 cat >>conftest.$ac_ext <<_ACEOF
16657 /* end confdefs.h. */
16658 $ac_includes_default
16659 #include <$ac_header>
16660 _ACEOF
16661 rm -f conftest.$ac_objext
16662 if { (ac_try="$ac_compile"
16663 case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16666 esac
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_compile") 2>conftest.er1
16669 ac_status=$?
16670 grep -v '^ *+' conftest.er1 >conftest.err
16671 rm -f conftest.er1
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } &&
16675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16679 esac
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try='test -s conftest.$ac_objext'
16686 { (case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16689 esac
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_try") 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 ac_header_compiler=yes
16696 else
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 ac_header_compiler=no
16703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16705 echo "${ECHO_T}$ac_header_compiler" >&6; }
16707 # Is the header present?
16708 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16710 cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h. */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 #include <$ac_header>
16717 _ACEOF
16718 if { (ac_try="$ac_cpp conftest.$ac_ext"
16719 case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16722 esac
16723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16725 ac_status=$?
16726 grep -v '^ *+' conftest.er1 >conftest.err
16727 rm -f conftest.er1
16728 cat conftest.err >&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } >/dev/null; then
16731 if test -s conftest.err; then
16732 ac_cpp_err=$ac_c_preproc_warn_flag
16733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16734 else
16735 ac_cpp_err=
16737 else
16738 ac_cpp_err=yes
16740 if test -z "$ac_cpp_err"; then
16741 ac_header_preproc=yes
16742 else
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16746 ac_header_preproc=no
16749 rm -f conftest.err conftest.$ac_ext
16750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16751 echo "${ECHO_T}$ac_header_preproc" >&6; }
16753 # So? What about this header?
16754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16755 yes:no: )
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16760 ac_header_preproc=yes
16762 no:yes:* )
16763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16775 ( cat <<\_ASBOX
16776 ## ----------------------------------- ##
16777 ## Report this to llvmbugs@cs.uiuc.edu ##
16778 ## ----------------------------------- ##
16779 _ASBOX
16780 ) | sed "s/^/$as_me: WARNING: /" >&2
16782 esac
16783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 else
16788 eval "$as_ac_Header=\$ac_header_preproc"
16790 ac_res=`eval echo '${'$as_ac_Header'}'`
16791 { echo "$as_me:$LINENO: result: $ac_res" >&5
16792 echo "${ECHO_T}$ac_res" >&6; }
16795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16796 cat >>confdefs.h <<_ACEOF
16797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16798 _ACEOF
16802 done
16805 for ac_header in fenv.h
16807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 ac_res=`eval echo '${'$as_ac_Header'}'`
16815 { echo "$as_me:$LINENO: result: $ac_res" >&5
16816 echo "${ECHO_T}$ac_res" >&6; }
16817 else
16818 # Is the header compilable?
16819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16821 cat >conftest.$ac_ext <<_ACEOF
16822 /* confdefs.h. */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 $ac_includes_default
16828 #include <$ac_header>
16829 _ACEOF
16830 rm -f conftest.$ac_objext
16831 if { (ac_try="$ac_compile"
16832 case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16835 esac
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_compile") 2>conftest.er1
16838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16845 { (case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16848 esac
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_try") 2>&5
16851 ac_status=$?
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; } &&
16854 { ac_try='test -s conftest.$ac_objext'
16855 { (case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16858 esac
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_try") 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_header_compiler=yes
16865 else
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16869 ac_header_compiler=no
16872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16874 echo "${ECHO_T}$ac_header_compiler" >&6; }
16876 # Is the header present?
16877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16879 cat >conftest.$ac_ext <<_ACEOF
16880 /* confdefs.h. */
16881 _ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h. */
16885 #include <$ac_header>
16886 _ACEOF
16887 if { (ac_try="$ac_cpp conftest.$ac_ext"
16888 case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16891 esac
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16894 ac_status=$?
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } >/dev/null; then
16900 if test -s conftest.err; then
16901 ac_cpp_err=$ac_c_preproc_warn_flag
16902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16903 else
16904 ac_cpp_err=
16906 else
16907 ac_cpp_err=yes
16909 if test -z "$ac_cpp_err"; then
16910 ac_header_preproc=yes
16911 else
16912 echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16915 ac_header_preproc=no
16918 rm -f conftest.err conftest.$ac_ext
16919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16920 echo "${ECHO_T}$ac_header_preproc" >&6; }
16922 # So? What about this header?
16923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16924 yes:no: )
16925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16929 ac_header_preproc=yes
16931 no:yes:* )
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16944 ( cat <<\_ASBOX
16945 ## ----------------------------------- ##
16946 ## Report this to llvmbugs@cs.uiuc.edu ##
16947 ## ----------------------------------- ##
16948 _ASBOX
16949 ) | sed "s/^/$as_me: WARNING: /" >&2
16951 esac
16952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956 else
16957 eval "$as_ac_Header=\$ac_header_preproc"
16959 ac_res=`eval echo '${'$as_ac_Header'}'`
16960 { echo "$as_me:$LINENO: result: $ac_res" >&5
16961 echo "${ECHO_T}$ac_res" >&6; }
16964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16965 cat >>confdefs.h <<_ACEOF
16966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16967 _ACEOF
16971 done
16973 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16975 for ac_header in pthread.h
16977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 ac_res=`eval echo '${'$as_ac_Header'}'`
16985 { echo "$as_me:$LINENO: result: $ac_res" >&5
16986 echo "${ECHO_T}$ac_res" >&6; }
16987 else
16988 # Is the header compilable?
16989 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16991 cat >conftest.$ac_ext <<_ACEOF
16992 /* confdefs.h. */
16993 _ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h. */
16997 $ac_includes_default
16998 #include <$ac_header>
16999 _ACEOF
17000 rm -f conftest.$ac_objext
17001 if { (ac_try="$ac_compile"
17002 case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17005 esac
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007 (eval "$ac_compile") 2>conftest.er1
17008 ac_status=$?
17009 grep -v '^ *+' conftest.er1 >conftest.err
17010 rm -f conftest.er1
17011 cat conftest.err >&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } &&
17014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17015 { (case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17018 esac
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_try") 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; } &&
17024 { ac_try='test -s conftest.$ac_objext'
17025 { (case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17028 esac
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_try") 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; }; then
17034 ac_header_compiler=yes
17035 else
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_header_compiler=no
17042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17044 echo "${ECHO_T}$ac_header_compiler" >&6; }
17046 # Is the header present?
17047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17049 cat >conftest.$ac_ext <<_ACEOF
17050 /* confdefs.h. */
17051 _ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17055 #include <$ac_header>
17056 _ACEOF
17057 if { (ac_try="$ac_cpp conftest.$ac_ext"
17058 case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061 esac
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17064 ac_status=$?
17065 grep -v '^ *+' conftest.er1 >conftest.err
17066 rm -f conftest.er1
17067 cat conftest.err >&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } >/dev/null; then
17070 if test -s conftest.err; then
17071 ac_cpp_err=$ac_c_preproc_warn_flag
17072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17073 else
17074 ac_cpp_err=
17076 else
17077 ac_cpp_err=yes
17079 if test -z "$ac_cpp_err"; then
17080 ac_header_preproc=yes
17081 else
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17085 ac_header_preproc=no
17088 rm -f conftest.err conftest.$ac_ext
17089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17090 echo "${ECHO_T}$ac_header_preproc" >&6; }
17092 # So? What about this header?
17093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17094 yes:no: )
17095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17099 ac_header_preproc=yes
17101 no:yes:* )
17102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17114 ( cat <<\_ASBOX
17115 ## ----------------------------------- ##
17116 ## Report this to llvmbugs@cs.uiuc.edu ##
17117 ## ----------------------------------- ##
17118 _ASBOX
17119 ) | sed "s/^/$as_me: WARNING: /" >&2
17121 esac
17122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 else
17127 eval "$as_ac_Header=\$ac_header_preproc"
17129 ac_res=`eval echo '${'$as_ac_Header'}'`
17130 { echo "$as_me:$LINENO: result: $ac_res" >&5
17131 echo "${ECHO_T}$ac_res" >&6; }
17134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17135 cat >>confdefs.h <<_ACEOF
17136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17137 _ACEOF
17138 HAVE_PTHREAD=1
17140 else
17141 HAVE_PTHREAD=0
17145 done
17147 else
17148 HAVE_PTHREAD=0
17152 if test "$llvm_cv_enable_libffi" = "yes" ; then
17155 for ac_header in ffi.h ffi/ffi.h
17157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17164 ac_res=`eval echo '${'$as_ac_Header'}'`
17165 { echo "$as_me:$LINENO: result: $ac_res" >&5
17166 echo "${ECHO_T}$ac_res" >&6; }
17167 else
17168 # Is the header compilable?
17169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17171 cat >conftest.$ac_ext <<_ACEOF
17172 /* confdefs.h. */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17177 $ac_includes_default
17178 #include <$ac_header>
17179 _ACEOF
17180 rm -f conftest.$ac_objext
17181 if { (ac_try="$ac_compile"
17182 case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17185 esac
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_compile") 2>conftest.er1
17188 ac_status=$?
17189 grep -v '^ *+' conftest.er1 >conftest.err
17190 rm -f conftest.er1
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17195 { (case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17198 esac
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_try") 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest.$ac_objext'
17205 { (case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17208 esac
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_try") 2>&5
17211 ac_status=$?
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; }; then
17214 ac_header_compiler=yes
17215 else
17216 echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17219 ac_header_compiler=no
17222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17224 echo "${ECHO_T}$ac_header_compiler" >&6; }
17226 # Is the header present?
17227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17229 cat >conftest.$ac_ext <<_ACEOF
17230 /* confdefs.h. */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 #include <$ac_header>
17236 _ACEOF
17237 if { (ac_try="$ac_cpp conftest.$ac_ext"
17238 case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17241 esac
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } >/dev/null; then
17250 if test -s conftest.err; then
17251 ac_cpp_err=$ac_c_preproc_warn_flag
17252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17253 else
17254 ac_cpp_err=
17256 else
17257 ac_cpp_err=yes
17259 if test -z "$ac_cpp_err"; then
17260 ac_header_preproc=yes
17261 else
17262 echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17265 ac_header_preproc=no
17268 rm -f conftest.err conftest.$ac_ext
17269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17270 echo "${ECHO_T}$ac_header_preproc" >&6; }
17272 # So? What about this header?
17273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17274 yes:no: )
17275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17279 ac_header_preproc=yes
17281 no:yes:* )
17282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17294 ( cat <<\_ASBOX
17295 ## ----------------------------------- ##
17296 ## Report this to llvmbugs@cs.uiuc.edu ##
17297 ## ----------------------------------- ##
17298 _ASBOX
17299 ) | sed "s/^/$as_me: WARNING: /" >&2
17301 esac
17302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 else
17307 eval "$as_ac_Header=\$ac_header_preproc"
17309 ac_res=`eval echo '${'$as_ac_Header'}'`
17310 { echo "$as_me:$LINENO: result: $ac_res" >&5
17311 echo "${ECHO_T}$ac_res" >&6; }
17314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17315 cat >>confdefs.h <<_ACEOF
17316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17317 _ACEOF
17321 done
17326 for ac_header in CrashReporterClient.h
17328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17335 ac_res=`eval echo '${'$as_ac_Header'}'`
17336 { echo "$as_me:$LINENO: result: $ac_res" >&5
17337 echo "${ECHO_T}$ac_res" >&6; }
17338 else
17339 # Is the header compilable?
17340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17342 cat >conftest.$ac_ext <<_ACEOF
17343 /* confdefs.h. */
17344 _ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17348 $ac_includes_default
17349 #include <$ac_header>
17350 _ACEOF
17351 rm -f conftest.$ac_objext
17352 if { (ac_try="$ac_compile"
17353 case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_compile") 2>conftest.er1
17359 ac_status=$?
17360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17366 { (case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17369 esac
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_try") 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } &&
17375 { ac_try='test -s conftest.$ac_objext'
17376 { (case "(($ac_try" in
17377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378 *) ac_try_echo=$ac_try;;
17379 esac
17380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381 (eval "$ac_try") 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 ac_header_compiler=yes
17386 else
17387 echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17390 ac_header_compiler=no
17393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17395 echo "${ECHO_T}$ac_header_compiler" >&6; }
17397 # Is the header present?
17398 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17400 cat >conftest.$ac_ext <<_ACEOF
17401 /* confdefs.h. */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17406 #include <$ac_header>
17407 _ACEOF
17408 if { (ac_try="$ac_cpp conftest.$ac_ext"
17409 case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17412 esac
17413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17415 ac_status=$?
17416 grep -v '^ *+' conftest.er1 >conftest.err
17417 rm -f conftest.er1
17418 cat conftest.err >&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } >/dev/null; then
17421 if test -s conftest.err; then
17422 ac_cpp_err=$ac_c_preproc_warn_flag
17423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17424 else
17425 ac_cpp_err=
17427 else
17428 ac_cpp_err=yes
17430 if test -z "$ac_cpp_err"; then
17431 ac_header_preproc=yes
17432 else
17433 echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17436 ac_header_preproc=no
17439 rm -f conftest.err conftest.$ac_ext
17440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17441 echo "${ECHO_T}$ac_header_preproc" >&6; }
17443 # So? What about this header?
17444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17445 yes:no: )
17446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17450 ac_header_preproc=yes
17452 no:yes:* )
17453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17465 ( cat <<\_ASBOX
17466 ## ----------------------------------- ##
17467 ## Report this to llvmbugs@cs.uiuc.edu ##
17468 ## ----------------------------------- ##
17469 _ASBOX
17470 ) | sed "s/^/$as_me: WARNING: /" >&2
17472 esac
17473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 else
17478 eval "$as_ac_Header=\$ac_header_preproc"
17480 ac_res=`eval echo '${'$as_ac_Header'}'`
17481 { echo "$as_me:$LINENO: result: $ac_res" >&5
17482 echo "${ECHO_T}$ac_res" >&6; }
17485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17486 cat >>confdefs.h <<_ACEOF
17487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17488 _ACEOF
17492 done
17495 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17496 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17497 cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h. */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 extern const char *__crashreporter_info__;
17504 int main() {
17505 __crashreporter_info__ = "test";
17506 return 0;
17509 _ACEOF
17510 rm -f conftest.$ac_objext conftest$ac_exeext
17511 if { (ac_try="$ac_link"
17512 case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17515 esac
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_link") 2>conftest.er1
17518 ac_status=$?
17519 grep -v '^ *+' conftest.er1 >conftest.err
17520 rm -f conftest.er1
17521 cat conftest.err >&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); } &&
17524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17525 { (case "(($ac_try" in
17526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17528 esac
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530 (eval "$ac_try") 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try='test -s conftest$ac_exeext'
17535 { (case "(($ac_try" in
17536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537 *) ac_try_echo=$ac_try;;
17538 esac
17539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540 (eval "$ac_try") 2>&5
17541 ac_status=$?
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
17544 { echo "$as_me:$LINENO: result: yes" >&5
17545 echo "${ECHO_T}yes" >&6; }
17547 cat >>confdefs.h <<\_ACEOF
17548 #define HAVE_CRASHREPORTER_INFO 1
17549 _ACEOF
17551 else
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 { echo "$as_me:$LINENO: result: no" >&5
17556 echo "${ECHO_T}no" >&6; }
17558 cat >>confdefs.h <<\_ACEOF
17559 #define HAVE_CRASHREPORTER_INFO 0
17560 _ACEOF
17564 rm -f core conftest.err conftest.$ac_objext \
17565 conftest$ac_exeext conftest.$ac_ext
17570 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17571 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17572 if test "${ac_cv_huge_val_sanity+set}" = set; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17574 else
17576 ac_ext=cpp
17577 ac_cpp='$CXXCPP $CPPFLAGS'
17578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17582 ac_save_CXXFLAGS=$CXXFLAGS
17583 CXXFLAGS=-pedantic
17584 if test "$cross_compiling" = yes; then
17585 ac_cv_huge_val_sanity=yes
17586 else
17587 cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h. */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 #include <math.h>
17595 main ()
17597 double x = HUGE_VAL; return x != x;
17599 return 0;
17601 _ACEOF
17602 rm -f conftest$ac_exeext
17603 if { (ac_try="$ac_link"
17604 case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_link") 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17613 { (case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17616 esac
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_try") 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_huge_val_sanity=yes
17623 else
17624 echo "$as_me: program exited with status $ac_status" >&5
17625 echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17628 ( exit $ac_status )
17629 ac_cv_huge_val_sanity=no
17631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17635 CXXFLAGS=$ac_save_CXXFLAGS
17636 ac_ext=c
17637 ac_cpp='$CPP $CPPFLAGS'
17638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17644 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17645 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17646 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17649 { echo "$as_me:$LINENO: checking for pid_t" >&5
17650 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17651 if test "${ac_cv_type_pid_t+set}" = set; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 else
17654 cat >conftest.$ac_ext <<_ACEOF
17655 /* confdefs.h. */
17656 _ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17660 $ac_includes_default
17661 typedef pid_t ac__type_new_;
17663 main ()
17665 if ((ac__type_new_ *) 0)
17666 return 0;
17667 if (sizeof (ac__type_new_))
17668 return 0;
17670 return 0;
17672 _ACEOF
17673 rm -f conftest.$ac_objext
17674 if { (ac_try="$ac_compile"
17675 case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17678 esac
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_compile") 2>conftest.er1
17681 ac_status=$?
17682 grep -v '^ *+' conftest.er1 >conftest.err
17683 rm -f conftest.er1
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
17687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17688 { (case "(($ac_try" in
17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17691 esac
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_try") 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; } &&
17697 { ac_try='test -s conftest.$ac_objext'
17698 { (case "(($ac_try" in
17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17700 *) ac_try_echo=$ac_try;;
17701 esac
17702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17703 (eval "$ac_try") 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 ac_cv_type_pid_t=yes
17708 else
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 ac_cv_type_pid_t=no
17715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17717 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17718 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17719 if test $ac_cv_type_pid_t = yes; then
17721 else
17723 cat >>confdefs.h <<_ACEOF
17724 #define pid_t int
17725 _ACEOF
17729 { echo "$as_me:$LINENO: checking for size_t" >&5
17730 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17731 if test "${ac_cv_type_size_t+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734 cat >conftest.$ac_ext <<_ACEOF
17735 /* confdefs.h. */
17736 _ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740 $ac_includes_default
17741 typedef size_t ac__type_new_;
17743 main ()
17745 if ((ac__type_new_ *) 0)
17746 return 0;
17747 if (sizeof (ac__type_new_))
17748 return 0;
17750 return 0;
17752 _ACEOF
17753 rm -f conftest.$ac_objext
17754 if { (ac_try="$ac_compile"
17755 case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17758 esac
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760 (eval "$ac_compile") 2>conftest.er1
17761 ac_status=$?
17762 grep -v '^ *+' conftest.er1 >conftest.err
17763 rm -f conftest.er1
17764 cat conftest.err >&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
17767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17768 { (case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17771 esac
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_try") 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest.$ac_objext'
17778 { (case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17781 esac
17782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_try") 2>&5
17784 ac_status=$?
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 ac_cv_type_size_t=yes
17788 else
17789 echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17792 ac_cv_type_size_t=no
17795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17797 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17798 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17799 if test $ac_cv_type_size_t = yes; then
17801 else
17803 cat >>confdefs.h <<_ACEOF
17804 #define size_t unsigned int
17805 _ACEOF
17810 cat >>confdefs.h <<_ACEOF
17811 #define RETSIGTYPE void
17812 _ACEOF
17814 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17815 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17816 if test "${ac_cv_struct_tm+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819 cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h. */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17825 #include <sys/types.h>
17826 #include <time.h>
17829 main ()
17831 struct tm *tp; tp->tm_sec;
17833 return 0;
17835 _ACEOF
17836 rm -f conftest.$ac_objext
17837 if { (ac_try="$ac_compile"
17838 case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17841 esac
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_compile") 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17851 { (case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17854 esac
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_try") 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try='test -s conftest.$ac_objext'
17861 { (case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17864 esac
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_try") 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; }; then
17870 ac_cv_struct_tm=time.h
17871 else
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17875 ac_cv_struct_tm=sys/time.h
17878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17880 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17881 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17882 if test $ac_cv_struct_tm = sys/time.h; then
17884 cat >>confdefs.h <<\_ACEOF
17885 #define TM_IN_SYS_TIME 1
17886 _ACEOF
17890 { echo "$as_me:$LINENO: checking for int64_t" >&5
17891 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17892 if test "${ac_cv_type_int64_t+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 else
17895 cat >conftest.$ac_ext <<_ACEOF
17896 /* confdefs.h. */
17897 _ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17901 $ac_includes_default
17902 typedef int64_t ac__type_new_;
17904 main ()
17906 if ((ac__type_new_ *) 0)
17907 return 0;
17908 if (sizeof (ac__type_new_))
17909 return 0;
17911 return 0;
17913 _ACEOF
17914 rm -f conftest.$ac_objext
17915 if { (ac_try="$ac_compile"
17916 case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17919 esac
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_compile") 2>conftest.er1
17922 ac_status=$?
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17929 { (case "(($ac_try" in
17930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931 *) ac_try_echo=$ac_try;;
17932 esac
17933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_try") 2>&5
17935 ac_status=$?
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; } &&
17938 { ac_try='test -s conftest.$ac_objext'
17939 { (case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17942 esac
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_try") 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 ac_cv_type_int64_t=yes
17949 else
17950 echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17953 ac_cv_type_int64_t=no
17956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17958 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17959 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17960 if test $ac_cv_type_int64_t = yes; then
17962 cat >>confdefs.h <<_ACEOF
17963 #define HAVE_INT64_T 1
17964 _ACEOF
17967 else
17968 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17969 echo "$as_me: error: Type int64_t required but not found" >&2;}
17970 { (exit 1); exit 1; }; }
17973 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17974 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17975 if test "${ac_cv_type_uint64_t+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 else
17978 cat >conftest.$ac_ext <<_ACEOF
17979 /* confdefs.h. */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17984 $ac_includes_default
17985 typedef uint64_t ac__type_new_;
17987 main ()
17989 if ((ac__type_new_ *) 0)
17990 return 0;
17991 if (sizeof (ac__type_new_))
17992 return 0;
17994 return 0;
17996 _ACEOF
17997 rm -f conftest.$ac_objext
17998 if { (ac_try="$ac_compile"
17999 case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18002 esac
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_compile") 2>conftest.er1
18005 ac_status=$?
18006 grep -v '^ *+' conftest.er1 >conftest.err
18007 rm -f conftest.er1
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; } &&
18021 { ac_try='test -s conftest.$ac_objext'
18022 { (case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18025 esac
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_try") 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 ac_cv_type_uint64_t=yes
18032 else
18033 echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18036 ac_cv_type_uint64_t=no
18039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18041 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18042 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18043 if test $ac_cv_type_uint64_t = yes; then
18045 cat >>confdefs.h <<_ACEOF
18046 #define HAVE_UINT64_T 1
18047 _ACEOF
18050 else
18051 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18052 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18053 if test "${ac_cv_type_u_int64_t+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056 cat >conftest.$ac_ext <<_ACEOF
18057 /* confdefs.h. */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062 $ac_includes_default
18063 typedef u_int64_t ac__type_new_;
18065 main ()
18067 if ((ac__type_new_ *) 0)
18068 return 0;
18069 if (sizeof (ac__type_new_))
18070 return 0;
18072 return 0;
18074 _ACEOF
18075 rm -f conftest.$ac_objext
18076 if { (ac_try="$ac_compile"
18077 case "(($ac_try" in
18078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079 *) ac_try_echo=$ac_try;;
18080 esac
18081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082 (eval "$ac_compile") 2>conftest.er1
18083 ac_status=$?
18084 grep -v '^ *+' conftest.er1 >conftest.err
18085 rm -f conftest.er1
18086 cat conftest.err >&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } &&
18089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18090 { (case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18093 esac
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_try") 2>&5
18096 ac_status=$?
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); }; } &&
18099 { ac_try='test -s conftest.$ac_objext'
18100 { (case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18103 esac
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_try") 2>&5
18106 ac_status=$?
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; }; then
18109 ac_cv_type_u_int64_t=yes
18110 else
18111 echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18114 ac_cv_type_u_int64_t=no
18117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18120 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18121 if test $ac_cv_type_u_int64_t = yes; then
18123 cat >>confdefs.h <<_ACEOF
18124 #define HAVE_U_INT64_T 1
18125 _ACEOF
18128 else
18129 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18130 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18131 { (exit 1); exit 1; }; }
18145 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 else
18153 cat >conftest.$ac_ext <<_ACEOF
18154 /* confdefs.h. */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18161 #define $ac_func innocuous_$ac_func
18163 /* System header to define __stub macros and hopefully few prototypes,
18164 which can conflict with char $ac_func (); below.
18165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18166 <limits.h> exists even on freestanding compilers. */
18168 #ifdef __STDC__
18169 # include <limits.h>
18170 #else
18171 # include <assert.h>
18172 #endif
18174 #undef $ac_func
18176 /* Override any GCC internal prototype to avoid an error.
18177 Use char because int might match the return type of a GCC
18178 builtin and then its argument prototype would still apply. */
18179 #ifdef __cplusplus
18180 extern "C"
18181 #endif
18182 char $ac_func ();
18183 /* The GNU C library defines this for functions which it implements
18184 to always fail with ENOSYS. Some functions are actually named
18185 something starting with __ and the normal name is an alias. */
18186 #if defined __stub_$ac_func || defined __stub___$ac_func
18187 choke me
18188 #endif
18191 main ()
18193 return $ac_func ();
18195 return 0;
18197 _ACEOF
18198 rm -f conftest.$ac_objext conftest$ac_exeext
18199 if { (ac_try="$ac_link"
18200 case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18203 esac
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_link") 2>conftest.er1
18206 ac_status=$?
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
18212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18213 { (case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18216 esac
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_try") 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest$ac_exeext'
18223 { (case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18226 esac
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_try") 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; }; then
18232 eval "$as_ac_var=yes"
18233 else
18234 echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18237 eval "$as_ac_var=no"
18240 rm -f core conftest.err conftest.$ac_objext \
18241 conftest$ac_exeext conftest.$ac_ext
18243 ac_res=`eval echo '${'$as_ac_var'}'`
18244 { echo "$as_me:$LINENO: result: $ac_res" >&5
18245 echo "${ECHO_T}$ac_res" >&6; }
18246 if test `eval echo '${'$as_ac_var'}'` = yes; then
18247 cat >>confdefs.h <<_ACEOF
18248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18249 _ACEOF
18252 done
18258 for ac_func in powf fmodf strtof round
18260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
18265 else
18266 cat >conftest.$ac_ext <<_ACEOF
18267 /* confdefs.h. */
18268 _ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18274 #define $ac_func innocuous_$ac_func
18276 /* System header to define __stub macros and hopefully few prototypes,
18277 which can conflict with char $ac_func (); below.
18278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279 <limits.h> exists even on freestanding compilers. */
18281 #ifdef __STDC__
18282 # include <limits.h>
18283 #else
18284 # include <assert.h>
18285 #endif
18287 #undef $ac_func
18289 /* Override any GCC internal prototype to avoid an error.
18290 Use char because int might match the return type of a GCC
18291 builtin and then its argument prototype would still apply. */
18292 #ifdef __cplusplus
18293 extern "C"
18294 #endif
18295 char $ac_func ();
18296 /* The GNU C library defines this for functions which it implements
18297 to always fail with ENOSYS. Some functions are actually named
18298 something starting with __ and the normal name is an alias. */
18299 #if defined __stub_$ac_func || defined __stub___$ac_func
18300 choke me
18301 #endif
18304 main ()
18306 return $ac_func ();
18308 return 0;
18310 _ACEOF
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (ac_try="$ac_link"
18313 case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18316 esac
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_link") 2>conftest.er1
18319 ac_status=$?
18320 grep -v '^ *+' conftest.er1 >conftest.err
18321 rm -f conftest.er1
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
18325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18326 { (case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18329 esac
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_try") 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try='test -s conftest$ac_exeext'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 eval "$as_ac_var=yes"
18346 else
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 eval "$as_ac_var=no"
18353 rm -f core conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18356 ac_res=`eval echo '${'$as_ac_var'}'`
18357 { echo "$as_me:$LINENO: result: $ac_res" >&5
18358 echo "${ECHO_T}$ac_res" >&6; }
18359 if test `eval echo '${'$as_ac_var'}'` = yes; then
18360 cat >>confdefs.h <<_ACEOF
18361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18362 _ACEOF
18365 done
18372 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 else
18380 cat >conftest.$ac_ext <<_ACEOF
18381 /* confdefs.h. */
18382 _ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18388 #define $ac_func innocuous_$ac_func
18390 /* System header to define __stub macros and hopefully few prototypes,
18391 which can conflict with char $ac_func (); below.
18392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18393 <limits.h> exists even on freestanding compilers. */
18395 #ifdef __STDC__
18396 # include <limits.h>
18397 #else
18398 # include <assert.h>
18399 #endif
18401 #undef $ac_func
18403 /* Override any GCC internal prototype to avoid an error.
18404 Use char because int might match the return type of a GCC
18405 builtin and then its argument prototype would still apply. */
18406 #ifdef __cplusplus
18407 extern "C"
18408 #endif
18409 char $ac_func ();
18410 /* The GNU C library defines this for functions which it implements
18411 to always fail with ENOSYS. Some functions are actually named
18412 something starting with __ and the normal name is an alias. */
18413 #if defined __stub_$ac_func || defined __stub___$ac_func
18414 choke me
18415 #endif
18418 main ()
18420 return $ac_func ();
18422 return 0;
18424 _ACEOF
18425 rm -f conftest.$ac_objext conftest$ac_exeext
18426 if { (ac_try="$ac_link"
18427 case "(($ac_try" in
18428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429 *) ac_try_echo=$ac_try;;
18430 esac
18431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_link") 2>conftest.er1
18433 ac_status=$?
18434 grep -v '^ *+' conftest.er1 >conftest.err
18435 rm -f conftest.er1
18436 cat conftest.err >&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
18439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18440 { (case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18443 esac
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_try") 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try='test -s conftest$ac_exeext'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18453 esac
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 eval "$as_ac_var=yes"
18460 else
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18464 eval "$as_ac_var=no"
18467 rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
18470 ac_res=`eval echo '${'$as_ac_var'}'`
18471 { echo "$as_me:$LINENO: result: $ac_res" >&5
18472 echo "${ECHO_T}$ac_res" >&6; }
18473 if test `eval echo '${'$as_ac_var'}'` = yes; then
18474 cat >>confdefs.h <<_ACEOF
18475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18476 _ACEOF
18479 done
18484 for ac_func in isatty mkdtemp mkstemp
18486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18491 else
18492 cat >conftest.$ac_ext <<_ACEOF
18493 /* confdefs.h. */
18494 _ACEOF
18495 cat confdefs.h >>conftest.$ac_ext
18496 cat >>conftest.$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18500 #define $ac_func innocuous_$ac_func
18502 /* System header to define __stub macros and hopefully few prototypes,
18503 which can conflict with char $ac_func (); below.
18504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18505 <limits.h> exists even on freestanding compilers. */
18507 #ifdef __STDC__
18508 # include <limits.h>
18509 #else
18510 # include <assert.h>
18511 #endif
18513 #undef $ac_func
18515 /* Override any GCC internal prototype to avoid an error.
18516 Use char because int might match the return type of a GCC
18517 builtin and then its argument prototype would still apply. */
18518 #ifdef __cplusplus
18519 extern "C"
18520 #endif
18521 char $ac_func ();
18522 /* The GNU C library defines this for functions which it implements
18523 to always fail with ENOSYS. Some functions are actually named
18524 something starting with __ and the normal name is an alias. */
18525 #if defined __stub_$ac_func || defined __stub___$ac_func
18526 choke me
18527 #endif
18530 main ()
18532 return $ac_func ();
18534 return 0;
18536 _ACEOF
18537 rm -f conftest.$ac_objext conftest$ac_exeext
18538 if { (ac_try="$ac_link"
18539 case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18542 esac
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_link") 2>conftest.er1
18545 ac_status=$?
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18552 { (case "(($ac_try" in
18553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554 *) ac_try_echo=$ac_try;;
18555 esac
18556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557 (eval "$ac_try") 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try='test -s conftest$ac_exeext'
18562 { (case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18565 esac
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_try") 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
18571 eval "$as_ac_var=yes"
18572 else
18573 echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18576 eval "$as_ac_var=no"
18579 rm -f core conftest.err conftest.$ac_objext \
18580 conftest$ac_exeext conftest.$ac_ext
18582 ac_res=`eval echo '${'$as_ac_var'}'`
18583 { echo "$as_me:$LINENO: result: $ac_res" >&5
18584 echo "${ECHO_T}$ac_res" >&6; }
18585 if test `eval echo '${'$as_ac_var'}'` = yes; then
18586 cat >>confdefs.h <<_ACEOF
18587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18588 _ACEOF
18591 done
18599 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18602 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18605 echo $ECHO_N "(cached) $ECHO_C" >&6
18606 else
18607 cat >conftest.$ac_ext <<_ACEOF
18608 /* confdefs.h. */
18609 _ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h. */
18613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18615 #define $ac_func innocuous_$ac_func
18617 /* System header to define __stub macros and hopefully few prototypes,
18618 which can conflict with char $ac_func (); below.
18619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18620 <limits.h> exists even on freestanding compilers. */
18622 #ifdef __STDC__
18623 # include <limits.h>
18624 #else
18625 # include <assert.h>
18626 #endif
18628 #undef $ac_func
18630 /* Override any GCC internal prototype to avoid an error.
18631 Use char because int might match the return type of a GCC
18632 builtin and then its argument prototype would still apply. */
18633 #ifdef __cplusplus
18634 extern "C"
18635 #endif
18636 char $ac_func ();
18637 /* The GNU C library defines this for functions which it implements
18638 to always fail with ENOSYS. Some functions are actually named
18639 something starting with __ and the normal name is an alias. */
18640 #if defined __stub_$ac_func || defined __stub___$ac_func
18641 choke me
18642 #endif
18645 main ()
18647 return $ac_func ();
18649 return 0;
18651 _ACEOF
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (ac_try="$ac_link"
18654 case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18657 esac
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_link") 2>conftest.er1
18660 ac_status=$?
18661 grep -v '^ *+' conftest.er1 >conftest.err
18662 rm -f conftest.er1
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18667 { (case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18670 esac
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_try") 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest$ac_exeext'
18677 { (case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18680 esac
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_try") 2>&5
18683 ac_status=$?
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; }; then
18686 eval "$as_ac_var=yes"
18687 else
18688 echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.$ac_ext >&5
18691 eval "$as_ac_var=no"
18694 rm -f core conftest.err conftest.$ac_objext \
18695 conftest$ac_exeext conftest.$ac_ext
18697 ac_res=`eval echo '${'$as_ac_var'}'`
18698 { echo "$as_me:$LINENO: result: $ac_res" >&5
18699 echo "${ECHO_T}$ac_res" >&6; }
18700 if test `eval echo '${'$as_ac_var'}'` = yes; then
18701 cat >>confdefs.h <<_ACEOF
18702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18703 _ACEOF
18706 done
18711 for ac_func in strerror strerror_r setenv
18713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18718 else
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h. */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18727 #define $ac_func innocuous_$ac_func
18729 /* System header to define __stub macros and hopefully few prototypes,
18730 which can conflict with char $ac_func (); below.
18731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18732 <limits.h> exists even on freestanding compilers. */
18734 #ifdef __STDC__
18735 # include <limits.h>
18736 #else
18737 # include <assert.h>
18738 #endif
18740 #undef $ac_func
18742 /* Override any GCC internal prototype to avoid an error.
18743 Use char because int might match the return type of a GCC
18744 builtin and then its argument prototype would still apply. */
18745 #ifdef __cplusplus
18746 extern "C"
18747 #endif
18748 char $ac_func ();
18749 /* The GNU C library defines this for functions which it implements
18750 to always fail with ENOSYS. Some functions are actually named
18751 something starting with __ and the normal name is an alias. */
18752 #if defined __stub_$ac_func || defined __stub___$ac_func
18753 choke me
18754 #endif
18757 main ()
18759 return $ac_func ();
18761 return 0;
18763 _ACEOF
18764 rm -f conftest.$ac_objext conftest$ac_exeext
18765 if { (ac_try="$ac_link"
18766 case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18769 esac
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_link") 2>conftest.er1
18772 ac_status=$?
18773 grep -v '^ *+' conftest.er1 >conftest.err
18774 rm -f conftest.er1
18775 cat conftest.err >&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } &&
18778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18779 { (case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18782 esac
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_try") 2>&5
18785 ac_status=$?
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; } &&
18788 { ac_try='test -s conftest$ac_exeext'
18789 { (case "(($ac_try" in
18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18792 esac
18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_try") 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; }; then
18798 eval "$as_ac_var=yes"
18799 else
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18803 eval "$as_ac_var=no"
18806 rm -f core conftest.err conftest.$ac_objext \
18807 conftest$ac_exeext conftest.$ac_ext
18809 ac_res=`eval echo '${'$as_ac_var'}'`
18810 { echo "$as_me:$LINENO: result: $ac_res" >&5
18811 echo "${ECHO_T}$ac_res" >&6; }
18812 if test `eval echo '${'$as_ac_var'}'` = yes; then
18813 cat >>confdefs.h <<_ACEOF
18814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18815 _ACEOF
18818 done
18824 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18831 else
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h. */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18840 #define $ac_func innocuous_$ac_func
18842 /* System header to define __stub macros and hopefully few prototypes,
18843 which can conflict with char $ac_func (); below.
18844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18845 <limits.h> exists even on freestanding compilers. */
18847 #ifdef __STDC__
18848 # include <limits.h>
18849 #else
18850 # include <assert.h>
18851 #endif
18853 #undef $ac_func
18855 /* Override any GCC internal prototype to avoid an error.
18856 Use char because int might match the return type of a GCC
18857 builtin and then its argument prototype would still apply. */
18858 #ifdef __cplusplus
18859 extern "C"
18860 #endif
18861 char $ac_func ();
18862 /* The GNU C library defines this for functions which it implements
18863 to always fail with ENOSYS. Some functions are actually named
18864 something starting with __ and the normal name is an alias. */
18865 #if defined __stub_$ac_func || defined __stub___$ac_func
18866 choke me
18867 #endif
18870 main ()
18872 return $ac_func ();
18874 return 0;
18876 _ACEOF
18877 rm -f conftest.$ac_objext conftest$ac_exeext
18878 if { (ac_try="$ac_link"
18879 case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18882 esac
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_link") 2>conftest.er1
18885 ac_status=$?
18886 grep -v '^ *+' conftest.er1 >conftest.err
18887 rm -f conftest.er1
18888 cat conftest.err >&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
18891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18892 { (case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18895 esac
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_try") 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; } &&
18901 { ac_try='test -s conftest$ac_exeext'
18902 { (case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18905 esac
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_try") 2>&5
18908 ac_status=$?
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; }; then
18911 eval "$as_ac_var=yes"
18912 else
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18916 eval "$as_ac_var=no"
18919 rm -f core conftest.err conftest.$ac_objext \
18920 conftest$ac_exeext conftest.$ac_ext
18922 ac_res=`eval echo '${'$as_ac_var'}'`
18923 { echo "$as_me:$LINENO: result: $ac_res" >&5
18924 echo "${ECHO_T}$ac_res" >&6; }
18925 if test `eval echo '${'$as_ac_var'}'` = yes; then
18926 cat >>confdefs.h <<_ACEOF
18927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18928 _ACEOF
18931 done
18938 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18945 else
18946 cat >conftest.$ac_ext <<_ACEOF
18947 /* confdefs.h. */
18948 _ACEOF
18949 cat confdefs.h >>conftest.$ac_ext
18950 cat >>conftest.$ac_ext <<_ACEOF
18951 /* end confdefs.h. */
18952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18954 #define $ac_func innocuous_$ac_func
18956 /* System header to define __stub macros and hopefully few prototypes,
18957 which can conflict with char $ac_func (); below.
18958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18959 <limits.h> exists even on freestanding compilers. */
18961 #ifdef __STDC__
18962 # include <limits.h>
18963 #else
18964 # include <assert.h>
18965 #endif
18967 #undef $ac_func
18969 /* Override any GCC internal prototype to avoid an error.
18970 Use char because int might match the return type of a GCC
18971 builtin and then its argument prototype would still apply. */
18972 #ifdef __cplusplus
18973 extern "C"
18974 #endif
18975 char $ac_func ();
18976 /* The GNU C library defines this for functions which it implements
18977 to always fail with ENOSYS. Some functions are actually named
18978 something starting with __ and the normal name is an alias. */
18979 #if defined __stub_$ac_func || defined __stub___$ac_func
18980 choke me
18981 #endif
18984 main ()
18986 return $ac_func ();
18988 return 0;
18990 _ACEOF
18991 rm -f conftest.$ac_objext conftest$ac_exeext
18992 if { (ac_try="$ac_link"
18993 case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18996 esac
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_link") 2>conftest.er1
18999 ac_status=$?
19000 grep -v '^ *+' conftest.er1 >conftest.err
19001 rm -f conftest.er1
19002 cat conftest.err >&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } &&
19005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19006 { (case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19009 esac
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_try") 2>&5
19012 ac_status=$?
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; } &&
19015 { ac_try='test -s conftest$ac_exeext'
19016 { (case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19019 esac
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_try") 2>&5
19022 ac_status=$?
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; }; then
19025 eval "$as_ac_var=yes"
19026 else
19027 echo "$as_me: failed program was:" >&5
19028 sed 's/^/| /' conftest.$ac_ext >&5
19030 eval "$as_ac_var=no"
19033 rm -f core conftest.err conftest.$ac_objext \
19034 conftest$ac_exeext conftest.$ac_ext
19036 ac_res=`eval echo '${'$as_ac_var'}'`
19037 { echo "$as_me:$LINENO: result: $ac_res" >&5
19038 echo "${ECHO_T}$ac_res" >&6; }
19039 if test `eval echo '${'$as_ac_var'}'` = yes; then
19040 cat >>confdefs.h <<_ACEOF
19041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19042 _ACEOF
19045 done
19047 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19048 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19049 if test "${llvm_cv_c_printf_a+set}" = set; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 else
19052 ac_ext=c
19053 ac_cpp='$CPP $CPPFLAGS'
19054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19058 if test "$cross_compiling" = yes; then
19059 llvmac_cv_c_printf_a=no
19060 else
19061 cat >conftest.$ac_ext <<_ACEOF
19063 /* confdefs.h. */
19064 _ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19069 #include <stdio.h>
19070 #include <stdlib.h>
19073 main ()
19076 volatile double A, B;
19077 char Buffer[100];
19078 A = 1;
19079 A /= 10.0;
19080 sprintf(Buffer, "%a", A);
19081 B = atof(Buffer);
19082 if (A != B)
19083 return (1);
19084 if (A != 0x1.999999999999ap-4)
19085 return (1);
19086 return (0);
19088 return 0;
19090 _ACEOF
19091 rm -f conftest$ac_exeext
19092 if { (ac_try="$ac_link"
19093 case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19096 esac
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_link") 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19102 { (case "(($ac_try" in
19103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104 *) ac_try_echo=$ac_try;;
19105 esac
19106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107 (eval "$ac_try") 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 llvm_cv_c_printf_a=yes
19112 else
19113 echo "$as_me: program exited with status $ac_status" >&5
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 ( exit $ac_status )
19118 llvmac_cv_c_printf_a=no
19120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19124 ac_ext=c
19125 ac_cpp='$CPP $CPPFLAGS'
19126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19131 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19132 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19133 if test "$llvm_cv_c_printf_a" = "yes"; then
19135 cat >>confdefs.h <<\_ACEOF
19136 #define HAVE_PRINTF_A 1
19137 _ACEOF
19142 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19143 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19144 if test "${ac_cv_func_rand48+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 else
19147 ac_ext=cpp
19148 ac_cpp='$CXXCPP $CPPFLAGS'
19149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19153 cat >conftest.$ac_ext <<_ACEOF
19154 /* confdefs.h. */
19155 _ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h. */
19159 #include <stdlib.h>
19161 main ()
19163 srand48(0);lrand48();drand48();
19165 return 0;
19167 _ACEOF
19168 rm -f conftest.$ac_objext
19169 if { (ac_try="$ac_compile"
19170 case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19173 esac
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_compile") 2>conftest.er1
19176 ac_status=$?
19177 grep -v '^ *+' conftest.er1 >conftest.err
19178 rm -f conftest.er1
19179 cat conftest.err >&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } &&
19182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19183 { (case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19186 esac
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_try") 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; } &&
19192 { ac_try='test -s conftest.$ac_objext'
19193 { (case "(($ac_try" in
19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195 *) ac_try_echo=$ac_try;;
19196 esac
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198 (eval "$ac_try") 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; }; then
19202 ac_cv_func_rand48=yes
19203 else
19204 echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19207 ac_cv_func_rand48=no
19210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19211 ac_ext=c
19212 ac_cpp='$CPP $CPPFLAGS'
19213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19218 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19219 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19221 if test "$ac_cv_func_rand48" = "yes" ; then
19223 cat >>confdefs.h <<\_ACEOF
19224 #define HAVE_RAND48 1
19225 _ACEOF
19230 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19231 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19232 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19234 else
19235 cat >conftest.$ac_ext <<_ACEOF
19236 /* confdefs.h. */
19237 _ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h. */
19241 $ac_includes_default
19243 main ()
19245 #ifndef strerror_s
19246 char *p = (char *) strerror_s;
19247 return !p;
19248 #endif
19251 return 0;
19253 _ACEOF
19254 rm -f conftest.$ac_objext
19255 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19262 ac_status=$?
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
19268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19269 { (case "(($ac_try" in
19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19272 esac
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_try") 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; } &&
19278 { ac_try='test -s conftest.$ac_objext'
19279 { (case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_try") 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
19288 ac_cv_have_decl_strerror_s=yes
19289 else
19290 echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19293 ac_cv_have_decl_strerror_s=no
19296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19298 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19299 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19300 if test $ac_cv_have_decl_strerror_s = yes; then
19302 cat >>confdefs.h <<_ACEOF
19303 #define HAVE_DECL_STRERROR_S 1
19304 _ACEOF
19307 else
19308 cat >>confdefs.h <<_ACEOF
19309 #define HAVE_DECL_STRERROR_S 0
19310 _ACEOF
19317 if test "$llvm_cv_os_type" = "MingW" ; then
19318 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19319 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19320 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19322 else
19323 ac_check_lib_save_LIBS=$LIBS
19324 LIBS="-lgcc $LIBS"
19325 cat >conftest.$ac_ext <<_ACEOF
19326 /* confdefs.h. */
19327 _ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19332 /* Override any GCC internal prototype to avoid an error.
19333 Use char because int might match the return type of a GCC
19334 builtin and then its argument prototype would still apply. */
19335 #ifdef __cplusplus
19336 extern "C"
19337 #endif
19338 char _alloca ();
19340 main ()
19342 return _alloca ();
19344 return 0;
19346 _ACEOF
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (ac_try="$ac_link"
19349 case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19352 esac
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_link") 2>conftest.er1
19355 ac_status=$?
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
19361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19362 { (case "(($ac_try" in
19363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364 *) ac_try_echo=$ac_try;;
19365 esac
19366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_try") 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; } &&
19371 { ac_try='test -s conftest$ac_exeext'
19372 { (case "(($ac_try" in
19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 *) ac_try_echo=$ac_try;;
19375 esac
19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_try") 2>&5
19378 ac_status=$?
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; }; then
19381 ac_cv_lib_gcc__alloca=yes
19382 else
19383 echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19386 ac_cv_lib_gcc__alloca=no
19389 rm -f core conftest.err conftest.$ac_objext \
19390 conftest$ac_exeext conftest.$ac_ext
19391 LIBS=$ac_check_lib_save_LIBS
19393 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19394 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19395 if test $ac_cv_lib_gcc__alloca = yes; then
19397 cat >>confdefs.h <<\_ACEOF
19398 #define HAVE__ALLOCA 1
19399 _ACEOF
19403 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19404 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19405 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 else
19408 ac_check_lib_save_LIBS=$LIBS
19409 LIBS="-lgcc $LIBS"
19410 cat >conftest.$ac_ext <<_ACEOF
19411 /* confdefs.h. */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19417 /* Override any GCC internal prototype to avoid an error.
19418 Use char because int might match the return type of a GCC
19419 builtin and then its argument prototype would still apply. */
19420 #ifdef __cplusplus
19421 extern "C"
19422 #endif
19423 char __alloca ();
19425 main ()
19427 return __alloca ();
19429 return 0;
19431 _ACEOF
19432 rm -f conftest.$ac_objext conftest$ac_exeext
19433 if { (ac_try="$ac_link"
19434 case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19437 esac
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_link") 2>conftest.er1
19440 ac_status=$?
19441 grep -v '^ *+' conftest.er1 >conftest.err
19442 rm -f conftest.er1
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } &&
19446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19447 { (case "(($ac_try" in
19448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449 *) ac_try_echo=$ac_try;;
19450 esac
19451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452 (eval "$ac_try") 2>&5
19453 ac_status=$?
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; } &&
19456 { ac_try='test -s conftest$ac_exeext'
19457 { (case "(($ac_try" in
19458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19459 *) ac_try_echo=$ac_try;;
19460 esac
19461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19462 (eval "$ac_try") 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
19466 ac_cv_lib_gcc___alloca=yes
19467 else
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19471 ac_cv_lib_gcc___alloca=no
19474 rm -f core conftest.err conftest.$ac_objext \
19475 conftest$ac_exeext conftest.$ac_ext
19476 LIBS=$ac_check_lib_save_LIBS
19478 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19479 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19480 if test $ac_cv_lib_gcc___alloca = yes; then
19482 cat >>confdefs.h <<\_ACEOF
19483 #define HAVE___ALLOCA 1
19484 _ACEOF
19488 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19489 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19490 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19492 else
19493 ac_check_lib_save_LIBS=$LIBS
19494 LIBS="-lgcc $LIBS"
19495 cat >conftest.$ac_ext <<_ACEOF
19496 /* confdefs.h. */
19497 _ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h. */
19502 /* Override any GCC internal prototype to avoid an error.
19503 Use char because int might match the return type of a GCC
19504 builtin and then its argument prototype would still apply. */
19505 #ifdef __cplusplus
19506 extern "C"
19507 #endif
19508 char __chkstk ();
19510 main ()
19512 return __chkstk ();
19514 return 0;
19516 _ACEOF
19517 rm -f conftest.$ac_objext conftest$ac_exeext
19518 if { (ac_try="$ac_link"
19519 case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_link") 2>conftest.er1
19525 ac_status=$?
19526 grep -v '^ *+' conftest.er1 >conftest.err
19527 rm -f conftest.er1
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } &&
19531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19532 { (case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19535 esac
19536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_try") 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; } &&
19541 { ac_try='test -s conftest$ac_exeext'
19542 { (case "(($ac_try" in
19543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544 *) ac_try_echo=$ac_try;;
19545 esac
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547 (eval "$ac_try") 2>&5
19548 ac_status=$?
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; }; then
19551 ac_cv_lib_gcc___chkstk=yes
19552 else
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19556 ac_cv_lib_gcc___chkstk=no
19559 rm -f core conftest.err conftest.$ac_objext \
19560 conftest$ac_exeext conftest.$ac_ext
19561 LIBS=$ac_check_lib_save_LIBS
19563 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19564 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19565 if test $ac_cv_lib_gcc___chkstk = yes; then
19567 cat >>confdefs.h <<\_ACEOF
19568 #define HAVE___CHKSTK 1
19569 _ACEOF
19573 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19574 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19575 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578 ac_check_lib_save_LIBS=$LIBS
19579 LIBS="-lgcc $LIBS"
19580 cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h. */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19587 /* Override any GCC internal prototype to avoid an error.
19588 Use char because int might match the return type of a GCC
19589 builtin and then its argument prototype would still apply. */
19590 #ifdef __cplusplus
19591 extern "C"
19592 #endif
19593 char ___chkstk ();
19595 main ()
19597 return ___chkstk ();
19599 return 0;
19601 _ACEOF
19602 rm -f conftest.$ac_objext conftest$ac_exeext
19603 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19610 ac_status=$?
19611 grep -v '^ *+' conftest.er1 >conftest.err
19612 rm -f conftest.er1
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } &&
19616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19617 { (case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19620 esac
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_try") 2>&5
19623 ac_status=$?
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; } &&
19626 { ac_try='test -s conftest$ac_exeext'
19627 { (case "(($ac_try" in
19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19630 esac
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_try") 2>&5
19633 ac_status=$?
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19636 ac_cv_lib_gcc____chkstk=yes
19637 else
19638 echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19641 ac_cv_lib_gcc____chkstk=no
19644 rm -f core conftest.err conftest.$ac_objext \
19645 conftest$ac_exeext conftest.$ac_ext
19646 LIBS=$ac_check_lib_save_LIBS
19648 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19649 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19650 if test $ac_cv_lib_gcc____chkstk = yes; then
19652 cat >>confdefs.h <<\_ACEOF
19653 #define HAVE____CHKSTK 1
19654 _ACEOF
19659 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19660 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19661 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19663 else
19664 ac_check_lib_save_LIBS=$LIBS
19665 LIBS="-lgcc $LIBS"
19666 cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h. */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19673 /* Override any GCC internal prototype to avoid an error.
19674 Use char because int might match the return type of a GCC
19675 builtin and then its argument prototype would still apply. */
19676 #ifdef __cplusplus
19677 extern "C"
19678 #endif
19679 char __ashldi3 ();
19681 main ()
19683 return __ashldi3 ();
19685 return 0;
19687 _ACEOF
19688 rm -f conftest.$ac_objext conftest$ac_exeext
19689 if { (ac_try="$ac_link"
19690 case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19693 esac
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_link") 2>conftest.er1
19696 ac_status=$?
19697 grep -v '^ *+' conftest.er1 >conftest.err
19698 rm -f conftest.er1
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } &&
19702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19703 { (case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19706 esac
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_try") 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; } &&
19712 { ac_try='test -s conftest$ac_exeext'
19713 { (case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19716 esac
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718 (eval "$ac_try") 2>&5
19719 ac_status=$?
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; }; then
19722 ac_cv_lib_gcc___ashldi3=yes
19723 else
19724 echo "$as_me: failed program was:" >&5
19725 sed 's/^/| /' conftest.$ac_ext >&5
19727 ac_cv_lib_gcc___ashldi3=no
19730 rm -f core conftest.err conftest.$ac_objext \
19731 conftest$ac_exeext conftest.$ac_ext
19732 LIBS=$ac_check_lib_save_LIBS
19734 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19735 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19736 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19738 cat >>confdefs.h <<\_ACEOF
19739 #define HAVE___ASHLDI3 1
19740 _ACEOF
19744 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19745 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19746 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 else
19749 ac_check_lib_save_LIBS=$LIBS
19750 LIBS="-lgcc $LIBS"
19751 cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h. */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19758 /* Override any GCC internal prototype to avoid an error.
19759 Use char because int might match the return type of a GCC
19760 builtin and then its argument prototype would still apply. */
19761 #ifdef __cplusplus
19762 extern "C"
19763 #endif
19764 char __ashrdi3 ();
19766 main ()
19768 return __ashrdi3 ();
19770 return 0;
19772 _ACEOF
19773 rm -f conftest.$ac_objext conftest$ac_exeext
19774 if { (ac_try="$ac_link"
19775 case "(($ac_try" in
19776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19777 *) ac_try_echo=$ac_try;;
19778 esac
19779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780 (eval "$ac_link") 2>conftest.er1
19781 ac_status=$?
19782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
19787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19797 { ac_try='test -s conftest$ac_exeext'
19798 { (case "(($ac_try" in
19799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800 *) ac_try_echo=$ac_try;;
19801 esac
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803 (eval "$ac_try") 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 ac_cv_lib_gcc___ashrdi3=yes
19808 else
19809 echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19812 ac_cv_lib_gcc___ashrdi3=no
19815 rm -f core conftest.err conftest.$ac_objext \
19816 conftest$ac_exeext conftest.$ac_ext
19817 LIBS=$ac_check_lib_save_LIBS
19819 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19820 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19821 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19823 cat >>confdefs.h <<\_ACEOF
19824 #define HAVE___ASHRDI3 1
19825 _ACEOF
19829 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19830 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19831 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 else
19834 ac_check_lib_save_LIBS=$LIBS
19835 LIBS="-lgcc $LIBS"
19836 cat >conftest.$ac_ext <<_ACEOF
19837 /* confdefs.h. */
19838 _ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19843 /* Override any GCC internal prototype to avoid an error.
19844 Use char because int might match the return type of a GCC
19845 builtin and then its argument prototype would still apply. */
19846 #ifdef __cplusplus
19847 extern "C"
19848 #endif
19849 char __divdi3 ();
19851 main ()
19853 return __divdi3 ();
19855 return 0;
19857 _ACEOF
19858 rm -f conftest.$ac_objext conftest$ac_exeext
19859 if { (ac_try="$ac_link"
19860 case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19863 esac
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_link") 2>conftest.er1
19866 ac_status=$?
19867 grep -v '^ *+' conftest.er1 >conftest.err
19868 rm -f conftest.er1
19869 cat conftest.err >&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } &&
19872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19873 { (case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19876 esac
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_try") 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest$ac_exeext'
19883 { (case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19886 esac
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_try") 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
19892 ac_cv_lib_gcc___divdi3=yes
19893 else
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19897 ac_cv_lib_gcc___divdi3=no
19900 rm -f core conftest.err conftest.$ac_objext \
19901 conftest$ac_exeext conftest.$ac_ext
19902 LIBS=$ac_check_lib_save_LIBS
19904 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19905 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19906 if test $ac_cv_lib_gcc___divdi3 = yes; then
19908 cat >>confdefs.h <<\_ACEOF
19909 #define HAVE___DIVDI3 1
19910 _ACEOF
19914 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19915 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19916 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919 ac_check_lib_save_LIBS=$LIBS
19920 LIBS="-lgcc $LIBS"
19921 cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h. */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19928 /* Override any GCC internal prototype to avoid an error.
19929 Use char because int might match the return type of a GCC
19930 builtin and then its argument prototype would still apply. */
19931 #ifdef __cplusplus
19932 extern "C"
19933 #endif
19934 char __fixdfdi ();
19936 main ()
19938 return __fixdfdi ();
19940 return 0;
19942 _ACEOF
19943 rm -f conftest.$ac_objext conftest$ac_exeext
19944 if { (ac_try="$ac_link"
19945 case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19948 esac
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_link") 2>conftest.er1
19951 ac_status=$?
19952 grep -v '^ *+' conftest.er1 >conftest.err
19953 rm -f conftest.er1
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } &&
19957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19958 { (case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19961 esac
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_try") 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; } &&
19967 { ac_try='test -s conftest$ac_exeext'
19968 { (case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19971 esac
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_try") 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977 ac_cv_lib_gcc___fixdfdi=yes
19978 else
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19982 ac_cv_lib_gcc___fixdfdi=no
19985 rm -f core conftest.err conftest.$ac_objext \
19986 conftest$ac_exeext conftest.$ac_ext
19987 LIBS=$ac_check_lib_save_LIBS
19989 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19990 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19991 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19993 cat >>confdefs.h <<\_ACEOF
19994 #define HAVE___FIXDFDI 1
19995 _ACEOF
19999 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20000 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20001 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 else
20004 ac_check_lib_save_LIBS=$LIBS
20005 LIBS="-lgcc $LIBS"
20006 cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h. */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20013 /* Override any GCC internal prototype to avoid an error.
20014 Use char because int might match the return type of a GCC
20015 builtin and then its argument prototype would still apply. */
20016 #ifdef __cplusplus
20017 extern "C"
20018 #endif
20019 char __fixsfdi ();
20021 main ()
20023 return __fixsfdi ();
20025 return 0;
20027 _ACEOF
20028 rm -f conftest.$ac_objext conftest$ac_exeext
20029 if { (ac_try="$ac_link"
20030 case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20033 esac
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_link") 2>conftest.er1
20036 ac_status=$?
20037 grep -v '^ *+' conftest.er1 >conftest.err
20038 rm -f conftest.er1
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } &&
20042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20043 { (case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20046 esac
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_try") 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try='test -s conftest$ac_exeext'
20053 { (case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20056 esac
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_try") 2>&5
20059 ac_status=$?
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; }; then
20062 ac_cv_lib_gcc___fixsfdi=yes
20063 else
20064 echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.$ac_ext >&5
20067 ac_cv_lib_gcc___fixsfdi=no
20070 rm -f core conftest.err conftest.$ac_objext \
20071 conftest$ac_exeext conftest.$ac_ext
20072 LIBS=$ac_check_lib_save_LIBS
20074 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20075 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20076 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20078 cat >>confdefs.h <<\_ACEOF
20079 #define HAVE___FIXSFDI 1
20080 _ACEOF
20084 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20085 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20086 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 else
20089 ac_check_lib_save_LIBS=$LIBS
20090 LIBS="-lgcc $LIBS"
20091 cat >conftest.$ac_ext <<_ACEOF
20092 /* confdefs.h. */
20093 _ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20098 /* Override any GCC internal prototype to avoid an error.
20099 Use char because int might match the return type of a GCC
20100 builtin and then its argument prototype would still apply. */
20101 #ifdef __cplusplus
20102 extern "C"
20103 #endif
20104 char __floatdidf ();
20106 main ()
20108 return __floatdidf ();
20110 return 0;
20112 _ACEOF
20113 rm -f conftest.$ac_objext conftest$ac_exeext
20114 if { (ac_try="$ac_link"
20115 case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20118 esac
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_link") 2>conftest.er1
20121 ac_status=$?
20122 grep -v '^ *+' conftest.er1 >conftest.err
20123 rm -f conftest.er1
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } &&
20127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20128 { (case "(($ac_try" in
20129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20130 *) ac_try_echo=$ac_try;;
20131 esac
20132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20133 (eval "$ac_try") 2>&5
20134 ac_status=$?
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; } &&
20137 { ac_try='test -s conftest$ac_exeext'
20138 { (case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20141 esac
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_try") 2>&5
20144 ac_status=$?
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; }; then
20147 ac_cv_lib_gcc___floatdidf=yes
20148 else
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20152 ac_cv_lib_gcc___floatdidf=no
20155 rm -f core conftest.err conftest.$ac_objext \
20156 conftest$ac_exeext conftest.$ac_ext
20157 LIBS=$ac_check_lib_save_LIBS
20159 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20160 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20161 if test $ac_cv_lib_gcc___floatdidf = yes; then
20163 cat >>confdefs.h <<\_ACEOF
20164 #define HAVE___FLOATDIDF 1
20165 _ACEOF
20169 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20170 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20171 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20173 else
20174 ac_check_lib_save_LIBS=$LIBS
20175 LIBS="-lgcc $LIBS"
20176 cat >conftest.$ac_ext <<_ACEOF
20177 /* confdefs.h. */
20178 _ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20183 /* Override any GCC internal prototype to avoid an error.
20184 Use char because int might match the return type of a GCC
20185 builtin and then its argument prototype would still apply. */
20186 #ifdef __cplusplus
20187 extern "C"
20188 #endif
20189 char __lshrdi3 ();
20191 main ()
20193 return __lshrdi3 ();
20195 return 0;
20197 _ACEOF
20198 rm -f conftest.$ac_objext conftest$ac_exeext
20199 if { (ac_try="$ac_link"
20200 case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20203 esac
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_link") 2>conftest.er1
20206 ac_status=$?
20207 grep -v '^ *+' conftest.er1 >conftest.err
20208 rm -f conftest.er1
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } &&
20212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20213 { (case "(($ac_try" in
20214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215 *) ac_try_echo=$ac_try;;
20216 esac
20217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20218 (eval "$ac_try") 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; } &&
20222 { ac_try='test -s conftest$ac_exeext'
20223 { (case "(($ac_try" in
20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225 *) ac_try_echo=$ac_try;;
20226 esac
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228 (eval "$ac_try") 2>&5
20229 ac_status=$?
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; }; then
20232 ac_cv_lib_gcc___lshrdi3=yes
20233 else
20234 echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.$ac_ext >&5
20237 ac_cv_lib_gcc___lshrdi3=no
20240 rm -f core conftest.err conftest.$ac_objext \
20241 conftest$ac_exeext conftest.$ac_ext
20242 LIBS=$ac_check_lib_save_LIBS
20244 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20245 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20246 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20248 cat >>confdefs.h <<\_ACEOF
20249 #define HAVE___LSHRDI3 1
20250 _ACEOF
20254 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20255 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20256 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20258 else
20259 ac_check_lib_save_LIBS=$LIBS
20260 LIBS="-lgcc $LIBS"
20261 cat >conftest.$ac_ext <<_ACEOF
20262 /* confdefs.h. */
20263 _ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h. */
20268 /* Override any GCC internal prototype to avoid an error.
20269 Use char because int might match the return type of a GCC
20270 builtin and then its argument prototype would still apply. */
20271 #ifdef __cplusplus
20272 extern "C"
20273 #endif
20274 char __moddi3 ();
20276 main ()
20278 return __moddi3 ();
20280 return 0;
20282 _ACEOF
20283 rm -f conftest.$ac_objext conftest$ac_exeext
20284 if { (ac_try="$ac_link"
20285 case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_link") 2>conftest.er1
20291 ac_status=$?
20292 grep -v '^ *+' conftest.er1 >conftest.err
20293 rm -f conftest.er1
20294 cat conftest.err >&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } &&
20297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20298 { (case "(($ac_try" in
20299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300 *) ac_try_echo=$ac_try;;
20301 esac
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_try") 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; } &&
20307 { ac_try='test -s conftest$ac_exeext'
20308 { (case "(($ac_try" in
20309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20311 esac
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_try") 2>&5
20314 ac_status=$?
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; }; then
20317 ac_cv_lib_gcc___moddi3=yes
20318 else
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20322 ac_cv_lib_gcc___moddi3=no
20325 rm -f core conftest.err conftest.$ac_objext \
20326 conftest$ac_exeext conftest.$ac_ext
20327 LIBS=$ac_check_lib_save_LIBS
20329 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20330 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20331 if test $ac_cv_lib_gcc___moddi3 = yes; then
20333 cat >>confdefs.h <<\_ACEOF
20334 #define HAVE___MODDI3 1
20335 _ACEOF
20339 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20340 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20341 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20343 else
20344 ac_check_lib_save_LIBS=$LIBS
20345 LIBS="-lgcc $LIBS"
20346 cat >conftest.$ac_ext <<_ACEOF
20347 /* confdefs.h. */
20348 _ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h. */
20353 /* Override any GCC internal prototype to avoid an error.
20354 Use char because int might match the return type of a GCC
20355 builtin and then its argument prototype would still apply. */
20356 #ifdef __cplusplus
20357 extern "C"
20358 #endif
20359 char __udivdi3 ();
20361 main ()
20363 return __udivdi3 ();
20365 return 0;
20367 _ACEOF
20368 rm -f conftest.$ac_objext conftest$ac_exeext
20369 if { (ac_try="$ac_link"
20370 case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20373 esac
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_link") 2>conftest.er1
20376 ac_status=$?
20377 grep -v '^ *+' conftest.er1 >conftest.err
20378 rm -f conftest.er1
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } &&
20382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20383 { (case "(($ac_try" in
20384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385 *) ac_try_echo=$ac_try;;
20386 esac
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_try") 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; } &&
20392 { ac_try='test -s conftest$ac_exeext'
20393 { (case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20396 esac
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_try") 2>&5
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; }; then
20402 ac_cv_lib_gcc___udivdi3=yes
20403 else
20404 echo "$as_me: failed program was:" >&5
20405 sed 's/^/| /' conftest.$ac_ext >&5
20407 ac_cv_lib_gcc___udivdi3=no
20410 rm -f core conftest.err conftest.$ac_objext \
20411 conftest$ac_exeext conftest.$ac_ext
20412 LIBS=$ac_check_lib_save_LIBS
20414 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20415 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20416 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20418 cat >>confdefs.h <<\_ACEOF
20419 #define HAVE___UDIVDI3 1
20420 _ACEOF
20424 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20425 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20426 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20427 echo $ECHO_N "(cached) $ECHO_C" >&6
20428 else
20429 ac_check_lib_save_LIBS=$LIBS
20430 LIBS="-lgcc $LIBS"
20431 cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h. */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20438 /* Override any GCC internal prototype to avoid an error.
20439 Use char because int might match the return type of a GCC
20440 builtin and then its argument prototype would still apply. */
20441 #ifdef __cplusplus
20442 extern "C"
20443 #endif
20444 char __umoddi3 ();
20446 main ()
20448 return __umoddi3 ();
20450 return 0;
20452 _ACEOF
20453 rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (ac_try="$ac_link"
20455 case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_link") 2>conftest.er1
20461 ac_status=$?
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } &&
20467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20468 { (case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20471 esac
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_try") 2>&5
20474 ac_status=$?
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; } &&
20477 { ac_try='test -s conftest$ac_exeext'
20478 { (case "(($ac_try" in
20479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480 *) ac_try_echo=$ac_try;;
20481 esac
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483 (eval "$ac_try") 2>&5
20484 ac_status=$?
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; }; then
20487 ac_cv_lib_gcc___umoddi3=yes
20488 else
20489 echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20492 ac_cv_lib_gcc___umoddi3=no
20495 rm -f core conftest.err conftest.$ac_objext \
20496 conftest$ac_exeext conftest.$ac_ext
20497 LIBS=$ac_check_lib_save_LIBS
20499 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20500 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20501 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20503 cat >>confdefs.h <<\_ACEOF
20504 #define HAVE___UMODDI3 1
20505 _ACEOF
20510 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20511 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20512 if test "${ac_cv_lib_gcc___main+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515 ac_check_lib_save_LIBS=$LIBS
20516 LIBS="-lgcc $LIBS"
20517 cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h. */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20524 /* Override any GCC internal prototype to avoid an error.
20525 Use char because int might match the return type of a GCC
20526 builtin and then its argument prototype would still apply. */
20527 #ifdef __cplusplus
20528 extern "C"
20529 #endif
20530 char __main ();
20532 main ()
20534 return __main ();
20536 return 0;
20538 _ACEOF
20539 rm -f conftest.$ac_objext conftest$ac_exeext
20540 if { (ac_try="$ac_link"
20541 case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20544 esac
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_link") 2>conftest.er1
20547 ac_status=$?
20548 grep -v '^ *+' conftest.er1 >conftest.err
20549 rm -f conftest.er1
20550 cat conftest.err >&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } &&
20553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20554 { (case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20557 esac
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_try") 2>&5
20560 ac_status=$?
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; } &&
20563 { ac_try='test -s conftest$ac_exeext'
20564 { (case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20567 esac
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569 (eval "$ac_try") 2>&5
20570 ac_status=$?
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 ac_cv_lib_gcc___main=yes
20574 else
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 ac_cv_lib_gcc___main=no
20581 rm -f core conftest.err conftest.$ac_objext \
20582 conftest$ac_exeext conftest.$ac_ext
20583 LIBS=$ac_check_lib_save_LIBS
20585 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20586 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20587 if test $ac_cv_lib_gcc___main = yes; then
20589 cat >>confdefs.h <<\_ACEOF
20590 #define HAVE___MAIN 1
20591 _ACEOF
20595 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20596 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20597 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20599 else
20600 ac_check_lib_save_LIBS=$LIBS
20601 LIBS="-lgcc $LIBS"
20602 cat >conftest.$ac_ext <<_ACEOF
20603 /* confdefs.h. */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20609 /* Override any GCC internal prototype to avoid an error.
20610 Use char because int might match the return type of a GCC
20611 builtin and then its argument prototype would still apply. */
20612 #ifdef __cplusplus
20613 extern "C"
20614 #endif
20615 char __cmpdi2 ();
20617 main ()
20619 return __cmpdi2 ();
20621 return 0;
20623 _ACEOF
20624 rm -f conftest.$ac_objext conftest$ac_exeext
20625 if { (ac_try="$ac_link"
20626 case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_link") 2>conftest.er1
20632 ac_status=$?
20633 grep -v '^ *+' conftest.er1 >conftest.err
20634 rm -f conftest.er1
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
20638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20639 { (case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_try") 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; } &&
20648 { ac_try='test -s conftest$ac_exeext'
20649 { (case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20652 esac
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_try") 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_cv_lib_gcc___cmpdi2=yes
20659 else
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ac_cv_lib_gcc___cmpdi2=no
20666 rm -f core conftest.err conftest.$ac_objext \
20667 conftest$ac_exeext conftest.$ac_ext
20668 LIBS=$ac_check_lib_save_LIBS
20670 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20671 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20672 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20674 cat >>confdefs.h <<\_ACEOF
20675 #define HAVE___CMPDI2 1
20676 _ACEOF
20682 if test "$llvm_cv_os_type" = "MingW" ; then
20683 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20684 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20685 cat >conftest.$ac_ext <<_ACEOF
20686 #include <windows.h>
20687 #include <imagehlp.h>
20688 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20689 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20690 _ACEOF
20691 rm -f conftest.$ac_objext
20692 if { (ac_try="$ac_compile"
20693 case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20696 esac
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_compile") 2>conftest.er1
20699 ac_status=$?
20700 grep -v '^ *+' conftest.er1 >conftest.err
20701 rm -f conftest.er1
20702 cat conftest.err >&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } &&
20705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20706 { (case "(($ac_try" in
20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20709 esac
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_try") 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; } &&
20715 { ac_try='test -s conftest.$ac_objext'
20716 { (case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20719 esac
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_try") 2>&5
20722 ac_status=$?
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20726 { echo "$as_me:$LINENO: result: yes" >&5
20727 echo "${ECHO_T}yes" >&6; }
20728 llvm_cv_win32_elmcb_pcstr="PCSTR"
20730 else
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20735 { echo "$as_me:$LINENO: result: no" >&5
20736 echo "${ECHO_T}no" >&6; }
20737 llvm_cv_win32_elmcb_pcstr="PSTR"
20741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20743 cat >>confdefs.h <<_ACEOF
20744 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20745 _ACEOF
20750 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20751 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20752 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20754 else
20755 ac_ext=cpp
20756 ac_cpp='$CXXCPP $CPPFLAGS'
20757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20761 cat >conftest.$ac_ext <<_ACEOF
20762 /* confdefs.h. */
20763 _ACEOF
20764 cat confdefs.h >>conftest.$ac_ext
20765 cat >>conftest.$ac_ext <<_ACEOF
20766 /* end confdefs.h. */
20767 #include <math.h>
20769 main ()
20771 float f; isnan(f);
20773 return 0;
20775 _ACEOF
20776 rm -f conftest.$ac_objext
20777 if { (ac_try="$ac_compile"
20778 case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20781 esac
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783 (eval "$ac_compile") 2>conftest.er1
20784 ac_status=$?
20785 grep -v '^ *+' conftest.er1 >conftest.err
20786 rm -f conftest.er1
20787 cat conftest.err >&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } &&
20790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20791 { (case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20794 esac
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_try") 2>&5
20797 ac_status=$?
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; } &&
20800 { ac_try='test -s conftest.$ac_objext'
20801 { (case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20804 esac
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_try") 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 ac_cv_func_isnan_in_math_h=yes
20811 else
20812 echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20815 ac_cv_func_isnan_in_math_h=no
20818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20819 ac_ext=c
20820 ac_cpp='$CPP $CPPFLAGS'
20821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20826 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20827 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20830 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20832 cat >>confdefs.h <<\_ACEOF
20833 #define HAVE_ISNAN_IN_MATH_H 1
20834 _ACEOF
20838 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20839 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20840 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20841 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 else
20843 ac_ext=cpp
20844 ac_cpp='$CXXCPP $CPPFLAGS'
20845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20849 cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h. */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 #include <cmath>
20857 main ()
20859 float f; isnan(f);
20861 return 0;
20863 _ACEOF
20864 rm -f conftest.$ac_objext
20865 if { (ac_try="$ac_compile"
20866 case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20869 esac
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_compile") 2>conftest.er1
20872 ac_status=$?
20873 grep -v '^ *+' conftest.er1 >conftest.err
20874 rm -f conftest.er1
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } &&
20878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20879 { (case "(($ac_try" in
20880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881 *) ac_try_echo=$ac_try;;
20882 esac
20883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20884 (eval "$ac_try") 2>&5
20885 ac_status=$?
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; } &&
20888 { ac_try='test -s conftest.$ac_objext'
20889 { (case "(($ac_try" in
20890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891 *) ac_try_echo=$ac_try;;
20892 esac
20893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894 (eval "$ac_try") 2>&5
20895 ac_status=$?
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; }; then
20898 ac_cv_func_isnan_in_cmath=yes
20899 else
20900 echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20903 ac_cv_func_isnan_in_cmath=no
20906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20907 ac_ext=c
20908 ac_cpp='$CPP $CPPFLAGS'
20909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20914 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20915 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20917 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20919 cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_ISNAN_IN_CMATH 1
20921 _ACEOF
20925 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20926 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20927 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
20929 else
20930 ac_ext=cpp
20931 ac_cpp='$CXXCPP $CPPFLAGS'
20932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20936 cat >conftest.$ac_ext <<_ACEOF
20937 /* confdefs.h. */
20938 _ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h. */
20942 #include <cmath>
20944 main ()
20946 float f; std::isnan(f);
20948 return 0;
20950 _ACEOF
20951 rm -f conftest.$ac_objext
20952 if { (ac_try="$ac_compile"
20953 case "(($ac_try" in
20954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20955 *) ac_try_echo=$ac_try;;
20956 esac
20957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20958 (eval "$ac_compile") 2>conftest.er1
20959 ac_status=$?
20960 grep -v '^ *+' conftest.er1 >conftest.err
20961 rm -f conftest.er1
20962 cat conftest.err >&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } &&
20965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20966 { (case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20969 esac
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_try") 2>&5
20972 ac_status=$?
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; } &&
20975 { ac_try='test -s conftest.$ac_objext'
20976 { (case "(($ac_try" in
20977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20979 esac
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981 (eval "$ac_try") 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; }; then
20985 ac_cv_func_std_isnan_in_cmath=yes
20986 else
20987 echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20990 ac_cv_func_std_isnan_in_cmath=no
20993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20994 ac_ext=c
20995 ac_cpp='$CPP $CPPFLAGS'
20996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21001 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21002 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21004 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21006 cat >>confdefs.h <<\_ACEOF
21007 #define HAVE_STD_ISNAN_IN_CMATH 1
21008 _ACEOF
21013 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21014 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21015 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 else
21018 ac_ext=cpp
21019 ac_cpp='$CXXCPP $CPPFLAGS'
21020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21024 cat >conftest.$ac_ext <<_ACEOF
21025 /* confdefs.h. */
21026 _ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21030 #include <math.h>
21032 main ()
21034 float f; isinf(f);
21036 return 0;
21038 _ACEOF
21039 rm -f conftest.$ac_objext
21040 if { (ac_try="$ac_compile"
21041 case "(($ac_try" in
21042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21043 *) ac_try_echo=$ac_try;;
21044 esac
21045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21046 (eval "$ac_compile") 2>conftest.er1
21047 ac_status=$?
21048 grep -v '^ *+' conftest.er1 >conftest.err
21049 rm -f conftest.er1
21050 cat conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } &&
21053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21054 { (case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21057 esac
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_try") 2>&5
21060 ac_status=$?
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); }; } &&
21063 { ac_try='test -s conftest.$ac_objext'
21064 { (case "(($ac_try" in
21065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21066 *) ac_try_echo=$ac_try;;
21067 esac
21068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21069 (eval "$ac_try") 2>&5
21070 ac_status=$?
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073 ac_cv_func_isinf_in_math_h=yes
21074 else
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21078 ac_cv_func_isinf_in_math_h=no
21081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21082 ac_ext=c
21083 ac_cpp='$CPP $CPPFLAGS'
21084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21089 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21090 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21092 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21094 cat >>confdefs.h <<\_ACEOF
21095 #define HAVE_ISINF_IN_MATH_H 1
21096 _ACEOF
21100 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21101 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21102 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21103 echo $ECHO_N "(cached) $ECHO_C" >&6
21104 else
21105 ac_ext=cpp
21106 ac_cpp='$CXXCPP $CPPFLAGS'
21107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21111 cat >conftest.$ac_ext <<_ACEOF
21112 /* confdefs.h. */
21113 _ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21117 #include <cmath>
21119 main ()
21121 float f; isinf(f);
21123 return 0;
21125 _ACEOF
21126 rm -f conftest.$ac_objext
21127 if { (ac_try="$ac_compile"
21128 case "(($ac_try" in
21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21131 esac
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_compile") 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
21140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21141 { (case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21144 esac
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_try") 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } &&
21150 { ac_try='test -s conftest.$ac_objext'
21151 { (case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_try") 2>&5
21157 ac_status=$?
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
21160 ac_cv_func_isinf_in_cmath=yes
21161 else
21162 echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21165 ac_cv_func_isinf_in_cmath=no
21168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21169 ac_ext=c
21170 ac_cpp='$CPP $CPPFLAGS'
21171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21176 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21177 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21179 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21181 cat >>confdefs.h <<\_ACEOF
21182 #define HAVE_ISINF_IN_CMATH 1
21183 _ACEOF
21187 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21188 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21189 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21191 else
21192 ac_ext=cpp
21193 ac_cpp='$CXXCPP $CPPFLAGS'
21194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21198 cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h. */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21204 #include <cmath>
21206 main ()
21208 float f; std::isinf(f)}
21210 return 0;
21212 _ACEOF
21213 rm -f conftest.$ac_objext
21214 if { (ac_try="$ac_compile"
21215 case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21218 esac
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_compile") 2>conftest.er1
21221 ac_status=$?
21222 grep -v '^ *+' conftest.er1 >conftest.err
21223 rm -f conftest.er1
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } &&
21227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21228 { (case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21231 esac
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_try") 2>&5
21234 ac_status=$?
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; } &&
21237 { ac_try='test -s conftest.$ac_objext'
21238 { (case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21241 esac
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_try") 2>&5
21244 ac_status=$?
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; }; then
21247 ac_cv_func_std_isinf_in_cmath=yes
21248 else
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21252 ac_cv_func_std_isinf_in_cmath=no
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21256 ac_ext=c
21257 ac_cpp='$CPP $CPPFLAGS'
21258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21263 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21264 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21266 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21268 cat >>confdefs.h <<\_ACEOF
21269 #define HAVE_STD_ISINF_IN_CMATH 1
21270 _ACEOF
21274 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21275 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21276 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 else
21279 ac_ext=cpp
21280 ac_cpp='$CXXCPP $CPPFLAGS'
21281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21285 cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h. */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 #include <ieeefp.h>
21293 main ()
21295 float f; finite(f);
21297 return 0;
21299 _ACEOF
21300 rm -f conftest.$ac_objext
21301 if { (ac_try="$ac_compile"
21302 case "(($ac_try" in
21303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21304 *) ac_try_echo=$ac_try;;
21305 esac
21306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21307 (eval "$ac_compile") 2>conftest.er1
21308 ac_status=$?
21309 grep -v '^ *+' conftest.er1 >conftest.err
21310 rm -f conftest.er1
21311 cat conftest.err >&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } &&
21314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21315 { (case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21318 esac
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_try") 2>&5
21321 ac_status=$?
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; } &&
21324 { ac_try='test -s conftest.$ac_objext'
21325 { (case "(($ac_try" in
21326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327 *) ac_try_echo=$ac_try;;
21328 esac
21329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21330 (eval "$ac_try") 2>&5
21331 ac_status=$?
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; }; then
21334 ac_cv_func_finite_in_ieeefp_h=yes
21335 else
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21339 ac_cv_func_finite_in_ieeefp_h=no
21342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21343 ac_ext=c
21344 ac_cpp='$CPP $CPPFLAGS'
21345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21350 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21351 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21353 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21355 cat >>confdefs.h <<\_ACEOF
21356 #define HAVE_FINITE_IN_IEEEFP_H 1
21357 _ACEOF
21363 if test "$llvm_cv_platform_type" = "Unix" ; then
21366 for ac_header in stdlib.h unistd.h
21368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21375 ac_res=`eval echo '${'$as_ac_Header'}'`
21376 { echo "$as_me:$LINENO: result: $ac_res" >&5
21377 echo "${ECHO_T}$ac_res" >&6; }
21378 else
21379 # Is the header compilable?
21380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21382 cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h. */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 $ac_includes_default
21389 #include <$ac_header>
21390 _ACEOF
21391 rm -f conftest.$ac_objext
21392 if { (ac_try="$ac_compile"
21393 case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21396 esac
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_compile") 2>conftest.er1
21399 ac_status=$?
21400 grep -v '^ *+' conftest.er1 >conftest.err
21401 rm -f conftest.er1
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } &&
21405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21406 { (case "(($ac_try" in
21407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21408 *) ac_try_echo=$ac_try;;
21409 esac
21410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21411 (eval "$ac_try") 2>&5
21412 ac_status=$?
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; } &&
21415 { ac_try='test -s conftest.$ac_objext'
21416 { (case "(($ac_try" in
21417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418 *) ac_try_echo=$ac_try;;
21419 esac
21420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21421 (eval "$ac_try") 2>&5
21422 ac_status=$?
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; }; then
21425 ac_header_compiler=yes
21426 else
21427 echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21430 ac_header_compiler=no
21433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21435 echo "${ECHO_T}$ac_header_compiler" >&6; }
21437 # Is the header present?
21438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21440 cat >conftest.$ac_ext <<_ACEOF
21441 /* confdefs.h. */
21442 _ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21446 #include <$ac_header>
21447 _ACEOF
21448 if { (ac_try="$ac_cpp conftest.$ac_ext"
21449 case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21452 esac
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21455 ac_status=$?
21456 grep -v '^ *+' conftest.er1 >conftest.err
21457 rm -f conftest.er1
21458 cat conftest.err >&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); } >/dev/null; then
21461 if test -s conftest.err; then
21462 ac_cpp_err=$ac_c_preproc_warn_flag
21463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21464 else
21465 ac_cpp_err=
21467 else
21468 ac_cpp_err=yes
21470 if test -z "$ac_cpp_err"; then
21471 ac_header_preproc=yes
21472 else
21473 echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21476 ac_header_preproc=no
21479 rm -f conftest.err conftest.$ac_ext
21480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21481 echo "${ECHO_T}$ac_header_preproc" >&6; }
21483 # So? What about this header?
21484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21485 yes:no: )
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21490 ac_header_preproc=yes
21492 no:yes:* )
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21505 ( cat <<\_ASBOX
21506 ## ----------------------------------- ##
21507 ## Report this to llvmbugs@cs.uiuc.edu ##
21508 ## ----------------------------------- ##
21509 _ASBOX
21510 ) | sed "s/^/$as_me: WARNING: /" >&2
21512 esac
21513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518 eval "$as_ac_Header=\$ac_header_preproc"
21520 ac_res=`eval echo '${'$as_ac_Header'}'`
21521 { echo "$as_me:$LINENO: result: $ac_res" >&5
21522 echo "${ECHO_T}$ac_res" >&6; }
21525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21526 cat >>confdefs.h <<_ACEOF
21527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21528 _ACEOF
21532 done
21535 for ac_func in getpagesize
21537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 else
21543 cat >conftest.$ac_ext <<_ACEOF
21544 /* confdefs.h. */
21545 _ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h. */
21549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21551 #define $ac_func innocuous_$ac_func
21553 /* System header to define __stub macros and hopefully few prototypes,
21554 which can conflict with char $ac_func (); below.
21555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21556 <limits.h> exists even on freestanding compilers. */
21558 #ifdef __STDC__
21559 # include <limits.h>
21560 #else
21561 # include <assert.h>
21562 #endif
21564 #undef $ac_func
21566 /* Override any GCC internal prototype to avoid an error.
21567 Use char because int might match the return type of a GCC
21568 builtin and then its argument prototype would still apply. */
21569 #ifdef __cplusplus
21570 extern "C"
21571 #endif
21572 char $ac_func ();
21573 /* The GNU C library defines this for functions which it implements
21574 to always fail with ENOSYS. Some functions are actually named
21575 something starting with __ and the normal name is an alias. */
21576 #if defined __stub_$ac_func || defined __stub___$ac_func
21577 choke me
21578 #endif
21581 main ()
21583 return $ac_func ();
21585 return 0;
21587 _ACEOF
21588 rm -f conftest.$ac_objext conftest$ac_exeext
21589 if { (ac_try="$ac_link"
21590 case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21593 esac
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_link") 2>conftest.er1
21596 ac_status=$?
21597 grep -v '^ *+' conftest.er1 >conftest.err
21598 rm -f conftest.er1
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } &&
21602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21603 { (case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21606 esac
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_try") 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; } &&
21612 { ac_try='test -s conftest$ac_exeext'
21613 { (case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21616 esac
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_try") 2>&5
21619 ac_status=$?
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }; then
21622 eval "$as_ac_var=yes"
21623 else
21624 echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21627 eval "$as_ac_var=no"
21630 rm -f core conftest.err conftest.$ac_objext \
21631 conftest$ac_exeext conftest.$ac_ext
21633 ac_res=`eval echo '${'$as_ac_var'}'`
21634 { echo "$as_me:$LINENO: result: $ac_res" >&5
21635 echo "${ECHO_T}$ac_res" >&6; }
21636 if test `eval echo '${'$as_ac_var'}'` = yes; then
21637 cat >>confdefs.h <<_ACEOF
21638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21639 _ACEOF
21642 done
21644 { echo "$as_me:$LINENO: checking for working mmap" >&5
21645 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21646 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
21648 else
21649 if test "$cross_compiling" = yes; then
21650 ac_cv_func_mmap_fixed_mapped=no
21651 else
21652 cat >conftest.$ac_ext <<_ACEOF
21653 /* confdefs.h. */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21658 $ac_includes_default
21659 /* malloc might have been renamed as rpl_malloc. */
21660 #undef malloc
21662 /* Thanks to Mike Haertel and Jim Avera for this test.
21663 Here is a matrix of mmap possibilities:
21664 mmap private not fixed
21665 mmap private fixed at somewhere currently unmapped
21666 mmap private fixed at somewhere already mapped
21667 mmap shared not fixed
21668 mmap shared fixed at somewhere currently unmapped
21669 mmap shared fixed at somewhere already mapped
21670 For private mappings, we should verify that changes cannot be read()
21671 back from the file, nor mmap's back from the file at a different
21672 address. (There have been systems where private was not correctly
21673 implemented like the infamous i386 svr4.0, and systems where the
21674 VM page cache was not coherent with the file system buffer cache
21675 like early versions of FreeBSD and possibly contemporary NetBSD.)
21676 For shared mappings, we should conversely verify that changes get
21677 propagated back to all the places they're supposed to be.
21679 Grep wants private fixed already mapped.
21680 The main things grep needs to know about mmap are:
21681 * does it exist and is it safe to write into the mmap'd area
21682 * how to use it (BSD variants) */
21684 #include <fcntl.h>
21685 #include <sys/mman.h>
21687 #if !STDC_HEADERS && !HAVE_STDLIB_H
21688 char *malloc ();
21689 #endif
21691 /* This mess was copied from the GNU getpagesize.h. */
21692 #if !HAVE_GETPAGESIZE
21693 /* Assume that all systems that can run configure have sys/param.h. */
21694 # if !HAVE_SYS_PARAM_H
21695 # define HAVE_SYS_PARAM_H 1
21696 # endif
21698 # ifdef _SC_PAGESIZE
21699 # define getpagesize() sysconf(_SC_PAGESIZE)
21700 # else /* no _SC_PAGESIZE */
21701 # if HAVE_SYS_PARAM_H
21702 # include <sys/param.h>
21703 # ifdef EXEC_PAGESIZE
21704 # define getpagesize() EXEC_PAGESIZE
21705 # else /* no EXEC_PAGESIZE */
21706 # ifdef NBPG
21707 # define getpagesize() NBPG * CLSIZE
21708 # ifndef CLSIZE
21709 # define CLSIZE 1
21710 # endif /* no CLSIZE */
21711 # else /* no NBPG */
21712 # ifdef NBPC
21713 # define getpagesize() NBPC
21714 # else /* no NBPC */
21715 # ifdef PAGESIZE
21716 # define getpagesize() PAGESIZE
21717 # endif /* PAGESIZE */
21718 # endif /* no NBPC */
21719 # endif /* no NBPG */
21720 # endif /* no EXEC_PAGESIZE */
21721 # else /* no HAVE_SYS_PARAM_H */
21722 # define getpagesize() 8192 /* punt totally */
21723 # endif /* no HAVE_SYS_PARAM_H */
21724 # endif /* no _SC_PAGESIZE */
21726 #endif /* no HAVE_GETPAGESIZE */
21729 main ()
21731 char *data, *data2, *data3;
21732 int i, pagesize;
21733 int fd;
21735 pagesize = getpagesize ();
21737 /* First, make a file with some known garbage in it. */
21738 data = (char *) malloc (pagesize);
21739 if (!data)
21740 return 1;
21741 for (i = 0; i < pagesize; ++i)
21742 *(data + i) = rand ();
21743 umask (0);
21744 fd = creat ("conftest.mmap", 0600);
21745 if (fd < 0)
21746 return 1;
21747 if (write (fd, data, pagesize) != pagesize)
21748 return 1;
21749 close (fd);
21751 /* Next, try to mmap the file at a fixed address which already has
21752 something else allocated at it. If we can, also make sure that
21753 we see the same garbage. */
21754 fd = open ("conftest.mmap", O_RDWR);
21755 if (fd < 0)
21756 return 1;
21757 data2 = (char *) malloc (2 * pagesize);
21758 if (!data2)
21759 return 1;
21760 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21761 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21762 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21763 return 1;
21764 for (i = 0; i < pagesize; ++i)
21765 if (*(data + i) != *(data2 + i))
21766 return 1;
21768 /* Finally, make sure that changes to the mapped area do not
21769 percolate back to the file as seen by read(). (This is a bug on
21770 some variants of i386 svr4.0.) */
21771 for (i = 0; i < pagesize; ++i)
21772 *(data2 + i) = *(data2 + i) + 1;
21773 data3 = (char *) malloc (pagesize);
21774 if (!data3)
21775 return 1;
21776 if (read (fd, data3, pagesize) != pagesize)
21777 return 1;
21778 for (i = 0; i < pagesize; ++i)
21779 if (*(data + i) != *(data3 + i))
21780 return 1;
21781 close (fd);
21782 return 0;
21784 _ACEOF
21785 rm -f conftest$ac_exeext
21786 if { (ac_try="$ac_link"
21787 case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21790 esac
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_link") 2>&5
21793 ac_status=$?
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21796 { (case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799 esac
21800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_try") 2>&5
21802 ac_status=$?
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
21805 ac_cv_func_mmap_fixed_mapped=yes
21806 else
21807 echo "$as_me: program exited with status $ac_status" >&5
21808 echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21811 ( exit $ac_status )
21812 ac_cv_func_mmap_fixed_mapped=no
21814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21819 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21820 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21821 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21823 cat >>confdefs.h <<\_ACEOF
21824 #define HAVE_MMAP 1
21825 _ACEOF
21828 rm -f conftest.mmap
21830 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21831 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21832 if test "${ac_cv_func_mmap_file+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21834 else
21835 ac_ext=c
21836 ac_cpp='$CPP $CPPFLAGS'
21837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21841 if test "$cross_compiling" = yes; then
21842 ac_cv_func_mmap_file=no
21843 else
21844 cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h. */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21852 #include <sys/types.h>
21853 #include <sys/mman.h>
21854 #include <fcntl.h>
21857 main ()
21860 int fd;
21861 fd = creat ("foo",0777);
21862 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21863 unlink ("foo");
21864 return (fd != (int) MAP_FAILED);
21866 return 0;
21868 _ACEOF
21869 rm -f conftest$ac_exeext
21870 if { (ac_try="$ac_link"
21871 case "(($ac_try" in
21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21874 esac
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876 (eval "$ac_link") 2>&5
21877 ac_status=$?
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21880 { (case "(($ac_try" in
21881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882 *) ac_try_echo=$ac_try;;
21883 esac
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885 (eval "$ac_try") 2>&5
21886 ac_status=$?
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; }; then
21889 ac_cv_func_mmap_file=yes
21890 else
21891 echo "$as_me: program exited with status $ac_status" >&5
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21895 ( exit $ac_status )
21896 ac_cv_func_mmap_file=no
21898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21902 ac_ext=c
21903 ac_cpp='$CPP $CPPFLAGS'
21904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21910 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21911 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21912 if test "$ac_cv_func_mmap_file" = yes; then
21914 cat >>confdefs.h <<\_ACEOF
21915 #define HAVE_MMAP_FILE
21916 _ACEOF
21918 MMAP_FILE=yes
21922 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21923 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21924 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21926 else
21927 if test "$llvm_cv_os_type" = "Interix" ; then
21928 ac_cv_need_dev_zero_for_mmap=yes
21929 else
21930 ac_cv_need_dev_zero_for_mmap=no
21934 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21935 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21936 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21938 cat >>confdefs.h <<\_ACEOF
21939 #define NEED_DEV_ZERO_FOR_MMAP 1
21940 _ACEOF
21944 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21945 then
21946 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21947 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21949 if test "$ac_cv_func_mmap_file" = "no"
21950 then
21951 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21952 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21956 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21957 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21958 ac_ext=cpp
21959 ac_cpp='$CXXCPP $CPPFLAGS'
21960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21964 cat >conftest.$ac_ext <<_ACEOF
21965 /* confdefs.h. */
21966 _ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h. */
21970 int main() {
21971 volatile unsigned long val = 1;
21972 __sync_synchronize();
21973 __sync_val_compare_and_swap(&val, 1, 0);
21974 __sync_add_and_fetch(&val, 1);
21975 __sync_sub_and_fetch(&val, 1);
21976 return 0;
21979 _ACEOF
21980 rm -f conftest.$ac_objext conftest$ac_exeext
21981 if { (ac_try="$ac_link"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_link") 2>conftest.er1
21988 ac_status=$?
21989 grep -v '^ *+' conftest.er1 >conftest.err
21990 rm -f conftest.er1
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } &&
21994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21995 { (case "(($ac_try" in
21996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997 *) ac_try_echo=$ac_try;;
21998 esac
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000 (eval "$ac_try") 2>&5
22001 ac_status=$?
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; } &&
22004 { ac_try='test -s conftest$ac_exeext'
22005 { (case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22008 esac
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_try") 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 ac_ext=c
22015 ac_cpp='$CPP $CPPFLAGS'
22016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22020 { echo "$as_me:$LINENO: result: yes" >&5
22021 echo "${ECHO_T}yes" >&6; }
22023 cat >>confdefs.h <<\_ACEOF
22024 #define LLVM_MULTITHREADED 1
22025 _ACEOF
22027 else
22028 echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22031 { echo "$as_me:$LINENO: result: no" >&5
22032 echo "${ECHO_T}no" >&6; }
22034 cat >>confdefs.h <<\_ACEOF
22035 #define LLVM_MULTITHREADED 0
22036 _ACEOF
22038 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22039 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22042 rm -f core conftest.err conftest.$ac_objext \
22043 conftest$ac_exeext conftest.$ac_ext
22046 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22047 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22048 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22049 if test "${llvm_cv_linux_mixed+set}" = set; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22051 else
22052 ac_ext=c
22053 ac_cpp='$CPP $CPPFLAGS'
22054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22058 cat >conftest.$ac_ext <<_ACEOF
22059 /* confdefs.h. */
22060 _ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22064 #ifndef __x86_64__
22065 error: Not x86-64 even if uname says so!
22066 #endif
22069 main ()
22073 return 0;
22075 _ACEOF
22076 rm -f conftest.$ac_objext
22077 if { (ac_try="$ac_compile"
22078 case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22081 esac
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_compile") 2>conftest.er1
22084 ac_status=$?
22085 grep -v '^ *+' conftest.er1 >conftest.err
22086 rm -f conftest.er1
22087 cat conftest.err >&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } &&
22090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22091 { (case "(($ac_try" in
22092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093 *) ac_try_echo=$ac_try;;
22094 esac
22095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22096 (eval "$ac_try") 2>&5
22097 ac_status=$?
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; } &&
22100 { ac_try='test -s conftest.$ac_objext'
22101 { (case "(($ac_try" in
22102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103 *) ac_try_echo=$ac_try;;
22104 esac
22105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22106 (eval "$ac_try") 2>&5
22107 ac_status=$?
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); }; }; then
22110 llvm_cv_linux_mixed=no
22111 else
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22115 llvm_cv_linux_mixed=yes
22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119 ac_ext=c
22120 ac_cpp='$CPP $CPPFLAGS'
22121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22127 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22128 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22130 if test "$llvm_cv_linux_mixed" = "yes"; then
22131 llvm_cv_target_arch="x86"
22132 ARCH="x86"
22137 for ac_func in __dso_handle
22139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22143 echo $ECHO_N "(cached) $ECHO_C" >&6
22144 else
22145 cat >conftest.$ac_ext <<_ACEOF
22146 /* confdefs.h. */
22147 _ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h. */
22151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22153 #define $ac_func innocuous_$ac_func
22155 /* System header to define __stub macros and hopefully few prototypes,
22156 which can conflict with char $ac_func (); below.
22157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22158 <limits.h> exists even on freestanding compilers. */
22160 #ifdef __STDC__
22161 # include <limits.h>
22162 #else
22163 # include <assert.h>
22164 #endif
22166 #undef $ac_func
22168 /* Override any GCC internal prototype to avoid an error.
22169 Use char because int might match the return type of a GCC
22170 builtin and then its argument prototype would still apply. */
22171 #ifdef __cplusplus
22172 extern "C"
22173 #endif
22174 char $ac_func ();
22175 /* The GNU C library defines this for functions which it implements
22176 to always fail with ENOSYS. Some functions are actually named
22177 something starting with __ and the normal name is an alias. */
22178 #if defined __stub_$ac_func || defined __stub___$ac_func
22179 choke me
22180 #endif
22183 main ()
22185 return $ac_func ();
22187 return 0;
22189 _ACEOF
22190 rm -f conftest.$ac_objext conftest$ac_exeext
22191 if { (ac_try="$ac_link"
22192 case "(($ac_try" in
22193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22194 *) ac_try_echo=$ac_try;;
22195 esac
22196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22197 (eval "$ac_link") 2>conftest.er1
22198 ac_status=$?
22199 grep -v '^ *+' conftest.er1 >conftest.err
22200 rm -f conftest.er1
22201 cat conftest.err >&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } &&
22204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22205 { (case "(($ac_try" in
22206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207 *) ac_try_echo=$ac_try;;
22208 esac
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210 (eval "$ac_try") 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; } &&
22214 { ac_try='test -s conftest$ac_exeext'
22215 { (case "(($ac_try" in
22216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217 *) ac_try_echo=$ac_try;;
22218 esac
22219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220 (eval "$ac_try") 2>&5
22221 ac_status=$?
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); }; }; then
22224 eval "$as_ac_var=yes"
22225 else
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22229 eval "$as_ac_var=no"
22232 rm -f core conftest.err conftest.$ac_objext \
22233 conftest$ac_exeext conftest.$ac_ext
22235 ac_res=`eval echo '${'$as_ac_var'}'`
22236 { echo "$as_me:$LINENO: result: $ac_res" >&5
22237 echo "${ECHO_T}$ac_res" >&6; }
22238 if test `eval echo '${'$as_ac_var'}'` = yes; then
22239 cat >>confdefs.h <<_ACEOF
22240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22241 _ACEOF
22244 done
22247 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22248 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22249 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22250 echo $ECHO_N "(cached) $ECHO_C" >&6
22251 else
22252 llvm_cv_llvmgcc_dragonegg="no"
22253 if test -n "$LLVMGCC" ; then
22254 cp /dev/null conftest.c
22255 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22256 if test $? -eq 0 ; then
22257 llvm_cv_llvmgcc_dragonegg="yes"
22259 rm conftest.c
22262 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22263 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22265 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22266 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22267 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
22268 else
22269 LLVMCC_EMITIR_FLAG="-emit-llvm"
22270 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22275 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22276 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22277 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22278 echo $ECHO_N "(cached) $ECHO_C" >&6
22279 else
22280 llvm_cv_llvmgcc_sanity="no"
22281 if test -n "$LLVMGCC" ; then
22282 cp /dev/null conftest.c
22283 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22284 grep 'target datalayout =' > /dev/null 2>&1
22285 if test $? -eq 0 ; then
22286 llvm_cv_llvmgcc_sanity="yes"
22288 rm conftest.c
22291 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22292 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22294 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22295 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22296 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22297 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22298 LLVMCC1=$llvmcc1path
22300 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22301 LLVMCC1PLUS=$llvmcc1pluspath
22303 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22304 LLVMGCCDIR=$llvmgccdir
22306 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22307 LLVMGCC_LANGS=$llvmgcclangs
22309 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22312 { echo "$as_me:$LINENO: result: ok" >&5
22313 echo "${ECHO_T}ok" >&6; }
22316 SHLIBEXT=$libltdl_cv_shlibext
22319 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22322 # Translate the various configuration directories and other basic
22323 # information into substitutions that will end up in Makefile.config.in
22324 # that these configured values can be used by the makefiles
22325 if test "${prefix}" = "NONE" ; then
22326 prefix="/usr/local"
22328 eval LLVM_PREFIX="${prefix}";
22329 eval LLVM_BINDIR="${prefix}/bin";
22330 eval LLVM_LIBDIR="${prefix}/lib";
22331 eval LLVM_DATADIR="${prefix}/share/llvm";
22332 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22333 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22334 eval LLVM_INCLUDEDIR="${prefix}/include";
22335 eval LLVM_INFODIR="${prefix}/info";
22336 eval LLVM_MANDIR="${prefix}/man";
22337 LLVM_CONFIGTIME=`date`
22349 # Place the various directores into the config.h file as #defines so that we
22350 # can know about the installation paths within LLVM.
22352 cat >>confdefs.h <<_ACEOF
22353 #define LLVM_PREFIX "$LLVM_PREFIX"
22354 _ACEOF
22357 cat >>confdefs.h <<_ACEOF
22358 #define LLVM_BINDIR "$LLVM_BINDIR"
22359 _ACEOF
22362 cat >>confdefs.h <<_ACEOF
22363 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22364 _ACEOF
22367 cat >>confdefs.h <<_ACEOF
22368 #define LLVM_DATADIR "$LLVM_DATADIR"
22369 _ACEOF
22372 cat >>confdefs.h <<_ACEOF
22373 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22374 _ACEOF
22377 cat >>confdefs.h <<_ACEOF
22378 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22379 _ACEOF
22382 cat >>confdefs.h <<_ACEOF
22383 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22384 _ACEOF
22387 cat >>confdefs.h <<_ACEOF
22388 #define LLVM_INFODIR "$LLVM_INFODIR"
22389 _ACEOF
22392 cat >>confdefs.h <<_ACEOF
22393 #define LLVM_MANDIR "$LLVM_MANDIR"
22394 _ACEOF
22397 cat >>confdefs.h <<_ACEOF
22398 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22399 _ACEOF
22402 cat >>confdefs.h <<_ACEOF
22403 #define LLVM_HOSTTRIPLE "$host"
22404 _ACEOF
22407 # Determine which bindings to build.
22408 if test "$BINDINGS_TO_BUILD" = auto ; then
22409 BINDINGS_TO_BUILD=""
22410 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22411 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22414 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22417 # This isn't really configurey, but it avoids having to repeat the list in
22418 # other files.
22419 ALL_BINDINGS=ocaml
22422 # Do any work necessary to ensure that bindings have what they need.
22423 binding_prereqs_failed=0
22424 for a_binding in $BINDINGS_TO_BUILD ; do
22425 case "$a_binding" in
22426 ocaml)
22427 if test "x$OCAMLC" = x ; then
22428 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22429 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22430 binding_prereqs_failed=1
22432 if test "x$OCAMLDEP" = x ; then
22433 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22434 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22435 binding_prereqs_failed=1
22437 if test "x$OCAMLOPT" = x ; then
22438 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22439 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22441 if test "x$with_ocaml_libdir" != xauto ; then
22442 OCAML_LIBDIR=$with_ocaml_libdir
22444 else
22445 ocaml_stdlib="`"$OCAMLC" -where`"
22446 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22447 then
22448 # ocaml stdlib is beneath our prefix; use stdlib
22449 OCAML_LIBDIR=$ocaml_stdlib
22451 else
22452 # ocaml stdlib is outside our prefix; use libdir/ocaml
22453 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22458 esac
22459 done
22460 if test "$binding_prereqs_failed" = 1 ; then
22461 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22462 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22463 { (exit 1); exit 1; }; }
22466 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22467 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22468 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
22470 else
22471 ac_ext=cpp
22472 ac_cpp='$CXXCPP $CPPFLAGS'
22473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22477 oldcxxflags="$CXXFLAGS"
22478 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22479 cat >conftest.$ac_ext <<_ACEOF
22480 /* confdefs.h. */
22481 _ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h. */
22487 main ()
22491 return 0;
22493 _ACEOF
22494 rm -f conftest.$ac_objext
22495 if { (ac_try="$ac_compile"
22496 case "(($ac_try" in
22497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22498 *) ac_try_echo=$ac_try;;
22499 esac
22500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22501 (eval "$ac_compile") 2>conftest.er1
22502 ac_status=$?
22503 grep -v '^ *+' conftest.er1 >conftest.err
22504 rm -f conftest.er1
22505 cat conftest.err >&5
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); } &&
22508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22509 { (case "(($ac_try" in
22510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511 *) ac_try_echo=$ac_try;;
22512 esac
22513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514 (eval "$ac_try") 2>&5
22515 ac_status=$?
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; } &&
22518 { ac_try='test -s conftest.$ac_objext'
22519 { (case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22522 esac
22523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_try") 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 llvm_cv_cxx_visibility_inlines_hidden=yes
22529 else
22530 echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22533 llvm_cv_cxx_visibility_inlines_hidden=no
22536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22537 CXXFLAGS="$oldcxxflags"
22538 ac_ext=c
22539 ac_cpp='$CPP $CPPFLAGS'
22540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22546 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22547 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22548 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22549 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22551 else
22552 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22557 if test "$llvm_cv_link_use_r" = "yes" ; then
22558 RPATH="-Wl,-R"
22559 else
22560 RPATH="-Wl,-rpath"
22564 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22565 RDYNAMIC="-Wl,-export-dynamic"
22566 else
22567 RDYNAMIC=""
22572 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22579 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22581 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22583 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22585 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22587 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22590 ac_config_files="$ac_config_files Makefile.config"
22593 ac_config_files="$ac_config_files llvm.spec"
22596 ac_config_files="$ac_config_files docs/doxygen.cfg"
22598 if test -f ${srcdir}/tools/clang/README.txt; then
22599 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22603 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22606 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22609 ac_config_commands="$ac_config_commands setup"
22611 ac_config_commands="$ac_config_commands Makefile"
22614 ac_config_commands="$ac_config_commands Makefile.common"
22617 ac_config_commands="$ac_config_commands examples/Makefile"
22620 ac_config_commands="$ac_config_commands lib/Makefile"
22623 ac_config_commands="$ac_config_commands runtime/Makefile"
22626 ac_config_commands="$ac_config_commands test/Makefile"
22629 ac_config_commands="$ac_config_commands test/Makefile.tests"
22632 ac_config_commands="$ac_config_commands unittests/Makefile"
22635 ac_config_commands="$ac_config_commands tools/Makefile"
22638 ac_config_commands="$ac_config_commands utils/Makefile"
22641 ac_config_commands="$ac_config_commands projects/Makefile"
22644 ac_config_commands="$ac_config_commands bindings/Makefile"
22647 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22651 cat >confcache <<\_ACEOF
22652 # This file is a shell script that caches the results of configure
22653 # tests run on this system so they can be shared between configure
22654 # scripts and configure runs, see configure's option --config-cache.
22655 # It is not useful on other systems. If it contains results you don't
22656 # want to keep, you may remove or edit it.
22658 # config.status only pays attention to the cache file if you give it
22659 # the --recheck option to rerun configure.
22661 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22662 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22663 # following values.
22665 _ACEOF
22667 # The following way of writing the cache mishandles newlines in values,
22668 # but we know of no workaround that is simple, portable, and efficient.
22669 # So, we kill variables containing newlines.
22670 # Ultrix sh set writes to stderr and can't be redirected directly,
22671 # and sets the high bit in the cache file unless we assign to the vars.
22673 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22674 eval ac_val=\$$ac_var
22675 case $ac_val in #(
22676 *${as_nl}*)
22677 case $ac_var in #(
22678 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22679 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22680 esac
22681 case $ac_var in #(
22682 _ | IFS | as_nl) ;; #(
22683 *) $as_unset $ac_var ;;
22684 esac ;;
22685 esac
22686 done
22688 (set) 2>&1 |
22689 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22690 *${as_nl}ac_space=\ *)
22691 # `set' does not quote correctly, so add quotes (double-quote
22692 # substitution turns \\\\ into \\, and sed turns \\ into \).
22693 sed -n \
22694 "s/'/'\\\\''/g;
22695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22696 ;; #(
22698 # `set' quotes correctly as required by POSIX, so do not add quotes.
22699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22701 esac |
22702 sort
22704 sed '
22705 /^ac_cv_env_/b end
22706 t clear
22707 :clear
22708 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22709 t end
22710 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22711 :end' >>confcache
22712 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22713 if test -w "$cache_file"; then
22714 test "x$cache_file" != "x/dev/null" &&
22715 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22716 echo "$as_me: updating cache $cache_file" >&6;}
22717 cat confcache >$cache_file
22718 else
22719 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22720 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22723 rm -f confcache
22725 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22726 # Let make expand exec_prefix.
22727 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22729 DEFS=-DHAVE_CONFIG_H
22731 ac_libobjs=
22732 ac_ltlibobjs=
22733 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22734 # 1. Remove the extension, and $U if already installed.
22735 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22736 ac_i=`echo "$ac_i" | sed "$ac_script"`
22737 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22738 # will be set to the directory where LIBOBJS objects are built.
22739 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22740 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22741 done
22742 LIBOBJS=$ac_libobjs
22744 LTLIBOBJS=$ac_ltlibobjs
22747 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22748 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22749 Usually this means the macro was only invoked conditionally." >&5
22750 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22751 Usually this means the macro was only invoked conditionally." >&2;}
22752 { (exit 1); exit 1; }; }
22754 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22755 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22756 Usually this means the macro was only invoked conditionally." >&5
22757 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22758 Usually this means the macro was only invoked conditionally." >&2;}
22759 { (exit 1); exit 1; }; }
22762 : ${CONFIG_STATUS=./config.status}
22763 ac_clean_files_save=$ac_clean_files
22764 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22765 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22766 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22767 cat >$CONFIG_STATUS <<_ACEOF
22768 #! $SHELL
22769 # Generated by $as_me.
22770 # Run this file to recreate the current configuration.
22771 # Compiler output produced by configure, useful for debugging
22772 # configure, is in config.log if it exists.
22774 debug=false
22775 ac_cs_recheck=false
22776 ac_cs_silent=false
22777 SHELL=\${CONFIG_SHELL-$SHELL}
22778 _ACEOF
22780 cat >>$CONFIG_STATUS <<\_ACEOF
22781 ## --------------------- ##
22782 ## M4sh Initialization. ##
22783 ## --------------------- ##
22785 # Be Bourne compatible
22786 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22787 emulate sh
22788 NULLCMD=:
22789 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22790 # is contrary to our usage. Disable this feature.
22791 alias -g '${1+"$@"}'='"$@"'
22792 setopt NO_GLOB_SUBST
22793 else
22794 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22796 BIN_SH=xpg4; export BIN_SH # for Tru64
22797 DUALCASE=1; export DUALCASE # for MKS sh
22800 # PATH needs CR
22801 # Avoid depending upon Character Ranges.
22802 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22803 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22804 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22805 as_cr_digits='0123456789'
22806 as_cr_alnum=$as_cr_Letters$as_cr_digits
22808 # The user is always right.
22809 if test "${PATH_SEPARATOR+set}" != set; then
22810 echo "#! /bin/sh" >conf$$.sh
22811 echo "exit 0" >>conf$$.sh
22812 chmod +x conf$$.sh
22813 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22814 PATH_SEPARATOR=';'
22815 else
22816 PATH_SEPARATOR=:
22818 rm -f conf$$.sh
22821 # Support unset when possible.
22822 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22823 as_unset=unset
22824 else
22825 as_unset=false
22829 # IFS
22830 # We need space, tab and new line, in precisely that order. Quoting is
22831 # there to prevent editors from complaining about space-tab.
22832 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22833 # splitting by setting IFS to empty value.)
22834 as_nl='
22836 IFS=" "" $as_nl"
22838 # Find who we are. Look in the path if we contain no directory separator.
22839 case $0 in
22840 *[\\/]* ) as_myself=$0 ;;
22841 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22842 for as_dir in $PATH
22844 IFS=$as_save_IFS
22845 test -z "$as_dir" && as_dir=.
22846 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22847 done
22848 IFS=$as_save_IFS
22851 esac
22852 # We did not find ourselves, most probably we were run as `sh COMMAND'
22853 # in which case we are not to be found in the path.
22854 if test "x$as_myself" = x; then
22855 as_myself=$0
22857 if test ! -f "$as_myself"; then
22858 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22859 { (exit 1); exit 1; }
22862 # Work around bugs in pre-3.0 UWIN ksh.
22863 for as_var in ENV MAIL MAILPATH
22864 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22865 done
22866 PS1='$ '
22867 PS2='> '
22868 PS4='+ '
22870 # NLS nuisances.
22871 for as_var in \
22872 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22873 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22874 LC_TELEPHONE LC_TIME
22876 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22877 eval $as_var=C; export $as_var
22878 else
22879 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22881 done
22883 # Required to use basename.
22884 if expr a : '\(a\)' >/dev/null 2>&1 &&
22885 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22886 as_expr=expr
22887 else
22888 as_expr=false
22891 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22892 as_basename=basename
22893 else
22894 as_basename=false
22898 # Name of the executable.
22899 as_me=`$as_basename -- "$0" ||
22900 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22901 X"$0" : 'X\(//\)$' \| \
22902 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22903 echo X/"$0" |
22904 sed '/^.*\/\([^/][^/]*\)\/*$/{
22905 s//\1/
22908 /^X\/\(\/\/\)$/{
22909 s//\1/
22912 /^X\/\(\/\).*/{
22913 s//\1/
22916 s/.*/./; q'`
22918 # CDPATH.
22919 $as_unset CDPATH
22923 as_lineno_1=$LINENO
22924 as_lineno_2=$LINENO
22925 test "x$as_lineno_1" != "x$as_lineno_2" &&
22926 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22928 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22929 # uniformly replaced by the line number. The first 'sed' inserts a
22930 # line-number line after each line using $LINENO; the second 'sed'
22931 # does the real work. The second script uses 'N' to pair each
22932 # line-number line with the line containing $LINENO, and appends
22933 # trailing '-' during substitution so that $LINENO is not a special
22934 # case at line end.
22935 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22936 # scripts with optimization help from Paolo Bonzini. Blame Lee
22937 # E. McMahon (1931-1989) for sed's syntax. :-)
22938 sed -n '
22940 /[$]LINENO/=
22941 ' <$as_myself |
22942 sed '
22943 s/[$]LINENO.*/&-/
22944 t lineno
22946 :lineno
22948 :loop
22949 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22950 t loop
22951 s/-\n.*//
22952 ' >$as_me.lineno &&
22953 chmod +x "$as_me.lineno" ||
22954 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22955 { (exit 1); exit 1; }; }
22957 # Don't try to exec as it changes $[0], causing all sort of problems
22958 # (the dirname of $[0] is not the place where we might find the
22959 # original and so on. Autoconf is especially sensitive to this).
22960 . "./$as_me.lineno"
22961 # Exit status is that of the last command.
22962 exit
22966 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22967 as_dirname=dirname
22968 else
22969 as_dirname=false
22972 ECHO_C= ECHO_N= ECHO_T=
22973 case `echo -n x` in
22974 -n*)
22975 case `echo 'x\c'` in
22976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22977 *) ECHO_C='\c';;
22978 esac;;
22980 ECHO_N='-n';;
22981 esac
22983 if expr a : '\(a\)' >/dev/null 2>&1 &&
22984 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22985 as_expr=expr
22986 else
22987 as_expr=false
22990 rm -f conf$$ conf$$.exe conf$$.file
22991 if test -d conf$$.dir; then
22992 rm -f conf$$.dir/conf$$.file
22993 else
22994 rm -f conf$$.dir
22995 mkdir conf$$.dir
22997 echo >conf$$.file
22998 if ln -s conf$$.file conf$$ 2>/dev/null; then
22999 as_ln_s='ln -s'
23000 # ... but there are two gotchas:
23001 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23002 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23003 # In both cases, we have to default to `cp -p'.
23004 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23005 as_ln_s='cp -p'
23006 elif ln conf$$.file conf$$ 2>/dev/null; then
23007 as_ln_s=ln
23008 else
23009 as_ln_s='cp -p'
23011 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23012 rmdir conf$$.dir 2>/dev/null
23014 if mkdir -p . 2>/dev/null; then
23015 as_mkdir_p=:
23016 else
23017 test -d ./-p && rmdir ./-p
23018 as_mkdir_p=false
23021 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23022 # systems may use methods other than mode bits to determine executability.
23023 cat >conf$$.file <<_ASEOF
23024 #! /bin/sh
23025 exit 0
23026 _ASEOF
23027 chmod +x conf$$.file
23028 if test -x conf$$.file >/dev/null 2>&1; then
23029 as_executable_p="test -x"
23030 else
23031 as_executable_p=:
23033 rm -f conf$$.file
23035 # Sed expression to map a string onto a valid CPP name.
23036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23038 # Sed expression to map a string onto a valid variable name.
23039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23042 exec 6>&1
23044 # Save the log message, to keep $[0] and so on meaningful, and to
23045 # report actual input values of CONFIG_FILES etc. instead of their
23046 # values after options handling.
23047 ac_log="
23048 This file was extended by llvm $as_me 3.0svn, which was
23049 generated by GNU Autoconf 2.60. Invocation command line was
23051 CONFIG_FILES = $CONFIG_FILES
23052 CONFIG_HEADERS = $CONFIG_HEADERS
23053 CONFIG_LINKS = $CONFIG_LINKS
23054 CONFIG_COMMANDS = $CONFIG_COMMANDS
23055 $ $0 $@
23057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23060 _ACEOF
23062 cat >>$CONFIG_STATUS <<_ACEOF
23063 # Files that config.status was made for.
23064 config_files="$ac_config_files"
23065 config_headers="$ac_config_headers"
23066 config_commands="$ac_config_commands"
23068 _ACEOF
23070 cat >>$CONFIG_STATUS <<\_ACEOF
23071 ac_cs_usage="\
23072 \`$as_me' instantiates files from templates according to the
23073 current configuration.
23075 Usage: $0 [OPTIONS] [FILE]...
23077 -h, --help print this help, then exit
23078 -V, --version print version number, then exit
23079 -q, --quiet do not print progress messages
23080 -d, --debug don't remove temporary files
23081 --recheck update $as_me by reconfiguring in the same conditions
23082 --file=FILE[:TEMPLATE]
23083 instantiate the configuration file FILE
23084 --header=FILE[:TEMPLATE]
23085 instantiate the configuration header FILE
23087 Configuration files:
23088 $config_files
23090 Configuration headers:
23091 $config_headers
23093 Configuration commands:
23094 $config_commands
23096 Report bugs to <bug-autoconf@gnu.org>."
23098 _ACEOF
23099 cat >>$CONFIG_STATUS <<_ACEOF
23100 ac_cs_version="\\
23101 llvm config.status 3.0svn
23102 configured by $0, generated by GNU Autoconf 2.60,
23103 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23105 Copyright (C) 2006 Free Software Foundation, Inc.
23106 This config.status script is free software; the Free Software Foundation
23107 gives unlimited permission to copy, distribute and modify it."
23109 ac_pwd='$ac_pwd'
23110 srcdir='$srcdir'
23111 INSTALL='$INSTALL'
23112 _ACEOF
23114 cat >>$CONFIG_STATUS <<\_ACEOF
23115 # If no file are specified by the user, then we need to provide default
23116 # value. By we need to know if files were specified by the user.
23117 ac_need_defaults=:
23118 while test $# != 0
23120 case $1 in
23121 --*=*)
23122 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23123 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23124 ac_shift=:
23127 ac_option=$1
23128 ac_optarg=$2
23129 ac_shift=shift
23131 esac
23133 case $ac_option in
23134 # Handling of the options.
23135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23136 ac_cs_recheck=: ;;
23137 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23138 echo "$ac_cs_version"; exit ;;
23139 --debug | --debu | --deb | --de | --d | -d )
23140 debug=: ;;
23141 --file | --fil | --fi | --f )
23142 $ac_shift
23143 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23144 ac_need_defaults=false;;
23145 --header | --heade | --head | --hea )
23146 $ac_shift
23147 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23148 ac_need_defaults=false;;
23149 --he | --h)
23150 # Conflict between --help and --header
23151 { echo "$as_me: error: ambiguous option: $1
23152 Try \`$0 --help' for more information." >&2
23153 { (exit 1); exit 1; }; };;
23154 --help | --hel | -h )
23155 echo "$ac_cs_usage"; exit ;;
23156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23158 ac_cs_silent=: ;;
23160 # This is an error.
23161 -*) { echo "$as_me: error: unrecognized option: $1
23162 Try \`$0 --help' for more information." >&2
23163 { (exit 1); exit 1; }; } ;;
23165 *) ac_config_targets="$ac_config_targets $1"
23166 ac_need_defaults=false ;;
23168 esac
23169 shift
23170 done
23172 ac_configure_extra_args=
23174 if $ac_cs_silent; then
23175 exec 6>/dev/null
23176 ac_configure_extra_args="$ac_configure_extra_args --silent"
23179 _ACEOF
23180 cat >>$CONFIG_STATUS <<_ACEOF
23181 if \$ac_cs_recheck; then
23182 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23183 CONFIG_SHELL=$SHELL
23184 export CONFIG_SHELL
23185 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23188 _ACEOF
23189 cat >>$CONFIG_STATUS <<\_ACEOF
23190 exec 5>>config.log
23192 echo
23193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23194 ## Running $as_me. ##
23195 _ASBOX
23196 echo "$ac_log"
23197 } >&5
23199 _ACEOF
23200 cat >>$CONFIG_STATUS <<_ACEOF
23202 # INIT-COMMANDS
23204 llvm_src="${srcdir}"
23206 _ACEOF
23208 cat >>$CONFIG_STATUS <<\_ACEOF
23210 # Handling of arguments.
23211 for ac_config_target in $ac_config_targets
23213 case $ac_config_target in
23214 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23215 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23216 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23217 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23218 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23219 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23220 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23221 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23222 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23223 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23224 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23225 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23226 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23227 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23228 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23229 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23230 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23231 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23232 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23233 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23234 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23235 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23236 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23237 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23238 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23239 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23240 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23242 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23243 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23244 { (exit 1); exit 1; }; };;
23245 esac
23246 done
23249 # If the user did not use the arguments to specify the items to instantiate,
23250 # then the envvar interface is used. Set only those that are not.
23251 # We use the long form for the default assignment because of an extremely
23252 # bizarre bug on SunOS 4.1.3.
23253 if $ac_need_defaults; then
23254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23256 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23259 # Have a temporary directory for convenience. Make it in the build tree
23260 # simply because there is no reason against having it here, and in addition,
23261 # creating and moving files from /tmp can sometimes cause problems.
23262 # Hook for its removal unless debugging.
23263 # Note that there is a small window in which the directory will not be cleaned:
23264 # after its creation but before its name has been assigned to `$tmp'.
23265 $debug ||
23267 tmp=
23268 trap 'exit_status=$?
23269 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23271 trap '{ (exit 1); exit 1; }' 1 2 13 15
23273 # Create a (secure) tmp directory for tmp files.
23276 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23277 test -n "$tmp" && test -d "$tmp"
23278 } ||
23280 tmp=./conf$$-$RANDOM
23281 (umask 077 && mkdir "$tmp")
23282 } ||
23284 echo "$me: cannot create a temporary directory in ." >&2
23285 { (exit 1); exit 1; }
23289 # Set up the sed scripts for CONFIG_FILES section.
23292 # No need to generate the scripts if there are no CONFIG_FILES.
23293 # This happens for instance when ./config.status config.h
23294 if test -n "$CONFIG_FILES"; then
23296 _ACEOF
23300 ac_delim='%!_!# '
23301 for ac_last_try in false false false false false :; do
23302 cat >conf$$subs.sed <<_ACEOF
23303 SHELL!$SHELL$ac_delim
23304 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23305 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23306 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23307 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23308 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23309 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23310 exec_prefix!$exec_prefix$ac_delim
23311 prefix!$prefix$ac_delim
23312 program_transform_name!$program_transform_name$ac_delim
23313 bindir!$bindir$ac_delim
23314 sbindir!$sbindir$ac_delim
23315 libexecdir!$libexecdir$ac_delim
23316 datarootdir!$datarootdir$ac_delim
23317 datadir!$datadir$ac_delim
23318 sysconfdir!$sysconfdir$ac_delim
23319 sharedstatedir!$sharedstatedir$ac_delim
23320 localstatedir!$localstatedir$ac_delim
23321 includedir!$includedir$ac_delim
23322 oldincludedir!$oldincludedir$ac_delim
23323 docdir!$docdir$ac_delim
23324 infodir!$infodir$ac_delim
23325 htmldir!$htmldir$ac_delim
23326 dvidir!$dvidir$ac_delim
23327 pdfdir!$pdfdir$ac_delim
23328 psdir!$psdir$ac_delim
23329 libdir!$libdir$ac_delim
23330 localedir!$localedir$ac_delim
23331 mandir!$mandir$ac_delim
23332 DEFS!$DEFS$ac_delim
23333 ECHO_C!$ECHO_C$ac_delim
23334 ECHO_N!$ECHO_N$ac_delim
23335 ECHO_T!$ECHO_T$ac_delim
23336 LIBS!$LIBS$ac_delim
23337 build_alias!$build_alias$ac_delim
23338 host_alias!$host_alias$ac_delim
23339 target_alias!$target_alias$ac_delim
23340 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23341 subdirs!$subdirs$ac_delim
23342 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23343 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23344 build!$build$ac_delim
23345 build_cpu!$build_cpu$ac_delim
23346 build_vendor!$build_vendor$ac_delim
23347 build_os!$build_os$ac_delim
23348 host!$host$ac_delim
23349 host_cpu!$host_cpu$ac_delim
23350 host_vendor!$host_vendor$ac_delim
23351 host_os!$host_os$ac_delim
23352 target!$target$ac_delim
23353 target_cpu!$target_cpu$ac_delim
23354 target_vendor!$target_vendor$ac_delim
23355 target_os!$target_os$ac_delim
23356 OS!$OS$ac_delim
23357 HOST_OS!$HOST_OS$ac_delim
23358 TARGET_OS!$TARGET_OS$ac_delim
23359 LINKALL!$LINKALL$ac_delim
23360 NOLINKALL!$NOLINKALL$ac_delim
23361 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23362 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23363 ARCH!$ARCH$ac_delim
23364 ENDIAN!$ENDIAN$ac_delim
23365 CC!$CC$ac_delim
23366 CFLAGS!$CFLAGS$ac_delim
23367 LDFLAGS!$LDFLAGS$ac_delim
23368 CPPFLAGS!$CPPFLAGS$ac_delim
23369 ac_ct_CC!$ac_ct_CC$ac_delim
23370 EXEEXT!$EXEEXT$ac_delim
23371 OBJEXT!$OBJEXT$ac_delim
23372 CPP!$CPP$ac_delim
23373 GREP!$GREP$ac_delim
23374 EGREP!$EGREP$ac_delim
23375 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23376 BUILD_CC!$BUILD_CC$ac_delim
23377 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23378 BUILD_CXX!$BUILD_CXX$ac_delim
23379 CVSBUILD!$CVSBUILD$ac_delim
23380 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23381 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23382 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23383 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23384 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23385 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23386 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23387 JIT!$JIT$ac_delim
23388 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23389 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23390 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23391 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23392 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23393 ENABLE_PIC!$ENABLE_PIC$ac_delim
23394 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23395 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23396 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23397 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23398 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23399 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23400 _ACEOF
23402 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23403 break
23404 elif $ac_last_try; then
23405 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23406 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23407 { (exit 1); exit 1; }; }
23408 else
23409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23411 done
23413 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23414 if test -n "$ac_eof"; then
23415 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23416 ac_eof=`expr $ac_eof + 1`
23419 cat >>$CONFIG_STATUS <<_ACEOF
23420 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23422 _ACEOF
23423 sed '
23424 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23425 s/^/s,@/; s/!/@,|#_!!_#|/
23428 s/'"$ac_delim"'$/,g/; t
23429 s/$/\\/; p
23430 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23431 ' >>$CONFIG_STATUS <conf$$subs.sed
23432 rm -f conf$$subs.sed
23433 cat >>$CONFIG_STATUS <<_ACEOF
23434 CEOF$ac_eof
23435 _ACEOF
23438 ac_delim='%!_!# '
23439 for ac_last_try in false false false false false :; do
23440 cat >conf$$subs.sed <<_ACEOF
23441 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23442 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23443 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23444 CLANGPATH!$CLANGPATH$ac_delim
23445 CLANGXXPATH!$CLANGXXPATH$ac_delim
23446 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23447 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23448 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23449 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23450 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23451 CXX!$CXX$ac_delim
23452 CXXFLAGS!$CXXFLAGS$ac_delim
23453 ac_ct_CXX!$ac_ct_CXX$ac_delim
23454 NM!$NM$ac_delim
23455 ifGNUmake!$ifGNUmake$ac_delim
23456 LN_S!$LN_S$ac_delim
23457 CMP!$CMP$ac_delim
23458 CP!$CP$ac_delim
23459 DATE!$DATE$ac_delim
23460 FIND!$FIND$ac_delim
23461 MKDIR!$MKDIR$ac_delim
23462 MV!$MV$ac_delim
23463 RANLIB!$RANLIB$ac_delim
23464 AR!$AR$ac_delim
23465 RM!$RM$ac_delim
23466 SED!$SED$ac_delim
23467 TAR!$TAR$ac_delim
23468 BINPWD!$BINPWD$ac_delim
23469 GRAPHVIZ!$GRAPHVIZ$ac_delim
23470 DOT!$DOT$ac_delim
23471 FDP!$FDP$ac_delim
23472 NEATO!$NEATO$ac_delim
23473 TWOPI!$TWOPI$ac_delim
23474 CIRCO!$CIRCO$ac_delim
23475 GV!$GV$ac_delim
23476 DOTTY!$DOTTY$ac_delim
23477 XDOT_PY!$XDOT_PY$ac_delim
23478 PERL!$PERL$ac_delim
23479 HAVE_PERL!$HAVE_PERL$ac_delim
23480 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23481 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23482 INSTALL_DATA!$INSTALL_DATA$ac_delim
23483 BZIP2!$BZIP2$ac_delim
23484 CAT!$CAT$ac_delim
23485 DOXYGEN!$DOXYGEN$ac_delim
23486 GROFF!$GROFF$ac_delim
23487 GZIPBIN!$GZIPBIN$ac_delim
23488 POD2HTML!$POD2HTML$ac_delim
23489 POD2MAN!$POD2MAN$ac_delim
23490 PDFROFF!$PDFROFF$ac_delim
23491 RUNTEST!$RUNTEST$ac_delim
23492 TCLSH!$TCLSH$ac_delim
23493 ZIP!$ZIP$ac_delim
23494 OCAMLC!$OCAMLC$ac_delim
23495 OCAMLOPT!$OCAMLOPT$ac_delim
23496 OCAMLDEP!$OCAMLDEP$ac_delim
23497 OCAMLDOC!$OCAMLDOC$ac_delim
23498 GAS!$GAS$ac_delim
23499 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23500 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23501 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23502 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23503 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23504 LIBADD_DL!$LIBADD_DL$ac_delim
23505 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23506 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23507 LLVMGCC!$LLVMGCC$ac_delim
23508 LLVMGXX!$LLVMGXX$ac_delim
23509 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23510 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23511 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23512 USE_UDIS86!$USE_UDIS86$ac_delim
23513 USE_OPROFILE!$USE_OPROFILE$ac_delim
23514 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23515 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23516 MMAP_FILE!$MMAP_FILE$ac_delim
23517 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23518 LLVMCC1!$LLVMCC1$ac_delim
23519 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23520 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23521 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23522 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23523 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23524 SHLIBEXT!$SHLIBEXT$ac_delim
23525 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23526 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23527 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23528 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23529 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23530 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23531 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23532 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23533 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23534 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23535 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23536 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23537 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23538 _ACEOF
23540 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23541 break
23542 elif $ac_last_try; then
23543 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23544 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23545 { (exit 1); exit 1; }; }
23546 else
23547 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23549 done
23551 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23552 if test -n "$ac_eof"; then
23553 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23554 ac_eof=`expr $ac_eof + 1`
23557 cat >>$CONFIG_STATUS <<_ACEOF
23558 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23559 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23560 _ACEOF
23561 sed '
23562 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23563 s/^/s,@/; s/!/@,|#_!!_#|/
23566 s/'"$ac_delim"'$/,g/; t
23567 s/$/\\/; p
23568 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23569 ' >>$CONFIG_STATUS <conf$$subs.sed
23570 rm -f conf$$subs.sed
23571 cat >>$CONFIG_STATUS <<_ACEOF
23572 CEOF$ac_eof
23573 _ACEOF
23576 ac_delim='%!_!# '
23577 for ac_last_try in false false false false false :; do
23578 cat >conf$$subs.sed <<_ACEOF
23579 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23580 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23581 RPATH!$RPATH$ac_delim
23582 RDYNAMIC!$RDYNAMIC$ac_delim
23583 LIBOBJS!$LIBOBJS$ac_delim
23584 LTLIBOBJS!$LTLIBOBJS$ac_delim
23585 _ACEOF
23587 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23588 break
23589 elif $ac_last_try; then
23590 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23591 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23592 { (exit 1); exit 1; }; }
23593 else
23594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23596 done
23598 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23599 if test -n "$ac_eof"; then
23600 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23601 ac_eof=`expr $ac_eof + 1`
23604 cat >>$CONFIG_STATUS <<_ACEOF
23605 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23606 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23607 _ACEOF
23608 sed '
23609 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23610 s/^/s,@/; s/!/@,|#_!!_#|/
23613 s/'"$ac_delim"'$/,g/; t
23614 s/$/\\/; p
23615 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23616 ' >>$CONFIG_STATUS <conf$$subs.sed
23617 rm -f conf$$subs.sed
23618 cat >>$CONFIG_STATUS <<_ACEOF
23619 :end
23620 s/|#_!!_#|//g
23621 CEOF$ac_eof
23622 _ACEOF
23625 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23626 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23627 # trailing colons and then remove the whole line if VPATH becomes empty
23628 # (actually we leave an empty line to preserve line numbers).
23629 if test "x$srcdir" = x.; then
23630 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23631 s/:*\$(srcdir):*/:/
23632 s/:*\${srcdir}:*/:/
23633 s/:*@srcdir@:*/:/
23634 s/^\([^=]*=[ ]*\):*/\1/
23635 s/:*$//
23636 s/^[^=]*=[ ]*$//
23640 cat >>$CONFIG_STATUS <<\_ACEOF
23641 fi # test -n "$CONFIG_FILES"
23644 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23646 case $ac_tag in
23647 :[FHLC]) ac_mode=$ac_tag; continue;;
23648 esac
23649 case $ac_mode$ac_tag in
23650 :[FHL]*:*);;
23651 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23652 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23653 { (exit 1); exit 1; }; };;
23654 :[FH]-) ac_tag=-:-;;
23655 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23656 esac
23657 ac_save_IFS=$IFS
23658 IFS=:
23659 set x $ac_tag
23660 IFS=$ac_save_IFS
23661 shift
23662 ac_file=$1
23663 shift
23665 case $ac_mode in
23666 :L) ac_source=$1;;
23667 :[FH])
23668 ac_file_inputs=
23669 for ac_f
23671 case $ac_f in
23672 -) ac_f="$tmp/stdin";;
23673 *) # Look for the file first in the build tree, then in the source tree
23674 # (if the path is not absolute). The absolute path cannot be DOS-style,
23675 # because $ac_f cannot contain `:'.
23676 test -f "$ac_f" ||
23677 case $ac_f in
23678 [\\/$]*) false;;
23679 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23680 esac ||
23681 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23682 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23683 { (exit 1); exit 1; }; };;
23684 esac
23685 ac_file_inputs="$ac_file_inputs $ac_f"
23686 done
23688 # Let's still pretend it is `configure' which instantiates (i.e., don't
23689 # use $as_me), people would be surprised to read:
23690 # /* config.h. Generated by config.status. */
23691 configure_input="Generated from "`IFS=:
23692 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23693 if test x"$ac_file" != x-; then
23694 configure_input="$ac_file. $configure_input"
23695 { echo "$as_me:$LINENO: creating $ac_file" >&5
23696 echo "$as_me: creating $ac_file" >&6;}
23699 case $ac_tag in
23700 *:-:* | *:-) cat >"$tmp/stdin";;
23701 esac
23703 esac
23705 ac_dir=`$as_dirname -- "$ac_file" ||
23706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23707 X"$ac_file" : 'X\(//\)[^/]' \| \
23708 X"$ac_file" : 'X\(//\)$' \| \
23709 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23710 echo X"$ac_file" |
23711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23712 s//\1/
23715 /^X\(\/\/\)[^/].*/{
23716 s//\1/
23719 /^X\(\/\/\)$/{
23720 s//\1/
23723 /^X\(\/\).*/{
23724 s//\1/
23727 s/.*/./; q'`
23728 { as_dir="$ac_dir"
23729 case $as_dir in #(
23730 -*) as_dir=./$as_dir;;
23731 esac
23732 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23733 as_dirs=
23734 while :; do
23735 case $as_dir in #(
23736 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23737 *) as_qdir=$as_dir;;
23738 esac
23739 as_dirs="'$as_qdir' $as_dirs"
23740 as_dir=`$as_dirname -- "$as_dir" ||
23741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23742 X"$as_dir" : 'X\(//\)[^/]' \| \
23743 X"$as_dir" : 'X\(//\)$' \| \
23744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23745 echo X"$as_dir" |
23746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23747 s//\1/
23750 /^X\(\/\/\)[^/].*/{
23751 s//\1/
23754 /^X\(\/\/\)$/{
23755 s//\1/
23758 /^X\(\/\).*/{
23759 s//\1/
23762 s/.*/./; q'`
23763 test -d "$as_dir" && break
23764 done
23765 test -z "$as_dirs" || eval "mkdir $as_dirs"
23766 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23767 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23768 { (exit 1); exit 1; }; }; }
23769 ac_builddir=.
23771 case "$ac_dir" in
23772 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23774 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23775 # A ".." for each directory in $ac_dir_suffix.
23776 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23777 case $ac_top_builddir_sub in
23778 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23779 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23780 esac ;;
23781 esac
23782 ac_abs_top_builddir=$ac_pwd
23783 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23784 # for backward compatibility:
23785 ac_top_builddir=$ac_top_build_prefix
23787 case $srcdir in
23788 .) # We are building in place.
23789 ac_srcdir=.
23790 ac_top_srcdir=$ac_top_builddir_sub
23791 ac_abs_top_srcdir=$ac_pwd ;;
23792 [\\/]* | ?:[\\/]* ) # Absolute name.
23793 ac_srcdir=$srcdir$ac_dir_suffix;
23794 ac_top_srcdir=$srcdir
23795 ac_abs_top_srcdir=$srcdir ;;
23796 *) # Relative name.
23797 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23798 ac_top_srcdir=$ac_top_build_prefix$srcdir
23799 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23800 esac
23801 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23804 case $ac_mode in
23807 # CONFIG_FILE
23810 case $INSTALL in
23811 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23812 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23813 esac
23814 _ACEOF
23816 cat >>$CONFIG_STATUS <<\_ACEOF
23817 # If the template does not know about datarootdir, expand it.
23818 # FIXME: This hack should be removed a few years after 2.60.
23819 ac_datarootdir_hack=; ac_datarootdir_seen=
23821 case `sed -n '/datarootdir/ {
23825 /@datadir@/p
23826 /@docdir@/p
23827 /@infodir@/p
23828 /@localedir@/p
23829 /@mandir@/p
23830 ' $ac_file_inputs` in
23831 *datarootdir*) ac_datarootdir_seen=yes;;
23832 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23833 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23834 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23835 _ACEOF
23836 cat >>$CONFIG_STATUS <<_ACEOF
23837 ac_datarootdir_hack='
23838 s&@datadir@&$datadir&g
23839 s&@docdir@&$docdir&g
23840 s&@infodir@&$infodir&g
23841 s&@localedir@&$localedir&g
23842 s&@mandir@&$mandir&g
23843 s&\\\${datarootdir}&$datarootdir&g' ;;
23844 esac
23845 _ACEOF
23847 # Neutralize VPATH when `$srcdir' = `.'.
23848 # Shell code in configure.ac might set extrasub.
23849 # FIXME: do we really want to maintain this feature?
23850 cat >>$CONFIG_STATUS <<_ACEOF
23851 sed "$ac_vpsub
23852 $extrasub
23853 _ACEOF
23854 cat >>$CONFIG_STATUS <<\_ACEOF
23856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23857 s&@configure_input@&$configure_input&;t t
23858 s&@top_builddir@&$ac_top_builddir_sub&;t t
23859 s&@srcdir@&$ac_srcdir&;t t
23860 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23861 s&@top_srcdir@&$ac_top_srcdir&;t t
23862 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23863 s&@builddir@&$ac_builddir&;t t
23864 s&@abs_builddir@&$ac_abs_builddir&;t t
23865 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23866 s&@INSTALL@&$ac_INSTALL&;t t
23867 $ac_datarootdir_hack
23868 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23870 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23871 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23872 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23873 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23874 which seems to be undefined. Please make sure it is defined." >&5
23875 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23876 which seems to be undefined. Please make sure it is defined." >&2;}
23878 rm -f "$tmp/stdin"
23879 case $ac_file in
23880 -) cat "$tmp/out"; rm -f "$tmp/out";;
23881 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23882 esac
23886 # CONFIG_HEADER
23888 _ACEOF
23890 # Transform confdefs.h into a sed script `conftest.defines', that
23891 # substitutes the proper values into config.h.in to produce config.h.
23892 rm -f conftest.defines conftest.tail
23893 # First, append a space to every undef/define line, to ease matching.
23894 echo 's/$/ /' >conftest.defines
23895 # Then, protect against being on the right side of a sed subst, or in
23896 # an unquoted here document, in config.status. If some macros were
23897 # called several times there might be several #defines for the same
23898 # symbol, which is useless. But do not sort them, since the last
23899 # AC_DEFINE must be honored.
23900 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23901 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23902 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23903 # PARAMS is the parameter list in the macro definition--in most cases, it's
23904 # just an empty string.
23905 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23906 ac_dB='\\)[ (].*,\\1define\\2'
23907 ac_dC=' '
23908 ac_dD=' ,'
23910 uniq confdefs.h |
23911 sed -n '
23912 t rset
23913 :rset
23914 s/^[ ]*#[ ]*define[ ][ ]*//
23915 t ok
23918 s/[\\&,]/\\&/g
23919 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23920 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23921 ' >>conftest.defines
23923 # Remove the space that was appended to ease matching.
23924 # Then replace #undef with comments. This is necessary, for
23925 # example, in the case of _POSIX_SOURCE, which is predefined and required
23926 # on some systems where configure will not decide to define it.
23927 # (The regexp can be short, since the line contains either #define or #undef.)
23928 echo 's/ $//
23929 s,^[ #]*u.*,/* & */,' >>conftest.defines
23931 # Break up conftest.defines:
23932 ac_max_sed_lines=50
23934 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23935 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23936 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23937 # et cetera.
23938 ac_in='$ac_file_inputs'
23939 ac_out='"$tmp/out1"'
23940 ac_nxt='"$tmp/out2"'
23942 while :
23944 # Write a here document:
23945 cat >>$CONFIG_STATUS <<_ACEOF
23946 # First, check the format of the line:
23947 cat >"\$tmp/defines.sed" <<\\CEOF
23948 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23949 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23951 :def
23952 _ACEOF
23953 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23954 echo 'CEOF
23955 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23956 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23957 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23958 grep . conftest.tail >/dev/null || break
23959 rm -f conftest.defines
23960 mv conftest.tail conftest.defines
23961 done
23962 rm -f conftest.defines conftest.tail
23964 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23965 cat >>$CONFIG_STATUS <<\_ACEOF
23966 if test x"$ac_file" != x-; then
23967 echo "/* $configure_input */" >"$tmp/config.h"
23968 cat "$ac_result" >>"$tmp/config.h"
23969 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23970 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23971 echo "$as_me: $ac_file is unchanged" >&6;}
23972 else
23973 rm -f $ac_file
23974 mv "$tmp/config.h" $ac_file
23976 else
23977 echo "/* $configure_input */"
23978 cat "$ac_result"
23980 rm -f "$tmp/out12"
23983 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23984 echo "$as_me: executing $ac_file commands" >&6;}
23986 esac
23989 case $ac_file$ac_mode in
23990 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23992 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23994 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23996 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23998 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24000 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24002 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24004 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24006 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24008 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24010 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24012 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24014 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24017 esac
24018 done # for ac_tag
24021 { (exit 0); exit 0; }
24022 _ACEOF
24023 chmod +x $CONFIG_STATUS
24024 ac_clean_files=$ac_clean_files_save
24027 # configure is writing to config.log, and then calls config.status.
24028 # config.status does its own redirection, appending to config.log.
24029 # Unfortunately, on DOS this fails, as config.log is still kept open
24030 # by configure, so config.status won't be able to write to it; its
24031 # output is simply discarded. So we exec the FD to /dev/null,
24032 # effectively closing config.log, so it can be properly (re)opened and
24033 # appended to by config.status. When coming back to configure, we
24034 # need to make the FD available again.
24035 if test "$no_create" != yes; then
24036 ac_cs_success=:
24037 ac_config_status_args=
24038 test "$silent" = yes &&
24039 ac_config_status_args="$ac_config_status_args --quiet"
24040 exec 5>/dev/null
24041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24042 exec 5>>config.log
24043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24044 # would make configure fail if this is the last instruction.
24045 $ac_cs_success || { (exit 1); exit 1; }
24049 # CONFIG_SUBDIRS section.
24051 if test "$no_recursion" != yes; then
24053 # Remove --cache-file and --srcdir arguments so they do not pile up.
24054 ac_sub_configure_args=
24055 ac_prev=
24056 eval "set x $ac_configure_args"
24057 shift
24058 for ac_arg
24060 if test -n "$ac_prev"; then
24061 ac_prev=
24062 continue
24064 case $ac_arg in
24065 -cache-file | --cache-file | --cache-fil | --cache-fi \
24066 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24067 ac_prev=cache_file ;;
24068 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24069 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24070 | --c=*)
24072 --config-cache | -C)
24074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24075 ac_prev=srcdir ;;
24076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24079 ac_prev=prefix ;;
24080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24083 case $ac_arg in
24084 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24085 esac
24086 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24087 esac
24088 done
24090 # Always prepend --prefix to ensure using the same prefix
24091 # in subdir configurations.
24092 ac_arg="--prefix=$prefix"
24093 case $ac_arg in
24094 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24095 esac
24096 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24098 ac_popdir=`pwd`
24099 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24101 # Do not complain, so a configure script can configure whichever
24102 # parts of a large source tree are present.
24103 test -d "$srcdir/$ac_dir" || continue
24105 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24106 echo "$as_me:$LINENO: $ac_msg" >&5
24107 echo "$ac_msg" >&6
24108 { as_dir="$ac_dir"
24109 case $as_dir in #(
24110 -*) as_dir=./$as_dir;;
24111 esac
24112 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24113 as_dirs=
24114 while :; do
24115 case $as_dir in #(
24116 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24117 *) as_qdir=$as_dir;;
24118 esac
24119 as_dirs="'$as_qdir' $as_dirs"
24120 as_dir=`$as_dirname -- "$as_dir" ||
24121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24122 X"$as_dir" : 'X\(//\)[^/]' \| \
24123 X"$as_dir" : 'X\(//\)$' \| \
24124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24125 echo X"$as_dir" |
24126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24127 s//\1/
24130 /^X\(\/\/\)[^/].*/{
24131 s//\1/
24134 /^X\(\/\/\)$/{
24135 s//\1/
24138 /^X\(\/\).*/{
24139 s//\1/
24142 s/.*/./; q'`
24143 test -d "$as_dir" && break
24144 done
24145 test -z "$as_dirs" || eval "mkdir $as_dirs"
24146 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24147 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24148 { (exit 1); exit 1; }; }; }
24149 ac_builddir=.
24151 case "$ac_dir" in
24152 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24154 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24155 # A ".." for each directory in $ac_dir_suffix.
24156 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24157 case $ac_top_builddir_sub in
24158 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24159 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24160 esac ;;
24161 esac
24162 ac_abs_top_builddir=$ac_pwd
24163 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24164 # for backward compatibility:
24165 ac_top_builddir=$ac_top_build_prefix
24167 case $srcdir in
24168 .) # We are building in place.
24169 ac_srcdir=.
24170 ac_top_srcdir=$ac_top_builddir_sub
24171 ac_abs_top_srcdir=$ac_pwd ;;
24172 [\\/]* | ?:[\\/]* ) # Absolute name.
24173 ac_srcdir=$srcdir$ac_dir_suffix;
24174 ac_top_srcdir=$srcdir
24175 ac_abs_top_srcdir=$srcdir ;;
24176 *) # Relative name.
24177 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24178 ac_top_srcdir=$ac_top_build_prefix$srcdir
24179 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24180 esac
24181 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24184 cd "$ac_dir"
24186 # Check for guested configure; otherwise get Cygnus style configure.
24187 if test -f "$ac_srcdir/configure.gnu"; then
24188 ac_sub_configure=$ac_srcdir/configure.gnu
24189 elif test -f "$ac_srcdir/configure"; then
24190 ac_sub_configure=$ac_srcdir/configure
24191 elif test -f "$ac_srcdir/configure.in"; then
24192 # This should be Cygnus configure.
24193 ac_sub_configure=$ac_aux_dir/configure
24194 else
24195 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24196 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24197 ac_sub_configure=
24200 # The recursion is here.
24201 if test -n "$ac_sub_configure"; then
24202 # Make the cache file name correct relative to the subdirectory.
24203 case $cache_file in
24204 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24205 *) # Relative name.
24206 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24207 esac
24209 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24210 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24211 # The eval makes quoting arguments work.
24212 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24213 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24214 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24215 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24216 { (exit 1); exit 1; }; }
24219 cd "$ac_popdir"
24220 done