1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
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.
11 #
12 # Copyright (c) 2003-2014 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
27 fi
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=:
49 fi
50 rm -f conf$$.sh
51 fi
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
58 fi
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='
67 '
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
75 do
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
82 ;;
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
88 fi
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; }
92 fi
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
107 do
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
112 fi
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
121 fi
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
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/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
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
159 fi
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
210 test \$exitcode = 0) || { (exit 1); exit 1; }
212 (
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
218 :
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
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
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
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
254 :
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
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
274 :
275 (as_func_return () {
276 (exit $1)
277 }
278 as_func_success () {
279 as_func_return 0
280 }
281 as_func_failure () {
282 as_func_return 1
283 }
284 as_func_ret_success () {
285 return 0
286 }
287 as_func_ret_failure () {
288 return 1
289 }
291 exitcode=0
292 if as_func_success; then
293 :
294 else
295 exitcode=1
296 echo as_func_success failed.
297 fi
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302 fi
304 if as_func_ret_success; then
305 :
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
309 fi
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314 fi
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318 else
319 exitcode=1
320 echo positional parameters were not saved.
321 fi
323 test $exitcode = 0) || { (exit 1); exit 1; }
325 (
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
334 fi
336 fi
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+"$@"}
346 fi
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; }
355 fi
358 fi
360 fi
364 (eval "as_func_return () {
365 (exit \$1)
366 }
367 as_func_success () {
368 as_func_return 0
369 }
370 as_func_failure () {
371 as_func_return 1
372 }
373 as_func_ret_success () {
374 return 0
375 }
376 as_func_ret_failure () {
377 return 1
378 }
380 exitcode=0
381 if as_func_success; then
382 :
383 else
384 exitcode=1
385 echo as_func_success failed.
386 fi
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391 fi
393 if as_func_ret_success; then
394 :
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
398 fi
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403 fi
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407 else
408 exitcode=1
409 echo positional parameters were not saved.
410 fi
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
417 }
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 '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
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
461 }
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
468 fi
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;;
477 *)
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
486 fi
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
494 fi
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'
508 fi
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
517 fi
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=:
530 fi
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`
548 #
549 # Initializations.
550 #
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.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/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_VERSION_MAJOR
643 LLVM_VERSION_MINOR
644 LLVM_COPYRIGHT
645 CC
646 CFLAGS
647 LDFLAGS
648 CPPFLAGS
649 ac_ct_CC
650 EXEEXT
651 OBJEXT
652 CXX
653 CXXFLAGS
654 ac_ct_CXX
655 CPP
656 subdirs
657 ENABLE_POLLY
658 LLVM_HAS_POLLY
659 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
667 target
668 target_cpu
669 target_vendor
670 target_os
671 OS
672 HOST_OS
673 TARGET_OS
674 LINKALL
675 NOLINKALL
676 LLVM_ON_UNIX
677 LLVM_ON_WIN32
678 ARCH
679 LLVM_NATIVE_ARCH
680 HOST_ARCH
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_SPLIT_DWARF
689 ENABLE_CLANG_ARCMT
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
692 ENABLE_OPTIMIZED
693 ENABLE_PROFILING
694 DISABLE_ASSERTIONS
695 ENABLE_WERROR
696 ENABLE_EXPENSIVE_CHECKS
697 EXPENSIVE_CHECKS
698 DEBUG_RUNTIME
699 DEBUG_SYMBOLS
700 KEEP_SYMBOLS
701 JIT
702 TARGET_HAS_JIT
703 TARGETS_WITH_JIT
704 ENABLE_DOCS
705 ENABLE_DOXYGEN
706 LLVM_ENABLE_THREADS
707 ENABLE_PTHREADS
708 LLVM_ENABLE_ZLIB
709 ENABLE_PIC
710 ENABLE_SHARED
711 ENABLE_EMBED_STDCXX
712 ENABLE_TIMESTAMPS
713 ALL_TARGETS
714 TARGETS_TO_BUILD
715 LLVM_ENUM_TARGETS
716 LLVM_ENUM_ASM_PRINTERS
717 LLVM_ENUM_ASM_PARSERS
718 LLVM_ENUM_DISASSEMBLERS
719 OPTIMIZE_OPTION
720 EXTRA_OPTIONS
721 EXTRA_LD_OPTIONS
722 CLANG_SRC_ROOT
723 BINUTILS_INCDIR
724 ENABLE_TERMINFO
725 INTERNAL_PREFIX
726 NM
727 ifGNUmake
728 LN_S
729 CMP
730 CP
731 DATE
732 FIND
733 GREP
734 MKDIR
735 MV
736 RANLIB
737 AR
738 RM
739 SED
740 TAR
741 BINPWD
742 GRAPHVIZ
743 DOT
744 FDP
745 NEATO
746 TWOPI
747 CIRCO
748 GV
749 DOTTY
750 XDOT
751 INSTALL_PROGRAM
752 INSTALL_SCRIPT
753 INSTALL_DATA
754 BZIP2
755 CAT
756 DOXYGEN
757 GROFF
758 GZIPBIN
759 PDFROFF
760 ZIP
761 OCAMLC
762 OCAMLOPT
763 OCAMLDEP
764 OCAMLDOC
765 GAS
766 HAVE_LINK_VERSION_SCRIPT
767 EGREP
768 INSTALL_LTDL_TRUE
769 INSTALL_LTDL_FALSE
770 CONVENIENCE_LTDL_TRUE
771 CONVENIENCE_LTDL_FALSE
772 LIBADD_DL
773 NO_VARIADIC_MACROS
774 NO_MISSING_FIELD_INITIALIZERS
775 COVERED_SWITCH_DEFAULT
776 NO_MAYBE_UNINITIALIZED
777 NO_UNINITIALIZED
778 PYTHON
779 HAVE_DLOPEN
780 HAVE_TERMINFO
781 USE_UDIS86
782 USE_OPROFILE
783 USE_INTEL_JITEVENTS
784 XML2CONFIG
785 LIBXML2_LIBS
786 LIBXML2_INC
787 CXXCPP
788 HAVE_PTHREAD
789 HAVE_LIBZ
790 HUGE_VAL_SANITY
791 MMAP_FILE
792 SHLIBEXT
793 SHLIBPATH_VAR
794 LLVM_PREFIX
795 LLVM_BINDIR
796 LLVM_DATADIR
797 LLVM_DOCSDIR
798 LLVM_ETCDIR
799 LLVM_INCLUDEDIR
800 LLVM_INFODIR
801 LLVM_MANDIR
802 LLVM_CONFIGTIME
803 BINDINGS_TO_BUILD
804 ALL_BINDINGS
805 OCAML_LIBDIR
806 ENABLE_VISIBILITY_INLINES_HIDDEN
807 RPATH
808 RDYNAMIC
809 program_prefix
810 LIBOBJS
811 LTLIBOBJS'
812 ac_subst_files=''
813 ac_precious_vars='build_alias
814 host_alias
815 target_alias
816 CC
817 CFLAGS
818 LDFLAGS
819 CPPFLAGS
820 CXX
821 CXXFLAGS
822 CCC
823 CPP
824 CXXCPP'
825 ac_subdirs_all='projects/test-suite
826 projects/llvm-test
827 projects/poolalloc
828 projects/llvm-poolalloc
829 projects/sample
830 projects/safecode
831 tools/polly'
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
888 fi
890 case $ac_option in
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *) ac_optarg=yes ;;
893 esac
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
898 --)
899 ac_dashdash=yes ;;
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 bindir=$ac_optarg ;;
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
918 --config-cache | -C)
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
922 ac_prev=datadir ;;
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
937 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
938 { (exit 1); exit 1; }; }
939 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
940 eval enable_$ac_feature=no ;;
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
952 -enable-* | --enable-*)
953 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
956 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
957 { (exit 1); exit 1; }; }
958 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
959 eval enable_$ac_feature=\$ac_optarg ;;
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1039 no_create=yes ;;
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1149 -with-* | --with-*)
1150 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid package name: $ac_package" >&2
1154 { (exit 1); exit 1; }; }
1155 ac_package=`echo $ac_package| sed 's/-/_/g'`
1156 eval with_$ac_package=\$ac_optarg ;;
1158 -without-* | --without-*)
1159 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1162 { echo "$as_me: error: invalid package name: $ac_package" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_package=`echo $ac_package | sed 's/-/_/g'`
1165 eval with_$ac_package=no ;;
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1185 -*) { echo "$as_me: error: unrecognized option: $ac_option
1186 Try \`$0 --help' for more information." >&2
1187 { (exit 1); exit 1; }; }
1188 ;;
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1194 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1195 { (exit 1); exit 1; }; }
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1205 ;;
1207 esac
1208 done
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 { echo "$as_me: error: missing argument to $ac_option" >&2
1213 { (exit 1); exit 1; }; }
1214 fi
1216 # Be sure to have absolute directory names.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1221 do
1222 eval ac_val=\$$ac_var
1223 case $ac_val in
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 esac
1227 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1228 { (exit 1); exit 1; }; }
1229 done
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243 If a cross compiler is detected then cross compile mode will be used." >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1246 fi
1247 fi
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252 test "$silent" = yes && exec 6>/dev/null
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 { echo "$as_me: error: Working directory cannot be determined" >&2
1259 { (exit 1); exit 1; }; }
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 { echo "$as_me: error: pwd does not report name of working directory" >&2
1262 { (exit 1); exit 1; }; }
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$0" ||
1270 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$0" : 'X\(//\)[^/]' \| \
1272 X"$0" : 'X\(//\)$' \| \
1273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 echo X"$0" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1295 fi
1296 else
1297 ac_srcdir_defaulted=no
1298 fi
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1302 { (exit 1); exit 1; }; }
1303 fi
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1307 { (exit 1); exit 1; }; }
1308 pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 srcdir=.
1312 fi
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1326 #
1327 # Report the --help message.
1328 #
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1332 cat <<_ACEOF
1333 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1340 Defaults for the options are specified in brackets.
1342 Configuration:
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 [PREFIX]
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1364 For better control, use the options below.
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1386 _ACEOF
1388 cat <<\_ACEOF
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 --target=TARGET configure for building compilers for TARGET [HOST]
1394 _ACEOF
1395 fi
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1400 esac
1401 cat <<\_ACEOF
1403 Optional Features:
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-polly Use polly if available (default is YES)
1407 --enable-libcpp Use libc++ if available (default is NO)
1408 --enable-compiler-version-checks
1409 Check the version of the host compiler (default is
1410 YES)
1411 --enable-cxx11 Use c++11 if available (default is NO)
1412 --enable-split-dwarf Use split-dwarf if available (default is NO)
1413 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1414 --enable-clang-static-analyzer
1415 Enable building of clang Static Analyzer (default is
1416 YES)
1417 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1418 --enable-optimized Compile with optimizations enabled (default is NO)
1419 --enable-profiling Compile with profiling enabled (default is NO)
1420 --enable-assertions Compile with assertion checks enabled (default is
1421 YES)
1422 --enable-werror Compile with -Werror enabled (default is NO)
1423 --enable-expensive-checks
1424 Compile with expensive debug checks enabled (default
1425 is NO)
1426 --enable-debug-runtime Build runtime libs with debug symbols (default is
1427 NO)
1428 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1429 optimization is on and YES if it's off)
1430 --enable-keep-symbols Do not strip installed executables)
1431 --enable-jit Enable Just In Time Compiling (default is YES)
1432 --enable-docs Build documents (default is YES)
1433 --enable-doxygen Build doxygen documentation (default is NO)
1434 --enable-threads Use threads if available (default is YES)
1435 --enable-pthreads Use pthreads if available (default is YES)
1436 --enable-zlib Use zlib for compression/decompression if available
1437 (default is YES)
1438 --enable-pic Build LLVM with Position Independent Code (default
1439 is YES)
1440 --enable-shared Build a shared library and link tools against it
1441 (default is NO)
1442 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1443 Win32 DLL (default is NO)
1444 --enable-timestamps Enable embedding timestamp information in build
1445 (default is YES)
1446 --enable-backtraces Enable embedding backtraces on crash (default is
1447 YES)
1448 --enable-crash-overrides
1449 Enable crash handling overrides (default is YES)
1450 --enable-targets Build specific host targets: all or
1451 target1,target2,... Valid targets are: host, x86,
1452 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1453 xcore, msp430, nvptx, systemz, r600, and cpp
1454 (default=all)
1455 --enable-experimental-targets
1456 Build experimental host targets: disable or
1457 target1,target2,... (default=disable)
1458 --enable-bindings Build specific language bindings:
1459 all,auto,none,{binding-name} (default=auto)
1460 --enable-terminfo Query the terminfo database if available (default is
1461 YES)
1462 --enable-libedit Use libedit if available (default is YES)
1463 --enable-libffi Check for the presence of libffi (default is NO)
1464 --enable-ltdl-install install libltdl
1466 Optional Packages:
1467 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1469 --with-optimize-option Select the compiler options to use for optimized
1470 builds
1471 --with-extra-options Specify additional options to compile LLVM with
1472 --with-extra-ld-options Specify additional options to link LLVM with
1473 --with-ocaml-libdir Specify install location for ocaml bindings (default
1474 is stdlib)
1475 --with-clang-srcdir Directory to the out-of-tree Clang source
1476 --with-clang-resource-dir
1477 Relative directory from the Clang binary for
1478 resource files
1479 --with-c-include-dirs Colon separated list of directories clang will
1480 search for headers
1481 --with-gcc-toolchain Directory where gcc is installed.
1482 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1483 --with-binutils-include Specify path to binutils/include/ containing
1484 plugin-api.h file for gold plugin.
1485 --with-bug-report-url Specify the URL where bug reports should be
1486 submitted (default=http://llvm.org/bugs/)
1487 --with-internal-prefix Installation directory for internal files
1488 --with-python path to python
1489 --with-udis86=<path> Use udis86 external x86 disassembler library
1490 --with-oprofile=<prefix>
1491 Tell OProfile >= 0.9.4 how to symbolize JIT output
1492 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1495 Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1502 CXX C++ compiler command
1503 CXXFLAGS C++ compiler flags
1504 CPP C preprocessor
1505 CXXCPP C++ preprocessor
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1510 Report bugs to <http://llvm.org/bugs/>.
1511 _ACEOF
1512 ac_status=$?
1513 fi
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" || continue
1519 ac_builddir=.
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1537 case $srcdir in
1538 .) # We are building in place.
1539 ac_srcdir=.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1546 *) # Relative name.
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1561 else
1562 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 fi || ac_status=$?
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1565 done
1566 fi
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570 cat <<\_ACEOF
1571 LLVM configure 3.5svn
1572 generated by GNU Autoconf 2.60
1574 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1575 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1579 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1580 _ACEOF
1581 exit
1582 fi
1583 cat >config.log <<_ACEOF
1584 This file contains any messages produced by compilers while
1585 running configure, to aid debugging if configure makes a mistake.
1587 It was created by LLVM $as_me 3.5svn, which was
1588 generated by GNU Autoconf 2.60. Invocation command line was
1590 $ $0 $@
1592 _ACEOF
1593 exec 5>>config.log
1594 {
1595 cat <<_ASUNAME
1596 ## --------- ##
1597 ## Platform. ##
1598 ## --------- ##
1600 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1601 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1602 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1603 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1604 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1606 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1607 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1609 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1610 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1611 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1612 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1613 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1614 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1615 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1617 _ASUNAME
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1621 do
1622 IFS=$as_save_IFS
1623 test -z "$as_dir" && as_dir=.
1624 echo "PATH: $as_dir"
1625 done
1626 IFS=$as_save_IFS
1628 } >&5
1630 cat >&5 <<_ACEOF
1633 ## ----------- ##
1634 ## Core tests. ##
1635 ## ----------- ##
1637 _ACEOF
1640 # Keep a trace of the command line.
1641 # Strip out --no-create and --no-recursion so they do not pile up.
1642 # Strip out --silent because we don't want to record it for future runs.
1643 # Also quote any args containing shell meta-characters.
1644 # Make two passes to allow for proper duplicate-argument suppression.
1645 ac_configure_args=
1646 ac_configure_args0=
1647 ac_configure_args1=
1648 ac_must_keep_next=false
1649 for ac_pass in 1 2
1650 do
1651 for ac_arg
1652 do
1653 case $ac_arg in
1654 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1656 | -silent | --silent | --silen | --sile | --sil)
1657 continue ;;
1658 *\'*)
1659 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1660 esac
1661 case $ac_pass in
1662 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1663 2)
1664 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1665 if test $ac_must_keep_next = true; then
1666 ac_must_keep_next=false # Got value, back to normal.
1667 else
1668 case $ac_arg in
1669 *=* | --config-cache | -C | -disable-* | --disable-* \
1670 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1671 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1672 | -with-* | --with-* | -without-* | --without-* | --x)
1673 case "$ac_configure_args0 " in
1674 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1675 esac
1676 ;;
1677 -* ) ac_must_keep_next=true ;;
1678 esac
1679 fi
1680 ac_configure_args="$ac_configure_args '$ac_arg'"
1681 ;;
1682 esac
1683 done
1684 done
1685 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1686 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1688 # When interrupted or exit'd, cleanup temporary files, and complete
1689 # config.log. We remove comments because anyway the quotes in there
1690 # would cause problems or look ugly.
1691 # WARNING: Use '\'' to represent an apostrophe within the trap.
1692 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1693 trap 'exit_status=$?
1694 # Save into config.log some information that might help in debugging.
1695 {
1696 echo
1698 cat <<\_ASBOX
1699 ## ---------------- ##
1700 ## Cache variables. ##
1701 ## ---------------- ##
1702 _ASBOX
1703 echo
1704 # The following way of writing the cache mishandles newlines in values,
1705 (
1706 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1707 eval ac_val=\$$ac_var
1708 case $ac_val in #(
1709 *${as_nl}*)
1710 case $ac_var in #(
1711 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1712 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1713 esac
1714 case $ac_var in #(
1715 _ | IFS | as_nl) ;; #(
1716 *) $as_unset $ac_var ;;
1717 esac ;;
1718 esac
1719 done
1720 (set) 2>&1 |
1721 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1722 *${as_nl}ac_space=\ *)
1723 sed -n \
1724 "s/'\''/'\''\\\\'\'''\''/g;
1725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1726 ;; #(
1727 *)
1728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1729 ;;
1730 esac |
1731 sort
1732 )
1733 echo
1735 cat <<\_ASBOX
1736 ## ----------------- ##
1737 ## Output variables. ##
1738 ## ----------------- ##
1739 _ASBOX
1740 echo
1741 for ac_var in $ac_subst_vars
1742 do
1743 eval ac_val=\$$ac_var
1744 case $ac_val in
1745 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 esac
1747 echo "$ac_var='\''$ac_val'\''"
1748 done | sort
1749 echo
1751 if test -n "$ac_subst_files"; then
1752 cat <<\_ASBOX
1753 ## ------------------- ##
1754 ## File substitutions. ##
1755 ## ------------------- ##
1756 _ASBOX
1757 echo
1758 for ac_var in $ac_subst_files
1759 do
1760 eval ac_val=\$$ac_var
1761 case $ac_val in
1762 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 esac
1764 echo "$ac_var='\''$ac_val'\''"
1765 done | sort
1766 echo
1767 fi
1769 if test -s confdefs.h; then
1770 cat <<\_ASBOX
1771 ## ----------- ##
1772 ## confdefs.h. ##
1773 ## ----------- ##
1774 _ASBOX
1775 echo
1776 cat confdefs.h
1777 echo
1778 fi
1779 test "$ac_signal" != 0 &&
1780 echo "$as_me: caught signal $ac_signal"
1781 echo "$as_me: exit $exit_status"
1782 } >&5
1783 rm -f core *.core core.conftest.* &&
1784 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1785 exit $exit_status
1786 ' 0
1787 for ac_signal in 1 2 13 15; do
1788 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1789 done
1790 ac_signal=0
1792 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1793 rm -f -r conftest* confdefs.h
1795 # Predefined preprocessor variables.
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_NAME "$PACKAGE_NAME"
1799 _ACEOF
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1804 _ACEOF
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1809 _ACEOF
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_STRING "$PACKAGE_STRING"
1814 _ACEOF
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1819 _ACEOF
1822 # Let the site file select an alternate cache file if it wants to.
1823 # Prefer explicitly selected file to automatically selected ones.
1824 if test -n "$CONFIG_SITE"; then
1825 set x "$CONFIG_SITE"
1826 elif test "x$prefix" != xNONE; then
1827 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1828 else
1829 set x "$ac_default_prefix/share/config.site" \
1830 "$ac_default_prefix/etc/config.site"
1831 fi
1832 shift
1833 for ac_site_file
1834 do
1835 if test -r "$ac_site_file"; then
1836 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1837 echo "$as_me: loading site script $ac_site_file" >&6;}
1838 sed 's/^/| /' "$ac_site_file" >&5
1839 . "$ac_site_file"
1840 fi
1841 done
1843 if test -r "$cache_file"; then
1844 # Some versions of bash will fail to source /dev/null (special
1845 # files actually), so we avoid doing that.
1846 if test -f "$cache_file"; then
1847 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1848 echo "$as_me: loading cache $cache_file" >&6;}
1849 case $cache_file in
1850 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1851 *) . "./$cache_file";;
1852 esac
1853 fi
1854 else
1855 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1856 echo "$as_me: creating cache $cache_file" >&6;}
1857 >$cache_file
1858 fi
1860 # Check that the precious variables saved in the cache have kept the same
1861 # value.
1862 ac_cache_corrupted=false
1863 for ac_var in $ac_precious_vars; do
1864 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1865 eval ac_new_set=\$ac_env_${ac_var}_set
1866 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1867 eval ac_new_val=\$ac_env_${ac_var}_value
1868 case $ac_old_set,$ac_new_set in
1869 set,)
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1871 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1873 ,set)
1874 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1875 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1876 ac_cache_corrupted=: ;;
1877 ,);;
1878 *)
1879 if test "x$ac_old_val" != "x$ac_new_val"; then
1880 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1881 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1882 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1883 echo "$as_me: former value: $ac_old_val" >&2;}
1884 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1885 echo "$as_me: current value: $ac_new_val" >&2;}
1886 ac_cache_corrupted=:
1887 fi;;
1888 esac
1889 # Pass precious variables to config.status.
1890 if test "$ac_new_set" = set; then
1891 case $ac_new_val in
1892 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1893 *) ac_arg=$ac_var=$ac_new_val ;;
1894 esac
1895 case " $ac_configure_args " in
1896 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1897 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 esac
1899 fi
1900 done
1901 if $ac_cache_corrupted; then
1902 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1903 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1904 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1905 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1906 { (exit 1); exit 1; }; }
1907 fi
1933 ac_ext=c
1934 ac_cpp='$CPP $CPPFLAGS'
1935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 cat >>confdefs.h <<\_ACEOF
1943 #define LLVM_VERSION_MAJOR 3
1944 _ACEOF
1946 LLVM_VERSION_MAJOR='3'
1951 cat >>confdefs.h <<\_ACEOF
1952 #define LLVM_VERSION_MINOR 5
1953 _ACEOF
1955 LLVM_VERSION_MINOR='5'
1959 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1967 ac_aux_dir=
1968 for ac_dir in autoconf "$srcdir"/autoconf; do
1969 if test -f "$ac_dir/install-sh"; then
1970 ac_aux_dir=$ac_dir
1971 ac_install_sh="$ac_aux_dir/install-sh -c"
1972 break
1973 elif test -f "$ac_dir/install.sh"; then
1974 ac_aux_dir=$ac_dir
1975 ac_install_sh="$ac_aux_dir/install.sh -c"
1976 break
1977 elif test -f "$ac_dir/shtool"; then
1978 ac_aux_dir=$ac_dir
1979 ac_install_sh="$ac_aux_dir/shtool install -c"
1980 break
1981 fi
1982 done
1983 if test -z "$ac_aux_dir"; then
1984 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1985 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1986 { (exit 1); exit 1; }; }
1987 fi
1989 # These three variables are undocumented and unsupported,
1990 # and are intended to be withdrawn in a future Autoconf release.
1991 # They can cause serious problems if a builder's source tree is in a directory
1992 # whose full name contains unusual characters.
1993 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1994 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1995 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1999 if test ${srcdir} != "." ; then
2000 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2001 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2002 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2003 { (exit 1); exit 1; }; }
2004 fi
2005 fi
2007 : ${CFLAGS=}
2008 : ${CXXFLAGS=}
2010 ac_ext=c
2011 ac_cpp='$CPP $CPPFLAGS'
2012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015 if test -n "$ac_tool_prefix"; then
2016 for ac_prog in clang gcc
2017 do
2018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2022 if test "${ac_cv_prog_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025 if test -n "$CC"; then
2026 ac_cv_prog_CC="$CC" # Let the user override the test.
2027 else
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 for as_dir in $PATH
2030 do
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 break 2
2038 fi
2039 done
2040 done
2041 IFS=$as_save_IFS
2043 fi
2044 fi
2045 CC=$ac_cv_prog_CC
2046 if test -n "$CC"; then
2047 { echo "$as_me:$LINENO: result: $CC" >&5
2048 echo "${ECHO_T}$CC" >&6; }
2049 else
2050 { echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6; }
2052 fi
2055 test -n "$CC" && break
2056 done
2057 fi
2058 if test -z "$CC"; then
2059 ac_ct_CC=$CC
2060 for ac_prog in clang gcc
2061 do
2062 # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy $ac_prog; ac_word=$2
2064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069 if test -n "$ac_ct_CC"; then
2070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2071 else
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2074 do
2075 IFS=$as_save_IFS
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2079 ac_cv_prog_ac_ct_CC="$ac_prog"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 break 2
2082 fi
2083 done
2084 done
2085 IFS=$as_save_IFS
2087 fi
2088 fi
2089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2090 if test -n "$ac_ct_CC"; then
2091 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2092 echo "${ECHO_T}$ac_ct_CC" >&6; }
2093 else
2094 { echo "$as_me:$LINENO: result: no" >&5
2095 echo "${ECHO_T}no" >&6; }
2096 fi
2099 test -n "$ac_ct_CC" && break
2100 done
2102 if test "x$ac_ct_CC" = x; then
2103 CC=""
2104 else
2105 case $cross_compiling:$ac_tool_warned in
2106 yes:)
2107 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2108 whose name does not start with the host triplet. If you think this
2109 configuration is useful to you, please write to autoconf@gnu.org." >&5
2110 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2111 whose name does not start with the host triplet. If you think this
2112 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2113 ac_tool_warned=yes ;;
2114 esac
2115 CC=$ac_ct_CC
2116 fi
2117 fi
2120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121 See \`config.log' for more details." >&5
2122 echo "$as_me: error: no acceptable C compiler found in \$PATH
2123 See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2126 # Provide some information about the compiler.
2127 echo "$as_me:$LINENO: checking for C compiler version" >&5
2128 ac_compiler=`set X $ac_compile; echo $2`
2129 { (ac_try="$ac_compiler --version >&5"
2130 case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133 esac
2134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135 (eval "$ac_compiler --version >&5") 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2139 { (ac_try="$ac_compiler -v >&5"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2145 (eval "$ac_compiler -v >&5") 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149 { (ac_try="$ac_compiler -V >&5"
2150 case "(($ac_try" in
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2153 esac
2154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2155 (eval "$ac_compiler -V >&5") 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2160 cat >conftest.$ac_ext <<_ACEOF
2161 /* confdefs.h. */
2162 _ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2167 int
2168 main ()
2169 {
2171 ;
2172 return 0;
2173 }
2174 _ACEOF
2175 ac_clean_files_save=$ac_clean_files
2176 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2177 # Try to create an executable without -o first, disregard a.out.
2178 # It will help us diagnose broken compilers, and finding out an intuition
2179 # of exeext.
2180 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2181 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2182 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2183 #
2184 # List of possible output files, starting from the most likely.
2185 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2186 # only as a last resort. b.out is created by i960 compilers.
2187 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2188 #
2189 # The IRIX 6 linker writes into existing files which may not be
2190 # executable, retaining their permissions. Remove them first so a
2191 # subsequent execution test works.
2192 ac_rmfiles=
2193 for ac_file in $ac_files
2194 do
2195 case $ac_file in
2196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2197 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2198 esac
2199 done
2200 rm -f $ac_rmfiles
2202 if { (ac_try="$ac_link_default"
2203 case "(($ac_try" in
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2206 esac
2207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2208 (eval "$ac_link_default") 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; then
2212 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2213 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2214 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2215 # so that the user can short-circuit this test for compilers unknown to
2216 # Autoconf.
2217 for ac_file in $ac_files
2218 do
2219 test -f "$ac_file" || continue
2220 case $ac_file in
2221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2222 ;;
2223 [ab].out )
2224 # We found the default executable, but exeext='' is most
2225 # certainly right.
2226 break;;
2227 *.* )
2228 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2229 then :; else
2230 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 fi
2232 # We set ac_cv_exeext here because the later test for it is not
2233 # safe: cross compilers may not add the suffix if given an `-o'
2234 # argument, so we may need to know it at that point already.
2235 # Even if this section looks crufty: it has the advantage of
2236 # actually working.
2237 break;;
2238 * )
2239 break;;
2240 esac
2241 done
2242 test "$ac_cv_exeext" = no && ac_cv_exeext=
2244 else
2245 echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2248 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: C compiler cannot create executables
2251 See \`config.log' for more details." >&2;}
2252 { (exit 77); exit 77; }; }
2253 fi
2255 ac_exeext=$ac_cv_exeext
2256 { echo "$as_me:$LINENO: result: $ac_file" >&5
2257 echo "${ECHO_T}$ac_file" >&6; }
2259 # Check that the compiler produces executables we can run. If not, either
2260 # the compiler is broken, or we cross compile.
2261 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2262 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2263 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2264 # If not cross compiling, check that we can run a simple program.
2265 if test "$cross_compiling" != yes; then
2266 if { ac_try='./$ac_file'
2267 { (case "(($ac_try" in
2268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269 *) ac_try_echo=$ac_try;;
2270 esac
2271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2272 (eval "$ac_try") 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2276 cross_compiling=no
2277 else
2278 if test "$cross_compiling" = maybe; then
2279 cross_compiling=yes
2280 else
2281 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2282 If you meant to cross compile, use \`--host'.
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot run C compiled programs.
2285 If you meant to cross compile, use \`--host'.
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2288 fi
2289 fi
2290 fi
2291 { echo "$as_me:$LINENO: result: yes" >&5
2292 echo "${ECHO_T}yes" >&6; }
2294 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2295 ac_clean_files=$ac_clean_files_save
2296 # Check that the compiler produces executables we can run. If not, either
2297 # the compiler is broken, or we cross compile.
2298 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2299 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2300 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2301 echo "${ECHO_T}$cross_compiling" >&6; }
2303 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2304 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2305 if { (ac_try="$ac_link"
2306 case "(($ac_try" in
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2309 esac
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311 (eval "$ac_link") 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
2315 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2316 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2317 # work properly (i.e., refer to `conftest.exe'), while it won't with
2318 # `rm'.
2319 for ac_file in conftest.exe conftest conftest.*; do
2320 test -f "$ac_file" || continue
2321 case $ac_file in
2322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2323 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324 break;;
2325 * ) break;;
2326 esac
2327 done
2328 else
2329 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2334 fi
2336 rm -f conftest$ac_cv_exeext
2337 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2338 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2340 rm -f conftest.$ac_ext
2341 EXEEXT=$ac_cv_exeext
2342 ac_exeext=$EXEEXT
2343 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2344 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2345 if test "${ac_cv_objext+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348 cat >conftest.$ac_ext <<_ACEOF
2349 /* confdefs.h. */
2350 _ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2355 int
2356 main ()
2357 {
2359 ;
2360 return 0;
2361 }
2362 _ACEOF
2363 rm -f conftest.o conftest.obj
2364 if { (ac_try="$ac_compile"
2365 case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368 esac
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compile") 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; then
2374 for ac_file in conftest.o conftest.obj conftest.*; do
2375 test -f "$ac_file" || continue;
2376 case $ac_file in
2377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2378 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2379 break;;
2380 esac
2381 done
2382 else
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2386 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2389 See \`config.log' for more details." >&2;}
2390 { (exit 1); exit 1; }; }
2391 fi
2393 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2394 fi
2395 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2396 echo "${ECHO_T}$ac_cv_objext" >&6; }
2397 OBJEXT=$ac_cv_objext
2398 ac_objext=$OBJEXT
2399 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2400 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2401 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404 cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h. */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2411 int
2412 main ()
2413 {
2414 #ifndef __GNUC__
2415 choke me
2416 #endif
2418 ;
2419 return 0;
2420 }
2421 _ACEOF
2422 rm -f conftest.$ac_objext
2423 if { (ac_try="$ac_compile"
2424 case "(($ac_try" in
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2427 esac
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_compile") 2>conftest.er1
2430 ac_status=$?
2431 grep -v '^ *+' conftest.er1 >conftest.err
2432 rm -f conftest.er1
2433 cat conftest.err >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2437 { (case "(($ac_try" in
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439 *) ac_try_echo=$ac_try;;
2440 esac
2441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2442 (eval "$ac_try") 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2450 esac
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_try") 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 ac_compiler_gnu=yes
2457 else
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2461 ac_compiler_gnu=no
2462 fi
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2467 fi
2468 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2469 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2470 GCC=`test $ac_compiler_gnu = yes && echo yes`
2471 ac_test_CFLAGS=${CFLAGS+set}
2472 ac_save_CFLAGS=$CFLAGS
2473 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2474 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2475 if test "${ac_cv_prog_cc_g+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 ac_save_c_werror_flag=$ac_c_werror_flag
2479 ac_c_werror_flag=yes
2480 ac_cv_prog_cc_g=no
2481 CFLAGS="-g"
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h. */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2489 int
2490 main ()
2491 {
2493 ;
2494 return 0;
2495 }
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (ac_try="$ac_compile"
2499 case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2502 esac
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_compile") 2>conftest.er1
2505 ac_status=$?
2506 grep -v '^ *+' conftest.er1 >conftest.err
2507 rm -f conftest.er1
2508 cat conftest.err >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } &&
2511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2512 { (case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515 esac
2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517 (eval "$ac_try") 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; } &&
2521 { ac_try='test -s conftest.$ac_objext'
2522 { (case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_try") 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2531 ac_cv_prog_cc_g=yes
2532 else
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2536 CFLAGS=""
2537 cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h. */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2544 int
2545 main ()
2546 {
2548 ;
2549 return 0;
2550 }
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (ac_try="$ac_compile"
2554 case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2557 esac
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compile") 2>conftest.er1
2560 ac_status=$?
2561 grep -v '^ *+' conftest.er1 >conftest.err
2562 rm -f conftest.er1
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570 esac
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580 esac
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 :
2587 else
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2591 ac_c_werror_flag=$ac_save_c_werror_flag
2592 CFLAGS="-g"
2593 cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h. */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2600 int
2601 main ()
2602 {
2604 ;
2605 return 0;
2606 }
2607 _ACEOF
2608 rm -f conftest.$ac_objext
2609 if { (ac_try="$ac_compile"
2610 case "(($ac_try" in
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2613 esac
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_compile") 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2623 { (case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2626 esac
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_try") 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636 esac
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_try") 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2642 ac_cv_prog_cc_g=yes
2643 else
2644 echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2648 fi
2650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651 fi
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654 fi
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 ac_c_werror_flag=$ac_save_c_werror_flag
2658 fi
2659 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2660 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2661 if test "$ac_test_CFLAGS" = set; then
2662 CFLAGS=$ac_save_CFLAGS
2663 elif test $ac_cv_prog_cc_g = yes; then
2664 if test "$GCC" = yes; then
2665 CFLAGS="-g -O2"
2666 else
2667 CFLAGS="-g"
2668 fi
2669 else
2670 if test "$GCC" = yes; then
2671 CFLAGS="-O2"
2672 else
2673 CFLAGS=
2674 fi
2675 fi
2676 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2677 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2678 if test "${ac_cv_prog_cc_c89+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681 ac_cv_prog_cc_c89=no
2682 ac_save_CC=$CC
2683 cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h. */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2689 #include <stdarg.h>
2690 #include <stdio.h>
2691 #include <sys/types.h>
2692 #include <sys/stat.h>
2693 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2694 struct buf { int x; };
2695 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2696 static char *e (p, i)
2697 char **p;
2698 int i;
2699 {
2700 return p[i];
2701 }
2702 static char *f (char * (*g) (char **, int), char **p, ...)
2703 {
2704 char *s;
2705 va_list v;
2706 va_start (v,p);
2707 s = g (p, va_arg (v,int));
2708 va_end (v);
2709 return s;
2710 }
2712 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2713 function prototypes and stuff, but not '\xHH' hex character constants.
2714 These don't provoke an error unfortunately, instead are silently treated
2715 as 'x'. The following induces an error, until -std is added to get
2716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2717 array size at least. It's necessary to write '\x00'==0 to get something
2718 that's true only with -std. */
2719 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2721 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2722 inside strings and character constants. */
2723 #define FOO(x) 'x'
2724 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2726 int test (int i, double x);
2727 struct s1 {int (*f) (int a);};
2728 struct s2 {int (*f) (double a);};
2729 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2730 int argc;
2731 char **argv;
2732 int
2733 main ()
2734 {
2735 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2736 ;
2737 return 0;
2738 }
2739 _ACEOF
2740 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2741 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2742 do
2743 CC="$ac_save_CC $ac_arg"
2744 rm -f conftest.$ac_objext
2745 if { (ac_try="$ac_compile"
2746 case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compile") 2>conftest.er1
2752 ac_status=$?
2753 grep -v '^ *+' conftest.er1 >conftest.err
2754 rm -f conftest.er1
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2759 { (case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762 esac
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_try") 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; } &&
2768 { ac_try='test -s conftest.$ac_objext'
2769 { (case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772 esac
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_try") 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 ac_cv_prog_cc_c89=$ac_arg
2779 else
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2784 fi
2786 rm -f core conftest.err conftest.$ac_objext
2787 test "x$ac_cv_prog_cc_c89" != "xno" && break
2788 done
2789 rm -f conftest.$ac_ext
2790 CC=$ac_save_CC
2792 fi
2793 # AC_CACHE_VAL
2794 case "x$ac_cv_prog_cc_c89" in
2795 x)
2796 { echo "$as_me:$LINENO: result: none needed" >&5
2797 echo "${ECHO_T}none needed" >&6; } ;;
2798 xno)
2799 { echo "$as_me:$LINENO: result: unsupported" >&5
2800 echo "${ECHO_T}unsupported" >&6; } ;;
2801 *)
2802 CC="$CC $ac_cv_prog_cc_c89"
2803 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2804 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2805 esac
2808 ac_ext=c
2809 ac_cpp='$CPP $CPPFLAGS'
2810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814 ac_ext=cpp
2815 ac_cpp='$CXXCPP $CPPFLAGS'
2816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2819 if test -z "$CXX"; then
2820 if test -n "$CCC"; then
2821 CXX=$CCC
2822 else
2823 if test -n "$ac_tool_prefix"; then
2824 for ac_prog in clang++ g++
2825 do
2826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_CXX+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 if test -n "$CXX"; then
2834 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847 done
2848 done
2849 IFS=$as_save_IFS
2851 fi
2852 fi
2853 CXX=$ac_cv_prog_CXX
2854 if test -n "$CXX"; then
2855 { echo "$as_me:$LINENO: result: $CXX" >&5
2856 echo "${ECHO_T}$CXX" >&6; }
2857 else
2858 { echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6; }
2860 fi
2863 test -n "$CXX" && break
2864 done
2865 fi
2866 if test -z "$CXX"; then
2867 ac_ct_CXX=$CXX
2868 for ac_prog in clang++ g++
2869 do
2870 # Extract the first word of "$ac_prog", so it can be a program name with args.
2871 set dummy $ac_prog; ac_word=$2
2872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2874 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 if test -n "$ac_ct_CXX"; then
2878 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2887 ac_cv_prog_ac_ct_CXX="$ac_prog"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2895 fi
2896 fi
2897 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2898 if test -n "$ac_ct_CXX"; then
2899 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2900 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2901 else
2902 { echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6; }
2904 fi
2907 test -n "$ac_ct_CXX" && break
2908 done
2910 if test "x$ac_ct_CXX" = x; then
2911 CXX="g++"
2912 else
2913 case $cross_compiling:$ac_tool_warned in
2914 yes:)
2915 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2916 whose name does not start with the host triplet. If you think this
2917 configuration is useful to you, please write to autoconf@gnu.org." >&5
2918 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2919 whose name does not start with the host triplet. If you think this
2920 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2921 ac_tool_warned=yes ;;
2922 esac
2923 CXX=$ac_ct_CXX
2924 fi
2925 fi
2927 fi
2928 fi
2929 # Provide some information about the compiler.
2930 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2931 ac_compiler=`set X $ac_compile; echo $2`
2932 { (ac_try="$ac_compiler --version >&5"
2933 case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compiler --version >&5") 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }
2942 { (ac_try="$ac_compiler -v >&5"
2943 case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compiler -v >&5") 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }
2952 { (ac_try="$ac_compiler -V >&5"
2953 case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_compiler -V >&5") 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }
2963 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2964 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2965 if test "${ac_cv_cxx_compiler_gnu+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. */
2975 int
2976 main ()
2977 {
2978 #ifndef __GNUC__
2979 choke me
2980 #endif
2982 ;
2983 return 0;
2984 }
2985 _ACEOF
2986 rm -f conftest.$ac_objext
2987 if { (ac_try="$ac_compile"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>conftest.er1
2994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } &&
3000 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3001 { (case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_try") 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; } &&
3010 { ac_try='test -s conftest.$ac_objext'
3011 { (case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014 esac
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_try") 2>&5
3017 ac_status=$?
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3020 ac_compiler_gnu=yes
3021 else
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3025 ac_compiler_gnu=no
3026 fi
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3031 fi
3032 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3033 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3034 GXX=`test $ac_compiler_gnu = yes && echo yes`
3035 ac_test_CXXFLAGS=${CXXFLAGS+set}
3036 ac_save_CXXFLAGS=$CXXFLAGS
3037 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3038 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3039 if test "${ac_cv_prog_cxx_g+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3043 ac_cxx_werror_flag=yes
3044 ac_cv_prog_cxx_g=no
3045 CXXFLAGS="-g"
3046 cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h. */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3053 int
3054 main ()
3055 {
3057 ;
3058 return 0;
3059 }
3060 _ACEOF
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3063 case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>conftest.er1
3069 ac_status=$?
3070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3076 { (case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_try") 2>&5
3082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; } &&
3085 { ac_try='test -s conftest.$ac_objext'
3086 { (case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_try") 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3095 ac_cv_prog_cxx_g=yes
3096 else
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3100 CXXFLAGS=""
3101 cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h. */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3108 int
3109 main ()
3110 {
3112 ;
3113 return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3118 case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 :
3151 else
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3156 CXXFLAGS="-g"
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. */
3164 int
3165 main ()
3166 {
3168 ;
3169 return 0;
3170 }
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_cxx_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
3206 ac_cv_prog_cxx_g=yes
3207 else
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3212 fi
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 fi
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 fi
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3222 fi
3223 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3224 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3225 if test "$ac_test_CXXFLAGS" = set; then
3226 CXXFLAGS=$ac_save_CXXFLAGS
3227 elif test $ac_cv_prog_cxx_g = yes; then
3228 if test "$GXX" = yes; then
3229 CXXFLAGS="-g -O2"
3230 else
3231 CXXFLAGS="-g"
3232 fi
3233 else
3234 if test "$GXX" = yes; then
3235 CXXFLAGS="-O2"
3236 else
3237 CXXFLAGS=
3238 fi
3239 fi
3240 ac_ext=c
3241 ac_cpp='$CPP $CPPFLAGS'
3242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 ac_ext=c
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3252 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3253 # On Suns, sometimes $CPP names a directory.
3254 if test -n "$CPP" && test -d "$CPP"; then
3255 CPP=
3256 fi
3257 if test -z "$CPP"; then
3258 if test "${ac_cv_prog_CPP+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261 # Double quotes because CPP needs to be expanded
3262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3263 do
3264 ac_preproc_ok=false
3265 for ac_c_preproc_warn_flag in '' yes
3266 do
3267 # Use a header file that comes with gcc, so configuring glibc
3268 # with a fresh cross-compiler works.
3269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3270 # <limits.h> exists even on freestanding compilers.
3271 # On the NeXT, cc -E runs the code through the compiler's parser,
3272 # not just through cpp. "Syntax error" is here to catch this case.
3273 cat >conftest.$ac_ext <<_ACEOF
3274 /* confdefs.h. */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3279 #ifdef __STDC__
3280 # include <limits.h>
3281 #else
3282 # include <assert.h>
3283 #endif
3284 Syntax error
3285 _ACEOF
3286 if { (ac_try="$ac_cpp conftest.$ac_ext"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_c_preproc_warn_flag
3301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3302 else
3303 ac_cpp_err=
3304 fi
3305 else
3306 ac_cpp_err=yes
3307 fi
3308 if test -z "$ac_cpp_err"; then
3309 :
3310 else
3311 echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3314 # Broken: fails on valid input.
3315 continue
3316 fi
3318 rm -f conftest.err conftest.$ac_ext
3320 # OK, works on sane cases. Now check whether nonexistent headers
3321 # can be detected and how.
3322 cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h. */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3328 #include <ac_nonexistent.h>
3329 _ACEOF
3330 if { (ac_try="$ac_cpp conftest.$ac_ext"
3331 case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3337 ac_status=$?
3338 grep -v '^ *+' conftest.er1 >conftest.err
3339 rm -f conftest.er1
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } >/dev/null; then
3343 if test -s conftest.err; then
3344 ac_cpp_err=$ac_c_preproc_warn_flag
3345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3346 else
3347 ac_cpp_err=
3348 fi
3349 else
3350 ac_cpp_err=yes
3351 fi
3352 if test -z "$ac_cpp_err"; then
3353 # Broken: success on invalid input.
3354 continue
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 # Passes both tests.
3360 ac_preproc_ok=:
3361 break
3362 fi
3364 rm -f conftest.err conftest.$ac_ext
3366 done
3367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3368 rm -f conftest.err conftest.$ac_ext
3369 if $ac_preproc_ok; then
3370 break
3371 fi
3373 done
3374 ac_cv_prog_CPP=$CPP
3376 fi
3377 CPP=$ac_cv_prog_CPP
3378 else
3379 ac_cv_prog_CPP=$CPP
3380 fi
3381 { echo "$as_me:$LINENO: result: $CPP" >&5
3382 echo "${ECHO_T}$CPP" >&6; }
3383 ac_preproc_ok=false
3384 for ac_c_preproc_warn_flag in '' yes
3385 do
3386 # Use a header file that comes with gcc, so configuring glibc
3387 # with a fresh cross-compiler works.
3388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3389 # <limits.h> exists even on freestanding compilers.
3390 # On the NeXT, cc -E runs the code through the compiler's parser,
3391 # not just through cpp. "Syntax error" is here to catch this case.
3392 cat >conftest.$ac_ext <<_ACEOF
3393 /* confdefs.h. */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3398 #ifdef __STDC__
3399 # include <limits.h>
3400 #else
3401 # include <assert.h>
3402 #endif
3403 Syntax error
3404 _ACEOF
3405 if { (ac_try="$ac_cpp conftest.$ac_ext"
3406 case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null; then
3418 if test -s conftest.err; then
3419 ac_cpp_err=$ac_c_preproc_warn_flag
3420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421 else
3422 ac_cpp_err=
3423 fi
3424 else
3425 ac_cpp_err=yes
3426 fi
3427 if test -z "$ac_cpp_err"; then
3428 :
3429 else
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 # Broken: fails on valid input.
3434 continue
3435 fi
3437 rm -f conftest.err conftest.$ac_ext
3439 # OK, works on sane cases. Now check whether nonexistent headers
3440 # can be detected and how.
3441 cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h. */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <ac_nonexistent.h>
3448 _ACEOF
3449 if { (ac_try="$ac_cpp conftest.$ac_ext"
3450 case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } >/dev/null; then
3462 if test -s conftest.err; then
3463 ac_cpp_err=$ac_c_preproc_warn_flag
3464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3465 else
3466 ac_cpp_err=
3467 fi
3468 else
3469 ac_cpp_err=yes
3470 fi
3471 if test -z "$ac_cpp_err"; then
3472 # Broken: success on invalid input.
3473 continue
3474 else
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 # Passes both tests.
3479 ac_preproc_ok=:
3480 break
3481 fi
3483 rm -f conftest.err conftest.$ac_ext
3485 done
3486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3487 rm -f conftest.err conftest.$ac_ext
3488 if $ac_preproc_ok; then
3489 :
3490 else
3491 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3492 See \`config.log' for more details." >&5
3493 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3494 See \`config.log' for more details." >&2;}
3495 { (exit 1); exit 1; }; }
3496 fi
3498 ac_ext=c
3499 ac_cpp='$CPP $CPPFLAGS'
3500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 if test "$CXX" = "clang++" ; then
3506 { echo "$as_me:$LINENO: checking whether clang works" >&5
3507 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3508 ac_ext=cpp
3509 ac_cpp='$CXXCPP $CPPFLAGS'
3510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h. */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3521 #include <limits>
3522 #if __has_include (<cxxabi.h>)
3523 #include <cxxabi.h>
3524 #endif
3525 #if __has_include (<unwind.h>)
3526 #include <unwind.h>
3527 #endif
3529 int
3530 main ()
3531 {
3533 ;
3534 return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3539 case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3542 esac
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_compile") 2>conftest.er1
3545 ac_status=$?
3546 grep -v '^ *+' conftest.er1 >conftest.err
3547 rm -f conftest.er1
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
3551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3552 { (case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_try") 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; } &&
3561 { ac_try='test -s conftest.$ac_objext'
3562 { (case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565 esac
3566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567 (eval "$ac_try") 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3572 { echo "$as_me:$LINENO: result: yes" >&5
3573 echo "${ECHO_T}yes" >&6; }
3575 else
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3580 { echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6; }
3582 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3583 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3584 { (exit 1); exit 1; }; }
3586 fi
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 ac_ext=c
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595 fi
3597 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3598 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3599 ac_ext=cpp
3600 ac_cpp='$CXXCPP $CPPFLAGS'
3601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3605 llvm_cv_cxx_compiler=unknown
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612 #if ! __clang__
3613 #error
3614 #endif
3616 _ACEOF
3617 rm -f conftest.$ac_objext
3618 if { (ac_try="$ac_compile"
3619 case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3622 esac
3623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3624 (eval "$ac_compile") 2>conftest.er1
3625 ac_status=$?
3626 grep -v '^ *+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3632 { (case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_try") 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3647 (eval "$ac_try") 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3651 llvm_cv_cxx_compiler=clang
3652 else
3653 echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3656 cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h. */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 #if ! __GNUC__
3663 #error
3664 #endif
3666 _ACEOF
3667 rm -f conftest.$ac_objext
3668 if { (ac_try="$ac_compile"
3669 case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_compile") 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3682 { (case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3685 esac
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_try") 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; } &&
3691 { ac_try='test -s conftest.$ac_objext'
3692 { (case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3695 esac
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697 (eval "$ac_try") 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 llvm_cv_cxx_compiler=gcc
3702 else
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3707 fi
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 fi
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 ac_ext=c
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3720 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3724 if test -d ${srcdir}/projects/test-suite ; then
3725 subdirs="$subdirs projects/test-suite"
3727 fi
3729 if test -d ${srcdir}/projects/llvm-test ; then
3730 subdirs="$subdirs projects/llvm-test"
3732 fi
3734 if test -d ${srcdir}/projects/poolalloc ; then
3735 subdirs="$subdirs projects/poolalloc"
3737 fi
3739 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3740 subdirs="$subdirs projects/llvm-poolalloc"
3742 fi
3744 for i in `ls ${srcdir}/projects`
3745 do
3746 if test -d ${srcdir}/projects/${i} ; then
3747 case ${i} in
3748 sample) subdirs="$subdirs projects/sample"
3749 ;;
3750 safecode) subdirs="$subdirs projects/safecode"
3751 ;;
3752 compiler-rt) ;;
3753 test-suite) ;;
3754 llvm-test) ;;
3755 poolalloc) ;;
3756 llvm-poolalloc) ;;
3757 *)
3758 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3759 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3760 ;;
3761 esac
3762 fi
3763 done
3765 # Check whether --enable-polly was given.
3766 if test "${enable_polly+set}" = set; then
3767 enableval=$enable_polly;
3768 else
3769 enableval=default
3770 fi
3772 case "$enableval" in
3773 yes) ENABLE_POLLY=1
3774 ;;
3775 no) ENABLE_POLLY=0
3776 ;;
3777 default) ENABLE_POLLY=1
3778 ;;
3779 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3780 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3781 { (exit 1); exit 1; }; } ;;
3782 esac
3785 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3786 LLVM_HAS_POLLY=1
3788 subdirs="$subdirs tools/polly"
3790 fi
3793 # Make sure we can run config.sub.
3794 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3795 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3796 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3797 { (exit 1); exit 1; }; }
3799 { echo "$as_me:$LINENO: checking build system type" >&5
3800 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3801 if test "${ac_cv_build+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804 ac_build_alias=$build_alias
3805 test "x$ac_build_alias" = x &&
3806 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3807 test "x$ac_build_alias" = x &&
3808 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3809 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3810 { (exit 1); exit 1; }; }
3811 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3812 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3813 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3814 { (exit 1); exit 1; }; }
3816 fi
3817 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3818 echo "${ECHO_T}$ac_cv_build" >&6; }
3819 case $ac_cv_build in
3820 *-*-*) ;;
3821 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3822 echo "$as_me: error: invalid value of canonical build" >&2;}
3823 { (exit 1); exit 1; }; };;
3824 esac
3825 build=$ac_cv_build
3826 ac_save_IFS=$IFS; IFS='-'
3827 set x $ac_cv_build
3828 shift
3829 build_cpu=$1
3830 build_vendor=$2
3831 shift; shift
3832 # Remember, the first character of IFS is used to create $*,
3833 # except with old shells:
3834 build_os=$*
3835 IFS=$ac_save_IFS
3836 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3839 { echo "$as_me:$LINENO: checking host system type" >&5
3840 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3841 if test "${ac_cv_host+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844 if test "x$host_alias" = x; then
3845 ac_cv_host=$ac_cv_build
3846 else
3847 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3848 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3849 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3850 { (exit 1); exit 1; }; }
3851 fi
3853 fi
3854 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3855 echo "${ECHO_T}$ac_cv_host" >&6; }
3856 case $ac_cv_host in
3857 *-*-*) ;;
3858 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3859 echo "$as_me: error: invalid value of canonical host" >&2;}
3860 { (exit 1); exit 1; }; };;
3861 esac
3862 host=$ac_cv_host
3863 ac_save_IFS=$IFS; IFS='-'
3864 set x $ac_cv_host
3865 shift
3866 host_cpu=$1
3867 host_vendor=$2
3868 shift; shift
3869 # Remember, the first character of IFS is used to create $*,
3870 # except with old shells:
3871 host_os=$*
3872 IFS=$ac_save_IFS
3873 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3876 { echo "$as_me:$LINENO: checking target system type" >&5
3877 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3878 if test "${ac_cv_target+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 if test "x$target_alias" = x; then
3882 ac_cv_target=$ac_cv_host
3883 else
3884 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3885 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3886 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3887 { (exit 1); exit 1; }; }
3888 fi
3890 fi
3891 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3892 echo "${ECHO_T}$ac_cv_target" >&6; }
3893 case $ac_cv_target in
3894 *-*-*) ;;
3895 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3896 echo "$as_me: error: invalid value of canonical target" >&2;}
3897 { (exit 1); exit 1; }; };;
3898 esac
3899 target=$ac_cv_target
3900 ac_save_IFS=$IFS; IFS='-'
3901 set x $ac_cv_target
3902 shift
3903 target_cpu=$1
3904 target_vendor=$2
3905 shift; shift
3906 # Remember, the first character of IFS is used to create $*,
3907 # except with old shells:
3908 target_os=$*
3909 IFS=$ac_save_IFS
3910 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3913 # The aliases save the names the user supplied, while $host etc.
3914 # will get canonicalized.
3915 test -n "$target_alias" &&
3916 test "$program_prefix$program_suffix$program_transform_name" = \
3917 NONENONEs,x,x, &&
3918 program_prefix=${target_alias}-
3920 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3921 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3922 if test "${llvm_cv_os_type+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 case $host in
3926 *-*-aix*)
3927 llvm_cv_link_all_option="-Wl,--whole-archive"
3928 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3929 llvm_cv_os_type="AIX"
3930 llvm_cv_platform_type="Unix" ;;
3931 *-*-irix*)
3932 llvm_cv_link_all_option="-Wl,--whole-archive"
3933 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3934 llvm_cv_os_type="IRIX"
3935 llvm_cv_platform_type="Unix" ;;
3936 *-*-cygwin*)
3937 llvm_cv_link_all_option="-Wl,--whole-archive"
3938 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3939 llvm_cv_os_type="Cygwin"
3940 llvm_cv_platform_type="Unix" ;;
3941 *-*-darwin*)
3942 llvm_cv_link_all_option="-Wl,-all_load"
3943 llvm_cv_no_link_all_option="-Wl,-noall_load"
3944 llvm_cv_os_type="Darwin"
3945 llvm_cv_platform_type="Unix" ;;
3946 *-*-minix*)
3947 llvm_cv_link_all_option="-Wl,-all_load"
3948 llvm_cv_no_link_all_option="-Wl,-noall_load"
3949 llvm_cv_os_type="Minix"
3950 llvm_cv_platform_type="Unix" ;;
3951 *-*-freebsd*)
3952 llvm_cv_link_all_option="-Wl,--whole-archive"
3953 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3954 llvm_cv_os_type="FreeBSD"
3955 llvm_cv_platform_type="Unix" ;;
3956 *-*-kfreebsd-gnu)
3957 llvm_cv_link_all_option="-Wl,--whole-archive"
3958 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3959 llvm_cv_os_type="GNU/kFreeBSD"
3960 llvm_cv_platform_type="Unix" ;;
3961 *-*-openbsd*)
3962 llvm_cv_link_all_option="-Wl,--whole-archive"
3963 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3964 llvm_cv_os_type="OpenBSD"
3965 llvm_cv_platform_type="Unix" ;;
3966 *-*-netbsd*)
3967 llvm_cv_link_all_option="-Wl,--whole-archive"
3968 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3969 llvm_cv_os_type="NetBSD"
3970 llvm_cv_platform_type="Unix" ;;
3971 *-*-dragonfly*)
3972 llvm_cv_link_all_option="-Wl,--whole-archive"
3973 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3974 llvm_cv_os_type="DragonFly"
3975 llvm_cv_platform_type="Unix" ;;
3976 *-*-hpux*)
3977 llvm_cv_link_all_option="-Wl,--whole-archive"
3978 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3979 llvm_cv_os_type="HP-UX"
3980 llvm_cv_platform_type="Unix" ;;
3981 *-*-interix*)
3982 llvm_cv_link_all_option="-Wl,--whole-archive"
3983 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3984 llvm_cv_os_type="Interix"
3985 llvm_cv_platform_type="Unix" ;;
3986 *-*-linux*)
3987 llvm_cv_link_all_option="-Wl,--whole-archive"
3988 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3989 llvm_cv_os_type="Linux"
3990 llvm_cv_platform_type="Unix" ;;
3991 *-*-gnu*)
3992 llvm_cv_link_all_option="-Wl,--whole-archive"
3993 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3994 llvm_cv_os_type="GNU"
3995 llvm_cv_platform_type="Unix" ;;
3996 *-*-solaris*)
3997 llvm_cv_link_all_option="-Wl,-z,allextract"
3998 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3999 llvm_cv_os_type="SunOS"
4000 llvm_cv_platform_type="Unix" ;;
4001 *-*-auroraux*)
4002 llvm_cv_link_all_option="-Wl,-z,allextract"
4003 llvm_cv_link_all_option="-Wl,-z,defaultextract"
4004 llvm_cv_os_type="AuroraUX"
4005 llvm_cv_platform_type="Unix" ;;
4006 *-*-win32*)
4007 llvm_cv_link_all_option="-Wl,--whole-archive"
4008 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4009 llvm_cv_os_type="Win32"
4010 llvm_cv_platform_type="Win32" ;;
4011 *-*-mingw*)
4012 llvm_cv_link_all_option="-Wl,--whole-archive"
4013 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4014 llvm_cv_os_type="MingW"
4015 llvm_cv_platform_type="Win32" ;;
4016 *-*-haiku*)
4017 llvm_cv_link_all_option="-Wl,--whole-archive"
4018 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4019 llvm_cv_os_type="Haiku"
4020 llvm_cv_platform_type="Unix" ;;
4021 *-unknown-eabi*)
4022 llvm_cv_link_all_option="-Wl,--whole-archive"
4023 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4024 llvm_cv_os_type="Freestanding"
4025 llvm_cv_platform_type="Unix" ;;
4026 *-unknown-elf*)
4027 llvm_cv_link_all_option="-Wl,--whole-archive"
4028 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4029 llvm_cv_os_type="Freestanding"
4030 llvm_cv_platform_type="Unix" ;;
4031 *)
4032 llvm_cv_link_all_option=""
4033 llvm_cv_no_link_all_option=""
4034 llvm_cv_os_type="Unknown"
4035 llvm_cv_platform_type="Unknown" ;;
4036 esac
4037 fi
4038 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4039 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4041 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4042 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4043 if test "${llvm_cv_target_os_type+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 case $target in
4047 *-*-aix*)
4048 llvm_cv_target_os_type="AIX" ;;
4049 *-*-irix*)
4050 llvm_cv_target_os_type="IRIX" ;;
4051 *-*-cygwin*)
4052 llvm_cv_target_os_type="Cygwin" ;;
4053 *-*-darwin*)
4054 llvm_cv_target_os_type="Darwin" ;;
4055 *-*-minix*)
4056 llvm_cv_target_os_type="Minix" ;;
4057 *-*-freebsd*)
4058 llvm_cv_target_os_type="FreeBSD" ;;
4059 *-*-kfreebsd-gnu)
4060 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4061 *-*-openbsd*)
4062 llvm_cv_target_os_type="OpenBSD" ;;
4063 *-*-netbsd*)
4064 llvm_cv_target_os_type="NetBSD" ;;
4065 *-*-dragonfly*)
4066 llvm_cv_target_os_type="DragonFly" ;;
4067 *-*-hpux*)
4068 llvm_cv_target_os_type="HP-UX" ;;
4069 *-*-interix*)
4070 llvm_cv_target_os_type="Interix" ;;
4071 *-*-linux*)
4072 llvm_cv_target_os_type="Linux" ;;
4073 *-*-gnu*)
4074 llvm_cv_target_os_type="GNU" ;;
4075 *-*-solaris*)
4076 llvm_cv_target_os_type="SunOS" ;;
4077 *-*-auroraux*)
4078 llvm_cv_target_os_type="AuroraUX" ;;
4079 *-*-win32*)
4080 llvm_cv_target_os_type="Win32" ;;
4081 *-*-mingw*)
4082 llvm_cv_target_os_type="MingW" ;;
4083 *-*-haiku*)
4084 llvm_cv_target_os_type="Haiku" ;;
4085 *-*-rtems*)
4086 llvm_cv_target_os_type="RTEMS" ;;
4087 *-*-nacl*)
4088 llvm_cv_target_os_type="NativeClient" ;;
4089 *-unknown-eabi*)
4090 llvm_cv_target_os_type="Freestanding" ;;
4091 *)
4092 llvm_cv_target_os_type="Unknown" ;;
4093 esac
4094 fi
4095 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4096 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4098 if test "$llvm_cv_os_type" = "Unknown" ; then
4099 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4100 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4101 { (exit 1); exit 1; }; }
4102 fi
4104 OS=$llvm_cv_os_type
4106 HOST_OS=$llvm_cv_os_type
4108 TARGET_OS=$llvm_cv_target_os_type
4111 LINKALL=$llvm_cv_link_all_option
4113 NOLINKALL=$llvm_cv_no_link_all_option
4116 case $llvm_cv_platform_type in
4117 Unix)
4119 cat >>confdefs.h <<\_ACEOF
4120 #define LLVM_ON_UNIX 1
4121 _ACEOF
4123 LLVM_ON_UNIX=1
4125 LLVM_ON_WIN32=0
4127 ;;
4128 Win32)
4130 cat >>confdefs.h <<\_ACEOF
4131 #define LLVM_ON_WIN32 1
4132 _ACEOF
4134 LLVM_ON_UNIX=0
4136 LLVM_ON_WIN32=1
4138 ;;
4139 esac
4141 { echo "$as_me:$LINENO: checking target architecture" >&5
4142 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4143 if test "${llvm_cv_target_arch+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 case $target in
4147 i?86-*) llvm_cv_target_arch="x86" ;;
4148 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4149 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4150 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4151 arm*-*) llvm_cv_target_arch="ARM" ;;
4152 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4153 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4154 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4155 xcore-*) llvm_cv_target_arch="XCore" ;;
4156 msp430-*) llvm_cv_target_arch="MSP430" ;;
4157 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4158 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4159 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4160 *) llvm_cv_target_arch="Unknown" ;;
4161 esac
4162 fi
4163 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4164 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4166 if test "$llvm_cv_target_arch" = "Unknown" ; then
4167 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4168 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4169 fi
4171 case "$llvm_cv_target_arch" in
4172 x86) LLVM_NATIVE_ARCH="X86" ;;
4173 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4174 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4175 esac
4177 ARCH=$llvm_cv_target_arch
4179 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4182 case $host in
4183 i?86-*) host_arch="x86" ;;
4184 amd64-* | x86_64-*) host_arch="x86_64" ;;
4185 sparc*-*) host_arch="Sparc" ;;
4186 powerpc*-*) host_arch="PowerPC" ;;
4187 arm*-*) host_arch="ARM" ;;
4188 aarch64*-*) host_arch="AArch64" ;;
4189 mips-* | mips64-*) host_arch="Mips" ;;
4190 mipsel-* | mips64el-*) host_arch="Mips" ;;
4191 xcore-*) host_arch="XCore" ;;
4192 msp430-*) host_arch="MSP430" ;;
4193 hexagon-*) host_arch="Hexagon" ;;
4194 s390x-*) host_arch="SystemZ" ;;
4195 *) host_arch="Unknown" ;;
4196 esac
4198 if test "$host_arch" = "Unknown" ; then
4199 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4200 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4201 fi
4203 HOST_ARCH=$host_arch
4206 if test "$cross_compiling" = yes; then
4207 LLVM_CROSS_COMPILING=1
4210 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4211 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4212 if test "${ac_cv_build_exeext+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4216 ac_cv_build_exeext=.exe
4217 else
4218 ac_build_prefix=${build_alias}-
4220 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4221 set dummy ${ac_build_prefix}gcc; ac_word=$2
4222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4224 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227 if test -n "$BUILD_CC"; then
4228 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4237 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4240 fi
4241 done
4242 done
4243 IFS=$as_save_IFS
4245 fi
4246 fi
4247 BUILD_CC=$ac_cv_prog_BUILD_CC
4248 if test -n "$BUILD_CC"; then
4249 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4250 echo "${ECHO_T}$BUILD_CC" >&6; }
4251 else
4252 { echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6; }
4254 fi
4257 if test -z "$BUILD_CC"; then
4258 # Extract the first word of "gcc", so it can be a program name with args.
4259 set dummy gcc; ac_word=$2
4260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4262 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265 if test -n "$BUILD_CC"; then
4266 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4275 ac_cv_prog_BUILD_CC="gcc"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4278 fi
4279 done
4280 done
4281 IFS=$as_save_IFS
4283 fi
4284 fi
4285 BUILD_CC=$ac_cv_prog_BUILD_CC
4286 if test -n "$BUILD_CC"; then
4287 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4288 echo "${ECHO_T}$BUILD_CC" >&6; }
4289 else
4290 { echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6; }
4292 fi
4295 if test -z "$BUILD_CC"; then
4296 # Extract the first word of "cc", so it can be a program name with args.
4297 set dummy cc; ac_word=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303 if test -n "$BUILD_CC"; then
4304 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4305 else
4306 ac_prog_rejected=no
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4309 do
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4314 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4315 ac_prog_rejected=yes
4316 continue
4317 fi
4318 ac_cv_prog_BUILD_CC="cc"
4319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4321 fi
4322 done
4323 done
4324 IFS=$as_save_IFS
4326 if test $ac_prog_rejected = yes; then
4327 # We found a bogon in the path, so make sure we never use it.
4328 set dummy $ac_cv_prog_BUILD_CC
4329 shift
4330 if test $# != 0; then
4331 # We chose a different compiler from the bogus one.
4332 # However, it has the same basename, so the bogon will be chosen
4333 # first if we set BUILD_CC to just the basename; use the full file name.
4334 shift
4335 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4336 fi
4337 fi
4338 fi
4339 fi
4340 BUILD_CC=$ac_cv_prog_BUILD_CC
4341 if test -n "$BUILD_CC"; then
4342 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4343 echo "${ECHO_T}$BUILD_CC" >&6; }
4344 else
4345 { echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6; }
4347 fi
4350 fi
4351 fi
4352 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4353 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4354 { (exit 1); exit 1; }; }
4355 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4356 rm -f conftest*
4357 echo 'int main () { return 0; }' > conftest.$ac_ext
4358 ac_cv_build_exeext=
4359 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4360 (eval $ac_build_link) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; then
4364 for file in conftest.*; do
4365 case $file in
4366 *.c | *.o | *.obj | *.dSYM) ;;
4367 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4368 esac
4369 done
4370 else
4371 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4372 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4373 { (exit 1); exit 1; }; }
4374 fi
4375 rm -f conftest*
4376 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4377 fi
4378 fi
4380 BUILD_EXEEXT=""
4381 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4382 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4383 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4384 ac_build_exeext=$BUILD_EXEEXT
4386 ac_build_prefix=${build_alias}-
4387 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4388 set dummy ${ac_build_prefix}g++; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 if test -n "$BUILD_CXX"; then
4395 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4407 fi
4408 done
4409 done
4410 IFS=$as_save_IFS
4412 fi
4413 fi
4414 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4415 if test -n "$BUILD_CXX"; then
4416 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4417 echo "${ECHO_T}$BUILD_CXX" >&6; }
4418 else
4419 { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4421 fi
4424 if test -z "$BUILD_CXX"; then
4425 # Extract the first word of "g++", so it can be a program name with args.
4426 set dummy g++; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 if test -n "$BUILD_CXX"; then
4433 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_BUILD_CXX="g++"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4445 fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4450 fi
4451 fi
4452 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4453 if test -n "$BUILD_CXX"; then
4454 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4455 echo "${ECHO_T}$BUILD_CXX" >&6; }
4456 else
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4459 fi
4462 if test -z "$BUILD_CXX"; then
4463 # Extract the first word of "c++", so it can be a program name with args.
4464 set dummy c++; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470 if test -n "$BUILD_CXX"; then
4471 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4472 else
4473 ac_prog_rejected=no
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4476 do
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4481 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4482 ac_prog_rejected=yes
4483 continue
4484 fi
4485 ac_cv_prog_BUILD_CXX="c++"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4488 fi
4489 done
4490 done
4491 IFS=$as_save_IFS
4493 if test $ac_prog_rejected = yes; then
4494 # We found a bogon in the path, so make sure we never use it.
4495 set dummy $ac_cv_prog_BUILD_CXX
4496 shift
4497 if test $# != 0; then
4498 # We chose a different compiler from the bogus one.
4499 # However, it has the same basename, so the bogon will be chosen
4500 # first if we set BUILD_CXX to just the basename; use the full file name.
4501 shift
4502 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4503 fi
4504 fi
4505 fi
4506 fi
4507 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4508 if test -n "$BUILD_CXX"; then
4509 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4510 echo "${ECHO_T}$BUILD_CXX" >&6; }
4511 else
4512 { echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6; }
4514 fi
4517 fi
4518 fi
4519 else
4520 LLVM_CROSS_COMPILING=0
4522 fi
4524 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4525 cvsbuild="yes"
4526 optimize="no"
4527 CVSBUILD=CVSBUILD=1
4529 else
4530 cvsbuild="no"
4531 optimize="yes"
4532 fi
4535 # Check whether --enable-libcpp was given.
4536 if test "${enable_libcpp+set}" = set; then
4537 enableval=$enable_libcpp;
4538 else
4539 enableval=default
4540 fi
4542 case "$enableval" in
4543 yes) ENABLE_LIBCPP=1
4544 ;;
4545 no) ENABLE_LIBCPP=0
4546 ;;
4547 default) ENABLE_LIBCPP=0
4548 ;;
4549 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4550 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4551 { (exit 1); exit 1; }; } ;;
4552 esac
4554 # Check whether --enable-compiler-version-checks was given.
4555 if test "${enable_compiler_version_checks+set}" = set; then
4556 enableval=$enable_compiler_version_checks;
4557 else
4558 enableval=default
4559 fi
4561 case "$enableval" in
4562 no)
4563 ;;
4564 yes|default)
4565 ac_ext=cpp
4566 ac_cpp='$CXXCPP $CPPFLAGS'
4567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4571 case "$llvm_cv_cxx_compiler" in
4572 clang)
4573 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4574 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4575 cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h. */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4582 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4583 #error This version of Clang is too old to build LLVM
4584 #endif
4586 _ACEOF
4587 rm -f conftest.$ac_objext
4588 if { (ac_try="$ac_compile"
4589 case "(($ac_try" in
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4592 esac
4593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594 (eval "$ac_compile") 2>conftest.er1
4595 ac_status=$?
4596 grep -v '^ *+' conftest.er1 >conftest.err
4597 rm -f conftest.er1
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4602 { (case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605 esac
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607 (eval "$ac_try") 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615 esac
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_try") 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 { echo "$as_me:$LINENO: result: yes" >&5
4622 echo "${ECHO_T}yes" >&6; }
4623 else
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4629 { { echo "$as_me:$LINENO: error:
4630 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4631 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4632 bypass these sanity checks." >&5
4633 echo "$as_me: error:
4634 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4635 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4636 bypass these sanity checks." >&2;}
4637 { (exit 1); exit 1; }; }
4638 fi
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 if test "$ENABLE_LIBCPP" -eq 0 ; then
4643 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4644 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4645 llvm_cv_old_cxxflags="$CXXFLAGS"
4646 CXXFLAGS="$CXXFLAGS -std=c++0x"
4647 cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h. */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4654 #include <atomic>
4655 std::atomic<float> x(0.0f);
4656 int main() { return (float)x; }
4658 _ACEOF
4659 rm -f conftest.$ac_objext conftest$ac_exeext
4660 if { (ac_try="$ac_link"
4661 case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664 esac
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_link") 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } &&
4673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4674 { (case "(($ac_try" in
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4677 esac
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_try") 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; } &&
4683 { ac_try='test -s conftest$ac_exeext'
4684 { (case "(($ac_try" in
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4687 esac
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_try") 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 { echo "$as_me:$LINENO: result: yes" >&5
4694 echo "${ECHO_T}yes" >&6; }
4695 else
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4699 { echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6; }
4701 { { echo "$as_me:$LINENO: error:
4702 We detected a missing feature in the standard C++ library that was known to be
4703 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4704 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4705 than 4.7. You will need to update your system and ensure Clang uses the newer
4706 standard library.
4708 If this error is incorrect or you need to force things to work, you may pass
4709 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4710 echo "$as_me: error:
4711 We detected a missing feature in the standard C++ library that was known to be
4712 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4713 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4714 than 4.7. You will need to update your system and ensure Clang uses the newer
4715 standard library.
4717 If this error is incorrect or you need to force things to work, you may pass
4718 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4719 { (exit 1); exit 1; }; }
4720 fi
4722 rm -f core conftest.err conftest.$ac_objext \
4723 conftest$ac_exeext conftest.$ac_ext
4724 CXXFLAGS="$llvm_cv_old_cxxflags"
4725 fi
4726 ;;
4727 gcc)
4728 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4729 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4730 cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h. */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4737 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4738 #error This version of GCC is too old to build LLVM
4739 #endif
4741 _ACEOF
4742 rm -f conftest.$ac_objext
4743 if { (ac_try="$ac_compile"
4744 case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747 esac
4748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749 (eval "$ac_compile") 2>conftest.er1
4750 ac_status=$?
4751 grep -v '^ *+' conftest.er1 >conftest.err
4752 rm -f conftest.er1
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } &&
4756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4757 { (case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_try") 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest.$ac_objext'
4767 { (case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770 esac
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_try") 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4776 { echo "$as_me:$LINENO: result: yes" >&5
4777 echo "${ECHO_T}yes" >&6; }
4778 else
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4782 { echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6; }
4784 { { echo "$as_me:$LINENO: error:
4785 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4786 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4787 bypass these sanity checks." >&5
4788 echo "$as_me: error:
4789 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4790 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4791 bypass these sanity checks." >&2;}
4792 { (exit 1); exit 1; }; }
4793 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 ;;
4797 unknown)
4798 ;;
4799 esac
4800 ac_ext=c
4801 ac_cpp='$CPP $CPPFLAGS'
4802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806 ;;
4807 *)
4808 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4809 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4810 { (exit 1); exit 1; }; }
4811 ;;
4812 esac
4814 # Check whether --enable-cxx11 was given.
4815 if test "${enable_cxx11+set}" = set; then
4816 enableval=$enable_cxx11;
4817 else
4818 enableval=default
4819 fi
4821 case "$enableval" in
4822 yes) ENABLE_CXX11=1
4823 ;;
4824 no) ENABLE_CXX11=0
4825 ;;
4826 default) ENABLE_CXX11=0
4827 ;;
4828 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4829 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4830 { (exit 1); exit 1; }; } ;;
4831 esac
4833 # Check whether --enable-split-dwarf was given.
4834 if test "${enable_split_dwarf+set}" = set; then
4835 enableval=$enable_split_dwarf;
4836 else
4837 enableval=default
4838 fi
4840 case "$enableval" in
4841 yes) ENABLE_SPLIT_DWARF=1
4842 ;;
4843 no) ENABLE_SPLIT_DWARF=0
4844 ;;
4845 default) ENABLE_SPLIT_DWARF=0
4846 ;;
4847 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4848 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4849 { (exit 1); exit 1; }; } ;;
4850 esac
4852 clang_arcmt="yes"
4853 # Check whether --enable-clang-arcmt was given.
4854 if test "${enable_clang_arcmt+set}" = set; then
4855 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4856 else
4857 enableval="yes"
4858 fi
4860 case "$enableval" in
4861 yes) ENABLE_CLANG_ARCMT=1
4862 ;;
4863 no) ENABLE_CLANG_ARCMT=0
4864 ;;
4865 default) ENABLE_CLANG_ARCMT=1
4866 ;;
4867 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4868 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4869 { (exit 1); exit 1; }; } ;;
4870 esac
4872 clang_static_analyzer="yes"
4873 # Check whether --enable-clang-static-analyzer was given.
4874 if test "${enable_clang_static_analyzer+set}" = set; then
4875 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4876 else
4877 enableval="yes"
4878 fi
4880 case "$enableval" in
4881 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4882 ;;
4883 no)
4884 if test ${clang_arcmt} != "no" ; then
4885 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4886 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4887 { (exit 1); exit 1; }; }
4888 fi
4889 ENABLE_CLANG_STATIC_ANALYZER=0
4891 ;;
4892 default) ENABLE_CLANG_STATIC_ANALYZER=1
4893 ;;
4894 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4895 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4896 { (exit 1); exit 1; }; } ;;
4897 esac
4899 # Check whether --enable-clang-rewriter was given.
4900 if test "${enable_clang_rewriter+set}" = set; then
4901 enableval=$enable_clang_rewriter;
4902 else
4903 enableval="yes"
4904 fi
4906 case "$enableval" in
4907 yes) ENABLE_CLANG_REWRITER=1
4908 ;;
4909 no)
4910 if test ${clang_arcmt} != "no" ; then
4911 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4912 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4913 { (exit 1); exit 1; }; }
4914 fi
4915 if test ${clang_static_analyzer} != "no" ; then
4916 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4917 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4918 { (exit 1); exit 1; }; }
4919 fi
4920 ENABLE_CLANG_REWRITER=0
4922 ;;
4923 default) ENABLE_CLANG_REWRITER=1
4924 ;;
4925 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4926 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4927 { (exit 1); exit 1; }; } ;;
4928 esac
4930 # Check whether --enable-optimized was given.
4931 if test "${enable_optimized+set}" = set; then
4932 enableval=$enable_optimized;
4933 else
4934 enableval=$optimize
4935 fi
4937 if test ${enableval} = "no" ; then
4938 ENABLE_OPTIMIZED=
4940 else
4941 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4943 fi
4945 # Check whether --enable-profiling was given.
4946 if test "${enable_profiling+set}" = set; then
4947 enableval=$enable_profiling;
4948 else
4949 enableval="no"
4950 fi
4952 if test ${enableval} = "no" ; then
4953 ENABLE_PROFILING=
4955 else
4956 ENABLE_PROFILING=ENABLE_PROFILING=1
4958 fi
4960 # Check whether --enable-assertions was given.
4961 if test "${enable_assertions+set}" = set; then
4962 enableval=$enable_assertions;
4963 else
4964 enableval="yes"
4965 fi
4967 if test ${enableval} = "yes" ; then
4968 DISABLE_ASSERTIONS=
4970 else
4971 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4973 fi
4975 # Check whether --enable-werror was given.
4976 if test "${enable_werror+set}" = set; then
4977 enableval=$enable_werror;
4978 else
4979 enableval="no"
4980 fi
4982 case "$enableval" in
4983 yes) ENABLE_WERROR=1
4984 ;;
4985 no) ENABLE_WERROR=0
4986 ;;
4987 default) ENABLE_WERROR=0
4988 ;;
4989 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4990 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4991 { (exit 1); exit 1; }; } ;;
4992 esac
4994 # Check whether --enable-expensive-checks was given.
4995 if test "${enable_expensive_checks+set}" = set; then
4996 enableval=$enable_expensive_checks;
4997 else
4998 enableval="no"
4999 fi
5001 if test ${enableval} = "yes" ; then
5002 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5004 EXPENSIVE_CHECKS=yes
5006 else
5007 ENABLE_EXPENSIVE_CHECKS=
5009 EXPENSIVE_CHECKS=no
5011 fi
5013 # Check whether --enable-debug-runtime was given.
5014 if test "${enable_debug_runtime+set}" = set; then
5015 enableval=$enable_debug_runtime;
5016 else
5017 enableval=no
5018 fi
5020 if test ${enableval} = "no" ; then
5021 DEBUG_RUNTIME=
5023 else
5024 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5026 fi
5028 # Check whether --enable-debug-symbols was given.
5029 if test "${enable_debug_symbols+set}" = set; then
5030 enableval=$enable_debug_symbols;
5031 else
5032 enableval=no
5033 fi
5035 if test ${enableval} = "no" ; then
5036 DEBUG_SYMBOLS=
5038 else
5039 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5041 fi
5043 # Check whether --enable-keep-symbols was given.
5044 if test "${enable_keep_symbols+set}" = set; then
5045 enableval=$enable_keep_symbols;
5046 else
5047 enableval=no
5048 fi
5050 if test ${enableval} = "no" ; then
5051 KEEP_SYMBOLS=
5053 else
5054 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5056 fi
5058 # Check whether --enable-jit was given.
5059 if test "${enable_jit+set}" = set; then
5060 enableval=$enable_jit;
5061 else
5062 enableval=default
5063 fi
5065 if test ${enableval} = "no"
5066 then
5067 JIT=
5069 else
5070 case "$llvm_cv_target_arch" in
5071 x86) TARGET_HAS_JIT=1
5072 ;;
5073 Sparc) TARGET_HAS_JIT=0
5074 ;;
5075 PowerPC) TARGET_HAS_JIT=1
5076 ;;
5077 x86_64) TARGET_HAS_JIT=1
5078 ;;
5079 ARM) TARGET_HAS_JIT=1
5080 ;;
5081 AArch64) TARGET_HAS_JIT=0
5082 ;;
5083 Mips) TARGET_HAS_JIT=1
5084 ;;
5085 XCore) TARGET_HAS_JIT=0
5086 ;;
5087 MSP430) TARGET_HAS_JIT=0
5088 ;;
5089 Hexagon) TARGET_HAS_JIT=0
5090 ;;
5091 NVPTX) TARGET_HAS_JIT=0
5092 ;;
5093 SystemZ) TARGET_HAS_JIT=1
5094 ;;
5095 *) TARGET_HAS_JIT=0
5096 ;;
5097 esac
5098 fi
5100 TARGETS_WITH_JIT="AArch64 ARM Mips PowerPC SystemZ X86"
5101 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5104 # Check whether --enable-docs was given.
5105 if test "${enable_docs+set}" = set; then
5106 enableval=$enable_docs;
5107 else
5108 enableval=default
5109 fi
5111 case "$enableval" in
5112 yes) ENABLE_DOCS=1
5113 ;;
5114 no) ENABLE_DOCS=0
5115 ;;
5116 default) ENABLE_DOCS=1
5117 ;;
5118 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5119 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5120 { (exit 1); exit 1; }; } ;;
5121 esac
5123 # Check whether --enable-doxygen was given.
5124 if test "${enable_doxygen+set}" = set; then
5125 enableval=$enable_doxygen;
5126 else
5127 enableval=default
5128 fi
5130 case "$enableval" in
5131 yes) ENABLE_DOXYGEN=1
5132 ;;
5133 no) ENABLE_DOXYGEN=0
5134 ;;
5135 default) ENABLE_DOXYGEN=0
5136 ;;
5137 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5138 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5140 esac
5142 # Check whether --enable-threads was given.
5143 if test "${enable_threads+set}" = set; then
5144 enableval=$enable_threads;
5145 else
5146 enableval=default
5147 fi
5149 case "$enableval" in
5150 yes) LLVM_ENABLE_THREADS=1
5151 ;;
5152 no) LLVM_ENABLE_THREADS=0
5153 ;;
5154 default) LLVM_ENABLE_THREADS=1
5155 ;;
5156 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5157 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5158 { (exit 1); exit 1; }; } ;;
5159 esac
5161 cat >>confdefs.h <<_ACEOF
5162 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5163 _ACEOF
5166 # Check whether --enable-pthreads was given.
5167 if test "${enable_pthreads+set}" = set; then
5168 enableval=$enable_pthreads;
5169 else
5170 enableval=default
5171 fi
5173 case "$enableval" in
5174 yes) ENABLE_PTHREADS=1
5175 ;;
5176 no) ENABLE_PTHREADS=0
5177 ;;
5178 default) ENABLE_PTHREADS=1
5179 ;;
5180 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5181 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5182 { (exit 1); exit 1; }; } ;;
5183 esac
5185 # Check whether --enable-zlib was given.
5186 if test "${enable_zlib+set}" = set; then
5187 enableval=$enable_zlib;
5188 else
5189 enableval=default
5190 fi
5192 case "$enableval" in
5193 yes) LLVM_ENABLE_ZLIB=1
5194 ;;
5195 no) LLVM_ENABLE_ZLIB=0
5196 ;;
5197 default) LLVM_ENABLE_ZLIB=1
5198 ;;
5199 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5200 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5201 { (exit 1); exit 1; }; } ;;
5202 esac
5204 cat >>confdefs.h <<_ACEOF
5205 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5206 _ACEOF
5209 # Check whether --enable-pic was given.
5210 if test "${enable_pic+set}" = set; then
5211 enableval=$enable_pic;
5212 else
5213 enableval=default
5214 fi
5216 case "$enableval" in
5217 yes) ENABLE_PIC=1
5218 ;;
5219 no) ENABLE_PIC=0
5220 ;;
5221 default) ENABLE_PIC=1
5222 ;;
5223 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5224 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5225 { (exit 1); exit 1; }; } ;;
5226 esac
5228 cat >>confdefs.h <<_ACEOF
5229 #define ENABLE_PIC $ENABLE_PIC
5230 _ACEOF
5233 # Check whether --enable-shared was given.
5234 if test "${enable_shared+set}" = set; then
5235 enableval=$enable_shared;
5236 else
5237 enableval=default
5238 fi
5240 case "$enableval" in
5241 yes) ENABLE_SHARED=1
5242 ;;
5243 no) ENABLE_SHARED=0
5244 ;;
5245 default) ENABLE_SHARED=0
5246 ;;
5247 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5248 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5249 { (exit 1); exit 1; }; } ;;
5250 esac
5252 # Check whether --enable-embed-stdcxx was given.
5253 if test "${enable_embed_stdcxx+set}" = set; then
5254 enableval=$enable_embed_stdcxx;
5255 else
5256 enableval=default
5257 fi
5259 case "$enableval" in
5260 yes) ENABLE_EMBED_STDCXX=1
5261 ;;
5262 no) ENABLE_EMBED_STDCXX=0
5263 ;;
5264 default) ENABLE_EMBED_STDCXX=0
5265 ;;
5266 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5267 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5268 { (exit 1); exit 1; }; } ;;
5269 esac
5271 # Check whether --enable-timestamps was given.
5272 if test "${enable_timestamps+set}" = set; then
5273 enableval=$enable_timestamps;
5274 else
5275 enableval=default
5276 fi
5278 case "$enableval" in
5279 yes) ENABLE_TIMESTAMPS=1
5280 ;;
5281 no) ENABLE_TIMESTAMPS=0
5282 ;;
5283 default) ENABLE_TIMESTAMPS=1
5284 ;;
5285 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5286 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5287 { (exit 1); exit 1; }; } ;;
5288 esac
5290 cat >>confdefs.h <<_ACEOF
5291 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5292 _ACEOF
5295 # Check whether --enable-backtraces was given.
5296 if test "${enable_backtraces+set}" = set; then
5297 enableval=$enable_backtraces; case "$enableval" in
5298 yes) llvm_cv_enable_backtraces="yes" ;;
5299 no) llvm_cv_enable_backtraces="no" ;;
5300 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5301 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5302 { (exit 1); exit 1; }; } ;;
5303 esac
5304 else
5305 llvm_cv_enable_backtraces="yes"
5306 fi
5308 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5310 cat >>confdefs.h <<\_ACEOF
5311 #define ENABLE_BACKTRACES 1
5312 _ACEOF
5314 fi
5316 # Check whether --enable-crash-overrides was given.
5317 if test "${enable_crash_overrides+set}" = set; then
5318 enableval=$enable_crash_overrides; case "$enableval" in
5319 yes) llvm_cv_enable_crash_overrides="yes" ;;
5320 no) llvm_cv_enable_crash_overrides="no" ;;
5321 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5322 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5323 { (exit 1); exit 1; }; } ;;
5324 esac
5325 else
5326 llvm_cv_enable_crash_overrides="yes"
5327 fi
5329 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5331 cat >>confdefs.h <<\_ACEOF
5332 #define ENABLE_CRASH_OVERRIDES 1
5333 _ACEOF
5335 fi
5337 ALL_TARGETS="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5338 ALL_TARGETS=$ALL_TARGETS
5341 TARGETS_TO_BUILD=""
5342 # Check whether --enable-targets was given.
5343 if test "${enable_targets+set}" = set; then
5344 enableval=$enable_targets;
5345 else
5346 enableval=all
5347 fi
5349 if test "$enableval" = host-only ; then
5350 enableval=host
5351 fi
5352 case "$enableval" in
5353 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5354 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5355 case "$a_target" in
5356 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5357 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5358 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5359 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5360 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5361 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5362 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5363 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5364 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5365 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5366 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5367 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5368 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5369 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5370 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5371 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5372 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5373 host) case "$llvm_cv_target_arch" in
5374 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5375 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5376 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5377 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5378 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5379 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5380 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5381 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5382 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5383 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5384 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5385 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5386 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5387 echo "$as_me: error: Can not set target to build" >&2;}
5388 { (exit 1); exit 1; }; } ;;
5389 esac ;;
5390 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5391 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5392 { (exit 1); exit 1; }; } ;;
5393 esac
5394 done
5395 ;;
5396 esac
5398 # Check whether --enable-experimental-targets was given.
5399 if test "${enable_experimental_targets+set}" = set; then
5400 enableval=$enable_experimental_targets;
5401 else
5402 enableval=disable
5403 fi
5406 if test ${enableval} != "disable"
5407 then
5408 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5409 fi
5411 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5414 for a_target in $TARGETS_TO_BUILD; do
5415 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5417 cat >>confdefs.h <<_ACEOF
5418 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5419 _ACEOF
5421 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5422 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5423 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5424 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5425 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5426 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5427 fi
5428 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5429 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5430 fi
5432 cat >>confdefs.h <<_ACEOF
5433 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5434 _ACEOF
5437 cat >>confdefs.h <<_ACEOF
5438 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5439 _ACEOF
5442 cat >>confdefs.h <<_ACEOF
5443 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5444 _ACEOF
5447 cat >>confdefs.h <<_ACEOF
5448 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5449 _ACEOF
5451 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5453 cat >>confdefs.h <<_ACEOF
5454 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5455 _ACEOF
5457 fi
5458 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5460 cat >>confdefs.h <<_ACEOF
5461 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5462 _ACEOF
5464 fi
5465 fi
5466 done
5468 LLVM_ENUM_TARGETS=""
5469 LLVM_ENUM_ASM_PRINTERS=""
5470 LLVM_ENUM_ASM_PARSERS=""
5471 LLVM_ENUM_DISASSEMBLERS=""
5472 for target_to_build in $TARGETS_TO_BUILD; do
5473 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5474 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5475 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5476 fi
5477 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5478 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5479 fi
5480 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5481 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5482 fi
5483 done
5490 # Check whether --with-optimize-option was given.
5491 if test "${with_optimize_option+set}" = set; then
5492 withval=$with_optimize_option;
5493 else
5494 withval=default
5495 fi
5497 { echo "$as_me:$LINENO: checking optimization flags" >&5
5498 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5499 case "$withval" in
5500 default)
5501 case "$llvm_cv_os_type" in
5502 FreeBSD) optimize_option=-O2 ;;
5503 MingW) optimize_option=-O2 ;;
5504 *) optimize_option=-O3 ;;
5505 esac ;;
5506 *) optimize_option="$withval" ;;
5507 esac
5508 OPTIMIZE_OPTION=$optimize_option
5510 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5511 echo "${ECHO_T}$optimize_option" >&6; }
5514 # Check whether --with-extra-options was given.
5515 if test "${with_extra_options+set}" = set; then
5516 withval=$with_extra_options;
5517 else
5518 withval=default
5519 fi
5521 case "$withval" in
5522 default) EXTRA_OPTIONS= ;;
5523 *) EXTRA_OPTIONS=$withval ;;
5524 esac
5525 EXTRA_OPTIONS=$EXTRA_OPTIONS
5529 # Check whether --with-extra-ld-options was given.
5530 if test "${with_extra_ld_options+set}" = set; then
5531 withval=$with_extra_ld_options;
5532 else
5533 withval=default
5534 fi
5536 case "$withval" in
5537 default) EXTRA_LD_OPTIONS= ;;
5538 *) EXTRA_LD_OPTIONS=$withval ;;
5539 esac
5540 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5543 # Check whether --enable-bindings was given.
5544 if test "${enable_bindings+set}" = set; then
5545 enableval=$enable_bindings;
5546 else
5547 enableval=default
5548 fi
5550 BINDINGS_TO_BUILD=""
5551 case "$enableval" in
5552 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5553 all ) BINDINGS_TO_BUILD="ocaml" ;;
5554 none | no) BINDINGS_TO_BUILD="" ;;
5555 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5556 case "$a_binding" in
5557 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5558 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5559 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5560 { (exit 1); exit 1; }; } ;;
5561 esac
5562 done
5563 ;;
5564 esac
5567 # Check whether --with-ocaml-libdir was given.
5568 if test "${with_ocaml_libdir+set}" = set; then
5569 withval=$with_ocaml_libdir;
5570 else
5571 withval=auto
5572 fi
5574 case "$withval" in
5575 auto) with_ocaml_libdir="$withval" ;;
5576 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5577 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5578 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5579 { (exit 1); exit 1; }; } ;;
5580 esac
5583 # Check whether --with-clang-srcdir was given.
5584 if test "${with_clang_srcdir+set}" = set; then
5585 withval=$with_clang_srcdir;
5586 else
5587 withval="-"
5588 fi
5590 case "$withval" in
5591 -) clang_src_root="" ;;
5592 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5593 *) clang_src_root="$ac_pwd/$withval" ;;
5594 esac
5595 CLANG_SRC_ROOT=$clang_src_root
5599 # Check whether --with-clang-resource-dir was given.
5600 if test "${with_clang_resource_dir+set}" = set; then
5601 withval=$with_clang_resource_dir;
5602 else
5603 withval=""
5604 fi
5607 cat >>confdefs.h <<_ACEOF
5608 #define CLANG_RESOURCE_DIR "$withval"
5609 _ACEOF
5613 # Check whether --with-c-include-dirs was given.
5614 if test "${with_c_include_dirs+set}" = set; then
5615 withval=$with_c_include_dirs;
5616 else
5617 withval=""
5618 fi
5621 cat >>confdefs.h <<_ACEOF
5622 #define C_INCLUDE_DIRS "$withval"
5623 _ACEOF
5626 # Clang normally uses the system c++ headers and libraries. With this option,
5627 # clang will use the ones provided by a gcc installation instead. This option should
5628 # be passed the same value that was used with --prefix when configuring gcc.
5630 # Check whether --with-gcc-toolchain was given.
5631 if test "${with_gcc_toolchain+set}" = set; then
5632 withval=$with_gcc_toolchain;
5633 else
5634 withval=""
5635 fi
5638 cat >>confdefs.h <<_ACEOF
5639 #define GCC_INSTALL_PREFIX "$withval"
5640 _ACEOF
5644 # Check whether --with-default-sysroot was given.
5645 if test "${with_default_sysroot+set}" = set; then
5646 withval=$with_default_sysroot;
5647 else
5648 withval=""
5649 fi
5652 cat >>confdefs.h <<_ACEOF
5653 #define DEFAULT_SYSROOT "$withval"
5654 _ACEOF
5658 # Check whether --with-binutils-include was given.
5659 if test "${with_binutils_include+set}" = set; then
5660 withval=$with_binutils_include;
5661 else
5662 withval=default
5663 fi
5665 case "$withval" in
5666 default) WITH_BINUTILS_INCDIR=default ;;
5667 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5668 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5669 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5670 { (exit 1); exit 1; }; } ;;
5671 esac
5672 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5673 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5675 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5676 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5677 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5678 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5679 { (exit 1); exit 1; }; };
5680 fi
5681 fi
5684 # Check whether --with-bug-report-url was given.
5685 if test "${with_bug_report_url+set}" = set; then
5686 withval=$with_bug_report_url;
5687 else
5688 withval="http://llvm.org/bugs/"
5689 fi
5692 cat >>confdefs.h <<_ACEOF
5693 #define BUG_REPORT_URL "$withval"
5694 _ACEOF
5697 # Check whether --enable-terminfo was given.
5698 if test "${enable_terminfo+set}" = set; then
5699 enableval=$enable_terminfo; case "$enableval" in
5700 yes) llvm_cv_enable_terminfo="yes" ;;
5701 no) llvm_cv_enable_terminfo="no" ;;
5702 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5703 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5704 { (exit 1); exit 1; }; } ;;
5705 esac
5706 else
5707 llvm_cv_enable_terminfo="yes"
5708 fi
5710 case "$llvm_cv_enable_terminfo" in
5711 yes) ENABLE_TERMINFO=1
5712 ;;
5713 no) ENABLE_TERMINFO=0
5714 ;;
5715 esac
5717 # Check whether --enable-libedit was given.
5718 if test "${enable_libedit+set}" = set; then
5719 enableval=$enable_libedit; case "$enableval" in
5720 yes) llvm_cv_enable_libedit="yes" ;;
5721 no) llvm_cv_enable_libedit="no" ;;
5722 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5723 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5724 { (exit 1); exit 1; }; } ;;
5725 esac
5726 else
5727 llvm_cv_enable_libedit="yes"
5728 fi
5731 # Check whether --enable-libffi was given.
5732 if test "${enable_libffi+set}" = set; then
5733 enableval=$enable_libffi; case "$enableval" in
5734 yes) llvm_cv_enable_libffi="yes" ;;
5735 no) llvm_cv_enable_libffi="no" ;;
5736 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5737 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5738 { (exit 1); exit 1; }; } ;;
5739 esac
5740 else
5741 llvm_cv_enable_libffi=no
5742 fi
5746 # Check whether --with-internal-prefix was given.
5747 if test "${with_internal_prefix+set}" = set; then
5748 withval=$with_internal_prefix;
5749 else
5750 withval=""
5751 fi
5753 INTERNAL_PREFIX=$withval
5757 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5758 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5759 if test "${lt_cv_path_NM+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762 if test -n "$NM"; then
5763 # Let the user override the test.
5764 lt_cv_path_NM="$NM"
5765 else
5766 lt_nm_to_check="${ac_tool_prefix}nm"
5767 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5768 lt_nm_to_check="$lt_nm_to_check nm"
5769 fi
5770 for lt_tmp_nm in $lt_nm_to_check; do
5771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5772 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5773 IFS="$lt_save_ifs"
5774 test -z "$ac_dir" && ac_dir=.
5775 tmp_nm="$ac_dir/$lt_tmp_nm"
5776 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5777 # Check to see if the nm accepts a BSD-compat flag.
5778 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5779 # nm: unknown option "B" ignored
5780 # Tru64's nm complains that /dev/null is an invalid object file
5781 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5782 */dev/null* | *'Invalid file or object type'*)
5783 lt_cv_path_NM="$tmp_nm -B"
5784 break
5785 ;;
5786 *)
5787 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5788 */dev/null*)
5789 lt_cv_path_NM="$tmp_nm -p"
5790 break
5791 ;;
5792 *)
5793 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5794 continue # so that we can try to find one that supports BSD flags
5795 ;;
5796 esac
5797 ;;
5798 esac
5799 fi
5800 done
5801 IFS="$lt_save_ifs"
5802 done
5803 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5804 fi
5805 fi
5806 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5807 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5808 NM="$lt_cv_path_NM"
5812 { echo "$as_me:$LINENO: checking for GNU make" >&5
5813 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5814 if test "${llvm_cv_gnu_make_command+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817 llvm_cv_gnu_make_command=''
5818 for a in "$MAKE" make gmake gnumake ; do
5819 if test -z "$a" ; then continue ; fi ;
5820 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5821 then
5822 llvm_cv_gnu_make_command=$a ;
5823 break;
5824 fi
5825 done
5826 fi
5827 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5828 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5829 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5830 ifGNUmake='' ;
5831 else
5832 ifGNUmake='#' ;
5833 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5834 echo "${ECHO_T}\"Not found\"" >&6; };
5835 fi
5838 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5839 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5840 LN_S=$as_ln_s
5841 if test "$LN_S" = "ln -s"; then
5842 { echo "$as_me:$LINENO: result: yes" >&5
5843 echo "${ECHO_T}yes" >&6; }
5844 else
5845 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5846 echo "${ECHO_T}no, using $LN_S" >&6; }
5847 fi
5849 # Extract the first word of "cmp", so it can be a program name with args.
5850 set dummy cmp; ac_word=$2
5851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5853 if test "${ac_cv_path_CMP+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856 case $CMP in
5857 [\\/]* | ?:[\\/]*)
5858 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5859 ;;
5860 *)
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872 done
5873 done
5874 IFS=$as_save_IFS
5876 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5877 ;;
5878 esac
5879 fi
5880 CMP=$ac_cv_path_CMP
5881 if test -n "$CMP"; then
5882 { echo "$as_me:$LINENO: result: $CMP" >&5
5883 echo "${ECHO_T}$CMP" >&6; }
5884 else
5885 { echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6; }
5887 fi
5890 # Extract the first word of "cp", so it can be a program name with args.
5891 set dummy cp; ac_word=$2
5892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5894 if test "${ac_cv_path_CP+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897 case $CP in
5898 [\\/]* | ?:[\\/]*)
5899 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5900 ;;
5901 *)
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905 IFS=$as_save_IFS
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5909 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 break 2
5912 fi
5913 done
5914 done
5915 IFS=$as_save_IFS
5917 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5918 ;;
5919 esac
5920 fi
5921 CP=$ac_cv_path_CP
5922 if test -n "$CP"; then
5923 { echo "$as_me:$LINENO: result: $CP" >&5
5924 echo "${ECHO_T}$CP" >&6; }
5925 else
5926 { echo "$as_me:$LINENO: result: no" >&5
5927 echo "${ECHO_T}no" >&6; }
5928 fi
5931 # Extract the first word of "date", so it can be a program name with args.
5932 set dummy date; ac_word=$2
5933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5935 if test "${ac_cv_path_DATE+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938 case $DATE in
5939 [\\/]* | ?:[\\/]*)
5940 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5941 ;;
5942 *)
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954 done
5955 done
5956 IFS=$as_save_IFS
5958 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5959 ;;
5960 esac
5961 fi
5962 DATE=$ac_cv_path_DATE
5963 if test -n "$DATE"; then
5964 { echo "$as_me:$LINENO: result: $DATE" >&5
5965 echo "${ECHO_T}$DATE" >&6; }
5966 else
5967 { echo "$as_me:$LINENO: result: no" >&5
5968 echo "${ECHO_T}no" >&6; }
5969 fi
5972 # Extract the first word of "find", so it can be a program name with args.
5973 set dummy find; ac_word=$2
5974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5976 if test "${ac_cv_path_FIND+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 case $FIND in
5980 [\\/]* | ?:[\\/]*)
5981 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5982 ;;
5983 *)
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5991 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 break 2
5994 fi
5995 done
5996 done
5997 IFS=$as_save_IFS
5999 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6000 ;;
6001 esac
6002 fi
6003 FIND=$ac_cv_path_FIND
6004 if test -n "$FIND"; then
6005 { echo "$as_me:$LINENO: result: $FIND" >&5
6006 echo "${ECHO_T}$FIND" >&6; }
6007 else
6008 { echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6; }
6010 fi
6013 # Extract the first word of "grep", so it can be a program name with args.
6014 set dummy grep; ac_word=$2
6015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6017 if test "${ac_cv_path_GREP+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020 case $GREP in
6021 [\\/]* | ?:[\\/]*)
6022 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6023 ;;
6024 *)
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036 done
6037 done
6038 IFS=$as_save_IFS
6040 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6041 ;;
6042 esac
6043 fi
6044 GREP=$ac_cv_path_GREP
6045 if test -n "$GREP"; then
6046 { echo "$as_me:$LINENO: result: $GREP" >&5
6047 echo "${ECHO_T}$GREP" >&6; }
6048 else
6049 { echo "$as_me:$LINENO: result: no" >&5
6050 echo "${ECHO_T}no" >&6; }
6051 fi
6054 # Extract the first word of "mkdir", so it can be a program name with args.
6055 set dummy mkdir; ac_word=$2
6056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058 if test "${ac_cv_path_MKDIR+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 case $MKDIR in
6062 [\\/]* | ?:[\\/]*)
6063 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6064 ;;
6065 *)
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077 done
6078 done
6079 IFS=$as_save_IFS
6081 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6082 ;;
6083 esac
6084 fi
6085 MKDIR=$ac_cv_path_MKDIR
6086 if test -n "$MKDIR"; then
6087 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6088 echo "${ECHO_T}$MKDIR" >&6; }
6089 else
6090 { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6092 fi
6095 # Extract the first word of "mv", so it can be a program name with args.
6096 set dummy mv; ac_word=$2
6097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6099 if test "${ac_cv_path_MV+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 case $MV in
6103 [\\/]* | ?:[\\/]*)
6104 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6105 ;;
6106 *)
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 break 2
6117 fi
6118 done
6119 done
6120 IFS=$as_save_IFS
6122 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6123 ;;
6124 esac
6125 fi
6126 MV=$ac_cv_path_MV
6127 if test -n "$MV"; then
6128 { echo "$as_me:$LINENO: result: $MV" >&5
6129 echo "${ECHO_T}$MV" >&6; }
6130 else
6131 { echo "$as_me:$LINENO: result: no" >&5
6132 echo "${ECHO_T}no" >&6; }
6133 fi
6136 if test -n "$ac_tool_prefix"; then
6137 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6138 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_prog_RANLIB+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144 if test -n "$RANLIB"; then
6145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
6157 fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6162 fi
6163 fi
6164 RANLIB=$ac_cv_prog_RANLIB
6165 if test -n "$RANLIB"; then
6166 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6167 echo "${ECHO_T}$RANLIB" >&6; }
6168 else
6169 { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6171 fi
6174 fi
6175 if test -z "$ac_cv_prog_RANLIB"; then
6176 ac_ct_RANLIB=$RANLIB
6177 # Extract the first word of "ranlib", so it can be a program name with args.
6178 set dummy ranlib; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184 if test -n "$ac_ct_RANLIB"; then
6185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6186 else
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6189 do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_prog_ac_ct_RANLIB="ranlib"
6195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 break 2
6197 fi
6198 done
6199 done
6200 IFS=$as_save_IFS
6202 fi
6203 fi
6204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6205 if test -n "$ac_ct_RANLIB"; then
6206 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6207 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6208 else
6209 { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6211 fi
6213 if test "x$ac_ct_RANLIB" = x; then
6214 RANLIB=":"
6215 else
6216 case $cross_compiling:$ac_tool_warned in
6217 yes:)
6218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6219 whose name does not start with the host triplet. If you think this
6220 configuration is useful to you, please write to autoconf@gnu.org." >&5
6221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6222 whose name does not start with the host triplet. If you think this
6223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6224 ac_tool_warned=yes ;;
6225 esac
6226 RANLIB=$ac_ct_RANLIB
6227 fi
6228 else
6229 RANLIB="$ac_cv_prog_RANLIB"
6230 fi
6232 if test -n "$ac_tool_prefix"; then
6233 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6234 set dummy ${ac_tool_prefix}ar; ac_word=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_prog_AR+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240 if test -n "$AR"; then
6241 ac_cv_prog_AR="$AR" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_AR="${ac_tool_prefix}ar"
6251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 break 2
6253 fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6258 fi
6259 fi
6260 AR=$ac_cv_prog_AR
6261 if test -n "$AR"; then
6262 { echo "$as_me:$LINENO: result: $AR" >&5
6263 echo "${ECHO_T}$AR" >&6; }
6264 else
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6267 fi
6270 fi
6271 if test -z "$ac_cv_prog_AR"; then
6272 ac_ct_AR=$AR
6273 # Extract the first word of "ar", so it can be a program name with args.
6274 set dummy ar; ac_word=$2
6275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6277 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280 if test -n "$ac_ct_AR"; then
6281 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_prog_ac_ct_AR="ar"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 break 2
6293 fi
6294 done
6295 done
6296 IFS=$as_save_IFS
6298 fi
6299 fi
6300 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6301 if test -n "$ac_ct_AR"; then
6302 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6303 echo "${ECHO_T}$ac_ct_AR" >&6; }
6304 else
6305 { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6307 fi
6309 if test "x$ac_ct_AR" = x; then
6310 AR="false"
6311 else
6312 case $cross_compiling:$ac_tool_warned in
6313 yes:)
6314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6315 whose name does not start with the host triplet. If you think this
6316 configuration is useful to you, please write to autoconf@gnu.org." >&5
6317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6318 whose name does not start with the host triplet. If you think this
6319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6320 ac_tool_warned=yes ;;
6321 esac
6322 AR=$ac_ct_AR
6323 fi
6324 else
6325 AR="$ac_cv_prog_AR"
6326 fi
6328 # Extract the first word of "rm", so it can be a program name with args.
6329 set dummy rm; ac_word=$2
6330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6332 if test "${ac_cv_path_RM+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 case $RM in
6336 [\\/]* | ?:[\\/]*)
6337 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6338 ;;
6339 *)
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 break 2
6350 fi
6351 done
6352 done
6353 IFS=$as_save_IFS
6355 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6356 ;;
6357 esac
6358 fi
6359 RM=$ac_cv_path_RM
6360 if test -n "$RM"; then
6361 { echo "$as_me:$LINENO: result: $RM" >&5
6362 echo "${ECHO_T}$RM" >&6; }
6363 else
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6366 fi
6369 # Extract the first word of "sed", so it can be a program name with args.
6370 set dummy sed; ac_word=$2
6371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6373 if test "${ac_cv_path_SED+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376 case $SED in
6377 [\\/]* | ?:[\\/]*)
6378 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6379 ;;
6380 *)
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6391 fi
6392 done
6393 done
6394 IFS=$as_save_IFS
6396 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6397 ;;
6398 esac
6399 fi
6400 SED=$ac_cv_path_SED
6401 if test -n "$SED"; then
6402 { echo "$as_me:$LINENO: result: $SED" >&5
6403 echo "${ECHO_T}$SED" >&6; }
6404 else
6405 { echo "$as_me:$LINENO: result: no" >&5
6406 echo "${ECHO_T}no" >&6; }
6407 fi
6410 # Extract the first word of "tar", so it can be a program name with args.
6411 set dummy tar; ac_word=$2
6412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414 if test "${ac_cv_path_TAR+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417 case $TAR in
6418 [\\/]* | ?:[\\/]*)
6419 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6420 ;;
6421 *)
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6432 fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6437 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6438 ;;
6439 esac
6440 fi
6441 TAR=$ac_cv_path_TAR
6442 if test -n "$TAR"; then
6443 { echo "$as_me:$LINENO: result: $TAR" >&5
6444 echo "${ECHO_T}$TAR" >&6; }
6445 else
6446 { echo "$as_me:$LINENO: result: no" >&5
6447 echo "${ECHO_T}no" >&6; }
6448 fi
6451 # Extract the first word of "pwd", so it can be a program name with args.
6452 set dummy pwd; ac_word=$2
6453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6455 if test "${ac_cv_path_BINPWD+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458 case $BINPWD in
6459 [\\/]* | ?:[\\/]*)
6460 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6461 ;;
6462 *)
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 break 2
6473 fi
6474 done
6475 done
6476 IFS=$as_save_IFS
6478 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6479 ;;
6480 esac
6481 fi
6482 BINPWD=$ac_cv_path_BINPWD
6483 if test -n "$BINPWD"; then
6484 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6485 echo "${ECHO_T}$BINPWD" >&6; }
6486 else
6487 { echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6; }
6489 fi
6493 # Extract the first word of "Graphviz", so it can be a program name with args.
6494 set dummy Graphviz; ac_word=$2
6495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6497 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 else
6500 case $GRAPHVIZ in
6501 [\\/]* | ?:[\\/]*)
6502 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6503 ;;
6504 *)
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6512 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516 done
6517 done
6518 IFS=$as_save_IFS
6520 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6521 ;;
6522 esac
6523 fi
6524 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6525 if test -n "$GRAPHVIZ"; then
6526 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6527 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6528 else
6529 { echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6; }
6531 fi
6534 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6536 cat >>confdefs.h <<\_ACEOF
6537 #define HAVE_GRAPHVIZ 1
6538 _ACEOF
6540 if test "$llvm_cv_os_type" = "MingW" ; then
6541 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6542 fi
6544 cat >>confdefs.h <<_ACEOF
6545 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6546 _ACEOF
6548 fi
6549 # Extract the first word of "dot", so it can be a program name with args.
6550 set dummy dot; ac_word=$2
6551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6553 if test "${ac_cv_path_DOT+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556 case $DOT in
6557 [\\/]* | ?:[\\/]*)
6558 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6559 ;;
6560 *)
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6568 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6571 fi
6572 done
6573 done
6574 IFS=$as_save_IFS
6576 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6577 ;;
6578 esac
6579 fi
6580 DOT=$ac_cv_path_DOT
6581 if test -n "$DOT"; then
6582 { echo "$as_me:$LINENO: result: $DOT" >&5
6583 echo "${ECHO_T}$DOT" >&6; }
6584 else
6585 { echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6; }
6587 fi
6590 if test "$DOT" != "echo dot" ; then
6592 cat >>confdefs.h <<\_ACEOF
6593 #define HAVE_DOT 1
6594 _ACEOF
6596 if test "$llvm_cv_os_type" = "MingW" ; then
6597 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6598 fi
6600 cat >>confdefs.h <<_ACEOF
6601 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6602 _ACEOF
6604 fi
6605 # Extract the first word of "fdp", so it can be a program name with args.
6606 set dummy fdp; ac_word=$2
6607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6609 if test "${ac_cv_path_FDP+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612 case $FDP in
6613 [\\/]* | ?:[\\/]*)
6614 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6615 ;;
6616 *)
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6627 fi
6628 done
6629 done
6630 IFS=$as_save_IFS
6632 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6633 ;;
6634 esac
6635 fi
6636 FDP=$ac_cv_path_FDP
6637 if test -n "$FDP"; then
6638 { echo "$as_me:$LINENO: result: $FDP" >&5
6639 echo "${ECHO_T}$FDP" >&6; }
6640 else
6641 { echo "$as_me:$LINENO: result: no" >&5
6642 echo "${ECHO_T}no" >&6; }
6643 fi
6646 if test "$FDP" != "echo fdp" ; then
6648 cat >>confdefs.h <<\_ACEOF
6649 #define HAVE_FDP 1
6650 _ACEOF
6652 if test "$llvm_cv_os_type" = "MingW" ; then
6653 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6654 fi
6656 cat >>confdefs.h <<_ACEOF
6657 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6658 _ACEOF
6660 fi
6661 # Extract the first word of "neato", so it can be a program name with args.
6662 set dummy neato; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_path_NEATO+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668 case $NEATO in
6669 [\\/]* | ?:[\\/]*)
6670 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6671 ;;
6672 *)
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6688 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6689 ;;
6690 esac
6691 fi
6692 NEATO=$ac_cv_path_NEATO
6693 if test -n "$NEATO"; then
6694 { echo "$as_me:$LINENO: result: $NEATO" >&5
6695 echo "${ECHO_T}$NEATO" >&6; }
6696 else
6697 { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6699 fi
6702 if test "$NEATO" != "echo neato" ; then
6704 cat >>confdefs.h <<\_ACEOF
6705 #define HAVE_NEATO 1
6706 _ACEOF
6708 if test "$llvm_cv_os_type" = "MingW" ; then
6709 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6710 fi
6712 cat >>confdefs.h <<_ACEOF
6713 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6714 _ACEOF
6716 fi
6717 # Extract the first word of "twopi", so it can be a program name with args.
6718 set dummy twopi; ac_word=$2
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721 if test "${ac_cv_path_TWOPI+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 case $TWOPI in
6725 [\\/]* | ?:[\\/]*)
6726 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6727 ;;
6728 *)
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6744 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6745 ;;
6746 esac
6747 fi
6748 TWOPI=$ac_cv_path_TWOPI
6749 if test -n "$TWOPI"; then
6750 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6751 echo "${ECHO_T}$TWOPI" >&6; }
6752 else
6753 { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6755 fi
6758 if test "$TWOPI" != "echo twopi" ; then
6760 cat >>confdefs.h <<\_ACEOF
6761 #define HAVE_TWOPI 1
6762 _ACEOF
6764 if test "$llvm_cv_os_type" = "MingW" ; then
6765 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6766 fi
6768 cat >>confdefs.h <<_ACEOF
6769 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6770 _ACEOF
6772 fi
6773 # Extract the first word of "circo", so it can be a program name with args.
6774 set dummy circo; ac_word=$2
6775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777 if test "${ac_cv_path_CIRCO+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 case $CIRCO in
6781 [\\/]* | ?:[\\/]*)
6782 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6783 ;;
6784 *)
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6795 fi
6796 done
6797 done
6798 IFS=$as_save_IFS
6800 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6801 ;;
6802 esac
6803 fi
6804 CIRCO=$ac_cv_path_CIRCO
6805 if test -n "$CIRCO"; then
6806 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6807 echo "${ECHO_T}$CIRCO" >&6; }
6808 else
6809 { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6811 fi
6814 if test "$CIRCO" != "echo circo" ; then
6816 cat >>confdefs.h <<\_ACEOF
6817 #define HAVE_CIRCO 1
6818 _ACEOF
6820 if test "$llvm_cv_os_type" = "MingW" ; then
6821 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6822 fi
6824 cat >>confdefs.h <<_ACEOF
6825 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6826 _ACEOF
6828 fi
6829 for ac_prog in gv gsview32
6830 do
6831 # Extract the first word of "$ac_prog", so it can be a program name with args.
6832 set dummy $ac_prog; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_GV+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838 case $GV in
6839 [\\/]* | ?:[\\/]*)
6840 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6841 ;;
6842 *)
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6858 ;;
6859 esac
6860 fi
6861 GV=$ac_cv_path_GV
6862 if test -n "$GV"; then
6863 { echo "$as_me:$LINENO: result: $GV" >&5
6864 echo "${ECHO_T}$GV" >&6; }
6865 else
6866 { echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6; }
6868 fi
6871 test -n "$GV" && break
6872 done
6873 test -n "$GV" || GV="echo gv"
6875 if test "$GV" != "echo gv" ; then
6877 cat >>confdefs.h <<\_ACEOF
6878 #define HAVE_GV 1
6879 _ACEOF
6881 if test "$llvm_cv_os_type" = "MingW" ; then
6882 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6883 fi
6885 cat >>confdefs.h <<_ACEOF
6886 #define LLVM_PATH_GV "$GV${EXEEXT}"
6887 _ACEOF
6889 fi
6890 # Extract the first word of "dotty", so it can be a program name with args.
6891 set dummy dotty; ac_word=$2
6892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6894 if test "${ac_cv_path_DOTTY+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 else
6897 case $DOTTY in
6898 [\\/]* | ?:[\\/]*)
6899 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6900 ;;
6901 *)
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6909 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6917 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6918 ;;
6919 esac
6920 fi
6921 DOTTY=$ac_cv_path_DOTTY
6922 if test -n "$DOTTY"; then
6923 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6924 echo "${ECHO_T}$DOTTY" >&6; }
6925 else
6926 { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6928 fi
6931 if test "$DOTTY" != "echo dotty" ; then
6933 cat >>confdefs.h <<\_ACEOF
6934 #define HAVE_DOTTY 1
6935 _ACEOF
6937 if test "$llvm_cv_os_type" = "MingW" ; then
6938 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6939 fi
6941 cat >>confdefs.h <<_ACEOF
6942 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6943 _ACEOF
6945 fi
6946 for ac_prog in xdot xdot.py
6947 do
6948 # Extract the first word of "$ac_prog", so it can be a program name with args.
6949 set dummy $ac_prog; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_path_XDOT+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 case $XDOT in
6956 [\\/]* | ?:[\\/]*)
6957 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6958 ;;
6959 *)
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971 done
6972 done
6973 IFS=$as_save_IFS
6975 ;;
6976 esac
6977 fi
6978 XDOT=$ac_cv_path_XDOT
6979 if test -n "$XDOT"; then
6980 { echo "$as_me:$LINENO: result: $XDOT" >&5
6981 echo "${ECHO_T}$XDOT" >&6; }
6982 else
6983 { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6985 fi
6988 test -n "$XDOT" && break
6989 done
6990 test -n "$XDOT" || XDOT="echo xdot"
6992 if test "$XDOT" != "echo xdot" ; then
6994 cat >>confdefs.h <<\_ACEOF
6995 #define HAVE_XDOT 1
6996 _ACEOF
6998 if test "$llvm_cv_os_type" = "MingW" ; then
6999 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7000 fi
7002 cat >>confdefs.h <<_ACEOF
7003 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7004 _ACEOF
7006 fi
7008 # Find a good install program. We prefer a C program (faster),
7009 # so one script is as good as another. But avoid the broken or
7010 # incompatible versions:
7011 # SysV /etc/install, /usr/sbin/install
7012 # SunOS /usr/etc/install
7013 # IRIX /sbin/install
7014 # AIX /bin/install
7015 # AmigaOS /C/install, which installs bootblocks on floppy discs
7016 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7017 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7018 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7019 # OS/2's system install, which has a completely different semantic
7020 # ./install, which can be erroneously created by make from ./install.sh.
7021 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7022 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7023 if test -z "$INSTALL"; then
7024 if test "${ac_cv_path_install+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
7032 # Account for people who put trailing slashes in PATH elements.
7033 case $as_dir/ in
7034 ./ | .// | /cC/* | \
7035 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7036 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7037 /usr/ucb/* ) ;;
7038 *)
7039 # OSF1 and SCO ODT 3.0 have their own names for install.
7040 # Don't use installbsd from OSF since it installs stuff as root
7041 # by default.
7042 for ac_prog in ginstall scoinst install; do
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7045 if test $ac_prog = install &&
7046 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7047 # AIX install. It has an incompatible calling convention.
7048 :
7049 elif test $ac_prog = install &&
7050 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7051 # program-specific install script used by HP pwplus--don't use.
7052 :
7053 else
7054 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7055 break 3
7056 fi
7057 fi
7058 done
7059 done
7060 ;;
7061 esac
7062 done
7063 IFS=$as_save_IFS
7066 fi
7067 if test "${ac_cv_path_install+set}" = set; then
7068 INSTALL=$ac_cv_path_install
7069 else
7070 # As a last resort, use the slow shell script. Don't cache a
7071 # value for INSTALL within a source directory, because that will
7072 # break other packages using the cache if that directory is
7073 # removed, or if the value is a relative name.
7074 INSTALL=$ac_install_sh
7075 fi
7076 fi
7077 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7078 echo "${ECHO_T}$INSTALL" >&6; }
7080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7081 # It thinks the first close brace ends the variable substitution.
7082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7088 case "$INSTALL" in
7089 [\\/$]* | ?:[\\/]* ) ;;
7090 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7091 esac
7093 # Extract the first word of "bzip2", so it can be a program name with args.
7094 set dummy bzip2; ac_word=$2
7095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097 if test "${ac_cv_path_BZIP2+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100 case $BZIP2 in
7101 [\\/]* | ?:[\\/]*)
7102 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7103 ;;
7104 *)
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116 done
7117 done
7118 IFS=$as_save_IFS
7120 ;;
7121 esac
7122 fi
7123 BZIP2=$ac_cv_path_BZIP2
7124 if test -n "$BZIP2"; then
7125 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7126 echo "${ECHO_T}$BZIP2" >&6; }
7127 else
7128 { echo "$as_me:$LINENO: result: no" >&5
7129 echo "${ECHO_T}no" >&6; }
7130 fi
7133 # Extract the first word of "cat", so it can be a program name with args.
7134 set dummy cat; ac_word=$2
7135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137 if test "${ac_cv_path_CAT+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140 case $CAT in
7141 [\\/]* | ?:[\\/]*)
7142 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7143 ;;
7144 *)
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156 done
7157 done
7158 IFS=$as_save_IFS
7160 ;;
7161 esac
7162 fi
7163 CAT=$ac_cv_path_CAT
7164 if test -n "$CAT"; then
7165 { echo "$as_me:$LINENO: result: $CAT" >&5
7166 echo "${ECHO_T}$CAT" >&6; }
7167 else
7168 { echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6; }
7170 fi
7173 # Extract the first word of "doxygen", so it can be a program name with args.
7174 set dummy doxygen; ac_word=$2
7175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180 case $DOXYGEN in
7181 [\\/]* | ?:[\\/]*)
7182 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7183 ;;
7184 *)
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7192 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 break 2
7195 fi
7196 done
7197 done
7198 IFS=$as_save_IFS
7200 ;;
7201 esac
7202 fi
7203 DOXYGEN=$ac_cv_path_DOXYGEN
7204 if test -n "$DOXYGEN"; then
7205 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7206 echo "${ECHO_T}$DOXYGEN" >&6; }
7207 else
7208 { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7210 fi
7213 # Extract the first word of "groff", so it can be a program name with args.
7214 set dummy groff; ac_word=$2
7215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217 if test "${ac_cv_path_GROFF+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220 case $GROFF in
7221 [\\/]* | ?:[\\/]*)
7222 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7223 ;;
7224 *)
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7227 do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 break 2
7235 fi
7236 done
7237 done
7238 IFS=$as_save_IFS
7240 ;;
7241 esac
7242 fi
7243 GROFF=$ac_cv_path_GROFF
7244 if test -n "$GROFF"; then
7245 { echo "$as_me:$LINENO: result: $GROFF" >&5
7246 echo "${ECHO_T}$GROFF" >&6; }
7247 else
7248 { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7250 fi
7253 # Extract the first word of "gzip", so it can be a program name with args.
7254 set dummy gzip; ac_word=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260 case $GZIPBIN in
7261 [\\/]* | ?:[\\/]*)
7262 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7263 ;;
7264 *)
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 break 2
7275 fi
7276 done
7277 done
7278 IFS=$as_save_IFS
7280 ;;
7281 esac
7282 fi
7283 GZIPBIN=$ac_cv_path_GZIPBIN
7284 if test -n "$GZIPBIN"; then
7285 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7286 echo "${ECHO_T}$GZIPBIN" >&6; }
7287 else
7288 { echo "$as_me:$LINENO: result: no" >&5
7289 echo "${ECHO_T}no" >&6; }
7290 fi
7293 # Extract the first word of "pdfroff", so it can be a program name with args.
7294 set dummy pdfroff; ac_word=$2
7295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297 if test "${ac_cv_path_PDFROFF+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300 case $PDFROFF in
7301 [\\/]* | ?:[\\/]*)
7302 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7303 ;;
7304 *)
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7307 do
7308 IFS=$as_save_IFS
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7312 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 break 2
7315 fi
7316 done
7317 done
7318 IFS=$as_save_IFS
7320 ;;
7321 esac
7322 fi
7323 PDFROFF=$ac_cv_path_PDFROFF
7324 if test -n "$PDFROFF"; then
7325 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7326 echo "${ECHO_T}$PDFROFF" >&6; }
7327 else
7328 { echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6; }
7330 fi
7333 # Extract the first word of "zip", so it can be a program name with args.
7334 set dummy zip; ac_word=$2
7335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337 if test "${ac_cv_path_ZIP+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 case $ZIP in
7341 [\\/]* | ?:[\\/]*)
7342 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7343 ;;
7344 *)
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356 done
7357 done
7358 IFS=$as_save_IFS
7360 ;;
7361 esac
7362 fi
7363 ZIP=$ac_cv_path_ZIP
7364 if test -n "$ZIP"; then
7365 { echo "$as_me:$LINENO: result: $ZIP" >&5
7366 echo "${ECHO_T}$ZIP" >&6; }
7367 else
7368 { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7370 fi
7373 for ac_prog in ocamlc
7374 do
7375 # Extract the first word of "$ac_prog", so it can be a program name with args.
7376 set dummy $ac_prog; ac_word=$2
7377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379 if test "${ac_cv_path_OCAMLC+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382 case $OCAMLC in
7383 [\\/]* | ?:[\\/]*)
7384 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7385 ;;
7386 *)
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398 done
7399 done
7400 IFS=$as_save_IFS
7402 ;;
7403 esac
7404 fi
7405 OCAMLC=$ac_cv_path_OCAMLC
7406 if test -n "$OCAMLC"; then
7407 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7408 echo "${ECHO_T}$OCAMLC" >&6; }
7409 else
7410 { echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6; }
7412 fi
7415 test -n "$OCAMLC" && break
7416 done
7418 for ac_prog in ocamlopt
7419 do
7420 # Extract the first word of "$ac_prog", so it can be a program name with args.
7421 set dummy $ac_prog; ac_word=$2
7422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7424 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427 case $OCAMLOPT in
7428 [\\/]* | ?:[\\/]*)
7429 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7430 ;;
7431 *)
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7434 do
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7439 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 break 2
7442 fi
7443 done
7444 done
7445 IFS=$as_save_IFS
7447 ;;
7448 esac
7449 fi
7450 OCAMLOPT=$ac_cv_path_OCAMLOPT
7451 if test -n "$OCAMLOPT"; then
7452 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7453 echo "${ECHO_T}$OCAMLOPT" >&6; }
7454 else
7455 { echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6; }
7457 fi
7460 test -n "$OCAMLOPT" && break
7461 done
7463 for ac_prog in ocamldep
7464 do
7465 # Extract the first word of "$ac_prog", so it can be a program name with args.
7466 set dummy $ac_prog; ac_word=$2
7467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7469 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472 case $OCAMLDEP in
7473 [\\/]* | ?:[\\/]*)
7474 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7475 ;;
7476 *)
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7484 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488 done
7489 done
7490 IFS=$as_save_IFS
7492 ;;
7493 esac
7494 fi
7495 OCAMLDEP=$ac_cv_path_OCAMLDEP
7496 if test -n "$OCAMLDEP"; then
7497 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7498 echo "${ECHO_T}$OCAMLDEP" >&6; }
7499 else
7500 { echo "$as_me:$LINENO: result: no" >&5
7501 echo "${ECHO_T}no" >&6; }
7502 fi
7505 test -n "$OCAMLDEP" && break
7506 done
7508 for ac_prog in ocamldoc
7509 do
7510 # Extract the first word of "$ac_prog", so it can be a program name with args.
7511 set dummy $ac_prog; ac_word=$2
7512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7514 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517 case $OCAMLDOC in
7518 [\\/]* | ?:[\\/]*)
7519 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7520 ;;
7521 *)
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533 done
7534 done
7535 IFS=$as_save_IFS
7537 ;;
7538 esac
7539 fi
7540 OCAMLDOC=$ac_cv_path_OCAMLDOC
7541 if test -n "$OCAMLDOC"; then
7542 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7543 echo "${ECHO_T}$OCAMLDOC" >&6; }
7544 else
7545 { echo "$as_me:$LINENO: result: no" >&5
7546 echo "${ECHO_T}no" >&6; }
7547 fi
7550 test -n "$OCAMLDOC" && break
7551 done
7553 for ac_prog in gas as
7554 do
7555 # Extract the first word of "$ac_prog", so it can be a program name with args.
7556 set dummy $ac_prog; ac_word=$2
7557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7559 if test "${ac_cv_path_GAS+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 case $GAS in
7563 [\\/]* | ?:[\\/]*)
7564 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7565 ;;
7566 *)
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7569 do
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7574 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7577 fi
7578 done
7579 done
7580 IFS=$as_save_IFS
7582 ;;
7583 esac
7584 fi
7585 GAS=$ac_cv_path_GAS
7586 if test -n "$GAS"; then
7587 { echo "$as_me:$LINENO: result: $GAS" >&5
7588 echo "${ECHO_T}$GAS" >&6; }
7589 else
7590 { echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6; }
7592 fi
7595 test -n "$GAS" && break
7596 done
7599 { echo "$as_me:$LINENO: checking for linker version" >&5
7600 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7601 if test "${llvm_cv_link_version+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7605 version_string="$(ld -v 2>&1 | head -1)"
7607 # Check for ld64.
7608 if (echo "$version_string" | grep -q "ld64"); then
7609 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7610 else
7611 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7612 fi
7614 fi
7615 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7616 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7618 cat >>confdefs.h <<_ACEOF
7619 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7620 _ACEOF
7625 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7626 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7627 if test "${llvm_cv_link_use_r+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630 ac_ext=c
7631 ac_cpp='$CPP $CPPFLAGS'
7632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7636 oldcflags="$CFLAGS"
7637 CFLAGS="$CFLAGS -Wl,-R."
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h. */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7645 int
7646 main ()
7647 {
7649 ;
7650 return 0;
7651 }
7652 _ACEOF
7653 rm -f conftest.$ac_objext conftest$ac_exeext
7654 if { (ac_try="$ac_link"
7655 case "(($ac_try" in
7656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7657 *) ac_try_echo=$ac_try;;
7658 esac
7659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7660 (eval "$ac_link") 2>conftest.er1
7661 ac_status=$?
7662 grep -v '^ *+' conftest.er1 >conftest.err
7663 rm -f conftest.er1
7664 cat conftest.err >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7668 { (case "(($ac_try" in
7669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670 *) ac_try_echo=$ac_try;;
7671 esac
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_try") 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; } &&
7677 { ac_try='test -s conftest$ac_exeext'
7678 { (case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7681 esac
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_try") 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7687 llvm_cv_link_use_r=yes
7688 else
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7692 llvm_cv_link_use_r=no
7693 fi
7695 rm -f core conftest.err conftest.$ac_objext \
7696 conftest$ac_exeext conftest.$ac_ext
7697 CFLAGS="$oldcflags"
7698 ac_ext=c
7699 ac_cpp='$CPP $CPPFLAGS'
7700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705 fi
7706 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7707 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7708 if test "$llvm_cv_link_use_r" = yes ; then
7710 cat >>confdefs.h <<\_ACEOF
7711 #define HAVE_LINK_R 1
7712 _ACEOF
7714 fi
7717 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7718 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7719 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722 ac_ext=c
7723 ac_cpp='$CPP $CPPFLAGS'
7724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7728 oldcflags="$CFLAGS"
7729 CFLAGS="$CFLAGS -rdynamic"
7730 cat >conftest.$ac_ext <<_ACEOF
7731 /* confdefs.h. */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7737 int
7738 main ()
7739 {
7741 ;
7742 return 0;
7743 }
7744 _ACEOF
7745 rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (ac_try="$ac_link"
7747 case "(($ac_try" in
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7750 esac
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_link") 2>conftest.er1
7753 ac_status=$?
7754 grep -v '^ *+' conftest.er1 >conftest.err
7755 rm -f conftest.er1
7756 cat conftest.err >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } &&
7759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7760 { (case "(($ac_try" in
7761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7763 esac
7764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7765 (eval "$ac_try") 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try='test -s conftest$ac_exeext'
7770 { (case "(($ac_try" in
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7773 esac
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775 (eval "$ac_try") 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 llvm_cv_link_use_export_dynamic=yes
7780 else
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7784 llvm_cv_link_use_export_dynamic=no
7785 fi
7787 rm -f core conftest.err conftest.$ac_objext \
7788 conftest$ac_exeext conftest.$ac_ext
7789 CFLAGS="$oldcflags"
7790 ac_ext=c
7791 ac_cpp='$CPP $CPPFLAGS'
7792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7797 fi
7798 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7799 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7800 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7802 cat >>confdefs.h <<\_ACEOF
7803 #define HAVE_LINK_EXPORT_DYNAMIC 1
7804 _ACEOF
7806 fi
7809 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7810 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7811 if test "${llvm_cv_link_use_version_script+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814 ac_ext=c
7815 ac_cpp='$CPP $CPPFLAGS'
7816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820 oldcflags="$CFLAGS"
7822 # The following code is from the autoconf manual,
7823 # "11.13: Limitations of Usual Tools".
7824 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7825 # Use mktemp if possible; otherwise fall back on mkdir,
7826 # with $RANDOM to make collisions less likely.
7827 : ${TMPDIR=/tmp}
7828 {
7829 tmp=`
7830 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7831 ` &&
7832 test -n "$tmp" && test -d "$tmp"
7833 } || {
7834 tmp=$TMPDIR/foo$$-$RANDOM
7835 (umask 077 && mkdir "$tmp")
7836 } || exit $?
7838 echo "{" > "$tmp/export.map"
7839 echo " global: main;" >> "$tmp/export.map"
7840 echo " local: *;" >> "$tmp/export.map"
7841 echo "};" >> "$tmp/export.map"
7843 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7844 cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h. */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7851 int
7852 main ()
7853 {
7855 ;
7856 return 0;
7857 }
7858 _ACEOF
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (ac_try="$ac_link"
7861 case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_link") 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7874 { (case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877 esac
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_try") 2>&5
7880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest$ac_exeext'
7884 { (case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_try") 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 llvm_cv_link_use_version_script=yes
7894 else
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 llvm_cv_link_use_version_script=no
7899 fi
7901 rm -f core conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
7903 rm "$tmp/export.map"
7904 rmdir "$tmp"
7905 CFLAGS="$oldcflags"
7906 ac_ext=c
7907 ac_cpp='$CPP $CPPFLAGS'
7908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913 fi
7914 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7915 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7916 if test "$llvm_cv_link_use_version_script" = yes ; then
7917 HAVE_LINK_VERSION_SCRIPT=1
7919 fi
7924 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7925 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7926 if test "${ac_cv_c_const+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929 cat >conftest.$ac_ext <<_ACEOF
7930 /* confdefs.h. */
7931 _ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7936 int
7937 main ()
7938 {
7939 /* FIXME: Include the comments suggested by Paul. */
7940 #ifndef __cplusplus
7941 /* Ultrix mips cc rejects this. */
7942 typedef int charset[2];
7943 const charset x;
7944 /* SunOS 4.1.1 cc rejects this. */
7945 char const *const *ccp;
7946 char **p;
7947 /* NEC SVR4.0.2 mips cc rejects this. */
7948 struct point {int x, y;};
7949 static struct point const zero = {0,0};
7950 /* AIX XL C 1.02.0.0 rejects this.
7951 It does not let you subtract one const X* pointer from another in
7952 an arm of an if-expression whose if-part is not a constant
7953 expression */
7954 const char *g = "string";
7955 ccp = &g + (g ? g-g : 0);
7956 /* HPUX 7.0 cc rejects these. */
7957 ++ccp;
7958 p = (char**) ccp;
7959 ccp = (char const *const *) p;
7960 { /* SCO 3.2v4 cc rejects this. */
7961 char *t;
7962 char const *s = 0 ? (char *) 0 : (char const *) 0;
7964 *t++ = 0;
7965 if (s) return 0;
7966 }
7967 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7968 int x[] = {25, 17};
7969 const int *foo = &x[0];
7970 ++foo;
7971 }
7972 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7973 typedef const int *iptr;
7974 iptr p = 0;
7975 ++p;
7976 }
7977 { /* AIX XL C 1.02.0.0 rejects this saying
7978 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7979 struct s { int j; const int *ap[3]; };
7980 struct s *b; b->j = 5;
7981 }
7982 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7983 const int foo = 10;
7984 if (!foo) return 0;
7985 }
7986 return !x[0] && !zero.x;
7987 #endif
7989 ;
7990 return 0;
7991 }
7992 _ACEOF
7993 rm -f conftest.$ac_objext
7994 if { (ac_try="$ac_compile"
7995 case "(($ac_try" in
7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7998 esac
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 (eval "$ac_compile") 2>conftest.er1
8001 ac_status=$?
8002 grep -v '^ *+' conftest.er1 >conftest.err
8003 rm -f conftest.er1
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8008 { (case "(($ac_try" in
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_try") 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; } &&
8017 { ac_try='test -s conftest.$ac_objext'
8018 { (case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021 esac
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_try") 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8027 ac_cv_c_const=yes
8028 else
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8032 ac_cv_c_const=no
8033 fi
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 fi
8037 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8038 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8039 if test $ac_cv_c_const = no; then
8041 cat >>confdefs.h <<\_ACEOF
8042 #define const
8043 _ACEOF
8045 fi
8048 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8049 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
8050 if test "${ac_cv_path_GREP+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053 # Extract the first word of "grep ggrep" to use in msg output
8054 if test -z "$GREP"; then
8055 set dummy grep ggrep; ac_prog_name=$2
8056 if test "${ac_cv_path_GREP+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059 ac_path_GREP_found=false
8060 # Loop through the user's path and test for each of PROGNAME-LIST
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8063 do
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_prog in grep ggrep; do
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8069 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
8070 # Check for GNU ac_path_GREP and select it if it is found.
8071 # Check for GNU $ac_path_GREP
8072 case `"$ac_path_GREP" --version 2>&1` in
8073 *GNU*)
8074 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8075 *)
8076 ac_count=0
8077 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8078 while :
8079 do
8080 cat "conftest.in" "conftest.in" >"conftest.tmp"
8081 mv "conftest.tmp" "conftest.in"
8082 cp "conftest.in" "conftest.nl"
8083 echo 'GREP' >> "conftest.nl"
8084 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8086 ac_count=`expr $ac_count + 1`
8087 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8088 # Best one so far, save it but keep looking for a better one
8089 ac_cv_path_GREP="$ac_path_GREP"
8090 ac_path_GREP_max=$ac_count
8091 fi
8092 # 10*(2^10) chars as input seems more than enough
8093 test $ac_count -gt 10 && break
8094 done
8095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8096 esac
8099 $ac_path_GREP_found && break 3
8100 done
8101 done
8103 done
8104 IFS=$as_save_IFS
8107 fi
8109 GREP="$ac_cv_path_GREP"
8110 if test -z "$GREP"; then
8111 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8112 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8113 { (exit 1); exit 1; }; }
8114 fi
8116 else
8117 ac_cv_path_GREP=$GREP
8118 fi
8121 fi
8122 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8123 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8124 GREP="$ac_cv_path_GREP"
8127 { echo "$as_me:$LINENO: checking for egrep" >&5
8128 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8129 if test "${ac_cv_path_EGREP+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8133 then ac_cv_path_EGREP="$GREP -E"
8134 else
8135 # Extract the first word of "egrep" to use in msg output
8136 if test -z "$EGREP"; then
8137 set dummy egrep; ac_prog_name=$2
8138 if test "${ac_cv_path_EGREP+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141 ac_path_EGREP_found=false
8142 # Loop through the user's path and test for each of PROGNAME-LIST
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8145 do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
8148 for ac_prog in egrep; do
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8151 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8152 # Check for GNU ac_path_EGREP and select it if it is found.
8153 # Check for GNU $ac_path_EGREP
8154 case `"$ac_path_EGREP" --version 2>&1` in
8155 *GNU*)
8156 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8157 *)
8158 ac_count=0
8159 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8160 while :
8161 do
8162 cat "conftest.in" "conftest.in" >"conftest.tmp"
8163 mv "conftest.tmp" "conftest.in"
8164 cp "conftest.in" "conftest.nl"
8165 echo 'EGREP' >> "conftest.nl"
8166 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8168 ac_count=`expr $ac_count + 1`
8169 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8170 # Best one so far, save it but keep looking for a better one
8171 ac_cv_path_EGREP="$ac_path_EGREP"
8172 ac_path_EGREP_max=$ac_count
8173 fi
8174 # 10*(2^10) chars as input seems more than enough
8175 test $ac_count -gt 10 && break
8176 done
8177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8178 esac
8181 $ac_path_EGREP_found && break 3
8182 done
8183 done
8185 done
8186 IFS=$as_save_IFS
8189 fi
8191 EGREP="$ac_cv_path_EGREP"
8192 if test -z "$EGREP"; then
8193 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8194 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8195 { (exit 1); exit 1; }; }
8196 fi
8198 else
8199 ac_cv_path_EGREP=$EGREP
8200 fi
8203 fi
8204 fi
8205 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8206 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8207 EGREP="$ac_cv_path_EGREP"
8210 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8211 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8212 if test "${ac_cv_header_stdc+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215 cat >conftest.$ac_ext <<_ACEOF
8216 /* confdefs.h. */
8217 _ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8221 #include <stdlib.h>
8222 #include <stdarg.h>
8223 #include <string.h>
8224 #include <float.h>
8226 int
8227 main ()
8228 {
8230 ;
8231 return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext
8235 if { (ac_try="$ac_compile"
8236 case "(($ac_try" in
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8239 esac
8240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241 (eval "$ac_compile") 2>conftest.er1
8242 ac_status=$?
8243 grep -v '^ *+' conftest.er1 >conftest.err
8244 rm -f conftest.er1
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
8248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8249 { (case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8252 esac
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_try") 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (case "(($ac_try" in
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8262 esac
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_try") 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 ac_cv_header_stdc=yes
8269 else
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8273 ac_cv_header_stdc=no
8274 fi
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278 if test $ac_cv_header_stdc = yes; then
8279 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8280 cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h. */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 #include <string.h>
8288 _ACEOF
8289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8290 $EGREP "memchr" >/dev/null 2>&1; then
8291 :
8292 else
8293 ac_cv_header_stdc=no
8294 fi
8295 rm -f conftest*
8297 fi
8299 if test $ac_cv_header_stdc = yes; then
8300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 #include <stdlib.h>
8309 _ACEOF
8310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8311 $EGREP "free" >/dev/null 2>&1; then
8312 :
8313 else
8314 ac_cv_header_stdc=no
8315 fi
8316 rm -f conftest*
8318 fi
8320 if test $ac_cv_header_stdc = yes; then
8321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8322 if test "$cross_compiling" = yes; then
8323 :
8324 else
8325 cat >conftest.$ac_ext <<_ACEOF
8326 /* confdefs.h. */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8331 #include <ctype.h>
8332 #include <stdlib.h>
8333 #if ((' ' & 0x0FF) == 0x020)
8334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8336 #else
8337 # define ISLOWER(c) \
8338 (('a' <= (c) && (c) <= 'i') \
8339 || ('j' <= (c) && (c) <= 'r') \
8340 || ('s' <= (c) && (c) <= 'z'))
8341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8342 #endif
8344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8345 int
8346 main ()
8347 {
8348 int i;
8349 for (i = 0; i < 256; i++)
8350 if (XOR (islower (i), ISLOWER (i))
8351 || toupper (i) != TOUPPER (i))
8352 return 2;
8353 return 0;
8354 }
8355 _ACEOF
8356 rm -f conftest$ac_exeext
8357 if { (ac_try="$ac_link"
8358 case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_link") 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8367 { (case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8370 esac
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_try") 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 :
8377 else
8378 echo "$as_me: program exited with status $ac_status" >&5
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ( exit $ac_status )
8383 ac_cv_header_stdc=no
8384 fi
8385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8386 fi
8389 fi
8390 fi
8391 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8392 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8393 if test $ac_cv_header_stdc = yes; then
8395 cat >>confdefs.h <<\_ACEOF
8396 #define STDC_HEADERS 1
8397 _ACEOF
8399 fi
8406 ac_header_dirent=no
8407 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8408 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8409 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8410 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414 cat >conftest.$ac_ext <<_ACEOF
8415 /* confdefs.h. */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8420 #include <sys/types.h>
8421 #include <$ac_hdr>
8423 int
8424 main ()
8425 {
8426 if ((DIR *) 0)
8427 return 0;
8428 ;
8429 return 0;
8430 }
8431 _ACEOF
8432 rm -f conftest.$ac_objext
8433 if { (ac_try="$ac_compile"
8434 case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8437 esac
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_compile") 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8447 { (case "(($ac_try" in
8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8450 esac
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_try") 2>&5
8453 ac_status=$?
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; } &&
8456 { ac_try='test -s conftest.$ac_objext'
8457 { (case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8460 esac
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_try") 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 eval "$as_ac_Header=yes"
8467 else
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8471 eval "$as_ac_Header=no"
8472 fi
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 fi
8476 ac_res=`eval echo '${'$as_ac_Header'}'`
8477 { echo "$as_me:$LINENO: result: $ac_res" >&5
8478 echo "${ECHO_T}$ac_res" >&6; }
8479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8480 cat >>confdefs.h <<_ACEOF
8481 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8482 _ACEOF
8484 ac_header_dirent=$ac_hdr; break
8485 fi
8487 done
8488 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8489 if test $ac_header_dirent = dirent.h; then
8490 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8491 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8492 if test "${ac_cv_search_opendir+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495 ac_func_search_save_LIBS=$LIBS
8496 cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h. */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8503 /* Override any GCC internal prototype to avoid an error.
8504 Use char because int might match the return type of a GCC
8505 builtin and then its argument prototype would still apply. */
8506 #ifdef __cplusplus
8507 extern "C"
8508 #endif
8509 char opendir ();
8510 int
8511 main ()
8512 {
8513 return opendir ();
8514 ;
8515 return 0;
8516 }
8517 _ACEOF
8518 for ac_lib in '' dir; do
8519 if test -z "$ac_lib"; then
8520 ac_res="none required"
8521 else
8522 ac_res=-l$ac_lib
8523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8524 fi
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (ac_try="$ac_link"
8527 case "(($ac_try" in
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8530 esac
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_link") 2>conftest.er1
8533 ac_status=$?
8534 grep -v '^ *+' conftest.er1 >conftest.err
8535 rm -f conftest.er1
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8540 { (case "(($ac_try" in
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8543 esac
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545 (eval "$ac_try") 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; } &&
8549 { ac_try='test -s conftest$ac_exeext'
8550 { (case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8553 esac
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_try") 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8559 ac_cv_search_opendir=$ac_res
8560 else
8561 echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8565 fi
8567 rm -f core conftest.err conftest.$ac_objext \
8568 conftest$ac_exeext
8569 if test "${ac_cv_search_opendir+set}" = set; then
8570 break
8571 fi
8572 done
8573 if test "${ac_cv_search_opendir+set}" = set; then
8574 :
8575 else
8576 ac_cv_search_opendir=no
8577 fi
8578 rm conftest.$ac_ext
8579 LIBS=$ac_func_search_save_LIBS
8580 fi
8581 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8582 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8583 ac_res=$ac_cv_search_opendir
8584 if test "$ac_res" != no; then
8585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8587 fi
8589 else
8590 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8591 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8592 if test "${ac_cv_search_opendir+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595 ac_func_search_save_LIBS=$LIBS
8596 cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h. */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8603 /* Override any GCC internal prototype to avoid an error.
8604 Use char because int might match the return type of a GCC
8605 builtin and then its argument prototype would still apply. */
8606 #ifdef __cplusplus
8607 extern "C"
8608 #endif
8609 char opendir ();
8610 int
8611 main ()
8612 {
8613 return opendir ();
8614 ;
8615 return 0;
8616 }
8617 _ACEOF
8618 for ac_lib in '' x; do
8619 if test -z "$ac_lib"; then
8620 ac_res="none required"
8621 else
8622 ac_res=-l$ac_lib
8623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8624 fi
8625 rm -f conftest.$ac_objext conftest$ac_exeext
8626 if { (ac_try="$ac_link"
8627 case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8630 esac
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_link") 2>conftest.er1
8633 ac_status=$?
8634 grep -v '^ *+' conftest.er1 >conftest.err
8635 rm -f conftest.er1
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8640 { (case "(($ac_try" in
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8643 esac
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645 (eval "$ac_try") 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; } &&
8649 { ac_try='test -s conftest$ac_exeext'
8650 { (case "(($ac_try" in
8651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652 *) ac_try_echo=$ac_try;;
8653 esac
8654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655 (eval "$ac_try") 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_cv_search_opendir=$ac_res
8660 else
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8665 fi
8667 rm -f core conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext
8669 if test "${ac_cv_search_opendir+set}" = set; then
8670 break
8671 fi
8672 done
8673 if test "${ac_cv_search_opendir+set}" = set; then
8674 :
8675 else
8676 ac_cv_search_opendir=no
8677 fi
8678 rm conftest.$ac_ext
8679 LIBS=$ac_func_search_save_LIBS
8680 fi
8681 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8682 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8683 ac_res=$ac_cv_search_opendir
8684 if test "$ac_res" != no; then
8685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8687 fi
8689 fi
8691 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8701 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8702 inttypes.h stdint.h unistd.h
8703 do
8704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 else
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h. */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 $ac_includes_default
8718 #include <$ac_header>
8719 _ACEOF
8720 rm -f conftest.$ac_objext
8721 if { (ac_try="$ac_compile"
8722 case "(($ac_try" in
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8725 esac
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_compile") 2>conftest.er1
8728 ac_status=$?
8729 grep -v '^ *+' conftest.er1 >conftest.err
8730 rm -f conftest.er1
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8735 { (case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8738 esac
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_try") 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; } &&
8744 { ac_try='test -s conftest.$ac_objext'
8745 { (case "(($ac_try" in
8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747 *) ac_try_echo=$ac_try;;
8748 esac
8749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750 (eval "$ac_try") 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8754 eval "$as_ac_Header=yes"
8755 else
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8759 eval "$as_ac_Header=no"
8760 fi
8762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763 fi
8764 ac_res=`eval echo '${'$as_ac_Header'}'`
8765 { echo "$as_me:$LINENO: result: $ac_res" >&5
8766 echo "${ECHO_T}$ac_res" >&6; }
8767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8768 cat >>confdefs.h <<_ACEOF
8769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8770 _ACEOF
8772 fi
8774 done
8778 for ac_header in dlfcn.h
8779 do
8780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 fi
8787 ac_res=`eval echo '${'$as_ac_Header'}'`
8788 { echo "$as_me:$LINENO: result: $ac_res" >&5
8789 echo "${ECHO_T}$ac_res" >&6; }
8790 else
8791 # Is the header compilable?
8792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h. */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 $ac_includes_default
8801 #include <$ac_header>
8802 _ACEOF
8803 rm -f conftest.$ac_objext
8804 if { (ac_try="$ac_compile"
8805 case "(($ac_try" in
8806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807 *) ac_try_echo=$ac_try;;
8808 esac
8809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8810 (eval "$ac_compile") 2>conftest.er1
8811 ac_status=$?
8812 grep -v '^ *+' conftest.er1 >conftest.err
8813 rm -f conftest.er1
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } &&
8817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8818 { (case "(($ac_try" in
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8821 esac
8822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823 (eval "$ac_try") 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; } &&
8827 { ac_try='test -s conftest.$ac_objext'
8828 { (case "(($ac_try" in
8829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830 *) ac_try_echo=$ac_try;;
8831 esac
8832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833 (eval "$ac_try") 2>&5
8834 ac_status=$?
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8837 ac_header_compiler=yes
8838 else
8839 echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8842 ac_header_compiler=no
8843 fi
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8847 echo "${ECHO_T}$ac_header_compiler" >&6; }
8849 # Is the header present?
8850 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8852 cat >conftest.$ac_ext <<_ACEOF
8853 /* confdefs.h. */
8854 _ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858 #include <$ac_header>
8859 _ACEOF
8860 if { (ac_try="$ac_cpp conftest.$ac_ext"
8861 case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864 esac
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8867 ac_status=$?
8868 grep -v '^ *+' conftest.er1 >conftest.err
8869 rm -f conftest.er1
8870 cat conftest.err >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } >/dev/null; then
8873 if test -s conftest.err; then
8874 ac_cpp_err=$ac_c_preproc_warn_flag
8875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8876 else
8877 ac_cpp_err=
8878 fi
8879 else
8880 ac_cpp_err=yes
8881 fi
8882 if test -z "$ac_cpp_err"; then
8883 ac_header_preproc=yes
8884 else
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8888 ac_header_preproc=no
8889 fi
8891 rm -f conftest.err conftest.$ac_ext
8892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8893 echo "${ECHO_T}$ac_header_preproc" >&6; }
8895 # So? What about this header?
8896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8897 yes:no: )
8898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8902 ac_header_preproc=yes
8903 ;;
8904 no:yes:* )
8905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8917 ( cat <<\_ASBOX
8918 ## ------------------------------------ ##
8919 ## Report this to http://llvm.org/bugs/ ##
8920 ## ------------------------------------ ##
8921 _ASBOX
8922 ) | sed "s/^/$as_me: WARNING: /" >&2
8923 ;;
8924 esac
8925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930 eval "$as_ac_Header=\$ac_header_preproc"
8931 fi
8932 ac_res=`eval echo '${'$as_ac_Header'}'`
8933 { echo "$as_me:$LINENO: result: $ac_res" >&5
8934 echo "${ECHO_T}$ac_res" >&6; }
8936 fi
8937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8938 cat >>confdefs.h <<_ACEOF
8939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8940 _ACEOF
8942 fi
8944 done
8946 # Check whether --enable-ltdl-install was given.
8947 if test "${enable_ltdl_install+set}" = set; then
8948 enableval=$enable_ltdl_install;
8949 fi
8954 if test x"${enable_ltdl_install-no}" != xno; then
8955 INSTALL_LTDL_TRUE=
8956 INSTALL_LTDL_FALSE='#'
8957 else
8958 INSTALL_LTDL_TRUE='#'
8959 INSTALL_LTDL_FALSE=
8960 fi
8964 if test x"${enable_ltdl_convenience-no}" != xno; then
8965 CONVENIENCE_LTDL_TRUE=
8966 CONVENIENCE_LTDL_FALSE='#'
8967 else
8968 CONVENIENCE_LTDL_TRUE='#'
8969 CONVENIENCE_LTDL_FALSE=
8970 fi
8973 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8974 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8975 library_names_spec=
8976 libname_spec='lib$name'
8977 soname_spec=
8978 shrext_cmds=".so"
8979 postinstall_cmds=
8980 postuninstall_cmds=
8981 finish_cmds=
8982 finish_eval=
8983 shlibpath_var=
8984 shlibpath_overrides_runpath=unknown
8985 version_type=none
8986 dynamic_linker="$host_os ld.so"
8987 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8988 if test "$GCC" = yes; then
8989 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8990 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8991 # if the path contains ";" then we assume it to be the separator
8992 # otherwise default to the standard path separator (i.e. ":") - it is
8993 # assumed that no part of a normal pathname contains ";" but that should
8994 # okay in the real world where ";" in dirpaths is itself problematic.
8995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8996 else
8997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8998 fi
8999 else
9000 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9001 fi
9002 need_lib_prefix=unknown
9003 hardcode_into_libs=no
9005 # when you set need_version to no, make sure it does not cause -set_version
9006 # flags to be left without arguments
9007 need_version=unknown
9009 case $host_os in
9010 aix3*)
9011 version_type=linux
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9013 shlibpath_var=LIBPATH
9015 # AIX 3 has no versioning support, so we append a major version to the name.
9016 soname_spec='${libname}${release}${shared_ext}$major'
9017 ;;
9019 aix4* | aix5*)
9020 version_type=linux
9021 need_lib_prefix=no
9022 need_version=no
9023 hardcode_into_libs=yes
9024 if test "$host_cpu" = ia64; then
9025 # AIX 5 supports IA64
9026 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 else
9029 # With GCC up to 2.95.x, collect2 would create an import file
9030 # for dependence libraries. The import file would start with
9031 # the line `#! .'. This would cause the generated library to
9032 # depend on `.', always an invalid library. This was fixed in
9033 # development snapshots of GCC prior to 3.0.
9034 case $host_os in
9035 aix4 | aix4.[01] | aix4.[01].*)
9036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9037 echo ' yes '
9038 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9039 :
9040 else
9041 can_build_shared=no
9042 fi
9043 ;;
9044 esac
9045 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9046 # soname into executable. Probably we can add versioning support to
9047 # collect2, so additional links can be useful in future.
9048 if test "$aix_use_runtimelinking" = yes; then
9049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9050 # instead of lib<name>.a to let people know that these are not
9051 # typical AIX shared libraries.
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9053 else
9054 # We preserve .a as extension for shared libraries through AIX4.2
9055 # and later when we are not doing run time linking.
9056 library_names_spec='${libname}${release}.a $libname.a'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 fi
9059 shlibpath_var=LIBPATH
9060 fi
9061 ;;
9063 amigaos*)
9064 library_names_spec='$libname.ixlibrary $libname.a'
9065 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9066 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'
9067 ;;
9069 beos*)
9070 library_names_spec='${libname}${shared_ext}'
9071 dynamic_linker="$host_os ld.so"
9072 shlibpath_var=LIBRARY_PATH
9073 ;;
9075 bsdi[45]*)
9076 version_type=linux
9077 need_version=no
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9084 # the default ld.so.conf also contains /usr/contrib/lib and
9085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9086 # libtool to hard-code these into programs
9087 ;;
9089 cygwin* | mingw* | pw32*)
9090 version_type=windows
9091 shrext_cmds=".dll"
9092 need_version=no
9093 need_lib_prefix=no
9095 case $GCC,$host_os in
9096 yes,cygwin* | yes,mingw* | yes,pw32*)
9097 library_names_spec='$libname.dll.a'
9098 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9099 postinstall_cmds='base_file=`basename \${file}`~
9100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9101 dldir=$destdir/`dirname \$dlpath`~
9102 test -d \$dldir || mkdir -p \$dldir~
9103 $install_prog $dir/$dlname \$dldir/$dlname~
9104 chmod a+x \$dldir/$dlname'
9105 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9106 dlpath=$dir/\$dldll~
9107 $rm \$dlpath'
9108 shlibpath_overrides_runpath=yes
9110 case $host_os in
9111 cygwin*)
9112 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9113 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9114 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9115 ;;
9116 mingw*)
9117 # MinGW DLLs use traditional 'lib' prefix
9118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9120 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9121 # It is most probably a Windows format PATH printed by
9122 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9123 # path with ; separators, and with drive letters. We can handle the
9124 # drive letters (cygwin fileutils understands them), so leave them,
9125 # especially as we might pass files found there to a mingw objdump,
9126 # which wouldn't understand a cygwinified path. Ahh.
9127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9128 else
9129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9130 fi
9131 ;;
9132 pw32*)
9133 # pw32 DLLs use 'pw' prefix rather than 'lib'
9134 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9135 ;;
9136 esac
9137 ;;
9139 *)
9140 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9141 ;;
9142 esac
9143 dynamic_linker='Win32 ld.exe'
9144 # FIXME: first we should search . and the directory the executable is in
9145 shlibpath_var=PATH
9146 ;;
9148 darwin* | rhapsody*)
9149 dynamic_linker="$host_os dyld"
9150 version_type=darwin
9151 need_lib_prefix=no
9152 need_version=no
9153 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9154 soname_spec='${libname}${release}${major}$shared_ext'
9155 shlibpath_overrides_runpath=yes
9156 shlibpath_var=DYLD_LIBRARY_PATH
9157 shrext_cmds='.dylib'
9158 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9159 if test "$GCC" = yes; then
9160 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"`
9161 else
9162 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9163 fi
9164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9165 ;;
9167 dgux*)
9168 version_type=linux
9169 need_lib_prefix=no
9170 need_version=no
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 ;;
9176 freebsd1.*)
9177 dynamic_linker=no
9178 ;;
9180 kfreebsd*-gnu)
9181 version_type=linux
9182 need_lib_prefix=no
9183 need_version=no
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 shlibpath_var=LD_LIBRARY_PATH
9187 shlibpath_overrides_runpath=no
9188 hardcode_into_libs=yes
9189 dynamic_linker='GNU ld.so'
9190 ;;
9192 freebsd* | dragonfly*)
9193 # DragonFly does not have aout. When/if they implement a new
9194 # versioning mechanism, adjust this.
9195 if test -x /usr/bin/objformat; then
9196 objformat=`/usr/bin/objformat`
9197 else
9198 case $host_os in
9199 freebsd[123].*) objformat=aout ;;
9200 *) objformat=elf ;;
9201 esac
9202 fi
9203 version_type=freebsd-$objformat
9204 case $version_type in
9205 freebsd-elf*)
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9207 need_version=no
9208 need_lib_prefix=no
9209 ;;
9210 freebsd-*)
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9212 need_version=yes
9213 ;;
9214 esac
9215 shlibpath_var=LD_LIBRARY_PATH
9216 case $host_os in
9217 freebsd2.*)
9218 shlibpath_overrides_runpath=yes
9219 ;;
9220 freebsd3.[01]* | freebsdelf3.[01]*)
9221 shlibpath_overrides_runpath=yes
9222 hardcode_into_libs=yes
9223 ;;
9224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9226 shlibpath_overrides_runpath=no
9227 hardcode_into_libs=yes
9228 ;;
9229 freebsd*) # from 4.6 on
9230 shlibpath_overrides_runpath=yes
9231 hardcode_into_libs=yes
9232 ;;
9233 esac
9234 ;;
9236 gnu*)
9237 version_type=linux
9238 need_lib_prefix=no
9239 need_version=no
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9241 soname_spec='${libname}${release}${shared_ext}$major'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 hardcode_into_libs=yes
9244 ;;
9246 hpux9* | hpux10* | hpux11*)
9247 # Give a soname corresponding to the major version so that dld.sl refuses to
9248 # link against other versions.
9249 version_type=sunos
9250 need_lib_prefix=no
9251 need_version=no
9252 case $host_cpu in
9253 ia64*)
9254 shrext_cmds='.so'
9255 hardcode_into_libs=yes
9256 dynamic_linker="$host_os dld.so"
9257 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 if test "X$HPUX_IA64_MODE" = X32; then
9262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9263 else
9264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9265 fi
9266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9267 ;;
9268 hppa*64*)
9269 shrext_cmds='.sl'
9270 hardcode_into_libs=yes
9271 dynamic_linker="$host_os dld.sl"
9272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9278 ;;
9279 *)
9280 shrext_cmds='.sl'
9281 dynamic_linker="$host_os dld.sl"
9282 shlibpath_var=SHLIB_PATH
9283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9286 ;;
9287 esac
9288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9289 postinstall_cmds='chmod 555 $lib'
9290 ;;
9292 interix3*)
9293 version_type=linux
9294 need_lib_prefix=no
9295 need_version=no
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9297 soname_spec='${libname}${release}${shared_ext}$major'
9298 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath=no
9301 hardcode_into_libs=yes
9302 ;;
9304 irix5* | irix6* | nonstopux*)
9305 case $host_os in
9306 nonstopux*) version_type=nonstopux ;;
9307 *)
9308 if test "$lt_cv_prog_gnu_ld" = yes; then
9309 version_type=linux
9310 else
9311 version_type=irix
9312 fi ;;
9313 esac
9314 need_lib_prefix=no
9315 need_version=no
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9318 case $host_os in
9319 irix5* | nonstopux*)
9320 libsuff= shlibsuff=
9321 ;;
9322 *)
9323 case $LD in # libtool.m4 will add one of these switches to LD
9324 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9325 libsuff= shlibsuff= libmagic=32-bit;;
9326 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9327 libsuff=32 shlibsuff=N32 libmagic=N32;;
9328 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9329 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9330 *) libsuff= shlibsuff= libmagic=never-match;;
9331 esac
9332 ;;
9333 esac
9334 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9335 shlibpath_overrides_runpath=no
9336 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9337 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9338 hardcode_into_libs=yes
9339 ;;
9341 # No shared lib support for Linux oldld, aout, or coff.
9342 linux*oldld* | linux*aout* | linux*coff*)
9343 dynamic_linker=no
9344 ;;
9346 # This must be Linux ELF.
9347 linux*)
9348 version_type=linux
9349 need_lib_prefix=no
9350 need_version=no
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9354 shlibpath_var=LD_LIBRARY_PATH
9355 shlibpath_overrides_runpath=no
9356 # This implies no fast_install, which is unacceptable.
9357 # Some rework will be needed to allow for fast_install
9358 # before this can be enabled.
9359 hardcode_into_libs=yes
9361 # Append ld.so.conf contents to the search path
9362 if test -f /etc/ld.so.conf; then
9363 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' ' '`
9364 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9365 fi
9367 # We used to test for /lib/ld.so.1 and disable shared libraries on
9368 # powerpc, because MkLinux only supported shared libraries with the
9369 # GNU dynamic linker. Since this was broken with cross compilers,
9370 # most powerpc-linux boxes support dynamic linking these days and
9371 # people can always --disable-shared, the test was removed, and we
9372 # assume the GNU/Linux dynamic linker is in use.
9373 dynamic_linker='GNU/Linux ld.so'
9374 ;;
9376 knetbsd*-gnu)
9377 version_type=linux
9378 need_lib_prefix=no
9379 need_version=no
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 shlibpath_overrides_runpath=no
9384 hardcode_into_libs=yes
9385 dynamic_linker='GNU ld.so'
9386 ;;
9388 netbsd*)
9389 version_type=sunos
9390 need_lib_prefix=no
9391 need_version=no
9392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9395 dynamic_linker='NetBSD (a.out) ld.so'
9396 else
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9398 soname_spec='${libname}${release}${shared_ext}$major'
9399 dynamic_linker='NetBSD ld.elf_so'
9400 fi
9401 shlibpath_var=LD_LIBRARY_PATH
9402 shlibpath_overrides_runpath=yes
9403 hardcode_into_libs=yes
9404 ;;
9406 newsos6)
9407 version_type=linux
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 shlibpath_overrides_runpath=yes
9411 ;;
9413 nto-qnx*)
9414 version_type=linux
9415 need_lib_prefix=no
9416 need_version=no
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9418 soname_spec='${libname}${release}${shared_ext}$major'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 shlibpath_overrides_runpath=yes
9421 ;;
9423 openbsd* | bitrig*)
9424 version_type=sunos
9425 sys_lib_dlsearch_path_spec="/usr/lib"
9426 need_lib_prefix=no
9427 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9428 case $host_os in
9429 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9430 *) need_version=no ;;
9431 esac
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9434 shlibpath_var=LD_LIBRARY_PATH
9435 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9436 case $host_os in
9437 openbsd2.[89] | openbsd2.[89].*)
9438 shlibpath_overrides_runpath=no
9439 ;;
9440 *)
9441 shlibpath_overrides_runpath=yes
9442 ;;
9443 esac
9444 else
9445 shlibpath_overrides_runpath=yes
9446 fi
9447 ;;
9449 os2*)
9450 libname_spec='$name'
9451 shrext_cmds=".dll"
9452 need_lib_prefix=no
9453 library_names_spec='$libname${shared_ext} $libname.a'
9454 dynamic_linker='OS/2 ld.exe'
9455 shlibpath_var=LIBPATH
9456 ;;
9458 osf3* | osf4* | osf5*)
9459 version_type=osf
9460 need_lib_prefix=no
9461 need_version=no
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 shlibpath_var=LD_LIBRARY_PATH
9465 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9466 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9467 ;;
9469 solaris*)
9470 version_type=linux
9471 need_lib_prefix=no
9472 need_version=no
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 shlibpath_var=LD_LIBRARY_PATH
9476 shlibpath_overrides_runpath=yes
9477 hardcode_into_libs=yes
9478 # ldd complains unless libraries are executable
9479 postinstall_cmds='chmod +x $lib'
9480 ;;
9482 sunos4*)
9483 version_type=sunos
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9485 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 shlibpath_overrides_runpath=yes
9488 if test "$with_gnu_ld" = yes; then
9489 need_lib_prefix=no
9490 fi
9491 need_version=yes
9492 ;;
9494 sysv4 | sysv4.3*)
9495 version_type=linux
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9497 soname_spec='${libname}${release}${shared_ext}$major'
9498 shlibpath_var=LD_LIBRARY_PATH
9499 case $host_vendor in
9500 sni)
9501 shlibpath_overrides_runpath=no
9502 need_lib_prefix=no
9503 export_dynamic_flag_spec='${wl}-Blargedynsym'
9504 runpath_var=LD_RUN_PATH
9505 ;;
9506 siemens)
9507 need_lib_prefix=no
9508 ;;
9509 motorola)
9510 need_lib_prefix=no
9511 need_version=no
9512 shlibpath_overrides_runpath=no
9513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9514 ;;
9515 esac
9516 ;;
9518 sysv4*MP*)
9519 if test -d /usr/nec ;then
9520 version_type=linux
9521 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9522 soname_spec='$libname${shared_ext}.$major'
9523 shlibpath_var=LD_LIBRARY_PATH
9524 fi
9525 ;;
9527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9528 version_type=freebsd-elf
9529 need_lib_prefix=no
9530 need_version=no
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 shlibpath_var=LD_LIBRARY_PATH
9534 hardcode_into_libs=yes
9535 if test "$with_gnu_ld" = yes; then
9536 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9537 shlibpath_overrides_runpath=no
9538 else
9539 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9540 shlibpath_overrides_runpath=yes
9541 case $host_os in
9542 sco3.2v5*)
9543 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9544 ;;
9545 esac
9546 fi
9547 sys_lib_dlsearch_path_spec='/usr/lib'
9548 ;;
9550 uts4*)
9551 version_type=linux
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 soname_spec='${libname}${release}${shared_ext}$major'
9554 shlibpath_var=LD_LIBRARY_PATH
9555 ;;
9557 *)
9558 dynamic_linker=no
9559 ;;
9560 esac
9561 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9562 echo "${ECHO_T}$dynamic_linker" >&6; }
9563 test "$dynamic_linker" = no && can_build_shared=no
9565 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9566 if test "$GCC" = yes; then
9567 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9568 fi
9571 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9572 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9573 if test "${libltdl_cv_shlibext+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9577 module=yes
9578 eval libltdl_cv_shlibext=$shrext_cmds
9580 fi
9581 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9582 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9583 if test -n "$libltdl_cv_shlibext"; then
9585 cat >>confdefs.h <<_ACEOF
9586 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9587 _ACEOF
9589 fi
9592 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9593 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9594 if test "${libltdl_cv_sys_search_path+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9598 fi
9599 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9600 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9601 if test -n "$libltdl_cv_sys_search_path"; then
9602 sys_search_path=
9603 for dir in $libltdl_cv_sys_search_path; do
9604 if test -z "$sys_search_path"; then
9605 sys_search_path="$dir"
9606 else
9607 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9608 fi
9609 done
9611 cat >>confdefs.h <<_ACEOF
9612 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9613 _ACEOF
9615 fi
9617 { echo "$as_me:$LINENO: checking for objdir" >&5
9618 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9619 if test "${libltdl_cv_objdir+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622 libltdl_cv_objdir="$objdir"
9623 if test -n "$objdir"; then
9624 :
9625 else
9626 rm -f .libs 2>/dev/null
9627 mkdir .libs 2>/dev/null
9628 if test -d .libs; then
9629 libltdl_cv_objdir=.libs
9630 else
9631 # MS-DOS does not allow filenames that begin with a dot.
9632 libltdl_cv_objdir=_libs
9633 fi
9634 rmdir .libs 2>/dev/null
9635 fi
9637 fi
9638 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9639 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9641 cat >>confdefs.h <<_ACEOF
9642 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9643 _ACEOF
9650 # Check for command to grab the raw symbol name followed by C symbol from nm.
9651 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9652 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9653 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9657 # These are sane defaults that work on at least a few old systems.
9658 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9660 # Character class describing NM global symbol codes.
9661 symcode='[BCDEGRST]'
9663 # Regexp to match symbols that can be accessed directly from C.
9664 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9666 # Transform an extracted symbol line into a proper C declaration
9667 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9669 # Transform an extracted symbol line into symbol name and symbol address
9670 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'"
9672 # Define system-specific variables.
9673 case $host_os in
9674 aix*)
9675 symcode='[BCDT]'
9676 ;;
9677 cygwin* | mingw* | pw32*)
9678 symcode='[ABCDGISTW]'
9679 ;;
9680 hpux*) # Its linker distinguishes data from code symbols
9681 if test "$host_cpu" = ia64; then
9682 symcode='[ABCDEGRST]'
9683 fi
9684 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9685 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'"
9686 ;;
9687 linux*)
9688 if test "$host_cpu" = ia64; then
9689 symcode='[ABCDGIRSTW]'
9690 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9691 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'"
9692 fi
9693 ;;
9694 irix* | nonstopux*)
9695 symcode='[BCDEGRST]'
9696 ;;
9697 osf*)
9698 symcode='[BCDEGQRST]'
9699 ;;
9700 solaris*)
9701 symcode='[BDRT]'
9702 ;;
9703 sco3.2v5*)
9704 symcode='[DT]'
9705 ;;
9706 sysv4.2uw2*)
9707 symcode='[DT]'
9708 ;;
9709 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9710 symcode='[ABDT]'
9711 ;;
9712 sysv4)
9713 symcode='[DFNSTU]'
9714 ;;
9715 esac
9717 # Handle CRLF in mingw tool chain
9718 opt_cr=
9719 case $build_os in
9720 mingw*)
9721 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9722 ;;
9723 esac
9725 # If we're using GNU nm, then use its standard symbol codes.
9726 case `$NM -V 2>&1` in
9727 *GNU* | *'with BFD'*)
9728 symcode='[ABCDGIRSTW]' ;;
9729 esac
9731 # Try without a prefix undercore, then with it.
9732 for ac_symprfx in "" "_"; do
9734 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9735 symxfrm="\\1 $ac_symprfx\\2 \\2"
9737 # Write the raw and C identifiers.
9738 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9740 # Check to see that the pipe works correctly.
9741 pipe_works=no
9743 rm -f conftest*
9744 cat > conftest.$ac_ext <<EOF
9745 #ifdef __cplusplus
9746 extern "C" {
9747 #endif
9748 char nm_test_var;
9749 void nm_test_func(){}
9750 #ifdef __cplusplus
9751 }
9752 #endif
9753 int main(){nm_test_var='a';nm_test_func();return(0);}
9754 EOF
9756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9757 (eval $ac_compile) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; then
9761 # Now try to grab the symbols.
9762 nlist=conftest.nm
9763 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9764 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } && test -s "$nlist"; then
9768 # Try sorting and uniquifying the output.
9769 if sort "$nlist" | uniq > "$nlist"T; then
9770 mv -f "$nlist"T "$nlist"
9771 else
9772 rm -f "$nlist"T
9773 fi
9775 # Make sure that we snagged all the symbols we need.
9776 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9777 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9778 cat <<EOF > conftest.$ac_ext
9779 #ifdef __cplusplus
9780 extern "C" {
9781 #endif
9783 EOF
9784 # Now generate the symbol file.
9785 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9787 cat <<EOF >> conftest.$ac_ext
9788 #if defined (__STDC__) && __STDC__
9789 # define lt_ptr_t void *
9790 #else
9791 # define lt_ptr_t char *
9792 # define const
9793 #endif
9795 /* The mapping between symbol names and symbols. */
9796 const struct {
9797 const char *name;
9798 lt_ptr_t address;
9799 }
9800 lt_preloaded_symbols[] =
9801 {
9802 EOF
9803 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9804 cat <<\EOF >> conftest.$ac_ext
9805 {0, (lt_ptr_t) 0}
9806 };
9808 #ifdef __cplusplus
9809 }
9810 #endif
9811 EOF
9812 # Now try linking the two files.
9813 mv conftest.$ac_objext conftstm.$ac_objext
9814 lt_save_LIBS="$LIBS"
9815 lt_save_CFLAGS="$CFLAGS"
9816 LIBS="conftstm.$ac_objext"
9817 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819 (eval $ac_link) 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9823 pipe_works=yes
9824 fi
9825 LIBS="$lt_save_LIBS"
9826 CFLAGS="$lt_save_CFLAGS"
9827 else
9828 echo "cannot find nm_test_func in $nlist" >&5
9829 fi
9830 else
9831 echo "cannot find nm_test_var in $nlist" >&5
9832 fi
9833 else
9834 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9835 fi
9836 else
9837 echo "$progname: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9839 fi
9840 rm -f conftest* conftst*
9842 # Do not use the global_symbol_pipe unless it works.
9843 if test "$pipe_works" = yes; then
9844 break
9845 else
9846 lt_cv_sys_global_symbol_pipe=
9847 fi
9848 done
9850 fi
9852 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9853 lt_cv_sys_global_symbol_to_cdecl=
9854 fi
9855 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9856 { echo "$as_me:$LINENO: result: failed" >&5
9857 echo "${ECHO_T}failed" >&6; }
9858 else
9859 { echo "$as_me:$LINENO: result: ok" >&5
9860 echo "${ECHO_T}ok" >&6; }
9861 fi
9864 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9865 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9866 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9870 libltdl_cv_preloaded_symbols=yes
9871 else
9872 libltdl_cv_preloaded_symbols=no
9873 fi
9875 fi
9876 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9877 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9878 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9880 cat >>confdefs.h <<\_ACEOF
9881 #define HAVE_PRELOADED_SYMBOLS 1
9882 _ACEOF
9884 fi
9886 LIBADD_DL=
9888 ac_ext=c
9889 ac_cpp='$CPP $CPPFLAGS'
9890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9895 { echo "$as_me:$LINENO: checking for shl_load" >&5
9896 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9897 if test "${ac_cv_func_shl_load+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900 cat >conftest.$ac_ext <<_ACEOF
9901 /* confdefs.h. */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9906 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9908 #define shl_load innocuous_shl_load
9910 /* System header to define __stub macros and hopefully few prototypes,
9911 which can conflict with char shl_load (); below.
9912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9913 <limits.h> exists even on freestanding compilers. */
9915 #ifdef __STDC__
9916 # include <limits.h>
9917 #else
9918 # include <assert.h>
9919 #endif
9921 #undef shl_load
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9926 #ifdef __cplusplus
9927 extern "C"
9928 #endif
9929 char shl_load ();
9930 /* The GNU C library defines this for functions which it implements
9931 to always fail with ENOSYS. Some functions are actually named
9932 something starting with __ and the normal name is an alias. */
9933 #if defined __stub_shl_load || defined __stub___shl_load
9934 choke me
9935 #endif
9937 int
9938 main ()
9939 {
9940 return shl_load ();
9941 ;
9942 return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (ac_try="$ac_link"
9947 case "(($ac_try" in
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_link") 2>conftest.er1
9953 ac_status=$?
9954 grep -v '^ *+' conftest.er1 >conftest.err
9955 rm -f conftest.er1
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9960 { (case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9963 esac
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_try") 2>&5
9966 ac_status=$?
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; } &&
9969 { ac_try='test -s conftest$ac_exeext'
9970 { (case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_try") 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_cv_func_shl_load=yes
9980 else
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9984 ac_cv_func_shl_load=no
9985 fi
9987 rm -f core conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9989 fi
9990 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9991 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9992 if test $ac_cv_func_shl_load = yes; then
9994 cat >>confdefs.h <<\_ACEOF
9995 #define HAVE_SHL_LOAD 1
9996 _ACEOF
9998 else
9999 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10000 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10001 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004 ac_check_lib_save_LIBS=$LIBS
10005 LIBS="-ldld $LIBS"
10006 cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h. */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10013 /* Override any GCC internal prototype to avoid an error.
10014 Use char because int might match the return type of a GCC
10015 builtin and then its argument prototype would still apply. */
10016 #ifdef __cplusplus
10017 extern "C"
10018 #endif
10019 char shl_load ();
10020 int
10021 main ()
10022 {
10023 return shl_load ();
10024 ;
10025 return 0;
10026 }
10027 _ACEOF
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (ac_try="$ac_link"
10030 case "(($ac_try" in
10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10033 esac
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_link") 2>conftest.er1
10036 ac_status=$?
10037 grep -v '^ *+' conftest.er1 >conftest.err
10038 rm -f conftest.er1
10039 cat conftest.err >&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } &&
10042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10043 { (case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10046 esac
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_try") 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest$ac_exeext'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_try") 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10062 ac_cv_lib_dld_shl_load=yes
10063 else
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10067 ac_cv_lib_dld_shl_load=no
10068 fi
10070 rm -f core conftest.err conftest.$ac_objext \
10071 conftest$ac_exeext conftest.$ac_ext
10072 LIBS=$ac_check_lib_save_LIBS
10073 fi
10074 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10075 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10076 if test $ac_cv_lib_dld_shl_load = yes; then
10078 cat >>confdefs.h <<\_ACEOF
10079 #define HAVE_SHL_LOAD 1
10080 _ACEOF
10082 LIBADD_DL="$LIBADD_DL -ldld"
10083 else
10084 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10085 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10086 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089 ac_check_lib_save_LIBS=$LIBS
10090 LIBS="-ldl $LIBS"
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h. */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10098 /* Override any GCC internal prototype to avoid an error.
10099 Use char because int might match the return type of a GCC
10100 builtin and then its argument prototype would still apply. */
10101 #ifdef __cplusplus
10102 extern "C"
10103 #endif
10104 char dlopen ();
10105 int
10106 main ()
10107 {
10108 return dlopen ();
10109 ;
10110 return 0;
10111 }
10112 _ACEOF
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10118 esac
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>conftest.er1
10121 ac_status=$?
10122 grep -v '^ *+' conftest.er1 >conftest.err
10123 rm -f conftest.er1
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10128 { (case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131 esac
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_try") 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest$ac_exeext'
10138 { (case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10141 esac
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_try") 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }; then
10147 ac_cv_lib_dl_dlopen=yes
10148 else
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 ac_cv_lib_dl_dlopen=no
10153 fi
10155 rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 LIBS=$ac_check_lib_save_LIBS
10158 fi
10159 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10160 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10161 if test $ac_cv_lib_dl_dlopen = yes; then
10163 cat >>confdefs.h <<\_ACEOF
10164 #define HAVE_LIBDL 1
10165 _ACEOF
10167 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10168 else
10169 cat >conftest.$ac_ext <<_ACEOF
10170 /* confdefs.h. */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10175 #if HAVE_DLFCN_H
10176 # include <dlfcn.h>
10177 #endif
10179 int
10180 main ()
10181 {
10182 dlopen(0, 0);
10183 ;
10184 return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (ac_try="$ac_link"
10189 case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10192 esac
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_link") 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10202 { (case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205 esac
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_try") 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try='test -s conftest$ac_exeext'
10212 { (case "(($ac_try" in
10213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214 *) ac_try_echo=$ac_try;;
10215 esac
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_try") 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10222 cat >>confdefs.h <<\_ACEOF
10223 #define HAVE_LIBDL 1
10224 _ACEOF
10225 libltdl_cv_func_dlopen="yes"
10226 else
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10230 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10231 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10232 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235 ac_check_lib_save_LIBS=$LIBS
10236 LIBS="-lsvld $LIBS"
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h. */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10244 /* Override any GCC internal prototype to avoid an error.
10245 Use char because int might match the return type of a GCC
10246 builtin and then its argument prototype would still apply. */
10247 #ifdef __cplusplus
10248 extern "C"
10249 #endif
10250 char dlopen ();
10251 int
10252 main ()
10253 {
10254 return dlopen ();
10255 ;
10256 return 0;
10257 }
10258 _ACEOF
10259 rm -f conftest.$ac_objext conftest$ac_exeext
10260 if { (ac_try="$ac_link"
10261 case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10264 esac
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_link") 2>conftest.er1
10267 ac_status=$?
10268 grep -v '^ *+' conftest.er1 >conftest.err
10269 rm -f conftest.er1
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10274 { (case "(($ac_try" in
10275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276 *) ac_try_echo=$ac_try;;
10277 esac
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279 (eval "$ac_try") 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; } &&
10283 { ac_try='test -s conftest$ac_exeext'
10284 { (case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10287 esac
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_try") 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10293 ac_cv_lib_svld_dlopen=yes
10294 else
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10298 ac_cv_lib_svld_dlopen=no
10299 fi
10301 rm -f core conftest.err conftest.$ac_objext \
10302 conftest$ac_exeext conftest.$ac_ext
10303 LIBS=$ac_check_lib_save_LIBS
10304 fi
10305 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10306 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10307 if test $ac_cv_lib_svld_dlopen = yes; then
10309 cat >>confdefs.h <<\_ACEOF
10310 #define HAVE_LIBDL 1
10311 _ACEOF
10313 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10314 else
10315 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10316 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10317 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320 ac_check_lib_save_LIBS=$LIBS
10321 LIBS="-ldld $LIBS"
10322 cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h. */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10329 /* Override any GCC internal prototype to avoid an error.
10330 Use char because int might match the return type of a GCC
10331 builtin and then its argument prototype would still apply. */
10332 #ifdef __cplusplus
10333 extern "C"
10334 #endif
10335 char dld_link ();
10336 int
10337 main ()
10338 {
10339 return dld_link ();
10340 ;
10341 return 0;
10342 }
10343 _ACEOF
10344 rm -f conftest.$ac_objext conftest$ac_exeext
10345 if { (ac_try="$ac_link"
10346 case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10349 esac
10350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10351 (eval "$ac_link") 2>conftest.er1
10352 ac_status=$?
10353 grep -v '^ *+' conftest.er1 >conftest.err
10354 rm -f conftest.er1
10355 cat conftest.err >&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
10358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10359 { (case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10362 esac
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_try") 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; } &&
10368 { ac_try='test -s conftest$ac_exeext'
10369 { (case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10372 esac
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_try") 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10378 ac_cv_lib_dld_dld_link=yes
10379 else
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10383 ac_cv_lib_dld_dld_link=no
10384 fi
10386 rm -f core conftest.err conftest.$ac_objext \
10387 conftest$ac_exeext conftest.$ac_ext
10388 LIBS=$ac_check_lib_save_LIBS
10389 fi
10390 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10391 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10392 if test $ac_cv_lib_dld_dld_link = yes; then
10394 cat >>confdefs.h <<\_ACEOF
10395 #define HAVE_DLD 1
10396 _ACEOF
10398 LIBADD_DL="$LIBADD_DL -ldld"
10399 else
10400 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10401 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10402 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405 cat >conftest.$ac_ext <<_ACEOF
10406 /* confdefs.h. */
10407 _ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10411 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10413 #define _dyld_func_lookup innocuous__dyld_func_lookup
10415 /* System header to define __stub macros and hopefully few prototypes,
10416 which can conflict with char _dyld_func_lookup (); below.
10417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10418 <limits.h> exists even on freestanding compilers. */
10420 #ifdef __STDC__
10421 # include <limits.h>
10422 #else
10423 # include <assert.h>
10424 #endif
10426 #undef _dyld_func_lookup
10428 /* Override any GCC internal prototype to avoid an error.
10429 Use char because int might match the return type of a GCC
10430 builtin and then its argument prototype would still apply. */
10431 #ifdef __cplusplus
10432 extern "C"
10433 #endif
10434 char _dyld_func_lookup ();
10435 /* The GNU C library defines this for functions which it implements
10436 to always fail with ENOSYS. Some functions are actually named
10437 something starting with __ and the normal name is an alias. */
10438 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10439 choke me
10440 #endif
10442 int
10443 main ()
10444 {
10445 return _dyld_func_lookup ();
10446 ;
10447 return 0;
10448 }
10449 _ACEOF
10450 rm -f conftest.$ac_objext conftest$ac_exeext
10451 if { (ac_try="$ac_link"
10452 case "(($ac_try" in
10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10455 esac
10456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_link") 2>conftest.er1
10458 ac_status=$?
10459 grep -v '^ *+' conftest.er1 >conftest.err
10460 rm -f conftest.er1
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } &&
10464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10465 { (case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10468 esac
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_try") 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; } &&
10474 { ac_try='test -s conftest$ac_exeext'
10475 { (case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10478 esac
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_try") 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_cv_func__dyld_func_lookup=yes
10485 else
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 ac_cv_func__dyld_func_lookup=no
10490 fi
10492 rm -f core conftest.err conftest.$ac_objext \
10493 conftest$ac_exeext conftest.$ac_ext
10494 fi
10495 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10496 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10497 if test $ac_cv_func__dyld_func_lookup = yes; then
10499 cat >>confdefs.h <<\_ACEOF
10500 #define HAVE_DYLD 1
10501 _ACEOF
10503 fi
10506 fi
10509 fi
10512 fi
10514 rm -f core conftest.err conftest.$ac_objext \
10515 conftest$ac_exeext conftest.$ac_ext
10517 fi
10520 fi
10523 fi
10526 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10527 then
10528 lt_save_LIBS="$LIBS"
10529 LIBS="$LIBS $LIBADD_DL"
10531 for ac_func in dlerror
10532 do
10533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539 cat >conftest.$ac_ext <<_ACEOF
10540 /* confdefs.h. */
10541 _ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10547 #define $ac_func innocuous_$ac_func
10549 /* System header to define __stub macros and hopefully few prototypes,
10550 which can conflict with char $ac_func (); below.
10551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10552 <limits.h> exists even on freestanding compilers. */
10554 #ifdef __STDC__
10555 # include <limits.h>
10556 #else
10557 # include <assert.h>
10558 #endif
10560 #undef $ac_func
10562 /* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
10565 #ifdef __cplusplus
10566 extern "C"
10567 #endif
10568 char $ac_func ();
10569 /* The GNU C library defines this for functions which it implements
10570 to always fail with ENOSYS. Some functions are actually named
10571 something starting with __ and the normal name is an alias. */
10572 #if defined __stub_$ac_func || defined __stub___$ac_func
10573 choke me
10574 #endif
10576 int
10577 main ()
10578 {
10579 return $ac_func ();
10580 ;
10581 return 0;
10582 }
10583 _ACEOF
10584 rm -f conftest.$ac_objext conftest$ac_exeext
10585 if { (ac_try="$ac_link"
10586 case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10589 esac
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_link") 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10599 { (case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602 esac
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_try") 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest$ac_exeext'
10609 { (case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10612 esac
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_try") 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 eval "$as_ac_var=yes"
10619 else
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10623 eval "$as_ac_var=no"
10624 fi
10626 rm -f core conftest.err conftest.$ac_objext \
10627 conftest$ac_exeext conftest.$ac_ext
10628 fi
10629 ac_res=`eval echo '${'$as_ac_var'}'`
10630 { echo "$as_me:$LINENO: result: $ac_res" >&5
10631 echo "${ECHO_T}$ac_res" >&6; }
10632 if test `eval echo '${'$as_ac_var'}'` = yes; then
10633 cat >>confdefs.h <<_ACEOF
10634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10635 _ACEOF
10637 fi
10638 done
10640 LIBS="$lt_save_LIBS"
10641 fi
10642 ac_ext=c
10643 ac_cpp='$CPP $CPPFLAGS'
10644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10650 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10651 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10652 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 else
10655 ac_cv_sys_symbol_underscore=no
10656 cat > conftest.$ac_ext <<EOF
10657 void nm_test_func(){}
10658 int main(){nm_test_func;return 0;}
10659 EOF
10660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661 (eval $ac_compile) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; then
10665 # Now try to grab the symbols.
10666 ac_nlist=conftest.nm
10667 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10668 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } && test -s "$ac_nlist"; then
10672 # See whether the symbols have a leading underscore.
10673 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10674 ac_cv_sys_symbol_underscore=yes
10675 else
10676 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10677 :
10678 else
10679 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10680 fi
10681 fi
10682 else
10683 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10684 fi
10685 else
10686 echo "configure: failed program was:" >&5
10687 cat conftest.c >&5
10688 fi
10689 rm -rf conftest*
10691 fi
10692 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10693 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10696 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10697 if test x"$libltdl_cv_func_dlopen" = xyes ||
10698 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10699 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10700 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10701 if test "${libltdl_cv_need_uscore+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 else
10704 libltdl_cv_need_uscore=unknown
10705 save_LIBS="$LIBS"
10706 LIBS="$LIBS $LIBADD_DL"
10707 if test "$cross_compiling" = yes; then :
10708 libltdl_cv_need_uscore=cross
10709 else
10710 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10711 lt_status=$lt_dlunknown
10712 cat > conftest.$ac_ext <<EOF
10713 #line 10713 "configure"
10714 #include "confdefs.h"
10716 #if HAVE_DLFCN_H
10717 #include <dlfcn.h>
10718 #endif
10720 #include <stdio.h>
10722 #ifdef RTLD_GLOBAL
10723 # define LT_DLGLOBAL RTLD_GLOBAL
10724 #else
10725 # ifdef DL_GLOBAL
10726 # define LT_DLGLOBAL DL_GLOBAL
10727 # else
10728 # define LT_DLGLOBAL 0
10729 # endif
10730 #endif
10732 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10733 find out it does not work in some platform. */
10734 #ifndef LT_DLLAZY_OR_NOW
10735 # ifdef RTLD_LAZY
10736 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10737 # else
10738 # ifdef DL_LAZY
10739 # define LT_DLLAZY_OR_NOW DL_LAZY
10740 # else
10741 # ifdef RTLD_NOW
10742 # define LT_DLLAZY_OR_NOW RTLD_NOW
10743 # else
10744 # ifdef DL_NOW
10745 # define LT_DLLAZY_OR_NOW DL_NOW
10746 # else
10747 # define LT_DLLAZY_OR_NOW 0
10748 # endif
10749 # endif
10750 # endif
10751 # endif
10752 #endif
10754 #ifdef __cplusplus
10755 extern "C" void exit (int);
10756 #endif
10758 void fnord() { int i=42;}
10759 int main ()
10760 {
10761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10762 int status = $lt_dlunknown;
10764 if (self)
10765 {
10766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10767 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10768 /* dlclose (self); */
10769 }
10770 else
10771 puts (dlerror ());
10773 exit (status);
10774 }
10775 EOF
10776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10777 (eval $ac_link) 2>&5
10778 ac_status=$?
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10781 (./conftest; exit; ) >&5 2>/dev/null
10782 lt_status=$?
10783 case x$lt_status in
10784 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10785 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10786 x$lt_dlunknown|x*) ;;
10787 esac
10788 else :
10789 # compilation failed
10791 fi
10792 fi
10793 rm -fr conftest*
10795 LIBS="$save_LIBS"
10797 fi
10798 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10799 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10800 fi
10801 fi
10803 if test x"$libltdl_cv_need_uscore" = xyes; then
10805 cat >>confdefs.h <<\_ACEOF
10806 #define NEED_USCORE 1
10807 _ACEOF
10809 fi
10812 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10813 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10814 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817 # PORTME does your system automatically load deplibs for dlopen?
10818 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10819 # For now, we just catch OSes we know something about -- in the
10820 # future, we'll try test this programmatically.
10821 libltdl_cv_sys_dlopen_deplibs=unknown
10822 case "$host_os" in
10823 aix3*|aix4.1.*|aix4.2.*)
10824 # Unknown whether this is true for these versions of AIX, but
10825 # we want this `case' here to explicitly catch those versions.
10826 libltdl_cv_sys_dlopen_deplibs=unknown
10827 ;;
10828 aix[45]*)
10829 libltdl_cv_sys_dlopen_deplibs=yes
10830 ;;
10831 darwin*)
10832 # Assuming the user has installed a libdl from somewhere, this is true
10833 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10834 libltdl_cv_sys_dlopen_deplibs=yes
10835 ;;
10836 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10837 # GNU and its variants, using gnu ld.so (Glibc)
10838 libltdl_cv_sys_dlopen_deplibs=yes
10839 ;;
10840 hpux10*|hpux11*)
10841 libltdl_cv_sys_dlopen_deplibs=yes
10842 ;;
10843 interix*)
10844 libltdl_cv_sys_dlopen_deplibs=yes
10845 ;;
10846 irix[12345]*|irix6.[01]*)
10847 # Catch all versions of IRIX before 6.2, and indicate that we don't
10848 # know how it worked for any of those versions.
10849 libltdl_cv_sys_dlopen_deplibs=unknown
10850 ;;
10851 irix*)
10852 # The case above catches anything before 6.2, and it's known that
10853 # at 6.2 and later dlopen does load deplibs.
10854 libltdl_cv_sys_dlopen_deplibs=yes
10855 ;;
10856 netbsd*)
10857 libltdl_cv_sys_dlopen_deplibs=yes
10858 ;;
10859 openbsd*)
10860 libltdl_cv_sys_dlopen_deplibs=yes
10861 ;;
10862 osf[1234]*)
10863 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10864 # it did *not* use an RPATH in a shared library to find objects the
10865 # library depends on, so we explicitly say `no'.
10866 libltdl_cv_sys_dlopen_deplibs=no
10867 ;;
10868 osf5.0|osf5.0a|osf5.1)
10869 # dlopen *does* load deplibs and with the right loader patch applied
10870 # it even uses RPATH in a shared library to search for shared objects
10871 # that the library depends on, but there's no easy way to know if that
10872 # patch is installed. Since this is the case, all we can really
10873 # say is unknown -- it depends on the patch being installed. If
10874 # it is, this changes to `yes'. Without it, it would be `no'.
10875 libltdl_cv_sys_dlopen_deplibs=unknown
10876 ;;
10877 osf*)
10878 # the two cases above should catch all versions of osf <= 5.1. Read
10879 # the comments above for what we know about them.
10880 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10881 # is used to find them so we can finally say `yes'.
10882 libltdl_cv_sys_dlopen_deplibs=yes
10883 ;;
10884 solaris*)
10885 libltdl_cv_sys_dlopen_deplibs=yes
10886 ;;
10887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10888 libltdl_cv_sys_dlopen_deplibs=yes
10889 ;;
10890 esac
10892 fi
10893 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10894 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10895 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10897 cat >>confdefs.h <<\_ACEOF
10898 #define LTDL_DLOPEN_DEPLIBS 1
10899 _ACEOF
10901 fi
10904 for ac_header in argz.h
10905 do
10906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 fi
10913 ac_res=`eval echo '${'$as_ac_Header'}'`
10914 { echo "$as_me:$LINENO: result: $ac_res" >&5
10915 echo "${ECHO_T}$ac_res" >&6; }
10916 else
10917 # Is the header compilable?
10918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10920 cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h. */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 $ac_includes_default
10927 #include <$ac_header>
10928 _ACEOF
10929 rm -f conftest.$ac_objext
10930 if { (ac_try="$ac_compile"
10931 case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_compile") 2>conftest.er1
10937 ac_status=$?
10938 grep -v '^ *+' conftest.er1 >conftest.err
10939 rm -f conftest.er1
10940 cat conftest.err >&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } &&
10943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10944 { (case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_try") 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10957 esac
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959 (eval "$ac_try") 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
10963 ac_header_compiler=yes
10964 else
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10968 ac_header_compiler=no
10969 fi
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10973 echo "${ECHO_T}$ac_header_compiler" >&6; }
10975 # Is the header present?
10976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h. */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 #include <$ac_header>
10985 _ACEOF
10986 if { (ac_try="$ac_cpp conftest.$ac_ext"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } >/dev/null; then
10999 if test -s conftest.err; then
11000 ac_cpp_err=$ac_c_preproc_warn_flag
11001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11002 else
11003 ac_cpp_err=
11004 fi
11005 else
11006 ac_cpp_err=yes
11007 fi
11008 if test -z "$ac_cpp_err"; then
11009 ac_header_preproc=yes
11010 else
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11014 ac_header_preproc=no
11015 fi
11017 rm -f conftest.err conftest.$ac_ext
11018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11019 echo "${ECHO_T}$ac_header_preproc" >&6; }
11021 # So? What about this header?
11022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11023 yes:no: )
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11028 ac_header_preproc=yes
11029 ;;
11030 no:yes:* )
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11043 ( cat <<\_ASBOX
11044 ## ------------------------------------ ##
11045 ## Report this to http://llvm.org/bugs/ ##
11046 ## ------------------------------------ ##
11047 _ASBOX
11048 ) | sed "s/^/$as_me: WARNING: /" >&2
11049 ;;
11050 esac
11051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 else
11056 eval "$as_ac_Header=\$ac_header_preproc"
11057 fi
11058 ac_res=`eval echo '${'$as_ac_Header'}'`
11059 { echo "$as_me:$LINENO: result: $ac_res" >&5
11060 echo "${ECHO_T}$ac_res" >&6; }
11062 fi
11063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11064 cat >>confdefs.h <<_ACEOF
11065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11066 _ACEOF
11068 fi
11070 done
11073 { echo "$as_me:$LINENO: checking for error_t" >&5
11074 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11075 if test "${ac_cv_type_error_t+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 else
11078 cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h. */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 #if HAVE_ARGZ_H
11085 # include <argz.h>
11086 #endif
11088 typedef error_t ac__type_new_;
11089 int
11090 main ()
11091 {
11092 if ((ac__type_new_ *) 0)
11093 return 0;
11094 if (sizeof (ac__type_new_))
11095 return 0;
11096 ;
11097 return 0;
11098 }
11099 _ACEOF
11100 rm -f conftest.$ac_objext
11101 if { (ac_try="$ac_compile"
11102 case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11105 esac
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_compile") 2>conftest.er1
11108 ac_status=$?
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } &&
11114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11115 { (case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11118 esac
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_try") 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; } &&
11124 { ac_try='test -s conftest.$ac_objext'
11125 { (case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_try") 2>&5
11131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; }; then
11134 ac_cv_type_error_t=yes
11135 else
11136 echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11139 ac_cv_type_error_t=no
11140 fi
11142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143 fi
11144 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11145 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11146 if test $ac_cv_type_error_t = yes; then
11148 cat >>confdefs.h <<_ACEOF
11149 #define HAVE_ERROR_T 1
11150 _ACEOF
11153 else
11155 cat >>confdefs.h <<\_ACEOF
11156 #define error_t int
11157 _ACEOF
11159 fi
11167 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11168 do
11169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11174 else
11175 cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h. */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11183 #define $ac_func innocuous_$ac_func
11185 /* System header to define __stub macros and hopefully few prototypes,
11186 which can conflict with char $ac_func (); below.
11187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11188 <limits.h> exists even on freestanding compilers. */
11190 #ifdef __STDC__
11191 # include <limits.h>
11192 #else
11193 # include <assert.h>
11194 #endif
11196 #undef $ac_func
11198 /* Override any GCC internal prototype to avoid an error.
11199 Use char because int might match the return type of a GCC
11200 builtin and then its argument prototype would still apply. */
11201 #ifdef __cplusplus
11202 extern "C"
11203 #endif
11204 char $ac_func ();
11205 /* The GNU C library defines this for functions which it implements
11206 to always fail with ENOSYS. Some functions are actually named
11207 something starting with __ and the normal name is an alias. */
11208 #if defined __stub_$ac_func || defined __stub___$ac_func
11209 choke me
11210 #endif
11212 int
11213 main ()
11214 {
11215 return $ac_func ();
11216 ;
11217 return 0;
11218 }
11219 _ACEOF
11220 rm -f conftest.$ac_objext conftest$ac_exeext
11221 if { (ac_try="$ac_link"
11222 case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225 esac
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_link") 2>conftest.er1
11228 ac_status=$?
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } &&
11234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11235 { (case "(($ac_try" in
11236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11238 esac
11239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240 (eval "$ac_try") 2>&5
11241 ac_status=$?
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; } &&
11244 { ac_try='test -s conftest$ac_exeext'
11245 { (case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11248 esac
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_try") 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 eval "$as_ac_var=yes"
11255 else
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11259 eval "$as_ac_var=no"
11260 fi
11262 rm -f core conftest.err conftest.$ac_objext \
11263 conftest$ac_exeext conftest.$ac_ext
11264 fi
11265 ac_res=`eval echo '${'$as_ac_var'}'`
11266 { echo "$as_me:$LINENO: result: $ac_res" >&5
11267 echo "${ECHO_T}$ac_res" >&6; }
11268 if test `eval echo '${'$as_ac_var'}'` = yes; then
11269 cat >>confdefs.h <<_ACEOF
11270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11271 _ACEOF
11273 fi
11274 done
11298 for ac_header in errno.h malloc.h memory.h unistd.h
11299 do
11300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 fi
11307 ac_res=`eval echo '${'$as_ac_Header'}'`
11308 { echo "$as_me:$LINENO: result: $ac_res" >&5
11309 echo "${ECHO_T}$ac_res" >&6; }
11310 else
11311 # Is the header compilable?
11312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11314 cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h. */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11320 $ac_includes_default
11321 #include <$ac_header>
11322 _ACEOF
11323 rm -f conftest.$ac_objext
11324 if { (ac_try="$ac_compile"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_compile") 2>conftest.er1
11331 ac_status=$?
11332 grep -v '^ *+' conftest.er1 >conftest.err
11333 rm -f conftest.er1
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11338 { (case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_try") 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; } &&
11347 { ac_try='test -s conftest.$ac_objext'
11348 { (case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11351 esac
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_try") 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; }; then
11357 ac_header_compiler=yes
11358 else
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11362 ac_header_compiler=no
11363 fi
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11367 echo "${ECHO_T}$ac_header_compiler" >&6; }
11369 # Is the header present?
11370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11372 cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h. */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 #include <$ac_header>
11379 _ACEOF
11380 if { (ac_try="$ac_cpp conftest.$ac_ext"
11381 case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11384 esac
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11387 ac_status=$?
11388 grep -v '^ *+' conftest.er1 >conftest.err
11389 rm -f conftest.er1
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } >/dev/null; then
11393 if test -s conftest.err; then
11394 ac_cpp_err=$ac_c_preproc_warn_flag
11395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11396 else
11397 ac_cpp_err=
11398 fi
11399 else
11400 ac_cpp_err=yes
11401 fi
11402 if test -z "$ac_cpp_err"; then
11403 ac_header_preproc=yes
11404 else
11405 echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11408 ac_header_preproc=no
11409 fi
11411 rm -f conftest.err conftest.$ac_ext
11412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11413 echo "${ECHO_T}$ac_header_preproc" >&6; }
11415 # So? What about this header?
11416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11417 yes:no: )
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11422 ac_header_preproc=yes
11423 ;;
11424 no:yes:* )
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11437 ( cat <<\_ASBOX
11438 ## ------------------------------------ ##
11439 ## Report this to http://llvm.org/bugs/ ##
11440 ## ------------------------------------ ##
11441 _ASBOX
11442 ) | sed "s/^/$as_me: WARNING: /" >&2
11443 ;;
11444 esac
11445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450 eval "$as_ac_Header=\$ac_header_preproc"
11451 fi
11452 ac_res=`eval echo '${'$as_ac_Header'}'`
11453 { echo "$as_me:$LINENO: result: $ac_res" >&5
11454 echo "${ECHO_T}$ac_res" >&6; }
11456 fi
11457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11458 cat >>confdefs.h <<_ACEOF
11459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11460 _ACEOF
11462 fi
11464 done
11467 for ac_header in mach-o/dyld.h
11468 do
11469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 fi
11476 ac_res=`eval echo '${'$as_ac_Header'}'`
11477 { echo "$as_me:$LINENO: result: $ac_res" >&5
11478 echo "${ECHO_T}$ac_res" >&6; }
11479 else
11480 # Is the header compilable?
11481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11483 cat >conftest.$ac_ext <<_ACEOF
11484 /* confdefs.h. */
11485 _ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 $ac_includes_default
11490 #include <$ac_header>
11491 _ACEOF
11492 rm -f conftest.$ac_objext
11493 if { (ac_try="$ac_compile"
11494 case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11497 esac
11498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499 (eval "$ac_compile") 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11507 { (case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510 esac
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_try") 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; } &&
11516 { ac_try='test -s conftest.$ac_objext'
11517 { (case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11520 esac
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522 (eval "$ac_try") 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 ac_header_compiler=yes
11527 else
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11531 ac_header_compiler=no
11532 fi
11534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11536 echo "${ECHO_T}$ac_header_compiler" >&6; }
11538 # Is the header present?
11539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11541 cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h. */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 #include <$ac_header>
11548 _ACEOF
11549 if { (ac_try="$ac_cpp conftest.$ac_ext"
11550 case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553 esac
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } >/dev/null; then
11562 if test -s conftest.err; then
11563 ac_cpp_err=$ac_c_preproc_warn_flag
11564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11565 else
11566 ac_cpp_err=
11567 fi
11568 else
11569 ac_cpp_err=yes
11570 fi
11571 if test -z "$ac_cpp_err"; then
11572 ac_header_preproc=yes
11573 else
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 ac_header_preproc=no
11578 fi
11580 rm -f conftest.err conftest.$ac_ext
11581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11582 echo "${ECHO_T}$ac_header_preproc" >&6; }
11584 # So? What about this header?
11585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11586 yes:no: )
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11591 ac_header_preproc=yes
11592 ;;
11593 no:yes:* )
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11606 ( cat <<\_ASBOX
11607 ## ------------------------------------ ##
11608 ## Report this to http://llvm.org/bugs/ ##
11609 ## ------------------------------------ ##
11610 _ASBOX
11611 ) | sed "s/^/$as_me: WARNING: /" >&2
11612 ;;
11613 esac
11614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 else
11619 eval "$as_ac_Header=\$ac_header_preproc"
11620 fi
11621 ac_res=`eval echo '${'$as_ac_Header'}'`
11622 { echo "$as_me:$LINENO: result: $ac_res" >&5
11623 echo "${ECHO_T}$ac_res" >&6; }
11625 fi
11626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11627 cat >>confdefs.h <<_ACEOF
11628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11629 _ACEOF
11631 fi
11633 done
11639 for ac_func in closedir opendir readdir
11640 do
11641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h. */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11655 #define $ac_func innocuous_$ac_func
11657 /* System header to define __stub macros and hopefully few prototypes,
11658 which can conflict with char $ac_func (); below.
11659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11660 <limits.h> exists even on freestanding compilers. */
11662 #ifdef __STDC__
11663 # include <limits.h>
11664 #else
11665 # include <assert.h>
11666 #endif
11668 #undef $ac_func
11670 /* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11673 #ifdef __cplusplus
11674 extern "C"
11675 #endif
11676 char $ac_func ();
11677 /* The GNU C library defines this for functions which it implements
11678 to always fail with ENOSYS. Some functions are actually named
11679 something starting with __ and the normal name is an alias. */
11680 #if defined __stub_$ac_func || defined __stub___$ac_func
11681 choke me
11682 #endif
11684 int
11685 main ()
11686 {
11687 return $ac_func ();
11688 ;
11689 return 0;
11690 }
11691 _ACEOF
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (ac_try="$ac_link"
11694 case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11697 esac
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_link") 2>conftest.er1
11700 ac_status=$?
11701 grep -v '^ *+' conftest.er1 >conftest.err
11702 rm -f conftest.er1
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } &&
11706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11707 { (case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11710 esac
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_try") 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; } &&
11716 { ac_try='test -s conftest$ac_exeext'
11717 { (case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11720 esac
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_try") 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 eval "$as_ac_var=yes"
11727 else
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11731 eval "$as_ac_var=no"
11732 fi
11734 rm -f core conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11736 fi
11737 ac_res=`eval echo '${'$as_ac_var'}'`
11738 { echo "$as_me:$LINENO: result: $ac_res" >&5
11739 echo "${ECHO_T}$ac_res" >&6; }
11740 if test `eval echo '${'$as_ac_var'}'` = yes; then
11741 cat >>confdefs.h <<_ACEOF
11742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11743 _ACEOF
11745 fi
11746 done
11750 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11751 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11753 ICC=no
11754 IXX=no
11755 case $CC in
11756 icc*|icpc*)
11757 ICC=yes
11758 IXX=yes
11759 ;;
11760 *)
11761 ;;
11762 esac
11764 if test "$GCC" != "yes" && test "$ICC" != "yes"
11765 then
11766 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11767 echo "$as_me: error: gcc|icc required but not found" >&2;}
11768 { (exit 1); exit 1; }; }
11769 fi
11771 if test "$GXX" != "yes" && test "$IXX" != "yes"
11772 then
11773 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11774 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11775 { (exit 1); exit 1; }; }
11776 fi
11778 if test "$GCC" = "yes"
11779 then
11780 cat >conftest.$ac_ext <<_ACEOF
11782 /* confdefs.h. */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11788 #if !defined(__GNUC__) || __GNUC__ < 3
11789 #error Unsupported GCC version
11790 #endif
11793 _ACEOF
11794 rm -f conftest.$ac_objext
11795 if { (ac_try="$ac_compile"
11796 case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11799 esac
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_compile") 2>conftest.er1
11802 ac_status=$?
11803 grep -v '^ *+' conftest.er1 >conftest.err
11804 rm -f conftest.er1
11805 cat conftest.err >&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } &&
11808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11809 { (case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_try") 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; } &&
11818 { ac_try='test -s conftest.$ac_objext'
11819 { (case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11822 esac
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_try") 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 :
11829 else
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11833 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11834 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11835 { (exit 1); exit 1; }; }
11836 fi
11838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11839 fi
11841 if test -z "$llvm_cv_gnu_make_command"
11842 then
11843 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11844 echo "$as_me: error: GNU Make required but not found" >&2;}
11845 { (exit 1); exit 1; }; }
11846 fi
11848 { echo "$as_me:$LINENO: result: ok" >&5
11849 echo "${ECHO_T}ok" >&6; }
11851 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11852 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11853 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11855 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11857 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11860 NO_UNINITIALIZED=
11861 NO_MAYBE_UNINITIALIZED=
11862 if test "$GXX" = "yes"
11863 then
11864 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11866 if test -z "$NO_MAYBE_UNINITIALIZED"
11867 then
11868 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11870 fi
11871 fi
11872 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11873 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11876 # Check whether --with-python was given.
11877 if test "${with_python+set}" = set; then
11878 withval=$with_python; PYTHON="$withval"
11879 fi
11882 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11883 { echo "$as_me:$LINENO: checking for python" >&5
11884 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11885 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11886 echo "${ECHO_T}user defined: $with_python" >&6; }
11887 else
11888 if test -n "$PYTHON" ; then
11889 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11890 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11891 fi
11893 # Extract the first word of "python python2 python26", so it can be a program name with args.
11894 set dummy python python2 python26; ac_word=$2
11895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11897 if test "${ac_cv_path_PYTHON+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900 case $PYTHON in
11901 [\\/]* | ?:[\\/]*)
11902 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11903 ;;
11904 *)
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11907 do
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11912 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11915 fi
11916 done
11917 done
11918 IFS=$as_save_IFS
11920 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11921 echo "${ECHO_T}not found" >&6; }
11922 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11923 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11924 { (exit 1); exit 1; }; }"
11925 ;;
11926 esac
11927 fi
11928 PYTHON=$ac_cv_path_PYTHON
11929 if test -n "$PYTHON"; then
11930 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11931 echo "${ECHO_T}$PYTHON" >&6; }
11932 else
11933 { echo "$as_me:$LINENO: result: no" >&5
11934 echo "${ECHO_T}no" >&6; }
11935 fi
11938 fi
11940 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11941 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11942 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11943 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11944 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11945 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11946 if test "$ac_python_version_major" -gt "2" || \
11947 (test "$ac_python_version_major" -eq "2" && \
11948 test "$ac_python_version_minor" -ge "5") ; then
11949 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11950 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11951 else
11952 { echo "$as_me:$LINENO: result: not found" >&5
11953 echo "${ECHO_T}not found" >&6; }
11954 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11955 See \`config.log' for more details." >&5
11956 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11957 See \`config.log' for more details." >&2;}
11958 { (exit 1); exit 1; }; }
11959 fi
11963 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11964 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11965 if test "${ac_cv_lib_m_sin+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968 ac_check_lib_save_LIBS=$LIBS
11969 LIBS="-lm $LIBS"
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h. */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 /* Override any GCC internal prototype to avoid an error.
11978 Use char because int might match the return type of a GCC
11979 builtin and then its argument prototype would still apply. */
11980 #ifdef __cplusplus
11981 extern "C"
11982 #endif
11983 char sin ();
11984 int
11985 main ()
11986 {
11987 return sin ();
11988 ;
11989 return 0;
11990 }
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (ac_try="$ac_link"
11994 case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11997 esac
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_link") 2>conftest.er1
12000 ac_status=$?
12001 grep -v '^ *+' conftest.er1 >conftest.err
12002 rm -f conftest.er1
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12007 { (case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12010 esac
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try='test -s conftest$ac_exeext'
12017 { (case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12020 esac
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_try") 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_cv_lib_m_sin=yes
12027 else
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 ac_cv_lib_m_sin=no
12032 fi
12034 rm -f core conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
12036 LIBS=$ac_check_lib_save_LIBS
12037 fi
12038 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12039 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12040 if test $ac_cv_lib_m_sin = yes; then
12041 cat >>confdefs.h <<_ACEOF
12042 #define HAVE_LIBM 1
12043 _ACEOF
12045 LIBS="-lm $LIBS"
12047 fi
12049 if test "$llvm_cv_os_type" = "MingW" ; then
12051 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12052 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12053 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 else
12056 ac_check_lib_save_LIBS=$LIBS
12057 LIBS="-limagehlp $LIBS"
12058 cat >conftest.$ac_ext <<_ACEOF
12059 /* confdefs.h. */
12060 _ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12066 int
12067 main ()
12068 {
12069 return main ();
12070 ;
12071 return 0;
12072 }
12073 _ACEOF
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (ac_try="$ac_link"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079 esac
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081 (eval "$ac_link") 2>conftest.er1
12082 ac_status=$?
12083 grep -v '^ *+' conftest.er1 >conftest.err
12084 rm -f conftest.er1
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } &&
12088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12089 { (case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12092 esac
12093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094 (eval "$ac_try") 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } &&
12098 { ac_try='test -s conftest$ac_exeext'
12099 { (case "(($ac_try" in
12100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12101 *) ac_try_echo=$ac_try;;
12102 esac
12103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12104 (eval "$ac_try") 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12108 ac_cv_lib_imagehlp_main=yes
12109 else
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 ac_cv_lib_imagehlp_main=no
12114 fi
12116 rm -f core conftest.err conftest.$ac_objext \
12117 conftest$ac_exeext conftest.$ac_ext
12118 LIBS=$ac_check_lib_save_LIBS
12119 fi
12120 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12121 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12122 if test $ac_cv_lib_imagehlp_main = yes; then
12123 cat >>confdefs.h <<_ACEOF
12124 #define HAVE_LIBIMAGEHLP 1
12125 _ACEOF
12127 LIBS="-limagehlp $LIBS"
12129 fi
12132 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12133 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12134 if test "${ac_cv_lib_psapi_main+set}" = set; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137 ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-lpsapi $LIBS"
12139 cat >conftest.$ac_ext <<_ACEOF
12140 /* confdefs.h. */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12147 int
12148 main ()
12149 {
12150 return main ();
12151 ;
12152 return 0;
12153 }
12154 _ACEOF
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (ac_try="$ac_link"
12157 case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12160 esac
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_link") 2>conftest.er1
12163 ac_status=$?
12164 grep -v '^ *+' conftest.er1 >conftest.err
12165 rm -f conftest.er1
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } &&
12169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12170 { (case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12173 esac
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_try") 2>&5
12176 ac_status=$?
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; } &&
12179 { ac_try='test -s conftest$ac_exeext'
12180 { (case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12183 esac
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_try") 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 ac_cv_lib_psapi_main=yes
12190 else
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12194 ac_cv_lib_psapi_main=no
12195 fi
12197 rm -f core conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
12199 LIBS=$ac_check_lib_save_LIBS
12200 fi
12201 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12202 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12203 if test $ac_cv_lib_psapi_main = yes; then
12204 cat >>confdefs.h <<_ACEOF
12205 #define HAVE_LIBPSAPI 1
12206 _ACEOF
12208 LIBS="-lpsapi $LIBS"
12210 fi
12213 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12214 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12215 if test "${ac_cv_lib_shell32_main+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12217 else
12218 ac_check_lib_save_LIBS=$LIBS
12219 LIBS="-lshell32 $LIBS"
12220 cat >conftest.$ac_ext <<_ACEOF
12221 /* confdefs.h. */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12228 int
12229 main ()
12230 {
12231 return main ();
12232 ;
12233 return 0;
12234 }
12235 _ACEOF
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (ac_try="$ac_link"
12238 case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241 esac
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_link") 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12251 { (case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12254 esac
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_try") 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest$ac_exeext'
12261 { (case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12264 esac
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_try") 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 ac_cv_lib_shell32_main=yes
12271 else
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ac_cv_lib_shell32_main=no
12276 fi
12278 rm -f core conftest.err conftest.$ac_objext \
12279 conftest$ac_exeext conftest.$ac_ext
12280 LIBS=$ac_check_lib_save_LIBS
12281 fi
12282 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12283 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12284 if test $ac_cv_lib_shell32_main = yes; then
12285 cat >>confdefs.h <<_ACEOF
12286 #define HAVE_LIBSHELL32 1
12287 _ACEOF
12289 LIBS="-lshell32 $LIBS"
12291 fi
12293 fi
12295 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12296 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12297 if test "${ac_cv_search_dlopen+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300 ac_func_search_save_LIBS=$LIBS
12301 cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h. */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12308 /* Override any GCC internal prototype to avoid an error.
12309 Use char because int might match the return type of a GCC
12310 builtin and then its argument prototype would still apply. */
12311 #ifdef __cplusplus
12312 extern "C"
12313 #endif
12314 char dlopen ();
12315 int
12316 main ()
12317 {
12318 return dlopen ();
12319 ;
12320 return 0;
12321 }
12322 _ACEOF
12323 for ac_lib in '' dl; do
12324 if test -z "$ac_lib"; then
12325 ac_res="none required"
12326 else
12327 ac_res=-l$ac_lib
12328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12329 fi
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (ac_try="$ac_link"
12332 case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12335 esac
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_link") 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12345 { (case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12348 esac
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_try") 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; } &&
12354 { ac_try='test -s conftest$ac_exeext'
12355 { (case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12358 esac
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_try") 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_search_dlopen=$ac_res
12365 else
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12370 fi
12372 rm -f core conftest.err conftest.$ac_objext \
12373 conftest$ac_exeext
12374 if test "${ac_cv_search_dlopen+set}" = set; then
12375 break
12376 fi
12377 done
12378 if test "${ac_cv_search_dlopen+set}" = set; then
12379 :
12380 else
12381 ac_cv_search_dlopen=no
12382 fi
12383 rm conftest.$ac_ext
12384 LIBS=$ac_func_search_save_LIBS
12385 fi
12386 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12387 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12388 ac_res=$ac_cv_search_dlopen
12389 if test "$ac_res" != no; then
12390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12393 cat >>confdefs.h <<\_ACEOF
12394 #define HAVE_DLOPEN 1
12395 _ACEOF
12397 HAVE_DLOPEN='1'
12400 else
12401 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12402 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12403 fi
12406 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12407 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12408 if test "${ac_cv_search_clock_gettime+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411 ac_func_search_save_LIBS=$LIBS
12412 cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h. */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12422 #ifdef __cplusplus
12423 extern "C"
12424 #endif
12425 char clock_gettime ();
12426 int
12427 main ()
12428 {
12429 return clock_gettime ();
12430 ;
12431 return 0;
12432 }
12433 _ACEOF
12434 for ac_lib in '' rt; do
12435 if test -z "$ac_lib"; then
12436 ac_res="none required"
12437 else
12438 ac_res=-l$ac_lib
12439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12440 fi
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (ac_try="$ac_link"
12443 case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446 esac
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_link") 2>conftest.er1
12449 ac_status=$?
12450 grep -v '^ *+' conftest.er1 >conftest.err
12451 rm -f conftest.er1
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12456 { (case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12459 esac
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_try") 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest$ac_exeext'
12466 { (case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12469 esac
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_try") 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_cv_search_clock_gettime=$ac_res
12476 else
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12481 fi
12483 rm -f core conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext
12485 if test "${ac_cv_search_clock_gettime+set}" = set; then
12486 break
12487 fi
12488 done
12489 if test "${ac_cv_search_clock_gettime+set}" = set; then
12490 :
12491 else
12492 ac_cv_search_clock_gettime=no
12493 fi
12494 rm conftest.$ac_ext
12495 LIBS=$ac_func_search_save_LIBS
12496 fi
12497 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12498 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12499 ac_res=$ac_cv_search_clock_gettime
12500 if test "$ac_res" != no; then
12501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12503 fi
12506 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12507 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12508 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12509 if test "${ac_cv_search_setupterm+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512 ac_func_search_save_LIBS=$LIBS
12513 cat >conftest.$ac_ext <<_ACEOF
12514 /* confdefs.h. */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12520 /* Override any GCC internal prototype to avoid an error.
12521 Use char because int might match the return type of a GCC
12522 builtin and then its argument prototype would still apply. */
12523 #ifdef __cplusplus
12524 extern "C"
12525 #endif
12526 char setupterm ();
12527 int
12528 main ()
12529 {
12530 return setupterm ();
12531 ;
12532 return 0;
12533 }
12534 _ACEOF
12535 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12536 if test -z "$ac_lib"; then
12537 ac_res="none required"
12538 else
12539 ac_res=-l$ac_lib
12540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12541 fi
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (ac_try="$ac_link"
12544 case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_link") 2>conftest.er1
12550 ac_status=$?
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } &&
12556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12557 { (case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12560 esac
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_try") 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; } &&
12566 { ac_try='test -s conftest$ac_exeext'
12567 { (case "(($ac_try" in
12568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569 *) ac_try_echo=$ac_try;;
12570 esac
12571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572 (eval "$ac_try") 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 ac_cv_search_setupterm=$ac_res
12577 else
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12582 fi
12584 rm -f core conftest.err conftest.$ac_objext \
12585 conftest$ac_exeext
12586 if test "${ac_cv_search_setupterm+set}" = set; then
12587 break
12588 fi
12589 done
12590 if test "${ac_cv_search_setupterm+set}" = set; then
12591 :
12592 else
12593 ac_cv_search_setupterm=no
12594 fi
12595 rm conftest.$ac_ext
12596 LIBS=$ac_func_search_save_LIBS
12597 fi
12598 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12599 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12600 ac_res=$ac_cv_search_setupterm
12601 if test "$ac_res" != no; then
12602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12605 cat >>confdefs.h <<\_ACEOF
12606 #define HAVE_TERMINFO 1
12607 _ACEOF
12609 HAVE_TERMINFO='1'
12612 fi
12614 fi
12616 if test "$llvm_cv_enable_libedit" = "yes" ; then
12617 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
12618 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
12619 if test "${ac_cv_search_el_init+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622 ac_func_search_save_LIBS=$LIBS
12623 cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h. */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12630 /* Override any GCC internal prototype to avoid an error.
12631 Use char because int might match the return type of a GCC
12632 builtin and then its argument prototype would still apply. */
12633 #ifdef __cplusplus
12634 extern "C"
12635 #endif
12636 char el_init ();
12637 int
12638 main ()
12639 {
12640 return el_init ();
12641 ;
12642 return 0;
12643 }
12644 _ACEOF
12645 for ac_lib in '' edit; do
12646 if test -z "$ac_lib"; then
12647 ac_res="none required"
12648 else
12649 ac_res=-l$ac_lib
12650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12651 fi
12652 rm -f conftest.$ac_objext conftest$ac_exeext
12653 if { (ac_try="$ac_link"
12654 case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12657 esac
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_link") 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12667 { (case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12670 esac
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_try") 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; } &&
12676 { ac_try='test -s conftest$ac_exeext'
12677 { (case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12680 esac
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_try") 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; }; then
12686 ac_cv_search_el_init=$ac_res
12687 else
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12692 fi
12694 rm -f core conftest.err conftest.$ac_objext \
12695 conftest$ac_exeext
12696 if test "${ac_cv_search_el_init+set}" = set; then
12697 break
12698 fi
12699 done
12700 if test "${ac_cv_search_el_init+set}" = set; then
12701 :
12702 else
12703 ac_cv_search_el_init=no
12704 fi
12705 rm conftest.$ac_ext
12706 LIBS=$ac_func_search_save_LIBS
12707 fi
12708 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
12709 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
12710 ac_res=$ac_cv_search_el_init
12711 if test "$ac_res" != no; then
12712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12714 cat >>confdefs.h <<\_ACEOF
12715 #define HAVE_LIBEDIT 1
12716 _ACEOF
12718 fi
12720 fi
12722 if test "$llvm_cv_enable_libffi" = "yes" ; then
12723 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12724 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12725 if test "${ac_cv_search_ffi_call+set}" = set; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 else
12728 ac_func_search_save_LIBS=$LIBS
12729 cat >conftest.$ac_ext <<_ACEOF
12730 /* confdefs.h. */
12731 _ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12736 /* Override any GCC internal prototype to avoid an error.
12737 Use char because int might match the return type of a GCC
12738 builtin and then its argument prototype would still apply. */
12739 #ifdef __cplusplus
12740 extern "C"
12741 #endif
12742 char ffi_call ();
12743 int
12744 main ()
12745 {
12746 return ffi_call ();
12747 ;
12748 return 0;
12749 }
12750 _ACEOF
12751 for ac_lib in '' ffi; do
12752 if test -z "$ac_lib"; then
12753 ac_res="none required"
12754 else
12755 ac_res=-l$ac_lib
12756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12757 fi
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (ac_try="$ac_link"
12760 case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12763 esac
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_link") 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12773 { (case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_try") 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } &&
12782 { ac_try='test -s conftest$ac_exeext'
12783 { (case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786 esac
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_try") 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 ac_cv_search_ffi_call=$ac_res
12793 else
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12798 fi
12800 rm -f core conftest.err conftest.$ac_objext \
12801 conftest$ac_exeext
12802 if test "${ac_cv_search_ffi_call+set}" = set; then
12803 break
12804 fi
12805 done
12806 if test "${ac_cv_search_ffi_call+set}" = set; then
12807 :
12808 else
12809 ac_cv_search_ffi_call=no
12810 fi
12811 rm conftest.$ac_ext
12812 LIBS=$ac_func_search_save_LIBS
12813 fi
12814 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12815 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12816 ac_res=$ac_cv_search_ffi_call
12817 if test "$ac_res" != no; then
12818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12820 cat >>confdefs.h <<\_ACEOF
12821 #define HAVE_FFI_CALL 1
12822 _ACEOF
12824 else
12825 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12826 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12827 { (exit 1); exit 1; }; }
12828 fi
12830 fi
12832 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12833 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12834 if test "${ac_cv_search_mallinfo+set}" = set; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 else
12837 ac_func_search_save_LIBS=$LIBS
12838 cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h. */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12845 /* Override any GCC internal prototype to avoid an error.
12846 Use char because int might match the return type of a GCC
12847 builtin and then its argument prototype would still apply. */
12848 #ifdef __cplusplus
12849 extern "C"
12850 #endif
12851 char mallinfo ();
12852 int
12853 main ()
12854 {
12855 return mallinfo ();
12856 ;
12857 return 0;
12858 }
12859 _ACEOF
12860 for ac_lib in '' malloc; do
12861 if test -z "$ac_lib"; then
12862 ac_res="none required"
12863 else
12864 ac_res=-l$ac_lib
12865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12866 fi
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
12875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 ac_cv_search_mallinfo=$ac_res
12902 else
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12907 fi
12909 rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext
12911 if test "${ac_cv_search_mallinfo+set}" = set; then
12912 break
12913 fi
12914 done
12915 if test "${ac_cv_search_mallinfo+set}" = set; then
12916 :
12917 else
12918 ac_cv_search_mallinfo=no
12919 fi
12920 rm conftest.$ac_ext
12921 LIBS=$ac_func_search_save_LIBS
12922 fi
12923 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12924 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12925 ac_res=$ac_cv_search_mallinfo
12926 if test "$ac_res" != no; then
12927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12929 cat >>confdefs.h <<\_ACEOF
12930 #define HAVE_MALLINFO 1
12931 _ACEOF
12933 fi
12936 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12938 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12939 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12940 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 else
12943 ac_check_lib_save_LIBS=$LIBS
12944 LIBS="-lpthread $LIBS"
12945 cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h. */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12952 /* Override any GCC internal prototype to avoid an error.
12953 Use char because int might match the return type of a GCC
12954 builtin and then its argument prototype would still apply. */
12955 #ifdef __cplusplus
12956 extern "C"
12957 #endif
12958 char pthread_mutex_init ();
12959 int
12960 main ()
12961 {
12962 return pthread_mutex_init ();
12963 ;
12964 return 0;
12965 }
12966 _ACEOF
12967 rm -f conftest.$ac_objext conftest$ac_exeext
12968 if { (ac_try="$ac_link"
12969 case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12972 esac
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_link") 2>conftest.er1
12975 ac_status=$?
12976 grep -v '^ *+' conftest.er1 >conftest.err
12977 rm -f conftest.er1
12978 cat conftest.err >&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } &&
12981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12982 { (case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12985 esac
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_try") 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } &&
12991 { ac_try='test -s conftest$ac_exeext'
12992 { (case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12995 esac
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_try") 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_lib_pthread_pthread_mutex_init=yes
13002 else
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13006 ac_cv_lib_pthread_pthread_mutex_init=no
13007 fi
13009 rm -f core conftest.err conftest.$ac_objext \
13010 conftest$ac_exeext conftest.$ac_ext
13011 LIBS=$ac_check_lib_save_LIBS
13012 fi
13013 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13014 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13015 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13016 cat >>confdefs.h <<_ACEOF
13017 #define HAVE_LIBPTHREAD 1
13018 _ACEOF
13020 LIBS="-lpthread $LIBS"
13022 fi
13024 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13025 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13026 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13027 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 else
13029 ac_func_search_save_LIBS=$LIBS
13030 cat >conftest.$ac_ext <<_ACEOF
13031 /* confdefs.h. */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13037 /* Override any GCC internal prototype to avoid an error.
13038 Use char because int might match the return type of a GCC
13039 builtin and then its argument prototype would still apply. */
13040 #ifdef __cplusplus
13041 extern "C"
13042 #endif
13043 char pthread_mutex_lock ();
13044 int
13045 main ()
13046 {
13047 return pthread_mutex_lock ();
13048 ;
13049 return 0;
13050 }
13051 _ACEOF
13052 for ac_lib in '' pthread; do
13053 if test -z "$ac_lib"; then
13054 ac_res="none required"
13055 else
13056 ac_res=-l$ac_lib
13057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13058 fi
13059 rm -f conftest.$ac_objext conftest$ac_exeext
13060 if { (ac_try="$ac_link"
13061 case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13064 esac
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_link") 2>conftest.er1
13067 ac_status=$?
13068 grep -v '^ *+' conftest.er1 >conftest.err
13069 rm -f conftest.er1
13070 cat conftest.err >&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } &&
13073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13074 { (case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077 esac
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_try") 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; } &&
13083 { ac_try='test -s conftest$ac_exeext'
13084 { (case "(($ac_try" in
13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086 *) ac_try_echo=$ac_try;;
13087 esac
13088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089 (eval "$ac_try") 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13093 ac_cv_search_pthread_mutex_lock=$ac_res
13094 else
13095 echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13099 fi
13101 rm -f core conftest.err conftest.$ac_objext \
13102 conftest$ac_exeext
13103 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13104 break
13105 fi
13106 done
13107 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13108 :
13109 else
13110 ac_cv_search_pthread_mutex_lock=no
13111 fi
13112 rm conftest.$ac_ext
13113 LIBS=$ac_func_search_save_LIBS
13114 fi
13115 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13116 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13117 ac_res=$ac_cv_search_pthread_mutex_lock
13118 if test "$ac_res" != no; then
13119 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13121 cat >>confdefs.h <<\_ACEOF
13122 #define HAVE_PTHREAD_MUTEX_LOCK 1
13123 _ACEOF
13125 fi
13127 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13128 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13129 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132 ac_func_search_save_LIBS=$LIBS
13133 cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h. */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13140 /* Override any GCC internal prototype to avoid an error.
13141 Use char because int might match the return type of a GCC
13142 builtin and then its argument prototype would still apply. */
13143 #ifdef __cplusplus
13144 extern "C"
13145 #endif
13146 char pthread_rwlock_init ();
13147 int
13148 main ()
13149 {
13150 return pthread_rwlock_init ();
13151 ;
13152 return 0;
13153 }
13154 _ACEOF
13155 for ac_lib in '' pthread; do
13156 if test -z "$ac_lib"; then
13157 ac_res="none required"
13158 else
13159 ac_res=-l$ac_lib
13160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13161 fi
13162 rm -f conftest.$ac_objext conftest$ac_exeext
13163 if { (ac_try="$ac_link"
13164 case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167 esac
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169 (eval "$ac_link") 2>conftest.er1
13170 ac_status=$?
13171 grep -v '^ *+' conftest.er1 >conftest.err
13172 rm -f conftest.er1
13173 cat conftest.err >&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } &&
13176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13177 { (case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180 esac
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_try") 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; } &&
13186 { ac_try='test -s conftest$ac_exeext'
13187 { (case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13190 esac
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_try") 2>&5
13193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
13196 ac_cv_search_pthread_rwlock_init=$ac_res
13197 else
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13202 fi
13204 rm -f core conftest.err conftest.$ac_objext \
13205 conftest$ac_exeext
13206 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13207 break
13208 fi
13209 done
13210 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13211 :
13212 else
13213 ac_cv_search_pthread_rwlock_init=no
13214 fi
13215 rm conftest.$ac_ext
13216 LIBS=$ac_func_search_save_LIBS
13217 fi
13218 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13219 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13220 ac_res=$ac_cv_search_pthread_rwlock_init
13221 if test "$ac_res" != no; then
13222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13224 cat >>confdefs.h <<\_ACEOF
13225 #define HAVE_PTHREAD_RWLOCK_INIT 1
13226 _ACEOF
13228 fi
13230 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13231 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13232 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235 ac_func_search_save_LIBS=$LIBS
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h. */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13243 /* Override any GCC internal prototype to avoid an error.
13244 Use char because int might match the return type of a GCC
13245 builtin and then its argument prototype would still apply. */
13246 #ifdef __cplusplus
13247 extern "C"
13248 #endif
13249 char pthread_getspecific ();
13250 int
13251 main ()
13252 {
13253 return pthread_getspecific ();
13254 ;
13255 return 0;
13256 }
13257 _ACEOF
13258 for ac_lib in '' pthread; do
13259 if test -z "$ac_lib"; then
13260 ac_res="none required"
13261 else
13262 ac_res=-l$ac_lib
13263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13264 fi
13265 rm -f conftest.$ac_objext conftest$ac_exeext
13266 if { (ac_try="$ac_link"
13267 case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13270 esac
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_link") 2>conftest.er1
13273 ac_status=$?
13274 grep -v '^ *+' conftest.er1 >conftest.err
13275 rm -f conftest.er1
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
13279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13280 { (case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_try") 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } &&
13289 { ac_try='test -s conftest$ac_exeext'
13290 { (case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13293 esac
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_try") 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; }; then
13299 ac_cv_search_pthread_getspecific=$ac_res
13300 else
13301 echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13305 fi
13307 rm -f core conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext
13309 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13310 break
13311 fi
13312 done
13313 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13314 :
13315 else
13316 ac_cv_search_pthread_getspecific=no
13317 fi
13318 rm conftest.$ac_ext
13319 LIBS=$ac_func_search_save_LIBS
13320 fi
13321 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13322 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13323 ac_res=$ac_cv_search_pthread_getspecific
13324 if test "$ac_res" != no; then
13325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13327 cat >>confdefs.h <<\_ACEOF
13328 #define HAVE_PTHREAD_GETSPECIFIC 1
13329 _ACEOF
13331 fi
13333 fi
13335 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13337 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13338 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13339 if test "${ac_cv_lib_z_compress2+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 else
13342 ac_check_lib_save_LIBS=$LIBS
13343 LIBS="-lz $LIBS"
13344 cat >conftest.$ac_ext <<_ACEOF
13345 /* confdefs.h. */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13351 /* Override any GCC internal prototype to avoid an error.
13352 Use char because int might match the return type of a GCC
13353 builtin and then its argument prototype would still apply. */
13354 #ifdef __cplusplus
13355 extern "C"
13356 #endif
13357 char compress2 ();
13358 int
13359 main ()
13360 {
13361 return compress2 ();
13362 ;
13363 return 0;
13364 }
13365 _ACEOF
13366 rm -f conftest.$ac_objext conftest$ac_exeext
13367 if { (ac_try="$ac_link"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13371 esac
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_link") 2>conftest.er1
13374 ac_status=$?
13375 grep -v '^ *+' conftest.er1 >conftest.err
13376 rm -f conftest.er1
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } &&
13380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384 esac
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try='test -s conftest$ac_exeext'
13391 { (case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13394 esac
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396 (eval "$ac_try") 2>&5
13397 ac_status=$?
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13400 ac_cv_lib_z_compress2=yes
13401 else
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13405 ac_cv_lib_z_compress2=no
13406 fi
13408 rm -f core conftest.err conftest.$ac_objext \
13409 conftest$ac_exeext conftest.$ac_ext
13410 LIBS=$ac_check_lib_save_LIBS
13411 fi
13412 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13413 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13414 if test $ac_cv_lib_z_compress2 = yes; then
13415 cat >>confdefs.h <<_ACEOF
13416 #define HAVE_LIBZ 1
13417 _ACEOF
13419 LIBS="-lz $LIBS"
13421 fi
13423 fi
13426 # Check whether --with-udis86 was given.
13427 if test "${with_udis86+set}" = set; then
13428 withval=$with_udis86;
13429 USE_UDIS86=1
13431 case "$withval" in
13432 /usr/lib|yes) ;;
13433 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13434 esac
13436 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13437 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13438 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441 ac_check_lib_save_LIBS=$LIBS
13442 LIBS="-ludis86 $LIBS"
13443 cat >conftest.$ac_ext <<_ACEOF
13444 /* confdefs.h. */
13445 _ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13450 /* Override any GCC internal prototype to avoid an error.
13451 Use char because int might match the return type of a GCC
13452 builtin and then its argument prototype would still apply. */
13453 #ifdef __cplusplus
13454 extern "C"
13455 #endif
13456 char ud_init ();
13457 int
13458 main ()
13459 {
13460 return ud_init ();
13461 ;
13462 return 0;
13463 }
13464 _ACEOF
13465 rm -f conftest.$ac_objext conftest$ac_exeext
13466 if { (ac_try="$ac_link"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_link") 2>conftest.er1
13473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } &&
13479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13480 { (case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13483 esac
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_try") 2>&5
13486 ac_status=$?
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; } &&
13489 { ac_try='test -s conftest$ac_exeext'
13490 { (case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13493 esac
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_try") 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_lib_udis86_ud_init=yes
13500 else
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 ac_cv_lib_udis86_ud_init=no
13505 fi
13507 rm -f core conftest.err conftest.$ac_objext \
13508 conftest$ac_exeext conftest.$ac_ext
13509 LIBS=$ac_check_lib_save_LIBS
13510 fi
13511 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13512 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13513 if test $ac_cv_lib_udis86_ud_init = yes; then
13514 cat >>confdefs.h <<_ACEOF
13515 #define HAVE_LIBUDIS86 1
13516 _ACEOF
13518 LIBS="-ludis86 $LIBS"
13520 else
13522 echo "Error! You need to have libudis86 around."
13523 exit -1
13525 fi
13528 else
13529 USE_UDIS86=0
13531 fi
13534 cat >>confdefs.h <<_ACEOF
13535 #define USE_UDIS86 $USE_UDIS86
13536 _ACEOF
13540 # Check whether --with-oprofile was given.
13541 if test "${with_oprofile+set}" = set; then
13542 withval=$with_oprofile;
13543 USE_OPROFILE=1
13545 case "$withval" in
13546 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13547 no) llvm_cv_oppath=
13548 USE_OPROFILE=0
13549 ;;
13550 *) llvm_cv_oppath="${withval}/lib/oprofile"
13551 CPPFLAGS="-I${withval}/include";;
13552 esac
13553 case $llvm_cv_os_type in
13554 Linux)
13555 if test -n "$llvm_cv_oppath" ; then
13556 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13557 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13558 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13559 if test "${ac_cv_search_bfd_init+set}" = set; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 else
13562 ac_func_search_save_LIBS=$LIBS
13563 cat >conftest.$ac_ext <<_ACEOF
13564 /* confdefs.h. */
13565 _ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13570 /* Override any GCC internal prototype to avoid an error.
13571 Use char because int might match the return type of a GCC
13572 builtin and then its argument prototype would still apply. */
13573 #ifdef __cplusplus
13574 extern "C"
13575 #endif
13576 char bfd_init ();
13577 int
13578 main ()
13579 {
13580 return bfd_init ();
13581 ;
13582 return 0;
13583 }
13584 _ACEOF
13585 for ac_lib in '' bfd; do
13586 if test -z "$ac_lib"; then
13587 ac_res="none required"
13588 else
13589 ac_res=-l$ac_lib
13590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13591 fi
13592 rm -f conftest.$ac_objext conftest$ac_exeext
13593 if { (ac_try="$ac_link"
13594 case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13597 esac
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_link") 2>conftest.er1
13600 ac_status=$?
13601 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13610 esac
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; } &&
13616 { ac_try='test -s conftest$ac_exeext'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 ac_cv_search_bfd_init=$ac_res
13627 else
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13632 fi
13634 rm -f core conftest.err conftest.$ac_objext \
13635 conftest$ac_exeext
13636 if test "${ac_cv_search_bfd_init+set}" = set; then
13637 break
13638 fi
13639 done
13640 if test "${ac_cv_search_bfd_init+set}" = set; then
13641 :
13642 else
13643 ac_cv_search_bfd_init=no
13644 fi
13645 rm conftest.$ac_ext
13646 LIBS=$ac_func_search_save_LIBS
13647 fi
13648 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13649 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13650 ac_res=$ac_cv_search_bfd_init
13651 if test "$ac_res" != no; then
13652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13654 fi
13656 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13657 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13658 if test "${ac_cv_search_op_open_agent+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13661 ac_func_search_save_LIBS=$LIBS
13662 cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h. */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13669 /* Override any GCC internal prototype to avoid an error.
13670 Use char because int might match the return type of a GCC
13671 builtin and then its argument prototype would still apply. */
13672 #ifdef __cplusplus
13673 extern "C"
13674 #endif
13675 char op_open_agent ();
13676 int
13677 main ()
13678 {
13679 return op_open_agent ();
13680 ;
13681 return 0;
13682 }
13683 _ACEOF
13684 for ac_lib in '' opagent; do
13685 if test -z "$ac_lib"; then
13686 ac_res="none required"
13687 else
13688 ac_res=-l$ac_lib
13689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13690 fi
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (ac_try="$ac_link"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13696 esac
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_link") 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13706 { (case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13709 esac
13710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_try") 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
13715 { ac_try='test -s conftest$ac_exeext'
13716 { (case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13719 esac
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_try") 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 ac_cv_search_op_open_agent=$ac_res
13726 else
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13731 fi
13733 rm -f core conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext
13735 if test "${ac_cv_search_op_open_agent+set}" = set; then
13736 break
13737 fi
13738 done
13739 if test "${ac_cv_search_op_open_agent+set}" = set; then
13740 :
13741 else
13742 ac_cv_search_op_open_agent=no
13743 fi
13744 rm conftest.$ac_ext
13745 LIBS=$ac_func_search_save_LIBS
13746 fi
13747 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13748 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13749 ac_res=$ac_cv_search_op_open_agent
13750 if test "$ac_res" != no; then
13751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13753 else
13755 echo "Error! You need to have libopagent around."
13756 exit -1
13758 fi
13760 if test "${ac_cv_header_opagent_h+set}" = set; then
13761 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13762 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13763 if test "${ac_cv_header_opagent_h+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 fi
13766 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13767 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13768 else
13769 # Is the header compilable?
13770 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13771 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13772 cat >conftest.$ac_ext <<_ACEOF
13773 /* confdefs.h. */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 $ac_includes_default
13779 #include <opagent.h>
13780 _ACEOF
13781 rm -f conftest.$ac_objext
13782 if { (ac_try="$ac_compile"
13783 case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13786 esac
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_compile") 2>conftest.er1
13789 ac_status=$?
13790 grep -v '^ *+' conftest.er1 >conftest.err
13791 rm -f conftest.er1
13792 cat conftest.err >&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } &&
13795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13796 { (case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13799 esac
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_try") 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; } &&
13805 { ac_try='test -s conftest.$ac_objext'
13806 { (case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13809 esac
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_try") 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13815 ac_header_compiler=yes
13816 else
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 ac_header_compiler=no
13821 fi
13823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13825 echo "${ECHO_T}$ac_header_compiler" >&6; }
13827 # Is the header present?
13828 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13829 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13830 cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h. */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 #include <opagent.h>
13837 _ACEOF
13838 if { (ac_try="$ac_cpp conftest.$ac_ext"
13839 case "(($ac_try" in
13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841 *) ac_try_echo=$ac_try;;
13842 esac
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13845 ac_status=$?
13846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } >/dev/null; then
13851 if test -s conftest.err; then
13852 ac_cpp_err=$ac_c_preproc_warn_flag
13853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13854 else
13855 ac_cpp_err=
13856 fi
13857 else
13858 ac_cpp_err=yes
13859 fi
13860 if test -z "$ac_cpp_err"; then
13861 ac_header_preproc=yes
13862 else
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13866 ac_header_preproc=no
13867 fi
13869 rm -f conftest.err conftest.$ac_ext
13870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13871 echo "${ECHO_T}$ac_header_preproc" >&6; }
13873 # So? What about this header?
13874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13875 yes:no: )
13876 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13877 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13878 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13879 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13880 ac_header_preproc=yes
13881 ;;
13882 no:yes:* )
13883 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13884 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13886 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13888 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13890 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13891 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13892 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13893 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13894 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13895 ( cat <<\_ASBOX
13896 ## ------------------------------------ ##
13897 ## Report this to http://llvm.org/bugs/ ##
13898 ## ------------------------------------ ##
13899 _ASBOX
13900 ) | sed "s/^/$as_me: WARNING: /" >&2
13901 ;;
13902 esac
13903 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13904 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13905 if test "${ac_cv_header_opagent_h+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 else
13908 ac_cv_header_opagent_h=$ac_header_preproc
13909 fi
13910 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13911 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13913 fi
13914 if test $ac_cv_header_opagent_h = yes; then
13915 :
13916 else
13918 echo "Error! You need to have opagent.h around."
13919 exit -1
13921 fi
13924 fi ;;
13925 *)
13926 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13927 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13928 { (exit 1); exit 1; }; } ;;
13929 esac
13931 else
13933 USE_OPROFILE=0
13936 fi
13939 cat >>confdefs.h <<_ACEOF
13940 #define LLVM_USE_OPROFILE $USE_OPROFILE
13941 _ACEOF
13945 # Check whether --with-intel-jitevents was given.
13946 if test "${with_intel_jitevents+set}" = set; then
13947 withval=$with_intel_jitevents;
13948 case "$withval" in
13949 yes) USE_INTEL_JITEVENTS=1
13950 ;;
13951 no) USE_INTEL_JITEVENTS=0
13952 ;;
13953 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13954 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13955 { (exit 1); exit 1; }; };;
13956 esac
13958 case $llvm_cv_os_type in
13959 Linux|Win32|Cygwin|MingW) ;;
13960 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13961 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13962 { (exit 1); exit 1; }; };;
13963 esac
13965 case "$llvm_cv_target_arch" in
13966 x86|x86_64) ;;
13967 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13968 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13969 { (exit 1); exit 1; }; };;
13970 esac
13972 else
13974 USE_INTEL_JITEVENTS=0
13977 fi
13980 cat >>confdefs.h <<_ACEOF
13981 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13982 _ACEOF
13985 for ac_prog in xml2-config
13986 do
13987 # Extract the first word of "$ac_prog", so it can be a program name with args.
13988 set dummy $ac_prog; ac_word=$2
13989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13991 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 else
13994 if test -n "$XML2CONFIG"; then
13995 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13996 else
13997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13998 for as_dir in $PATH
13999 do
14000 IFS=$as_save_IFS
14001 test -z "$as_dir" && as_dir=.
14002 for ac_exec_ext in '' $ac_executable_extensions; do
14003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14004 ac_cv_prog_XML2CONFIG="$ac_prog"
14005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14006 break 2
14007 fi
14008 done
14009 done
14010 IFS=$as_save_IFS
14012 fi
14013 fi
14014 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14015 if test -n "$XML2CONFIG"; then
14016 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14017 echo "${ECHO_T}$XML2CONFIG" >&6; }
14018 else
14019 { echo "$as_me:$LINENO: result: no" >&5
14020 echo "${ECHO_T}no" >&6; }
14021 fi
14024 test -n "$XML2CONFIG" && break
14025 done
14028 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14029 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14030 if test "x$XML2CONFIG" = "x"; then
14031 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14032 echo "${ECHO_T}xml2-config not found" >&6; }
14033 else
14034 LIBXML2_INC=`$XML2CONFIG --cflags`
14035 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14036 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14037 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14038 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14039 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042 ac_check_lib_save_LIBS=$LIBS
14043 LIBS="-lxml2 $LIBS"
14044 cat >conftest.$ac_ext <<_ACEOF
14045 /* confdefs.h. */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14051 /* Override any GCC internal prototype to avoid an error.
14052 Use char because int might match the return type of a GCC
14053 builtin and then its argument prototype would still apply. */
14054 #ifdef __cplusplus
14055 extern "C"
14056 #endif
14057 char xmlReadFile ();
14058 int
14059 main ()
14060 {
14061 return xmlReadFile ();
14062 ;
14063 return 0;
14064 }
14065 _ACEOF
14066 rm -f conftest.$ac_objext conftest$ac_exeext
14067 if { (ac_try="$ac_link"
14068 case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14071 esac
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_link") 2>conftest.er1
14074 ac_status=$?
14075 grep -v '^ *+' conftest.er1 >conftest.err
14076 rm -f conftest.er1
14077 cat conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } &&
14080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14081 { (case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14084 esac
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_try") 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; } &&
14090 { ac_try='test -s conftest$ac_exeext'
14091 { (case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14094 esac
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_try") 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }; then
14100 ac_cv_lib_xml2_xmlReadFile=yes
14101 else
14102 echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14105 ac_cv_lib_xml2_xmlReadFile=no
14106 fi
14108 rm -f core conftest.err conftest.$ac_objext \
14109 conftest$ac_exeext conftest.$ac_ext
14110 LIBS=$ac_check_lib_save_LIBS
14111 fi
14112 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14113 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14114 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14116 cat >>confdefs.h <<\_ACEOF
14117 #define CLANG_HAVE_LIBXML 1
14118 _ACEOF
14120 LIBXML2_LIBS="-lxml2"
14121 fi
14123 fi
14133 ac_header_dirent=no
14134 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14135 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14136 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14137 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 else
14141 cat >conftest.$ac_ext <<_ACEOF
14142 /* confdefs.h. */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147 #include <sys/types.h>
14148 #include <$ac_hdr>
14150 int
14151 main ()
14152 {
14153 if ((DIR *) 0)
14154 return 0;
14155 ;
14156 return 0;
14157 }
14158 _ACEOF
14159 rm -f conftest.$ac_objext
14160 if { (ac_try="$ac_compile"
14161 case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14164 esac
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_compile") 2>conftest.er1
14167 ac_status=$?
14168 grep -v '^ *+' conftest.er1 >conftest.err
14169 rm -f conftest.er1
14170 cat conftest.err >&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } &&
14173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14174 { (case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14177 esac
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179 (eval "$ac_try") 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; } &&
14183 { ac_try='test -s conftest.$ac_objext'
14184 { (case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14187 esac
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_try") 2>&5
14190 ac_status=$?
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 eval "$as_ac_Header=yes"
14194 else
14195 echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14198 eval "$as_ac_Header=no"
14199 fi
14201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14202 fi
14203 ac_res=`eval echo '${'$as_ac_Header'}'`
14204 { echo "$as_me:$LINENO: result: $ac_res" >&5
14205 echo "${ECHO_T}$ac_res" >&6; }
14206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14207 cat >>confdefs.h <<_ACEOF
14208 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14209 _ACEOF
14211 ac_header_dirent=$ac_hdr; break
14212 fi
14214 done
14215 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14216 if test $ac_header_dirent = dirent.h; then
14217 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14218 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14219 if test "${ac_cv_search_opendir+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222 ac_func_search_save_LIBS=$LIBS
14223 cat >conftest.$ac_ext <<_ACEOF
14224 /* confdefs.h. */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14230 /* Override any GCC internal prototype to avoid an error.
14231 Use char because int might match the return type of a GCC
14232 builtin and then its argument prototype would still apply. */
14233 #ifdef __cplusplus
14234 extern "C"
14235 #endif
14236 char opendir ();
14237 int
14238 main ()
14239 {
14240 return opendir ();
14241 ;
14242 return 0;
14243 }
14244 _ACEOF
14245 for ac_lib in '' dir; do
14246 if test -z "$ac_lib"; then
14247 ac_res="none required"
14248 else
14249 ac_res=-l$ac_lib
14250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14251 fi
14252 rm -f conftest.$ac_objext conftest$ac_exeext
14253 if { (ac_try="$ac_link"
14254 case "(($ac_try" in
14255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256 *) ac_try_echo=$ac_try;;
14257 esac
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259 (eval "$ac_link") 2>conftest.er1
14260 ac_status=$?
14261 grep -v '^ *+' conftest.er1 >conftest.err
14262 rm -f conftest.er1
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14267 { (case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14270 esac
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_try") 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } &&
14276 { ac_try='test -s conftest$ac_exeext'
14277 { (case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14280 esac
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_try") 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14286 ac_cv_search_opendir=$ac_res
14287 else
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14292 fi
14294 rm -f core conftest.err conftest.$ac_objext \
14295 conftest$ac_exeext
14296 if test "${ac_cv_search_opendir+set}" = set; then
14297 break
14298 fi
14299 done
14300 if test "${ac_cv_search_opendir+set}" = set; then
14301 :
14302 else
14303 ac_cv_search_opendir=no
14304 fi
14305 rm conftest.$ac_ext
14306 LIBS=$ac_func_search_save_LIBS
14307 fi
14308 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14309 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14310 ac_res=$ac_cv_search_opendir
14311 if test "$ac_res" != no; then
14312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14314 fi
14316 else
14317 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14318 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14319 if test "${ac_cv_search_opendir+set}" = set; then
14320 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 else
14322 ac_func_search_save_LIBS=$LIBS
14323 cat >conftest.$ac_ext <<_ACEOF
14324 /* confdefs.h. */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14330 /* Override any GCC internal prototype to avoid an error.
14331 Use char because int might match the return type of a GCC
14332 builtin and then its argument prototype would still apply. */
14333 #ifdef __cplusplus
14334 extern "C"
14335 #endif
14336 char opendir ();
14337 int
14338 main ()
14339 {
14340 return opendir ();
14341 ;
14342 return 0;
14343 }
14344 _ACEOF
14345 for ac_lib in '' x; do
14346 if test -z "$ac_lib"; then
14347 ac_res="none required"
14348 else
14349 ac_res=-l$ac_lib
14350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14351 fi
14352 rm -f conftest.$ac_objext conftest$ac_exeext
14353 if { (ac_try="$ac_link"
14354 case "(($ac_try" in
14355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356 *) ac_try_echo=$ac_try;;
14357 esac
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359 (eval "$ac_link") 2>conftest.er1
14360 ac_status=$?
14361 grep -v '^ *+' conftest.er1 >conftest.err
14362 rm -f conftest.er1
14363 cat conftest.err >&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); } &&
14366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14367 { (case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14370 esac
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_try") 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; } &&
14376 { ac_try='test -s conftest$ac_exeext'
14377 { (case "(($ac_try" in
14378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379 *) ac_try_echo=$ac_try;;
14380 esac
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382 (eval "$ac_try") 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 ac_cv_search_opendir=$ac_res
14387 else
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14392 fi
14394 rm -f core conftest.err conftest.$ac_objext \
14395 conftest$ac_exeext
14396 if test "${ac_cv_search_opendir+set}" = set; then
14397 break
14398 fi
14399 done
14400 if test "${ac_cv_search_opendir+set}" = set; then
14401 :
14402 else
14403 ac_cv_search_opendir=no
14404 fi
14405 rm conftest.$ac_ext
14406 LIBS=$ac_func_search_save_LIBS
14407 fi
14408 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14409 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14410 ac_res=$ac_cv_search_opendir
14411 if test "$ac_res" != no; then
14412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14414 fi
14416 fi
14418 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14419 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14420 if test "${ac_cv_header_mmap_anon+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423 ac_ext=c
14424 ac_cpp='$CPP $CPPFLAGS'
14425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14429 cat >conftest.$ac_ext <<_ACEOF
14430 /* confdefs.h. */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14435 #include <sys/mman.h>
14436 #include <unistd.h>
14437 #include <fcntl.h>
14438 int
14439 main ()
14440 {
14441 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14442 ;
14443 return 0;
14444 }
14445 _ACEOF
14446 rm -f conftest.$ac_objext
14447 if { (ac_try="$ac_compile"
14448 case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14451 esac
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453 (eval "$ac_compile") 2>conftest.er1
14454 ac_status=$?
14455 grep -v '^ *+' conftest.er1 >conftest.err
14456 rm -f conftest.er1
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14461 { (case "(($ac_try" in
14462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463 *) ac_try_echo=$ac_try;;
14464 esac
14465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14466 (eval "$ac_try") 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; } &&
14470 { ac_try='test -s conftest.$ac_objext'
14471 { (case "(($ac_try" in
14472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473 *) ac_try_echo=$ac_try;;
14474 esac
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476 (eval "$ac_try") 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; }; then
14480 ac_cv_header_mmap_anon=yes
14481 else
14482 echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.$ac_ext >&5
14485 ac_cv_header_mmap_anon=no
14486 fi
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489 ac_ext=c
14490 ac_cpp='$CPP $CPPFLAGS'
14491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14496 fi
14497 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14498 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14499 if test "$ac_cv_header_mmap_anon" = yes; then
14501 cat >>confdefs.h <<\_ACEOF
14502 #define HAVE_MMAP_ANONYMOUS 1
14503 _ACEOF
14505 fi
14507 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14508 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14509 if test "${ac_cv_header_stat_broken+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 else
14512 cat >conftest.$ac_ext <<_ACEOF
14513 /* confdefs.h. */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14518 #include <sys/types.h>
14519 #include <sys/stat.h>
14521 #if defined S_ISBLK && defined S_IFDIR
14522 # if S_ISBLK (S_IFDIR)
14523 You lose.
14524 # endif
14525 #endif
14527 #if defined S_ISBLK && defined S_IFCHR
14528 # if S_ISBLK (S_IFCHR)
14529 You lose.
14530 # endif
14531 #endif
14533 #if defined S_ISLNK && defined S_IFREG
14534 # if S_ISLNK (S_IFREG)
14535 You lose.
14536 # endif
14537 #endif
14539 #if defined S_ISSOCK && defined S_IFREG
14540 # if S_ISSOCK (S_IFREG)
14541 You lose.
14542 # endif
14543 #endif
14545 _ACEOF
14546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14547 $EGREP "You lose" >/dev/null 2>&1; then
14548 ac_cv_header_stat_broken=yes
14549 else
14550 ac_cv_header_stat_broken=no
14551 fi
14552 rm -f conftest*
14554 fi
14555 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14556 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14557 if test $ac_cv_header_stat_broken = yes; then
14559 cat >>confdefs.h <<\_ACEOF
14560 #define STAT_MACROS_BROKEN 1
14561 _ACEOF
14563 fi
14565 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14566 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14567 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 else
14570 cat >conftest.$ac_ext <<_ACEOF
14571 /* confdefs.h. */
14572 _ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14576 #include <sys/types.h>
14577 #include <sys/wait.h>
14578 #ifndef WEXITSTATUS
14579 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14580 #endif
14581 #ifndef WIFEXITED
14582 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14583 #endif
14585 int
14586 main ()
14587 {
14588 int s;
14589 wait (&s);
14590 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14591 ;
14592 return 0;
14593 }
14594 _ACEOF
14595 rm -f conftest.$ac_objext
14596 if { (ac_try="$ac_compile"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_compile") 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; } &&
14619 { ac_try='test -s conftest.$ac_objext'
14620 { (case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14623 esac
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_try") 2>&5
14626 ac_status=$?
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14629 ac_cv_header_sys_wait_h=yes
14630 else
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ac_cv_header_sys_wait_h=no
14635 fi
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638 fi
14639 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14640 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14641 if test $ac_cv_header_sys_wait_h = yes; then
14643 cat >>confdefs.h <<\_ACEOF
14644 #define HAVE_SYS_WAIT_H 1
14645 _ACEOF
14647 fi
14649 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14650 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14651 if test "${ac_cv_header_time+set}" = set; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 else
14654 cat >conftest.$ac_ext <<_ACEOF
14655 /* confdefs.h. */
14656 _ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14660 #include <sys/types.h>
14661 #include <sys/time.h>
14662 #include <time.h>
14664 int
14665 main ()
14666 {
14667 if ((struct tm *) 0)
14668 return 0;
14669 ;
14670 return 0;
14671 }
14672 _ACEOF
14673 rm -f conftest.$ac_objext
14674 if { (ac_try="$ac_compile"
14675 case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14678 esac
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_compile") 2>conftest.er1
14681 ac_status=$?
14682 grep -v '^ *+' conftest.er1 >conftest.err
14683 rm -f conftest.er1
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } &&
14687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14688 { (case "(($ac_try" in
14689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14691 esac
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693 (eval "$ac_try") 2>&5
14694 ac_status=$?
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; } &&
14697 { ac_try='test -s conftest.$ac_objext'
14698 { (case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14701 esac
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_try") 2>&5
14704 ac_status=$?
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }; then
14707 ac_cv_header_time=yes
14708 else
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14712 ac_cv_header_time=no
14713 fi
14715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716 fi
14717 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14718 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14719 if test $ac_cv_header_time = yes; then
14721 cat >>confdefs.h <<\_ACEOF
14722 #define TIME_WITH_SYS_TIME 1
14723 _ACEOF
14725 fi
14728 ac_ext=cpp
14729 ac_cpp='$CXXCPP $CPPFLAGS'
14730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14734 ac_ext=cpp
14735 ac_cpp='$CXXCPP $CPPFLAGS'
14736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14739 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14740 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14741 if test -z "$CXXCPP"; then
14742 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745 # Double quotes because CXXCPP needs to be expanded
14746 for CXXCPP in "$CXX -E" "/lib/cpp"
14747 do
14748 ac_preproc_ok=false
14749 for ac_cxx_preproc_warn_flag in '' yes
14750 do
14751 # Use a header file that comes with gcc, so configuring glibc
14752 # with a fresh cross-compiler works.
14753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14754 # <limits.h> exists even on freestanding compilers.
14755 # On the NeXT, cc -E runs the code through the compiler's parser,
14756 # not just through cpp. "Syntax error" is here to catch this case.
14757 cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h. */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 #ifdef __STDC__
14764 # include <limits.h>
14765 #else
14766 # include <assert.h>
14767 #endif
14768 Syntax error
14769 _ACEOF
14770 if { (ac_try="$ac_cpp conftest.$ac_ext"
14771 case "(($ac_try" in
14772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773 *) ac_try_echo=$ac_try;;
14774 esac
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14777 ac_status=$?
14778 grep -v '^ *+' conftest.er1 >conftest.err
14779 rm -f conftest.er1
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } >/dev/null; then
14783 if test -s conftest.err; then
14784 ac_cpp_err=$ac_cxx_preproc_warn_flag
14785 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14786 else
14787 ac_cpp_err=
14788 fi
14789 else
14790 ac_cpp_err=yes
14791 fi
14792 if test -z "$ac_cpp_err"; then
14793 :
14794 else
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14798 # Broken: fails on valid input.
14799 continue
14800 fi
14802 rm -f conftest.err conftest.$ac_ext
14804 # OK, works on sane cases. Now check whether nonexistent headers
14805 # can be detected and how.
14806 cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h. */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 #include <ac_nonexistent.h>
14813 _ACEOF
14814 if { (ac_try="$ac_cpp conftest.$ac_ext"
14815 case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14818 esac
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14821 ac_status=$?
14822 grep -v '^ *+' conftest.er1 >conftest.err
14823 rm -f conftest.er1
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } >/dev/null; then
14827 if test -s conftest.err; then
14828 ac_cpp_err=$ac_cxx_preproc_warn_flag
14829 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14830 else
14831 ac_cpp_err=
14832 fi
14833 else
14834 ac_cpp_err=yes
14835 fi
14836 if test -z "$ac_cpp_err"; then
14837 # Broken: success on invalid input.
14838 continue
14839 else
14840 echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14843 # Passes both tests.
14844 ac_preproc_ok=:
14845 break
14846 fi
14848 rm -f conftest.err conftest.$ac_ext
14850 done
14851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14852 rm -f conftest.err conftest.$ac_ext
14853 if $ac_preproc_ok; then
14854 break
14855 fi
14857 done
14858 ac_cv_prog_CXXCPP=$CXXCPP
14860 fi
14861 CXXCPP=$ac_cv_prog_CXXCPP
14862 else
14863 ac_cv_prog_CXXCPP=$CXXCPP
14864 fi
14865 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14866 echo "${ECHO_T}$CXXCPP" >&6; }
14867 ac_preproc_ok=false
14868 for ac_cxx_preproc_warn_flag in '' yes
14869 do
14870 # Use a header file that comes with gcc, so configuring glibc
14871 # with a fresh cross-compiler works.
14872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14873 # <limits.h> exists even on freestanding compilers.
14874 # On the NeXT, cc -E runs the code through the compiler's parser,
14875 # not just through cpp. "Syntax error" is here to catch this case.
14876 cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h. */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14882 #ifdef __STDC__
14883 # include <limits.h>
14884 #else
14885 # include <assert.h>
14886 #endif
14887 Syntax error
14888 _ACEOF
14889 if { (ac_try="$ac_cpp conftest.$ac_ext"
14890 case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14893 esac
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14896 ac_status=$?
14897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } >/dev/null; then
14902 if test -s conftest.err; then
14903 ac_cpp_err=$ac_cxx_preproc_warn_flag
14904 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14905 else
14906 ac_cpp_err=
14907 fi
14908 else
14909 ac_cpp_err=yes
14910 fi
14911 if test -z "$ac_cpp_err"; then
14912 :
14913 else
14914 echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14917 # Broken: fails on valid input.
14918 continue
14919 fi
14921 rm -f conftest.err conftest.$ac_ext
14923 # OK, works on sane cases. Now check whether nonexistent headers
14924 # can be detected and how.
14925 cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h. */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 #include <ac_nonexistent.h>
14932 _ACEOF
14933 if { (ac_try="$ac_cpp conftest.$ac_ext"
14934 case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14937 esac
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14940 ac_status=$?
14941 grep -v '^ *+' conftest.er1 >conftest.err
14942 rm -f conftest.er1
14943 cat conftest.err >&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } >/dev/null; then
14946 if test -s conftest.err; then
14947 ac_cpp_err=$ac_cxx_preproc_warn_flag
14948 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14949 else
14950 ac_cpp_err=
14951 fi
14952 else
14953 ac_cpp_err=yes
14954 fi
14955 if test -z "$ac_cpp_err"; then
14956 # Broken: success on invalid input.
14957 continue
14958 else
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14962 # Passes both tests.
14963 ac_preproc_ok=:
14964 break
14965 fi
14967 rm -f conftest.err conftest.$ac_ext
14969 done
14970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14971 rm -f conftest.err conftest.$ac_ext
14972 if $ac_preproc_ok; then
14973 :
14974 else
14975 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14976 See \`config.log' for more details." >&5
14977 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14978 See \`config.log' for more details." >&2;}
14979 { (exit 1); exit 1; }; }
14980 fi
14982 ac_ext=cpp
14983 ac_cpp='$CXXCPP $CPPFLAGS'
14984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14990 for ac_header in cxxabi.h
14991 do
14992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 fi
14999 ac_res=`eval echo '${'$as_ac_Header'}'`
15000 { echo "$as_me:$LINENO: result: $ac_res" >&5
15001 echo "${ECHO_T}$ac_res" >&6; }
15002 else
15003 # Is the header compilable?
15004 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15006 cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h. */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 $ac_includes_default
15013 #include <$ac_header>
15014 _ACEOF
15015 rm -f conftest.$ac_objext
15016 if { (ac_try="$ac_compile"
15017 case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15020 esac
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_compile") 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15030 { (case "(($ac_try" in
15031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032 *) ac_try_echo=$ac_try;;
15033 esac
15034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035 (eval "$ac_try") 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; } &&
15039 { ac_try='test -s conftest.$ac_objext'
15040 { (case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15043 esac
15044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_try") 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_header_compiler=yes
15050 else
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15054 ac_header_compiler=no
15055 fi
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15059 echo "${ECHO_T}$ac_header_compiler" >&6; }
15061 # Is the header present?
15062 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15064 cat >conftest.$ac_ext <<_ACEOF
15065 /* confdefs.h. */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 #include <$ac_header>
15071 _ACEOF
15072 if { (ac_try="$ac_cpp conftest.$ac_ext"
15073 case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15076 esac
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15079 ac_status=$?
15080 grep -v '^ *+' conftest.er1 >conftest.err
15081 rm -f conftest.er1
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } >/dev/null; then
15085 if test -s conftest.err; then
15086 ac_cpp_err=$ac_cxx_preproc_warn_flag
15087 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15088 else
15089 ac_cpp_err=
15090 fi
15091 else
15092 ac_cpp_err=yes
15093 fi
15094 if test -z "$ac_cpp_err"; then
15095 ac_header_preproc=yes
15096 else
15097 echo "$as_me: failed program was:" >&5
15098 sed 's/^/| /' conftest.$ac_ext >&5
15100 ac_header_preproc=no
15101 fi
15103 rm -f conftest.err conftest.$ac_ext
15104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15105 echo "${ECHO_T}$ac_header_preproc" >&6; }
15107 # So? What about this header?
15108 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15109 yes:no: )
15110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15114 ac_header_preproc=yes
15115 ;;
15116 no:yes:* )
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15129 ( cat <<\_ASBOX
15130 ## ------------------------------------ ##
15131 ## Report this to http://llvm.org/bugs/ ##
15132 ## ------------------------------------ ##
15133 _ASBOX
15134 ) | sed "s/^/$as_me: WARNING: /" >&2
15135 ;;
15136 esac
15137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 else
15142 eval "$as_ac_Header=\$ac_header_preproc"
15143 fi
15144 ac_res=`eval echo '${'$as_ac_Header'}'`
15145 { echo "$as_me:$LINENO: result: $ac_res" >&5
15146 echo "${ECHO_T}$ac_res" >&6; }
15148 fi
15149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15150 cat >>confdefs.h <<_ACEOF
15151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15152 _ACEOF
15154 fi
15156 done
15158 ac_ext=c
15159 ac_cpp='$CPP $CPPFLAGS'
15160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15169 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
15170 do
15171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 fi
15178 ac_res=`eval echo '${'$as_ac_Header'}'`
15179 { echo "$as_me:$LINENO: result: $ac_res" >&5
15180 echo "${ECHO_T}$ac_res" >&6; }
15181 else
15182 # Is the header compilable?
15183 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15185 cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h. */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 $ac_includes_default
15192 #include <$ac_header>
15193 _ACEOF
15194 rm -f conftest.$ac_objext
15195 if { (ac_try="$ac_compile"
15196 case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15199 esac
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201 (eval "$ac_compile") 2>conftest.er1
15202 ac_status=$?
15203 grep -v '^ *+' conftest.er1 >conftest.err
15204 rm -f conftest.er1
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } &&
15208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15209 { (case "(($ac_try" in
15210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211 *) ac_try_echo=$ac_try;;
15212 esac
15213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15214 (eval "$ac_try") 2>&5
15215 ac_status=$?
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; } &&
15218 { ac_try='test -s conftest.$ac_objext'
15219 { (case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15222 esac
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_try") 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; }; then
15228 ac_header_compiler=yes
15229 else
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15233 ac_header_compiler=no
15234 fi
15236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15238 echo "${ECHO_T}$ac_header_compiler" >&6; }
15240 # Is the header present?
15241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15243 cat >conftest.$ac_ext <<_ACEOF
15244 /* confdefs.h. */
15245 _ACEOF
15246 cat confdefs.h >>conftest.$ac_ext
15247 cat >>conftest.$ac_ext <<_ACEOF
15248 /* end confdefs.h. */
15249 #include <$ac_header>
15250 _ACEOF
15251 if { (ac_try="$ac_cpp conftest.$ac_ext"
15252 case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15255 esac
15256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15258 ac_status=$?
15259 grep -v '^ *+' conftest.er1 >conftest.err
15260 rm -f conftest.er1
15261 cat conftest.err >&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } >/dev/null; then
15264 if test -s conftest.err; then
15265 ac_cpp_err=$ac_c_preproc_warn_flag
15266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15267 else
15268 ac_cpp_err=
15269 fi
15270 else
15271 ac_cpp_err=yes
15272 fi
15273 if test -z "$ac_cpp_err"; then
15274 ac_header_preproc=yes
15275 else
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 ac_header_preproc=no
15280 fi
15282 rm -f conftest.err conftest.$ac_ext
15283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15284 echo "${ECHO_T}$ac_header_preproc" >&6; }
15286 # So? What about this header?
15287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15288 yes:no: )
15289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15293 ac_header_preproc=yes
15294 ;;
15295 no:yes:* )
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15308 ( cat <<\_ASBOX
15309 ## ------------------------------------ ##
15310 ## Report this to http://llvm.org/bugs/ ##
15311 ## ------------------------------------ ##
15312 _ASBOX
15313 ) | sed "s/^/$as_me: WARNING: /" >&2
15314 ;;
15315 esac
15316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15319 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 else
15321 eval "$as_ac_Header=\$ac_header_preproc"
15322 fi
15323 ac_res=`eval echo '${'$as_ac_Header'}'`
15324 { echo "$as_me:$LINENO: result: $ac_res" >&5
15325 echo "${ECHO_T}$ac_res" >&6; }
15327 fi
15328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15329 cat >>confdefs.h <<_ACEOF
15330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15331 _ACEOF
15333 fi
15335 done
15343 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15344 do
15345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 fi
15352 ac_res=`eval echo '${'$as_ac_Header'}'`
15353 { echo "$as_me:$LINENO: result: $ac_res" >&5
15354 echo "${ECHO_T}$ac_res" >&6; }
15355 else
15356 # Is the header compilable?
15357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15359 cat >conftest.$ac_ext <<_ACEOF
15360 /* confdefs.h. */
15361 _ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15365 $ac_includes_default
15366 #include <$ac_header>
15367 _ACEOF
15368 rm -f conftest.$ac_objext
15369 if { (ac_try="$ac_compile"
15370 case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15373 esac
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_compile") 2>conftest.er1
15376 ac_status=$?
15377 grep -v '^ *+' conftest.er1 >conftest.err
15378 rm -f conftest.er1
15379 cat conftest.err >&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } &&
15382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15383 { (case "(($ac_try" in
15384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385 *) ac_try_echo=$ac_try;;
15386 esac
15387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388 (eval "$ac_try") 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest.$ac_objext'
15393 { (case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15396 esac
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_try") 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 ac_header_compiler=yes
15403 else
15404 echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15407 ac_header_compiler=no
15408 fi
15410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15412 echo "${ECHO_T}$ac_header_compiler" >&6; }
15414 # Is the header present?
15415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15417 cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h. */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 #include <$ac_header>
15424 _ACEOF
15425 if { (ac_try="$ac_cpp conftest.$ac_ext"
15426 case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15432 ac_status=$?
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } >/dev/null; then
15438 if test -s conftest.err; then
15439 ac_cpp_err=$ac_c_preproc_warn_flag
15440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15441 else
15442 ac_cpp_err=
15443 fi
15444 else
15445 ac_cpp_err=yes
15446 fi
15447 if test -z "$ac_cpp_err"; then
15448 ac_header_preproc=yes
15449 else
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15453 ac_header_preproc=no
15454 fi
15456 rm -f conftest.err conftest.$ac_ext
15457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15458 echo "${ECHO_T}$ac_header_preproc" >&6; }
15460 # So? What about this header?
15461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15462 yes:no: )
15463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15467 ac_header_preproc=yes
15468 ;;
15469 no:yes:* )
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15482 ( cat <<\_ASBOX
15483 ## ------------------------------------ ##
15484 ## Report this to http://llvm.org/bugs/ ##
15485 ## ------------------------------------ ##
15486 _ASBOX
15487 ) | sed "s/^/$as_me: WARNING: /" >&2
15488 ;;
15489 esac
15490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15494 else
15495 eval "$as_ac_Header=\$ac_header_preproc"
15496 fi
15497 ac_res=`eval echo '${'$as_ac_Header'}'`
15498 { echo "$as_me:$LINENO: result: $ac_res" >&5
15499 echo "${ECHO_T}$ac_res" >&6; }
15501 fi
15502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15503 cat >>confdefs.h <<_ACEOF
15504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15505 _ACEOF
15507 fi
15509 done
15512 for ac_header in utime.h
15513 do
15514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15519 echo $ECHO_N "(cached) $ECHO_C" >&6
15520 fi
15521 ac_res=`eval echo '${'$as_ac_Header'}'`
15522 { echo "$as_me:$LINENO: result: $ac_res" >&5
15523 echo "${ECHO_T}$ac_res" >&6; }
15524 else
15525 # Is the header compilable?
15526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15528 cat >conftest.$ac_ext <<_ACEOF
15529 /* confdefs.h. */
15530 _ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h. */
15534 $ac_includes_default
15535 #include <$ac_header>
15536 _ACEOF
15537 rm -f conftest.$ac_objext
15538 if { (ac_try="$ac_compile"
15539 case "(($ac_try" in
15540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541 *) ac_try_echo=$ac_try;;
15542 esac
15543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544 (eval "$ac_compile") 2>conftest.er1
15545 ac_status=$?
15546 grep -v '^ *+' conftest.er1 >conftest.err
15547 rm -f conftest.er1
15548 cat conftest.err >&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } &&
15551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15552 { (case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_try") 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; } &&
15561 { ac_try='test -s conftest.$ac_objext'
15562 { (case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15565 esac
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_try") 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; }; then
15571 ac_header_compiler=yes
15572 else
15573 echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15576 ac_header_compiler=no
15577 fi
15579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15581 echo "${ECHO_T}$ac_header_compiler" >&6; }
15583 # Is the header present?
15584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15586 cat >conftest.$ac_ext <<_ACEOF
15587 /* confdefs.h. */
15588 _ACEOF
15589 cat confdefs.h >>conftest.$ac_ext
15590 cat >>conftest.$ac_ext <<_ACEOF
15591 /* end confdefs.h. */
15592 #include <$ac_header>
15593 _ACEOF
15594 if { (ac_try="$ac_cpp conftest.$ac_ext"
15595 case "(($ac_try" in
15596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597 *) ac_try_echo=$ac_try;;
15598 esac
15599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15601 ac_status=$?
15602 grep -v '^ *+' conftest.er1 >conftest.err
15603 rm -f conftest.er1
15604 cat conftest.err >&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } >/dev/null; then
15607 if test -s conftest.err; then
15608 ac_cpp_err=$ac_c_preproc_warn_flag
15609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15610 else
15611 ac_cpp_err=
15612 fi
15613 else
15614 ac_cpp_err=yes
15615 fi
15616 if test -z "$ac_cpp_err"; then
15617 ac_header_preproc=yes
15618 else
15619 echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15622 ac_header_preproc=no
15623 fi
15625 rm -f conftest.err conftest.$ac_ext
15626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15627 echo "${ECHO_T}$ac_header_preproc" >&6; }
15629 # So? What about this header?
15630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15631 yes:no: )
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15636 ac_header_preproc=yes
15637 ;;
15638 no:yes:* )
15639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15651 ( cat <<\_ASBOX
15652 ## ------------------------------------ ##
15653 ## Report this to http://llvm.org/bugs/ ##
15654 ## ------------------------------------ ##
15655 _ASBOX
15656 ) | sed "s/^/$as_me: WARNING: /" >&2
15657 ;;
15658 esac
15659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 else
15664 eval "$as_ac_Header=\$ac_header_preproc"
15665 fi
15666 ac_res=`eval echo '${'$as_ac_Header'}'`
15667 { echo "$as_me:$LINENO: result: $ac_res" >&5
15668 echo "${ECHO_T}$ac_res" >&6; }
15670 fi
15671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15672 cat >>confdefs.h <<_ACEOF
15673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15674 _ACEOF
15676 fi
15678 done
15685 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15686 do
15687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 fi
15694 ac_res=`eval echo '${'$as_ac_Header'}'`
15695 { echo "$as_me:$LINENO: result: $ac_res" >&5
15696 echo "${ECHO_T}$ac_res" >&6; }
15697 else
15698 # Is the header compilable?
15699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15701 cat >conftest.$ac_ext <<_ACEOF
15702 /* confdefs.h. */
15703 _ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15707 $ac_includes_default
15708 #include <$ac_header>
15709 _ACEOF
15710 rm -f conftest.$ac_objext
15711 if { (ac_try="$ac_compile"
15712 case "(($ac_try" in
15713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714 *) ac_try_echo=$ac_try;;
15715 esac
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717 (eval "$ac_compile") 2>conftest.er1
15718 ac_status=$?
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15725 { (case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15728 esac
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_try") 2>&5
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; } &&
15734 { ac_try='test -s conftest.$ac_objext'
15735 { (case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15738 esac
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_try") 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_header_compiler=yes
15745 else
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ac_header_compiler=no
15750 fi
15752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15754 echo "${ECHO_T}$ac_header_compiler" >&6; }
15756 # Is the header present?
15757 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15759 cat >conftest.$ac_ext <<_ACEOF
15760 /* confdefs.h. */
15761 _ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15765 #include <$ac_header>
15766 _ACEOF
15767 if { (ac_try="$ac_cpp conftest.$ac_ext"
15768 case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15771 esac
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15774 ac_status=$?
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } >/dev/null; then
15780 if test -s conftest.err; then
15781 ac_cpp_err=$ac_c_preproc_warn_flag
15782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15783 else
15784 ac_cpp_err=
15785 fi
15786 else
15787 ac_cpp_err=yes
15788 fi
15789 if test -z "$ac_cpp_err"; then
15790 ac_header_preproc=yes
15791 else
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15795 ac_header_preproc=no
15796 fi
15798 rm -f conftest.err conftest.$ac_ext
15799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15800 echo "${ECHO_T}$ac_header_preproc" >&6; }
15802 # So? What about this header?
15803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15804 yes:no: )
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15809 ac_header_preproc=yes
15810 ;;
15811 no:yes:* )
15812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15824 ( cat <<\_ASBOX
15825 ## ------------------------------------ ##
15826 ## Report this to http://llvm.org/bugs/ ##
15827 ## ------------------------------------ ##
15828 _ASBOX
15829 ) | sed "s/^/$as_me: WARNING: /" >&2
15830 ;;
15831 esac
15832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15836 else
15837 eval "$as_ac_Header=\$ac_header_preproc"
15838 fi
15839 ac_res=`eval echo '${'$as_ac_Header'}'`
15840 { echo "$as_me:$LINENO: result: $ac_res" >&5
15841 echo "${ECHO_T}$ac_res" >&6; }
15843 fi
15844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15845 cat >>confdefs.h <<_ACEOF
15846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15847 _ACEOF
15849 fi
15851 done
15856 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15857 do
15858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 fi
15865 ac_res=`eval echo '${'$as_ac_Header'}'`
15866 { echo "$as_me:$LINENO: result: $ac_res" >&5
15867 echo "${ECHO_T}$ac_res" >&6; }
15868 else
15869 # Is the header compilable?
15870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15872 cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h. */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 #include <$ac_header>
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (ac_try="$ac_compile"
15883 case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15886 esac
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_compile") 2>conftest.er1
15889 ac_status=$?
15890 grep -v '^ *+' conftest.er1 >conftest.err
15891 rm -f conftest.er1
15892 cat conftest.err >&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } &&
15895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15896 { (case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15899 esac
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_try") 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; } &&
15905 { ac_try='test -s conftest.$ac_objext'
15906 { (case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15909 esac
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_try") 2>&5
15912 ac_status=$?
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15915 ac_header_compiler=yes
15916 else
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_header_compiler=no
15921 fi
15923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15925 echo "${ECHO_T}$ac_header_compiler" >&6; }
15927 # Is the header present?
15928 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h. */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 #include <$ac_header>
15937 _ACEOF
15938 if { (ac_try="$ac_cpp conftest.$ac_ext"
15939 case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15942 esac
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15945 ac_status=$?
15946 grep -v '^ *+' conftest.er1 >conftest.err
15947 rm -f conftest.er1
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } >/dev/null; then
15951 if test -s conftest.err; then
15952 ac_cpp_err=$ac_c_preproc_warn_flag
15953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15954 else
15955 ac_cpp_err=
15956 fi
15957 else
15958 ac_cpp_err=yes
15959 fi
15960 if test -z "$ac_cpp_err"; then
15961 ac_header_preproc=yes
15962 else
15963 echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15966 ac_header_preproc=no
15967 fi
15969 rm -f conftest.err conftest.$ac_ext
15970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15971 echo "${ECHO_T}$ac_header_preproc" >&6; }
15973 # So? What about this header?
15974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15975 yes:no: )
15976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15980 ac_header_preproc=yes
15981 ;;
15982 no:yes:* )
15983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15995 ( cat <<\_ASBOX
15996 ## ------------------------------------ ##
15997 ## Report this to http://llvm.org/bugs/ ##
15998 ## ------------------------------------ ##
15999 _ASBOX
16000 ) | sed "s/^/$as_me: WARNING: /" >&2
16001 ;;
16002 esac
16003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 else
16008 eval "$as_ac_Header=\$ac_header_preproc"
16009 fi
16010 ac_res=`eval echo '${'$as_ac_Header'}'`
16011 { echo "$as_me:$LINENO: result: $ac_res" >&5
16012 echo "${ECHO_T}$ac_res" >&6; }
16014 fi
16015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16016 cat >>confdefs.h <<_ACEOF
16017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16018 _ACEOF
16020 fi
16022 done
16025 for ac_header in valgrind/valgrind.h
16026 do
16027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16032 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 fi
16034 ac_res=`eval echo '${'$as_ac_Header'}'`
16035 { echo "$as_me:$LINENO: result: $ac_res" >&5
16036 echo "${ECHO_T}$ac_res" >&6; }
16037 else
16038 # Is the header compilable?
16039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16041 cat >conftest.$ac_ext <<_ACEOF
16042 /* confdefs.h. */
16043 _ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16047 $ac_includes_default
16048 #include <$ac_header>
16049 _ACEOF
16050 rm -f conftest.$ac_objext
16051 if { (ac_try="$ac_compile"
16052 case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16055 esac
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_compile") 2>conftest.er1
16058 ac_status=$?
16059 grep -v '^ *+' conftest.er1 >conftest.err
16060 rm -f conftest.er1
16061 cat conftest.err >&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16065 { (case "(($ac_try" in
16066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067 *) ac_try_echo=$ac_try;;
16068 esac
16069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070 (eval "$ac_try") 2>&5
16071 ac_status=$?
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; } &&
16074 { ac_try='test -s conftest.$ac_objext'
16075 { (case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16078 esac
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_try") 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16084 ac_header_compiler=yes
16085 else
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16089 ac_header_compiler=no
16090 fi
16092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16094 echo "${ECHO_T}$ac_header_compiler" >&6; }
16096 # Is the header present?
16097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16099 cat >conftest.$ac_ext <<_ACEOF
16100 /* confdefs.h. */
16101 _ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h. */
16105 #include <$ac_header>
16106 _ACEOF
16107 if { (ac_try="$ac_cpp conftest.$ac_ext"
16108 case "(($ac_try" in
16109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110 *) ac_try_echo=$ac_try;;
16111 esac
16112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16114 ac_status=$?
16115 grep -v '^ *+' conftest.er1 >conftest.err
16116 rm -f conftest.er1
16117 cat conftest.err >&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); } >/dev/null; then
16120 if test -s conftest.err; then
16121 ac_cpp_err=$ac_c_preproc_warn_flag
16122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16123 else
16124 ac_cpp_err=
16125 fi
16126 else
16127 ac_cpp_err=yes
16128 fi
16129 if test -z "$ac_cpp_err"; then
16130 ac_header_preproc=yes
16131 else
16132 echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16135 ac_header_preproc=no
16136 fi
16138 rm -f conftest.err conftest.$ac_ext
16139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16140 echo "${ECHO_T}$ac_header_preproc" >&6; }
16142 # So? What about this header?
16143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16144 yes:no: )
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16149 ac_header_preproc=yes
16150 ;;
16151 no:yes:* )
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16164 ( cat <<\_ASBOX
16165 ## ------------------------------------ ##
16166 ## Report this to http://llvm.org/bugs/ ##
16167 ## ------------------------------------ ##
16168 _ASBOX
16169 ) | sed "s/^/$as_me: WARNING: /" >&2
16170 ;;
16171 esac
16172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16176 else
16177 eval "$as_ac_Header=\$ac_header_preproc"
16178 fi
16179 ac_res=`eval echo '${'$as_ac_Header'}'`
16180 { echo "$as_me:$LINENO: result: $ac_res" >&5
16181 echo "${ECHO_T}$ac_res" >&6; }
16183 fi
16184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16185 cat >>confdefs.h <<_ACEOF
16186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16187 _ACEOF
16189 fi
16191 done
16194 for ac_header in fenv.h
16195 do
16196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 fi
16203 ac_res=`eval echo '${'$as_ac_Header'}'`
16204 { echo "$as_me:$LINENO: result: $ac_res" >&5
16205 echo "${ECHO_T}$ac_res" >&6; }
16206 else
16207 # Is the header compilable?
16208 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16210 cat >conftest.$ac_ext <<_ACEOF
16211 /* confdefs.h. */
16212 _ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h. */
16216 $ac_includes_default
16217 #include <$ac_header>
16218 _ACEOF
16219 rm -f conftest.$ac_objext
16220 if { (ac_try="$ac_compile"
16221 case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16224 esac
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_compile") 2>conftest.er1
16227 ac_status=$?
16228 grep -v '^ *+' conftest.er1 >conftest.err
16229 rm -f conftest.er1
16230 cat conftest.err >&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } &&
16233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16234 { (case "(($ac_try" in
16235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236 *) ac_try_echo=$ac_try;;
16237 esac
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239 (eval "$ac_try") 2>&5
16240 ac_status=$?
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; } &&
16243 { ac_try='test -s conftest.$ac_objext'
16244 { (case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16247 esac
16248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_try") 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; }; then
16253 ac_header_compiler=yes
16254 else
16255 echo "$as_me: failed program was:" >&5
16256 sed 's/^/| /' conftest.$ac_ext >&5
16258 ac_header_compiler=no
16259 fi
16261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16263 echo "${ECHO_T}$ac_header_compiler" >&6; }
16265 # Is the header present?
16266 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16268 cat >conftest.$ac_ext <<_ACEOF
16269 /* confdefs.h. */
16270 _ACEOF
16271 cat confdefs.h >>conftest.$ac_ext
16272 cat >>conftest.$ac_ext <<_ACEOF
16273 /* end confdefs.h. */
16274 #include <$ac_header>
16275 _ACEOF
16276 if { (ac_try="$ac_cpp conftest.$ac_ext"
16277 case "(($ac_try" in
16278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279 *) ac_try_echo=$ac_try;;
16280 esac
16281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16283 ac_status=$?
16284 grep -v '^ *+' conftest.er1 >conftest.err
16285 rm -f conftest.er1
16286 cat conftest.err >&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } >/dev/null; then
16289 if test -s conftest.err; then
16290 ac_cpp_err=$ac_c_preproc_warn_flag
16291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16292 else
16293 ac_cpp_err=
16294 fi
16295 else
16296 ac_cpp_err=yes
16297 fi
16298 if test -z "$ac_cpp_err"; then
16299 ac_header_preproc=yes
16300 else
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16304 ac_header_preproc=no
16305 fi
16307 rm -f conftest.err conftest.$ac_ext
16308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16309 echo "${ECHO_T}$ac_header_preproc" >&6; }
16311 # So? What about this header?
16312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16313 yes:no: )
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16318 ac_header_preproc=yes
16319 ;;
16320 no:yes:* )
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16333 ( cat <<\_ASBOX
16334 ## ------------------------------------ ##
16335 ## Report this to http://llvm.org/bugs/ ##
16336 ## ------------------------------------ ##
16337 _ASBOX
16338 ) | sed "s/^/$as_me: WARNING: /" >&2
16339 ;;
16340 esac
16341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 else
16346 eval "$as_ac_Header=\$ac_header_preproc"
16347 fi
16348 ac_res=`eval echo '${'$as_ac_Header'}'`
16349 { echo "$as_me:$LINENO: result: $ac_res" >&5
16350 echo "${ECHO_T}$ac_res" >&6; }
16352 fi
16353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16354 cat >>confdefs.h <<_ACEOF
16355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16356 _ACEOF
16358 fi
16360 done
16362 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16363 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16364 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 else
16367 cat >conftest.$ac_ext <<_ACEOF
16368 /* confdefs.h. */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 #include <fenv.h>
16375 int
16376 main ()
16377 {
16378 #ifndef FE_ALL_EXCEPT
16379 char *p = (char *) FE_ALL_EXCEPT;
16380 return !p;
16381 #endif
16383 ;
16384 return 0;
16385 }
16386 _ACEOF
16387 rm -f conftest.$ac_objext
16388 if { (ac_try="$ac_compile"
16389 case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16392 esac
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 (eval "$ac_compile") 2>conftest.er1
16395 ac_status=$?
16396 grep -v '^ *+' conftest.er1 >conftest.err
16397 rm -f conftest.er1
16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16402 { (case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16405 esac
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_try") 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; } &&
16411 { ac_try='test -s conftest.$ac_objext'
16412 { (case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16415 esac
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_try") 2>&5
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16422 else
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 ac_cv_have_decl_FE_ALL_EXCEPT=no
16427 fi
16429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 fi
16431 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16432 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16433 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16435 cat >>confdefs.h <<_ACEOF
16436 #define HAVE_DECL_FE_ALL_EXCEPT 1
16437 _ACEOF
16440 else
16441 cat >>confdefs.h <<_ACEOF
16442 #define HAVE_DECL_FE_ALL_EXCEPT 0
16443 _ACEOF
16446 fi
16447 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16448 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16449 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16450 echo $ECHO_N "(cached) $ECHO_C" >&6
16451 else
16452 cat >conftest.$ac_ext <<_ACEOF
16453 /* confdefs.h. */
16454 _ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h. */
16458 #include <fenv.h>
16460 int
16461 main ()
16462 {
16463 #ifndef FE_INEXACT
16464 char *p = (char *) FE_INEXACT;
16465 return !p;
16466 #endif
16468 ;
16469 return 0;
16470 }
16471 _ACEOF
16472 rm -f conftest.$ac_objext
16473 if { (ac_try="$ac_compile"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477 esac
16478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_compile") 2>conftest.er1
16480 ac_status=$?
16481 grep -v '^ *+' conftest.er1 >conftest.err
16482 rm -f conftest.er1
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16487 { (case "(($ac_try" in
16488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489 *) ac_try_echo=$ac_try;;
16490 esac
16491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492 (eval "$ac_try") 2>&5
16493 ac_status=$?
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; } &&
16496 { ac_try='test -s conftest.$ac_objext'
16497 { (case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16500 esac
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_try") 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506 ac_cv_have_decl_FE_INEXACT=yes
16507 else
16508 echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16511 ac_cv_have_decl_FE_INEXACT=no
16512 fi
16514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16515 fi
16516 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16517 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16518 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16520 cat >>confdefs.h <<_ACEOF
16521 #define HAVE_DECL_FE_INEXACT 1
16522 _ACEOF
16525 else
16526 cat >>confdefs.h <<_ACEOF
16527 #define HAVE_DECL_FE_INEXACT 0
16528 _ACEOF
16531 fi
16534 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16536 for ac_header in pthread.h
16537 do
16538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16543 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 fi
16545 ac_res=`eval echo '${'$as_ac_Header'}'`
16546 { echo "$as_me:$LINENO: result: $ac_res" >&5
16547 echo "${ECHO_T}$ac_res" >&6; }
16548 else
16549 # Is the header compilable?
16550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h. */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 $ac_includes_default
16559 #include <$ac_header>
16560 _ACEOF
16561 rm -f conftest.$ac_objext
16562 if { (ac_try="$ac_compile"
16563 case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16566 esac
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_compile") 2>conftest.er1
16569 ac_status=$?
16570 grep -v '^ *+' conftest.er1 >conftest.err
16571 rm -f conftest.er1
16572 cat conftest.err >&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } &&
16575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16576 { (case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16579 esac
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_try") 2>&5
16582 ac_status=$?
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; } &&
16585 { ac_try='test -s conftest.$ac_objext'
16586 { (case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16589 esac
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_try") 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 ac_header_compiler=yes
16596 else
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16600 ac_header_compiler=no
16601 fi
16603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16605 echo "${ECHO_T}$ac_header_compiler" >&6; }
16607 # Is the header present?
16608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16610 cat >conftest.$ac_ext <<_ACEOF
16611 /* confdefs.h. */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16616 #include <$ac_header>
16617 _ACEOF
16618 if { (ac_try="$ac_cpp conftest.$ac_ext"
16619 case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16622 esac
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16625 ac_status=$?
16626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } >/dev/null; then
16631 if test -s conftest.err; then
16632 ac_cpp_err=$ac_c_preproc_warn_flag
16633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16634 else
16635 ac_cpp_err=
16636 fi
16637 else
16638 ac_cpp_err=yes
16639 fi
16640 if test -z "$ac_cpp_err"; then
16641 ac_header_preproc=yes
16642 else
16643 echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16646 ac_header_preproc=no
16647 fi
16649 rm -f conftest.err conftest.$ac_ext
16650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16651 echo "${ECHO_T}$ac_header_preproc" >&6; }
16653 # So? What about this header?
16654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16655 yes:no: )
16656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16660 ac_header_preproc=yes
16661 ;;
16662 no:yes:* )
16663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16675 ( cat <<\_ASBOX
16676 ## ------------------------------------ ##
16677 ## Report this to http://llvm.org/bugs/ ##
16678 ## ------------------------------------ ##
16679 _ASBOX
16680 ) | sed "s/^/$as_me: WARNING: /" >&2
16681 ;;
16682 esac
16683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 else
16688 eval "$as_ac_Header=\$ac_header_preproc"
16689 fi
16690 ac_res=`eval echo '${'$as_ac_Header'}'`
16691 { echo "$as_me:$LINENO: result: $ac_res" >&5
16692 echo "${ECHO_T}$ac_res" >&6; }
16694 fi
16695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16696 cat >>confdefs.h <<_ACEOF
16697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16698 _ACEOF
16699 HAVE_PTHREAD=1
16701 else
16702 HAVE_PTHREAD=0
16704 fi
16706 done
16708 else
16709 HAVE_PTHREAD=0
16711 fi
16712 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16714 for ac_header in zlib.h
16715 do
16716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 fi
16723 ac_res=`eval echo '${'$as_ac_Header'}'`
16724 { echo "$as_me:$LINENO: result: $ac_res" >&5
16725 echo "${ECHO_T}$ac_res" >&6; }
16726 else
16727 # Is the header compilable?
16728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16730 cat >conftest.$ac_ext <<_ACEOF
16731 /* confdefs.h. */
16732 _ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h. */
16736 $ac_includes_default
16737 #include <$ac_header>
16738 _ACEOF
16739 rm -f conftest.$ac_objext
16740 if { (ac_try="$ac_compile"
16741 case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744 esac
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_compile") 2>conftest.er1
16747 ac_status=$?
16748 grep -v '^ *+' conftest.er1 >conftest.err
16749 rm -f conftest.er1
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } &&
16753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16754 { (case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16757 esac
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_try") 2>&5
16760 ac_status=$?
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; } &&
16763 { ac_try='test -s conftest.$ac_objext'
16764 { (case "(($ac_try" in
16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16767 esac
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_try") 2>&5
16770 ac_status=$?
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; }; then
16773 ac_header_compiler=yes
16774 else
16775 echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16778 ac_header_compiler=no
16779 fi
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16783 echo "${ECHO_T}$ac_header_compiler" >&6; }
16785 # Is the header present?
16786 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16788 cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h. */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 #include <$ac_header>
16795 _ACEOF
16796 if { (ac_try="$ac_cpp conftest.$ac_ext"
16797 case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800 esac
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16803 ac_status=$?
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } >/dev/null; then
16809 if test -s conftest.err; then
16810 ac_cpp_err=$ac_c_preproc_warn_flag
16811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16812 else
16813 ac_cpp_err=
16814 fi
16815 else
16816 ac_cpp_err=yes
16817 fi
16818 if test -z "$ac_cpp_err"; then
16819 ac_header_preproc=yes
16820 else
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16824 ac_header_preproc=no
16825 fi
16827 rm -f conftest.err conftest.$ac_ext
16828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16829 echo "${ECHO_T}$ac_header_preproc" >&6; }
16831 # So? What about this header?
16832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16833 yes:no: )
16834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16838 ac_header_preproc=yes
16839 ;;
16840 no:yes:* )
16841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16853 ( cat <<\_ASBOX
16854 ## ------------------------------------ ##
16855 ## Report this to http://llvm.org/bugs/ ##
16856 ## ------------------------------------ ##
16857 _ASBOX
16858 ) | sed "s/^/$as_me: WARNING: /" >&2
16859 ;;
16860 esac
16861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866 eval "$as_ac_Header=\$ac_header_preproc"
16867 fi
16868 ac_res=`eval echo '${'$as_ac_Header'}'`
16869 { echo "$as_me:$LINENO: result: $ac_res" >&5
16870 echo "${ECHO_T}$ac_res" >&6; }
16872 fi
16873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16874 cat >>confdefs.h <<_ACEOF
16875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16876 _ACEOF
16877 HAVE_LIBZ=1
16879 else
16880 HAVE_LIBZ=0
16882 fi
16884 done
16886 else
16887 HAVE_LIBZ=0
16889 fi
16891 if test "$llvm_cv_enable_libffi" = "yes" ; then
16894 for ac_header in ffi.h ffi/ffi.h
16895 do
16896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 fi
16903 ac_res=`eval echo '${'$as_ac_Header'}'`
16904 { echo "$as_me:$LINENO: result: $ac_res" >&5
16905 echo "${ECHO_T}$ac_res" >&6; }
16906 else
16907 # Is the header compilable?
16908 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16910 cat >conftest.$ac_ext <<_ACEOF
16911 /* confdefs.h. */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16916 $ac_includes_default
16917 #include <$ac_header>
16918 _ACEOF
16919 rm -f conftest.$ac_objext
16920 if { (ac_try="$ac_compile"
16921 case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924 esac
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_compile") 2>conftest.er1
16927 ac_status=$?
16928 grep -v '^ *+' conftest.er1 >conftest.err
16929 rm -f conftest.er1
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16934 { (case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16937 esac
16938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939 (eval "$ac_try") 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest.$ac_objext'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16947 esac
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 ac_header_compiler=yes
16954 else
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16958 ac_header_compiler=no
16959 fi
16961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16963 echo "${ECHO_T}$ac_header_compiler" >&6; }
16965 # Is the header present?
16966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16968 cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h. */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 #include <$ac_header>
16975 _ACEOF
16976 if { (ac_try="$ac_cpp conftest.$ac_ext"
16977 case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16980 esac
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16983 ac_status=$?
16984 grep -v '^ *+' conftest.er1 >conftest.err
16985 rm -f conftest.er1
16986 cat conftest.err >&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } >/dev/null; then
16989 if test -s conftest.err; then
16990 ac_cpp_err=$ac_c_preproc_warn_flag
16991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16992 else
16993 ac_cpp_err=
16994 fi
16995 else
16996 ac_cpp_err=yes
16997 fi
16998 if test -z "$ac_cpp_err"; then
16999 ac_header_preproc=yes
17000 else
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 ac_header_preproc=no
17005 fi
17007 rm -f conftest.err conftest.$ac_ext
17008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17009 echo "${ECHO_T}$ac_header_preproc" >&6; }
17011 # So? What about this header?
17012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17013 yes:no: )
17014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17018 ac_header_preproc=yes
17019 ;;
17020 no:yes:* )
17021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17033 ( cat <<\_ASBOX
17034 ## ------------------------------------ ##
17035 ## Report this to http://llvm.org/bugs/ ##
17036 ## ------------------------------------ ##
17037 _ASBOX
17038 ) | sed "s/^/$as_me: WARNING: /" >&2
17039 ;;
17040 esac
17041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17045 else
17046 eval "$as_ac_Header=\$ac_header_preproc"
17047 fi
17048 ac_res=`eval echo '${'$as_ac_Header'}'`
17049 { echo "$as_me:$LINENO: result: $ac_res" >&5
17050 echo "${ECHO_T}$ac_res" >&6; }
17052 fi
17053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17054 cat >>confdefs.h <<_ACEOF
17055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17056 _ACEOF
17058 fi
17060 done
17062 fi
17065 for ac_header in CrashReporterClient.h
17066 do
17067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17072 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 fi
17074 ac_res=`eval echo '${'$as_ac_Header'}'`
17075 { echo "$as_me:$LINENO: result: $ac_res" >&5
17076 echo "${ECHO_T}$ac_res" >&6; }
17077 else
17078 # Is the header compilable?
17079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17081 cat >conftest.$ac_ext <<_ACEOF
17082 /* confdefs.h. */
17083 _ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17087 $ac_includes_default
17088 #include <$ac_header>
17089 _ACEOF
17090 rm -f conftest.$ac_objext
17091 if { (ac_try="$ac_compile"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095 esac
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_compile") 2>conftest.er1
17098 ac_status=$?
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; } &&
17114 { ac_try='test -s conftest.$ac_objext'
17115 { (case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17118 esac
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_try") 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124 ac_header_compiler=yes
17125 else
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17129 ac_header_compiler=no
17130 fi
17132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17134 echo "${ECHO_T}$ac_header_compiler" >&6; }
17136 # Is the header present?
17137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17139 cat >conftest.$ac_ext <<_ACEOF
17140 /* confdefs.h. */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17145 #include <$ac_header>
17146 _ACEOF
17147 if { (ac_try="$ac_cpp conftest.$ac_ext"
17148 case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17151 esac
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17154 ac_status=$?
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } >/dev/null; then
17160 if test -s conftest.err; then
17161 ac_cpp_err=$ac_c_preproc_warn_flag
17162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17163 else
17164 ac_cpp_err=
17165 fi
17166 else
17167 ac_cpp_err=yes
17168 fi
17169 if test -z "$ac_cpp_err"; then
17170 ac_header_preproc=yes
17171 else
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17175 ac_header_preproc=no
17176 fi
17178 rm -f conftest.err conftest.$ac_ext
17179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17180 echo "${ECHO_T}$ac_header_preproc" >&6; }
17182 # So? What about this header?
17183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17184 yes:no: )
17185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17189 ac_header_preproc=yes
17190 ;;
17191 no:yes:* )
17192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17204 ( cat <<\_ASBOX
17205 ## ------------------------------------ ##
17206 ## Report this to http://llvm.org/bugs/ ##
17207 ## ------------------------------------ ##
17208 _ASBOX
17209 ) | sed "s/^/$as_me: WARNING: /" >&2
17210 ;;
17211 esac
17212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17216 else
17217 eval "$as_ac_Header=\$ac_header_preproc"
17218 fi
17219 ac_res=`eval echo '${'$as_ac_Header'}'`
17220 { echo "$as_me:$LINENO: result: $ac_res" >&5
17221 echo "${ECHO_T}$ac_res" >&6; }
17223 fi
17224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17225 cat >>confdefs.h <<_ACEOF
17226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17227 _ACEOF
17229 fi
17231 done
17234 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17235 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17236 cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h. */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17244 extern const char *__crashreporter_info__;
17245 int main() {
17246 __crashreporter_info__ = "test";
17247 return 0;
17248 }
17251 _ACEOF
17252 rm -f conftest.$ac_objext conftest$ac_exeext
17253 if { (ac_try="$ac_link"
17254 case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_link") 2>conftest.er1
17260 ac_status=$?
17261 grep -v '^ *+' conftest.er1 >conftest.err
17262 rm -f conftest.er1
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17267 { (case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17270 esac
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_try") 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; } &&
17276 { ac_try='test -s conftest$ac_exeext'
17277 { (case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17280 esac
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282 (eval "$ac_try") 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17287 { echo "$as_me:$LINENO: result: yes" >&5
17288 echo "${ECHO_T}yes" >&6; }
17290 cat >>confdefs.h <<\_ACEOF
17291 #define HAVE_CRASHREPORTER_INFO 1
17292 _ACEOF
17295 else
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17300 { echo "$as_me:$LINENO: result: no" >&5
17301 echo "${ECHO_T}no" >&6; }
17303 cat >>confdefs.h <<\_ACEOF
17304 #define HAVE_CRASHREPORTER_INFO 0
17305 _ACEOF
17308 fi
17310 rm -f core conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17315 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17316 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17317 if test "${ac_cv_huge_val_sanity+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 else
17321 ac_ext=cpp
17322 ac_cpp='$CXXCPP $CPPFLAGS'
17323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17327 ac_save_CXXFLAGS=$CXXFLAGS
17328 CXXFLAGS="$CXXFLAGS -pedantic"
17329 if test "$cross_compiling" = yes; then
17330 ac_cv_huge_val_sanity=yes
17331 else
17332 cat >conftest.$ac_ext <<_ACEOF
17333 /* confdefs.h. */
17334 _ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17338 #include <math.h>
17339 int
17340 main ()
17341 {
17342 double x = HUGE_VAL; return x != x;
17343 ;
17344 return 0;
17345 }
17346 _ACEOF
17347 rm -f conftest$ac_exeext
17348 if { (ac_try="$ac_link"
17349 case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17352 esac
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_link") 2>&5
17355 ac_status=$?
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17358 { (case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17361 esac
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_try") 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_cv_huge_val_sanity=yes
17368 else
17369 echo "$as_me: program exited with status $ac_status" >&5
17370 echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17373 ( exit $ac_status )
17374 ac_cv_huge_val_sanity=no
17375 fi
17376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17377 fi
17380 CXXFLAGS=$ac_save_CXXFLAGS
17381 ac_ext=c
17382 ac_cpp='$CPP $CPPFLAGS'
17383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17388 fi
17389 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17390 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17391 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17394 { echo "$as_me:$LINENO: checking for pid_t" >&5
17395 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17396 if test "${ac_cv_type_pid_t+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 else
17399 cat >conftest.$ac_ext <<_ACEOF
17400 /* confdefs.h. */
17401 _ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17405 $ac_includes_default
17406 typedef pid_t ac__type_new_;
17407 int
17408 main ()
17409 {
17410 if ((ac__type_new_ *) 0)
17411 return 0;
17412 if (sizeof (ac__type_new_))
17413 return 0;
17414 ;
17415 return 0;
17416 }
17417 _ACEOF
17418 rm -f conftest.$ac_objext
17419 if { (ac_try="$ac_compile"
17420 case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17423 esac
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_compile") 2>conftest.er1
17426 ac_status=$?
17427 grep -v '^ *+' conftest.er1 >conftest.err
17428 rm -f conftest.er1
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
17432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17433 { (case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17436 esac
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_try") 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest.$ac_objext'
17443 { (case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17446 esac
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_try") 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452 ac_cv_type_pid_t=yes
17453 else
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17457 ac_cv_type_pid_t=no
17458 fi
17460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17461 fi
17462 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17463 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17464 if test $ac_cv_type_pid_t = yes; then
17465 :
17466 else
17468 cat >>confdefs.h <<_ACEOF
17469 #define pid_t int
17470 _ACEOF
17472 fi
17474 { echo "$as_me:$LINENO: checking for size_t" >&5
17475 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17476 if test "${ac_cv_type_size_t+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479 cat >conftest.$ac_ext <<_ACEOF
17480 /* confdefs.h. */
17481 _ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17485 $ac_includes_default
17486 typedef size_t ac__type_new_;
17487 int
17488 main ()
17489 {
17490 if ((ac__type_new_ *) 0)
17491 return 0;
17492 if (sizeof (ac__type_new_))
17493 return 0;
17494 ;
17495 return 0;
17496 }
17497 _ACEOF
17498 rm -f conftest.$ac_objext
17499 if { (ac_try="$ac_compile"
17500 case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17503 esac
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_compile") 2>conftest.er1
17506 ac_status=$?
17507 grep -v '^ *+' conftest.er1 >conftest.err
17508 rm -f conftest.er1
17509 cat conftest.err >&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } &&
17512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17513 { (case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17516 esac
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_try") 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try='test -s conftest.$ac_objext'
17523 { (case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_try") 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17532 ac_cv_type_size_t=yes
17533 else
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 ac_cv_type_size_t=no
17538 fi
17540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17541 fi
17542 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17543 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17544 if test $ac_cv_type_size_t = yes; then
17545 :
17546 else
17548 cat >>confdefs.h <<_ACEOF
17549 #define size_t unsigned int
17550 _ACEOF
17552 fi
17555 cat >>confdefs.h <<_ACEOF
17556 #define RETSIGTYPE void
17557 _ACEOF
17559 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17560 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17561 if test "${ac_cv_struct_tm+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 else
17564 cat >conftest.$ac_ext <<_ACEOF
17565 /* confdefs.h. */
17566 _ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 #include <sys/types.h>
17571 #include <time.h>
17573 int
17574 main ()
17575 {
17576 struct tm *tp; tp->tm_sec;
17577 ;
17578 return 0;
17579 }
17580 _ACEOF
17581 rm -f conftest.$ac_objext
17582 if { (ac_try="$ac_compile"
17583 case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17586 esac
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_compile") 2>conftest.er1
17589 ac_status=$?
17590 grep -v '^ *+' conftest.er1 >conftest.err
17591 rm -f conftest.er1
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17596 { (case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17599 esac
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_try") 2>&5
17602 ac_status=$?
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; } &&
17605 { ac_try='test -s conftest.$ac_objext'
17606 { (case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17609 esac
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_try") 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 ac_cv_struct_tm=time.h
17616 else
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17620 ac_cv_struct_tm=sys/time.h
17621 fi
17623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17624 fi
17625 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17626 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17627 if test $ac_cv_struct_tm = sys/time.h; then
17629 cat >>confdefs.h <<\_ACEOF
17630 #define TM_IN_SYS_TIME 1
17631 _ACEOF
17633 fi
17635 { echo "$as_me:$LINENO: checking for int64_t" >&5
17636 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17637 if test "${ac_cv_type_int64_t+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 else
17640 cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h. */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 $ac_includes_default
17647 typedef int64_t ac__type_new_;
17648 int
17649 main ()
17650 {
17651 if ((ac__type_new_ *) 0)
17652 return 0;
17653 if (sizeof (ac__type_new_))
17654 return 0;
17655 ;
17656 return 0;
17657 }
17658 _ACEOF
17659 rm -f conftest.$ac_objext
17660 if { (ac_try="$ac_compile"
17661 case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17664 esac
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_compile") 2>conftest.er1
17667 ac_status=$?
17668 grep -v '^ *+' conftest.er1 >conftest.err
17669 rm -f conftest.er1
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } &&
17673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17674 { (case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17677 esac
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_try") 2>&5
17680 ac_status=$?
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; } &&
17683 { ac_try='test -s conftest.$ac_objext'
17684 { (case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17687 esac
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_try") 2>&5
17690 ac_status=$?
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 ac_cv_type_int64_t=yes
17694 else
17695 echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17698 ac_cv_type_int64_t=no
17699 fi
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17702 fi
17703 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17704 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17705 if test $ac_cv_type_int64_t = yes; then
17707 cat >>confdefs.h <<_ACEOF
17708 #define HAVE_INT64_T 1
17709 _ACEOF
17712 else
17713 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17714 echo "$as_me: error: Type int64_t required but not found" >&2;}
17715 { (exit 1); exit 1; }; }
17716 fi
17718 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17719 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17720 if test "${ac_cv_type_uint64_t+set}" = set; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 else
17723 cat >conftest.$ac_ext <<_ACEOF
17724 /* confdefs.h. */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 $ac_includes_default
17730 typedef uint64_t ac__type_new_;
17731 int
17732 main ()
17733 {
17734 if ((ac__type_new_ *) 0)
17735 return 0;
17736 if (sizeof (ac__type_new_))
17737 return 0;
17738 ;
17739 return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest.$ac_objext
17743 if { (ac_try="$ac_compile"
17744 case "(($ac_try" in
17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17747 esac
17748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749 (eval "$ac_compile") 2>conftest.er1
17750 ac_status=$?
17751 grep -v '^ *+' conftest.er1 >conftest.err
17752 rm -f conftest.er1
17753 cat conftest.err >&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } &&
17756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17757 { (case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_try") 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest.$ac_objext'
17767 { (case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17770 esac
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_try") 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_cv_type_uint64_t=yes
17777 else
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17781 ac_cv_type_uint64_t=no
17782 fi
17784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17785 fi
17786 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17787 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17788 if test $ac_cv_type_uint64_t = yes; then
17790 cat >>confdefs.h <<_ACEOF
17791 #define HAVE_UINT64_T 1
17792 _ACEOF
17795 else
17796 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17797 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17798 if test "${ac_cv_type_u_int64_t+set}" = set; then
17799 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 else
17801 cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h. */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807 $ac_includes_default
17808 typedef u_int64_t ac__type_new_;
17809 int
17810 main ()
17811 {
17812 if ((ac__type_new_ *) 0)
17813 return 0;
17814 if (sizeof (ac__type_new_))
17815 return 0;
17816 ;
17817 return 0;
17818 }
17819 _ACEOF
17820 rm -f conftest.$ac_objext
17821 if { (ac_try="$ac_compile"
17822 case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17825 esac
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_compile") 2>conftest.er1
17828 ac_status=$?
17829 grep -v '^ *+' conftest.er1 >conftest.err
17830 rm -f conftest.er1
17831 cat conftest.err >&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
17834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17838 esac
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } &&
17844 { ac_try='test -s conftest.$ac_objext'
17845 { (case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17848 esac
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_try") 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17854 ac_cv_type_u_int64_t=yes
17855 else
17856 echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17859 ac_cv_type_u_int64_t=no
17860 fi
17862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17863 fi
17864 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17865 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17866 if test $ac_cv_type_u_int64_t = yes; then
17868 cat >>confdefs.h <<_ACEOF
17869 #define HAVE_U_INT64_T 1
17870 _ACEOF
17873 else
17874 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17875 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17876 { (exit 1); exit 1; }; }
17877 fi
17879 fi
17890 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17891 do
17892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17897 else
17898 cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h. */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17906 #define $ac_func innocuous_$ac_func
17908 /* System header to define __stub macros and hopefully few prototypes,
17909 which can conflict with char $ac_func (); below.
17910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17911 <limits.h> exists even on freestanding compilers. */
17913 #ifdef __STDC__
17914 # include <limits.h>
17915 #else
17916 # include <assert.h>
17917 #endif
17919 #undef $ac_func
17921 /* Override any GCC internal prototype to avoid an error.
17922 Use char because int might match the return type of a GCC
17923 builtin and then its argument prototype would still apply. */
17924 #ifdef __cplusplus
17925 extern "C"
17926 #endif
17927 char $ac_func ();
17928 /* The GNU C library defines this for functions which it implements
17929 to always fail with ENOSYS. Some functions are actually named
17930 something starting with __ and the normal name is an alias. */
17931 #if defined __stub_$ac_func || defined __stub___$ac_func
17932 choke me
17933 #endif
17935 int
17936 main ()
17937 {
17938 return $ac_func ();
17939 ;
17940 return 0;
17941 }
17942 _ACEOF
17943 rm -f conftest.$ac_objext conftest$ac_exeext
17944 if { (ac_try="$ac_link"
17945 case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17948 esac
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950 (eval "$ac_link") 2>conftest.er1
17951 ac_status=$?
17952 grep -v '^ *+' conftest.er1 >conftest.err
17953 rm -f conftest.er1
17954 cat conftest.err >&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } &&
17957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17958 { (case "(($ac_try" in
17959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960 *) ac_try_echo=$ac_try;;
17961 esac
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963 (eval "$ac_try") 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; } &&
17967 { ac_try='test -s conftest$ac_exeext'
17968 { (case "(($ac_try" in
17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17971 esac
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973 (eval "$ac_try") 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; }; then
17977 eval "$as_ac_var=yes"
17978 else
17979 echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17982 eval "$as_ac_var=no"
17983 fi
17985 rm -f core conftest.err conftest.$ac_objext \
17986 conftest$ac_exeext conftest.$ac_ext
17987 fi
17988 ac_res=`eval echo '${'$as_ac_var'}'`
17989 { echo "$as_me:$LINENO: result: $ac_res" >&5
17990 echo "${ECHO_T}$ac_res" >&6; }
17991 if test `eval echo '${'$as_ac_var'}'` = yes; then
17992 cat >>confdefs.h <<_ACEOF
17993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17994 _ACEOF
17996 fi
17997 done
18003 for ac_func in powf fmodf strtof round
18004 do
18005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18010 else
18011 cat >conftest.$ac_ext <<_ACEOF
18012 /* confdefs.h. */
18013 _ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18019 #define $ac_func innocuous_$ac_func
18021 /* System header to define __stub macros and hopefully few prototypes,
18022 which can conflict with char $ac_func (); below.
18023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18024 <limits.h> exists even on freestanding compilers. */
18026 #ifdef __STDC__
18027 # include <limits.h>
18028 #else
18029 # include <assert.h>
18030 #endif
18032 #undef $ac_func
18034 /* Override any GCC internal prototype to avoid an error.
18035 Use char because int might match the return type of a GCC
18036 builtin and then its argument prototype would still apply. */
18037 #ifdef __cplusplus
18038 extern "C"
18039 #endif
18040 char $ac_func ();
18041 /* The GNU C library defines this for functions which it implements
18042 to always fail with ENOSYS. Some functions are actually named
18043 something starting with __ and the normal name is an alias. */
18044 #if defined __stub_$ac_func || defined __stub___$ac_func
18045 choke me
18046 #endif
18048 int
18049 main ()
18050 {
18051 return $ac_func ();
18052 ;
18053 return 0;
18054 }
18055 _ACEOF
18056 rm -f conftest.$ac_objext conftest$ac_exeext
18057 if { (ac_try="$ac_link"
18058 case "(($ac_try" in
18059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060 *) ac_try_echo=$ac_try;;
18061 esac
18062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063 (eval "$ac_link") 2>conftest.er1
18064 ac_status=$?
18065 grep -v '^ *+' conftest.er1 >conftest.err
18066 rm -f conftest.er1
18067 cat conftest.err >&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
18070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18071 { (case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_try") 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; } &&
18080 { ac_try='test -s conftest$ac_exeext'
18081 { (case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18084 esac
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_try") 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; }; then
18090 eval "$as_ac_var=yes"
18091 else
18092 echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18095 eval "$as_ac_var=no"
18096 fi
18098 rm -f core conftest.err conftest.$ac_objext \
18099 conftest$ac_exeext conftest.$ac_ext
18100 fi
18101 ac_res=`eval echo '${'$as_ac_var'}'`
18102 { echo "$as_me:$LINENO: result: $ac_res" >&5
18103 echo "${ECHO_T}$ac_res" >&6; }
18104 if test `eval echo '${'$as_ac_var'}'` = yes; then
18105 cat >>confdefs.h <<_ACEOF
18106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18107 _ACEOF
18109 fi
18110 done
18117 for ac_func in log log2 log10 exp exp2
18118 do
18119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 else
18125 cat >conftest.$ac_ext <<_ACEOF
18126 /* confdefs.h. */
18127 _ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18133 #define $ac_func innocuous_$ac_func
18135 /* System header to define __stub macros and hopefully few prototypes,
18136 which can conflict with char $ac_func (); below.
18137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18138 <limits.h> exists even on freestanding compilers. */
18140 #ifdef __STDC__
18141 # include <limits.h>
18142 #else
18143 # include <assert.h>
18144 #endif
18146 #undef $ac_func
18148 /* Override any GCC internal prototype to avoid an error.
18149 Use char because int might match the return type of a GCC
18150 builtin and then its argument prototype would still apply. */
18151 #ifdef __cplusplus
18152 extern "C"
18153 #endif
18154 char $ac_func ();
18155 /* The GNU C library defines this for functions which it implements
18156 to always fail with ENOSYS. Some functions are actually named
18157 something starting with __ and the normal name is an alias. */
18158 #if defined __stub_$ac_func || defined __stub___$ac_func
18159 choke me
18160 #endif
18162 int
18163 main ()
18164 {
18165 return $ac_func ();
18166 ;
18167 return 0;
18168 }
18169 _ACEOF
18170 rm -f conftest.$ac_objext conftest$ac_exeext
18171 if { (ac_try="$ac_link"
18172 case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18175 esac
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_link") 2>conftest.er1
18178 ac_status=$?
18179 grep -v '^ *+' conftest.er1 >conftest.err
18180 rm -f conftest.er1
18181 cat conftest.err >&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
18184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18185 { (case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18188 esac
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_try") 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; } &&
18194 { ac_try='test -s conftest$ac_exeext'
18195 { (case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18198 esac
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_try") 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; }; then
18204 eval "$as_ac_var=yes"
18205 else
18206 echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18209 eval "$as_ac_var=no"
18210 fi
18212 rm -f core conftest.err conftest.$ac_objext \
18213 conftest$ac_exeext conftest.$ac_ext
18214 fi
18215 ac_res=`eval echo '${'$as_ac_var'}'`
18216 { echo "$as_me:$LINENO: result: $ac_res" >&5
18217 echo "${ECHO_T}$ac_res" >&6; }
18218 if test `eval echo '${'$as_ac_var'}'` = yes; then
18219 cat >>confdefs.h <<_ACEOF
18220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18221 _ACEOF
18223 fi
18224 done
18231 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18232 do
18233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239 cat >conftest.$ac_ext <<_ACEOF
18240 /* confdefs.h. */
18241 _ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h. */
18245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18247 #define $ac_func innocuous_$ac_func
18249 /* System header to define __stub macros and hopefully few prototypes,
18250 which can conflict with char $ac_func (); below.
18251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18252 <limits.h> exists even on freestanding compilers. */
18254 #ifdef __STDC__
18255 # include <limits.h>
18256 #else
18257 # include <assert.h>
18258 #endif
18260 #undef $ac_func
18262 /* Override any GCC internal prototype to avoid an error.
18263 Use char because int might match the return type of a GCC
18264 builtin and then its argument prototype would still apply. */
18265 #ifdef __cplusplus
18266 extern "C"
18267 #endif
18268 char $ac_func ();
18269 /* The GNU C library defines this for functions which it implements
18270 to always fail with ENOSYS. Some functions are actually named
18271 something starting with __ and the normal name is an alias. */
18272 #if defined __stub_$ac_func || defined __stub___$ac_func
18273 choke me
18274 #endif
18276 int
18277 main ()
18278 {
18279 return $ac_func ();
18280 ;
18281 return 0;
18282 }
18283 _ACEOF
18284 rm -f conftest.$ac_objext conftest$ac_exeext
18285 if { (ac_try="$ac_link"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18289 esac
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_link") 2>conftest.er1
18292 ac_status=$?
18293 grep -v '^ *+' conftest.er1 >conftest.err
18294 rm -f conftest.er1
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } &&
18298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18299 { (case "(($ac_try" in
18300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301 *) ac_try_echo=$ac_try;;
18302 esac
18303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18304 (eval "$ac_try") 2>&5
18305 ac_status=$?
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; } &&
18308 { ac_try='test -s conftest$ac_exeext'
18309 { (case "(($ac_try" in
18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311 *) ac_try_echo=$ac_try;;
18312 esac
18313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314 (eval "$ac_try") 2>&5
18315 ac_status=$?
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 eval "$as_ac_var=yes"
18319 else
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18323 eval "$as_ac_var=no"
18324 fi
18326 rm -f core conftest.err conftest.$ac_objext \
18327 conftest$ac_exeext conftest.$ac_ext
18328 fi
18329 ac_res=`eval echo '${'$as_ac_var'}'`
18330 { echo "$as_me:$LINENO: result: $ac_res" >&5
18331 echo "${ECHO_T}$ac_res" >&6; }
18332 if test `eval echo '${'$as_ac_var'}'` = yes; then
18333 cat >>confdefs.h <<_ACEOF
18334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18335 _ACEOF
18337 fi
18338 done
18343 for ac_func in isatty mkdtemp mkstemp
18344 do
18345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18350 else
18351 cat >conftest.$ac_ext <<_ACEOF
18352 /* confdefs.h. */
18353 _ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18359 #define $ac_func innocuous_$ac_func
18361 /* System header to define __stub macros and hopefully few prototypes,
18362 which can conflict with char $ac_func (); below.
18363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18364 <limits.h> exists even on freestanding compilers. */
18366 #ifdef __STDC__
18367 # include <limits.h>
18368 #else
18369 # include <assert.h>
18370 #endif
18372 #undef $ac_func
18374 /* Override any GCC internal prototype to avoid an error.
18375 Use char because int might match the return type of a GCC
18376 builtin and then its argument prototype would still apply. */
18377 #ifdef __cplusplus
18378 extern "C"
18379 #endif
18380 char $ac_func ();
18381 /* The GNU C library defines this for functions which it implements
18382 to always fail with ENOSYS. Some functions are actually named
18383 something starting with __ and the normal name is an alias. */
18384 #if defined __stub_$ac_func || defined __stub___$ac_func
18385 choke me
18386 #endif
18388 int
18389 main ()
18390 {
18391 return $ac_func ();
18392 ;
18393 return 0;
18394 }
18395 _ACEOF
18396 rm -f conftest.$ac_objext conftest$ac_exeext
18397 if { (ac_try="$ac_link"
18398 case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18401 esac
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_link") 2>conftest.er1
18404 ac_status=$?
18405 grep -v '^ *+' conftest.er1 >conftest.err
18406 rm -f conftest.er1
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18411 { (case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18414 esac
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_try") 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest$ac_exeext'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 eval "$as_ac_var=yes"
18431 else
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 eval "$as_ac_var=no"
18436 fi
18438 rm -f core conftest.err conftest.$ac_objext \
18439 conftest$ac_exeext conftest.$ac_ext
18440 fi
18441 ac_res=`eval echo '${'$as_ac_var'}'`
18442 { echo "$as_me:$LINENO: result: $ac_res" >&5
18443 echo "${ECHO_T}$ac_res" >&6; }
18444 if test `eval echo '${'$as_ac_var'}'` = yes; then
18445 cat >>confdefs.h <<_ACEOF
18446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18447 _ACEOF
18449 fi
18450 done
18458 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18459 do
18460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18464 echo $ECHO_N "(cached) $ECHO_C" >&6
18465 else
18466 cat >conftest.$ac_ext <<_ACEOF
18467 /* confdefs.h. */
18468 _ACEOF
18469 cat confdefs.h >>conftest.$ac_ext
18470 cat >>conftest.$ac_ext <<_ACEOF
18471 /* end confdefs.h. */
18472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18474 #define $ac_func innocuous_$ac_func
18476 /* System header to define __stub macros and hopefully few prototypes,
18477 which can conflict with char $ac_func (); below.
18478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18479 <limits.h> exists even on freestanding compilers. */
18481 #ifdef __STDC__
18482 # include <limits.h>
18483 #else
18484 # include <assert.h>
18485 #endif
18487 #undef $ac_func
18489 /* Override any GCC internal prototype to avoid an error.
18490 Use char because int might match the return type of a GCC
18491 builtin and then its argument prototype would still apply. */
18492 #ifdef __cplusplus
18493 extern "C"
18494 #endif
18495 char $ac_func ();
18496 /* The GNU C library defines this for functions which it implements
18497 to always fail with ENOSYS. Some functions are actually named
18498 something starting with __ and the normal name is an alias. */
18499 #if defined __stub_$ac_func || defined __stub___$ac_func
18500 choke me
18501 #endif
18503 int
18504 main ()
18505 {
18506 return $ac_func ();
18507 ;
18508 return 0;
18509 }
18510 _ACEOF
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (ac_try="$ac_link"
18513 case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516 esac
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_link") 2>conftest.er1
18519 ac_status=$?
18520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
18525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18526 { (case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18529 esac
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_try") 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; } &&
18535 { ac_try='test -s conftest$ac_exeext'
18536 { (case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18539 esac
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_try") 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 eval "$as_ac_var=yes"
18546 else
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18550 eval "$as_ac_var=no"
18551 fi
18553 rm -f core conftest.err conftest.$ac_objext \
18554 conftest$ac_exeext conftest.$ac_ext
18555 fi
18556 ac_res=`eval echo '${'$as_ac_var'}'`
18557 { echo "$as_me:$LINENO: result: $ac_res" >&5
18558 echo "${ECHO_T}$ac_res" >&6; }
18559 if test `eval echo '${'$as_ac_var'}'` = yes; then
18560 cat >>confdefs.h <<_ACEOF
18561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18562 _ACEOF
18564 fi
18565 done
18570 for ac_func in strerror strerror_r setenv
18571 do
18572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 else
18578 cat >conftest.$ac_ext <<_ACEOF
18579 /* confdefs.h. */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18586 #define $ac_func innocuous_$ac_func
18588 /* System header to define __stub macros and hopefully few prototypes,
18589 which can conflict with char $ac_func (); below.
18590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18591 <limits.h> exists even on freestanding compilers. */
18593 #ifdef __STDC__
18594 # include <limits.h>
18595 #else
18596 # include <assert.h>
18597 #endif
18599 #undef $ac_func
18601 /* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18604 #ifdef __cplusplus
18605 extern "C"
18606 #endif
18607 char $ac_func ();
18608 /* The GNU C library defines this for functions which it implements
18609 to always fail with ENOSYS. Some functions are actually named
18610 something starting with __ and the normal name is an alias. */
18611 #if defined __stub_$ac_func || defined __stub___$ac_func
18612 choke me
18613 #endif
18615 int
18616 main ()
18617 {
18618 return $ac_func ();
18619 ;
18620 return 0;
18621 }
18622 _ACEOF
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_link") 2>conftest.er1
18631 ac_status=$?
18632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
18637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18638 { (case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18641 esac
18642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_try") 2>&5
18644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; } &&
18647 { ac_try='test -s conftest$ac_exeext'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18651 esac
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 eval "$as_ac_var=yes"
18658 else
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18662 eval "$as_ac_var=no"
18663 fi
18665 rm -f core conftest.err conftest.$ac_objext \
18666 conftest$ac_exeext conftest.$ac_ext
18667 fi
18668 ac_res=`eval echo '${'$as_ac_var'}'`
18669 { echo "$as_me:$LINENO: result: $ac_res" >&5
18670 echo "${ECHO_T}$ac_res" >&6; }
18671 if test `eval echo '${'$as_ac_var'}'` = yes; then
18672 cat >>confdefs.h <<_ACEOF
18673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18674 _ACEOF
18676 fi
18677 done
18683 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18684 do
18685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18686 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18690 else
18691 cat >conftest.$ac_ext <<_ACEOF
18692 /* confdefs.h. */
18693 _ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h. */
18697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18699 #define $ac_func innocuous_$ac_func
18701 /* System header to define __stub macros and hopefully few prototypes,
18702 which can conflict with char $ac_func (); below.
18703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18704 <limits.h> exists even on freestanding compilers. */
18706 #ifdef __STDC__
18707 # include <limits.h>
18708 #else
18709 # include <assert.h>
18710 #endif
18712 #undef $ac_func
18714 /* Override any GCC internal prototype to avoid an error.
18715 Use char because int might match the return type of a GCC
18716 builtin and then its argument prototype would still apply. */
18717 #ifdef __cplusplus
18718 extern "C"
18719 #endif
18720 char $ac_func ();
18721 /* The GNU C library defines this for functions which it implements
18722 to always fail with ENOSYS. Some functions are actually named
18723 something starting with __ and the normal name is an alias. */
18724 #if defined __stub_$ac_func || defined __stub___$ac_func
18725 choke me
18726 #endif
18728 int
18729 main ()
18730 {
18731 return $ac_func ();
18732 ;
18733 return 0;
18734 }
18735 _ACEOF
18736 rm -f conftest.$ac_objext conftest$ac_exeext
18737 if { (ac_try="$ac_link"
18738 case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18741 esac
18742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_link") 2>conftest.er1
18744 ac_status=$?
18745 grep -v '^ *+' conftest.er1 >conftest.err
18746 rm -f conftest.er1
18747 cat conftest.err >&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
18750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18751 { (case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18754 esac
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_try") 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; } &&
18760 { ac_try='test -s conftest$ac_exeext'
18761 { (case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18764 esac
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_try") 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18770 eval "$as_ac_var=yes"
18771 else
18772 echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18775 eval "$as_ac_var=no"
18776 fi
18778 rm -f core conftest.err conftest.$ac_objext \
18779 conftest$ac_exeext conftest.$ac_ext
18780 fi
18781 ac_res=`eval echo '${'$as_ac_var'}'`
18782 { echo "$as_me:$LINENO: result: $ac_res" >&5
18783 echo "${ECHO_T}$ac_res" >&6; }
18784 if test `eval echo '${'$as_ac_var'}'` = yes; then
18785 cat >>confdefs.h <<_ACEOF
18786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18787 _ACEOF
18789 fi
18790 done
18797 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18798 do
18799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805 cat >conftest.$ac_ext <<_ACEOF
18806 /* confdefs.h. */
18807 _ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h. */
18811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18813 #define $ac_func innocuous_$ac_func
18815 /* System header to define __stub macros and hopefully few prototypes,
18816 which can conflict with char $ac_func (); below.
18817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18818 <limits.h> exists even on freestanding compilers. */
18820 #ifdef __STDC__
18821 # include <limits.h>
18822 #else
18823 # include <assert.h>
18824 #endif
18826 #undef $ac_func
18828 /* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18831 #ifdef __cplusplus
18832 extern "C"
18833 #endif
18834 char $ac_func ();
18835 /* The GNU C library defines this for functions which it implements
18836 to always fail with ENOSYS. Some functions are actually named
18837 something starting with __ and the normal name is an alias. */
18838 #if defined __stub_$ac_func || defined __stub___$ac_func
18839 choke me
18840 #endif
18842 int
18843 main ()
18844 {
18845 return $ac_func ();
18846 ;
18847 return 0;
18848 }
18849 _ACEOF
18850 rm -f conftest.$ac_objext conftest$ac_exeext
18851 if { (ac_try="$ac_link"
18852 case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18855 esac
18856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18857 (eval "$ac_link") 2>conftest.er1
18858 ac_status=$?
18859 grep -v '^ *+' conftest.er1 >conftest.err
18860 rm -f conftest.er1
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } &&
18864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18865 { (case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18868 esac
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870 (eval "$ac_try") 2>&5
18871 ac_status=$?
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; } &&
18874 { ac_try='test -s conftest$ac_exeext'
18875 { (case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18878 esac
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_try") 2>&5
18881 ac_status=$?
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); }; }; then
18884 eval "$as_ac_var=yes"
18885 else
18886 echo "$as_me: failed program was:" >&5
18887 sed 's/^/| /' conftest.$ac_ext >&5
18889 eval "$as_ac_var=no"
18890 fi
18892 rm -f core conftest.err conftest.$ac_objext \
18893 conftest$ac_exeext conftest.$ac_ext
18894 fi
18895 ac_res=`eval echo '${'$as_ac_var'}'`
18896 { echo "$as_me:$LINENO: result: $ac_res" >&5
18897 echo "${ECHO_T}$ac_res" >&6; }
18898 if test `eval echo '${'$as_ac_var'}'` = yes; then
18899 cat >>confdefs.h <<_ACEOF
18900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18901 _ACEOF
18903 fi
18904 done
18908 for ac_func in futimes futimens
18909 do
18910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915 else
18916 cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h. */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18924 #define $ac_func innocuous_$ac_func
18926 /* System header to define __stub macros and hopefully few prototypes,
18927 which can conflict with char $ac_func (); below.
18928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18929 <limits.h> exists even on freestanding compilers. */
18931 #ifdef __STDC__
18932 # include <limits.h>
18933 #else
18934 # include <assert.h>
18935 #endif
18937 #undef $ac_func
18939 /* Override any GCC internal prototype to avoid an error.
18940 Use char because int might match the return type of a GCC
18941 builtin and then its argument prototype would still apply. */
18942 #ifdef __cplusplus
18943 extern "C"
18944 #endif
18945 char $ac_func ();
18946 /* The GNU C library defines this for functions which it implements
18947 to always fail with ENOSYS. Some functions are actually named
18948 something starting with __ and the normal name is an alias. */
18949 #if defined __stub_$ac_func || defined __stub___$ac_func
18950 choke me
18951 #endif
18953 int
18954 main ()
18955 {
18956 return $ac_func ();
18957 ;
18958 return 0;
18959 }
18960 _ACEOF
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_link") 2>conftest.er1
18969 ac_status=$?
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
18975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18976 { (case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18979 esac
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_try") 2>&5
18982 ac_status=$?
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; } &&
18985 { ac_try='test -s conftest$ac_exeext'
18986 { (case "(($ac_try" in
18987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18989 esac
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991 (eval "$ac_try") 2>&5
18992 ac_status=$?
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
18995 eval "$as_ac_var=yes"
18996 else
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 eval "$as_ac_var=no"
19001 fi
19003 rm -f core conftest.err conftest.$ac_objext \
19004 conftest$ac_exeext conftest.$ac_ext
19005 fi
19006 ac_res=`eval echo '${'$as_ac_var'}'`
19007 { echo "$as_me:$LINENO: result: $ac_res" >&5
19008 echo "${ECHO_T}$ac_res" >&6; }
19009 if test `eval echo '${'$as_ac_var'}'` = yes; then
19010 cat >>confdefs.h <<_ACEOF
19011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19012 _ACEOF
19014 fi
19015 done
19017 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19018 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19019 if test "${llvm_cv_c_printf_a+set}" = set; then
19020 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 else
19022 ac_ext=c
19023 ac_cpp='$CPP $CPPFLAGS'
19024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19028 if test "$cross_compiling" = yes; then
19029 llvmac_cv_c_printf_a=no
19030 else
19031 cat >conftest.$ac_ext <<_ACEOF
19033 /* confdefs.h. */
19034 _ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19039 #include <stdio.h>
19040 #include <stdlib.h>
19042 int
19043 main ()
19044 {
19046 volatile double A, B;
19047 char Buffer[100];
19048 A = 1;
19049 A /= 10.0;
19050 sprintf(Buffer, "%a", A);
19051 B = atof(Buffer);
19052 if (A != B)
19053 return (1);
19054 if (A != 0x1.999999999999ap-4)
19055 return (1);
19056 return (0);
19057 ;
19058 return 0;
19059 }
19060 _ACEOF
19061 rm -f conftest$ac_exeext
19062 if { (ac_try="$ac_link"
19063 case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_link") 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19072 { (case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19075 esac
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_try") 2>&5
19078 ac_status=$?
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 llvm_cv_c_printf_a=yes
19082 else
19083 echo "$as_me: program exited with status $ac_status" >&5
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ( exit $ac_status )
19088 llvmac_cv_c_printf_a=no
19089 fi
19090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19091 fi
19094 ac_ext=c
19095 ac_cpp='$CPP $CPPFLAGS'
19096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19100 fi
19101 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19102 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19103 if test "$llvm_cv_c_printf_a" = "yes"; then
19105 cat >>confdefs.h <<\_ACEOF
19106 #define HAVE_PRINTF_A 1
19107 _ACEOF
19109 fi
19113 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19114 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19115 if test "${ac_cv_func_rand48+set}" = set; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19117 else
19119 ac_ext=cpp
19120 ac_cpp='$CXXCPP $CPPFLAGS'
19121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19125 cat >conftest.$ac_ext <<_ACEOF
19126 /* confdefs.h. */
19127 _ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h. */
19131 #include <stdlib.h>
19132 int
19133 main ()
19134 {
19135 srand48(0);lrand48();drand48();
19136 ;
19137 return 0;
19138 }
19139 _ACEOF
19140 rm -f conftest.$ac_objext
19141 if { (ac_try="$ac_compile"
19142 case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19145 esac
19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_compile") 2>conftest.er1
19148 ac_status=$?
19149 grep -v '^ *+' conftest.er1 >conftest.err
19150 rm -f conftest.er1
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } &&
19154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19155 { (case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19158 esac
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_try") 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; } &&
19164 { ac_try='test -s conftest.$ac_objext'
19165 { (case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19168 esac
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_try") 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; }; then
19174 ac_cv_func_rand48=yes
19175 else
19176 echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19179 ac_cv_func_rand48=no
19180 fi
19182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19183 ac_ext=c
19184 ac_cpp='$CPP $CPPFLAGS'
19185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19190 fi
19191 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19192 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19194 if test "$ac_cv_func_rand48" = "yes" ; then
19196 cat >>confdefs.h <<\_ACEOF
19197 #define HAVE_RAND48 1
19198 _ACEOF
19200 fi
19203 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
19204 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
19205 if test "${ac_cv_have_decl_arc4random+set}" = set; then
19206 echo $ECHO_N "(cached) $ECHO_C" >&6
19207 else
19208 cat >conftest.$ac_ext <<_ACEOF
19209 /* confdefs.h. */
19210 _ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h. */
19214 $ac_includes_default
19215 int
19216 main ()
19217 {
19218 #ifndef arc4random
19219 char *p = (char *) arc4random;
19220 return !p;
19221 #endif
19223 ;
19224 return 0;
19225 }
19226 _ACEOF
19227 rm -f conftest.$ac_objext
19228 if { (ac_try="$ac_compile"
19229 case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19232 esac
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_compile") 2>conftest.er1
19235 ac_status=$?
19236 grep -v '^ *+' conftest.er1 >conftest.err
19237 rm -f conftest.er1
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19242 { (case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19245 esac
19246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_try") 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest.$ac_objext'
19252 { (case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19255 esac
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_try") 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 ac_cv_have_decl_arc4random=yes
19262 else
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19266 ac_cv_have_decl_arc4random=no
19267 fi
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270 fi
19271 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
19272 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
19273 if test $ac_cv_have_decl_arc4random = yes; then
19275 cat >>confdefs.h <<_ACEOF
19276 #define HAVE_DECL_ARC4RANDOM 1
19277 _ACEOF
19280 else
19281 cat >>confdefs.h <<_ACEOF
19282 #define HAVE_DECL_ARC4RANDOM 0
19283 _ACEOF
19286 fi
19290 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19291 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19292 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19294 else
19295 cat >conftest.$ac_ext <<_ACEOF
19296 /* confdefs.h. */
19297 _ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19301 $ac_includes_default
19302 int
19303 main ()
19304 {
19305 #ifndef strerror_s
19306 char *p = (char *) strerror_s;
19307 return !p;
19308 #endif
19310 ;
19311 return 0;
19312 }
19313 _ACEOF
19314 rm -f conftest.$ac_objext
19315 if { (ac_try="$ac_compile"
19316 case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19319 esac
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_compile") 2>conftest.er1
19322 ac_status=$?
19323 grep -v '^ *+' conftest.er1 >conftest.err
19324 rm -f conftest.er1
19325 cat conftest.err >&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); } &&
19328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19329 { (case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19332 esac
19333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_try") 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest.$ac_objext'
19339 { (case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19342 esac
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_try") 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; }; then
19348 ac_cv_have_decl_strerror_s=yes
19349 else
19350 echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19353 ac_cv_have_decl_strerror_s=no
19354 fi
19356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19357 fi
19358 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19359 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19360 if test $ac_cv_have_decl_strerror_s = yes; then
19362 cat >>confdefs.h <<_ACEOF
19363 #define HAVE_DECL_STRERROR_S 1
19364 _ACEOF
19367 else
19368 cat >>confdefs.h <<_ACEOF
19369 #define HAVE_DECL_STRERROR_S 0
19370 _ACEOF
19373 fi
19377 if test "$llvm_cv_os_type" = "MingW" ; then
19378 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19379 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19380 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19382 else
19383 ac_check_lib_save_LIBS=$LIBS
19384 LIBS="-lgcc $LIBS"
19385 cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h. */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19392 /* Override any GCC internal prototype to avoid an error.
19393 Use char because int might match the return type of a GCC
19394 builtin and then its argument prototype would still apply. */
19395 #ifdef __cplusplus
19396 extern "C"
19397 #endif
19398 char _alloca ();
19399 int
19400 main ()
19401 {
19402 return _alloca ();
19403 ;
19404 return 0;
19405 }
19406 _ACEOF
19407 rm -f conftest.$ac_objext conftest$ac_exeext
19408 if { (ac_try="$ac_link"
19409 case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19412 esac
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_link") 2>conftest.er1
19415 ac_status=$?
19416 grep -v '^ *+' conftest.er1 >conftest.err
19417 rm -f conftest.er1
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
19421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19422 { (case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19425 esac
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_try") 2>&5
19428 ac_status=$?
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest$ac_exeext'
19432 { (case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19435 esac
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 ac_cv_lib_gcc__alloca=yes
19442 else
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_lib_gcc__alloca=no
19447 fi
19449 rm -f core conftest.err conftest.$ac_objext \
19450 conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19452 fi
19453 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19454 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19455 if test $ac_cv_lib_gcc__alloca = yes; then
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE__ALLOCA 1
19459 _ACEOF
19461 fi
19463 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19464 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19465 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19468 ac_check_lib_save_LIBS=$LIBS
19469 LIBS="-lgcc $LIBS"
19470 cat >conftest.$ac_ext <<_ACEOF
19471 /* confdefs.h. */
19472 _ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19477 /* Override any GCC internal prototype to avoid an error.
19478 Use char because int might match the return type of a GCC
19479 builtin and then its argument prototype would still apply. */
19480 #ifdef __cplusplus
19481 extern "C"
19482 #endif
19483 char __alloca ();
19484 int
19485 main ()
19486 {
19487 return __alloca ();
19488 ;
19489 return 0;
19490 }
19491 _ACEOF
19492 rm -f conftest.$ac_objext conftest$ac_exeext
19493 if { (ac_try="$ac_link"
19494 case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_link") 2>conftest.er1
19500 ac_status=$?
19501 grep -v '^ *+' conftest.er1 >conftest.err
19502 rm -f conftest.er1
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
19506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19507 { (case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19510 esac
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_try") 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; } &&
19516 { ac_try='test -s conftest$ac_exeext'
19517 { (case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520 esac
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_try") 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 ac_cv_lib_gcc___alloca=yes
19527 else
19528 echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531 ac_cv_lib_gcc___alloca=no
19532 fi
19534 rm -f core conftest.err conftest.$ac_objext \
19535 conftest$ac_exeext conftest.$ac_ext
19536 LIBS=$ac_check_lib_save_LIBS
19537 fi
19538 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19539 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19540 if test $ac_cv_lib_gcc___alloca = yes; then
19542 cat >>confdefs.h <<\_ACEOF
19543 #define HAVE___ALLOCA 1
19544 _ACEOF
19546 fi
19548 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19549 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19550 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19551 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 else
19553 ac_check_lib_save_LIBS=$LIBS
19554 LIBS="-lgcc $LIBS"
19555 cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h. */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19562 /* Override any GCC internal prototype to avoid an error.
19563 Use char because int might match the return type of a GCC
19564 builtin and then its argument prototype would still apply. */
19565 #ifdef __cplusplus
19566 extern "C"
19567 #endif
19568 char __chkstk ();
19569 int
19570 main ()
19571 {
19572 return __chkstk ();
19573 ;
19574 return 0;
19575 }
19576 _ACEOF
19577 rm -f conftest.$ac_objext conftest$ac_exeext
19578 if { (ac_try="$ac_link"
19579 case "(($ac_try" in
19580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581 *) ac_try_echo=$ac_try;;
19582 esac
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584 (eval "$ac_link") 2>conftest.er1
19585 ac_status=$?
19586 grep -v '^ *+' conftest.er1 >conftest.err
19587 rm -f conftest.er1
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } &&
19591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19592 { (case "(($ac_try" in
19593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19594 *) ac_try_echo=$ac_try;;
19595 esac
19596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597 (eval "$ac_try") 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; } &&
19601 { ac_try='test -s conftest$ac_exeext'
19602 { (case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605 esac
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_try") 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; }; then
19611 ac_cv_lib_gcc___chkstk=yes
19612 else
19613 echo "$as_me: failed program was:" >&5
19614 sed 's/^/| /' conftest.$ac_ext >&5
19616 ac_cv_lib_gcc___chkstk=no
19617 fi
19619 rm -f core conftest.err conftest.$ac_objext \
19620 conftest$ac_exeext conftest.$ac_ext
19621 LIBS=$ac_check_lib_save_LIBS
19622 fi
19623 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19624 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19625 if test $ac_cv_lib_gcc___chkstk = yes; then
19627 cat >>confdefs.h <<\_ACEOF
19628 #define HAVE___CHKSTK 1
19629 _ACEOF
19631 fi
19633 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19634 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19635 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 else
19638 ac_check_lib_save_LIBS=$LIBS
19639 LIBS="-lgcc $LIBS"
19640 cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h. */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19647 /* Override any GCC internal prototype to avoid an error.
19648 Use char because int might match the return type of a GCC
19649 builtin and then its argument prototype would still apply. */
19650 #ifdef __cplusplus
19651 extern "C"
19652 #endif
19653 char ___chkstk ();
19654 int
19655 main ()
19656 {
19657 return ___chkstk ();
19658 ;
19659 return 0;
19660 }
19661 _ACEOF
19662 rm -f conftest.$ac_objext conftest$ac_exeext
19663 if { (ac_try="$ac_link"
19664 case "(($ac_try" in
19665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19666 *) ac_try_echo=$ac_try;;
19667 esac
19668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19669 (eval "$ac_link") 2>conftest.er1
19670 ac_status=$?
19671 grep -v '^ *+' conftest.er1 >conftest.err
19672 rm -f conftest.er1
19673 cat conftest.err >&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } &&
19676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19677 { (case "(($ac_try" in
19678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679 *) ac_try_echo=$ac_try;;
19680 esac
19681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682 (eval "$ac_try") 2>&5
19683 ac_status=$?
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; } &&
19686 { ac_try='test -s conftest$ac_exeext'
19687 { (case "(($ac_try" in
19688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19689 *) ac_try_echo=$ac_try;;
19690 esac
19691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19692 (eval "$ac_try") 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19696 ac_cv_lib_gcc____chkstk=yes
19697 else
19698 echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19701 ac_cv_lib_gcc____chkstk=no
19702 fi
19704 rm -f core conftest.err conftest.$ac_objext \
19705 conftest$ac_exeext conftest.$ac_ext
19706 LIBS=$ac_check_lib_save_LIBS
19707 fi
19708 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19709 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19710 if test $ac_cv_lib_gcc____chkstk = yes; then
19712 cat >>confdefs.h <<\_ACEOF
19713 #define HAVE____CHKSTK 1
19714 _ACEOF
19716 fi
19719 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19720 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19721 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19723 else
19724 ac_check_lib_save_LIBS=$LIBS
19725 LIBS="-lgcc $LIBS"
19726 cat >conftest.$ac_ext <<_ACEOF
19727 /* confdefs.h. */
19728 _ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19733 /* Override any GCC internal prototype to avoid an error.
19734 Use char because int might match the return type of a GCC
19735 builtin and then its argument prototype would still apply. */
19736 #ifdef __cplusplus
19737 extern "C"
19738 #endif
19739 char __ashldi3 ();
19740 int
19741 main ()
19742 {
19743 return __ashldi3 ();
19744 ;
19745 return 0;
19746 }
19747 _ACEOF
19748 rm -f conftest.$ac_objext conftest$ac_exeext
19749 if { (ac_try="$ac_link"
19750 case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19753 esac
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_link") 2>conftest.er1
19756 ac_status=$?
19757 grep -v '^ *+' conftest.er1 >conftest.err
19758 rm -f conftest.er1
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } &&
19762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19763 { (case "(($ac_try" in
19764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765 *) ac_try_echo=$ac_try;;
19766 esac
19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768 (eval "$ac_try") 2>&5
19769 ac_status=$?
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }; } &&
19772 { ac_try='test -s conftest$ac_exeext'
19773 { (case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19776 esac
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_try") 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; }; then
19782 ac_cv_lib_gcc___ashldi3=yes
19783 else
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 ac_cv_lib_gcc___ashldi3=no
19788 fi
19790 rm -f core conftest.err conftest.$ac_objext \
19791 conftest$ac_exeext conftest.$ac_ext
19792 LIBS=$ac_check_lib_save_LIBS
19793 fi
19794 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19795 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19796 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19798 cat >>confdefs.h <<\_ACEOF
19799 #define HAVE___ASHLDI3 1
19800 _ACEOF
19802 fi
19804 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19805 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19806 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19807 echo $ECHO_N "(cached) $ECHO_C" >&6
19808 else
19809 ac_check_lib_save_LIBS=$LIBS
19810 LIBS="-lgcc $LIBS"
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h. */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19818 /* Override any GCC internal prototype to avoid an error.
19819 Use char because int might match the return type of a GCC
19820 builtin and then its argument prototype would still apply. */
19821 #ifdef __cplusplus
19822 extern "C"
19823 #endif
19824 char __ashrdi3 ();
19825 int
19826 main ()
19827 {
19828 return __ashrdi3 ();
19829 ;
19830 return 0;
19831 }
19832 _ACEOF
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19838 esac
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_link") 2>conftest.er1
19841 ac_status=$?
19842 grep -v '^ *+' conftest.er1 >conftest.err
19843 rm -f conftest.er1
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19848 { (case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19851 esac
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_try") 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; } &&
19857 { ac_try='test -s conftest$ac_exeext'
19858 { (case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_try") 2>&5
19864 ac_status=$?
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 ac_cv_lib_gcc___ashrdi3=yes
19868 else
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19872 ac_cv_lib_gcc___ashrdi3=no
19873 fi
19875 rm -f core conftest.err conftest.$ac_objext \
19876 conftest$ac_exeext conftest.$ac_ext
19877 LIBS=$ac_check_lib_save_LIBS
19878 fi
19879 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19880 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19881 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19883 cat >>confdefs.h <<\_ACEOF
19884 #define HAVE___ASHRDI3 1
19885 _ACEOF
19887 fi
19889 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19890 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19891 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19893 else
19894 ac_check_lib_save_LIBS=$LIBS
19895 LIBS="-lgcc $LIBS"
19896 cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h. */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19903 /* Override any GCC internal prototype to avoid an error.
19904 Use char because int might match the return type of a GCC
19905 builtin and then its argument prototype would still apply. */
19906 #ifdef __cplusplus
19907 extern "C"
19908 #endif
19909 char __divdi3 ();
19910 int
19911 main ()
19912 {
19913 return __divdi3 ();
19914 ;
19915 return 0;
19916 }
19917 _ACEOF
19918 rm -f conftest.$ac_objext conftest$ac_exeext
19919 if { (ac_try="$ac_link"
19920 case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19923 esac
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_link") 2>conftest.er1
19926 ac_status=$?
19927 grep -v '^ *+' conftest.er1 >conftest.err
19928 rm -f conftest.er1
19929 cat conftest.err >&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } &&
19932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19933 { (case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19936 esac
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_try") 2>&5
19939 ac_status=$?
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; } &&
19942 { ac_try='test -s conftest$ac_exeext'
19943 { (case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_try") 2>&5
19949 ac_status=$?
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; }; then
19952 ac_cv_lib_gcc___divdi3=yes
19953 else
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19957 ac_cv_lib_gcc___divdi3=no
19958 fi
19960 rm -f core conftest.err conftest.$ac_objext \
19961 conftest$ac_exeext conftest.$ac_ext
19962 LIBS=$ac_check_lib_save_LIBS
19963 fi
19964 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19965 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19966 if test $ac_cv_lib_gcc___divdi3 = yes; then
19968 cat >>confdefs.h <<\_ACEOF
19969 #define HAVE___DIVDI3 1
19970 _ACEOF
19972 fi
19974 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19975 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19976 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19977 echo $ECHO_N "(cached) $ECHO_C" >&6
19978 else
19979 ac_check_lib_save_LIBS=$LIBS
19980 LIBS="-lgcc $LIBS"
19981 cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h. */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19988 /* Override any GCC internal prototype to avoid an error.
19989 Use char because int might match the return type of a GCC
19990 builtin and then its argument prototype would still apply. */
19991 #ifdef __cplusplus
19992 extern "C"
19993 #endif
19994 char __fixdfdi ();
19995 int
19996 main ()
19997 {
19998 return __fixdfdi ();
19999 ;
20000 return 0;
20001 }
20002 _ACEOF
20003 rm -f conftest.$ac_objext conftest$ac_exeext
20004 if { (ac_try="$ac_link"
20005 case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20008 esac
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_link") 2>conftest.er1
20011 ac_status=$?
20012 grep -v '^ *+' conftest.er1 >conftest.err
20013 rm -f conftest.er1
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } &&
20017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20018 { (case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20021 esac
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_try") 2>&5
20024 ac_status=$?
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; } &&
20027 { ac_try='test -s conftest$ac_exeext'
20028 { (case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031 esac
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_try") 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 ac_cv_lib_gcc___fixdfdi=yes
20038 else
20039 echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20042 ac_cv_lib_gcc___fixdfdi=no
20043 fi
20045 rm -f core conftest.err conftest.$ac_objext \
20046 conftest$ac_exeext conftest.$ac_ext
20047 LIBS=$ac_check_lib_save_LIBS
20048 fi
20049 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20050 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20051 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20053 cat >>confdefs.h <<\_ACEOF
20054 #define HAVE___FIXDFDI 1
20055 _ACEOF
20057 fi
20059 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20060 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20061 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20063 else
20064 ac_check_lib_save_LIBS=$LIBS
20065 LIBS="-lgcc $LIBS"
20066 cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h. */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20073 /* Override any GCC internal prototype to avoid an error.
20074 Use char because int might match the return type of a GCC
20075 builtin and then its argument prototype would still apply. */
20076 #ifdef __cplusplus
20077 extern "C"
20078 #endif
20079 char __fixsfdi ();
20080 int
20081 main ()
20082 {
20083 return __fixsfdi ();
20084 ;
20085 return 0;
20086 }
20087 _ACEOF
20088 rm -f conftest.$ac_objext conftest$ac_exeext
20089 if { (ac_try="$ac_link"
20090 case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20093 esac
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_link") 2>conftest.er1
20096 ac_status=$?
20097 grep -v '^ *+' conftest.er1 >conftest.err
20098 rm -f conftest.er1
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20103 { (case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_try") 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; } &&
20112 { ac_try='test -s conftest$ac_exeext'
20113 { (case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20116 esac
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_try") 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; }; then
20122 ac_cv_lib_gcc___fixsfdi=yes
20123 else
20124 echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20127 ac_cv_lib_gcc___fixsfdi=no
20128 fi
20130 rm -f core conftest.err conftest.$ac_objext \
20131 conftest$ac_exeext conftest.$ac_ext
20132 LIBS=$ac_check_lib_save_LIBS
20133 fi
20134 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20135 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20136 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE___FIXSFDI 1
20140 _ACEOF
20142 fi
20144 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20145 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20146 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 else
20149 ac_check_lib_save_LIBS=$LIBS
20150 LIBS="-lgcc $LIBS"
20151 cat >conftest.$ac_ext <<_ACEOF
20152 /* confdefs.h. */
20153 _ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20158 /* Override any GCC internal prototype to avoid an error.
20159 Use char because int might match the return type of a GCC
20160 builtin and then its argument prototype would still apply. */
20161 #ifdef __cplusplus
20162 extern "C"
20163 #endif
20164 char __floatdidf ();
20165 int
20166 main ()
20167 {
20168 return __floatdidf ();
20169 ;
20170 return 0;
20171 }
20172 _ACEOF
20173 rm -f conftest.$ac_objext conftest$ac_exeext
20174 if { (ac_try="$ac_link"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_link") 2>conftest.er1
20181 ac_status=$?
20182 grep -v '^ *+' conftest.er1 >conftest.err
20183 rm -f conftest.er1
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } &&
20187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20188 { (case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20191 esac
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_try") 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; } &&
20197 { ac_try='test -s conftest$ac_exeext'
20198 { (case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20201 esac
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_try") 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 ac_cv_lib_gcc___floatdidf=yes
20208 else
20209 echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20212 ac_cv_lib_gcc___floatdidf=no
20213 fi
20215 rm -f core conftest.err conftest.$ac_objext \
20216 conftest$ac_exeext conftest.$ac_ext
20217 LIBS=$ac_check_lib_save_LIBS
20218 fi
20219 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20220 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20221 if test $ac_cv_lib_gcc___floatdidf = yes; then
20223 cat >>confdefs.h <<\_ACEOF
20224 #define HAVE___FLOATDIDF 1
20225 _ACEOF
20227 fi
20229 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20230 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20231 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20232 echo $ECHO_N "(cached) $ECHO_C" >&6
20233 else
20234 ac_check_lib_save_LIBS=$LIBS
20235 LIBS="-lgcc $LIBS"
20236 cat >conftest.$ac_ext <<_ACEOF
20237 /* confdefs.h. */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20243 /* Override any GCC internal prototype to avoid an error.
20244 Use char because int might match the return type of a GCC
20245 builtin and then its argument prototype would still apply. */
20246 #ifdef __cplusplus
20247 extern "C"
20248 #endif
20249 char __lshrdi3 ();
20250 int
20251 main ()
20252 {
20253 return __lshrdi3 ();
20254 ;
20255 return 0;
20256 }
20257 _ACEOF
20258 rm -f conftest.$ac_objext conftest$ac_exeext
20259 if { (ac_try="$ac_link"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_link") 2>conftest.er1
20266 ac_status=$?
20267 grep -v '^ *+' conftest.er1 >conftest.err
20268 rm -f conftest.er1
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20276 esac
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest$ac_exeext'
20283 { (case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20286 esac
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_try") 2>&5
20289 ac_status=$?
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 ac_cv_lib_gcc___lshrdi3=yes
20293 else
20294 echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20297 ac_cv_lib_gcc___lshrdi3=no
20298 fi
20300 rm -f core conftest.err conftest.$ac_objext \
20301 conftest$ac_exeext conftest.$ac_ext
20302 LIBS=$ac_check_lib_save_LIBS
20303 fi
20304 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20305 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20306 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20308 cat >>confdefs.h <<\_ACEOF
20309 #define HAVE___LSHRDI3 1
20310 _ACEOF
20312 fi
20314 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20315 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20316 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20318 else
20319 ac_check_lib_save_LIBS=$LIBS
20320 LIBS="-lgcc $LIBS"
20321 cat >conftest.$ac_ext <<_ACEOF
20322 /* confdefs.h. */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20328 /* Override any GCC internal prototype to avoid an error.
20329 Use char because int might match the return type of a GCC
20330 builtin and then its argument prototype would still apply. */
20331 #ifdef __cplusplus
20332 extern "C"
20333 #endif
20334 char __moddi3 ();
20335 int
20336 main ()
20337 {
20338 return __moddi3 ();
20339 ;
20340 return 0;
20341 }
20342 _ACEOF
20343 rm -f conftest.$ac_objext conftest$ac_exeext
20344 if { (ac_try="$ac_link"
20345 case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20348 esac
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_link") 2>conftest.er1
20351 ac_status=$?
20352 grep -v '^ *+' conftest.er1 >conftest.err
20353 rm -f conftest.er1
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } &&
20357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20358 { (case "(($ac_try" in
20359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360 *) ac_try_echo=$ac_try;;
20361 esac
20362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363 (eval "$ac_try") 2>&5
20364 ac_status=$?
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; } &&
20367 { ac_try='test -s conftest$ac_exeext'
20368 { (case "(($ac_try" in
20369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370 *) ac_try_echo=$ac_try;;
20371 esac
20372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20373 (eval "$ac_try") 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 ac_cv_lib_gcc___moddi3=yes
20378 else
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 ac_cv_lib_gcc___moddi3=no
20383 fi
20385 rm -f core conftest.err conftest.$ac_objext \
20386 conftest$ac_exeext conftest.$ac_ext
20387 LIBS=$ac_check_lib_save_LIBS
20388 fi
20389 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20390 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20391 if test $ac_cv_lib_gcc___moddi3 = yes; then
20393 cat >>confdefs.h <<\_ACEOF
20394 #define HAVE___MODDI3 1
20395 _ACEOF
20397 fi
20399 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20400 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20401 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 else
20404 ac_check_lib_save_LIBS=$LIBS
20405 LIBS="-lgcc $LIBS"
20406 cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h. */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20413 /* Override any GCC internal prototype to avoid an error.
20414 Use char because int might match the return type of a GCC
20415 builtin and then its argument prototype would still apply. */
20416 #ifdef __cplusplus
20417 extern "C"
20418 #endif
20419 char __udivdi3 ();
20420 int
20421 main ()
20422 {
20423 return __udivdi3 ();
20424 ;
20425 return 0;
20426 }
20427 _ACEOF
20428 rm -f conftest.$ac_objext conftest$ac_exeext
20429 if { (ac_try="$ac_link"
20430 case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20433 esac
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_link") 2>conftest.er1
20436 ac_status=$?
20437 grep -v '^ *+' conftest.er1 >conftest.err
20438 rm -f conftest.er1
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } &&
20442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20443 { (case "(($ac_try" in
20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445 *) ac_try_echo=$ac_try;;
20446 esac
20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448 (eval "$ac_try") 2>&5
20449 ac_status=$?
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; } &&
20452 { ac_try='test -s conftest$ac_exeext'
20453 { (case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20456 esac
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_try") 2>&5
20459 ac_status=$?
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; }; then
20462 ac_cv_lib_gcc___udivdi3=yes
20463 else
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 ac_cv_lib_gcc___udivdi3=no
20468 fi
20470 rm -f core conftest.err conftest.$ac_objext \
20471 conftest$ac_exeext conftest.$ac_ext
20472 LIBS=$ac_check_lib_save_LIBS
20473 fi
20474 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20475 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20476 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20478 cat >>confdefs.h <<\_ACEOF
20479 #define HAVE___UDIVDI3 1
20480 _ACEOF
20482 fi
20484 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20485 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20486 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20487 echo $ECHO_N "(cached) $ECHO_C" >&6
20488 else
20489 ac_check_lib_save_LIBS=$LIBS
20490 LIBS="-lgcc $LIBS"
20491 cat >conftest.$ac_ext <<_ACEOF
20492 /* confdefs.h. */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20498 /* Override any GCC internal prototype to avoid an error.
20499 Use char because int might match the return type of a GCC
20500 builtin and then its argument prototype would still apply. */
20501 #ifdef __cplusplus
20502 extern "C"
20503 #endif
20504 char __umoddi3 ();
20505 int
20506 main ()
20507 {
20508 return __umoddi3 ();
20509 ;
20510 return 0;
20511 }
20512 _ACEOF
20513 rm -f conftest.$ac_objext conftest$ac_exeext
20514 if { (ac_try="$ac_link"
20515 case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20518 esac
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_link") 2>conftest.er1
20521 ac_status=$?
20522 grep -v '^ *+' conftest.er1 >conftest.err
20523 rm -f conftest.er1
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } &&
20527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20528 { (case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20531 esac
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_try") 2>&5
20534 ac_status=$?
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; } &&
20537 { ac_try='test -s conftest$ac_exeext'
20538 { (case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20541 esac
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_try") 2>&5
20544 ac_status=$?
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; }; then
20547 ac_cv_lib_gcc___umoddi3=yes
20548 else
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ac_cv_lib_gcc___umoddi3=no
20553 fi
20555 rm -f core conftest.err conftest.$ac_objext \
20556 conftest$ac_exeext conftest.$ac_ext
20557 LIBS=$ac_check_lib_save_LIBS
20558 fi
20559 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20560 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20561 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20563 cat >>confdefs.h <<\_ACEOF
20564 #define HAVE___UMODDI3 1
20565 _ACEOF
20567 fi
20570 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20571 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20572 if test "${ac_cv_lib_gcc___main+set}" = set; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
20574 else
20575 ac_check_lib_save_LIBS=$LIBS
20576 LIBS="-lgcc $LIBS"
20577 cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h. */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20584 /* Override any GCC internal prototype to avoid an error.
20585 Use char because int might match the return type of a GCC
20586 builtin and then its argument prototype would still apply. */
20587 #ifdef __cplusplus
20588 extern "C"
20589 #endif
20590 char __main ();
20591 int
20592 main ()
20593 {
20594 return __main ();
20595 ;
20596 return 0;
20597 }
20598 _ACEOF
20599 rm -f conftest.$ac_objext conftest$ac_exeext
20600 if { (ac_try="$ac_link"
20601 case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20604 esac
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_link") 2>conftest.er1
20607 ac_status=$?
20608 grep -v '^ *+' conftest.er1 >conftest.err
20609 rm -f conftest.er1
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } &&
20613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20614 { (case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20617 esac
20618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619 (eval "$ac_try") 2>&5
20620 ac_status=$?
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; } &&
20623 { ac_try='test -s conftest$ac_exeext'
20624 { (case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20627 esac
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_try") 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20633 ac_cv_lib_gcc___main=yes
20634 else
20635 echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20638 ac_cv_lib_gcc___main=no
20639 fi
20641 rm -f core conftest.err conftest.$ac_objext \
20642 conftest$ac_exeext conftest.$ac_ext
20643 LIBS=$ac_check_lib_save_LIBS
20644 fi
20645 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20646 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20647 if test $ac_cv_lib_gcc___main = yes; then
20649 cat >>confdefs.h <<\_ACEOF
20650 #define HAVE___MAIN 1
20651 _ACEOF
20653 fi
20655 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20656 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20657 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660 ac_check_lib_save_LIBS=$LIBS
20661 LIBS="-lgcc $LIBS"
20662 cat >conftest.$ac_ext <<_ACEOF
20663 /* confdefs.h. */
20664 _ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20669 /* Override any GCC internal prototype to avoid an error.
20670 Use char because int might match the return type of a GCC
20671 builtin and then its argument prototype would still apply. */
20672 #ifdef __cplusplus
20673 extern "C"
20674 #endif
20675 char __cmpdi2 ();
20676 int
20677 main ()
20678 {
20679 return __cmpdi2 ();
20680 ;
20681 return 0;
20682 }
20683 _ACEOF
20684 rm -f conftest.$ac_objext conftest$ac_exeext
20685 if { (ac_try="$ac_link"
20686 case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20689 esac
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_link") 2>conftest.er1
20692 ac_status=$?
20693 grep -v '^ *+' conftest.er1 >conftest.err
20694 rm -f conftest.er1
20695 cat conftest.err >&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } &&
20698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20699 { (case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20702 esac
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_try") 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; } &&
20708 { ac_try='test -s conftest$ac_exeext'
20709 { (case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_try") 2>&5
20715 ac_status=$?
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; }; then
20718 ac_cv_lib_gcc___cmpdi2=yes
20719 else
20720 echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20723 ac_cv_lib_gcc___cmpdi2=no
20724 fi
20726 rm -f core conftest.err conftest.$ac_objext \
20727 conftest$ac_exeext conftest.$ac_ext
20728 LIBS=$ac_check_lib_save_LIBS
20729 fi
20730 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20731 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20732 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20734 cat >>confdefs.h <<\_ACEOF
20735 #define HAVE___CMPDI2 1
20736 _ACEOF
20738 fi
20740 fi
20742 if test "$llvm_cv_os_type" = "MingW" ; then
20743 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20744 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20745 cat >conftest.$ac_ext <<_ACEOF
20747 /* confdefs.h. */
20748 _ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h. */
20753 #include <windows.h>
20754 #include <imagehlp.h>
20755 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20756 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20759 _ACEOF
20760 rm -f conftest.$ac_objext
20761 if { (ac_try="$ac_compile"
20762 case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_compile") 2>conftest.er1
20768 ac_status=$?
20769 grep -v '^ *+' conftest.er1 >conftest.err
20770 rm -f conftest.er1
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } &&
20774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20775 { (case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_try") 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; } &&
20784 { ac_try='test -s conftest.$ac_objext'
20785 { (case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20788 esac
20789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790 (eval "$ac_try") 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20795 { echo "$as_me:$LINENO: result: yes" >&5
20796 echo "${ECHO_T}yes" >&6; }
20797 llvm_cv_win32_elmcb_pcstr="PCSTR"
20799 else
20800 echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20804 { echo "$as_me:$LINENO: result: no" >&5
20805 echo "${ECHO_T}no" >&6; }
20806 llvm_cv_win32_elmcb_pcstr="PSTR"
20808 fi
20810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20812 cat >>confdefs.h <<_ACEOF
20813 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20814 _ACEOF
20816 fi
20820 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20821 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20822 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20823 echo $ECHO_N "(cached) $ECHO_C" >&6
20824 else
20826 ac_ext=cpp
20827 ac_cpp='$CXXCPP $CPPFLAGS'
20828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20832 cat >conftest.$ac_ext <<_ACEOF
20833 /* confdefs.h. */
20834 _ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20838 #include <math.h>
20839 int
20840 main ()
20841 {
20842 float f; isnan(f);
20843 ;
20844 return 0;
20845 }
20846 _ACEOF
20847 rm -f conftest.$ac_objext
20848 if { (ac_try="$ac_compile"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20852 esac
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_compile") 2>conftest.er1
20855 ac_status=$?
20856 grep -v '^ *+' conftest.er1 >conftest.err
20857 rm -f conftest.er1
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
20861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20862 { (case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20865 esac
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_try") 2>&5
20868 ac_status=$?
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; } &&
20871 { ac_try='test -s conftest.$ac_objext'
20872 { (case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20875 esac
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_try") 2>&5
20878 ac_status=$?
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
20881 ac_cv_func_isnan_in_math_h=yes
20882 else
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20886 ac_cv_func_isnan_in_math_h=no
20887 fi
20889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20890 ac_ext=c
20891 ac_cpp='$CPP $CPPFLAGS'
20892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20897 fi
20898 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20899 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20902 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20904 cat >>confdefs.h <<\_ACEOF
20905 #define HAVE_ISNAN_IN_MATH_H 1
20906 _ACEOF
20908 fi
20911 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20912 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20913 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20917 ac_ext=cpp
20918 ac_cpp='$CXXCPP $CPPFLAGS'
20919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20923 cat >conftest.$ac_ext <<_ACEOF
20924 /* confdefs.h. */
20925 _ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h. */
20929 #include <cmath>
20930 int
20931 main ()
20932 {
20933 float f; isnan(f);
20934 ;
20935 return 0;
20936 }
20937 _ACEOF
20938 rm -f conftest.$ac_objext
20939 if { (ac_try="$ac_compile"
20940 case "(($ac_try" in
20941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942 *) ac_try_echo=$ac_try;;
20943 esac
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945 (eval "$ac_compile") 2>conftest.er1
20946 ac_status=$?
20947 grep -v '^ *+' conftest.er1 >conftest.err
20948 rm -f conftest.er1
20949 cat conftest.err >&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } &&
20952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
20959 ac_status=$?
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; } &&
20962 { ac_try='test -s conftest.$ac_objext'
20963 { (case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20966 esac
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_try") 2>&5
20969 ac_status=$?
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 ac_cv_func_isnan_in_cmath=yes
20973 else
20974 echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20977 ac_cv_func_isnan_in_cmath=no
20978 fi
20980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20981 ac_ext=c
20982 ac_cpp='$CPP $CPPFLAGS'
20983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20988 fi
20989 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20990 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20992 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20994 cat >>confdefs.h <<\_ACEOF
20995 #define HAVE_ISNAN_IN_CMATH 1
20996 _ACEOF
20998 fi
21001 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21002 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
21003 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21004 echo $ECHO_N "(cached) $ECHO_C" >&6
21005 else
21007 ac_ext=cpp
21008 ac_cpp='$CXXCPP $CPPFLAGS'
21009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21013 cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h. */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 #include <cmath>
21020 int
21021 main ()
21022 {
21023 float f; std::isnan(f);
21024 ;
21025 return 0;
21026 }
21027 _ACEOF
21028 rm -f conftest.$ac_objext
21029 if { (ac_try="$ac_compile"
21030 case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21033 esac
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_compile") 2>conftest.er1
21036 ac_status=$?
21037 grep -v '^ *+' conftest.er1 >conftest.err
21038 rm -f conftest.er1
21039 cat conftest.err >&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } &&
21042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21043 { (case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21046 esac
21047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048 (eval "$ac_try") 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; } &&
21052 { ac_try='test -s conftest.$ac_objext'
21053 { (case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_try") 2>&5
21059 ac_status=$?
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; }; then
21062 ac_cv_func_std_isnan_in_cmath=yes
21063 else
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21067 ac_cv_func_std_isnan_in_cmath=no
21068 fi
21070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21071 ac_ext=c
21072 ac_cpp='$CPP $CPPFLAGS'
21073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21078 fi
21079 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21080 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21082 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21084 cat >>confdefs.h <<\_ACEOF
21085 #define HAVE_STD_ISNAN_IN_CMATH 1
21086 _ACEOF
21088 fi
21093 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21094 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21095 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21096 echo $ECHO_N "(cached) $ECHO_C" >&6
21097 else
21099 ac_ext=cpp
21100 ac_cpp='$CXXCPP $CPPFLAGS'
21101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21105 cat >conftest.$ac_ext <<_ACEOF
21106 /* confdefs.h. */
21107 _ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21111 #include <math.h>
21112 int
21113 main ()
21114 {
21115 float f; isinf(f);
21116 ;
21117 return 0;
21118 }
21119 _ACEOF
21120 rm -f conftest.$ac_objext
21121 if { (ac_try="$ac_compile"
21122 case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21125 esac
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_compile") 2>conftest.er1
21128 ac_status=$?
21129 grep -v '^ *+' conftest.er1 >conftest.err
21130 rm -f conftest.er1
21131 cat conftest.err >&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } &&
21134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21135 { (case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21138 esac
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_try") 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try='test -s conftest.$ac_objext'
21145 { (case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21148 esac
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150 (eval "$ac_try") 2>&5
21151 ac_status=$?
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; }; then
21154 ac_cv_func_isinf_in_math_h=yes
21155 else
21156 echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21159 ac_cv_func_isinf_in_math_h=no
21160 fi
21162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21163 ac_ext=c
21164 ac_cpp='$CPP $CPPFLAGS'
21165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21170 fi
21171 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21172 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21174 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21176 cat >>confdefs.h <<\_ACEOF
21177 #define HAVE_ISINF_IN_MATH_H 1
21178 _ACEOF
21180 fi
21183 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21184 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21185 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21186 echo $ECHO_N "(cached) $ECHO_C" >&6
21187 else
21189 ac_ext=cpp
21190 ac_cpp='$CXXCPP $CPPFLAGS'
21191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21195 cat >conftest.$ac_ext <<_ACEOF
21196 /* confdefs.h. */
21197 _ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21201 #include <cmath>
21202 int
21203 main ()
21204 {
21205 float f; isinf(f);
21206 ;
21207 return 0;
21208 }
21209 _ACEOF
21210 rm -f conftest.$ac_objext
21211 if { (ac_try="$ac_compile"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21215 esac
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_compile") 2>conftest.er1
21218 ac_status=$?
21219 grep -v '^ *+' conftest.er1 >conftest.err
21220 rm -f conftest.er1
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } &&
21224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21225 { (case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21228 esac
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_try") 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; } &&
21234 { ac_try='test -s conftest.$ac_objext'
21235 { (case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21238 esac
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_try") 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_func_isinf_in_cmath=yes
21245 else
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 ac_cv_func_isinf_in_cmath=no
21250 fi
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 ac_ext=c
21254 ac_cpp='$CPP $CPPFLAGS'
21255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21260 fi
21261 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21262 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21264 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21266 cat >>confdefs.h <<\_ACEOF
21267 #define HAVE_ISINF_IN_CMATH 1
21268 _ACEOF
21270 fi
21273 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21274 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21275 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 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 <cmath>
21292 int
21293 main ()
21294 {
21295 float f; std::isinf(f);
21296 ;
21297 return 0;
21298 }
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_std_isinf_in_cmath=yes
21335 else
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21339 ac_cv_func_std_isinf_in_cmath=no
21340 fi
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 fi
21351 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21352 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21354 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21356 cat >>confdefs.h <<\_ACEOF
21357 #define HAVE_STD_ISINF_IN_CMATH 1
21358 _ACEOF
21360 fi
21363 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21364 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21365 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21367 else
21369 ac_ext=cpp
21370 ac_cpp='$CXXCPP $CPPFLAGS'
21371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21375 cat >conftest.$ac_ext <<_ACEOF
21376 /* confdefs.h. */
21377 _ACEOF
21378 cat confdefs.h >>conftest.$ac_ext
21379 cat >>conftest.$ac_ext <<_ACEOF
21380 /* end confdefs.h. */
21381 #include <ieeefp.h>
21382 int
21383 main ()
21384 {
21385 float f; finite(f);
21386 ;
21387 return 0;
21388 }
21389 _ACEOF
21390 rm -f conftest.$ac_objext
21391 if { (ac_try="$ac_compile"
21392 case "(($ac_try" in
21393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21394 *) ac_try_echo=$ac_try;;
21395 esac
21396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21397 (eval "$ac_compile") 2>conftest.er1
21398 ac_status=$?
21399 grep -v '^ *+' conftest.er1 >conftest.err
21400 rm -f conftest.er1
21401 cat conftest.err >&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } &&
21404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21405 { (case "(($ac_try" in
21406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407 *) ac_try_echo=$ac_try;;
21408 esac
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410 (eval "$ac_try") 2>&5
21411 ac_status=$?
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; } &&
21414 { ac_try='test -s conftest.$ac_objext'
21415 { (case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21418 esac
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_try") 2>&5
21421 ac_status=$?
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; }; then
21424 ac_cv_func_finite_in_ieeefp_h=yes
21425 else
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 ac_cv_func_finite_in_ieeefp_h=no
21430 fi
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433 ac_ext=c
21434 ac_cpp='$CPP $CPPFLAGS'
21435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21440 fi
21441 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21442 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21444 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21446 cat >>confdefs.h <<\_ACEOF
21447 #define HAVE_FINITE_IN_IEEEFP_H 1
21448 _ACEOF
21450 fi
21454 if test "$llvm_cv_platform_type" = "Unix" ; then
21457 for ac_header in stdlib.h unistd.h
21458 do
21459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21464 echo $ECHO_N "(cached) $ECHO_C" >&6
21465 fi
21466 ac_res=`eval echo '${'$as_ac_Header'}'`
21467 { echo "$as_me:$LINENO: result: $ac_res" >&5
21468 echo "${ECHO_T}$ac_res" >&6; }
21469 else
21470 # Is the header compilable?
21471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21473 cat >conftest.$ac_ext <<_ACEOF
21474 /* confdefs.h. */
21475 _ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h. */
21479 $ac_includes_default
21480 #include <$ac_header>
21481 _ACEOF
21482 rm -f conftest.$ac_objext
21483 if { (ac_try="$ac_compile"
21484 case "(($ac_try" in
21485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486 *) ac_try_echo=$ac_try;;
21487 esac
21488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21489 (eval "$ac_compile") 2>conftest.er1
21490 ac_status=$?
21491 grep -v '^ *+' conftest.er1 >conftest.err
21492 rm -f conftest.er1
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } &&
21496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21497 { (case "(($ac_try" in
21498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21499 *) ac_try_echo=$ac_try;;
21500 esac
21501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21502 (eval "$ac_try") 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; } &&
21506 { ac_try='test -s conftest.$ac_objext'
21507 { (case "(($ac_try" in
21508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509 *) ac_try_echo=$ac_try;;
21510 esac
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512 (eval "$ac_try") 2>&5
21513 ac_status=$?
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; }; then
21516 ac_header_compiler=yes
21517 else
21518 echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21521 ac_header_compiler=no
21522 fi
21524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21526 echo "${ECHO_T}$ac_header_compiler" >&6; }
21528 # Is the header present?
21529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21531 cat >conftest.$ac_ext <<_ACEOF
21532 /* confdefs.h. */
21533 _ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21537 #include <$ac_header>
21538 _ACEOF
21539 if { (ac_try="$ac_cpp conftest.$ac_ext"
21540 case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21543 esac
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21546 ac_status=$?
21547 grep -v '^ *+' conftest.er1 >conftest.err
21548 rm -f conftest.er1
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } >/dev/null; then
21552 if test -s conftest.err; then
21553 ac_cpp_err=$ac_c_preproc_warn_flag
21554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21555 else
21556 ac_cpp_err=
21557 fi
21558 else
21559 ac_cpp_err=yes
21560 fi
21561 if test -z "$ac_cpp_err"; then
21562 ac_header_preproc=yes
21563 else
21564 echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21567 ac_header_preproc=no
21568 fi
21570 rm -f conftest.err conftest.$ac_ext
21571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21572 echo "${ECHO_T}$ac_header_preproc" >&6; }
21574 # So? What about this header?
21575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21576 yes:no: )
21577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21581 ac_header_preproc=yes
21582 ;;
21583 no:yes:* )
21584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21596 ( cat <<\_ASBOX
21597 ## ------------------------------------ ##
21598 ## Report this to http://llvm.org/bugs/ ##
21599 ## ------------------------------------ ##
21600 _ASBOX
21601 ) | sed "s/^/$as_me: WARNING: /" >&2
21602 ;;
21603 esac
21604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21608 else
21609 eval "$as_ac_Header=\$ac_header_preproc"
21610 fi
21611 ac_res=`eval echo '${'$as_ac_Header'}'`
21612 { echo "$as_me:$LINENO: result: $ac_res" >&5
21613 echo "${ECHO_T}$ac_res" >&6; }
21615 fi
21616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21617 cat >>confdefs.h <<_ACEOF
21618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21619 _ACEOF
21621 fi
21623 done
21626 for ac_func in getpagesize
21627 do
21628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21633 else
21634 cat >conftest.$ac_ext <<_ACEOF
21635 /* confdefs.h. */
21636 _ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21642 #define $ac_func innocuous_$ac_func
21644 /* System header to define __stub macros and hopefully few prototypes,
21645 which can conflict with char $ac_func (); below.
21646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21647 <limits.h> exists even on freestanding compilers. */
21649 #ifdef __STDC__
21650 # include <limits.h>
21651 #else
21652 # include <assert.h>
21653 #endif
21655 #undef $ac_func
21657 /* Override any GCC internal prototype to avoid an error.
21658 Use char because int might match the return type of a GCC
21659 builtin and then its argument prototype would still apply. */
21660 #ifdef __cplusplus
21661 extern "C"
21662 #endif
21663 char $ac_func ();
21664 /* The GNU C library defines this for functions which it implements
21665 to always fail with ENOSYS. Some functions are actually named
21666 something starting with __ and the normal name is an alias. */
21667 #if defined __stub_$ac_func || defined __stub___$ac_func
21668 choke me
21669 #endif
21671 int
21672 main ()
21673 {
21674 return $ac_func ();
21675 ;
21676 return 0;
21677 }
21678 _ACEOF
21679 rm -f conftest.$ac_objext conftest$ac_exeext
21680 if { (ac_try="$ac_link"
21681 case "(($ac_try" in
21682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683 *) ac_try_echo=$ac_try;;
21684 esac
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686 (eval "$ac_link") 2>conftest.er1
21687 ac_status=$?
21688 grep -v '^ *+' conftest.er1 >conftest.err
21689 rm -f conftest.er1
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } &&
21693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21694 { (case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21697 esac
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_try") 2>&5
21700 ac_status=$?
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); }; } &&
21703 { ac_try='test -s conftest$ac_exeext'
21704 { (case "(($ac_try" in
21705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706 *) ac_try_echo=$ac_try;;
21707 esac
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709 (eval "$ac_try") 2>&5
21710 ac_status=$?
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; }; then
21713 eval "$as_ac_var=yes"
21714 else
21715 echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21718 eval "$as_ac_var=no"
21719 fi
21721 rm -f core conftest.err conftest.$ac_objext \
21722 conftest$ac_exeext conftest.$ac_ext
21723 fi
21724 ac_res=`eval echo '${'$as_ac_var'}'`
21725 { echo "$as_me:$LINENO: result: $ac_res" >&5
21726 echo "${ECHO_T}$ac_res" >&6; }
21727 if test `eval echo '${'$as_ac_var'}'` = yes; then
21728 cat >>confdefs.h <<_ACEOF
21729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21730 _ACEOF
21732 fi
21733 done
21735 { echo "$as_me:$LINENO: checking for working mmap" >&5
21736 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21737 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21738 echo $ECHO_N "(cached) $ECHO_C" >&6
21739 else
21740 if test "$cross_compiling" = yes; then
21741 ac_cv_func_mmap_fixed_mapped=no
21742 else
21743 cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h. */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21749 $ac_includes_default
21750 /* malloc might have been renamed as rpl_malloc. */
21751 #undef malloc
21753 /* Thanks to Mike Haertel and Jim Avera for this test.
21754 Here is a matrix of mmap possibilities:
21755 mmap private not fixed
21756 mmap private fixed at somewhere currently unmapped
21757 mmap private fixed at somewhere already mapped
21758 mmap shared not fixed
21759 mmap shared fixed at somewhere currently unmapped
21760 mmap shared fixed at somewhere already mapped
21761 For private mappings, we should verify that changes cannot be read()
21762 back from the file, nor mmap's back from the file at a different
21763 address. (There have been systems where private was not correctly
21764 implemented like the infamous i386 svr4.0, and systems where the
21765 VM page cache was not coherent with the file system buffer cache
21766 like early versions of FreeBSD and possibly contemporary NetBSD.)
21767 For shared mappings, we should conversely verify that changes get
21768 propagated back to all the places they're supposed to be.
21770 Grep wants private fixed already mapped.
21771 The main things grep needs to know about mmap are:
21772 * does it exist and is it safe to write into the mmap'd area
21773 * how to use it (BSD variants) */
21775 #include <fcntl.h>
21776 #include <sys/mman.h>
21778 #if !STDC_HEADERS && !HAVE_STDLIB_H
21779 char *malloc ();
21780 #endif
21782 /* This mess was copied from the GNU getpagesize.h. */
21783 #if !HAVE_GETPAGESIZE
21784 /* Assume that all systems that can run configure have sys/param.h. */
21785 # if !HAVE_SYS_PARAM_H
21786 # define HAVE_SYS_PARAM_H 1
21787 # endif
21789 # ifdef _SC_PAGESIZE
21790 # define getpagesize() sysconf(_SC_PAGESIZE)
21791 # else /* no _SC_PAGESIZE */
21792 # if HAVE_SYS_PARAM_H
21793 # include <sys/param.h>
21794 # ifdef EXEC_PAGESIZE
21795 # define getpagesize() EXEC_PAGESIZE
21796 # else /* no EXEC_PAGESIZE */
21797 # ifdef NBPG
21798 # define getpagesize() NBPG * CLSIZE
21799 # ifndef CLSIZE
21800 # define CLSIZE 1
21801 # endif /* no CLSIZE */
21802 # else /* no NBPG */
21803 # ifdef NBPC
21804 # define getpagesize() NBPC
21805 # else /* no NBPC */
21806 # ifdef PAGESIZE
21807 # define getpagesize() PAGESIZE
21808 # endif /* PAGESIZE */
21809 # endif /* no NBPC */
21810 # endif /* no NBPG */
21811 # endif /* no EXEC_PAGESIZE */
21812 # else /* no HAVE_SYS_PARAM_H */
21813 # define getpagesize() 8192 /* punt totally */
21814 # endif /* no HAVE_SYS_PARAM_H */
21815 # endif /* no _SC_PAGESIZE */
21817 #endif /* no HAVE_GETPAGESIZE */
21819 int
21820 main ()
21821 {
21822 char *data, *data2, *data3;
21823 int i, pagesize;
21824 int fd;
21826 pagesize = getpagesize ();
21828 /* First, make a file with some known garbage in it. */
21829 data = (char *) malloc (pagesize);
21830 if (!data)
21831 return 1;
21832 for (i = 0; i < pagesize; ++i)
21833 *(data + i) = rand ();
21834 umask (0);
21835 fd = creat ("conftest.mmap", 0600);
21836 if (fd < 0)
21837 return 1;
21838 if (write (fd, data, pagesize) != pagesize)
21839 return 1;
21840 close (fd);
21842 /* Next, try to mmap the file at a fixed address which already has
21843 something else allocated at it. If we can, also make sure that
21844 we see the same garbage. */
21845 fd = open ("conftest.mmap", O_RDWR);
21846 if (fd < 0)
21847 return 1;
21848 data2 = (char *) malloc (2 * pagesize);
21849 if (!data2)
21850 return 1;
21851 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21852 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21853 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21854 return 1;
21855 for (i = 0; i < pagesize; ++i)
21856 if (*(data + i) != *(data2 + i))
21857 return 1;
21859 /* Finally, make sure that changes to the mapped area do not
21860 percolate back to the file as seen by read(). (This is a bug on
21861 some variants of i386 svr4.0.) */
21862 for (i = 0; i < pagesize; ++i)
21863 *(data2 + i) = *(data2 + i) + 1;
21864 data3 = (char *) malloc (pagesize);
21865 if (!data3)
21866 return 1;
21867 if (read (fd, data3, pagesize) != pagesize)
21868 return 1;
21869 for (i = 0; i < pagesize; ++i)
21870 if (*(data + i) != *(data3 + i))
21871 return 1;
21872 close (fd);
21873 return 0;
21874 }
21875 _ACEOF
21876 rm -f conftest$ac_exeext
21877 if { (ac_try="$ac_link"
21878 case "(($ac_try" in
21879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21880 *) ac_try_echo=$ac_try;;
21881 esac
21882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21883 (eval "$ac_link") 2>&5
21884 ac_status=$?
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21887 { (case "(($ac_try" in
21888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21889 *) ac_try_echo=$ac_try;;
21890 esac
21891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21892 (eval "$ac_try") 2>&5
21893 ac_status=$?
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
21896 ac_cv_func_mmap_fixed_mapped=yes
21897 else
21898 echo "$as_me: program exited with status $ac_status" >&5
21899 echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21902 ( exit $ac_status )
21903 ac_cv_func_mmap_fixed_mapped=no
21904 fi
21905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21906 fi
21909 fi
21910 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21911 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21912 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21914 cat >>confdefs.h <<\_ACEOF
21915 #define HAVE_MMAP 1
21916 _ACEOF
21918 fi
21919 rm -f conftest.mmap
21921 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21922 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21923 if test "${ac_cv_func_mmap_file+set}" = set; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 else
21926 ac_ext=c
21927 ac_cpp='$CPP $CPPFLAGS'
21928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21932 if test "$cross_compiling" = yes; then
21933 ac_cv_func_mmap_file=no
21934 else
21935 cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h. */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21943 #include <sys/types.h>
21944 #include <sys/mman.h>
21945 #include <fcntl.h>
21947 int
21948 main ()
21949 {
21951 int fd;
21952 fd = creat ("foo",0777);
21953 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21954 unlink ("foo");
21955 return (fd != (int) MAP_FAILED);
21956 ;
21957 return 0;
21958 }
21959 _ACEOF
21960 rm -f conftest$ac_exeext
21961 if { (ac_try="$ac_link"
21962 case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21965 esac
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967 (eval "$ac_link") 2>&5
21968 ac_status=$?
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21971 { (case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21974 esac
21975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21976 (eval "$ac_try") 2>&5
21977 ac_status=$?
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; }; then
21980 ac_cv_func_mmap_file=yes
21981 else
21982 echo "$as_me: program exited with status $ac_status" >&5
21983 echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 ( exit $ac_status )
21987 ac_cv_func_mmap_file=no
21988 fi
21989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21990 fi
21993 ac_ext=c
21994 ac_cpp='$CPP $CPPFLAGS'
21995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22000 fi
22001 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22002 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
22003 if test "$ac_cv_func_mmap_file" = yes; then
22005 cat >>confdefs.h <<\_ACEOF
22006 #define HAVE_MMAP_FILE
22007 _ACEOF
22009 MMAP_FILE=yes
22011 fi
22013 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
22014 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
22015 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22017 else
22018 if test "$llvm_cv_os_type" = "Interix" ; then
22019 ac_cv_need_dev_zero_for_mmap=yes
22020 else
22021 ac_cv_need_dev_zero_for_mmap=no
22022 fi
22024 fi
22025 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
22026 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
22027 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
22029 cat >>confdefs.h <<\_ACEOF
22030 #define NEED_DEV_ZERO_FOR_MMAP 1
22031 _ACEOF
22033 fi
22035 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22036 then
22037 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
22038 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
22039 fi
22040 if test "$ac_cv_func_mmap_file" = "no"
22041 then
22042 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22043 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22044 fi
22045 fi
22047 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22048 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22049 ac_ext=cpp
22050 ac_cpp='$CXXCPP $CPPFLAGS'
22051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22055 cat >conftest.$ac_ext <<_ACEOF
22057 /* confdefs.h. */
22058 _ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22063 int main() {
22064 volatile unsigned long val = 1;
22065 __sync_synchronize();
22066 __sync_val_compare_and_swap(&val, 1, 0);
22067 __sync_add_and_fetch(&val, 1);
22068 __sync_sub_and_fetch(&val, 1);
22069 return 0;
22070 }
22073 _ACEOF
22074 rm -f conftest.$ac_objext conftest$ac_exeext
22075 if { (ac_try="$ac_link"
22076 case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22079 esac
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_link") 2>conftest.er1
22082 ac_status=$?
22083 grep -v '^ *+' conftest.er1 >conftest.err
22084 rm -f conftest.er1
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } &&
22088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22089 { (case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_try") 2>&5
22095 ac_status=$?
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; } &&
22098 { ac_try='test -s conftest$ac_exeext'
22099 { (case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22102 esac
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_try") 2>&5
22105 ac_status=$?
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; }; then
22109 { echo "$as_me:$LINENO: result: yes" >&5
22110 echo "${ECHO_T}yes" >&6; }
22112 cat >>confdefs.h <<\_ACEOF
22113 #define LLVM_HAS_ATOMICS 1
22114 _ACEOF
22117 else
22118 echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22122 { echo "$as_me:$LINENO: result: no" >&5
22123 echo "${ECHO_T}no" >&6; }
22125 cat >>confdefs.h <<\_ACEOF
22126 #define LLVM_HAS_ATOMICS 0
22127 _ACEOF
22129 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22130 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22132 fi
22134 rm -f core conftest.err conftest.$ac_objext \
22135 conftest$ac_exeext conftest.$ac_ext
22136 ac_ext=c
22137 ac_cpp='$CPP $CPPFLAGS'
22138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22144 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22145 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22146 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22147 if test "${llvm_cv_linux_mixed+set}" = set; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22149 else
22150 ac_ext=c
22151 ac_cpp='$CPP $CPPFLAGS'
22152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22156 cat >conftest.$ac_ext <<_ACEOF
22157 /* confdefs.h. */
22158 _ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h. */
22162 #ifndef __x86_64__
22163 error: Not x86-64 even if uname says so!
22164 #endif
22166 int
22167 main ()
22168 {
22170 ;
22171 return 0;
22172 }
22173 _ACEOF
22174 rm -f conftest.$ac_objext
22175 if { (ac_try="$ac_compile"
22176 case "(($ac_try" in
22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178 *) ac_try_echo=$ac_try;;
22179 esac
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181 (eval "$ac_compile") 2>conftest.er1
22182 ac_status=$?
22183 grep -v '^ *+' conftest.er1 >conftest.err
22184 rm -f conftest.er1
22185 cat conftest.err >&5
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } &&
22188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22189 { (case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22192 esac
22193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_try") 2>&5
22195 ac_status=$?
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; } &&
22198 { ac_try='test -s conftest.$ac_objext'
22199 { (case "(($ac_try" in
22200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201 *) ac_try_echo=$ac_try;;
22202 esac
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204 (eval "$ac_try") 2>&5
22205 ac_status=$?
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; }; then
22208 llvm_cv_linux_mixed=no
22209 else
22210 echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22213 llvm_cv_linux_mixed=yes
22214 fi
22216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22217 ac_ext=c
22218 ac_cpp='$CPP $CPPFLAGS'
22219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22224 fi
22225 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22226 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22228 if test "$llvm_cv_linux_mixed" = "yes"; then
22229 llvm_cv_target_arch="x86"
22230 ARCH="x86"
22231 fi
22232 fi
22235 for ac_func in __dso_handle
22236 do
22237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 else
22243 cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h. */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22251 #define $ac_func innocuous_$ac_func
22253 /* System header to define __stub macros and hopefully few prototypes,
22254 which can conflict with char $ac_func (); below.
22255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22256 <limits.h> exists even on freestanding compilers. */
22258 #ifdef __STDC__
22259 # include <limits.h>
22260 #else
22261 # include <assert.h>
22262 #endif
22264 #undef $ac_func
22266 /* Override any GCC internal prototype to avoid an error.
22267 Use char because int might match the return type of a GCC
22268 builtin and then its argument prototype would still apply. */
22269 #ifdef __cplusplus
22270 extern "C"
22271 #endif
22272 char $ac_func ();
22273 /* The GNU C library defines this for functions which it implements
22274 to always fail with ENOSYS. Some functions are actually named
22275 something starting with __ and the normal name is an alias. */
22276 #if defined __stub_$ac_func || defined __stub___$ac_func
22277 choke me
22278 #endif
22280 int
22281 main ()
22282 {
22283 return $ac_func ();
22284 ;
22285 return 0;
22286 }
22287 _ACEOF
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22293 esac
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_link") 2>conftest.er1
22296 ac_status=$?
22297 grep -v '^ *+' conftest.er1 >conftest.err
22298 rm -f conftest.er1
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } &&
22302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22303 { (case "(($ac_try" in
22304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22305 *) ac_try_echo=$ac_try;;
22306 esac
22307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22308 (eval "$ac_try") 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; } &&
22312 { ac_try='test -s conftest$ac_exeext'
22313 { (case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22316 esac
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_try") 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 eval "$as_ac_var=yes"
22323 else
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 eval "$as_ac_var=no"
22328 fi
22330 rm -f core conftest.err conftest.$ac_objext \
22331 conftest$ac_exeext conftest.$ac_ext
22332 fi
22333 ac_res=`eval echo '${'$as_ac_var'}'`
22334 { echo "$as_me:$LINENO: result: $ac_res" >&5
22335 echo "${ECHO_T}$ac_res" >&6; }
22336 if test `eval echo '${'$as_ac_var'}'` = yes; then
22337 cat >>confdefs.h <<_ACEOF
22338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22339 _ACEOF
22341 fi
22342 done
22345 SHLIBEXT=$libltdl_cv_shlibext
22348 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22351 if test "${prefix}" = "NONE" ; then
22352 prefix="/usr/local"
22353 fi
22354 eval LLVM_PREFIX="${prefix}";
22355 eval LLVM_BINDIR="${prefix}/bin";
22356 eval LLVM_DATADIR="${prefix}/share/llvm";
22357 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22358 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22359 eval LLVM_INCLUDEDIR="${prefix}/include";
22360 eval LLVM_INFODIR="${prefix}/info";
22361 eval LLVM_MANDIR="${prefix}/man";
22362 LLVM_CONFIGTIME=`date`
22373 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22374 LLVM_CONFIGTIME="(timestamp not enabled)"
22375 fi
22378 cat >>confdefs.h <<_ACEOF
22379 #define LLVM_PREFIX "$LLVM_PREFIX"
22380 _ACEOF
22383 cat >>confdefs.h <<_ACEOF
22384 #define LLVM_BINDIR "$LLVM_BINDIR"
22385 _ACEOF
22388 cat >>confdefs.h <<_ACEOF
22389 #define LLVM_DATADIR "$LLVM_DATADIR"
22390 _ACEOF
22393 cat >>confdefs.h <<_ACEOF
22394 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22395 _ACEOF
22398 cat >>confdefs.h <<_ACEOF
22399 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22400 _ACEOF
22403 cat >>confdefs.h <<_ACEOF
22404 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22405 _ACEOF
22408 cat >>confdefs.h <<_ACEOF
22409 #define LLVM_INFODIR "$LLVM_INFODIR"
22410 _ACEOF
22413 cat >>confdefs.h <<_ACEOF
22414 #define LLVM_MANDIR "$LLVM_MANDIR"
22415 _ACEOF
22418 cat >>confdefs.h <<_ACEOF
22419 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22420 _ACEOF
22423 cat >>confdefs.h <<_ACEOF
22424 #define LLVM_HOST_TRIPLE "$host"
22425 _ACEOF
22428 cat >>confdefs.h <<_ACEOF
22429 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22430 _ACEOF
22433 if test "$BINDINGS_TO_BUILD" = auto ; then
22434 BINDINGS_TO_BUILD=""
22435 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22436 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22437 fi
22438 fi
22439 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22442 ALL_BINDINGS=ocaml
22445 binding_prereqs_failed=0
22446 for a_binding in $BINDINGS_TO_BUILD ; do
22447 case "$a_binding" in
22448 ocaml)
22449 if test "x$OCAMLC" = x ; then
22450 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22451 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22452 binding_prereqs_failed=1
22453 fi
22454 if test "x$OCAMLDEP" = x ; then
22455 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22456 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22457 binding_prereqs_failed=1
22458 fi
22459 if test "x$OCAMLOPT" = x ; then
22460 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22461 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22462 fi
22463 if test "x$with_ocaml_libdir" != xauto ; then
22464 OCAML_LIBDIR=$with_ocaml_libdir
22466 else
22467 ocaml_stdlib="`"$OCAMLC" -where`"
22468 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22469 then
22470 # ocaml stdlib is beneath our prefix; use stdlib
22471 OCAML_LIBDIR=$ocaml_stdlib
22473 else
22474 # ocaml stdlib is outside our prefix; use libdir/ocaml
22475 OCAML_LIBDIR=${prefix}/lib/ocaml
22477 fi
22478 fi
22479 ;;
22480 esac
22481 done
22482 if test "$binding_prereqs_failed" = 1 ; then
22483 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22484 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22485 { (exit 1); exit 1; }; }
22486 fi
22488 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22489 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22490 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
22492 else
22493 ac_ext=cpp
22494 ac_cpp='$CXXCPP $CPPFLAGS'
22495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22499 oldcxxflags="$CXXFLAGS"
22500 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22501 cat >conftest.$ac_ext <<_ACEOF
22502 /* confdefs.h. */
22503 _ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22507 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22508 int
22509 main ()
22510 {
22511 X<int>().f();
22512 ;
22513 return 0;
22514 }
22515 _ACEOF
22516 rm -f conftest.$ac_objext
22517 if { (ac_try="$ac_compile"
22518 case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22521 esac
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_compile") 2>conftest.er1
22524 ac_status=$?
22525 grep -v '^ *+' conftest.er1 >conftest.err
22526 rm -f conftest.er1
22527 cat conftest.err >&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } &&
22530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22531 { (case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22534 esac
22535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_try") 2>&5
22537 ac_status=$?
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; } &&
22540 { ac_try='test -s conftest.$ac_objext'
22541 { (case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22544 esac
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_try") 2>&5
22547 ac_status=$?
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; }; then
22550 llvm_cv_cxx_visibility_inlines_hidden=yes
22551 else
22552 echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22555 llvm_cv_cxx_visibility_inlines_hidden=no
22556 fi
22558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 CXXFLAGS="$oldcxxflags"
22560 ac_ext=c
22561 ac_cpp='$CPP $CPPFLAGS'
22562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22567 fi
22568 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22569 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22570 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22571 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22573 else
22574 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22576 fi
22579 if test "$llvm_cv_link_use_r" = "yes" ; then
22580 RPATH="-Wl,-R"
22581 else
22582 RPATH="-Wl,-rpath"
22583 fi
22586 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22587 RDYNAMIC="-rdynamic"
22588 else
22589 RDYNAMIC=""
22590 fi
22594 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22601 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22603 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22605 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22607 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22609 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22612 ac_config_files="$ac_config_files Makefile.config"
22615 ac_config_files="$ac_config_files llvm.spec"
22618 ac_config_files="$ac_config_files docs/doxygen.cfg"
22621 if test "${clang_src_root}" = ""; then
22622 clang_src_root="$srcdir/tools/clang"
22623 fi
22624 if test -f ${clang_src_root}/README.txt; then
22625 configh="include/clang/Config/config.h"
22626 doxy="docs/doxygen.cfg"
22627 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22629 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22631 fi
22633 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22636 test "x$program_prefix" = "xNONE" && program_prefix=""
22640 ac_config_commands="$ac_config_commands setup"
22642 ac_config_commands="$ac_config_commands Makefile"
22645 ac_config_commands="$ac_config_commands Makefile.common"
22648 ac_config_commands="$ac_config_commands examples/Makefile"
22651 ac_config_commands="$ac_config_commands lib/Makefile"
22654 ac_config_commands="$ac_config_commands test/Makefile"
22657 ac_config_commands="$ac_config_commands test/Makefile.tests"
22660 ac_config_commands="$ac_config_commands unittests/Makefile"
22663 ac_config_commands="$ac_config_commands tools/Makefile"
22666 ac_config_commands="$ac_config_commands utils/Makefile"
22669 ac_config_commands="$ac_config_commands projects/Makefile"
22672 ac_config_commands="$ac_config_commands bindings/Makefile"
22675 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22679 cat >confcache <<\_ACEOF
22680 # This file is a shell script that caches the results of configure
22681 # tests run on this system so they can be shared between configure
22682 # scripts and configure runs, see configure's option --config-cache.
22683 # It is not useful on other systems. If it contains results you don't
22684 # want to keep, you may remove or edit it.
22685 #
22686 # config.status only pays attention to the cache file if you give it
22687 # the --recheck option to rerun configure.
22688 #
22689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22691 # following values.
22693 _ACEOF
22695 # The following way of writing the cache mishandles newlines in values,
22696 # but we know of no workaround that is simple, portable, and efficient.
22697 # So, we kill variables containing newlines.
22698 # Ultrix sh set writes to stderr and can't be redirected directly,
22699 # and sets the high bit in the cache file unless we assign to the vars.
22700 (
22701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22702 eval ac_val=\$$ac_var
22703 case $ac_val in #(
22704 *${as_nl}*)
22705 case $ac_var in #(
22706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22708 esac
22709 case $ac_var in #(
22710 _ | IFS | as_nl) ;; #(
22711 *) $as_unset $ac_var ;;
22712 esac ;;
22713 esac
22714 done
22716 (set) 2>&1 |
22717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22718 *${as_nl}ac_space=\ *)
22719 # `set' does not quote correctly, so add quotes (double-quote
22720 # substitution turns \\\\ into \\, and sed turns \\ into \).
22721 sed -n \
22722 "s/'/'\\\\''/g;
22723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22724 ;; #(
22725 *)
22726 # `set' quotes correctly as required by POSIX, so do not add quotes.
22727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22728 ;;
22729 esac |
22730 sort
22731 ) |
22732 sed '
22733 /^ac_cv_env_/b end
22734 t clear
22735 :clear
22736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22737 t end
22738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22739 :end' >>confcache
22740 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22741 if test -w "$cache_file"; then
22742 test "x$cache_file" != "x/dev/null" &&
22743 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22744 echo "$as_me: updating cache $cache_file" >&6;}
22745 cat confcache >$cache_file
22746 else
22747 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22748 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22749 fi
22750 fi
22751 rm -f confcache
22753 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22754 # Let make expand exec_prefix.
22755 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22757 DEFS=-DHAVE_CONFIG_H
22759 ac_libobjs=
22760 ac_ltlibobjs=
22761 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22762 # 1. Remove the extension, and $U if already installed.
22763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22764 ac_i=`echo "$ac_i" | sed "$ac_script"`
22765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22766 # will be set to the directory where LIBOBJS objects are built.
22767 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22768 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22769 done
22770 LIBOBJS=$ac_libobjs
22772 LTLIBOBJS=$ac_ltlibobjs
22775 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22776 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22777 Usually this means the macro was only invoked conditionally." >&5
22778 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22779 Usually this means the macro was only invoked conditionally." >&2;}
22780 { (exit 1); exit 1; }; }
22781 fi
22782 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22783 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22784 Usually this means the macro was only invoked conditionally." >&5
22785 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22786 Usually this means the macro was only invoked conditionally." >&2;}
22787 { (exit 1); exit 1; }; }
22788 fi
22790 : ${CONFIG_STATUS=./config.status}
22791 ac_clean_files_save=$ac_clean_files
22792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22793 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22794 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22795 cat >$CONFIG_STATUS <<_ACEOF
22796 #! $SHELL
22797 # Generated by $as_me.
22798 # Run this file to recreate the current configuration.
22799 # Compiler output produced by configure, useful for debugging
22800 # configure, is in config.log if it exists.
22802 debug=false
22803 ac_cs_recheck=false
22804 ac_cs_silent=false
22805 SHELL=\${CONFIG_SHELL-$SHELL}
22806 _ACEOF
22808 cat >>$CONFIG_STATUS <<\_ACEOF
22809 ## --------------------- ##
22810 ## M4sh Initialization. ##
22811 ## --------------------- ##
22813 # Be Bourne compatible
22814 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22815 emulate sh
22816 NULLCMD=:
22817 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22818 # is contrary to our usage. Disable this feature.
22819 alias -g '${1+"$@"}'='"$@"'
22820 setopt NO_GLOB_SUBST
22821 else
22822 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22823 fi
22824 BIN_SH=xpg4; export BIN_SH # for Tru64
22825 DUALCASE=1; export DUALCASE # for MKS sh
22828 # PATH needs CR
22829 # Avoid depending upon Character Ranges.
22830 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22831 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22832 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22833 as_cr_digits='0123456789'
22834 as_cr_alnum=$as_cr_Letters$as_cr_digits
22836 # The user is always right.
22837 if test "${PATH_SEPARATOR+set}" != set; then
22838 echo "#! /bin/sh" >conf$$.sh
22839 echo "exit 0" >>conf$$.sh
22840 chmod +x conf$$.sh
22841 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22842 PATH_SEPARATOR=';'
22843 else
22844 PATH_SEPARATOR=:
22845 fi
22846 rm -f conf$$.sh
22847 fi
22849 # Support unset when possible.
22850 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22851 as_unset=unset
22852 else
22853 as_unset=false
22854 fi
22857 # IFS
22858 # We need space, tab and new line, in precisely that order. Quoting is
22859 # there to prevent editors from complaining about space-tab.
22860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22861 # splitting by setting IFS to empty value.)
22862 as_nl='
22863 '
22864 IFS=" "" $as_nl"
22866 # Find who we are. Look in the path if we contain no directory separator.
22867 case $0 in
22868 *[\\/]* ) as_myself=$0 ;;
22869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22870 for as_dir in $PATH
22871 do
22872 IFS=$as_save_IFS
22873 test -z "$as_dir" && as_dir=.
22874 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22875 done
22876 IFS=$as_save_IFS
22878 ;;
22879 esac
22880 # We did not find ourselves, most probably we were run as `sh COMMAND'
22881 # in which case we are not to be found in the path.
22882 if test "x$as_myself" = x; then
22883 as_myself=$0
22884 fi
22885 if test ! -f "$as_myself"; then
22886 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22887 { (exit 1); exit 1; }
22888 fi
22890 # Work around bugs in pre-3.0 UWIN ksh.
22891 for as_var in ENV MAIL MAILPATH
22892 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22893 done
22894 PS1='$ '
22895 PS2='> '
22896 PS4='+ '
22898 # NLS nuisances.
22899 for as_var in \
22900 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22901 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22902 LC_TELEPHONE LC_TIME
22903 do
22904 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22905 eval $as_var=C; export $as_var
22906 else
22907 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22908 fi
22909 done
22911 # Required to use basename.
22912 if expr a : '\(a\)' >/dev/null 2>&1 &&
22913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22914 as_expr=expr
22915 else
22916 as_expr=false
22917 fi
22919 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22920 as_basename=basename
22921 else
22922 as_basename=false
22923 fi
22926 # Name of the executable.
22927 as_me=`$as_basename -- "$0" ||
22928 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22929 X"$0" : 'X\(//\)$' \| \
22930 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22931 echo X/"$0" |
22932 sed '/^.*\/\([^/][^/]*\)\/*$/{
22933 s//\1/
22934 q
22935 }
22936 /^X\/\(\/\/\)$/{
22937 s//\1/
22938 q
22939 }
22940 /^X\/\(\/\).*/{
22941 s//\1/
22942 q
22943 }
22944 s/.*/./; q'`
22946 # CDPATH.
22947 $as_unset CDPATH
22951 as_lineno_1=$LINENO
22952 as_lineno_2=$LINENO
22953 test "x$as_lineno_1" != "x$as_lineno_2" &&
22954 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22956 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22957 # uniformly replaced by the line number. The first 'sed' inserts a
22958 # line-number line after each line using $LINENO; the second 'sed'
22959 # does the real work. The second script uses 'N' to pair each
22960 # line-number line with the line containing $LINENO, and appends
22961 # trailing '-' during substitution so that $LINENO is not a special
22962 # case at line end.
22963 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22964 # scripts with optimization help from Paolo Bonzini. Blame Lee
22965 # E. McMahon (1931-1989) for sed's syntax. :-)
22966 sed -n '
22967 p
22968 /[$]LINENO/=
22969 ' <$as_myself |
22970 sed '
22971 s/[$]LINENO.*/&-/
22972 t lineno
22973 b
22974 :lineno
22975 N
22976 :loop
22977 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22978 t loop
22979 s/-\n.*//
22980 ' >$as_me.lineno &&
22981 chmod +x "$as_me.lineno" ||
22982 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22983 { (exit 1); exit 1; }; }
22985 # Don't try to exec as it changes $[0], causing all sort of problems
22986 # (the dirname of $[0] is not the place where we might find the
22987 # original and so on. Autoconf is especially sensitive to this).
22988 . "./$as_me.lineno"
22989 # Exit status is that of the last command.
22990 exit
22991 }
22994 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22995 as_dirname=dirname
22996 else
22997 as_dirname=false
22998 fi
23000 ECHO_C= ECHO_N= ECHO_T=
23001 case `echo -n x` in
23002 -n*)
23003 case `echo 'x\c'` in
23004 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23005 *) ECHO_C='\c';;
23006 esac;;
23007 *)
23008 ECHO_N='-n';;
23009 esac
23011 if expr a : '\(a\)' >/dev/null 2>&1 &&
23012 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23013 as_expr=expr
23014 else
23015 as_expr=false
23016 fi
23018 rm -f conf$$ conf$$.exe conf$$.file
23019 if test -d conf$$.dir; then
23020 rm -f conf$$.dir/conf$$.file
23021 else
23022 rm -f conf$$.dir
23023 mkdir conf$$.dir
23024 fi
23025 echo >conf$$.file
23026 if ln -s conf$$.file conf$$ 2>/dev/null; then
23027 as_ln_s='ln -s'
23028 # ... but there are two gotchas:
23029 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23030 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23031 # In both cases, we have to default to `cp -p'.
23032 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23033 as_ln_s='cp -p'
23034 elif ln conf$$.file conf$$ 2>/dev/null; then
23035 as_ln_s=ln
23036 else
23037 as_ln_s='cp -p'
23038 fi
23039 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23040 rmdir conf$$.dir 2>/dev/null
23042 if mkdir -p . 2>/dev/null; then
23043 as_mkdir_p=:
23044 else
23045 test -d ./-p && rmdir ./-p
23046 as_mkdir_p=false
23047 fi
23049 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23050 # systems may use methods other than mode bits to determine executability.
23051 cat >conf$$.file <<_ASEOF
23052 #! /bin/sh
23053 exit 0
23054 _ASEOF
23055 chmod +x conf$$.file
23056 if test -x conf$$.file >/dev/null 2>&1; then
23057 as_executable_p="test -x"
23058 else
23059 as_executable_p=:
23060 fi
23061 rm -f conf$$.file
23063 # Sed expression to map a string onto a valid CPP name.
23064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23066 # Sed expression to map a string onto a valid variable name.
23067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23070 exec 6>&1
23072 # Save the log message, to keep $[0] and so on meaningful, and to
23073 # report actual input values of CONFIG_FILES etc. instead of their
23074 # values after options handling.
23075 ac_log="
23076 This file was extended by LLVM $as_me 3.5svn, which was
23077 generated by GNU Autoconf 2.60. Invocation command line was
23079 CONFIG_FILES = $CONFIG_FILES
23080 CONFIG_HEADERS = $CONFIG_HEADERS
23081 CONFIG_LINKS = $CONFIG_LINKS
23082 CONFIG_COMMANDS = $CONFIG_COMMANDS
23083 $ $0 $@
23085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23086 "
23088 _ACEOF
23090 cat >>$CONFIG_STATUS <<_ACEOF
23091 # Files that config.status was made for.
23092 config_files="$ac_config_files"
23093 config_headers="$ac_config_headers"
23094 config_commands="$ac_config_commands"
23096 _ACEOF
23098 cat >>$CONFIG_STATUS <<\_ACEOF
23099 ac_cs_usage="\
23100 \`$as_me' instantiates files from templates according to the
23101 current configuration.
23103 Usage: $0 [OPTIONS] [FILE]...
23105 -h, --help print this help, then exit
23106 -V, --version print version number, then exit
23107 -q, --quiet do not print progress messages
23108 -d, --debug don't remove temporary files
23109 --recheck update $as_me by reconfiguring in the same conditions
23110 --file=FILE[:TEMPLATE]
23111 instantiate the configuration file FILE
23112 --header=FILE[:TEMPLATE]
23113 instantiate the configuration header FILE
23115 Configuration files:
23116 $config_files
23118 Configuration headers:
23119 $config_headers
23121 Configuration commands:
23122 $config_commands
23124 Report bugs to <bug-autoconf@gnu.org>."
23126 _ACEOF
23127 cat >>$CONFIG_STATUS <<_ACEOF
23128 ac_cs_version="\\
23129 LLVM config.status 3.5svn
23130 configured by $0, generated by GNU Autoconf 2.60,
23131 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23133 Copyright (C) 2006 Free Software Foundation, Inc.
23134 This config.status script is free software; the Free Software Foundation
23135 gives unlimited permission to copy, distribute and modify it."
23137 ac_pwd='$ac_pwd'
23138 srcdir='$srcdir'
23139 INSTALL='$INSTALL'
23140 _ACEOF
23142 cat >>$CONFIG_STATUS <<\_ACEOF
23143 # If no file are specified by the user, then we need to provide default
23144 # value. By we need to know if files were specified by the user.
23145 ac_need_defaults=:
23146 while test $# != 0
23147 do
23148 case $1 in
23149 --*=*)
23150 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23151 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23152 ac_shift=:
23153 ;;
23154 *)
23155 ac_option=$1
23156 ac_optarg=$2
23157 ac_shift=shift
23158 ;;
23159 esac
23161 case $ac_option in
23162 # Handling of the options.
23163 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23164 ac_cs_recheck=: ;;
23165 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23166 echo "$ac_cs_version"; exit ;;
23167 --debug | --debu | --deb | --de | --d | -d )
23168 debug=: ;;
23169 --file | --fil | --fi | --f )
23170 $ac_shift
23171 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23172 ac_need_defaults=false;;
23173 --header | --heade | --head | --hea )
23174 $ac_shift
23175 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23176 ac_need_defaults=false;;
23177 --he | --h)
23178 # Conflict between --help and --header
23179 { echo "$as_me: error: ambiguous option: $1
23180 Try \`$0 --help' for more information." >&2
23181 { (exit 1); exit 1; }; };;
23182 --help | --hel | -h )
23183 echo "$ac_cs_usage"; exit ;;
23184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23186 ac_cs_silent=: ;;
23188 # This is an error.
23189 -*) { echo "$as_me: error: unrecognized option: $1
23190 Try \`$0 --help' for more information." >&2
23191 { (exit 1); exit 1; }; } ;;
23193 *) ac_config_targets="$ac_config_targets $1"
23194 ac_need_defaults=false ;;
23196 esac
23197 shift
23198 done
23200 ac_configure_extra_args=
23202 if $ac_cs_silent; then
23203 exec 6>/dev/null
23204 ac_configure_extra_args="$ac_configure_extra_args --silent"
23205 fi
23207 _ACEOF
23208 cat >>$CONFIG_STATUS <<_ACEOF
23209 if \$ac_cs_recheck; then
23210 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23211 CONFIG_SHELL=$SHELL
23212 export CONFIG_SHELL
23213 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23214 fi
23216 _ACEOF
23217 cat >>$CONFIG_STATUS <<\_ACEOF
23218 exec 5>>config.log
23219 {
23220 echo
23221 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23222 ## Running $as_me. ##
23223 _ASBOX
23224 echo "$ac_log"
23225 } >&5
23227 _ACEOF
23228 cat >>$CONFIG_STATUS <<_ACEOF
23229 #
23230 # INIT-COMMANDS
23231 #
23232 llvm_src="${srcdir}"
23234 _ACEOF
23236 cat >>$CONFIG_STATUS <<\_ACEOF
23238 # Handling of arguments.
23239 for ac_config_target in $ac_config_targets
23240 do
23241 case $ac_config_target in
23242 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23243 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23244 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23245 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23246 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23247 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23248 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23249 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23250 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23251 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23252 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23253 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23254 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23255 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23256 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23257 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23258 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23259 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23260 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23261 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23262 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23263 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23264 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23265 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23266 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23267 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23269 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23270 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23271 { (exit 1); exit 1; }; };;
23272 esac
23273 done
23276 # If the user did not use the arguments to specify the items to instantiate,
23277 # then the envvar interface is used. Set only those that are not.
23278 # We use the long form for the default assignment because of an extremely
23279 # bizarre bug on SunOS 4.1.3.
23280 if $ac_need_defaults; then
23281 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23282 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23283 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23284 fi
23286 # Have a temporary directory for convenience. Make it in the build tree
23287 # simply because there is no reason against having it here, and in addition,
23288 # creating and moving files from /tmp can sometimes cause problems.
23289 # Hook for its removal unless debugging.
23290 # Note that there is a small window in which the directory will not be cleaned:
23291 # after its creation but before its name has been assigned to `$tmp'.
23292 $debug ||
23293 {
23294 tmp=
23295 trap 'exit_status=$?
23296 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23297 ' 0
23298 trap '{ (exit 1); exit 1; }' 1 2 13 15
23299 }
23300 # Create a (secure) tmp directory for tmp files.
23302 {
23303 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23304 test -n "$tmp" && test -d "$tmp"
23305 } ||
23306 {
23307 tmp=./conf$$-$RANDOM
23308 (umask 077 && mkdir "$tmp")
23309 } ||
23310 {
23311 echo "$me: cannot create a temporary directory in ." >&2
23312 { (exit 1); exit 1; }
23313 }
23315 #
23316 # Set up the sed scripts for CONFIG_FILES section.
23317 #
23319 # No need to generate the scripts if there are no CONFIG_FILES.
23320 # This happens for instance when ./config.status config.h
23321 if test -n "$CONFIG_FILES"; then
23323 _ACEOF
23327 ac_delim='%!_!# '
23328 for ac_last_try in false false false false false :; do
23329 cat >conf$$subs.sed <<_ACEOF
23330 SHELL!$SHELL$ac_delim
23331 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23332 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23333 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23334 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23335 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23336 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23337 exec_prefix!$exec_prefix$ac_delim
23338 prefix!$prefix$ac_delim
23339 program_transform_name!$program_transform_name$ac_delim
23340 bindir!$bindir$ac_delim
23341 sbindir!$sbindir$ac_delim
23342 libexecdir!$libexecdir$ac_delim
23343 datarootdir!$datarootdir$ac_delim
23344 datadir!$datadir$ac_delim
23345 sysconfdir!$sysconfdir$ac_delim
23346 sharedstatedir!$sharedstatedir$ac_delim
23347 localstatedir!$localstatedir$ac_delim
23348 includedir!$includedir$ac_delim
23349 oldincludedir!$oldincludedir$ac_delim
23350 docdir!$docdir$ac_delim
23351 infodir!$infodir$ac_delim
23352 htmldir!$htmldir$ac_delim
23353 dvidir!$dvidir$ac_delim
23354 pdfdir!$pdfdir$ac_delim
23355 psdir!$psdir$ac_delim
23356 libdir!$libdir$ac_delim
23357 localedir!$localedir$ac_delim
23358 mandir!$mandir$ac_delim
23359 DEFS!$DEFS$ac_delim
23360 ECHO_C!$ECHO_C$ac_delim
23361 ECHO_N!$ECHO_N$ac_delim
23362 ECHO_T!$ECHO_T$ac_delim
23363 LIBS!$LIBS$ac_delim
23364 build_alias!$build_alias$ac_delim
23365 host_alias!$host_alias$ac_delim
23366 target_alias!$target_alias$ac_delim
23367 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
23368 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
23369 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23370 CC!$CC$ac_delim
23371 CFLAGS!$CFLAGS$ac_delim
23372 LDFLAGS!$LDFLAGS$ac_delim
23373 CPPFLAGS!$CPPFLAGS$ac_delim
23374 ac_ct_CC!$ac_ct_CC$ac_delim
23375 EXEEXT!$EXEEXT$ac_delim
23376 OBJEXT!$OBJEXT$ac_delim
23377 CXX!$CXX$ac_delim
23378 CXXFLAGS!$CXXFLAGS$ac_delim
23379 ac_ct_CXX!$ac_ct_CXX$ac_delim
23380 CPP!$CPP$ac_delim
23381 subdirs!$subdirs$ac_delim
23382 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23383 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23384 build!$build$ac_delim
23385 build_cpu!$build_cpu$ac_delim
23386 build_vendor!$build_vendor$ac_delim
23387 build_os!$build_os$ac_delim
23388 host!$host$ac_delim
23389 host_cpu!$host_cpu$ac_delim
23390 host_vendor!$host_vendor$ac_delim
23391 host_os!$host_os$ac_delim
23392 target!$target$ac_delim
23393 target_cpu!$target_cpu$ac_delim
23394 target_vendor!$target_vendor$ac_delim
23395 target_os!$target_os$ac_delim
23396 OS!$OS$ac_delim
23397 HOST_OS!$HOST_OS$ac_delim
23398 TARGET_OS!$TARGET_OS$ac_delim
23399 LINKALL!$LINKALL$ac_delim
23400 NOLINKALL!$NOLINKALL$ac_delim
23401 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23402 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23403 ARCH!$ARCH$ac_delim
23404 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
23405 HOST_ARCH!$HOST_ARCH$ac_delim
23406 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23407 BUILD_CC!$BUILD_CC$ac_delim
23408 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23409 BUILD_CXX!$BUILD_CXX$ac_delim
23410 CVSBUILD!$CVSBUILD$ac_delim
23411 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23412 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23413 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23414 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23415 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23416 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23417 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23418 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23419 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23420 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23421 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23422 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23423 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23424 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23425 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23426 JIT!$JIT$ac_delim
23427 _ACEOF
23429 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23430 break
23431 elif $ac_last_try; then
23432 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23433 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23434 { (exit 1); exit 1; }; }
23435 else
23436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23437 fi
23438 done
23440 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23441 if test -n "$ac_eof"; then
23442 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23443 ac_eof=`expr $ac_eof + 1`
23444 fi
23446 cat >>$CONFIG_STATUS <<_ACEOF
23447 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23449 _ACEOF
23450 sed '
23451 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23452 s/^/s,@/; s/!/@,|#_!!_#|/
23453 :n
23454 t n
23455 s/'"$ac_delim"'$/,g/; t
23456 s/$/\\/; p
23457 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23458 ' >>$CONFIG_STATUS <conf$$subs.sed
23459 rm -f conf$$subs.sed
23460 cat >>$CONFIG_STATUS <<_ACEOF
23461 CEOF$ac_eof
23462 _ACEOF
23465 ac_delim='%!_!# '
23466 for ac_last_try in false false false false false :; do
23467 cat >conf$$subs.sed <<_ACEOF
23468 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23469 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
23470 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23471 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23472 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23473 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23474 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23475 ENABLE_PIC!$ENABLE_PIC$ac_delim
23476 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23477 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23478 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23479 ALL_TARGETS!$ALL_TARGETS$ac_delim
23480 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23481 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23482 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23483 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23484 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23485 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23486 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23487 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23488 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23489 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23490 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
23491 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23492 NM!$NM$ac_delim
23493 ifGNUmake!$ifGNUmake$ac_delim
23494 LN_S!$LN_S$ac_delim
23495 CMP!$CMP$ac_delim
23496 CP!$CP$ac_delim
23497 DATE!$DATE$ac_delim
23498 FIND!$FIND$ac_delim
23499 GREP!$GREP$ac_delim
23500 MKDIR!$MKDIR$ac_delim
23501 MV!$MV$ac_delim
23502 RANLIB!$RANLIB$ac_delim
23503 AR!$AR$ac_delim
23504 RM!$RM$ac_delim
23505 SED!$SED$ac_delim
23506 TAR!$TAR$ac_delim
23507 BINPWD!$BINPWD$ac_delim
23508 GRAPHVIZ!$GRAPHVIZ$ac_delim
23509 DOT!$DOT$ac_delim
23510 FDP!$FDP$ac_delim
23511 NEATO!$NEATO$ac_delim
23512 TWOPI!$TWOPI$ac_delim
23513 CIRCO!$CIRCO$ac_delim
23514 GV!$GV$ac_delim
23515 DOTTY!$DOTTY$ac_delim
23516 XDOT!$XDOT$ac_delim
23517 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23518 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23519 INSTALL_DATA!$INSTALL_DATA$ac_delim
23520 BZIP2!$BZIP2$ac_delim
23521 CAT!$CAT$ac_delim
23522 DOXYGEN!$DOXYGEN$ac_delim
23523 GROFF!$GROFF$ac_delim
23524 GZIPBIN!$GZIPBIN$ac_delim
23525 PDFROFF!$PDFROFF$ac_delim
23526 ZIP!$ZIP$ac_delim
23527 OCAMLC!$OCAMLC$ac_delim
23528 OCAMLOPT!$OCAMLOPT$ac_delim
23529 OCAMLDEP!$OCAMLDEP$ac_delim
23530 OCAMLDOC!$OCAMLDOC$ac_delim
23531 GAS!$GAS$ac_delim
23532 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23533 EGREP!$EGREP$ac_delim
23534 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23535 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23536 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23537 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23538 LIBADD_DL!$LIBADD_DL$ac_delim
23539 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23540 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23541 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23542 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23543 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23544 PYTHON!$PYTHON$ac_delim
23545 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
23546 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
23547 USE_UDIS86!$USE_UDIS86$ac_delim
23548 USE_OPROFILE!$USE_OPROFILE$ac_delim
23549 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23550 XML2CONFIG!$XML2CONFIG$ac_delim
23551 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23552 LIBXML2_INC!$LIBXML2_INC$ac_delim
23553 CXXCPP!$CXXCPP$ac_delim
23554 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23555 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23556 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23557 MMAP_FILE!$MMAP_FILE$ac_delim
23558 SHLIBEXT!$SHLIBEXT$ac_delim
23559 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23560 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23561 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23562 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23563 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23564 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23565 _ACEOF
23567 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23568 break
23569 elif $ac_last_try; then
23570 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23571 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23572 { (exit 1); exit 1; }; }
23573 else
23574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23575 fi
23576 done
23578 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23579 if test -n "$ac_eof"; then
23580 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23581 ac_eof=`expr $ac_eof + 1`
23582 fi
23584 cat >>$CONFIG_STATUS <<_ACEOF
23585 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23587 _ACEOF
23588 sed '
23589 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23590 s/^/s,@/; s/!/@,|#_!!_#|/
23591 :n
23592 t n
23593 s/'"$ac_delim"'$/,g/; t
23594 s/$/\\/; p
23595 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23596 ' >>$CONFIG_STATUS <conf$$subs.sed
23597 rm -f conf$$subs.sed
23598 cat >>$CONFIG_STATUS <<_ACEOF
23599 CEOF$ac_eof
23600 _ACEOF
23603 ac_delim='%!_!# '
23604 for ac_last_try in false false false false false :; do
23605 cat >conf$$subs.sed <<_ACEOF
23606 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23607 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23608 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23609 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23610 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23611 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23612 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23613 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23614 RPATH!$RPATH$ac_delim
23615 RDYNAMIC!$RDYNAMIC$ac_delim
23616 program_prefix!$program_prefix$ac_delim
23617 LIBOBJS!$LIBOBJS$ac_delim
23618 LTLIBOBJS!$LTLIBOBJS$ac_delim
23619 _ACEOF
23621 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
23622 break
23623 elif $ac_last_try; then
23624 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23625 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23626 { (exit 1); exit 1; }; }
23627 else
23628 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23629 fi
23630 done
23632 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23633 if test -n "$ac_eof"; then
23634 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23635 ac_eof=`expr $ac_eof + 1`
23636 fi
23638 cat >>$CONFIG_STATUS <<_ACEOF
23639 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23641 _ACEOF
23642 sed '
23643 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23644 s/^/s,@/; s/!/@,|#_!!_#|/
23645 :n
23646 t n
23647 s/'"$ac_delim"'$/,g/; t
23648 s/$/\\/; p
23649 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23650 ' >>$CONFIG_STATUS <conf$$subs.sed
23651 rm -f conf$$subs.sed
23652 cat >>$CONFIG_STATUS <<_ACEOF
23653 :end
23654 s/|#_!!_#|//g
23655 CEOF$ac_eof
23656 _ACEOF
23659 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23660 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23661 # trailing colons and then remove the whole line if VPATH becomes empty
23662 # (actually we leave an empty line to preserve line numbers).
23663 if test "x$srcdir" = x.; then
23664 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23665 s/:*\$(srcdir):*/:/
23666 s/:*\${srcdir}:*/:/
23667 s/:*@srcdir@:*/:/
23668 s/^\([^=]*=[ ]*\):*/\1/
23669 s/:*$//
23670 s/^[^=]*=[ ]*$//
23671 }'
23672 fi
23674 cat >>$CONFIG_STATUS <<\_ACEOF
23675 fi # test -n "$CONFIG_FILES"
23678 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23679 do
23680 case $ac_tag in
23681 :[FHLC]) ac_mode=$ac_tag; continue;;
23682 esac
23683 case $ac_mode$ac_tag in
23684 :[FHL]*:*);;
23685 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23686 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23687 { (exit 1); exit 1; }; };;
23688 :[FH]-) ac_tag=-:-;;
23689 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23690 esac
23691 ac_save_IFS=$IFS
23692 IFS=:
23693 set x $ac_tag
23694 IFS=$ac_save_IFS
23695 shift
23696 ac_file=$1
23697 shift
23699 case $ac_mode in
23700 :L) ac_source=$1;;
23701 :[FH])
23702 ac_file_inputs=
23703 for ac_f
23704 do
23705 case $ac_f in
23706 -) ac_f="$tmp/stdin";;
23707 *) # Look for the file first in the build tree, then in the source tree
23708 # (if the path is not absolute). The absolute path cannot be DOS-style,
23709 # because $ac_f cannot contain `:'.
23710 test -f "$ac_f" ||
23711 case $ac_f in
23712 [\\/$]*) false;;
23713 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23714 esac ||
23715 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23716 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23717 { (exit 1); exit 1; }; };;
23718 esac
23719 ac_file_inputs="$ac_file_inputs $ac_f"
23720 done
23722 # Let's still pretend it is `configure' which instantiates (i.e., don't
23723 # use $as_me), people would be surprised to read:
23724 # /* config.h. Generated by config.status. */
23725 configure_input="Generated from "`IFS=:
23726 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23727 if test x"$ac_file" != x-; then
23728 configure_input="$ac_file. $configure_input"
23729 { echo "$as_me:$LINENO: creating $ac_file" >&5
23730 echo "$as_me: creating $ac_file" >&6;}
23731 fi
23733 case $ac_tag in
23734 *:-:* | *:-) cat >"$tmp/stdin";;
23735 esac
23736 ;;
23737 esac
23739 ac_dir=`$as_dirname -- "$ac_file" ||
23740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23741 X"$ac_file" : 'X\(//\)[^/]' \| \
23742 X"$ac_file" : 'X\(//\)$' \| \
23743 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23744 echo X"$ac_file" |
23745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23746 s//\1/
23747 q
23748 }
23749 /^X\(\/\/\)[^/].*/{
23750 s//\1/
23751 q
23752 }
23753 /^X\(\/\/\)$/{
23754 s//\1/
23755 q
23756 }
23757 /^X\(\/\).*/{
23758 s//\1/
23759 q
23760 }
23761 s/.*/./; q'`
23762 { as_dir="$ac_dir"
23763 case $as_dir in #(
23764 -*) as_dir=./$as_dir;;
23765 esac
23766 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23767 as_dirs=
23768 while :; do
23769 case $as_dir in #(
23770 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23771 *) as_qdir=$as_dir;;
23772 esac
23773 as_dirs="'$as_qdir' $as_dirs"
23774 as_dir=`$as_dirname -- "$as_dir" ||
23775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23776 X"$as_dir" : 'X\(//\)[^/]' \| \
23777 X"$as_dir" : 'X\(//\)$' \| \
23778 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23779 echo X"$as_dir" |
23780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23781 s//\1/
23782 q
23783 }
23784 /^X\(\/\/\)[^/].*/{
23785 s//\1/
23786 q
23787 }
23788 /^X\(\/\/\)$/{
23789 s//\1/
23790 q
23791 }
23792 /^X\(\/\).*/{
23793 s//\1/
23794 q
23795 }
23796 s/.*/./; q'`
23797 test -d "$as_dir" && break
23798 done
23799 test -z "$as_dirs" || eval "mkdir $as_dirs"
23800 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23801 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23802 { (exit 1); exit 1; }; }; }
23803 ac_builddir=.
23805 case "$ac_dir" in
23806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23807 *)
23808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23809 # A ".." for each directory in $ac_dir_suffix.
23810 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23811 case $ac_top_builddir_sub in
23812 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23813 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23814 esac ;;
23815 esac
23816 ac_abs_top_builddir=$ac_pwd
23817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23818 # for backward compatibility:
23819 ac_top_builddir=$ac_top_build_prefix
23821 case $srcdir in
23822 .) # We are building in place.
23823 ac_srcdir=.
23824 ac_top_srcdir=$ac_top_builddir_sub
23825 ac_abs_top_srcdir=$ac_pwd ;;
23826 [\\/]* | ?:[\\/]* ) # Absolute name.
23827 ac_srcdir=$srcdir$ac_dir_suffix;
23828 ac_top_srcdir=$srcdir
23829 ac_abs_top_srcdir=$srcdir ;;
23830 *) # Relative name.
23831 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23832 ac_top_srcdir=$ac_top_build_prefix$srcdir
23833 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23834 esac
23835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23838 case $ac_mode in
23839 :F)
23840 #
23841 # CONFIG_FILE
23842 #
23844 case $INSTALL in
23845 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23846 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23847 esac
23848 _ACEOF
23850 cat >>$CONFIG_STATUS <<\_ACEOF
23851 # If the template does not know about datarootdir, expand it.
23852 # FIXME: This hack should be removed a few years after 2.60.
23853 ac_datarootdir_hack=; ac_datarootdir_seen=
23855 case `sed -n '/datarootdir/ {
23856 p
23857 q
23858 }
23859 /@datadir@/p
23860 /@docdir@/p
23861 /@infodir@/p
23862 /@localedir@/p
23863 /@mandir@/p
23864 ' $ac_file_inputs` in
23865 *datarootdir*) ac_datarootdir_seen=yes;;
23866 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23867 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23868 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23869 _ACEOF
23870 cat >>$CONFIG_STATUS <<_ACEOF
23871 ac_datarootdir_hack='
23872 s&@datadir@&$datadir&g
23873 s&@docdir@&$docdir&g
23874 s&@infodir@&$infodir&g
23875 s&@localedir@&$localedir&g
23876 s&@mandir@&$mandir&g
23877 s&\\\${datarootdir}&$datarootdir&g' ;;
23878 esac
23879 _ACEOF
23881 # Neutralize VPATH when `$srcdir' = `.'.
23882 # Shell code in configure.ac might set extrasub.
23883 # FIXME: do we really want to maintain this feature?
23884 cat >>$CONFIG_STATUS <<_ACEOF
23885 sed "$ac_vpsub
23886 $extrasub
23887 _ACEOF
23888 cat >>$CONFIG_STATUS <<\_ACEOF
23889 :t
23890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23891 s&@configure_input@&$configure_input&;t t
23892 s&@top_builddir@&$ac_top_builddir_sub&;t t
23893 s&@srcdir@&$ac_srcdir&;t t
23894 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23895 s&@top_srcdir@&$ac_top_srcdir&;t t
23896 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23897 s&@builddir@&$ac_builddir&;t t
23898 s&@abs_builddir@&$ac_abs_builddir&;t t
23899 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23900 s&@INSTALL@&$ac_INSTALL&;t t
23901 $ac_datarootdir_hack
23902 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23904 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23905 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23906 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23907 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23908 which seems to be undefined. Please make sure it is defined." >&5
23909 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23910 which seems to be undefined. Please make sure it is defined." >&2;}
23912 rm -f "$tmp/stdin"
23913 case $ac_file in
23914 -) cat "$tmp/out"; rm -f "$tmp/out";;
23915 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23916 esac
23917 ;;
23918 :H)
23919 #
23920 # CONFIG_HEADER
23921 #
23922 _ACEOF
23924 # Transform confdefs.h into a sed script `conftest.defines', that
23925 # substitutes the proper values into config.h.in to produce config.h.
23926 rm -f conftest.defines conftest.tail
23927 # First, append a space to every undef/define line, to ease matching.
23928 echo 's/$/ /' >conftest.defines
23929 # Then, protect against being on the right side of a sed subst, or in
23930 # an unquoted here document, in config.status. If some macros were
23931 # called several times there might be several #defines for the same
23932 # symbol, which is useless. But do not sort them, since the last
23933 # AC_DEFINE must be honored.
23934 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23935 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23936 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23937 # PARAMS is the parameter list in the macro definition--in most cases, it's
23938 # just an empty string.
23939 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23940 ac_dB='\\)[ (].*,\\1define\\2'
23941 ac_dC=' '
23942 ac_dD=' ,'
23944 uniq confdefs.h |
23945 sed -n '
23946 t rset
23947 :rset
23948 s/^[ ]*#[ ]*define[ ][ ]*//
23949 t ok
23950 d
23951 :ok
23952 s/[\\&,]/\\&/g
23953 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23954 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23955 ' >>conftest.defines
23957 # Remove the space that was appended to ease matching.
23958 # Then replace #undef with comments. This is necessary, for
23959 # example, in the case of _POSIX_SOURCE, which is predefined and required
23960 # on some systems where configure will not decide to define it.
23961 # (The regexp can be short, since the line contains either #define or #undef.)
23962 echo 's/ $//
23963 s,^[ #]*u.*,/* & */,' >>conftest.defines
23965 # Break up conftest.defines:
23966 ac_max_sed_lines=50
23968 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23969 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23970 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23971 # et cetera.
23972 ac_in='$ac_file_inputs'
23973 ac_out='"$tmp/out1"'
23974 ac_nxt='"$tmp/out2"'
23976 while :
23977 do
23978 # Write a here document:
23979 cat >>$CONFIG_STATUS <<_ACEOF
23980 # First, check the format of the line:
23981 cat >"\$tmp/defines.sed" <<\\CEOF
23982 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23983 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23984 b
23985 :def
23986 _ACEOF
23987 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23988 echo 'CEOF
23989 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23990 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23991 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23992 grep . conftest.tail >/dev/null || break
23993 rm -f conftest.defines
23994 mv conftest.tail conftest.defines
23995 done
23996 rm -f conftest.defines conftest.tail
23998 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23999 cat >>$CONFIG_STATUS <<\_ACEOF
24000 if test x"$ac_file" != x-; then
24001 echo "/* $configure_input */" >"$tmp/config.h"
24002 cat "$ac_result" >>"$tmp/config.h"
24003 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24004 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24005 echo "$as_me: $ac_file is unchanged" >&6;}
24006 else
24007 rm -f $ac_file
24008 mv "$tmp/config.h" $ac_file
24009 fi
24010 else
24011 echo "/* $configure_input */"
24012 cat "$ac_result"
24013 fi
24014 rm -f "$tmp/out12"
24015 ;;
24017 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24018 echo "$as_me: executing $ac_file commands" >&6;}
24019 ;;
24020 esac
24023 case $ac_file$ac_mode in
24024 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24026 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24027 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24028 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24029 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24030 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24031 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24032 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24033 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24034 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24035 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24036 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24037 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24038 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24039 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24040 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24041 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24042 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24043 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24044 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24045 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24046 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24047 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24049 esac
24050 done # for ac_tag
24053 { (exit 0); exit 0; }
24054 _ACEOF
24055 chmod +x $CONFIG_STATUS
24056 ac_clean_files=$ac_clean_files_save
24059 # configure is writing to config.log, and then calls config.status.
24060 # config.status does its own redirection, appending to config.log.
24061 # Unfortunately, on DOS this fails, as config.log is still kept open
24062 # by configure, so config.status won't be able to write to it; its
24063 # output is simply discarded. So we exec the FD to /dev/null,
24064 # effectively closing config.log, so it can be properly (re)opened and
24065 # appended to by config.status. When coming back to configure, we
24066 # need to make the FD available again.
24067 if test "$no_create" != yes; then
24068 ac_cs_success=:
24069 ac_config_status_args=
24070 test "$silent" = yes &&
24071 ac_config_status_args="$ac_config_status_args --quiet"
24072 exec 5>/dev/null
24073 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24074 exec 5>>config.log
24075 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24076 # would make configure fail if this is the last instruction.
24077 $ac_cs_success || { (exit 1); exit 1; }
24078 fi
24080 #
24081 # CONFIG_SUBDIRS section.
24082 #
24083 if test "$no_recursion" != yes; then
24085 # Remove --cache-file and --srcdir arguments so they do not pile up.
24086 ac_sub_configure_args=
24087 ac_prev=
24088 eval "set x $ac_configure_args"
24089 shift
24090 for ac_arg
24091 do
24092 if test -n "$ac_prev"; then
24093 ac_prev=
24094 continue
24095 fi
24096 case $ac_arg in
24097 -cache-file | --cache-file | --cache-fil | --cache-fi \
24098 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24099 ac_prev=cache_file ;;
24100 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24101 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24102 | --c=*)
24103 ;;
24104 --config-cache | -C)
24105 ;;
24106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24107 ac_prev=srcdir ;;
24108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24109 ;;
24110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24111 ac_prev=prefix ;;
24112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24113 ;;
24114 *)
24115 case $ac_arg in
24116 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24117 esac
24118 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24119 esac
24120 done
24122 # Always prepend --prefix to ensure using the same prefix
24123 # in subdir configurations.
24124 ac_arg="--prefix=$prefix"
24125 case $ac_arg in
24126 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24127 esac
24128 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24130 ac_popdir=`pwd`
24131 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24133 # Do not complain, so a configure script can configure whichever
24134 # parts of a large source tree are present.
24135 test -d "$srcdir/$ac_dir" || continue
24137 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24138 echo "$as_me:$LINENO: $ac_msg" >&5
24139 echo "$ac_msg" >&6
24140 { as_dir="$ac_dir"
24141 case $as_dir in #(
24142 -*) as_dir=./$as_dir;;
24143 esac
24144 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24145 as_dirs=
24146 while :; do
24147 case $as_dir in #(
24148 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24149 *) as_qdir=$as_dir;;
24150 esac
24151 as_dirs="'$as_qdir' $as_dirs"
24152 as_dir=`$as_dirname -- "$as_dir" ||
24153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24154 X"$as_dir" : 'X\(//\)[^/]' \| \
24155 X"$as_dir" : 'X\(//\)$' \| \
24156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24157 echo X"$as_dir" |
24158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24159 s//\1/
24160 q
24161 }
24162 /^X\(\/\/\)[^/].*/{
24163 s//\1/
24164 q
24165 }
24166 /^X\(\/\/\)$/{
24167 s//\1/
24168 q
24169 }
24170 /^X\(\/\).*/{
24171 s//\1/
24172 q
24173 }
24174 s/.*/./; q'`
24175 test -d "$as_dir" && break
24176 done
24177 test -z "$as_dirs" || eval "mkdir $as_dirs"
24178 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24179 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24180 { (exit 1); exit 1; }; }; }
24181 ac_builddir=.
24183 case "$ac_dir" in
24184 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24185 *)
24186 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24187 # A ".." for each directory in $ac_dir_suffix.
24188 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24189 case $ac_top_builddir_sub in
24190 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24191 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24192 esac ;;
24193 esac
24194 ac_abs_top_builddir=$ac_pwd
24195 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24196 # for backward compatibility:
24197 ac_top_builddir=$ac_top_build_prefix
24199 case $srcdir in
24200 .) # We are building in place.
24201 ac_srcdir=.
24202 ac_top_srcdir=$ac_top_builddir_sub
24203 ac_abs_top_srcdir=$ac_pwd ;;
24204 [\\/]* | ?:[\\/]* ) # Absolute name.
24205 ac_srcdir=$srcdir$ac_dir_suffix;
24206 ac_top_srcdir=$srcdir
24207 ac_abs_top_srcdir=$srcdir ;;
24208 *) # Relative name.
24209 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24210 ac_top_srcdir=$ac_top_build_prefix$srcdir
24211 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24212 esac
24213 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24216 cd "$ac_dir"
24218 # Check for guested configure; otherwise get Cygnus style configure.
24219 if test -f "$ac_srcdir/configure.gnu"; then
24220 ac_sub_configure=$ac_srcdir/configure.gnu
24221 elif test -f "$ac_srcdir/configure"; then
24222 ac_sub_configure=$ac_srcdir/configure
24223 elif test -f "$ac_srcdir/configure.in"; then
24224 # This should be Cygnus configure.
24225 ac_sub_configure=$ac_aux_dir/configure
24226 else
24227 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24228 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24229 ac_sub_configure=
24230 fi
24232 # The recursion is here.
24233 if test -n "$ac_sub_configure"; then
24234 # Make the cache file name correct relative to the subdirectory.
24235 case $cache_file in
24236 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24237 *) # Relative name.
24238 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24239 esac
24241 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24242 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24243 # The eval makes quoting arguments work.
24244 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24245 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24246 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24247 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24248 { (exit 1); exit 1; }; }
24249 fi
24251 cd "$ac_popdir"
24252 done
24253 fi