1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
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-2013 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.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
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_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
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 ENABLE_DOCS
704 ENABLE_DOXYGEN
705 LLVM_ENABLE_THREADS
706 ENABLE_PTHREADS
707 LLVM_ENABLE_ZLIB
708 ENABLE_PIC
709 ENABLE_SHARED
710 ENABLE_EMBED_STDCXX
711 ENABLE_TIMESTAMPS
712 TARGETS_TO_BUILD
713 LLVM_ENUM_TARGETS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
717 OPTIMIZE_OPTION
718 EXTRA_OPTIONS
719 EXTRA_LD_OPTIONS
720 CLANG_SRC_ROOT
721 BINUTILS_INCDIR
722 INTERNAL_PREFIX
723 NM
724 ifGNUmake
725 LN_S
726 CMP
727 CP
728 DATE
729 FIND
730 MKDIR
731 MV
732 RANLIB
733 AR
734 RM
735 SED
736 TAR
737 BINPWD
738 GRAPHVIZ
739 DOT
740 FDP
741 NEATO
742 TWOPI
743 CIRCO
744 GV
745 DOTTY
746 XDOT
747 INSTALL_PROGRAM
748 INSTALL_SCRIPT
749 INSTALL_DATA
750 BZIP2
751 CAT
752 DOXYGEN
753 GROFF
754 GZIPBIN
755 PDFROFF
756 ZIP
757 OCAMLC
758 OCAMLOPT
759 OCAMLDEP
760 OCAMLDOC
761 GAS
762 HAVE_LINK_VERSION_SCRIPT
763 INSTALL_LTDL_TRUE
764 INSTALL_LTDL_FALSE
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
767 LIBADD_DL
768 NO_VARIADIC_MACROS
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
772 NO_UNINITIALIZED
773 PYTHON
774 USE_UDIS86
775 USE_OPROFILE
776 USE_INTEL_JITEVENTS
777 XML2CONFIG
778 LIBXML2_LIBS
779 LIBXML2_INC
780 CXXCPP
781 HAVE_PTHREAD
782 HAVE_LIBZ
783 HUGE_VAL_SANITY
784 MMAP_FILE
785 SHLIBEXT
786 SHLIBPATH_VAR
787 LLVM_PREFIX
788 LLVM_BINDIR
789 LLVM_DATADIR
790 LLVM_DOCSDIR
791 LLVM_ETCDIR
792 LLVM_INCLUDEDIR
793 LLVM_INFODIR
794 LLVM_MANDIR
795 LLVM_CONFIGTIME
796 BINDINGS_TO_BUILD
797 ALL_BINDINGS
798 OCAML_LIBDIR
799 ENABLE_VISIBILITY_INLINES_HIDDEN
800 RPATH
801 RDYNAMIC
802 program_prefix
803 LIBOBJS
804 LTLIBOBJS'
805 ac_subst_files=''
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 CPPFLAGS
813 CXX
814 CXXFLAGS
815 CCC
816 CPP
817 CXXCPP'
818 ac_subdirs_all='projects/llvm-gcc
819 projects/test-suite
820 projects/llvm-test
821 projects/poolalloc
822 projects/llvm-poolalloc
823 projects/sample
824 projects/privbracket
825 projects/llvm-stacker
826 projects/llvm-reopt
827 projects/llvm-java
828 projects/llvm-tv
829 projects/safecode
830 projects/llvm-kernel
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.4svn 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.4svn:";;
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-cxx11 Use c++11 if available (default is NO)
1409 --enable-split-dwarf Use split-dwarf if available (default is NO)
1410 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1411 --enable-clang-static-analyzer
1412 Enable building of clang Static Analyzer (default is
1413 YES)
1414 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1415 --enable-optimized Compile with optimizations enabled (default is NO)
1416 --enable-profiling Compile with profiling enabled (default is NO)
1417 --enable-assertions Compile with assertion checks enabled (default is
1418 YES)
1419 --enable-werror Compile with -Werror enabled (default is NO)
1420 --enable-expensive-checks
1421 Compile with expensive debug checks enabled (default
1422 is NO)
1423 --enable-debug-runtime Build runtime libs with debug symbols (default is
1424 NO)
1425 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1426 optimization is on and YES if it's off)
1427 --enable-keep-symbols Do not strip installed executables)
1428 --enable-jit Enable Just In Time Compiling (default is YES)
1429 --enable-docs Build documents (default is YES)
1430 --enable-doxygen Build doxygen documentation (default is NO)
1431 --enable-threads Use threads if available (default is YES)
1432 --enable-pthreads Use pthreads if available (default is YES)
1433 --enable-zlib Use zlib for compression/decompression if available
1434 (default is YES)
1435 --enable-pic Build LLVM with Position Independent Code (default
1436 is YES)
1437 --enable-shared Build a shared library and link tools against it
1438 (default is NO)
1439 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1440 Win32 DLL (default is NO)
1441 --enable-timestamps Enable embedding timestamp information in build
1442 (default is YES)
1443 --enable-backtraces Enable embedding backtraces on crash (default is
1444 YES)
1445 --enable-crash-overrides
1446 Enable crash handling overrides (default is YES)
1447 --enable-targets Build specific host targets: all or
1448 target1,target2,... Valid targets are: host, x86,
1449 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1450 xcore, msp430, nvptx, systemz, r600, and cpp
1451 (default=all)
1452 --enable-experimental-targets
1453 Build experimental host targets: disable or
1454 target1,target2,... (default=disable)
1455 --enable-bindings Build specific language bindings:
1456 all,auto,none,{binding-name} (default=auto)
1457 --enable-terminfo Query the terminfo database if available (default is
1458 YES)
1459 --enable-libffi Check for the presence of libffi (default is NO)
1460 --enable-ltdl-install install libltdl
1462 Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-optimize-option Select the compiler options to use for optimized
1466 builds
1467 --with-extra-options Specify additional options to compile LLVM with
1468 --with-extra-ld-options Specify additional options to link LLVM with
1469 --with-ocaml-libdir Specify install location for ocaml bindings (default
1470 is stdlib)
1471 --with-clang-srcdir Directory to the out-of-tree Clang source
1472 --with-clang-resource-dir
1473 Relative directory from the Clang binary for
1474 resource files
1475 --with-c-include-dirs Colon separated list of directories clang will
1476 search for headers
1477 --with-gcc-toolchain Directory where gcc is installed.
1478 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1479 --with-binutils-include Specify path to binutils/include/ containing
1480 plugin-api.h file for gold plugin.
1481 --with-bug-report-url Specify the URL where bug reports should be
1482 submitted (default=http://llvm.org/bugs/)
1483 --with-internal-prefix Installation directory for internal files
1484 --with-python path to python
1485 --with-udis86=<path> Use udis86 external x86 disassembler library
1486 --with-oprofile=<prefix>
1487 Tell OProfile >= 0.9.4 how to symbolize JIT output
1488 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 CXX C++ compiler command
1499 CXXFLAGS C++ compiler flags
1500 CPP C preprocessor
1501 CXXCPP C++ preprocessor
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1506 Report bugs to <http://llvm.org/bugs/>.
1507 _ACEOF
1508 ac_status=$?
1509 fi
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" || continue
1515 ac_builddir=.
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1562 fi
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 LLVM configure 3.4svn
1568 generated by GNU Autoconf 2.60
1570 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1571 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1575 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1576 _ACEOF
1577 exit
1578 fi
1579 cat >config.log <<_ACEOF
1580 This file contains any messages produced by compilers while
1581 running configure, to aid debugging if configure makes a mistake.
1583 It was created by LLVM $as_me 3.4svn, which was
1584 generated by GNU Autoconf 2.60. Invocation command line was
1586 $ $0 $@
1588 _ACEOF
1589 exec 5>>config.log
1590 {
1591 cat <<_ASUNAME
1592 ## --------- ##
1593 ## Platform. ##
1594 ## --------- ##
1596 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1606 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1607 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1608 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1609 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1610 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1611 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613 _ASUNAME
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 echo "PATH: $as_dir"
1621 done
1622 IFS=$as_save_IFS
1624 } >&5
1626 cat >&5 <<_ACEOF
1629 ## ----------- ##
1630 ## Core tests. ##
1631 ## ----------- ##
1633 _ACEOF
1636 # Keep a trace of the command line.
1637 # Strip out --no-create and --no-recursion so they do not pile up.
1638 # Strip out --silent because we don't want to record it for future runs.
1639 # Also quote any args containing shell meta-characters.
1640 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_configure_args=
1642 ac_configure_args0=
1643 ac_configure_args1=
1644 ac_must_keep_next=false
1645 for ac_pass in 1 2
1646 do
1647 for ac_arg
1648 do
1649 case $ac_arg in
1650 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652 | -silent | --silent | --silen | --sile | --sil)
1653 continue ;;
1654 *\'*)
1655 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1656 esac
1657 case $ac_pass in
1658 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659 2)
1660 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1661 if test $ac_must_keep_next = true; then
1662 ac_must_keep_next=false # Got value, back to normal.
1663 else
1664 case $ac_arg in
1665 *=* | --config-cache | -C | -disable-* | --disable-* \
1666 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668 | -with-* | --with-* | -without-* | --without-* | --x)
1669 case "$ac_configure_args0 " in
1670 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1671 esac
1672 ;;
1673 -* ) ac_must_keep_next=true ;;
1674 esac
1675 fi
1676 ac_configure_args="$ac_configure_args '$ac_arg'"
1677 ;;
1678 esac
1679 done
1680 done
1681 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1682 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684 # When interrupted or exit'd, cleanup temporary files, and complete
1685 # config.log. We remove comments because anyway the quotes in there
1686 # would cause problems or look ugly.
1687 # WARNING: Use '\'' to represent an apostrophe within the trap.
1688 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1689 trap 'exit_status=$?
1690 # Save into config.log some information that might help in debugging.
1691 {
1692 echo
1694 cat <<\_ASBOX
1695 ## ---------------- ##
1696 ## Cache variables. ##
1697 ## ---------------- ##
1698 _ASBOX
1699 echo
1700 # The following way of writing the cache mishandles newlines in values,
1701 (
1702 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1703 eval ac_val=\$$ac_var
1704 case $ac_val in #(
1705 *${as_nl}*)
1706 case $ac_var in #(
1707 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1708 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1709 esac
1710 case $ac_var in #(
1711 _ | IFS | as_nl) ;; #(
1712 *) $as_unset $ac_var ;;
1713 esac ;;
1714 esac
1715 done
1716 (set) 2>&1 |
1717 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1718 *${as_nl}ac_space=\ *)
1719 sed -n \
1720 "s/'\''/'\''\\\\'\'''\''/g;
1721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1722 ;; #(
1723 *)
1724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725 ;;
1726 esac |
1727 sort
1728 )
1729 echo
1731 cat <<\_ASBOX
1732 ## ----------------- ##
1733 ## Output variables. ##
1734 ## ----------------- ##
1735 _ASBOX
1736 echo
1737 for ac_var in $ac_subst_vars
1738 do
1739 eval ac_val=\$$ac_var
1740 case $ac_val in
1741 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 esac
1743 echo "$ac_var='\''$ac_val'\''"
1744 done | sort
1745 echo
1747 if test -n "$ac_subst_files"; then
1748 cat <<\_ASBOX
1749 ## ------------------- ##
1750 ## File substitutions. ##
1751 ## ------------------- ##
1752 _ASBOX
1753 echo
1754 for ac_var in $ac_subst_files
1755 do
1756 eval ac_val=\$$ac_var
1757 case $ac_val in
1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 esac
1760 echo "$ac_var='\''$ac_val'\''"
1761 done | sort
1762 echo
1763 fi
1765 if test -s confdefs.h; then
1766 cat <<\_ASBOX
1767 ## ----------- ##
1768 ## confdefs.h. ##
1769 ## ----------- ##
1770 _ASBOX
1771 echo
1772 cat confdefs.h
1773 echo
1774 fi
1775 test "$ac_signal" != 0 &&
1776 echo "$as_me: caught signal $ac_signal"
1777 echo "$as_me: exit $exit_status"
1778 } >&5
1779 rm -f core *.core core.conftest.* &&
1780 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1781 exit $exit_status
1782 ' 0
1783 for ac_signal in 1 2 13 15; do
1784 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 done
1786 ac_signal=0
1788 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1789 rm -f -r conftest* confdefs.h
1791 # Predefined preprocessor variables.
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 _ACEOF
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 _ACEOF
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 _ACEOF
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 _ACEOF
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 _ACEOF
1818 # Let the site file select an alternate cache file if it wants to.
1819 # Prefer explicitly selected file to automatically selected ones.
1820 if test -n "$CONFIG_SITE"; then
1821 set x "$CONFIG_SITE"
1822 elif test "x$prefix" != xNONE; then
1823 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824 else
1825 set x "$ac_default_prefix/share/config.site" \
1826 "$ac_default_prefix/etc/config.site"
1827 fi
1828 shift
1829 for ac_site_file
1830 do
1831 if test -r "$ac_site_file"; then
1832 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1833 echo "$as_me: loading site script $ac_site_file" >&6;}
1834 sed 's/^/| /' "$ac_site_file" >&5
1835 . "$ac_site_file"
1836 fi
1837 done
1839 if test -r "$cache_file"; then
1840 # Some versions of bash will fail to source /dev/null (special
1841 # files actually), so we avoid doing that.
1842 if test -f "$cache_file"; then
1843 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1844 echo "$as_me: loading cache $cache_file" >&6;}
1845 case $cache_file in
1846 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1847 *) . "./$cache_file";;
1848 esac
1849 fi
1850 else
1851 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1852 echo "$as_me: creating cache $cache_file" >&6;}
1853 >$cache_file
1854 fi
1856 # Check that the precious variables saved in the cache have kept the same
1857 # value.
1858 ac_cache_corrupted=false
1859 for ac_var in $ac_precious_vars; do
1860 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1861 eval ac_new_set=\$ac_env_${ac_var}_set
1862 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1863 eval ac_new_val=\$ac_env_${ac_var}_value
1864 case $ac_old_set,$ac_new_set in
1865 set,)
1866 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1869 ,set)
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1871 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1873 ,);;
1874 *)
1875 if test "x$ac_old_val" != "x$ac_new_val"; then
1876 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1877 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1878 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1879 echo "$as_me: former value: $ac_old_val" >&2;}
1880 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1881 echo "$as_me: current value: $ac_new_val" >&2;}
1882 ac_cache_corrupted=:
1883 fi;;
1884 esac
1885 # Pass precious variables to config.status.
1886 if test "$ac_new_set" = set; then
1887 case $ac_new_val in
1888 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1889 *) ac_arg=$ac_var=$ac_new_val ;;
1890 esac
1891 case " $ac_configure_args " in
1892 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1893 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1894 esac
1895 fi
1896 done
1897 if $ac_cache_corrupted; then
1898 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1899 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1900 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1901 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1902 { (exit 1); exit 1; }; }
1903 fi
1929 ac_ext=c
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MAJOR 3
1939 _ACEOF
1942 cat >>confdefs.h <<\_ACEOF
1943 #define LLVM_VERSION_MINOR 4
1944 _ACEOF
1947 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1955 ac_aux_dir=
1956 for ac_dir in autoconf "$srcdir"/autoconf; do
1957 if test -f "$ac_dir/install-sh"; then
1958 ac_aux_dir=$ac_dir
1959 ac_install_sh="$ac_aux_dir/install-sh -c"
1960 break
1961 elif test -f "$ac_dir/install.sh"; then
1962 ac_aux_dir=$ac_dir
1963 ac_install_sh="$ac_aux_dir/install.sh -c"
1964 break
1965 elif test -f "$ac_dir/shtool"; then
1966 ac_aux_dir=$ac_dir
1967 ac_install_sh="$ac_aux_dir/shtool install -c"
1968 break
1969 fi
1970 done
1971 if test -z "$ac_aux_dir"; then
1972 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1973 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1974 { (exit 1); exit 1; }; }
1975 fi
1977 # These three variables are undocumented and unsupported,
1978 # and are intended to be withdrawn in a future Autoconf release.
1979 # They can cause serious problems if a builder's source tree is in a directory
1980 # whose full name contains unusual characters.
1981 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1982 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1983 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1987 if test ${srcdir} != "." ; then
1988 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1989 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1990 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1991 { (exit 1); exit 1; }; }
1992 fi
1993 fi
1995 ${CFLAGS=}
1996 ${CXXFLAGS=}
1998 ac_ext=c
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 if test -n "$ac_tool_prefix"; then
2004 for ac_prog in clang llvm-gcc gcc
2005 do
2006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2026 fi
2027 done
2028 done
2029 IFS=$as_save_IFS
2031 fi
2032 fi
2033 CC=$ac_cv_prog_CC
2034 if test -n "$CC"; then
2035 { echo "$as_me:$LINENO: result: $CC" >&5
2036 echo "${ECHO_T}$CC" >&6; }
2037 else
2038 { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2040 fi
2043 test -n "$CC" && break
2044 done
2045 fi
2046 if test -z "$CC"; then
2047 ac_ct_CC=$CC
2048 for ac_prog in clang llvm-gcc gcc
2049 do
2050 # Extract the first word of "$ac_prog", so it can be a program name with args.
2051 set dummy $ac_prog; ac_word=$2
2052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057 if test -n "$ac_ct_CC"; then
2058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063 IFS=$as_save_IFS
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2067 ac_cv_prog_ac_ct_CC="$ac_prog"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 break 2
2070 fi
2071 done
2072 done
2073 IFS=$as_save_IFS
2075 fi
2076 fi
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6; }
2081 else
2082 { echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6; }
2084 fi
2087 test -n "$ac_ct_CC" && break
2088 done
2090 if test "x$ac_ct_CC" = x; then
2091 CC=""
2092 else
2093 case $cross_compiling:$ac_tool_warned in
2094 yes:)
2095 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet. If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&5
2098 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2099 whose name does not start with the host triplet. If you think this
2100 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2101 ac_tool_warned=yes ;;
2102 esac
2103 CC=$ac_ct_CC
2104 fi
2105 fi
2108 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2109 See \`config.log' for more details." >&5
2110 echo "$as_me: error: no acceptable C compiler found in \$PATH
2111 See \`config.log' for more details." >&2;}
2112 { (exit 1); exit 1; }; }
2114 # Provide some information about the compiler.
2115 echo "$as_me:$LINENO: checking for C compiler version" >&5
2116 ac_compiler=`set X $ac_compile; echo $2`
2117 { (ac_try="$ac_compiler --version >&5"
2118 case "(($ac_try" in
2119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120 *) ac_try_echo=$ac_try;;
2121 esac
2122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2123 (eval "$ac_compiler --version >&5") 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }
2127 { (ac_try="$ac_compiler -v >&5"
2128 case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131 esac
2132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2133 (eval "$ac_compiler -v >&5") 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }
2137 { (ac_try="$ac_compiler -V >&5"
2138 case "(($ac_try" in
2139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140 *) ac_try_echo=$ac_try;;
2141 esac
2142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2143 (eval "$ac_compiler -V >&5") 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }
2148 cat >conftest.$ac_ext <<_ACEOF
2149 /* confdefs.h. */
2150 _ACEOF
2151 cat confdefs.h >>conftest.$ac_ext
2152 cat >>conftest.$ac_ext <<_ACEOF
2153 /* end confdefs.h. */
2155 int
2156 main ()
2157 {
2159 ;
2160 return 0;
2161 }
2162 _ACEOF
2163 ac_clean_files_save=$ac_clean_files
2164 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2165 # Try to create an executable without -o first, disregard a.out.
2166 # It will help us diagnose broken compilers, and finding out an intuition
2167 # of exeext.
2168 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2169 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2170 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2171 #
2172 # List of possible output files, starting from the most likely.
2173 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2174 # only as a last resort. b.out is created by i960 compilers.
2175 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2176 #
2177 # The IRIX 6 linker writes into existing files which may not be
2178 # executable, retaining their permissions. Remove them first so a
2179 # subsequent execution test works.
2180 ac_rmfiles=
2181 for ac_file in $ac_files
2182 do
2183 case $ac_file in
2184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2185 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2186 esac
2187 done
2188 rm -f $ac_rmfiles
2190 if { (ac_try="$ac_link_default"
2191 case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194 esac
2195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2196 (eval "$ac_link_default") 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; then
2200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2201 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2202 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2203 # so that the user can short-circuit this test for compilers unknown to
2204 # Autoconf.
2205 for ac_file in $ac_files
2206 do
2207 test -f "$ac_file" || continue
2208 case $ac_file in
2209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2210 ;;
2211 [ab].out )
2212 # We found the default executable, but exeext='' is most
2213 # certainly right.
2214 break;;
2215 *.* )
2216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2217 then :; else
2218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2219 fi
2220 # We set ac_cv_exeext here because the later test for it is not
2221 # safe: cross compilers may not add the suffix if given an `-o'
2222 # argument, so we may need to know it at that point already.
2223 # Even if this section looks crufty: it has the advantage of
2224 # actually working.
2225 break;;
2226 * )
2227 break;;
2228 esac
2229 done
2230 test "$ac_cv_exeext" = no && ac_cv_exeext=
2232 else
2233 echo "$as_me: failed program was:" >&5
2234 sed 's/^/| /' conftest.$ac_ext >&5
2236 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: C compiler cannot create executables
2239 See \`config.log' for more details." >&2;}
2240 { (exit 77); exit 77; }; }
2241 fi
2243 ac_exeext=$ac_cv_exeext
2244 { echo "$as_me:$LINENO: result: $ac_file" >&5
2245 echo "${ECHO_T}$ac_file" >&6; }
2247 # Check that the compiler produces executables we can run. If not, either
2248 # the compiler is broken, or we cross compile.
2249 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2250 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2251 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2252 # If not cross compiling, check that we can run a simple program.
2253 if test "$cross_compiling" != yes; then
2254 if { ac_try='./$ac_file'
2255 { (case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2258 esac
2259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2260 (eval "$ac_try") 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2264 cross_compiling=no
2265 else
2266 if test "$cross_compiling" = maybe; then
2267 cross_compiling=yes
2268 else
2269 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot run C compiled programs.
2273 If you meant to cross compile, use \`--host'.
2274 See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
2276 fi
2277 fi
2278 fi
2279 { echo "$as_me:$LINENO: result: yes" >&5
2280 echo "${ECHO_T}yes" >&6; }
2282 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2283 ac_clean_files=$ac_clean_files_save
2284 # Check that the compiler produces executables we can run. If not, either
2285 # the compiler is broken, or we cross compile.
2286 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2287 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2288 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2289 echo "${ECHO_T}$cross_compiling" >&6; }
2291 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2292 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2293 if { (ac_try="$ac_link"
2294 case "(($ac_try" in
2295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296 *) ac_try_echo=$ac_try;;
2297 esac
2298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2299 (eval "$ac_link") 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; then
2303 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2304 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2305 # work properly (i.e., refer to `conftest.exe'), while it won't with
2306 # `rm'.
2307 for ac_file in conftest.exe conftest conftest.*; do
2308 test -f "$ac_file" || continue
2309 case $ac_file in
2310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2311 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2312 break;;
2313 * ) break;;
2314 esac
2315 done
2316 else
2317 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2318 See \`config.log' for more details." >&5
2319 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2320 See \`config.log' for more details." >&2;}
2321 { (exit 1); exit 1; }; }
2322 fi
2324 rm -f conftest$ac_cv_exeext
2325 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2326 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2328 rm -f conftest.$ac_ext
2329 EXEEXT=$ac_cv_exeext
2330 ac_exeext=$EXEEXT
2331 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2332 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2333 if test "${ac_cv_objext+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336 cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2343 int
2344 main ()
2345 {
2347 ;
2348 return 0;
2349 }
2350 _ACEOF
2351 rm -f conftest.o conftest.obj
2352 if { (ac_try="$ac_compile"
2353 case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2356 esac
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358 (eval "$ac_compile") 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; then
2362 for ac_file in conftest.o conftest.obj conftest.*; do
2363 test -f "$ac_file" || continue;
2364 case $ac_file in
2365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2367 break;;
2368 esac
2369 done
2370 else
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2374 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2375 See \`config.log' for more details." >&5
2376 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2377 See \`config.log' for more details." >&2;}
2378 { (exit 1); exit 1; }; }
2379 fi
2381 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2382 fi
2383 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2384 echo "${ECHO_T}$ac_cv_objext" >&6; }
2385 OBJEXT=$ac_cv_objext
2386 ac_objext=$OBJEXT
2387 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2388 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2389 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392 cat >conftest.$ac_ext <<_ACEOF
2393 /* confdefs.h. */
2394 _ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h. */
2399 int
2400 main ()
2401 {
2402 #ifndef __GNUC__
2403 choke me
2404 #endif
2406 ;
2407 return 0;
2408 }
2409 _ACEOF
2410 rm -f conftest.$ac_objext
2411 if { (ac_try="$ac_compile"
2412 case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_compile") 2>conftest.er1
2418 ac_status=$?
2419 grep -v '^ *+' conftest.er1 >conftest.err
2420 rm -f conftest.er1
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2425 { (case "(($ac_try" in
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2428 esac
2429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430 (eval "$ac_try") 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
2435 { (case "(($ac_try" in
2436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437 *) ac_try_echo=$ac_try;;
2438 esac
2439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440 (eval "$ac_try") 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; }; then
2444 ac_compiler_gnu=yes
2445 else
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2449 ac_compiler_gnu=no
2450 fi
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2455 fi
2456 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2457 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2458 GCC=`test $ac_compiler_gnu = yes && echo yes`
2459 ac_test_CFLAGS=${CFLAGS+set}
2460 ac_save_CFLAGS=$CFLAGS
2461 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2462 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_cc_g+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466 ac_save_c_werror_flag=$ac_c_werror_flag
2467 ac_c_werror_flag=yes
2468 ac_cv_prog_cc_g=no
2469 CFLAGS="-g"
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h. */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2477 int
2478 main ()
2479 {
2481 ;
2482 return 0;
2483 }
2484 _ACEOF
2485 rm -f conftest.$ac_objext
2486 if { (ac_try="$ac_compile"
2487 case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2490 esac
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492 (eval "$ac_compile") 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } &&
2499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2500 { (case "(($ac_try" in
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2503 esac
2504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2505 (eval "$ac_try") 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try='test -s conftest.$ac_objext'
2510 { (case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2513 esac
2514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515 (eval "$ac_try") 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_prog_cc_g=yes
2520 else
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 CFLAGS=""
2525 cat >conftest.$ac_ext <<_ACEOF
2526 /* confdefs.h. */
2527 _ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h. */
2532 int
2533 main ()
2534 {
2536 ;
2537 return 0;
2538 }
2539 _ACEOF
2540 rm -f conftest.$ac_objext
2541 if { (ac_try="$ac_compile"
2542 case "(($ac_try" in
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2545 esac
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547 (eval "$ac_compile") 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2555 { (case "(($ac_try" in
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2558 esac
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560 (eval "$ac_try") 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2568 esac
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_try") 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 :
2575 else
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2579 ac_c_werror_flag=$ac_save_c_werror_flag
2580 CFLAGS="-g"
2581 cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h. */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2588 int
2589 main ()
2590 {
2592 ;
2593 return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (ac_try="$ac_compile"
2598 case "(($ac_try" in
2599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600 *) ac_try_echo=$ac_try;;
2601 esac
2602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603 (eval "$ac_compile") 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2611 { (case "(($ac_try" in
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2614 esac
2615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616 (eval "$ac_try") 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (case "(($ac_try" in
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2624 esac
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626 (eval "$ac_try") 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 ac_cv_prog_cc_g=yes
2631 else
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2636 fi
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 fi
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 fi
2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 ac_c_werror_flag=$ac_save_c_werror_flag
2646 fi
2647 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2648 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2649 if test "$ac_test_CFLAGS" = set; then
2650 CFLAGS=$ac_save_CFLAGS
2651 elif test $ac_cv_prog_cc_g = yes; then
2652 if test "$GCC" = yes; then
2653 CFLAGS="-g -O2"
2654 else
2655 CFLAGS="-g"
2656 fi
2657 else
2658 if test "$GCC" = yes; then
2659 CFLAGS="-O2"
2660 else
2661 CFLAGS=
2662 fi
2663 fi
2664 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2665 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2666 if test "${ac_cv_prog_cc_c89+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669 ac_cv_prog_cc_c89=no
2670 ac_save_CC=$CC
2671 cat >conftest.$ac_ext <<_ACEOF
2672 /* confdefs.h. */
2673 _ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2677 #include <stdarg.h>
2678 #include <stdio.h>
2679 #include <sys/types.h>
2680 #include <sys/stat.h>
2681 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2682 struct buf { int x; };
2683 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2684 static char *e (p, i)
2685 char **p;
2686 int i;
2687 {
2688 return p[i];
2689 }
2690 static char *f (char * (*g) (char **, int), char **p, ...)
2691 {
2692 char *s;
2693 va_list v;
2694 va_start (v,p);
2695 s = g (p, va_arg (v,int));
2696 va_end (v);
2697 return s;
2698 }
2700 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2701 function prototypes and stuff, but not '\xHH' hex character constants.
2702 These don't provoke an error unfortunately, instead are silently treated
2703 as 'x'. The following induces an error, until -std is added to get
2704 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2705 array size at least. It's necessary to write '\x00'==0 to get something
2706 that's true only with -std. */
2707 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2709 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2710 inside strings and character constants. */
2711 #define FOO(x) 'x'
2712 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2714 int test (int i, double x);
2715 struct s1 {int (*f) (int a);};
2716 struct s2 {int (*f) (double a);};
2717 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2718 int argc;
2719 char **argv;
2720 int
2721 main ()
2722 {
2723 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2724 ;
2725 return 0;
2726 }
2727 _ACEOF
2728 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2729 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730 do
2731 CC="$ac_save_CC $ac_arg"
2732 rm -f conftest.$ac_objext
2733 if { (ac_try="$ac_compile"
2734 case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compile") 2>conftest.er1
2740 ac_status=$?
2741 grep -v '^ *+' conftest.er1 >conftest.err
2742 rm -f conftest.er1
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2747 { (case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_try") 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760 esac
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_try") 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 ac_cv_prog_cc_c89=$ac_arg
2767 else
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2772 fi
2774 rm -f core conftest.err conftest.$ac_objext
2775 test "x$ac_cv_prog_cc_c89" != "xno" && break
2776 done
2777 rm -f conftest.$ac_ext
2778 CC=$ac_save_CC
2780 fi
2781 # AC_CACHE_VAL
2782 case "x$ac_cv_prog_cc_c89" in
2783 x)
2784 { echo "$as_me:$LINENO: result: none needed" >&5
2785 echo "${ECHO_T}none needed" >&6; } ;;
2786 xno)
2787 { echo "$as_me:$LINENO: result: unsupported" >&5
2788 echo "${ECHO_T}unsupported" >&6; } ;;
2789 *)
2790 CC="$CC $ac_cv_prog_cc_c89"
2791 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2792 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2793 esac
2796 ac_ext=c
2797 ac_cpp='$CPP $CPPFLAGS'
2798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802 ac_ext=cpp
2803 ac_cpp='$CXXCPP $CPPFLAGS'
2804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2807 if test -z "$CXX"; then
2808 if test -n "$CCC"; then
2809 CXX=$CCC
2810 else
2811 if test -n "$ac_tool_prefix"; then
2812 for ac_prog in clang++ llvm-g++ g++
2813 do
2814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_CXX+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821 if test -n "$CXX"; then
2822 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2839 fi
2840 fi
2841 CXX=$ac_cv_prog_CXX
2842 if test -n "$CXX"; then
2843 { echo "$as_me:$LINENO: result: $CXX" >&5
2844 echo "${ECHO_T}$CXX" >&6; }
2845 else
2846 { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2848 fi
2851 test -n "$CXX" && break
2852 done
2853 fi
2854 if test -z "$CXX"; then
2855 ac_ct_CXX=$CXX
2856 for ac_prog in clang++ llvm-g++ g++
2857 do
2858 # Extract the first word of "$ac_prog", so it can be a program name with args.
2859 set dummy $ac_prog; ac_word=$2
2860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2862 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865 if test -n "$ac_ct_CXX"; then
2866 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2875 ac_cv_prog_ac_ct_CXX="$ac_prog"
2876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2878 fi
2879 done
2880 done
2881 IFS=$as_save_IFS
2883 fi
2884 fi
2885 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2886 if test -n "$ac_ct_CXX"; then
2887 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2888 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2889 else
2890 { echo "$as_me:$LINENO: result: no" >&5
2891 echo "${ECHO_T}no" >&6; }
2892 fi
2895 test -n "$ac_ct_CXX" && break
2896 done
2898 if test "x$ac_ct_CXX" = x; then
2899 CXX="g++"
2900 else
2901 case $cross_compiling:$ac_tool_warned in
2902 yes:)
2903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2904 whose name does not start with the host triplet. If you think this
2905 configuration is useful to you, please write to autoconf@gnu.org." >&5
2906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2907 whose name does not start with the host triplet. If you think this
2908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2909 ac_tool_warned=yes ;;
2910 esac
2911 CXX=$ac_ct_CXX
2912 fi
2913 fi
2915 fi
2916 fi
2917 # Provide some information about the compiler.
2918 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2919 ac_compiler=`set X $ac_compile; echo $2`
2920 { (ac_try="$ac_compiler --version >&5"
2921 case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compiler --version >&5") 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }
2930 { (ac_try="$ac_compiler -v >&5"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compiler -v >&5") 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }
2940 { (ac_try="$ac_compiler -V >&5"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compiler -V >&5") 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }
2951 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2952 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2953 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956 cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h. */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2963 int
2964 main ()
2965 {
2966 #ifndef __GNUC__
2967 choke me
2968 #endif
2970 ;
2971 return 0;
2972 }
2973 _ACEOF
2974 rm -f conftest.$ac_objext
2975 if { (ac_try="$ac_compile"
2976 case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979 esac
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_compile") 2>conftest.er1
2982 ac_status=$?
2983 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -f conftest.er1
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2989 { (case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_try") 2>&5
2995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; } &&
2998 { ac_try='test -s conftest.$ac_objext'
2999 { (case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_try") 2>&5
3005 ac_status=$?
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3008 ac_compiler_gnu=yes
3009 else
3010 echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3013 ac_compiler_gnu=no
3014 fi
3016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3017 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3019 fi
3020 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3021 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3022 GXX=`test $ac_compiler_gnu = yes && echo yes`
3023 ac_test_CXXFLAGS=${CXXFLAGS+set}
3024 ac_save_CXXFLAGS=$CXXFLAGS
3025 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3026 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3027 if test "${ac_cv_prog_cxx_g+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3031 ac_cxx_werror_flag=yes
3032 ac_cv_prog_cxx_g=no
3033 CXXFLAGS="-g"
3034 cat >conftest.$ac_ext <<_ACEOF
3035 /* confdefs.h. */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3041 int
3042 main ()
3043 {
3045 ;
3046 return 0;
3047 }
3048 _ACEOF
3049 rm -f conftest.$ac_objext
3050 if { (ac_try="$ac_compile"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_compile") 2>conftest.er1
3057 ac_status=$?
3058 grep -v '^ *+' conftest.er1 >conftest.err
3059 rm -f conftest.er1
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } &&
3063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3064 { (case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_try") 2>&5
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; } &&
3073 { ac_try='test -s conftest.$ac_objext'
3074 { (case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077 esac
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_try") 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; }; then
3083 ac_cv_prog_cxx_g=yes
3084 else
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3088 CXXFLAGS=""
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h. */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3096 int
3097 main ()
3098 {
3100 ;
3101 return 0;
3102 }
3103 _ACEOF
3104 rm -f conftest.$ac_objext
3105 if { (ac_try="$ac_compile"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_compile") 2>conftest.er1
3112 ac_status=$?
3113 grep -v '^ *+' conftest.er1 >conftest.err
3114 rm -f conftest.er1
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } &&
3118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3119 { (case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_try") 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; } &&
3128 { ac_try='test -s conftest.$ac_objext'
3129 { (case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_try") 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
3138 :
3139 else
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3143 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3144 CXXFLAGS="-g"
3145 cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h. */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3152 int
3153 main ()
3154 {
3156 ;
3157 return 0;
3158 }
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (ac_try="$ac_compile"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compile") 2>conftest.er1
3168 ac_status=$?
3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3175 { (case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_try") 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; } &&
3184 { ac_try='test -s conftest.$ac_objext'
3185 { (case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_try") 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 ac_cv_prog_cxx_g=yes
3195 else
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3200 fi
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 fi
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3210 fi
3211 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3212 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3213 if test "$ac_test_CXXFLAGS" = set; then
3214 CXXFLAGS=$ac_save_CXXFLAGS
3215 elif test $ac_cv_prog_cxx_g = yes; then
3216 if test "$GXX" = yes; then
3217 CXXFLAGS="-g -O2"
3218 else
3219 CXXFLAGS="-g"
3220 fi
3221 else
3222 if test "$GXX" = yes; then
3223 CXXFLAGS="-O2"
3224 else
3225 CXXFLAGS=
3226 fi
3227 fi
3228 ac_ext=c
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3240 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3241 # On Suns, sometimes $CPP names a directory.
3242 if test -n "$CPP" && test -d "$CPP"; then
3243 CPP=
3244 fi
3245 if test -z "$CPP"; then
3246 if test "${ac_cv_prog_CPP+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249 # Double quotes because CPP needs to be expanded
3250 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3251 do
3252 ac_preproc_ok=false
3253 for ac_c_preproc_warn_flag in '' yes
3254 do
3255 # Use a header file that comes with gcc, so configuring glibc
3256 # with a fresh cross-compiler works.
3257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258 # <limits.h> exists even on freestanding compilers.
3259 # On the NeXT, cc -E runs the code through the compiler's parser,
3260 # not just through cpp. "Syntax error" is here to catch this case.
3261 cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h. */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267 #ifdef __STDC__
3268 # include <limits.h>
3269 #else
3270 # include <assert.h>
3271 #endif
3272 Syntax error
3273 _ACEOF
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290 else
3291 ac_cpp_err=
3292 fi
3293 else
3294 ac_cpp_err=yes
3295 fi
3296 if test -z "$ac_cpp_err"; then
3297 :
3298 else
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3302 # Broken: fails on valid input.
3303 continue
3304 fi
3306 rm -f conftest.err conftest.$ac_ext
3308 # OK, works on sane cases. Now check whether nonexistent headers
3309 # can be detected and how.
3310 cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h. */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316 #include <ac_nonexistent.h>
3317 _ACEOF
3318 if { (ac_try="$ac_cpp conftest.$ac_ext"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } >/dev/null; then
3331 if test -s conftest.err; then
3332 ac_cpp_err=$ac_c_preproc_warn_flag
3333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3334 else
3335 ac_cpp_err=
3336 fi
3337 else
3338 ac_cpp_err=yes
3339 fi
3340 if test -z "$ac_cpp_err"; then
3341 # Broken: success on invalid input.
3342 continue
3343 else
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3347 # Passes both tests.
3348 ac_preproc_ok=:
3349 break
3350 fi
3352 rm -f conftest.err conftest.$ac_ext
3354 done
3355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3356 rm -f conftest.err conftest.$ac_ext
3357 if $ac_preproc_ok; then
3358 break
3359 fi
3361 done
3362 ac_cv_prog_CPP=$CPP
3364 fi
3365 CPP=$ac_cv_prog_CPP
3366 else
3367 ac_cv_prog_CPP=$CPP
3368 fi
3369 { echo "$as_me:$LINENO: result: $CPP" >&5
3370 echo "${ECHO_T}$CPP" >&6; }
3371 ac_preproc_ok=false
3372 for ac_c_preproc_warn_flag in '' yes
3373 do
3374 # Use a header file that comes with gcc, so configuring glibc
3375 # with a fresh cross-compiler works.
3376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377 # <limits.h> exists even on freestanding compilers.
3378 # On the NeXT, cc -E runs the code through the compiler's parser,
3379 # not just through cpp. "Syntax error" is here to catch this case.
3380 cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 #ifdef __STDC__
3387 # include <limits.h>
3388 #else
3389 # include <assert.h>
3390 #endif
3391 Syntax error
3392 _ACEOF
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409 else
3410 ac_cpp_err=
3411 fi
3412 else
3413 ac_cpp_err=yes
3414 fi
3415 if test -z "$ac_cpp_err"; then
3416 :
3417 else
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 # Broken: fails on valid input.
3422 continue
3423 fi
3425 rm -f conftest.err conftest.$ac_ext
3427 # OK, works on sane cases. Now check whether nonexistent headers
3428 # can be detected and how.
3429 cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h. */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3435 #include <ac_nonexistent.h>
3436 _ACEOF
3437 if { (ac_try="$ac_cpp conftest.$ac_ext"
3438 case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } >/dev/null; then
3450 if test -s conftest.err; then
3451 ac_cpp_err=$ac_c_preproc_warn_flag
3452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3453 else
3454 ac_cpp_err=
3455 fi
3456 else
3457 ac_cpp_err=yes
3458 fi
3459 if test -z "$ac_cpp_err"; then
3460 # Broken: success on invalid input.
3461 continue
3462 else
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Passes both tests.
3467 ac_preproc_ok=:
3468 break
3469 fi
3471 rm -f conftest.err conftest.$ac_ext
3473 done
3474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475 rm -f conftest.err conftest.$ac_ext
3476 if $ac_preproc_ok; then
3477 :
3478 else
3479 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3480 See \`config.log' for more details." >&5
3481 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3482 See \`config.log' for more details." >&2;}
3483 { (exit 1); exit 1; }; }
3484 fi
3486 ac_ext=c
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 if test "$CXX" = "clang++" ; then
3494 { echo "$as_me:$LINENO: checking whether clang works" >&5
3495 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3496 ac_ext=cpp
3497 ac_cpp='$CXXCPP $CPPFLAGS'
3498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3503 cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h. */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3509 #include <limits>
3510 #if __has_include (<cxxabi.h>)
3511 #include <cxxabi.h>
3512 #endif
3513 #if __has_include (<unwind.h>)
3514 #include <unwind.h>
3515 #endif
3517 int
3518 main ()
3519 {
3521 ;
3522 return 0;
3523 }
3524 _ACEOF
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compile") 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3540 { (case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543 esac
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545 (eval "$ac_try") 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553 esac
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_try") 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3560 { echo "$as_me:$LINENO: result: yes" >&5
3561 echo "${ECHO_T}yes" >&6; }
3563 else
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3568 { echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6; }
3570 { { 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
3571 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;}
3572 { (exit 1); exit 1; }; }
3574 fi
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583 fi
3587 if test -d ${srcdir}/projects/llvm-gcc ; then
3588 subdirs="$subdirs projects/llvm-gcc"
3590 fi
3592 if test -d ${srcdir}/projects/test-suite ; then
3593 subdirs="$subdirs projects/test-suite"
3595 fi
3597 if test -d ${srcdir}/projects/llvm-test ; then
3598 subdirs="$subdirs projects/llvm-test"
3600 fi
3602 if test -d ${srcdir}/projects/poolalloc ; then
3603 subdirs="$subdirs projects/poolalloc"
3605 fi
3607 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3608 subdirs="$subdirs projects/llvm-poolalloc"
3610 fi
3612 for i in `ls ${srcdir}/projects`
3613 do
3614 if test -d ${srcdir}/projects/${i} ; then
3615 case ${i} in
3616 sample) subdirs="$subdirs projects/sample"
3617 ;;
3618 privbracket) subdirs="$subdirs projects/privbracket"
3619 ;;
3620 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3621 ;;
3622 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3623 ;;
3624 llvm-java) subdirs="$subdirs projects/llvm-java"
3625 ;;
3626 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3627 ;;
3628 safecode) subdirs="$subdirs projects/safecode"
3629 ;;
3630 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3631 ;;
3632 compiler-rt) ;;
3633 llvm-gcc) ;;
3634 test-suite) ;;
3635 llvm-test) ;;
3636 poolalloc) ;;
3637 llvm-poolalloc) ;;
3638 *)
3639 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3640 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3641 ;;
3642 esac
3643 fi
3644 done
3646 # Check whether --enable-polly was given.
3647 if test "${enable_polly+set}" = set; then
3648 enableval=$enable_polly;
3649 else
3650 enableval=default
3651 fi
3653 case "$enableval" in
3654 yes) ENABLE_POLLY=1
3655 ;;
3656 no) ENABLE_POLLY=0
3657 ;;
3658 default) ENABLE_POLLY=1
3659 ;;
3660 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3661 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3662 { (exit 1); exit 1; }; } ;;
3663 esac
3666 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3667 LLVM_HAS_POLLY=1
3669 subdirs="$subdirs tools/polly"
3671 fi
3674 # Make sure we can run config.sub.
3675 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3676 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3677 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3678 { (exit 1); exit 1; }; }
3680 { echo "$as_me:$LINENO: checking build system type" >&5
3681 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3682 if test "${ac_cv_build+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 ac_build_alias=$build_alias
3686 test "x$ac_build_alias" = x &&
3687 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3688 test "x$ac_build_alias" = x &&
3689 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3690 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3691 { (exit 1); exit 1; }; }
3692 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3693 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3694 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3695 { (exit 1); exit 1; }; }
3697 fi
3698 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3699 echo "${ECHO_T}$ac_cv_build" >&6; }
3700 case $ac_cv_build in
3701 *-*-*) ;;
3702 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3703 echo "$as_me: error: invalid value of canonical build" >&2;}
3704 { (exit 1); exit 1; }; };;
3705 esac
3706 build=$ac_cv_build
3707 ac_save_IFS=$IFS; IFS='-'
3708 set x $ac_cv_build
3709 shift
3710 build_cpu=$1
3711 build_vendor=$2
3712 shift; shift
3713 # Remember, the first character of IFS is used to create $*,
3714 # except with old shells:
3715 build_os=$*
3716 IFS=$ac_save_IFS
3717 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3720 { echo "$as_me:$LINENO: checking host system type" >&5
3721 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3722 if test "${ac_cv_host+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725 if test "x$host_alias" = x; then
3726 ac_cv_host=$ac_cv_build
3727 else
3728 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3729 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3730 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3731 { (exit 1); exit 1; }; }
3732 fi
3734 fi
3735 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3736 echo "${ECHO_T}$ac_cv_host" >&6; }
3737 case $ac_cv_host in
3738 *-*-*) ;;
3739 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3740 echo "$as_me: error: invalid value of canonical host" >&2;}
3741 { (exit 1); exit 1; }; };;
3742 esac
3743 host=$ac_cv_host
3744 ac_save_IFS=$IFS; IFS='-'
3745 set x $ac_cv_host
3746 shift
3747 host_cpu=$1
3748 host_vendor=$2
3749 shift; shift
3750 # Remember, the first character of IFS is used to create $*,
3751 # except with old shells:
3752 host_os=$*
3753 IFS=$ac_save_IFS
3754 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3757 { echo "$as_me:$LINENO: checking target system type" >&5
3758 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3759 if test "${ac_cv_target+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 if test "x$target_alias" = x; then
3763 ac_cv_target=$ac_cv_host
3764 else
3765 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3766 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3767 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3768 { (exit 1); exit 1; }; }
3769 fi
3771 fi
3772 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3773 echo "${ECHO_T}$ac_cv_target" >&6; }
3774 case $ac_cv_target in
3775 *-*-*) ;;
3776 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3777 echo "$as_me: error: invalid value of canonical target" >&2;}
3778 { (exit 1); exit 1; }; };;
3779 esac
3780 target=$ac_cv_target
3781 ac_save_IFS=$IFS; IFS='-'
3782 set x $ac_cv_target
3783 shift
3784 target_cpu=$1
3785 target_vendor=$2
3786 shift; shift
3787 # Remember, the first character of IFS is used to create $*,
3788 # except with old shells:
3789 target_os=$*
3790 IFS=$ac_save_IFS
3791 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3794 # The aliases save the names the user supplied, while $host etc.
3795 # will get canonicalized.
3796 test -n "$target_alias" &&
3797 test "$program_prefix$program_suffix$program_transform_name" = \
3798 NONENONEs,x,x, &&
3799 program_prefix=${target_alias}-
3801 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3802 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3803 if test "${llvm_cv_os_type+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806 case $host in
3807 *-*-aix*)
3808 llvm_cv_link_all_option="-Wl,--whole-archive"
3809 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3810 llvm_cv_os_type="AIX"
3811 llvm_cv_platform_type="Unix" ;;
3812 *-*-irix*)
3813 llvm_cv_link_all_option="-Wl,--whole-archive"
3814 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3815 llvm_cv_os_type="IRIX"
3816 llvm_cv_platform_type="Unix" ;;
3817 *-*-cygwin*)
3818 llvm_cv_link_all_option="-Wl,--whole-archive"
3819 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3820 llvm_cv_os_type="Cygwin"
3821 llvm_cv_platform_type="Unix" ;;
3822 *-*-darwin*)
3823 llvm_cv_link_all_option="-Wl,-all_load"
3824 llvm_cv_no_link_all_option="-Wl,-noall_load"
3825 llvm_cv_os_type="Darwin"
3826 llvm_cv_platform_type="Unix" ;;
3827 *-*-minix*)
3828 llvm_cv_link_all_option="-Wl,-all_load"
3829 llvm_cv_no_link_all_option="-Wl,-noall_load"
3830 llvm_cv_os_type="Minix"
3831 llvm_cv_platform_type="Unix" ;;
3832 *-*-freebsd*)
3833 llvm_cv_link_all_option="-Wl,--whole-archive"
3834 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835 llvm_cv_os_type="FreeBSD"
3836 llvm_cv_platform_type="Unix" ;;
3837 *-*-kfreebsd-gnu)
3838 llvm_cv_link_all_option="-Wl,--whole-archive"
3839 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840 llvm_cv_os_type="GNU/kFreeBSD"
3841 llvm_cv_platform_type="Unix" ;;
3842 *-*-openbsd*)
3843 llvm_cv_link_all_option="-Wl,--whole-archive"
3844 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845 llvm_cv_os_type="OpenBSD"
3846 llvm_cv_platform_type="Unix" ;;
3847 *-*-netbsd*)
3848 llvm_cv_link_all_option="-Wl,--whole-archive"
3849 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850 llvm_cv_os_type="NetBSD"
3851 llvm_cv_platform_type="Unix" ;;
3852 *-*-dragonfly*)
3853 llvm_cv_link_all_option="-Wl,--whole-archive"
3854 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855 llvm_cv_os_type="DragonFly"
3856 llvm_cv_platform_type="Unix" ;;
3857 *-*-hpux*)
3858 llvm_cv_link_all_option="-Wl,--whole-archive"
3859 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3860 llvm_cv_os_type="HP-UX"
3861 llvm_cv_platform_type="Unix" ;;
3862 *-*-interix*)
3863 llvm_cv_link_all_option="-Wl,--whole-archive"
3864 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3865 llvm_cv_os_type="Interix"
3866 llvm_cv_platform_type="Unix" ;;
3867 *-*-linux*)
3868 llvm_cv_link_all_option="-Wl,--whole-archive"
3869 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3870 llvm_cv_os_type="Linux"
3871 llvm_cv_platform_type="Unix" ;;
3872 *-*-gnu*)
3873 llvm_cv_link_all_option="-Wl,--whole-archive"
3874 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3875 llvm_cv_os_type="GNU"
3876 llvm_cv_platform_type="Unix" ;;
3877 *-*-solaris*)
3878 llvm_cv_link_all_option="-Wl,-z,allextract"
3879 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3880 llvm_cv_os_type="SunOS"
3881 llvm_cv_platform_type="Unix" ;;
3882 *-*-auroraux*)
3883 llvm_cv_link_all_option="-Wl,-z,allextract"
3884 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3885 llvm_cv_os_type="AuroraUX"
3886 llvm_cv_platform_type="Unix" ;;
3887 *-*-win32*)
3888 llvm_cv_link_all_option="-Wl,--whole-archive"
3889 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890 llvm_cv_os_type="Win32"
3891 llvm_cv_platform_type="Win32" ;;
3892 *-*-mingw*)
3893 llvm_cv_link_all_option="-Wl,--whole-archive"
3894 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3895 llvm_cv_os_type="MingW"
3896 llvm_cv_platform_type="Win32" ;;
3897 *-*-haiku*)
3898 llvm_cv_link_all_option="-Wl,--whole-archive"
3899 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3900 llvm_cv_os_type="Haiku"
3901 llvm_cv_platform_type="Unix" ;;
3902 *-unknown-eabi*)
3903 llvm_cv_link_all_option="-Wl,--whole-archive"
3904 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3905 llvm_cv_os_type="Freestanding"
3906 llvm_cv_platform_type="Unix" ;;
3907 *-unknown-elf*)
3908 llvm_cv_link_all_option="-Wl,--whole-archive"
3909 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3910 llvm_cv_os_type="Freestanding"
3911 llvm_cv_platform_type="Unix" ;;
3912 *)
3913 llvm_cv_link_all_option=""
3914 llvm_cv_no_link_all_option=""
3915 llvm_cv_os_type="Unknown"
3916 llvm_cv_platform_type="Unknown" ;;
3917 esac
3918 fi
3919 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3920 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3922 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3923 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3924 if test "${llvm_cv_target_os_type+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 case $target in
3928 *-*-aix*)
3929 llvm_cv_target_os_type="AIX" ;;
3930 *-*-irix*)
3931 llvm_cv_target_os_type="IRIX" ;;
3932 *-*-cygwin*)
3933 llvm_cv_target_os_type="Cygwin" ;;
3934 *-*-darwin*)
3935 llvm_cv_target_os_type="Darwin" ;;
3936 *-*-minix*)
3937 llvm_cv_target_os_type="Minix" ;;
3938 *-*-freebsd*)
3939 llvm_cv_target_os_type="FreeBSD" ;;
3940 *-*-kfreebsd-gnu)
3941 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3942 *-*-openbsd*)
3943 llvm_cv_target_os_type="OpenBSD" ;;
3944 *-*-netbsd*)
3945 llvm_cv_target_os_type="NetBSD" ;;
3946 *-*-dragonfly*)
3947 llvm_cv_target_os_type="DragonFly" ;;
3948 *-*-hpux*)
3949 llvm_cv_target_os_type="HP-UX" ;;
3950 *-*-interix*)
3951 llvm_cv_target_os_type="Interix" ;;
3952 *-*-linux*)
3953 llvm_cv_target_os_type="Linux" ;;
3954 *-*-gnu*)
3955 llvm_cv_target_os_type="GNU" ;;
3956 *-*-solaris*)
3957 llvm_cv_target_os_type="SunOS" ;;
3958 *-*-auroraux*)
3959 llvm_cv_target_os_type="AuroraUX" ;;
3960 *-*-win32*)
3961 llvm_cv_target_os_type="Win32" ;;
3962 *-*-mingw*)
3963 llvm_cv_target_os_type="MingW" ;;
3964 *-*-haiku*)
3965 llvm_cv_target_os_type="Haiku" ;;
3966 *-*-rtems*)
3967 llvm_cv_target_os_type="RTEMS" ;;
3968 *-*-nacl*)
3969 llvm_cv_target_os_type="NativeClient" ;;
3970 *-unknown-eabi*)
3971 llvm_cv_target_os_type="Freestanding" ;;
3972 *)
3973 llvm_cv_target_os_type="Unknown" ;;
3974 esac
3975 fi
3976 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3977 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3979 if test "$llvm_cv_os_type" = "Unknown" ; then
3980 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3981 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3982 { (exit 1); exit 1; }; }
3983 fi
3985 OS=$llvm_cv_os_type
3987 HOST_OS=$llvm_cv_os_type
3989 TARGET_OS=$llvm_cv_target_os_type
3992 LINKALL=$llvm_cv_link_all_option
3994 NOLINKALL=$llvm_cv_no_link_all_option
3997 case $llvm_cv_platform_type in
3998 Unix)
4000 cat >>confdefs.h <<\_ACEOF
4001 #define LLVM_ON_UNIX 1
4002 _ACEOF
4004 LLVM_ON_UNIX=1
4006 LLVM_ON_WIN32=0
4008 ;;
4009 Win32)
4011 cat >>confdefs.h <<\_ACEOF
4012 #define LLVM_ON_WIN32 1
4013 _ACEOF
4015 LLVM_ON_UNIX=0
4017 LLVM_ON_WIN32=1
4019 ;;
4020 esac
4022 { echo "$as_me:$LINENO: checking target architecture" >&5
4023 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4024 if test "${llvm_cv_target_arch+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027 case $target in
4028 i?86-*) llvm_cv_target_arch="x86" ;;
4029 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4030 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4031 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4032 arm*-*) llvm_cv_target_arch="ARM" ;;
4033 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4034 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4035 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4036 xcore-*) llvm_cv_target_arch="XCore" ;;
4037 msp430-*) llvm_cv_target_arch="MSP430" ;;
4038 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4039 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4040 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4041 *) llvm_cv_target_arch="Unknown" ;;
4042 esac
4043 fi
4044 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4045 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4047 if test "$llvm_cv_target_arch" = "Unknown" ; then
4048 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4049 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4050 fi
4052 case "$llvm_cv_target_arch" in
4053 x86) LLVM_NATIVE_ARCH="X86" ;;
4054 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4055 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4056 esac
4058 ARCH=$llvm_cv_target_arch
4061 case $host in
4062 i?86-*) host_arch="x86" ;;
4063 amd64-* | x86_64-*) host_arch="x86_64" ;;
4064 sparc*-*) host_arch="Sparc" ;;
4065 powerpc*-*) host_arch="PowerPC" ;;
4066 arm*-*) host_arch="ARM" ;;
4067 aarch64*-*) host_arch="AArch64" ;;
4068 mips-* | mips64-*) host_arch="Mips" ;;
4069 mipsel-* | mips64el-*) host_arch="Mips" ;;
4070 xcore-*) host_arch="XCore" ;;
4071 msp430-*) host_arch="MSP430" ;;
4072 hexagon-*) host_arch="Hexagon" ;;
4073 s390x-*) host_arch="SystemZ" ;;
4074 *) host_arch="Unknown" ;;
4075 esac
4077 if test "$host_arch" = "Unknown" ; then
4078 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4079 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4080 fi
4082 HOST_ARCH=$host_arch
4087 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4088 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4089 if test "${ac_cv_path_GREP+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092 # Extract the first word of "grep ggrep" to use in msg output
4093 if test -z "$GREP"; then
4094 set dummy grep ggrep; ac_prog_name=$2
4095 if test "${ac_cv_path_GREP+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098 ac_path_GREP_found=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4102 do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_prog in grep ggrep; do
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4108 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4109 # Check for GNU ac_path_GREP and select it if it is found.
4110 # Check for GNU $ac_path_GREP
4111 case `"$ac_path_GREP" --version 2>&1` in
4112 *GNU*)
4113 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4114 *)
4115 ac_count=0
4116 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4117 while :
4118 do
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
4122 echo 'GREP' >> "conftest.nl"
4123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125 ac_count=`expr $ac_count + 1`
4126 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_GREP="$ac_path_GREP"
4129 ac_path_GREP_max=$ac_count
4130 fi
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4133 done
4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135 esac
4138 $ac_path_GREP_found && break 3
4139 done
4140 done
4142 done
4143 IFS=$as_save_IFS
4146 fi
4148 GREP="$ac_cv_path_GREP"
4149 if test -z "$GREP"; then
4150 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4151 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4152 { (exit 1); exit 1; }; }
4153 fi
4155 else
4156 ac_cv_path_GREP=$GREP
4157 fi
4160 fi
4161 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4162 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4163 GREP="$ac_cv_path_GREP"
4166 { echo "$as_me:$LINENO: checking for egrep" >&5
4167 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4168 if test "${ac_cv_path_EGREP+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4172 then ac_cv_path_EGREP="$GREP -E"
4173 else
4174 # Extract the first word of "egrep" to use in msg output
4175 if test -z "$EGREP"; then
4176 set dummy egrep; ac_prog_name=$2
4177 if test "${ac_cv_path_EGREP+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180 ac_path_EGREP_found=false
4181 # Loop through the user's path and test for each of PROGNAME-LIST
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4184 do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_prog in egrep; do
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4190 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4191 # Check for GNU ac_path_EGREP and select it if it is found.
4192 # Check for GNU $ac_path_EGREP
4193 case `"$ac_path_EGREP" --version 2>&1` in
4194 *GNU*)
4195 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4196 *)
4197 ac_count=0
4198 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4199 while :
4200 do
4201 cat "conftest.in" "conftest.in" >"conftest.tmp"
4202 mv "conftest.tmp" "conftest.in"
4203 cp "conftest.in" "conftest.nl"
4204 echo 'EGREP' >> "conftest.nl"
4205 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4207 ac_count=`expr $ac_count + 1`
4208 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4209 # Best one so far, save it but keep looking for a better one
4210 ac_cv_path_EGREP="$ac_path_EGREP"
4211 ac_path_EGREP_max=$ac_count
4212 fi
4213 # 10*(2^10) chars as input seems more than enough
4214 test $ac_count -gt 10 && break
4215 done
4216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4217 esac
4220 $ac_path_EGREP_found && break 3
4221 done
4222 done
4224 done
4225 IFS=$as_save_IFS
4228 fi
4230 EGREP="$ac_cv_path_EGREP"
4231 if test -z "$EGREP"; then
4232 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4233 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4234 { (exit 1); exit 1; }; }
4235 fi
4237 else
4238 ac_cv_path_EGREP=$EGREP
4239 fi
4242 fi
4243 fi
4244 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4245 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4246 EGREP="$ac_cv_path_EGREP"
4249 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4250 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4251 if test "${ac_cv_header_stdc+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #include <stdlib.h>
4261 #include <stdarg.h>
4262 #include <string.h>
4263 #include <float.h>
4265 int
4266 main ()
4267 {
4269 ;
4270 return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4275 case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4288 { (case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_try") 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest.$ac_objext'
4298 { (case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_try") 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 ac_cv_header_stdc=yes
4308 else
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 ac_cv_header_stdc=no
4313 fi
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 if test $ac_cv_header_stdc = yes; then
4318 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4319 cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h. */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 #include <string.h>
4327 _ACEOF
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329 $EGREP "memchr" >/dev/null 2>&1; then
4330 :
4331 else
4332 ac_cv_header_stdc=no
4333 fi
4334 rm -f conftest*
4336 fi
4338 if test $ac_cv_header_stdc = yes; then
4339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4340 cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h. */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 #include <stdlib.h>
4348 _ACEOF
4349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4350 $EGREP "free" >/dev/null 2>&1; then
4351 :
4352 else
4353 ac_cv_header_stdc=no
4354 fi
4355 rm -f conftest*
4357 fi
4359 if test $ac_cv_header_stdc = yes; then
4360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4361 if test "$cross_compiling" = yes; then
4362 :
4363 else
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h. */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 #include <ctype.h>
4371 #include <stdlib.h>
4372 #if ((' ' & 0x0FF) == 0x020)
4373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4375 #else
4376 # define ISLOWER(c) \
4377 (('a' <= (c) && (c) <= 'i') \
4378 || ('j' <= (c) && (c) <= 'r') \
4379 || ('s' <= (c) && (c) <= 'z'))
4380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4381 #endif
4383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4384 int
4385 main ()
4386 {
4387 int i;
4388 for (i = 0; i < 256; i++)
4389 if (XOR (islower (i), ISLOWER (i))
4390 || toupper (i) != TOUPPER (i))
4391 return 2;
4392 return 0;
4393 }
4394 _ACEOF
4395 rm -f conftest$ac_exeext
4396 if { (ac_try="$ac_link"
4397 case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_link") 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4406 { (case "(($ac_try" in
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4409 esac
4410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4411 (eval "$ac_try") 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; }; then
4415 :
4416 else
4417 echo "$as_me: program exited with status $ac_status" >&5
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 ( exit $ac_status )
4422 ac_cv_header_stdc=no
4423 fi
4424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4425 fi
4428 fi
4429 fi
4430 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4431 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4432 if test $ac_cv_header_stdc = yes; then
4434 cat >>confdefs.h <<\_ACEOF
4435 #define STDC_HEADERS 1
4436 _ACEOF
4438 fi
4440 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4450 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4451 inttypes.h stdint.h unistd.h
4452 do
4453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h. */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 $ac_includes_default
4467 #include <$ac_header>
4468 _ACEOF
4469 rm -f conftest.$ac_objext
4470 if { (ac_try="$ac_compile"
4471 case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_compile") 2>conftest.er1
4477 ac_status=$?
4478 grep -v '^ *+' conftest.er1 >conftest.err
4479 rm -f conftest.er1
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4484 { (case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_try") 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497 esac
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499 (eval "$ac_try") 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 eval "$as_ac_Header=yes"
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 eval "$as_ac_Header=no"
4509 fi
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 fi
4513 ac_res=`eval echo '${'$as_ac_Header'}'`
4514 { echo "$as_me:$LINENO: result: $ac_res" >&5
4515 echo "${ECHO_T}$ac_res" >&6; }
4516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4517 cat >>confdefs.h <<_ACEOF
4518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4519 _ACEOF
4521 fi
4523 done
4526 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4527 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4528 if test "${ac_cv_c_bigendian+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 # See if sys/param.h defines the BYTE_ORDER macro.
4532 cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h. */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 #include <sys/types.h>
4539 #include <sys/param.h>
4541 int
4542 main ()
4543 {
4544 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4545 bogus endian macros
4546 #endif
4548 ;
4549 return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest.$ac_objext
4553 if { (ac_try="$ac_compile"
4554 case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557 esac
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_compile") 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4567 { (case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_try") 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; } &&
4576 { ac_try='test -s conftest.$ac_objext'
4577 { (case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580 esac
4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582 (eval "$ac_try") 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 # It does; now see whether it defined to BIG_ENDIAN or not.
4587 cat >conftest.$ac_ext <<_ACEOF
4588 /* confdefs.h. */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4593 #include <sys/types.h>
4594 #include <sys/param.h>
4596 int
4597 main ()
4598 {
4599 #if BYTE_ORDER != BIG_ENDIAN
4600 not big endian
4601 #endif
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.$ac_objext
4608 if { (ac_try="$ac_compile"
4609 case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_compile") 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4622 { (case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4625 esac
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627 (eval "$ac_try") 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest.$ac_objext'
4632 { (case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635 esac
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_try") 2>&5
4638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4641 ac_cv_c_bigendian=yes
4642 else
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4646 ac_cv_c_bigendian=no
4647 fi
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 else
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 # It does not; compile a test program.
4655 if test "$cross_compiling" = yes; then
4656 # try to guess the endianness by grepping values into an object file
4657 ac_cv_c_bigendian=unknown
4658 cat >conftest.$ac_ext <<_ACEOF
4659 /* confdefs.h. */
4660 _ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4665 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4666 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4667 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4668 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4669 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4670 int
4671 main ()
4672 {
4673 _ascii (); _ebcdic ();
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 rm -f conftest.$ac_objext
4679 if { (ac_try="$ac_compile"
4680 case "(($ac_try" in
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4683 esac
4684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685 (eval "$ac_compile") 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4693 { (case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696 esac
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_try") 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; } &&
4702 { ac_try='test -s conftest.$ac_objext'
4703 { (case "(($ac_try" in
4704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705 *) ac_try_echo=$ac_try;;
4706 esac
4707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4708 (eval "$ac_try") 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4713 ac_cv_c_bigendian=yes
4714 fi
4715 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4716 if test "$ac_cv_c_bigendian" = unknown; then
4717 ac_cv_c_bigendian=no
4718 else
4719 # finding both strings is unlikely to happen, but who knows?
4720 ac_cv_c_bigendian=unknown
4721 fi
4722 fi
4723 else
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4728 fi
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 else
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 $ac_includes_default
4739 int
4740 main ()
4741 {
4743 /* Are we little or big endian? From Harbison&Steele. */
4744 union
4745 {
4746 long int l;
4747 char c[sizeof (long int)];
4748 } u;
4749 u.l = 1;
4750 return u.c[sizeof (long int) - 1] == 1;
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest$ac_exeext
4757 if { (ac_try="$ac_link"
4758 case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761 esac
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_link") 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 ac_cv_c_bigendian=no
4777 else
4778 echo "$as_me: program exited with status $ac_status" >&5
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4782 ( exit $ac_status )
4783 ac_cv_c_bigendian=yes
4784 fi
4785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4786 fi
4789 fi
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 fi
4793 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4794 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4795 case $ac_cv_c_bigendian in
4796 yes)
4797 ENDIAN=big
4798 ;;
4799 no)
4800 ENDIAN=little
4801 ;;
4802 *)
4803 { { echo "$as_me:$LINENO: error: unknown endianness
4804 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4805 echo "$as_me: error: unknown endianness
4806 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4807 { (exit 1); exit 1; }; } ;;
4808 esac
4811 if test "$cross_compiling" = yes; then
4812 LLVM_CROSS_COMPILING=1
4815 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4816 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4817 if test "${ac_cv_build_exeext+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4821 ac_cv_build_exeext=.exe
4822 else
4823 ac_build_prefix=${build_alias}-
4825 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4826 set dummy ${ac_build_prefix}gcc; ac_word=$2
4827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4829 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832 if test -n "$BUILD_CC"; then
4833 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4845 fi
4846 done
4847 done
4848 IFS=$as_save_IFS
4850 fi
4851 fi
4852 BUILD_CC=$ac_cv_prog_BUILD_CC
4853 if test -n "$BUILD_CC"; then
4854 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4855 echo "${ECHO_T}$BUILD_CC" >&6; }
4856 else
4857 { echo "$as_me:$LINENO: result: no" >&5
4858 echo "${ECHO_T}no" >&6; }
4859 fi
4862 if test -z "$BUILD_CC"; then
4863 # Extract the first word of "gcc", so it can be a program name with args.
4864 set dummy gcc; ac_word=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 if test -n "$BUILD_CC"; then
4871 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_BUILD_CC="gcc"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4888 fi
4889 fi
4890 BUILD_CC=$ac_cv_prog_BUILD_CC
4891 if test -n "$BUILD_CC"; then
4892 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4893 echo "${ECHO_T}$BUILD_CC" >&6; }
4894 else
4895 { echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6; }
4897 fi
4900 if test -z "$BUILD_CC"; then
4901 # Extract the first word of "cc", so it can be a program name with args.
4902 set dummy cc; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 if test -n "$BUILD_CC"; then
4909 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4910 else
4911 ac_prog_rejected=no
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4920 ac_prog_rejected=yes
4921 continue
4922 fi
4923 ac_cv_prog_BUILD_CC="cc"
4924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4926 fi
4927 done
4928 done
4929 IFS=$as_save_IFS
4931 if test $ac_prog_rejected = yes; then
4932 # We found a bogon in the path, so make sure we never use it.
4933 set dummy $ac_cv_prog_BUILD_CC
4934 shift
4935 if test $# != 0; then
4936 # We chose a different compiler from the bogus one.
4937 # However, it has the same basename, so the bogon will be chosen
4938 # first if we set BUILD_CC to just the basename; use the full file name.
4939 shift
4940 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4941 fi
4942 fi
4943 fi
4944 fi
4945 BUILD_CC=$ac_cv_prog_BUILD_CC
4946 if test -n "$BUILD_CC"; then
4947 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4948 echo "${ECHO_T}$BUILD_CC" >&6; }
4949 else
4950 { echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6; }
4952 fi
4955 fi
4956 fi
4957 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4958 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4959 { (exit 1); exit 1; }; }
4960 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4961 rm -f conftest*
4962 echo 'int main () { return 0; }' > conftest.$ac_ext
4963 ac_cv_build_exeext=
4964 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4965 (eval $ac_build_link) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; then
4969 for file in conftest.*; do
4970 case $file in
4971 *.c | *.o | *.obj | *.dSYM) ;;
4972 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4973 esac
4974 done
4975 else
4976 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4977 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4978 { (exit 1); exit 1; }; }
4979 fi
4980 rm -f conftest*
4981 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4982 fi
4983 fi
4985 BUILD_EXEEXT=""
4986 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4987 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4988 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4989 ac_build_exeext=$BUILD_EXEEXT
4991 ac_build_prefix=${build_alias}-
4992 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4993 set dummy ${ac_build_prefix}g++; ac_word=$2
4994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4996 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999 if test -n "$BUILD_CXX"; then
5000 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5009 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 break 2
5012 fi
5013 done
5014 done
5015 IFS=$as_save_IFS
5017 fi
5018 fi
5019 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5020 if test -n "$BUILD_CXX"; then
5021 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5022 echo "${ECHO_T}$BUILD_CXX" >&6; }
5023 else
5024 { echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6; }
5026 fi
5029 if test -z "$BUILD_CXX"; then
5030 # Extract the first word of "g++", so it can be a program name with args.
5031 set dummy g++; ac_word=$2
5032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5034 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037 if test -n "$BUILD_CXX"; then
5038 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5047 ac_cv_prog_BUILD_CXX="g++"
5048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 break 2
5050 fi
5051 done
5052 done
5053 IFS=$as_save_IFS
5055 fi
5056 fi
5057 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5058 if test -n "$BUILD_CXX"; then
5059 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5060 echo "${ECHO_T}$BUILD_CXX" >&6; }
5061 else
5062 { echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6; }
5064 fi
5067 if test -z "$BUILD_CXX"; then
5068 # Extract the first word of "c++", so it can be a program name with args.
5069 set dummy c++; ac_word=$2
5070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5072 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075 if test -n "$BUILD_CXX"; then
5076 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5077 else
5078 ac_prog_rejected=no
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5081 do
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5087 ac_prog_rejected=yes
5088 continue
5089 fi
5090 ac_cv_prog_BUILD_CXX="c++"
5091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 break 2
5093 fi
5094 done
5095 done
5096 IFS=$as_save_IFS
5098 if test $ac_prog_rejected = yes; then
5099 # We found a bogon in the path, so make sure we never use it.
5100 set dummy $ac_cv_prog_BUILD_CXX
5101 shift
5102 if test $# != 0; then
5103 # We chose a different compiler from the bogus one.
5104 # However, it has the same basename, so the bogon will be chosen
5105 # first if we set BUILD_CXX to just the basename; use the full file name.
5106 shift
5107 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5108 fi
5109 fi
5110 fi
5111 fi
5112 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5113 if test -n "$BUILD_CXX"; then
5114 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5115 echo "${ECHO_T}$BUILD_CXX" >&6; }
5116 else
5117 { echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6; }
5119 fi
5122 fi
5123 fi
5124 else
5125 LLVM_CROSS_COMPILING=0
5127 fi
5129 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5130 cvsbuild="yes"
5131 optimize="no"
5132 CVSBUILD=CVSBUILD=1
5134 else
5135 cvsbuild="no"
5136 optimize="yes"
5137 fi
5140 # Check whether --enable-libcpp was given.
5141 if test "${enable_libcpp+set}" = set; then
5142 enableval=$enable_libcpp;
5143 else
5144 enableval=default
5145 fi
5147 case "$enableval" in
5148 yes) ENABLE_LIBCPP=1
5149 ;;
5150 no) ENABLE_LIBCPP=0
5151 ;;
5152 default) ENABLE_LIBCPP=0
5153 ;;
5154 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5155 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5156 { (exit 1); exit 1; }; } ;;
5157 esac
5159 # Check whether --enable-cxx11 was given.
5160 if test "${enable_cxx11+set}" = set; then
5161 enableval=$enable_cxx11;
5162 else
5163 enableval=default
5164 fi
5166 case "$enableval" in
5167 yes) ENABLE_CXX11=1
5168 ;;
5169 no) ENABLE_CXX11=0
5170 ;;
5171 default) ENABLE_CXX11=0
5172 ;;
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5176 esac
5178 # Check whether --enable-split-dwarf was given.
5179 if test "${enable_split_dwarf+set}" = set; then
5180 enableval=$enable_split_dwarf;
5181 else
5182 enableval=default
5183 fi
5185 case "$enableval" in
5186 yes) ENABLE_SPLIT_DWARF=1
5187 ;;
5188 no) ENABLE_SPLIT_DWARF=0
5189 ;;
5190 default) ENABLE_SPLIT_DWARF=0
5191 ;;
5192 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5194 { (exit 1); exit 1; }; } ;;
5195 esac
5197 clang_arcmt="yes"
5198 # Check whether --enable-clang-arcmt was given.
5199 if test "${enable_clang_arcmt+set}" = set; then
5200 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5201 else
5202 enableval="yes"
5203 fi
5205 case "$enableval" in
5206 yes) ENABLE_CLANG_ARCMT=1
5207 ;;
5208 no) ENABLE_CLANG_ARCMT=0
5209 ;;
5210 default) ENABLE_CLANG_ARCMT=1
5211 ;;
5212 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5213 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5214 { (exit 1); exit 1; }; } ;;
5215 esac
5217 clang_static_analyzer="yes"
5218 # Check whether --enable-clang-static-analyzer was given.
5219 if test "${enable_clang_static_analyzer+set}" = set; then
5220 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5221 else
5222 enableval="yes"
5223 fi
5225 case "$enableval" in
5226 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5227 ;;
5228 no)
5229 if test ${clang_arcmt} != "no" ; then
5230 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
5231 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
5232 { (exit 1); exit 1; }; }
5233 fi
5234 ENABLE_CLANG_STATIC_ANALYZER=0
5236 ;;
5237 default) ENABLE_CLANG_STATIC_ANALYZER=1
5238 ;;
5239 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5240 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5241 { (exit 1); exit 1; }; } ;;
5242 esac
5244 # Check whether --enable-clang-rewriter was given.
5245 if test "${enable_clang_rewriter+set}" = set; then
5246 enableval=$enable_clang_rewriter;
5247 else
5248 enableval="yes"
5249 fi
5251 case "$enableval" in
5252 yes) ENABLE_CLANG_REWRITER=1
5253 ;;
5254 no)
5255 if test ${clang_arcmt} != "no" ; then
5256 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5257 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5258 { (exit 1); exit 1; }; }
5259 fi
5260 if test ${clang_static_analyzer} != "no" ; then
5261 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5262 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5263 { (exit 1); exit 1; }; }
5264 fi
5265 ENABLE_CLANG_REWRITER=0
5267 ;;
5268 default) ENABLE_CLANG_REWRITER=1
5269 ;;
5270 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5271 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5272 { (exit 1); exit 1; }; } ;;
5273 esac
5275 # Check whether --enable-optimized was given.
5276 if test "${enable_optimized+set}" = set; then
5277 enableval=$enable_optimized;
5278 else
5279 enableval=$optimize
5280 fi
5282 if test ${enableval} = "no" ; then
5283 ENABLE_OPTIMIZED=
5285 else
5286 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5288 fi
5290 # Check whether --enable-profiling was given.
5291 if test "${enable_profiling+set}" = set; then
5292 enableval=$enable_profiling;
5293 else
5294 enableval="no"
5295 fi
5297 if test ${enableval} = "no" ; then
5298 ENABLE_PROFILING=
5300 else
5301 ENABLE_PROFILING=ENABLE_PROFILING=1
5303 fi
5305 # Check whether --enable-assertions was given.
5306 if test "${enable_assertions+set}" = set; then
5307 enableval=$enable_assertions;
5308 else
5309 enableval="yes"
5310 fi
5312 if test ${enableval} = "yes" ; then
5313 DISABLE_ASSERTIONS=
5315 else
5316 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5318 fi
5320 # Check whether --enable-werror was given.
5321 if test "${enable_werror+set}" = set; then
5322 enableval=$enable_werror;
5323 else
5324 enableval="no"
5325 fi
5327 case "$enableval" in
5328 yes) ENABLE_WERROR=1
5329 ;;
5330 no) ENABLE_WERROR=0
5331 ;;
5332 default) ENABLE_WERROR=0
5333 ;;
5334 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5335 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5336 { (exit 1); exit 1; }; } ;;
5337 esac
5339 # Check whether --enable-expensive-checks was given.
5340 if test "${enable_expensive_checks+set}" = set; then
5341 enableval=$enable_expensive_checks;
5342 else
5343 enableval="no"
5344 fi
5346 if test ${enableval} = "yes" ; then
5347 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5349 EXPENSIVE_CHECKS=yes
5351 else
5352 ENABLE_EXPENSIVE_CHECKS=
5354 EXPENSIVE_CHECKS=no
5356 fi
5358 # Check whether --enable-debug-runtime was given.
5359 if test "${enable_debug_runtime+set}" = set; then
5360 enableval=$enable_debug_runtime;
5361 else
5362 enableval=no
5363 fi
5365 if test ${enableval} = "no" ; then
5366 DEBUG_RUNTIME=
5368 else
5369 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5371 fi
5373 # Check whether --enable-debug-symbols was given.
5374 if test "${enable_debug_symbols+set}" = set; then
5375 enableval=$enable_debug_symbols;
5376 else
5377 enableval=no
5378 fi
5380 if test ${enableval} = "no" ; then
5381 DEBUG_SYMBOLS=
5383 else
5384 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5386 fi
5388 # Check whether --enable-keep-symbols was given.
5389 if test "${enable_keep_symbols+set}" = set; then
5390 enableval=$enable_keep_symbols;
5391 else
5392 enableval=no
5393 fi
5395 if test ${enableval} = "no" ; then
5396 KEEP_SYMBOLS=
5398 else
5399 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5401 fi
5403 # Check whether --enable-jit was given.
5404 if test "${enable_jit+set}" = set; then
5405 enableval=$enable_jit;
5406 else
5407 enableval=default
5408 fi
5410 if test ${enableval} = "no"
5411 then
5412 JIT=
5414 else
5415 case "$llvm_cv_target_arch" in
5416 x86) TARGET_HAS_JIT=1
5417 ;;
5418 Sparc) TARGET_HAS_JIT=0
5419 ;;
5420 PowerPC) TARGET_HAS_JIT=1
5421 ;;
5422 x86_64) TARGET_HAS_JIT=1
5423 ;;
5424 ARM) TARGET_HAS_JIT=1
5425 ;;
5426 AArch64) TARGET_HAS_JIT=0
5427 ;;
5428 Mips) TARGET_HAS_JIT=1
5429 ;;
5430 XCore) TARGET_HAS_JIT=0
5431 ;;
5432 MSP430) TARGET_HAS_JIT=0
5433 ;;
5434 Hexagon) TARGET_HAS_JIT=0
5435 ;;
5436 NVPTX) TARGET_HAS_JIT=0
5437 ;;
5438 SystemZ) TARGET_HAS_JIT=1
5439 ;;
5440 *) TARGET_HAS_JIT=0
5441 ;;
5442 esac
5443 fi
5445 # Check whether --enable-docs was given.
5446 if test "${enable_docs+set}" = set; then
5447 enableval=$enable_docs;
5448 else
5449 enableval=default
5450 fi
5452 case "$enableval" in
5453 yes) ENABLE_DOCS=1
5454 ;;
5455 no) ENABLE_DOCS=0
5456 ;;
5457 default) ENABLE_DOCS=1
5458 ;;
5459 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5460 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5461 { (exit 1); exit 1; }; } ;;
5462 esac
5464 # Check whether --enable-doxygen was given.
5465 if test "${enable_doxygen+set}" = set; then
5466 enableval=$enable_doxygen;
5467 else
5468 enableval=default
5469 fi
5471 case "$enableval" in
5472 yes) ENABLE_DOXYGEN=1
5473 ;;
5474 no) ENABLE_DOXYGEN=0
5475 ;;
5476 default) ENABLE_DOXYGEN=0
5477 ;;
5478 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5479 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5480 { (exit 1); exit 1; }; } ;;
5481 esac
5483 # Check whether --enable-threads was given.
5484 if test "${enable_threads+set}" = set; then
5485 enableval=$enable_threads;
5486 else
5487 enableval=default
5488 fi
5490 case "$enableval" in
5491 yes) LLVM_ENABLE_THREADS=1
5492 ;;
5493 no) LLVM_ENABLE_THREADS=0
5494 ;;
5495 default) LLVM_ENABLE_THREADS=1
5496 ;;
5497 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5498 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5499 { (exit 1); exit 1; }; } ;;
5500 esac
5502 cat >>confdefs.h <<_ACEOF
5503 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5504 _ACEOF
5507 # Check whether --enable-pthreads was given.
5508 if test "${enable_pthreads+set}" = set; then
5509 enableval=$enable_pthreads;
5510 else
5511 enableval=default
5512 fi
5514 case "$enableval" in
5515 yes) ENABLE_PTHREADS=1
5516 ;;
5517 no) ENABLE_PTHREADS=0
5518 ;;
5519 default) ENABLE_PTHREADS=1
5520 ;;
5521 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5522 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5523 { (exit 1); exit 1; }; } ;;
5524 esac
5526 # Check whether --enable-zlib was given.
5527 if test "${enable_zlib+set}" = set; then
5528 enableval=$enable_zlib;
5529 else
5530 enableval=default
5531 fi
5533 case "$enableval" in
5534 yes) LLVM_ENABLE_ZLIB=1
5535 ;;
5536 no) LLVM_ENABLE_ZLIB=0
5537 ;;
5538 default) LLVM_ENABLE_ZLIB=1
5539 ;;
5540 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5541 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5542 { (exit 1); exit 1; }; } ;;
5543 esac
5545 cat >>confdefs.h <<_ACEOF
5546 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5547 _ACEOF
5550 # Check whether --enable-pic was given.
5551 if test "${enable_pic+set}" = set; then
5552 enableval=$enable_pic;
5553 else
5554 enableval=default
5555 fi
5557 case "$enableval" in
5558 yes) ENABLE_PIC=1
5559 ;;
5560 no) ENABLE_PIC=0
5561 ;;
5562 default) ENABLE_PIC=1
5563 ;;
5564 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5565 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5566 { (exit 1); exit 1; }; } ;;
5567 esac
5569 cat >>confdefs.h <<_ACEOF
5570 #define ENABLE_PIC $ENABLE_PIC
5571 _ACEOF
5574 # Check whether --enable-shared was given.
5575 if test "${enable_shared+set}" = set; then
5576 enableval=$enable_shared;
5577 else
5578 enableval=default
5579 fi
5581 case "$enableval" in
5582 yes) ENABLE_SHARED=1
5583 ;;
5584 no) ENABLE_SHARED=0
5585 ;;
5586 default) ENABLE_SHARED=0
5587 ;;
5588 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5589 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5590 { (exit 1); exit 1; }; } ;;
5591 esac
5593 # Check whether --enable-embed-stdcxx was given.
5594 if test "${enable_embed_stdcxx+set}" = set; then
5595 enableval=$enable_embed_stdcxx;
5596 else
5597 enableval=default
5598 fi
5600 case "$enableval" in
5601 yes) ENABLE_EMBED_STDCXX=1
5602 ;;
5603 no) ENABLE_EMBED_STDCXX=0
5604 ;;
5605 default) ENABLE_EMBED_STDCXX=0
5606 ;;
5607 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5608 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5609 { (exit 1); exit 1; }; } ;;
5610 esac
5612 # Check whether --enable-timestamps was given.
5613 if test "${enable_timestamps+set}" = set; then
5614 enableval=$enable_timestamps;
5615 else
5616 enableval=default
5617 fi
5619 case "$enableval" in
5620 yes) ENABLE_TIMESTAMPS=1
5621 ;;
5622 no) ENABLE_TIMESTAMPS=0
5623 ;;
5624 default) ENABLE_TIMESTAMPS=1
5625 ;;
5626 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5627 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5628 { (exit 1); exit 1; }; } ;;
5629 esac
5631 cat >>confdefs.h <<_ACEOF
5632 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5633 _ACEOF
5636 # Check whether --enable-backtraces was given.
5637 if test "${enable_backtraces+set}" = set; then
5638 enableval=$enable_backtraces; case "$enableval" in
5639 yes) llvm_cv_enable_backtraces="yes" ;;
5640 no) llvm_cv_enable_backtraces="no" ;;
5641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5642 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5643 { (exit 1); exit 1; }; } ;;
5644 esac
5645 else
5646 llvm_cv_enable_backtraces="yes"
5647 fi
5649 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5651 cat >>confdefs.h <<\_ACEOF
5652 #define ENABLE_BACKTRACES 1
5653 _ACEOF
5655 fi
5657 # Check whether --enable-crash-overrides was given.
5658 if test "${enable_crash_overrides+set}" = set; then
5659 enableval=$enable_crash_overrides; case "$enableval" in
5660 yes) llvm_cv_enable_crash_overrides="yes" ;;
5661 no) llvm_cv_enable_crash_overrides="no" ;;
5662 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5663 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5664 { (exit 1); exit 1; }; } ;;
5665 esac
5666 else
5667 llvm_cv_enable_crash_overrides="yes"
5668 fi
5670 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5672 cat >>confdefs.h <<\_ACEOF
5673 #define ENABLE_CRASH_OVERRIDES 1
5674 _ACEOF
5676 fi
5678 TARGETS_TO_BUILD=""
5679 # Check whether --enable-targets was given.
5680 if test "${enable_targets+set}" = set; then
5681 enableval=$enable_targets;
5682 else
5683 enableval=all
5684 fi
5686 if test "$enableval" = host-only ; then
5687 enableval=host
5688 fi
5689 case "$enableval" in
5690 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5691 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5692 case "$a_target" in
5693 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5694 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5695 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5696 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5697 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5698 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5699 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5700 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5701 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5702 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5703 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5704 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5705 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5706 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5707 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5708 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5709 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5710 host) case "$llvm_cv_target_arch" in
5711 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5712 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5713 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5714 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5715 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5716 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5717 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5718 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5719 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5720 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5721 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5722 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5723 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5724 echo "$as_me: error: Can not set target to build" >&2;}
5725 { (exit 1); exit 1; }; } ;;
5726 esac ;;
5727 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5728 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5729 { (exit 1); exit 1; }; } ;;
5730 esac
5731 done
5732 ;;
5733 esac
5735 # Check whether --enable-experimental-targets was given.
5736 if test "${enable_experimental_targets+set}" = set; then
5737 enableval=$enable_experimental_targets;
5738 else
5739 enableval=disable
5740 fi
5743 if test ${enableval} != "disable"
5744 then
5745 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5746 fi
5748 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5751 for a_target in $TARGETS_TO_BUILD; do
5752 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5754 cat >>confdefs.h <<_ACEOF
5755 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5756 _ACEOF
5758 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5759 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5760 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5761 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5762 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5763 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5764 fi
5765 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5766 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5767 fi
5769 cat >>confdefs.h <<_ACEOF
5770 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5771 _ACEOF
5774 cat >>confdefs.h <<_ACEOF
5775 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5776 _ACEOF
5779 cat >>confdefs.h <<_ACEOF
5780 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5781 _ACEOF
5784 cat >>confdefs.h <<_ACEOF
5785 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5786 _ACEOF
5788 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5790 cat >>confdefs.h <<_ACEOF
5791 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5792 _ACEOF
5794 fi
5795 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5797 cat >>confdefs.h <<_ACEOF
5798 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5799 _ACEOF
5801 fi
5802 fi
5803 done
5805 LLVM_ENUM_TARGETS=""
5806 LLVM_ENUM_ASM_PRINTERS=""
5807 LLVM_ENUM_ASM_PARSERS=""
5808 LLVM_ENUM_DISASSEMBLERS=""
5809 for target_to_build in $TARGETS_TO_BUILD; do
5810 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5811 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5812 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5813 fi
5814 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5815 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5816 fi
5817 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5818 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5819 fi
5820 done
5827 # Check whether --with-optimize-option was given.
5828 if test "${with_optimize_option+set}" = set; then
5829 withval=$with_optimize_option;
5830 else
5831 withval=default
5832 fi
5834 { echo "$as_me:$LINENO: checking optimization flags" >&5
5835 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5836 case "$withval" in
5837 default)
5838 case "$llvm_cv_os_type" in
5839 FreeBSD) optimize_option=-O2 ;;
5840 MingW) optimize_option=-O2 ;;
5841 *) optimize_option=-O3 ;;
5842 esac ;;
5843 *) optimize_option="$withval" ;;
5844 esac
5845 OPTIMIZE_OPTION=$optimize_option
5847 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5848 echo "${ECHO_T}$optimize_option" >&6; }
5851 # Check whether --with-extra-options was given.
5852 if test "${with_extra_options+set}" = set; then
5853 withval=$with_extra_options;
5854 else
5855 withval=default
5856 fi
5858 case "$withval" in
5859 default) EXTRA_OPTIONS= ;;
5860 *) EXTRA_OPTIONS=$withval ;;
5861 esac
5862 EXTRA_OPTIONS=$EXTRA_OPTIONS
5866 # Check whether --with-extra-ld-options was given.
5867 if test "${with_extra_ld_options+set}" = set; then
5868 withval=$with_extra_ld_options;
5869 else
5870 withval=default
5871 fi
5873 case "$withval" in
5874 default) EXTRA_LD_OPTIONS= ;;
5875 *) EXTRA_LD_OPTIONS=$withval ;;
5876 esac
5877 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5880 # Check whether --enable-bindings was given.
5881 if test "${enable_bindings+set}" = set; then
5882 enableval=$enable_bindings;
5883 else
5884 enableval=default
5885 fi
5887 BINDINGS_TO_BUILD=""
5888 case "$enableval" in
5889 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5890 all ) BINDINGS_TO_BUILD="ocaml" ;;
5891 none | no) BINDINGS_TO_BUILD="" ;;
5892 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5893 case "$a_binding" in
5894 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5895 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5896 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5897 { (exit 1); exit 1; }; } ;;
5898 esac
5899 done
5900 ;;
5901 esac
5904 # Check whether --with-ocaml-libdir was given.
5905 if test "${with_ocaml_libdir+set}" = set; then
5906 withval=$with_ocaml_libdir;
5907 else
5908 withval=auto
5909 fi
5911 case "$withval" in
5912 auto) with_ocaml_libdir="$withval" ;;
5913 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5914 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5915 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5916 { (exit 1); exit 1; }; } ;;
5917 esac
5920 # Check whether --with-clang-srcdir was given.
5921 if test "${with_clang_srcdir+set}" = set; then
5922 withval=$with_clang_srcdir;
5923 else
5924 withval="-"
5925 fi
5927 case "$withval" in
5928 -) clang_src_root="" ;;
5929 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5930 *) clang_src_root="$ac_pwd/$withval" ;;
5931 esac
5932 CLANG_SRC_ROOT=$clang_src_root
5936 # Check whether --with-clang-resource-dir was given.
5937 if test "${with_clang_resource_dir+set}" = set; then
5938 withval=$with_clang_resource_dir;
5939 else
5940 withval=""
5941 fi
5944 cat >>confdefs.h <<_ACEOF
5945 #define CLANG_RESOURCE_DIR "$withval"
5946 _ACEOF
5950 # Check whether --with-c-include-dirs was given.
5951 if test "${with_c_include_dirs+set}" = set; then
5952 withval=$with_c_include_dirs;
5953 else
5954 withval=""
5955 fi
5958 cat >>confdefs.h <<_ACEOF
5959 #define C_INCLUDE_DIRS "$withval"
5960 _ACEOF
5963 # Clang normally uses the system c++ headers and libraries. With this option,
5964 # clang will use the ones provided by a gcc installation instead. This option should
5965 # be passed the same value that was used with --prefix when configuring gcc.
5967 # Check whether --with-gcc-toolchain was given.
5968 if test "${with_gcc_toolchain+set}" = set; then
5969 withval=$with_gcc_toolchain;
5970 else
5971 withval=""
5972 fi
5975 cat >>confdefs.h <<_ACEOF
5976 #define GCC_INSTALL_PREFIX "$withval"
5977 _ACEOF
5981 # Check whether --with-default-sysroot was given.
5982 if test "${with_default_sysroot+set}" = set; then
5983 withval=$with_default_sysroot;
5984 else
5985 withval=""
5986 fi
5989 cat >>confdefs.h <<_ACEOF
5990 #define DEFAULT_SYSROOT "$withval"
5991 _ACEOF
5995 # Check whether --with-binutils-include was given.
5996 if test "${with_binutils_include+set}" = set; then
5997 withval=$with_binutils_include;
5998 else
5999 withval=default
6000 fi
6002 case "$withval" in
6003 default) WITH_BINUTILS_INCDIR=default ;;
6004 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
6005 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
6006 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
6007 { (exit 1); exit 1; }; } ;;
6008 esac
6009 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
6010 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
6012 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
6013 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
6014 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
6015 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
6016 { (exit 1); exit 1; }; };
6017 fi
6018 fi
6021 # Check whether --with-bug-report-url was given.
6022 if test "${with_bug_report_url+set}" = set; then
6023 withval=$with_bug_report_url;
6024 else
6025 withval="http://llvm.org/bugs/"
6026 fi
6029 cat >>confdefs.h <<_ACEOF
6030 #define BUG_REPORT_URL "$withval"
6031 _ACEOF
6034 # Check whether --enable-terminfo was given.
6035 if test "${enable_terminfo+set}" = set; then
6036 enableval=$enable_terminfo; case "$enableval" in
6037 yes) llvm_cv_enable_terminfo="yes" ;;
6038 no) llvm_cv_enable_terminfo="no" ;;
6039 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6040 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6041 { (exit 1); exit 1; }; } ;;
6042 esac
6043 else
6044 llvm_cv_enable_terminfo="yes"
6045 fi
6048 # Check whether --enable-libffi was given.
6049 if test "${enable_libffi+set}" = set; then
6050 enableval=$enable_libffi; case "$enableval" in
6051 yes) llvm_cv_enable_libffi="yes" ;;
6052 no) llvm_cv_enable_libffi="no" ;;
6053 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6054 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6055 { (exit 1); exit 1; }; } ;;
6056 esac
6057 else
6058 llvm_cv_enable_libffi=no
6059 fi
6063 # Check whether --with-internal-prefix was given.
6064 if test "${with_internal_prefix+set}" = set; then
6065 withval=$with_internal_prefix;
6066 else
6067 withval=""
6068 fi
6070 INTERNAL_PREFIX=$withval
6074 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6075 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6076 if test "${lt_cv_path_NM+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 if test -n "$NM"; then
6080 # Let the user override the test.
6081 lt_cv_path_NM="$NM"
6082 else
6083 lt_nm_to_check="${ac_tool_prefix}nm"
6084 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6085 lt_nm_to_check="$lt_nm_to_check nm"
6086 fi
6087 for lt_tmp_nm in $lt_nm_to_check; do
6088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6089 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6090 IFS="$lt_save_ifs"
6091 test -z "$ac_dir" && ac_dir=.
6092 tmp_nm="$ac_dir/$lt_tmp_nm"
6093 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6094 # Check to see if the nm accepts a BSD-compat flag.
6095 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6096 # nm: unknown option "B" ignored
6097 # Tru64's nm complains that /dev/null is an invalid object file
6098 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6099 */dev/null* | *'Invalid file or object type'*)
6100 lt_cv_path_NM="$tmp_nm -B"
6101 break
6102 ;;
6103 *)
6104 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6105 */dev/null*)
6106 lt_cv_path_NM="$tmp_nm -p"
6107 break
6108 ;;
6109 *)
6110 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6111 continue # so that we can try to find one that supports BSD flags
6112 ;;
6113 esac
6114 ;;
6115 esac
6116 fi
6117 done
6118 IFS="$lt_save_ifs"
6119 done
6120 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6121 fi
6122 fi
6123 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6124 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6125 NM="$lt_cv_path_NM"
6129 { echo "$as_me:$LINENO: checking for GNU make" >&5
6130 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6131 if test "${llvm_cv_gnu_make_command+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134 llvm_cv_gnu_make_command=''
6135 for a in "$MAKE" make gmake gnumake ; do
6136 if test -z "$a" ; then continue ; fi ;
6137 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6138 then
6139 llvm_cv_gnu_make_command=$a ;
6140 break;
6141 fi
6142 done
6143 fi
6144 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6145 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6146 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6147 ifGNUmake='' ;
6148 else
6149 ifGNUmake='#' ;
6150 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6151 echo "${ECHO_T}\"Not found\"" >&6; };
6152 fi
6155 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6156 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6157 LN_S=$as_ln_s
6158 if test "$LN_S" = "ln -s"; then
6159 { echo "$as_me:$LINENO: result: yes" >&5
6160 echo "${ECHO_T}yes" >&6; }
6161 else
6162 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6163 echo "${ECHO_T}no, using $LN_S" >&6; }
6164 fi
6166 # Extract the first word of "cmp", so it can be a program name with args.
6167 set dummy cmp; ac_word=$2
6168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6170 if test "${ac_cv_path_CMP+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173 case $CMP in
6174 [\\/]* | ?:[\\/]*)
6175 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6176 ;;
6177 *)
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189 done
6190 done
6191 IFS=$as_save_IFS
6193 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6194 ;;
6195 esac
6196 fi
6197 CMP=$ac_cv_path_CMP
6198 if test -n "$CMP"; then
6199 { echo "$as_me:$LINENO: result: $CMP" >&5
6200 echo "${ECHO_T}$CMP" >&6; }
6201 else
6202 { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6204 fi
6207 # Extract the first word of "cp", so it can be a program name with args.
6208 set dummy cp; ac_word=$2
6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211 if test "${ac_cv_path_CP+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214 case $CP in
6215 [\\/]* | ?:[\\/]*)
6216 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6217 ;;
6218 *)
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6234 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6235 ;;
6236 esac
6237 fi
6238 CP=$ac_cv_path_CP
6239 if test -n "$CP"; then
6240 { echo "$as_me:$LINENO: result: $CP" >&5
6241 echo "${ECHO_T}$CP" >&6; }
6242 else
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6245 fi
6248 # Extract the first word of "date", so it can be a program name with args.
6249 set dummy date; ac_word=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_path_DATE+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 case $DATE in
6256 [\\/]* | ?:[\\/]*)
6257 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6258 ;;
6259 *)
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6270 fi
6271 done
6272 done
6273 IFS=$as_save_IFS
6275 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6276 ;;
6277 esac
6278 fi
6279 DATE=$ac_cv_path_DATE
6280 if test -n "$DATE"; then
6281 { echo "$as_me:$LINENO: result: $DATE" >&5
6282 echo "${ECHO_T}$DATE" >&6; }
6283 else
6284 { echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6; }
6286 fi
6289 # Extract the first word of "find", so it can be a program name with args.
6290 set dummy find; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_path_FIND+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296 case $FIND in
6297 [\\/]* | ?:[\\/]*)
6298 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6299 ;;
6300 *)
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 break 2
6311 fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6316 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6317 ;;
6318 esac
6319 fi
6320 FIND=$ac_cv_path_FIND
6321 if test -n "$FIND"; then
6322 { echo "$as_me:$LINENO: result: $FIND" >&5
6323 echo "${ECHO_T}$FIND" >&6; }
6324 else
6325 { echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6; }
6327 fi
6330 # Extract the first word of "grep", so it can be a program name with args.
6331 set dummy grep; ac_word=$2
6332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6334 if test "${ac_cv_path_GREP+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337 case $GREP in
6338 [\\/]* | ?:[\\/]*)
6339 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6340 ;;
6341 *)
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6357 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6358 ;;
6359 esac
6360 fi
6361 GREP=$ac_cv_path_GREP
6362 if test -n "$GREP"; then
6363 { echo "$as_me:$LINENO: result: $GREP" >&5
6364 echo "${ECHO_T}$GREP" >&6; }
6365 else
6366 { echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6; }
6368 fi
6371 # Extract the first word of "mkdir", so it can be a program name with args.
6372 set dummy mkdir; ac_word=$2
6373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6375 if test "${ac_cv_path_MKDIR+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378 case $MKDIR in
6379 [\\/]* | ?:[\\/]*)
6380 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6381 ;;
6382 *)
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394 done
6395 done
6396 IFS=$as_save_IFS
6398 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6399 ;;
6400 esac
6401 fi
6402 MKDIR=$ac_cv_path_MKDIR
6403 if test -n "$MKDIR"; then
6404 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6405 echo "${ECHO_T}$MKDIR" >&6; }
6406 else
6407 { echo "$as_me:$LINENO: result: no" >&5
6408 echo "${ECHO_T}no" >&6; }
6409 fi
6412 # Extract the first word of "mv", so it can be a program name with args.
6413 set dummy mv; ac_word=$2
6414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416 if test "${ac_cv_path_MV+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419 case $MV in
6420 [\\/]* | ?:[\\/]*)
6421 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6422 ;;
6423 *)
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6426 do
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435 done
6436 done
6437 IFS=$as_save_IFS
6439 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6440 ;;
6441 esac
6442 fi
6443 MV=$ac_cv_path_MV
6444 if test -n "$MV"; then
6445 { echo "$as_me:$LINENO: result: $MV" >&5
6446 echo "${ECHO_T}$MV" >&6; }
6447 else
6448 { echo "$as_me:$LINENO: result: no" >&5
6449 echo "${ECHO_T}no" >&6; }
6450 fi
6453 if test -n "$ac_tool_prefix"; then
6454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458 if test "${ac_cv_prog_RANLIB+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461 if test -n "$RANLIB"; then
6462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6474 fi
6475 done
6476 done
6477 IFS=$as_save_IFS
6479 fi
6480 fi
6481 RANLIB=$ac_cv_prog_RANLIB
6482 if test -n "$RANLIB"; then
6483 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6484 echo "${ECHO_T}$RANLIB" >&6; }
6485 else
6486 { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6488 fi
6491 fi
6492 if test -z "$ac_cv_prog_RANLIB"; then
6493 ac_ct_RANLIB=$RANLIB
6494 # Extract the first word of "ranlib", so it can be a program name with args.
6495 set dummy ranlib; ac_word=$2
6496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 else
6501 if test -n "$ac_ct_RANLIB"; then
6502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_prog_ac_ct_RANLIB="ranlib"
6512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6514 fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6519 fi
6520 fi
6521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6522 if test -n "$ac_ct_RANLIB"; then
6523 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6524 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6525 else
6526 { echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6; }
6528 fi
6530 if test "x$ac_ct_RANLIB" = x; then
6531 RANLIB=":"
6532 else
6533 case $cross_compiling:$ac_tool_warned in
6534 yes:)
6535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6536 whose name does not start with the host triplet. If you think this
6537 configuration is useful to you, please write to autoconf@gnu.org." >&5
6538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6539 whose name does not start with the host triplet. If you think this
6540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6541 ac_tool_warned=yes ;;
6542 esac
6543 RANLIB=$ac_ct_RANLIB
6544 fi
6545 else
6546 RANLIB="$ac_cv_prog_RANLIB"
6547 fi
6549 if test -n "$ac_tool_prefix"; then
6550 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}ar; ac_word=$2
6552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554 if test "${ac_cv_prog_AR+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557 if test -n "$AR"; then
6558 ac_cv_prog_AR="$AR" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6567 ac_cv_prog_AR="${ac_tool_prefix}ar"
6568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 break 2
6570 fi
6571 done
6572 done
6573 IFS=$as_save_IFS
6575 fi
6576 fi
6577 AR=$ac_cv_prog_AR
6578 if test -n "$AR"; then
6579 { echo "$as_me:$LINENO: result: $AR" >&5
6580 echo "${ECHO_T}$AR" >&6; }
6581 else
6582 { echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6; }
6584 fi
6587 fi
6588 if test -z "$ac_cv_prog_AR"; then
6589 ac_ct_AR=$AR
6590 # Extract the first word of "ar", so it can be a program name with args.
6591 set dummy ar; ac_word=$2
6592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6594 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597 if test -n "$ac_ct_AR"; then
6598 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6607 ac_cv_prog_ac_ct_AR="ar"
6608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611 done
6612 done
6613 IFS=$as_save_IFS
6615 fi
6616 fi
6617 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6618 if test -n "$ac_ct_AR"; then
6619 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6620 echo "${ECHO_T}$ac_ct_AR" >&6; }
6621 else
6622 { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6624 fi
6626 if test "x$ac_ct_AR" = x; then
6627 AR="false"
6628 else
6629 case $cross_compiling:$ac_tool_warned in
6630 yes:)
6631 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6632 whose name does not start with the host triplet. If you think this
6633 configuration is useful to you, please write to autoconf@gnu.org." >&5
6634 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6635 whose name does not start with the host triplet. If you think this
6636 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6637 ac_tool_warned=yes ;;
6638 esac
6639 AR=$ac_ct_AR
6640 fi
6641 else
6642 AR="$ac_cv_prog_AR"
6643 fi
6645 # Extract the first word of "rm", so it can be a program name with args.
6646 set dummy rm; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_path_RM+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652 case $RM in
6653 [\\/]* | ?:[\\/]*)
6654 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6655 ;;
6656 *)
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6672 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6673 ;;
6674 esac
6675 fi
6676 RM=$ac_cv_path_RM
6677 if test -n "$RM"; then
6678 { echo "$as_me:$LINENO: result: $RM" >&5
6679 echo "${ECHO_T}$RM" >&6; }
6680 else
6681 { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6683 fi
6686 # Extract the first word of "sed", so it can be a program name with args.
6687 set dummy sed; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_path_SED+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693 case $SED in
6694 [\\/]* | ?:[\\/]*)
6695 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6696 ;;
6697 *)
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709 done
6710 done
6711 IFS=$as_save_IFS
6713 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6714 ;;
6715 esac
6716 fi
6717 SED=$ac_cv_path_SED
6718 if test -n "$SED"; then
6719 { echo "$as_me:$LINENO: result: $SED" >&5
6720 echo "${ECHO_T}$SED" >&6; }
6721 else
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6724 fi
6727 # Extract the first word of "tar", so it can be a program name with args.
6728 set dummy tar; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_TAR+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 case $TAR in
6735 [\\/]* | ?:[\\/]*)
6736 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6737 ;;
6738 *)
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6749 fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6754 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6755 ;;
6756 esac
6757 fi
6758 TAR=$ac_cv_path_TAR
6759 if test -n "$TAR"; then
6760 { echo "$as_me:$LINENO: result: $TAR" >&5
6761 echo "${ECHO_T}$TAR" >&6; }
6762 else
6763 { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6765 fi
6768 # Extract the first word of "pwd", so it can be a program name with args.
6769 set dummy pwd; ac_word=$2
6770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772 if test "${ac_cv_path_BINPWD+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775 case $BINPWD in
6776 [\\/]* | ?:[\\/]*)
6777 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6778 ;;
6779 *)
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6795 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6796 ;;
6797 esac
6798 fi
6799 BINPWD=$ac_cv_path_BINPWD
6800 if test -n "$BINPWD"; then
6801 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6802 echo "${ECHO_T}$BINPWD" >&6; }
6803 else
6804 { echo "$as_me:$LINENO: result: no" >&5
6805 echo "${ECHO_T}no" >&6; }
6806 fi
6810 # Extract the first word of "Graphviz", so it can be a program name with args.
6811 set dummy Graphviz; ac_word=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817 case $GRAPHVIZ in
6818 [\\/]* | ?:[\\/]*)
6819 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6820 ;;
6821 *)
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6837 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6838 ;;
6839 esac
6840 fi
6841 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6842 if test -n "$GRAPHVIZ"; then
6843 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6844 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6845 else
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6848 fi
6851 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6853 cat >>confdefs.h <<\_ACEOF
6854 #define HAVE_GRAPHVIZ 1
6855 _ACEOF
6857 if test "$llvm_cv_os_type" = "MingW" ; then
6858 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6859 fi
6861 cat >>confdefs.h <<_ACEOF
6862 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6863 _ACEOF
6865 fi
6866 # Extract the first word of "dot", so it can be a program name with args.
6867 set dummy dot; ac_word=$2
6868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870 if test "${ac_cv_path_DOT+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873 case $DOT in
6874 [\\/]* | ?:[\\/]*)
6875 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6876 ;;
6877 *)
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6888 fi
6889 done
6890 done
6891 IFS=$as_save_IFS
6893 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6894 ;;
6895 esac
6896 fi
6897 DOT=$ac_cv_path_DOT
6898 if test -n "$DOT"; then
6899 { echo "$as_me:$LINENO: result: $DOT" >&5
6900 echo "${ECHO_T}$DOT" >&6; }
6901 else
6902 { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6904 fi
6907 if test "$DOT" != "echo dot" ; then
6909 cat >>confdefs.h <<\_ACEOF
6910 #define HAVE_DOT 1
6911 _ACEOF
6913 if test "$llvm_cv_os_type" = "MingW" ; then
6914 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6915 fi
6917 cat >>confdefs.h <<_ACEOF
6918 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6919 _ACEOF
6921 fi
6922 # Extract the first word of "fdp", so it can be a program name with args.
6923 set dummy fdp; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_path_FDP+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929 case $FDP in
6930 [\\/]* | ?:[\\/]*)
6931 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6932 ;;
6933 *)
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6949 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6950 ;;
6951 esac
6952 fi
6953 FDP=$ac_cv_path_FDP
6954 if test -n "$FDP"; then
6955 { echo "$as_me:$LINENO: result: $FDP" >&5
6956 echo "${ECHO_T}$FDP" >&6; }
6957 else
6958 { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6960 fi
6963 if test "$FDP" != "echo fdp" ; then
6965 cat >>confdefs.h <<\_ACEOF
6966 #define HAVE_FDP 1
6967 _ACEOF
6969 if test "$llvm_cv_os_type" = "MingW" ; then
6970 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6971 fi
6973 cat >>confdefs.h <<_ACEOF
6974 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6975 _ACEOF
6977 fi
6978 # Extract the first word of "neato", so it can be a program name with args.
6979 set dummy neato; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_path_NEATO+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 case $NEATO in
6986 [\\/]* | ?:[\\/]*)
6987 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6988 ;;
6989 *)
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 break 2
7000 fi
7001 done
7002 done
7003 IFS=$as_save_IFS
7005 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7006 ;;
7007 esac
7008 fi
7009 NEATO=$ac_cv_path_NEATO
7010 if test -n "$NEATO"; then
7011 { echo "$as_me:$LINENO: result: $NEATO" >&5
7012 echo "${ECHO_T}$NEATO" >&6; }
7013 else
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7016 fi
7019 if test "$NEATO" != "echo neato" ; then
7021 cat >>confdefs.h <<\_ACEOF
7022 #define HAVE_NEATO 1
7023 _ACEOF
7025 if test "$llvm_cv_os_type" = "MingW" ; then
7026 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7027 fi
7029 cat >>confdefs.h <<_ACEOF
7030 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7031 _ACEOF
7033 fi
7034 # Extract the first word of "twopi", so it can be a program name with args.
7035 set dummy twopi; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_TWOPI+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041 case $TWOPI in
7042 [\\/]* | ?:[\\/]*)
7043 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7044 ;;
7045 *)
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7061 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7062 ;;
7063 esac
7064 fi
7065 TWOPI=$ac_cv_path_TWOPI
7066 if test -n "$TWOPI"; then
7067 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7068 echo "${ECHO_T}$TWOPI" >&6; }
7069 else
7070 { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7072 fi
7075 if test "$TWOPI" != "echo twopi" ; then
7077 cat >>confdefs.h <<\_ACEOF
7078 #define HAVE_TWOPI 1
7079 _ACEOF
7081 if test "$llvm_cv_os_type" = "MingW" ; then
7082 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7083 fi
7085 cat >>confdefs.h <<_ACEOF
7086 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7087 _ACEOF
7089 fi
7090 # Extract the first word of "circo", so it can be a program name with args.
7091 set dummy circo; ac_word=$2
7092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094 if test "${ac_cv_path_CIRCO+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097 case $CIRCO in
7098 [\\/]* | ?:[\\/]*)
7099 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7100 ;;
7101 *)
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 break 2
7112 fi
7113 done
7114 done
7115 IFS=$as_save_IFS
7117 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7118 ;;
7119 esac
7120 fi
7121 CIRCO=$ac_cv_path_CIRCO
7122 if test -n "$CIRCO"; then
7123 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7124 echo "${ECHO_T}$CIRCO" >&6; }
7125 else
7126 { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7128 fi
7131 if test "$CIRCO" != "echo circo" ; then
7133 cat >>confdefs.h <<\_ACEOF
7134 #define HAVE_CIRCO 1
7135 _ACEOF
7137 if test "$llvm_cv_os_type" = "MingW" ; then
7138 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7139 fi
7141 cat >>confdefs.h <<_ACEOF
7142 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7143 _ACEOF
7145 fi
7146 for ac_prog in gv gsview32
7147 do
7148 # Extract the first word of "$ac_prog", so it can be a program name with args.
7149 set dummy $ac_prog; ac_word=$2
7150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152 if test "${ac_cv_path_GV+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155 case $GV in
7156 [\\/]* | ?:[\\/]*)
7157 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7158 ;;
7159 *)
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7175 ;;
7176 esac
7177 fi
7178 GV=$ac_cv_path_GV
7179 if test -n "$GV"; then
7180 { echo "$as_me:$LINENO: result: $GV" >&5
7181 echo "${ECHO_T}$GV" >&6; }
7182 else
7183 { echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6; }
7185 fi
7188 test -n "$GV" && break
7189 done
7190 test -n "$GV" || GV="echo gv"
7192 if test "$GV" != "echo gv" ; then
7194 cat >>confdefs.h <<\_ACEOF
7195 #define HAVE_GV 1
7196 _ACEOF
7198 if test "$llvm_cv_os_type" = "MingW" ; then
7199 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7200 fi
7202 cat >>confdefs.h <<_ACEOF
7203 #define LLVM_PATH_GV "$GV${EXEEXT}"
7204 _ACEOF
7206 fi
7207 # Extract the first word of "dotty", so it can be a program name with args.
7208 set dummy dotty; ac_word=$2
7209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7211 if test "${ac_cv_path_DOTTY+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214 case $DOTTY in
7215 [\\/]* | ?:[\\/]*)
7216 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7217 ;;
7218 *)
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7226 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 break 2
7229 fi
7230 done
7231 done
7232 IFS=$as_save_IFS
7234 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7235 ;;
7236 esac
7237 fi
7238 DOTTY=$ac_cv_path_DOTTY
7239 if test -n "$DOTTY"; then
7240 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7241 echo "${ECHO_T}$DOTTY" >&6; }
7242 else
7243 { echo "$as_me:$LINENO: result: no" >&5
7244 echo "${ECHO_T}no" >&6; }
7245 fi
7248 if test "$DOTTY" != "echo dotty" ; then
7250 cat >>confdefs.h <<\_ACEOF
7251 #define HAVE_DOTTY 1
7252 _ACEOF
7254 if test "$llvm_cv_os_type" = "MingW" ; then
7255 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7256 fi
7258 cat >>confdefs.h <<_ACEOF
7259 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7260 _ACEOF
7262 fi
7263 for ac_prog in xdot xdot.py
7264 do
7265 # Extract the first word of "$ac_prog", so it can be a program name with args.
7266 set dummy $ac_prog; ac_word=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_path_XDOT+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272 case $XDOT in
7273 [\\/]* | ?:[\\/]*)
7274 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7275 ;;
7276 *)
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7287 fi
7288 done
7289 done
7290 IFS=$as_save_IFS
7292 ;;
7293 esac
7294 fi
7295 XDOT=$ac_cv_path_XDOT
7296 if test -n "$XDOT"; then
7297 { echo "$as_me:$LINENO: result: $XDOT" >&5
7298 echo "${ECHO_T}$XDOT" >&6; }
7299 else
7300 { echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6; }
7302 fi
7305 test -n "$XDOT" && break
7306 done
7307 test -n "$XDOT" || XDOT="echo xdot"
7309 if test "$XDOT" != "echo xdot" ; then
7311 cat >>confdefs.h <<\_ACEOF
7312 #define HAVE_XDOT 1
7313 _ACEOF
7315 if test "$llvm_cv_os_type" = "MingW" ; then
7316 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7317 fi
7319 cat >>confdefs.h <<_ACEOF
7320 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7321 _ACEOF
7323 fi
7325 # Find a good install program. We prefer a C program (faster),
7326 # so one script is as good as another. But avoid the broken or
7327 # incompatible versions:
7328 # SysV /etc/install, /usr/sbin/install
7329 # SunOS /usr/etc/install
7330 # IRIX /sbin/install
7331 # AIX /bin/install
7332 # AmigaOS /C/install, which installs bootblocks on floppy discs
7333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7336 # OS/2's system install, which has a completely different semantic
7337 # ./install, which can be erroneously created by make from ./install.sh.
7338 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7339 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7340 if test -z "$INSTALL"; then
7341 if test "${ac_cv_path_install+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 # Account for people who put trailing slashes in PATH elements.
7350 case $as_dir/ in
7351 ./ | .// | /cC/* | \
7352 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7353 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7354 /usr/ucb/* ) ;;
7355 *)
7356 # OSF1 and SCO ODT 3.0 have their own names for install.
7357 # Don't use installbsd from OSF since it installs stuff as root
7358 # by default.
7359 for ac_prog in ginstall scoinst install; do
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7362 if test $ac_prog = install &&
7363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7364 # AIX install. It has an incompatible calling convention.
7365 :
7366 elif test $ac_prog = install &&
7367 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7368 # program-specific install script used by HP pwplus--don't use.
7369 :
7370 else
7371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7372 break 3
7373 fi
7374 fi
7375 done
7376 done
7377 ;;
7378 esac
7379 done
7380 IFS=$as_save_IFS
7383 fi
7384 if test "${ac_cv_path_install+set}" = set; then
7385 INSTALL=$ac_cv_path_install
7386 else
7387 # As a last resort, use the slow shell script. Don't cache a
7388 # value for INSTALL within a source directory, because that will
7389 # break other packages using the cache if that directory is
7390 # removed, or if the value is a relative name.
7391 INSTALL=$ac_install_sh
7392 fi
7393 fi
7394 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7395 echo "${ECHO_T}$INSTALL" >&6; }
7397 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7398 # It thinks the first close brace ends the variable substitution.
7399 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7401 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7403 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7405 case "$INSTALL" in
7406 [\\/$]* | ?:[\\/]* ) ;;
7407 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7408 esac
7410 # Extract the first word of "bzip2", so it can be a program name with args.
7411 set dummy bzip2; ac_word=$2
7412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414 if test "${ac_cv_path_BZIP2+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417 case $BZIP2 in
7418 [\\/]* | ?:[\\/]*)
7419 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7420 ;;
7421 *)
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7432 fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7437 ;;
7438 esac
7439 fi
7440 BZIP2=$ac_cv_path_BZIP2
7441 if test -n "$BZIP2"; then
7442 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7443 echo "${ECHO_T}$BZIP2" >&6; }
7444 else
7445 { echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6; }
7447 fi
7450 # Extract the first word of "cat", so it can be a program name with args.
7451 set dummy cat; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_CAT+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457 case $CAT in
7458 [\\/]* | ?:[\\/]*)
7459 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7460 ;;
7461 *)
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465 IFS=$as_save_IFS
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 break 2
7472 fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7477 ;;
7478 esac
7479 fi
7480 CAT=$ac_cv_path_CAT
7481 if test -n "$CAT"; then
7482 { echo "$as_me:$LINENO: result: $CAT" >&5
7483 echo "${ECHO_T}$CAT" >&6; }
7484 else
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7487 fi
7490 # Extract the first word of "doxygen", so it can be a program name with args.
7491 set dummy doxygen; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497 case $DOXYGEN in
7498 [\\/]* | ?:[\\/]*)
7499 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7500 ;;
7501 *)
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 break 2
7512 fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7517 ;;
7518 esac
7519 fi
7520 DOXYGEN=$ac_cv_path_DOXYGEN
7521 if test -n "$DOXYGEN"; then
7522 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7523 echo "${ECHO_T}$DOXYGEN" >&6; }
7524 else
7525 { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7527 fi
7530 # Extract the first word of "groff", so it can be a program name with args.
7531 set dummy groff; ac_word=$2
7532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534 if test "${ac_cv_path_GROFF+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537 case $GROFF in
7538 [\\/]* | ?:[\\/]*)
7539 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7540 ;;
7541 *)
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7549 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 break 2
7552 fi
7553 done
7554 done
7555 IFS=$as_save_IFS
7557 ;;
7558 esac
7559 fi
7560 GROFF=$ac_cv_path_GROFF
7561 if test -n "$GROFF"; then
7562 { echo "$as_me:$LINENO: result: $GROFF" >&5
7563 echo "${ECHO_T}$GROFF" >&6; }
7564 else
7565 { echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6; }
7567 fi
7570 # Extract the first word of "gzip", so it can be a program name with args.
7571 set dummy gzip; ac_word=$2
7572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7574 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577 case $GZIPBIN in
7578 [\\/]* | ?:[\\/]*)
7579 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7580 ;;
7581 *)
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7589 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 break 2
7592 fi
7593 done
7594 done
7595 IFS=$as_save_IFS
7597 ;;
7598 esac
7599 fi
7600 GZIPBIN=$ac_cv_path_GZIPBIN
7601 if test -n "$GZIPBIN"; then
7602 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7603 echo "${ECHO_T}$GZIPBIN" >&6; }
7604 else
7605 { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7607 fi
7610 # Extract the first word of "pdfroff", so it can be a program name with args.
7611 set dummy pdfroff; ac_word=$2
7612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7614 if test "${ac_cv_path_PDFROFF+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617 case $PDFROFF in
7618 [\\/]* | ?:[\\/]*)
7619 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7620 ;;
7621 *)
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625 IFS=$as_save_IFS
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7629 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 break 2
7632 fi
7633 done
7634 done
7635 IFS=$as_save_IFS
7637 ;;
7638 esac
7639 fi
7640 PDFROFF=$ac_cv_path_PDFROFF
7641 if test -n "$PDFROFF"; then
7642 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7643 echo "${ECHO_T}$PDFROFF" >&6; }
7644 else
7645 { echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6; }
7647 fi
7650 # Extract the first word of "zip", so it can be a program name with args.
7651 set dummy zip; ac_word=$2
7652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7654 if test "${ac_cv_path_ZIP+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657 case $ZIP in
7658 [\\/]* | ?:[\\/]*)
7659 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7660 ;;
7661 *)
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7664 do
7665 IFS=$as_save_IFS
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7669 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 break 2
7672 fi
7673 done
7674 done
7675 IFS=$as_save_IFS
7677 ;;
7678 esac
7679 fi
7680 ZIP=$ac_cv_path_ZIP
7681 if test -n "$ZIP"; then
7682 { echo "$as_me:$LINENO: result: $ZIP" >&5
7683 echo "${ECHO_T}$ZIP" >&6; }
7684 else
7685 { echo "$as_me:$LINENO: result: no" >&5
7686 echo "${ECHO_T}no" >&6; }
7687 fi
7690 for ac_prog in ocamlc
7691 do
7692 # Extract the first word of "$ac_prog", so it can be a program name with args.
7693 set dummy $ac_prog; ac_word=$2
7694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7696 if test "${ac_cv_path_OCAMLC+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699 case $OCAMLC in
7700 [\\/]* | ?:[\\/]*)
7701 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7702 ;;
7703 *)
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707 IFS=$as_save_IFS
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7711 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 break 2
7714 fi
7715 done
7716 done
7717 IFS=$as_save_IFS
7719 ;;
7720 esac
7721 fi
7722 OCAMLC=$ac_cv_path_OCAMLC
7723 if test -n "$OCAMLC"; then
7724 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7725 echo "${ECHO_T}$OCAMLC" >&6; }
7726 else
7727 { echo "$as_me:$LINENO: result: no" >&5
7728 echo "${ECHO_T}no" >&6; }
7729 fi
7732 test -n "$OCAMLC" && break
7733 done
7735 for ac_prog in ocamlopt
7736 do
7737 # Extract the first word of "$ac_prog", so it can be a program name with args.
7738 set dummy $ac_prog; ac_word=$2
7739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7741 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744 case $OCAMLOPT in
7745 [\\/]* | ?:[\\/]*)
7746 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7747 ;;
7748 *)
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 for as_dir in $PATH
7751 do
7752 IFS=$as_save_IFS
7753 test -z "$as_dir" && as_dir=.
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7756 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7758 break 2
7759 fi
7760 done
7761 done
7762 IFS=$as_save_IFS
7764 ;;
7765 esac
7766 fi
7767 OCAMLOPT=$ac_cv_path_OCAMLOPT
7768 if test -n "$OCAMLOPT"; then
7769 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7770 echo "${ECHO_T}$OCAMLOPT" >&6; }
7771 else
7772 { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7774 fi
7777 test -n "$OCAMLOPT" && break
7778 done
7780 for ac_prog in ocamldep
7781 do
7782 # Extract the first word of "$ac_prog", so it can be a program name with args.
7783 set dummy $ac_prog; ac_word=$2
7784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789 case $OCAMLDEP in
7790 [\\/]* | ?:[\\/]*)
7791 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7792 ;;
7793 *)
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7796 do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805 done
7806 done
7807 IFS=$as_save_IFS
7809 ;;
7810 esac
7811 fi
7812 OCAMLDEP=$ac_cv_path_OCAMLDEP
7813 if test -n "$OCAMLDEP"; then
7814 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7815 echo "${ECHO_T}$OCAMLDEP" >&6; }
7816 else
7817 { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7819 fi
7822 test -n "$OCAMLDEP" && break
7823 done
7825 for ac_prog in ocamldoc
7826 do
7827 # Extract the first word of "$ac_prog", so it can be a program name with args.
7828 set dummy $ac_prog; ac_word=$2
7829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7831 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834 case $OCAMLDOC in
7835 [\\/]* | ?:[\\/]*)
7836 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7837 ;;
7838 *)
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7846 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850 done
7851 done
7852 IFS=$as_save_IFS
7854 ;;
7855 esac
7856 fi
7857 OCAMLDOC=$ac_cv_path_OCAMLDOC
7858 if test -n "$OCAMLDOC"; then
7859 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7860 echo "${ECHO_T}$OCAMLDOC" >&6; }
7861 else
7862 { echo "$as_me:$LINENO: result: no" >&5
7863 echo "${ECHO_T}no" >&6; }
7864 fi
7867 test -n "$OCAMLDOC" && break
7868 done
7870 for ac_prog in gas as
7871 do
7872 # Extract the first word of "$ac_prog", so it can be a program name with args.
7873 set dummy $ac_prog; ac_word=$2
7874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7876 if test "${ac_cv_path_GAS+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879 case $GAS in
7880 [\\/]* | ?:[\\/]*)
7881 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7882 ;;
7883 *)
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7886 do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 break 2
7894 fi
7895 done
7896 done
7897 IFS=$as_save_IFS
7899 ;;
7900 esac
7901 fi
7902 GAS=$ac_cv_path_GAS
7903 if test -n "$GAS"; then
7904 { echo "$as_me:$LINENO: result: $GAS" >&5
7905 echo "${ECHO_T}$GAS" >&6; }
7906 else
7907 { echo "$as_me:$LINENO: result: no" >&5
7908 echo "${ECHO_T}no" >&6; }
7909 fi
7912 test -n "$GAS" && break
7913 done
7916 { echo "$as_me:$LINENO: checking for linker version" >&5
7917 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7918 if test "${llvm_cv_link_version+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7922 version_string="$(ld -v 2>&1 | head -1)"
7924 # Check for ld64.
7925 if (echo "$version_string" | grep -q "ld64"); then
7926 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7927 else
7928 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7929 fi
7931 fi
7932 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7933 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7935 cat >>confdefs.h <<_ACEOF
7936 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7937 _ACEOF
7941 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7942 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7943 if test "${llvm_cv_link_use_r+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946 ac_ext=c
7947 ac_cpp='$CPP $CPPFLAGS'
7948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7952 oldcflags="$CFLAGS"
7953 CFLAGS="$CFLAGS -Wl,-R."
7954 cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h. */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7961 int
7962 main ()
7963 {
7965 ;
7966 return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (ac_try="$ac_link"
7971 case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7974 esac
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_link") 2>conftest.er1
7977 ac_status=$?
7978 grep -v '^ *+' conftest.er1 >conftest.err
7979 rm -f conftest.er1
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } &&
7983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7984 { (case "(($ac_try" in
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;;
7987 esac
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989 (eval "$ac_try") 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; } &&
7993 { ac_try='test -s conftest$ac_exeext'
7994 { (case "(($ac_try" in
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7997 esac
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_try") 2>&5
8000 ac_status=$?
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; }; then
8003 llvm_cv_link_use_r=yes
8004 else
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 llvm_cv_link_use_r=no
8009 fi
8011 rm -f core conftest.err conftest.$ac_objext \
8012 conftest$ac_exeext conftest.$ac_ext
8013 CFLAGS="$oldcflags"
8014 ac_ext=c
8015 ac_cpp='$CPP $CPPFLAGS'
8016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8021 fi
8022 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8023 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8024 if test "$llvm_cv_link_use_r" = yes ; then
8026 cat >>confdefs.h <<\_ACEOF
8027 #define HAVE_LINK_R 1
8028 _ACEOF
8030 fi
8033 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
8034 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
8035 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 else
8038 ac_ext=c
8039 ac_cpp='$CPP $CPPFLAGS'
8040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8044 oldcflags="$CFLAGS"
8045 CFLAGS="$CFLAGS -rdynamic"
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8053 int
8054 main ()
8055 {
8057 ;
8058 return 0;
8059 }
8060 _ACEOF
8061 rm -f conftest.$ac_objext conftest$ac_exeext
8062 if { (ac_try="$ac_link"
8063 case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_link") 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8076 { (case "(($ac_try" in
8077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078 *) ac_try_echo=$ac_try;;
8079 esac
8080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8081 (eval "$ac_try") 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; } &&
8085 { ac_try='test -s conftest$ac_exeext'
8086 { (case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089 esac
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_try") 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 llvm_cv_link_use_export_dynamic=yes
8096 else
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 llvm_cv_link_use_export_dynamic=no
8101 fi
8103 rm -f core conftest.err conftest.$ac_objext \
8104 conftest$ac_exeext conftest.$ac_ext
8105 CFLAGS="$oldcflags"
8106 ac_ext=c
8107 ac_cpp='$CPP $CPPFLAGS'
8108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8113 fi
8114 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8115 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8116 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8118 cat >>confdefs.h <<\_ACEOF
8119 #define HAVE_LINK_EXPORT_DYNAMIC 1
8120 _ACEOF
8122 fi
8125 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8126 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8127 if test "${llvm_cv_link_use_version_script+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130 ac_ext=c
8131 ac_cpp='$CPP $CPPFLAGS'
8132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8136 oldcflags="$CFLAGS"
8138 # The following code is from the autoconf manual,
8139 # "11.13: Limitations of Usual Tools".
8140 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8141 # Use mktemp if possible; otherwise fall back on mkdir,
8142 # with $RANDOM to make collisions less likely.
8143 : ${TMPDIR=/tmp}
8144 {
8145 tmp=`
8146 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8147 ` &&
8148 test -n "$tmp" && test -d "$tmp"
8149 } || {
8150 tmp=$TMPDIR/foo$$-$RANDOM
8151 (umask 077 && mkdir "$tmp")
8152 } || exit $?
8154 echo "{" > "$tmp/export.map"
8155 echo " global: main;" >> "$tmp/export.map"
8156 echo " local: *;" >> "$tmp/export.map"
8157 echo "};" >> "$tmp/export.map"
8159 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h. */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8167 int
8168 main ()
8169 {
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (ac_try="$ac_link"
8177 case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180 esac
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_link") 2>conftest.er1
8183 ac_status=$?
8184 grep -v '^ *+' conftest.er1 >conftest.err
8185 rm -f conftest.er1
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } &&
8189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8190 { (case "(($ac_try" in
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8193 esac
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_try") 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; } &&
8199 { ac_try='test -s conftest$ac_exeext'
8200 { (case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_try") 2>&5
8206 ac_status=$?
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
8209 llvm_cv_link_use_version_script=yes
8210 else
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8214 llvm_cv_link_use_version_script=no
8215 fi
8217 rm -f core conftest.err conftest.$ac_objext \
8218 conftest$ac_exeext conftest.$ac_ext
8219 rm "$tmp/export.map"
8220 rmdir "$tmp"
8221 CFLAGS="$oldcflags"
8222 ac_ext=c
8223 ac_cpp='$CPP $CPPFLAGS'
8224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8229 fi
8230 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8231 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8232 if test "$llvm_cv_link_use_version_script" = yes ; then
8233 HAVE_LINK_VERSION_SCRIPT=1
8235 fi
8240 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8241 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8242 if test "${ac_cv_c_const+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245 cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h. */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8252 int
8253 main ()
8254 {
8255 /* FIXME: Include the comments suggested by Paul. */
8256 #ifndef __cplusplus
8257 /* Ultrix mips cc rejects this. */
8258 typedef int charset[2];
8259 const charset x;
8260 /* SunOS 4.1.1 cc rejects this. */
8261 char const *const *ccp;
8262 char **p;
8263 /* NEC SVR4.0.2 mips cc rejects this. */
8264 struct point {int x, y;};
8265 static struct point const zero = {0,0};
8266 /* AIX XL C 1.02.0.0 rejects this.
8267 It does not let you subtract one const X* pointer from another in
8268 an arm of an if-expression whose if-part is not a constant
8269 expression */
8270 const char *g = "string";
8271 ccp = &g + (g ? g-g : 0);
8272 /* HPUX 7.0 cc rejects these. */
8273 ++ccp;
8274 p = (char**) ccp;
8275 ccp = (char const *const *) p;
8276 { /* SCO 3.2v4 cc rejects this. */
8277 char *t;
8278 char const *s = 0 ? (char *) 0 : (char const *) 0;
8280 *t++ = 0;
8281 if (s) return 0;
8282 }
8283 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8284 int x[] = {25, 17};
8285 const int *foo = &x[0];
8286 ++foo;
8287 }
8288 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8289 typedef const int *iptr;
8290 iptr p = 0;
8291 ++p;
8292 }
8293 { /* AIX XL C 1.02.0.0 rejects this saying
8294 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8295 struct s { int j; const int *ap[3]; };
8296 struct s *b; b->j = 5;
8297 }
8298 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8299 const int foo = 10;
8300 if (!foo) return 0;
8301 }
8302 return !x[0] && !zero.x;
8303 #endif
8305 ;
8306 return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8311 case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_compile") 2>conftest.er1
8317 ac_status=$?
8318 grep -v '^ *+' conftest.er1 >conftest.err
8319 rm -f conftest.er1
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324 { (case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327 esac
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_try") 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest.$ac_objext'
8334 { (case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_try") 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_cv_c_const=yes
8344 else
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8348 ac_cv_c_const=no
8349 fi
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 fi
8353 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8354 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8355 if test $ac_cv_c_const = no; then
8357 cat >>confdefs.h <<\_ACEOF
8358 #define const
8359 _ACEOF
8361 fi
8368 ac_header_dirent=no
8369 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8370 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8371 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8372 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 #include <sys/types.h>
8383 #include <$ac_hdr>
8385 int
8386 main ()
8387 {
8388 if ((DIR *) 0)
8389 return 0;
8390 ;
8391 return 0;
8392 }
8393 _ACEOF
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8396 case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8399 esac
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_compile") 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8409 { (case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8412 esac
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_try") 2>&5
8415 ac_status=$?
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; } &&
8418 { ac_try='test -s conftest.$ac_objext'
8419 { (case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8422 esac
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_try") 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 eval "$as_ac_Header=yes"
8429 else
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8433 eval "$as_ac_Header=no"
8434 fi
8436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8437 fi
8438 ac_res=`eval echo '${'$as_ac_Header'}'`
8439 { echo "$as_me:$LINENO: result: $ac_res" >&5
8440 echo "${ECHO_T}$ac_res" >&6; }
8441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8442 cat >>confdefs.h <<_ACEOF
8443 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8444 _ACEOF
8446 ac_header_dirent=$ac_hdr; break
8447 fi
8449 done
8450 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8451 if test $ac_header_dirent = dirent.h; then
8452 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8453 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8454 if test "${ac_cv_search_opendir+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457 ac_func_search_save_LIBS=$LIBS
8458 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8465 /* Override any GCC internal prototype to avoid an error.
8466 Use char because int might match the return type of a GCC
8467 builtin and then its argument prototype would still apply. */
8468 #ifdef __cplusplus
8469 extern "C"
8470 #endif
8471 char opendir ();
8472 int
8473 main ()
8474 {
8475 return opendir ();
8476 ;
8477 return 0;
8478 }
8479 _ACEOF
8480 for ac_lib in '' dir; do
8481 if test -z "$ac_lib"; then
8482 ac_res="none required"
8483 else
8484 ac_res=-l$ac_lib
8485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8486 fi
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (ac_try="$ac_link"
8489 case "(($ac_try" in
8490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491 *) ac_try_echo=$ac_try;;
8492 esac
8493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8494 (eval "$ac_link") 2>conftest.er1
8495 ac_status=$?
8496 grep -v '^ *+' conftest.er1 >conftest.err
8497 rm -f conftest.er1
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8502 { (case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8505 esac
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_try") 2>&5
8508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; } &&
8511 { ac_try='test -s conftest$ac_exeext'
8512 { (case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_try") 2>&5
8518 ac_status=$?
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
8521 ac_cv_search_opendir=$ac_res
8522 else
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8527 fi
8529 rm -f core conftest.err conftest.$ac_objext \
8530 conftest$ac_exeext
8531 if test "${ac_cv_search_opendir+set}" = set; then
8532 break
8533 fi
8534 done
8535 if test "${ac_cv_search_opendir+set}" = set; then
8536 :
8537 else
8538 ac_cv_search_opendir=no
8539 fi
8540 rm conftest.$ac_ext
8541 LIBS=$ac_func_search_save_LIBS
8542 fi
8543 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8544 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8545 ac_res=$ac_cv_search_opendir
8546 if test "$ac_res" != no; then
8547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8549 fi
8551 else
8552 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8553 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8554 if test "${ac_cv_search_opendir+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557 ac_func_search_save_LIBS=$LIBS
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h. */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8565 /* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8568 #ifdef __cplusplus
8569 extern "C"
8570 #endif
8571 char opendir ();
8572 int
8573 main ()
8574 {
8575 return opendir ();
8576 ;
8577 return 0;
8578 }
8579 _ACEOF
8580 for ac_lib in '' x; do
8581 if test -z "$ac_lib"; then
8582 ac_res="none required"
8583 else
8584 ac_res=-l$ac_lib
8585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8586 fi
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (ac_try="$ac_link"
8589 case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8592 esac
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_link") 2>conftest.er1
8595 ac_status=$?
8596 grep -v '^ *+' conftest.er1 >conftest.err
8597 rm -f conftest.er1
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } &&
8601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8602 { (case "(($ac_try" in
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_try") 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_try") 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 ac_cv_search_opendir=$ac_res
8622 else
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8627 fi
8629 rm -f core conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext
8631 if test "${ac_cv_search_opendir+set}" = set; then
8632 break
8633 fi
8634 done
8635 if test "${ac_cv_search_opendir+set}" = set; then
8636 :
8637 else
8638 ac_cv_search_opendir=no
8639 fi
8640 rm conftest.$ac_ext
8641 LIBS=$ac_func_search_save_LIBS
8642 fi
8643 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8644 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8645 ac_res=$ac_cv_search_opendir
8646 if test "$ac_res" != no; then
8647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8649 fi
8651 fi
8654 for ac_header in dlfcn.h
8655 do
8656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 fi
8663 ac_res=`eval echo '${'$as_ac_Header'}'`
8664 { echo "$as_me:$LINENO: result: $ac_res" >&5
8665 echo "${ECHO_T}$ac_res" >&6; }
8666 else
8667 # Is the header compilable?
8668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8670 cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h. */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8676 $ac_includes_default
8677 #include <$ac_header>
8678 _ACEOF
8679 rm -f conftest.$ac_objext
8680 if { (ac_try="$ac_compile"
8681 case "(($ac_try" in
8682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8684 esac
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686 (eval "$ac_compile") 2>conftest.er1
8687 ac_status=$?
8688 grep -v '^ *+' conftest.er1 >conftest.err
8689 rm -f conftest.er1
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8694 { (case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_try") 2>&5
8700 ac_status=$?
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; } &&
8703 { ac_try='test -s conftest.$ac_objext'
8704 { (case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707 esac
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_try") 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 ac_header_compiler=yes
8714 else
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 ac_header_compiler=no
8719 fi
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8723 echo "${ECHO_T}$ac_header_compiler" >&6; }
8725 # Is the header present?
8726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8728 cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h. */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8734 #include <$ac_header>
8735 _ACEOF
8736 if { (ac_try="$ac_cpp conftest.$ac_ext"
8737 case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740 esac
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } >/dev/null; then
8749 if test -s conftest.err; then
8750 ac_cpp_err=$ac_c_preproc_warn_flag
8751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8752 else
8753 ac_cpp_err=
8754 fi
8755 else
8756 ac_cpp_err=yes
8757 fi
8758 if test -z "$ac_cpp_err"; then
8759 ac_header_preproc=yes
8760 else
8761 echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8764 ac_header_preproc=no
8765 fi
8767 rm -f conftest.err conftest.$ac_ext
8768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8769 echo "${ECHO_T}$ac_header_preproc" >&6; }
8771 # So? What about this header?
8772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8773 yes:no: )
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8778 ac_header_preproc=yes
8779 ;;
8780 no:yes:* )
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8793 ( cat <<\_ASBOX
8794 ## ------------------------------------ ##
8795 ## Report this to http://llvm.org/bugs/ ##
8796 ## ------------------------------------ ##
8797 _ASBOX
8798 ) | sed "s/^/$as_me: WARNING: /" >&2
8799 ;;
8800 esac
8801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806 eval "$as_ac_Header=\$ac_header_preproc"
8807 fi
8808 ac_res=`eval echo '${'$as_ac_Header'}'`
8809 { echo "$as_me:$LINENO: result: $ac_res" >&5
8810 echo "${ECHO_T}$ac_res" >&6; }
8812 fi
8813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8814 cat >>confdefs.h <<_ACEOF
8815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8816 _ACEOF
8818 fi
8820 done
8822 # Check whether --enable-ltdl-install was given.
8823 if test "${enable_ltdl_install+set}" = set; then
8824 enableval=$enable_ltdl_install;
8825 fi
8830 if test x"${enable_ltdl_install-no}" != xno; then
8831 INSTALL_LTDL_TRUE=
8832 INSTALL_LTDL_FALSE='#'
8833 else
8834 INSTALL_LTDL_TRUE='#'
8835 INSTALL_LTDL_FALSE=
8836 fi
8840 if test x"${enable_ltdl_convenience-no}" != xno; then
8841 CONVENIENCE_LTDL_TRUE=
8842 CONVENIENCE_LTDL_FALSE='#'
8843 else
8844 CONVENIENCE_LTDL_TRUE='#'
8845 CONVENIENCE_LTDL_FALSE=
8846 fi
8849 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8850 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8851 library_names_spec=
8852 libname_spec='lib$name'
8853 soname_spec=
8854 shrext_cmds=".so"
8855 postinstall_cmds=
8856 postuninstall_cmds=
8857 finish_cmds=
8858 finish_eval=
8859 shlibpath_var=
8860 shlibpath_overrides_runpath=unknown
8861 version_type=none
8862 dynamic_linker="$host_os ld.so"
8863 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8864 if test "$GCC" = yes; then
8865 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8866 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8867 # if the path contains ";" then we assume it to be the separator
8868 # otherwise default to the standard path separator (i.e. ":") - it is
8869 # assumed that no part of a normal pathname contains ";" but that should
8870 # okay in the real world where ";" in dirpaths is itself problematic.
8871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8872 else
8873 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8874 fi
8875 else
8876 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8877 fi
8878 need_lib_prefix=unknown
8879 hardcode_into_libs=no
8881 # when you set need_version to no, make sure it does not cause -set_version
8882 # flags to be left without arguments
8883 need_version=unknown
8885 case $host_os in
8886 aix3*)
8887 version_type=linux
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8889 shlibpath_var=LIBPATH
8891 # AIX 3 has no versioning support, so we append a major version to the name.
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 ;;
8895 aix4* | aix5*)
8896 version_type=linux
8897 need_lib_prefix=no
8898 need_version=no
8899 hardcode_into_libs=yes
8900 if test "$host_cpu" = ia64; then
8901 # AIX 5 supports IA64
8902 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8903 shlibpath_var=LD_LIBRARY_PATH
8904 else
8905 # With GCC up to 2.95.x, collect2 would create an import file
8906 # for dependence libraries. The import file would start with
8907 # the line `#! .'. This would cause the generated library to
8908 # depend on `.', always an invalid library. This was fixed in
8909 # development snapshots of GCC prior to 3.0.
8910 case $host_os in
8911 aix4 | aix4.[01] | aix4.[01].*)
8912 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8913 echo ' yes '
8914 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8915 :
8916 else
8917 can_build_shared=no
8918 fi
8919 ;;
8920 esac
8921 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8922 # soname into executable. Probably we can add versioning support to
8923 # collect2, so additional links can be useful in future.
8924 if test "$aix_use_runtimelinking" = yes; then
8925 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8926 # instead of lib<name>.a to let people know that these are not
8927 # typical AIX shared libraries.
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8929 else
8930 # We preserve .a as extension for shared libraries through AIX4.2
8931 # and later when we are not doing run time linking.
8932 library_names_spec='${libname}${release}.a $libname.a'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 fi
8935 shlibpath_var=LIBPATH
8936 fi
8937 ;;
8939 amigaos*)
8940 library_names_spec='$libname.ixlibrary $libname.a'
8941 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8942 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'
8943 ;;
8945 beos*)
8946 library_names_spec='${libname}${shared_ext}'
8947 dynamic_linker="$host_os ld.so"
8948 shlibpath_var=LIBRARY_PATH
8949 ;;
8951 bsdi[45]*)
8952 version_type=linux
8953 need_version=no
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955 soname_spec='${libname}${release}${shared_ext}$major'
8956 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8959 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8960 # the default ld.so.conf also contains /usr/contrib/lib and
8961 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8962 # libtool to hard-code these into programs
8963 ;;
8965 cygwin* | mingw* | pw32*)
8966 version_type=windows
8967 shrext_cmds=".dll"
8968 need_version=no
8969 need_lib_prefix=no
8971 case $GCC,$host_os in
8972 yes,cygwin* | yes,mingw* | yes,pw32*)
8973 library_names_spec='$libname.dll.a'
8974 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8975 postinstall_cmds='base_file=`basename \${file}`~
8976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8977 dldir=$destdir/`dirname \$dlpath`~
8978 test -d \$dldir || mkdir -p \$dldir~
8979 $install_prog $dir/$dlname \$dldir/$dlname~
8980 chmod a+x \$dldir/$dlname'
8981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8982 dlpath=$dir/\$dldll~
8983 $rm \$dlpath'
8984 shlibpath_overrides_runpath=yes
8986 case $host_os in
8987 cygwin*)
8988 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8989 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8990 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8991 ;;
8992 mingw*)
8993 # MinGW DLLs use traditional 'lib' prefix
8994 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8995 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8996 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8997 # It is most probably a Windows format PATH printed by
8998 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8999 # path with ; separators, and with drive letters. We can handle the
9000 # drive letters (cygwin fileutils understands them), so leave them,
9001 # especially as we might pass files found there to a mingw objdump,
9002 # which wouldn't understand a cygwinified path. Ahh.
9003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9004 else
9005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9006 fi
9007 ;;
9008 pw32*)
9009 # pw32 DLLs use 'pw' prefix rather than 'lib'
9010 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9011 ;;
9012 esac
9013 ;;
9015 *)
9016 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9017 ;;
9018 esac
9019 dynamic_linker='Win32 ld.exe'
9020 # FIXME: first we should search . and the directory the executable is in
9021 shlibpath_var=PATH
9022 ;;
9024 darwin* | rhapsody*)
9025 dynamic_linker="$host_os dyld"
9026 version_type=darwin
9027 need_lib_prefix=no
9028 need_version=no
9029 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9030 soname_spec='${libname}${release}${major}$shared_ext'
9031 shlibpath_overrides_runpath=yes
9032 shlibpath_var=DYLD_LIBRARY_PATH
9033 shrext_cmds='.dylib'
9034 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9035 if test "$GCC" = yes; then
9036 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"`
9037 else
9038 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9039 fi
9040 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9041 ;;
9043 dgux*)
9044 version_type=linux
9045 need_lib_prefix=no
9046 need_version=no
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 ;;
9052 freebsd1.*)
9053 dynamic_linker=no
9054 ;;
9056 kfreebsd*-gnu)
9057 version_type=linux
9058 need_lib_prefix=no
9059 need_version=no
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 shlibpath_overrides_runpath=no
9064 hardcode_into_libs=yes
9065 dynamic_linker='GNU ld.so'
9066 ;;
9068 freebsd* | dragonfly*)
9069 # DragonFly does not have aout. When/if they implement a new
9070 # versioning mechanism, adjust this.
9071 if test -x /usr/bin/objformat; then
9072 objformat=`/usr/bin/objformat`
9073 else
9074 case $host_os in
9075 freebsd[123].*) objformat=aout ;;
9076 *) objformat=elf ;;
9077 esac
9078 fi
9079 version_type=freebsd-$objformat
9080 case $version_type in
9081 freebsd-elf*)
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9083 need_version=no
9084 need_lib_prefix=no
9085 ;;
9086 freebsd-*)
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9088 need_version=yes
9089 ;;
9090 esac
9091 shlibpath_var=LD_LIBRARY_PATH
9092 case $host_os in
9093 freebsd2.*)
9094 shlibpath_overrides_runpath=yes
9095 ;;
9096 freebsd3.[01]* | freebsdelf3.[01]*)
9097 shlibpath_overrides_runpath=yes
9098 hardcode_into_libs=yes
9099 ;;
9100 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9101 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9102 shlibpath_overrides_runpath=no
9103 hardcode_into_libs=yes
9104 ;;
9105 freebsd*) # from 4.6 on
9106 shlibpath_overrides_runpath=yes
9107 hardcode_into_libs=yes
9108 ;;
9109 esac
9110 ;;
9112 gnu*)
9113 version_type=linux
9114 need_lib_prefix=no
9115 need_version=no
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 hardcode_into_libs=yes
9120 ;;
9122 hpux9* | hpux10* | hpux11*)
9123 # Give a soname corresponding to the major version so that dld.sl refuses to
9124 # link against other versions.
9125 version_type=sunos
9126 need_lib_prefix=no
9127 need_version=no
9128 case $host_cpu in
9129 ia64*)
9130 shrext_cmds='.so'
9131 hardcode_into_libs=yes
9132 dynamic_linker="$host_os dld.so"
9133 shlibpath_var=LD_LIBRARY_PATH
9134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136 soname_spec='${libname}${release}${shared_ext}$major'
9137 if test "X$HPUX_IA64_MODE" = X32; then
9138 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9139 else
9140 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9141 fi
9142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9143 ;;
9144 hppa*64*)
9145 shrext_cmds='.sl'
9146 hardcode_into_libs=yes
9147 dynamic_linker="$host_os dld.sl"
9148 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9154 ;;
9155 *)
9156 shrext_cmds='.sl'
9157 dynamic_linker="$host_os dld.sl"
9158 shlibpath_var=SHLIB_PATH
9159 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 ;;
9163 esac
9164 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9165 postinstall_cmds='chmod 555 $lib'
9166 ;;
9168 interix3*)
9169 version_type=linux
9170 need_lib_prefix=no
9171 need_version=no
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 shlibpath_overrides_runpath=no
9177 hardcode_into_libs=yes
9178 ;;
9180 irix5* | irix6* | nonstopux*)
9181 case $host_os in
9182 nonstopux*) version_type=nonstopux ;;
9183 *)
9184 if test "$lt_cv_prog_gnu_ld" = yes; then
9185 version_type=linux
9186 else
9187 version_type=irix
9188 fi ;;
9189 esac
9190 need_lib_prefix=no
9191 need_version=no
9192 soname_spec='${libname}${release}${shared_ext}$major'
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9194 case $host_os in
9195 irix5* | nonstopux*)
9196 libsuff= shlibsuff=
9197 ;;
9198 *)
9199 case $LD in # libtool.m4 will add one of these switches to LD
9200 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9201 libsuff= shlibsuff= libmagic=32-bit;;
9202 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9203 libsuff=32 shlibsuff=N32 libmagic=N32;;
9204 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9205 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9206 *) libsuff= shlibsuff= libmagic=never-match;;
9207 esac
9208 ;;
9209 esac
9210 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9211 shlibpath_overrides_runpath=no
9212 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9213 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9214 hardcode_into_libs=yes
9215 ;;
9217 # No shared lib support for Linux oldld, aout, or coff.
9218 linux*oldld* | linux*aout* | linux*coff*)
9219 dynamic_linker=no
9220 ;;
9222 # This must be Linux ELF.
9223 linux*)
9224 version_type=linux
9225 need_lib_prefix=no
9226 need_version=no
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 shlibpath_overrides_runpath=no
9232 # This implies no fast_install, which is unacceptable.
9233 # Some rework will be needed to allow for fast_install
9234 # before this can be enabled.
9235 hardcode_into_libs=yes
9237 # Append ld.so.conf contents to the search path
9238 if test -f /etc/ld.so.conf; then
9239 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' ' '`
9240 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9241 fi
9243 # We used to test for /lib/ld.so.1 and disable shared libraries on
9244 # powerpc, because MkLinux only supported shared libraries with the
9245 # GNU dynamic linker. Since this was broken with cross compilers,
9246 # most powerpc-linux boxes support dynamic linking these days and
9247 # people can always --disable-shared, the test was removed, and we
9248 # assume the GNU/Linux dynamic linker is in use.
9249 dynamic_linker='GNU/Linux ld.so'
9250 ;;
9252 knetbsd*-gnu)
9253 version_type=linux
9254 need_lib_prefix=no
9255 need_version=no
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 shlibpath_var=LD_LIBRARY_PATH
9259 shlibpath_overrides_runpath=no
9260 hardcode_into_libs=yes
9261 dynamic_linker='GNU ld.so'
9262 ;;
9264 netbsd*)
9265 version_type=sunos
9266 need_lib_prefix=no
9267 need_version=no
9268 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9271 dynamic_linker='NetBSD (a.out) ld.so'
9272 else
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 dynamic_linker='NetBSD ld.elf_so'
9276 fi
9277 shlibpath_var=LD_LIBRARY_PATH
9278 shlibpath_overrides_runpath=yes
9279 hardcode_into_libs=yes
9280 ;;
9282 newsos6)
9283 version_type=linux
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 shlibpath_overrides_runpath=yes
9287 ;;
9289 nto-qnx*)
9290 version_type=linux
9291 need_lib_prefix=no
9292 need_version=no
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 shlibpath_overrides_runpath=yes
9297 ;;
9299 openbsd* | bitrig*)
9300 version_type=sunos
9301 sys_lib_dlsearch_path_spec="/usr/lib"
9302 need_lib_prefix=no
9303 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9304 case $host_os in
9305 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9306 *) need_version=no ;;
9307 esac
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9312 case $host_os in
9313 openbsd2.[89] | openbsd2.[89].*)
9314 shlibpath_overrides_runpath=no
9315 ;;
9316 *)
9317 shlibpath_overrides_runpath=yes
9318 ;;
9319 esac
9320 else
9321 shlibpath_overrides_runpath=yes
9322 fi
9323 ;;
9325 os2*)
9326 libname_spec='$name'
9327 shrext_cmds=".dll"
9328 need_lib_prefix=no
9329 library_names_spec='$libname${shared_ext} $libname.a'
9330 dynamic_linker='OS/2 ld.exe'
9331 shlibpath_var=LIBPATH
9332 ;;
9334 osf3* | osf4* | osf5*)
9335 version_type=osf
9336 need_lib_prefix=no
9337 need_version=no
9338 soname_spec='${libname}${release}${shared_ext}$major'
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9343 ;;
9345 solaris*)
9346 version_type=linux
9347 need_lib_prefix=no
9348 need_version=no
9349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350 soname_spec='${libname}${release}${shared_ext}$major'
9351 shlibpath_var=LD_LIBRARY_PATH
9352 shlibpath_overrides_runpath=yes
9353 hardcode_into_libs=yes
9354 # ldd complains unless libraries are executable
9355 postinstall_cmds='chmod +x $lib'
9356 ;;
9358 sunos4*)
9359 version_type=sunos
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9361 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 shlibpath_overrides_runpath=yes
9364 if test "$with_gnu_ld" = yes; then
9365 need_lib_prefix=no
9366 fi
9367 need_version=yes
9368 ;;
9370 sysv4 | sysv4.3*)
9371 version_type=linux
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 shlibpath_var=LD_LIBRARY_PATH
9375 case $host_vendor in
9376 sni)
9377 shlibpath_overrides_runpath=no
9378 need_lib_prefix=no
9379 export_dynamic_flag_spec='${wl}-Blargedynsym'
9380 runpath_var=LD_RUN_PATH
9381 ;;
9382 siemens)
9383 need_lib_prefix=no
9384 ;;
9385 motorola)
9386 need_lib_prefix=no
9387 need_version=no
9388 shlibpath_overrides_runpath=no
9389 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9390 ;;
9391 esac
9392 ;;
9394 sysv4*MP*)
9395 if test -d /usr/nec ;then
9396 version_type=linux
9397 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9398 soname_spec='$libname${shared_ext}.$major'
9399 shlibpath_var=LD_LIBRARY_PATH
9400 fi
9401 ;;
9403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9404 version_type=freebsd-elf
9405 need_lib_prefix=no
9406 need_version=no
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 hardcode_into_libs=yes
9411 if test "$with_gnu_ld" = yes; then
9412 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9413 shlibpath_overrides_runpath=no
9414 else
9415 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9416 shlibpath_overrides_runpath=yes
9417 case $host_os in
9418 sco3.2v5*)
9419 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9420 ;;
9421 esac
9422 fi
9423 sys_lib_dlsearch_path_spec='/usr/lib'
9424 ;;
9426 uts4*)
9427 version_type=linux
9428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429 soname_spec='${libname}${release}${shared_ext}$major'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 ;;
9433 *)
9434 dynamic_linker=no
9435 ;;
9436 esac
9437 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9438 echo "${ECHO_T}$dynamic_linker" >&6; }
9439 test "$dynamic_linker" = no && can_build_shared=no
9441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9442 if test "$GCC" = yes; then
9443 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9444 fi
9447 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9448 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9449 if test "${libltdl_cv_shlibext+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9453 module=yes
9454 eval libltdl_cv_shlibext=$shrext_cmds
9456 fi
9457 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9458 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9459 if test -n "$libltdl_cv_shlibext"; then
9461 cat >>confdefs.h <<_ACEOF
9462 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9463 _ACEOF
9465 fi
9468 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9469 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9470 if test "${libltdl_cv_sys_search_path+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9474 fi
9475 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9476 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9477 if test -n "$libltdl_cv_sys_search_path"; then
9478 sys_search_path=
9479 for dir in $libltdl_cv_sys_search_path; do
9480 if test -z "$sys_search_path"; then
9481 sys_search_path="$dir"
9482 else
9483 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9484 fi
9485 done
9487 cat >>confdefs.h <<_ACEOF
9488 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9489 _ACEOF
9491 fi
9493 { echo "$as_me:$LINENO: checking for objdir" >&5
9494 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9495 if test "${libltdl_cv_objdir+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498 libltdl_cv_objdir="$objdir"
9499 if test -n "$objdir"; then
9500 :
9501 else
9502 rm -f .libs 2>/dev/null
9503 mkdir .libs 2>/dev/null
9504 if test -d .libs; then
9505 libltdl_cv_objdir=.libs
9506 else
9507 # MS-DOS does not allow filenames that begin with a dot.
9508 libltdl_cv_objdir=_libs
9509 fi
9510 rmdir .libs 2>/dev/null
9511 fi
9513 fi
9514 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9515 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9517 cat >>confdefs.h <<_ACEOF
9518 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9519 _ACEOF
9526 # Check for command to grab the raw symbol name followed by C symbol from nm.
9527 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9528 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9529 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 else
9533 # These are sane defaults that work on at least a few old systems.
9534 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9536 # Character class describing NM global symbol codes.
9537 symcode='[BCDEGRST]'
9539 # Regexp to match symbols that can be accessed directly from C.
9540 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9542 # Transform an extracted symbol line into a proper C declaration
9543 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9545 # Transform an extracted symbol line into symbol name and symbol address
9546 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'"
9548 # Define system-specific variables.
9549 case $host_os in
9550 aix*)
9551 symcode='[BCDT]'
9552 ;;
9553 cygwin* | mingw* | pw32*)
9554 symcode='[ABCDGISTW]'
9555 ;;
9556 hpux*) # Its linker distinguishes data from code symbols
9557 if test "$host_cpu" = ia64; then
9558 symcode='[ABCDEGRST]'
9559 fi
9560 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9561 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'"
9562 ;;
9563 linux*)
9564 if test "$host_cpu" = ia64; then
9565 symcode='[ABCDGIRSTW]'
9566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9567 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'"
9568 fi
9569 ;;
9570 irix* | nonstopux*)
9571 symcode='[BCDEGRST]'
9572 ;;
9573 osf*)
9574 symcode='[BCDEGQRST]'
9575 ;;
9576 solaris*)
9577 symcode='[BDRT]'
9578 ;;
9579 sco3.2v5*)
9580 symcode='[DT]'
9581 ;;
9582 sysv4.2uw2*)
9583 symcode='[DT]'
9584 ;;
9585 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9586 symcode='[ABDT]'
9587 ;;
9588 sysv4)
9589 symcode='[DFNSTU]'
9590 ;;
9591 esac
9593 # Handle CRLF in mingw tool chain
9594 opt_cr=
9595 case $build_os in
9596 mingw*)
9597 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9598 ;;
9599 esac
9601 # If we're using GNU nm, then use its standard symbol codes.
9602 case `$NM -V 2>&1` in
9603 *GNU* | *'with BFD'*)
9604 symcode='[ABCDGIRSTW]' ;;
9605 esac
9607 # Try without a prefix undercore, then with it.
9608 for ac_symprfx in "" "_"; do
9610 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9611 symxfrm="\\1 $ac_symprfx\\2 \\2"
9613 # Write the raw and C identifiers.
9614 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9616 # Check to see that the pipe works correctly.
9617 pipe_works=no
9619 rm -f conftest*
9620 cat > conftest.$ac_ext <<EOF
9621 #ifdef __cplusplus
9622 extern "C" {
9623 #endif
9624 char nm_test_var;
9625 void nm_test_func(){}
9626 #ifdef __cplusplus
9627 }
9628 #endif
9629 int main(){nm_test_var='a';nm_test_func();return(0);}
9630 EOF
9632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9633 (eval $ac_compile) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; then
9637 # Now try to grab the symbols.
9638 nlist=conftest.nm
9639 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9640 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && test -s "$nlist"; then
9644 # Try sorting and uniquifying the output.
9645 if sort "$nlist" | uniq > "$nlist"T; then
9646 mv -f "$nlist"T "$nlist"
9647 else
9648 rm -f "$nlist"T
9649 fi
9651 # Make sure that we snagged all the symbols we need.
9652 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9653 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9654 cat <<EOF > conftest.$ac_ext
9655 #ifdef __cplusplus
9656 extern "C" {
9657 #endif
9659 EOF
9660 # Now generate the symbol file.
9661 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9663 cat <<EOF >> conftest.$ac_ext
9664 #if defined (__STDC__) && __STDC__
9665 # define lt_ptr_t void *
9666 #else
9667 # define lt_ptr_t char *
9668 # define const
9669 #endif
9671 /* The mapping between symbol names and symbols. */
9672 const struct {
9673 const char *name;
9674 lt_ptr_t address;
9675 }
9676 lt_preloaded_symbols[] =
9677 {
9678 EOF
9679 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9680 cat <<\EOF >> conftest.$ac_ext
9681 {0, (lt_ptr_t) 0}
9682 };
9684 #ifdef __cplusplus
9685 }
9686 #endif
9687 EOF
9688 # Now try linking the two files.
9689 mv conftest.$ac_objext conftstm.$ac_objext
9690 lt_save_LIBS="$LIBS"
9691 lt_save_CFLAGS="$CFLAGS"
9692 LIBS="conftstm.$ac_objext"
9693 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695 (eval $ac_link) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9699 pipe_works=yes
9700 fi
9701 LIBS="$lt_save_LIBS"
9702 CFLAGS="$lt_save_CFLAGS"
9703 else
9704 echo "cannot find nm_test_func in $nlist" >&5
9705 fi
9706 else
9707 echo "cannot find nm_test_var in $nlist" >&5
9708 fi
9709 else
9710 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9711 fi
9712 else
9713 echo "$progname: failed program was:" >&5
9714 cat conftest.$ac_ext >&5
9715 fi
9716 rm -f conftest* conftst*
9718 # Do not use the global_symbol_pipe unless it works.
9719 if test "$pipe_works" = yes; then
9720 break
9721 else
9722 lt_cv_sys_global_symbol_pipe=
9723 fi
9724 done
9726 fi
9728 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9729 lt_cv_sys_global_symbol_to_cdecl=
9730 fi
9731 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9732 { echo "$as_me:$LINENO: result: failed" >&5
9733 echo "${ECHO_T}failed" >&6; }
9734 else
9735 { echo "$as_me:$LINENO: result: ok" >&5
9736 echo "${ECHO_T}ok" >&6; }
9737 fi
9740 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9741 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9742 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9746 libltdl_cv_preloaded_symbols=yes
9747 else
9748 libltdl_cv_preloaded_symbols=no
9749 fi
9751 fi
9752 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9753 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9754 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9756 cat >>confdefs.h <<\_ACEOF
9757 #define HAVE_PRELOADED_SYMBOLS 1
9758 _ACEOF
9760 fi
9762 LIBADD_DL=
9764 ac_ext=c
9765 ac_cpp='$CPP $CPPFLAGS'
9766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9771 { echo "$as_me:$LINENO: checking for shl_load" >&5
9772 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9773 if test "${ac_cv_func_shl_load+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h. */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9784 #define shl_load innocuous_shl_load
9786 /* System header to define __stub macros and hopefully few prototypes,
9787 which can conflict with char shl_load (); below.
9788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9789 <limits.h> exists even on freestanding compilers. */
9791 #ifdef __STDC__
9792 # include <limits.h>
9793 #else
9794 # include <assert.h>
9795 #endif
9797 #undef shl_load
9799 /* Override any GCC internal prototype to avoid an error.
9800 Use char because int might match the return type of a GCC
9801 builtin and then its argument prototype would still apply. */
9802 #ifdef __cplusplus
9803 extern "C"
9804 #endif
9805 char shl_load ();
9806 /* The GNU C library defines this for functions which it implements
9807 to always fail with ENOSYS. Some functions are actually named
9808 something starting with __ and the normal name is an alias. */
9809 #if defined __stub_shl_load || defined __stub___shl_load
9810 choke me
9811 #endif
9813 int
9814 main ()
9815 {
9816 return shl_load ();
9817 ;
9818 return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (ac_try="$ac_link"
9823 case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_link") 2>conftest.er1
9829 ac_status=$?
9830 grep -v '^ *+' conftest.er1 >conftest.err
9831 rm -f conftest.er1
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9836 { (case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_try") 2>&5
9842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } &&
9845 { ac_try='test -s conftest$ac_exeext'
9846 { (case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_try") 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9855 ac_cv_func_shl_load=yes
9856 else
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9860 ac_cv_func_shl_load=no
9861 fi
9863 rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865 fi
9866 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9867 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9868 if test $ac_cv_func_shl_load = yes; then
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_SHL_LOAD 1
9872 _ACEOF
9874 else
9875 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9876 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9877 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880 ac_check_lib_save_LIBS=$LIBS
9881 LIBS="-ldld $LIBS"
9882 cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h. */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9889 /* Override any GCC internal prototype to avoid an error.
9890 Use char because int might match the return type of a GCC
9891 builtin and then its argument prototype would still apply. */
9892 #ifdef __cplusplus
9893 extern "C"
9894 #endif
9895 char shl_load ();
9896 int
9897 main ()
9898 {
9899 return shl_load ();
9900 ;
9901 return 0;
9902 }
9903 _ACEOF
9904 rm -f conftest.$ac_objext conftest$ac_exeext
9905 if { (ac_try="$ac_link"
9906 case "(($ac_try" in
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908 *) ac_try_echo=$ac_try;;
9909 esac
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911 (eval "$ac_link") 2>conftest.er1
9912 ac_status=$?
9913 grep -v '^ *+' conftest.er1 >conftest.err
9914 rm -f conftest.er1
9915 cat conftest.err >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
9918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9919 { (case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9922 esac
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_try") 2>&5
9925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try='test -s conftest$ac_exeext'
9929 { (case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932 esac
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_try") 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 ac_cv_lib_dld_shl_load=yes
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_cv_lib_dld_shl_load=no
9944 fi
9946 rm -f core conftest.err conftest.$ac_objext \
9947 conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9949 fi
9950 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9951 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9952 if test $ac_cv_lib_dld_shl_load = yes; then
9954 cat >>confdefs.h <<\_ACEOF
9955 #define HAVE_SHL_LOAD 1
9956 _ACEOF
9958 LIBADD_DL="$LIBADD_DL -ldld"
9959 else
9960 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9961 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9962 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 else
9965 ac_check_lib_save_LIBS=$LIBS
9966 LIBS="-ldl $LIBS"
9967 cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h. */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9974 /* Override any GCC internal prototype to avoid an error.
9975 Use char because int might match the return type of a GCC
9976 builtin and then its argument prototype would still apply. */
9977 #ifdef __cplusplus
9978 extern "C"
9979 #endif
9980 char dlopen ();
9981 int
9982 main ()
9983 {
9984 return dlopen ();
9985 ;
9986 return 0;
9987 }
9988 _ACEOF
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (ac_try="$ac_link"
9991 case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9994 esac
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_link") 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10004 { (case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10007 esac
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_try") 2>&5
10010 ac_status=$?
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; } &&
10013 { ac_try='test -s conftest$ac_exeext'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_cv_lib_dl_dlopen=yes
10024 else
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10028 ac_cv_lib_dl_dlopen=no
10029 fi
10031 rm -f core conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033 LIBS=$ac_check_lib_save_LIBS
10034 fi
10035 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10036 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10037 if test $ac_cv_lib_dl_dlopen = yes; then
10039 cat >>confdefs.h <<\_ACEOF
10040 #define HAVE_LIBDL 1
10041 _ACEOF
10043 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10044 else
10045 cat >conftest.$ac_ext <<_ACEOF
10046 /* confdefs.h. */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10051 #if HAVE_DLFCN_H
10052 # include <dlfcn.h>
10053 #endif
10055 int
10056 main ()
10057 {
10058 dlopen(0, 0);
10059 ;
10060 return 0;
10061 }
10062 _ACEOF
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (ac_try="$ac_link"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_link") 2>conftest.er1
10071 ac_status=$?
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10078 { (case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10081 esac
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_try") 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; } &&
10087 { ac_try='test -s conftest$ac_exeext'
10088 { (case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10091 esac
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_try") 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10098 cat >>confdefs.h <<\_ACEOF
10099 #define HAVE_LIBDL 1
10100 _ACEOF
10101 libltdl_cv_func_dlopen="yes"
10102 else
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10107 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10108 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 else
10111 ac_check_lib_save_LIBS=$LIBS
10112 LIBS="-lsvld $LIBS"
10113 cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h. */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10120 /* Override any GCC internal prototype to avoid an error.
10121 Use char because int might match the return type of a GCC
10122 builtin and then its argument prototype would still apply. */
10123 #ifdef __cplusplus
10124 extern "C"
10125 #endif
10126 char dlopen ();
10127 int
10128 main ()
10129 {
10130 return dlopen ();
10131 ;
10132 return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (ac_try="$ac_link"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140 esac
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_link") 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10150 { (case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10153 esac
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_try") 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; } &&
10159 { ac_try='test -s conftest$ac_exeext'
10160 { (case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10163 esac
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_try") 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_lib_svld_dlopen=yes
10170 else
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ac_cv_lib_svld_dlopen=no
10175 fi
10177 rm -f core conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10180 fi
10181 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10182 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10183 if test $ac_cv_lib_svld_dlopen = yes; then
10185 cat >>confdefs.h <<\_ACEOF
10186 #define HAVE_LIBDL 1
10187 _ACEOF
10189 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10190 else
10191 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10192 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10193 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 else
10196 ac_check_lib_save_LIBS=$LIBS
10197 LIBS="-ldld $LIBS"
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h. */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10205 /* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10208 #ifdef __cplusplus
10209 extern "C"
10210 #endif
10211 char dld_link ();
10212 int
10213 main ()
10214 {
10215 return dld_link ();
10216 ;
10217 return 0;
10218 }
10219 _ACEOF
10220 rm -f conftest.$ac_objext conftest$ac_exeext
10221 if { (ac_try="$ac_link"
10222 case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10225 esac
10226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227 (eval "$ac_link") 2>conftest.er1
10228 ac_status=$?
10229 grep -v '^ *+' conftest.er1 >conftest.err
10230 rm -f conftest.er1
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10235 { (case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10238 esac
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_try") 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest$ac_exeext'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 ac_cv_lib_dld_dld_link=yes
10255 else
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 ac_cv_lib_dld_dld_link=no
10260 fi
10262 rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10265 fi
10266 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10267 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10268 if test $ac_cv_lib_dld_dld_link = yes; then
10270 cat >>confdefs.h <<\_ACEOF
10271 #define HAVE_DLD 1
10272 _ACEOF
10274 LIBADD_DL="$LIBADD_DL -ldld"
10275 else
10276 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10277 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10278 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10289 #define _dyld_func_lookup innocuous__dyld_func_lookup
10291 /* System header to define __stub macros and hopefully few prototypes,
10292 which can conflict with char _dyld_func_lookup (); below.
10293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10294 <limits.h> exists even on freestanding compilers. */
10296 #ifdef __STDC__
10297 # include <limits.h>
10298 #else
10299 # include <assert.h>
10300 #endif
10302 #undef _dyld_func_lookup
10304 /* Override any GCC internal prototype to avoid an error.
10305 Use char because int might match the return type of a GCC
10306 builtin and then its argument prototype would still apply. */
10307 #ifdef __cplusplus
10308 extern "C"
10309 #endif
10310 char _dyld_func_lookup ();
10311 /* The GNU C library defines this for functions which it implements
10312 to always fail with ENOSYS. Some functions are actually named
10313 something starting with __ and the normal name is an alias. */
10314 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10315 choke me
10316 #endif
10318 int
10319 main ()
10320 {
10321 return _dyld_func_lookup ();
10322 ;
10323 return 0;
10324 }
10325 _ACEOF
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (ac_try="$ac_link"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10331 esac
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_link") 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10341 { (case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10344 esac
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_try") 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; } &&
10350 { ac_try='test -s conftest$ac_exeext'
10351 { (case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10354 esac
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_try") 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
10360 ac_cv_func__dyld_func_lookup=yes
10361 else
10362 echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10365 ac_cv_func__dyld_func_lookup=no
10366 fi
10368 rm -f core conftest.err conftest.$ac_objext \
10369 conftest$ac_exeext conftest.$ac_ext
10370 fi
10371 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10372 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10373 if test $ac_cv_func__dyld_func_lookup = yes; then
10375 cat >>confdefs.h <<\_ACEOF
10376 #define HAVE_DYLD 1
10377 _ACEOF
10379 fi
10382 fi
10385 fi
10388 fi
10390 rm -f core conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10393 fi
10396 fi
10399 fi
10402 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10403 then
10404 lt_save_LIBS="$LIBS"
10405 LIBS="$LIBS $LIBADD_DL"
10407 for ac_func in dlerror
10408 do
10409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10415 cat >conftest.$ac_ext <<_ACEOF
10416 /* confdefs.h. */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10423 #define $ac_func innocuous_$ac_func
10425 /* System header to define __stub macros and hopefully few prototypes,
10426 which can conflict with char $ac_func (); below.
10427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10428 <limits.h> exists even on freestanding compilers. */
10430 #ifdef __STDC__
10431 # include <limits.h>
10432 #else
10433 # include <assert.h>
10434 #endif
10436 #undef $ac_func
10438 /* Override any GCC internal prototype to avoid an error.
10439 Use char because int might match the return type of a GCC
10440 builtin and then its argument prototype would still apply. */
10441 #ifdef __cplusplus
10442 extern "C"
10443 #endif
10444 char $ac_func ();
10445 /* The GNU C library defines this for functions which it implements
10446 to always fail with ENOSYS. Some functions are actually named
10447 something starting with __ and the normal name is an alias. */
10448 #if defined __stub_$ac_func || defined __stub___$ac_func
10449 choke me
10450 #endif
10452 int
10453 main ()
10454 {
10455 return $ac_func ();
10456 ;
10457 return 0;
10458 }
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (ac_try="$ac_link"
10462 case "(($ac_try" in
10463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10465 esac
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_link") 2>conftest.er1
10468 ac_status=$?
10469 grep -v '^ *+' conftest.er1 >conftest.err
10470 rm -f conftest.er1
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10484 { ac_try='test -s conftest$ac_exeext'
10485 { (case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10488 esac
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_try") 2>&5
10491 ac_status=$?
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 eval "$as_ac_var=yes"
10495 else
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 eval "$as_ac_var=no"
10500 fi
10502 rm -f core conftest.err conftest.$ac_objext \
10503 conftest$ac_exeext conftest.$ac_ext
10504 fi
10505 ac_res=`eval echo '${'$as_ac_var'}'`
10506 { echo "$as_me:$LINENO: result: $ac_res" >&5
10507 echo "${ECHO_T}$ac_res" >&6; }
10508 if test `eval echo '${'$as_ac_var'}'` = yes; then
10509 cat >>confdefs.h <<_ACEOF
10510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10511 _ACEOF
10513 fi
10514 done
10516 LIBS="$lt_save_LIBS"
10517 fi
10518 ac_ext=c
10519 ac_cpp='$CPP $CPPFLAGS'
10520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10526 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10527 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10528 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 else
10531 ac_cv_sys_symbol_underscore=no
10532 cat > conftest.$ac_ext <<EOF
10533 void nm_test_func(){}
10534 int main(){nm_test_func;return 0;}
10535 EOF
10536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10537 (eval $ac_compile) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; then
10541 # Now try to grab the symbols.
10542 ac_nlist=conftest.nm
10543 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10544 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && test -s "$ac_nlist"; then
10548 # See whether the symbols have a leading underscore.
10549 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10550 ac_cv_sys_symbol_underscore=yes
10551 else
10552 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10553 :
10554 else
10555 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10556 fi
10557 fi
10558 else
10559 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10560 fi
10561 else
10562 echo "configure: failed program was:" >&5
10563 cat conftest.c >&5
10564 fi
10565 rm -rf conftest*
10567 fi
10568 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10569 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10572 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10573 if test x"$libltdl_cv_func_dlopen" = xyes ||
10574 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10575 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10576 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10577 if test "${libltdl_cv_need_uscore+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580 libltdl_cv_need_uscore=unknown
10581 save_LIBS="$LIBS"
10582 LIBS="$LIBS $LIBADD_DL"
10583 if test "$cross_compiling" = yes; then :
10584 libltdl_cv_need_uscore=cross
10585 else
10586 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10587 lt_status=$lt_dlunknown
10588 cat > conftest.$ac_ext <<EOF
10589 #line 10589 "configure"
10590 #include "confdefs.h"
10592 #if HAVE_DLFCN_H
10593 #include <dlfcn.h>
10594 #endif
10596 #include <stdio.h>
10598 #ifdef RTLD_GLOBAL
10599 # define LT_DLGLOBAL RTLD_GLOBAL
10600 #else
10601 # ifdef DL_GLOBAL
10602 # define LT_DLGLOBAL DL_GLOBAL
10603 # else
10604 # define LT_DLGLOBAL 0
10605 # endif
10606 #endif
10608 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10609 find out it does not work in some platform. */
10610 #ifndef LT_DLLAZY_OR_NOW
10611 # ifdef RTLD_LAZY
10612 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10613 # else
10614 # ifdef DL_LAZY
10615 # define LT_DLLAZY_OR_NOW DL_LAZY
10616 # else
10617 # ifdef RTLD_NOW
10618 # define LT_DLLAZY_OR_NOW RTLD_NOW
10619 # else
10620 # ifdef DL_NOW
10621 # define LT_DLLAZY_OR_NOW DL_NOW
10622 # else
10623 # define LT_DLLAZY_OR_NOW 0
10624 # endif
10625 # endif
10626 # endif
10627 # endif
10628 #endif
10630 #ifdef __cplusplus
10631 extern "C" void exit (int);
10632 #endif
10634 void fnord() { int i=42;}
10635 int main ()
10636 {
10637 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10638 int status = $lt_dlunknown;
10640 if (self)
10641 {
10642 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10643 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10644 /* dlclose (self); */
10645 }
10646 else
10647 puts (dlerror ());
10649 exit (status);
10650 }
10651 EOF
10652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10653 (eval $ac_link) 2>&5
10654 ac_status=$?
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10657 (./conftest; exit; ) >&5 2>/dev/null
10658 lt_status=$?
10659 case x$lt_status in
10660 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10661 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10662 x$lt_dlunknown|x*) ;;
10663 esac
10664 else :
10665 # compilation failed
10667 fi
10668 fi
10669 rm -fr conftest*
10671 LIBS="$save_LIBS"
10673 fi
10674 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10675 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10676 fi
10677 fi
10679 if test x"$libltdl_cv_need_uscore" = xyes; then
10681 cat >>confdefs.h <<\_ACEOF
10682 #define NEED_USCORE 1
10683 _ACEOF
10685 fi
10688 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10689 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10690 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 else
10693 # PORTME does your system automatically load deplibs for dlopen?
10694 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10695 # For now, we just catch OSes we know something about -- in the
10696 # future, we'll try test this programmatically.
10697 libltdl_cv_sys_dlopen_deplibs=unknown
10698 case "$host_os" in
10699 aix3*|aix4.1.*|aix4.2.*)
10700 # Unknown whether this is true for these versions of AIX, but
10701 # we want this `case' here to explicitly catch those versions.
10702 libltdl_cv_sys_dlopen_deplibs=unknown
10703 ;;
10704 aix[45]*)
10705 libltdl_cv_sys_dlopen_deplibs=yes
10706 ;;
10707 darwin*)
10708 # Assuming the user has installed a libdl from somewhere, this is true
10709 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10710 libltdl_cv_sys_dlopen_deplibs=yes
10711 ;;
10712 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10713 # GNU and its variants, using gnu ld.so (Glibc)
10714 libltdl_cv_sys_dlopen_deplibs=yes
10715 ;;
10716 hpux10*|hpux11*)
10717 libltdl_cv_sys_dlopen_deplibs=yes
10718 ;;
10719 interix*)
10720 libltdl_cv_sys_dlopen_deplibs=yes
10721 ;;
10722 irix[12345]*|irix6.[01]*)
10723 # Catch all versions of IRIX before 6.2, and indicate that we don't
10724 # know how it worked for any of those versions.
10725 libltdl_cv_sys_dlopen_deplibs=unknown
10726 ;;
10727 irix*)
10728 # The case above catches anything before 6.2, and it's known that
10729 # at 6.2 and later dlopen does load deplibs.
10730 libltdl_cv_sys_dlopen_deplibs=yes
10731 ;;
10732 netbsd*)
10733 libltdl_cv_sys_dlopen_deplibs=yes
10734 ;;
10735 openbsd*)
10736 libltdl_cv_sys_dlopen_deplibs=yes
10737 ;;
10738 osf[1234]*)
10739 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10740 # it did *not* use an RPATH in a shared library to find objects the
10741 # library depends on, so we explicitly say `no'.
10742 libltdl_cv_sys_dlopen_deplibs=no
10743 ;;
10744 osf5.0|osf5.0a|osf5.1)
10745 # dlopen *does* load deplibs and with the right loader patch applied
10746 # it even uses RPATH in a shared library to search for shared objects
10747 # that the library depends on, but there's no easy way to know if that
10748 # patch is installed. Since this is the case, all we can really
10749 # say is unknown -- it depends on the patch being installed. If
10750 # it is, this changes to `yes'. Without it, it would be `no'.
10751 libltdl_cv_sys_dlopen_deplibs=unknown
10752 ;;
10753 osf*)
10754 # the two cases above should catch all versions of osf <= 5.1. Read
10755 # the comments above for what we know about them.
10756 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10757 # is used to find them so we can finally say `yes'.
10758 libltdl_cv_sys_dlopen_deplibs=yes
10759 ;;
10760 solaris*)
10761 libltdl_cv_sys_dlopen_deplibs=yes
10762 ;;
10763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10764 libltdl_cv_sys_dlopen_deplibs=yes
10765 ;;
10766 esac
10768 fi
10769 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10770 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10771 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10773 cat >>confdefs.h <<\_ACEOF
10774 #define LTDL_DLOPEN_DEPLIBS 1
10775 _ACEOF
10777 fi
10780 for ac_header in argz.h
10781 do
10782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 fi
10789 ac_res=`eval echo '${'$as_ac_Header'}'`
10790 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791 echo "${ECHO_T}$ac_res" >&6; }
10792 else
10793 # Is the header compilable?
10794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h. */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 $ac_includes_default
10803 #include <$ac_header>
10804 _ACEOF
10805 rm -f conftest.$ac_objext
10806 if { (ac_try="$ac_compile"
10807 case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_compile") 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10820 { (case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10823 esac
10824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_try") 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; } &&
10829 { ac_try='test -s conftest.$ac_objext'
10830 { (case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10833 esac
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_try") 2>&5
10836 ac_status=$?
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; }; then
10839 ac_header_compiler=yes
10840 else
10841 echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.$ac_ext >&5
10844 ac_header_compiler=no
10845 fi
10847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10849 echo "${ECHO_T}$ac_header_compiler" >&6; }
10851 # Is the header present?
10852 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10854 cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h. */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 #include <$ac_header>
10861 _ACEOF
10862 if { (ac_try="$ac_cpp conftest.$ac_ext"
10863 case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } >/dev/null; then
10875 if test -s conftest.err; then
10876 ac_cpp_err=$ac_c_preproc_warn_flag
10877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10878 else
10879 ac_cpp_err=
10880 fi
10881 else
10882 ac_cpp_err=yes
10883 fi
10884 if test -z "$ac_cpp_err"; then
10885 ac_header_preproc=yes
10886 else
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10890 ac_header_preproc=no
10891 fi
10893 rm -f conftest.err conftest.$ac_ext
10894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10895 echo "${ECHO_T}$ac_header_preproc" >&6; }
10897 # So? What about this header?
10898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10899 yes:no: )
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10904 ac_header_preproc=yes
10905 ;;
10906 no:yes:* )
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10919 ( cat <<\_ASBOX
10920 ## ------------------------------------ ##
10921 ## Report this to http://llvm.org/bugs/ ##
10922 ## ------------------------------------ ##
10923 _ASBOX
10924 ) | sed "s/^/$as_me: WARNING: /" >&2
10925 ;;
10926 esac
10927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10931 else
10932 eval "$as_ac_Header=\$ac_header_preproc"
10933 fi
10934 ac_res=`eval echo '${'$as_ac_Header'}'`
10935 { echo "$as_me:$LINENO: result: $ac_res" >&5
10936 echo "${ECHO_T}$ac_res" >&6; }
10938 fi
10939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10940 cat >>confdefs.h <<_ACEOF
10941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10942 _ACEOF
10944 fi
10946 done
10949 { echo "$as_me:$LINENO: checking for error_t" >&5
10950 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10951 if test "${ac_cv_type_error_t+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10954 cat >conftest.$ac_ext <<_ACEOF
10955 /* confdefs.h. */
10956 _ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h. */
10960 #if HAVE_ARGZ_H
10961 # include <argz.h>
10962 #endif
10964 typedef error_t ac__type_new_;
10965 int
10966 main ()
10967 {
10968 if ((ac__type_new_ *) 0)
10969 return 0;
10970 if (sizeof (ac__type_new_))
10971 return 0;
10972 ;
10973 return 0;
10974 }
10975 _ACEOF
10976 rm -f conftest.$ac_objext
10977 if { (ac_try="$ac_compile"
10978 case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10981 esac
10982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983 (eval "$ac_compile") 2>conftest.er1
10984 ac_status=$?
10985 grep -v '^ *+' conftest.er1 >conftest.err
10986 rm -f conftest.er1
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } &&
10990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10991 { (case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10994 esac
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_try") 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest.$ac_objext'
11001 { (case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004 esac
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_try") 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11010 ac_cv_type_error_t=yes
11011 else
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 ac_cv_type_error_t=no
11016 fi
11018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019 fi
11020 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11021 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11022 if test $ac_cv_type_error_t = yes; then
11024 cat >>confdefs.h <<_ACEOF
11025 #define HAVE_ERROR_T 1
11026 _ACEOF
11029 else
11031 cat >>confdefs.h <<\_ACEOF
11032 #define error_t int
11033 _ACEOF
11035 fi
11043 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11044 do
11045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11059 #define $ac_func innocuous_$ac_func
11061 /* System header to define __stub macros and hopefully few prototypes,
11062 which can conflict with char $ac_func (); below.
11063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11064 <limits.h> exists even on freestanding compilers. */
11066 #ifdef __STDC__
11067 # include <limits.h>
11068 #else
11069 # include <assert.h>
11070 #endif
11072 #undef $ac_func
11074 /* Override any GCC internal prototype to avoid an error.
11075 Use char because int might match the return type of a GCC
11076 builtin and then its argument prototype would still apply. */
11077 #ifdef __cplusplus
11078 extern "C"
11079 #endif
11080 char $ac_func ();
11081 /* The GNU C library defines this for functions which it implements
11082 to always fail with ENOSYS. Some functions are actually named
11083 something starting with __ and the normal name is an alias. */
11084 #if defined __stub_$ac_func || defined __stub___$ac_func
11085 choke me
11086 #endif
11088 int
11089 main ()
11090 {
11091 return $ac_func ();
11092 ;
11093 return 0;
11094 }
11095 _ACEOF
11096 rm -f conftest.$ac_objext conftest$ac_exeext
11097 if { (ac_try="$ac_link"
11098 case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101 esac
11102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_link") 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
11110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11111 { (case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11114 esac
11115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11116 (eval "$ac_try") 2>&5
11117 ac_status=$?
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; } &&
11120 { ac_try='test -s conftest$ac_exeext'
11121 { (case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_try") 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; }; then
11130 eval "$as_ac_var=yes"
11131 else
11132 echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11135 eval "$as_ac_var=no"
11136 fi
11138 rm -f core conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
11140 fi
11141 ac_res=`eval echo '${'$as_ac_var'}'`
11142 { echo "$as_me:$LINENO: result: $ac_res" >&5
11143 echo "${ECHO_T}$ac_res" >&6; }
11144 if test `eval echo '${'$as_ac_var'}'` = yes; then
11145 cat >>confdefs.h <<_ACEOF
11146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11147 _ACEOF
11149 fi
11150 done
11174 for ac_header in errno.h malloc.h memory.h unistd.h
11175 do
11176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 fi
11183 ac_res=`eval echo '${'$as_ac_Header'}'`
11184 { echo "$as_me:$LINENO: result: $ac_res" >&5
11185 echo "${ECHO_T}$ac_res" >&6; }
11186 else
11187 # Is the header compilable?
11188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11190 cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h. */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 $ac_includes_default
11197 #include <$ac_header>
11198 _ACEOF
11199 rm -f conftest.$ac_objext
11200 if { (ac_try="$ac_compile"
11201 case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11204 esac
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_compile") 2>conftest.er1
11207 ac_status=$?
11208 grep -v '^ *+' conftest.er1 >conftest.err
11209 rm -f conftest.er1
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } &&
11213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11214 { (case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11217 esac
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_try") 2>&5
11220 ac_status=$?
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); }; } &&
11223 { ac_try='test -s conftest.$ac_objext'
11224 { (case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11227 esac
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_try") 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 ac_header_compiler=yes
11234 else
11235 echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11238 ac_header_compiler=no
11239 fi
11241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11243 echo "${ECHO_T}$ac_header_compiler" >&6; }
11245 # Is the header present?
11246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11248 cat >conftest.$ac_ext <<_ACEOF
11249 /* confdefs.h. */
11250 _ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11254 #include <$ac_header>
11255 _ACEOF
11256 if { (ac_try="$ac_cpp conftest.$ac_ext"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } >/dev/null; then
11269 if test -s conftest.err; then
11270 ac_cpp_err=$ac_c_preproc_warn_flag
11271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11272 else
11273 ac_cpp_err=
11274 fi
11275 else
11276 ac_cpp_err=yes
11277 fi
11278 if test -z "$ac_cpp_err"; then
11279 ac_header_preproc=yes
11280 else
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_header_preproc=no
11285 fi
11287 rm -f conftest.err conftest.$ac_ext
11288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11289 echo "${ECHO_T}$ac_header_preproc" >&6; }
11291 # So? What about this header?
11292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11293 yes:no: )
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11298 ac_header_preproc=yes
11299 ;;
11300 no:yes:* )
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11313 ( cat <<\_ASBOX
11314 ## ------------------------------------ ##
11315 ## Report this to http://llvm.org/bugs/ ##
11316 ## ------------------------------------ ##
11317 _ASBOX
11318 ) | sed "s/^/$as_me: WARNING: /" >&2
11319 ;;
11320 esac
11321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11325 else
11326 eval "$as_ac_Header=\$ac_header_preproc"
11327 fi
11328 ac_res=`eval echo '${'$as_ac_Header'}'`
11329 { echo "$as_me:$LINENO: result: $ac_res" >&5
11330 echo "${ECHO_T}$ac_res" >&6; }
11332 fi
11333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11334 cat >>confdefs.h <<_ACEOF
11335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11336 _ACEOF
11338 fi
11340 done
11343 for ac_header in mach-o/dyld.h
11344 do
11345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 fi
11352 ac_res=`eval echo '${'$as_ac_Header'}'`
11353 { echo "$as_me:$LINENO: result: $ac_res" >&5
11354 echo "${ECHO_T}$ac_res" >&6; }
11355 else
11356 # Is the header compilable?
11357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11359 cat >conftest.$ac_ext <<_ACEOF
11360 /* confdefs.h. */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365 $ac_includes_default
11366 #include <$ac_header>
11367 _ACEOF
11368 rm -f conftest.$ac_objext
11369 if { (ac_try="$ac_compile"
11370 case "(($ac_try" in
11371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372 *) ac_try_echo=$ac_try;;
11373 esac
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375 (eval "$ac_compile") 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11383 { (case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11386 esac
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388 (eval "$ac_try") 2>&5
11389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; } &&
11392 { ac_try='test -s conftest.$ac_objext'
11393 { (case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_try") 2>&5
11399 ac_status=$?
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; }; then
11402 ac_header_compiler=yes
11403 else
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11407 ac_header_compiler=no
11408 fi
11410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11412 echo "${ECHO_T}$ac_header_compiler" >&6; }
11414 # Is the header present?
11415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11417 cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h. */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 #include <$ac_header>
11424 _ACEOF
11425 if { (ac_try="$ac_cpp conftest.$ac_ext"
11426 case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11429 esac
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } >/dev/null; then
11438 if test -s conftest.err; then
11439 ac_cpp_err=$ac_c_preproc_warn_flag
11440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11441 else
11442 ac_cpp_err=
11443 fi
11444 else
11445 ac_cpp_err=yes
11446 fi
11447 if test -z "$ac_cpp_err"; then
11448 ac_header_preproc=yes
11449 else
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 ac_header_preproc=no
11454 fi
11456 rm -f conftest.err conftest.$ac_ext
11457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11458 echo "${ECHO_T}$ac_header_preproc" >&6; }
11460 # So? What about this header?
11461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11462 yes:no: )
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11467 ac_header_preproc=yes
11468 ;;
11469 no:yes:* )
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11482 ( cat <<\_ASBOX
11483 ## ------------------------------------ ##
11484 ## Report this to http://llvm.org/bugs/ ##
11485 ## ------------------------------------ ##
11486 _ASBOX
11487 ) | sed "s/^/$as_me: WARNING: /" >&2
11488 ;;
11489 esac
11490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 else
11495 eval "$as_ac_Header=\$ac_header_preproc"
11496 fi
11497 ac_res=`eval echo '${'$as_ac_Header'}'`
11498 { echo "$as_me:$LINENO: result: $ac_res" >&5
11499 echo "${ECHO_T}$ac_res" >&6; }
11501 fi
11502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11503 cat >>confdefs.h <<_ACEOF
11504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11505 _ACEOF
11507 fi
11509 done
11515 for ac_func in closedir opendir readdir
11516 do
11517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 else
11523 cat >conftest.$ac_ext <<_ACEOF
11524 /* confdefs.h. */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11531 #define $ac_func innocuous_$ac_func
11533 /* System header to define __stub macros and hopefully few prototypes,
11534 which can conflict with char $ac_func (); below.
11535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11536 <limits.h> exists even on freestanding compilers. */
11538 #ifdef __STDC__
11539 # include <limits.h>
11540 #else
11541 # include <assert.h>
11542 #endif
11544 #undef $ac_func
11546 /* Override any GCC internal prototype to avoid an error.
11547 Use char because int might match the return type of a GCC
11548 builtin and then its argument prototype would still apply. */
11549 #ifdef __cplusplus
11550 extern "C"
11551 #endif
11552 char $ac_func ();
11553 /* The GNU C library defines this for functions which it implements
11554 to always fail with ENOSYS. Some functions are actually named
11555 something starting with __ and the normal name is an alias. */
11556 #if defined __stub_$ac_func || defined __stub___$ac_func
11557 choke me
11558 #endif
11560 int
11561 main ()
11562 {
11563 return $ac_func ();
11564 ;
11565 return 0;
11566 }
11567 _ACEOF
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (ac_try="$ac_link"
11570 case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11573 esac
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_link") 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11583 { (case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11586 esac
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_try") 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try='test -s conftest$ac_exeext'
11593 { (case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596 esac
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_try") 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 eval "$as_ac_var=yes"
11603 else
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11607 eval "$as_ac_var=no"
11608 fi
11610 rm -f core conftest.err conftest.$ac_objext \
11611 conftest$ac_exeext conftest.$ac_ext
11612 fi
11613 ac_res=`eval echo '${'$as_ac_var'}'`
11614 { echo "$as_me:$LINENO: result: $ac_res" >&5
11615 echo "${ECHO_T}$ac_res" >&6; }
11616 if test `eval echo '${'$as_ac_var'}'` = yes; then
11617 cat >>confdefs.h <<_ACEOF
11618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11619 _ACEOF
11621 fi
11622 done
11626 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11627 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11629 ICC=no
11630 IXX=no
11631 case $CC in
11632 icc*|icpc*)
11633 ICC=yes
11634 IXX=yes
11635 ;;
11636 *)
11637 ;;
11638 esac
11640 if test "$GCC" != "yes" && test "$ICC" != "yes"
11641 then
11642 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11643 echo "$as_me: error: gcc|icc required but not found" >&2;}
11644 { (exit 1); exit 1; }; }
11645 fi
11647 if test "$GXX" != "yes" && test "$IXX" != "yes"
11648 then
11649 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11650 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11651 { (exit 1); exit 1; }; }
11652 fi
11654 if test "$GCC" = "yes"
11655 then
11656 cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h. */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11664 #if !defined(__GNUC__) || __GNUC__ < 3
11665 #error Unsupported GCC version
11666 #endif
11669 _ACEOF
11670 rm -f conftest.$ac_objext
11671 if { (ac_try="$ac_compile"
11672 case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11675 esac
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_compile") 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11685 { (case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11688 esac
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_try") 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698 esac
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_try") 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 :
11705 else
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11710 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11711 { (exit 1); exit 1; }; }
11712 fi
11714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11715 fi
11717 if test -z "$llvm_cv_gnu_make_command"
11718 then
11719 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11720 echo "$as_me: error: GNU Make required but not found" >&2;}
11721 { (exit 1); exit 1; }; }
11722 fi
11724 { echo "$as_me:$LINENO: result: ok" >&5
11725 echo "${ECHO_T}ok" >&6; }
11727 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11728 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11729 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11731 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11733 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11736 NO_UNINITIALIZED=
11737 NO_MAYBE_UNINITIALIZED=
11738 if test "$GXX" = "yes"
11739 then
11740 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11742 if test -z "$NO_MAYBE_UNINITIALIZED"
11743 then
11744 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11746 fi
11747 fi
11748 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11749 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11752 # Check whether --with-python was given.
11753 if test "${with_python+set}" = set; then
11754 withval=$with_python; PYTHON="$withval"
11755 fi
11758 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11759 { echo "$as_me:$LINENO: checking for python" >&5
11760 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11761 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11762 echo "${ECHO_T}user defined: $with_python" >&6; }
11763 else
11764 if test -n "$PYTHON" ; then
11765 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11766 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11767 fi
11769 # Extract the first word of "python python2 python26", so it can be a program name with args.
11770 set dummy python python2 python26; ac_word=$2
11771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11773 if test "${ac_cv_path_PYTHON+set}" = set; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 else
11776 case $PYTHON in
11777 [\\/]* | ?:[\\/]*)
11778 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11779 ;;
11780 *)
11781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782 for as_dir in $PATH
11783 do
11784 IFS=$as_save_IFS
11785 test -z "$as_dir" && as_dir=.
11786 for ac_exec_ext in '' $ac_executable_extensions; do
11787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11788 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11790 break 2
11791 fi
11792 done
11793 done
11794 IFS=$as_save_IFS
11796 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11797 echo "${ECHO_T}not found" >&6; }
11798 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11799 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11800 { (exit 1); exit 1; }; }"
11801 ;;
11802 esac
11803 fi
11804 PYTHON=$ac_cv_path_PYTHON
11805 if test -n "$PYTHON"; then
11806 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11807 echo "${ECHO_T}$PYTHON" >&6; }
11808 else
11809 { echo "$as_me:$LINENO: result: no" >&5
11810 echo "${ECHO_T}no" >&6; }
11811 fi
11814 fi
11816 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11817 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11818 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
11819 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11820 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11821 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11822 if test "$ac_python_version_major" -eq "2" \
11823 && test "$ac_python_version_minor" -ge "5" ; then
11824 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11825 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11826 else
11827 { echo "$as_me:$LINENO: result: not found" >&5
11828 echo "${ECHO_T}not found" >&6; }
11829 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11830 See \`config.log' for more details." >&5
11831 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11832 See \`config.log' for more details." >&2;}
11833 { (exit 1); exit 1; }; }
11834 fi
11838 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11839 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11840 if test "${ac_cv_lib_m_sin+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 else
11843 ac_check_lib_save_LIBS=$LIBS
11844 LIBS="-lm $LIBS"
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h. */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11852 /* Override any GCC internal prototype to avoid an error.
11853 Use char because int might match the return type of a GCC
11854 builtin and then its argument prototype would still apply. */
11855 #ifdef __cplusplus
11856 extern "C"
11857 #endif
11858 char sin ();
11859 int
11860 main ()
11861 {
11862 return sin ();
11863 ;
11864 return 0;
11865 }
11866 _ACEOF
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11872 esac
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 ac_cv_lib_m_sin=yes
11902 else
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 ac_cv_lib_m_sin=no
11907 fi
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911 LIBS=$ac_check_lib_save_LIBS
11912 fi
11913 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11914 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11915 if test $ac_cv_lib_m_sin = yes; then
11916 cat >>confdefs.h <<_ACEOF
11917 #define HAVE_LIBM 1
11918 _ACEOF
11920 LIBS="-lm $LIBS"
11922 fi
11924 if test "$llvm_cv_os_type" = "MingW" ; then
11926 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11927 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11928 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11930 else
11931 ac_check_lib_save_LIBS=$LIBS
11932 LIBS="-limagehlp $LIBS"
11933 cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h. */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11941 int
11942 main ()
11943 {
11944 return main ();
11945 ;
11946 return 0;
11947 }
11948 _ACEOF
11949 rm -f conftest.$ac_objext conftest$ac_exeext
11950 if { (ac_try="$ac_link"
11951 case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954 esac
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_link") 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } &&
11963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11964 { (case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967 esac
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_try") 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; } &&
11973 { ac_try='test -s conftest$ac_exeext'
11974 { (case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977 esac
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_try") 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
11983 ac_cv_lib_imagehlp_main=yes
11984 else
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_cv_lib_imagehlp_main=no
11989 fi
11991 rm -f core conftest.err conftest.$ac_objext \
11992 conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS
11994 fi
11995 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11996 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11997 if test $ac_cv_lib_imagehlp_main = yes; then
11998 cat >>confdefs.h <<_ACEOF
11999 #define HAVE_LIBIMAGEHLP 1
12000 _ACEOF
12002 LIBS="-limagehlp $LIBS"
12004 fi
12007 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12008 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12009 if test "${ac_cv_lib_psapi_main+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 else
12012 ac_check_lib_save_LIBS=$LIBS
12013 LIBS="-lpsapi $LIBS"
12014 cat >conftest.$ac_ext <<_ACEOF
12015 /* confdefs.h. */
12016 _ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h. */
12022 int
12023 main ()
12024 {
12025 return main ();
12026 ;
12027 return 0;
12028 }
12029 _ACEOF
12030 rm -f conftest.$ac_objext conftest$ac_exeext
12031 if { (ac_try="$ac_link"
12032 case "(($ac_try" in
12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034 *) ac_try_echo=$ac_try;;
12035 esac
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037 (eval "$ac_link") 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12045 { (case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12048 esac
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_try") 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; } &&
12054 { ac_try='test -s conftest$ac_exeext'
12055 { (case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_try") 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_lib_psapi_main=yes
12065 else
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ac_cv_lib_psapi_main=no
12070 fi
12072 rm -f core conftest.err conftest.$ac_objext \
12073 conftest$ac_exeext conftest.$ac_ext
12074 LIBS=$ac_check_lib_save_LIBS
12075 fi
12076 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12077 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12078 if test $ac_cv_lib_psapi_main = yes; then
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_LIBPSAPI 1
12081 _ACEOF
12083 LIBS="-lpsapi $LIBS"
12085 fi
12087 fi
12089 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12090 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12091 if test "${ac_cv_search_dlopen+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094 ac_func_search_save_LIBS=$LIBS
12095 cat >conftest.$ac_ext <<_ACEOF
12096 /* confdefs.h. */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12102 /* Override any GCC internal prototype to avoid an error.
12103 Use char because int might match the return type of a GCC
12104 builtin and then its argument prototype would still apply. */
12105 #ifdef __cplusplus
12106 extern "C"
12107 #endif
12108 char dlopen ();
12109 int
12110 main ()
12111 {
12112 return dlopen ();
12113 ;
12114 return 0;
12115 }
12116 _ACEOF
12117 for ac_lib in '' dl; do
12118 if test -z "$ac_lib"; then
12119 ac_res="none required"
12120 else
12121 ac_res=-l$ac_lib
12122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12123 fi
12124 rm -f conftest.$ac_objext conftest$ac_exeext
12125 if { (ac_try="$ac_link"
12126 case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129 esac
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_link") 2>conftest.er1
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142 esac
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try='test -s conftest$ac_exeext'
12149 { (case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12152 esac
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_try") 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; }; then
12158 ac_cv_search_dlopen=$ac_res
12159 else
12160 echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12164 fi
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext
12168 if test "${ac_cv_search_dlopen+set}" = set; then
12169 break
12170 fi
12171 done
12172 if test "${ac_cv_search_dlopen+set}" = set; then
12173 :
12174 else
12175 ac_cv_search_dlopen=no
12176 fi
12177 rm conftest.$ac_ext
12178 LIBS=$ac_func_search_save_LIBS
12179 fi
12180 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12181 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12182 ac_res=$ac_cv_search_dlopen
12183 if test "$ac_res" != no; then
12184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12186 cat >>confdefs.h <<\_ACEOF
12187 #define HAVE_DLOPEN 1
12188 _ACEOF
12190 else
12191 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12192 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12193 fi
12196 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12197 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12198 if test "${ac_cv_search_clock_gettime+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201 ac_func_search_save_LIBS=$LIBS
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h. */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12209 /* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
12212 #ifdef __cplusplus
12213 extern "C"
12214 #endif
12215 char clock_gettime ();
12216 int
12217 main ()
12218 {
12219 return clock_gettime ();
12220 ;
12221 return 0;
12222 }
12223 _ACEOF
12224 for ac_lib in '' rt; do
12225 if test -z "$ac_lib"; then
12226 ac_res="none required"
12227 else
12228 ac_res=-l$ac_lib
12229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12230 fi
12231 rm -f conftest.$ac_objext conftest$ac_exeext
12232 if { (ac_try="$ac_link"
12233 case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12236 esac
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_link") 2>conftest.er1
12239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } &&
12245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12246 { (case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12249 esac
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_try") 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; } &&
12255 { ac_try='test -s conftest$ac_exeext'
12256 { (case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259 esac
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_try") 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; }; then
12265 ac_cv_search_clock_gettime=$ac_res
12266 else
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12271 fi
12273 rm -f core conftest.err conftest.$ac_objext \
12274 conftest$ac_exeext
12275 if test "${ac_cv_search_clock_gettime+set}" = set; then
12276 break
12277 fi
12278 done
12279 if test "${ac_cv_search_clock_gettime+set}" = set; then
12280 :
12281 else
12282 ac_cv_search_clock_gettime=no
12283 fi
12284 rm conftest.$ac_ext
12285 LIBS=$ac_func_search_save_LIBS
12286 fi
12287 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12288 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12289 ac_res=$ac_cv_search_clock_gettime
12290 if test "$ac_res" != no; then
12291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12293 fi
12296 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12297 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12298 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12299 if test "${ac_cv_search_setupterm+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302 ac_func_search_save_LIBS=$LIBS
12303 cat >conftest.$ac_ext <<_ACEOF
12304 /* confdefs.h. */
12305 _ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12310 /* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 char setupterm ();
12317 int
12318 main ()
12319 {
12320 return setupterm ();
12321 ;
12322 return 0;
12323 }
12324 _ACEOF
12325 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12326 if test -z "$ac_lib"; then
12327 ac_res="none required"
12328 else
12329 ac_res=-l$ac_lib
12330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12331 fi
12332 rm -f conftest.$ac_objext conftest$ac_exeext
12333 if { (ac_try="$ac_link"
12334 case "(($ac_try" in
12335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12337 esac
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339 (eval "$ac_link") 2>conftest.er1
12340 ac_status=$?
12341 grep -v '^ *+' conftest.er1 >conftest.err
12342 rm -f conftest.er1
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } &&
12346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12347 { (case "(($ac_try" in
12348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349 *) ac_try_echo=$ac_try;;
12350 esac
12351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352 (eval "$ac_try") 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; } &&
12356 { ac_try='test -s conftest$ac_exeext'
12357 { (case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12360 esac
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_try") 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366 ac_cv_search_setupterm=$ac_res
12367 else
12368 echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.$ac_ext >&5
12372 fi
12374 rm -f core conftest.err conftest.$ac_objext \
12375 conftest$ac_exeext
12376 if test "${ac_cv_search_setupterm+set}" = set; then
12377 break
12378 fi
12379 done
12380 if test "${ac_cv_search_setupterm+set}" = set; then
12381 :
12382 else
12383 ac_cv_search_setupterm=no
12384 fi
12385 rm conftest.$ac_ext
12386 LIBS=$ac_func_search_save_LIBS
12387 fi
12388 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12389 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12390 ac_res=$ac_cv_search_setupterm
12391 if test "$ac_res" != no; then
12392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12394 cat >>confdefs.h <<\_ACEOF
12395 #define HAVE_TERMINFO 1
12396 _ACEOF
12398 fi
12400 fi
12402 if test "$llvm_cv_enable_libffi" = "yes" ; then
12403 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12404 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12405 if test "${ac_cv_search_ffi_call+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 else
12408 ac_func_search_save_LIBS=$LIBS
12409 cat >conftest.$ac_ext <<_ACEOF
12410 /* confdefs.h. */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12416 /* Override any GCC internal prototype to avoid an error.
12417 Use char because int might match the return type of a GCC
12418 builtin and then its argument prototype would still apply. */
12419 #ifdef __cplusplus
12420 extern "C"
12421 #endif
12422 char ffi_call ();
12423 int
12424 main ()
12425 {
12426 return ffi_call ();
12427 ;
12428 return 0;
12429 }
12430 _ACEOF
12431 for ac_lib in '' ffi; do
12432 if test -z "$ac_lib"; then
12433 ac_res="none required"
12434 else
12435 ac_res=-l$ac_lib
12436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12437 fi
12438 rm -f conftest.$ac_objext conftest$ac_exeext
12439 if { (ac_try="$ac_link"
12440 case "(($ac_try" in
12441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442 *) ac_try_echo=$ac_try;;
12443 esac
12444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12445 (eval "$ac_link") 2>conftest.er1
12446 ac_status=$?
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12453 { (case "(($ac_try" in
12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12456 esac
12457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_try") 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; } &&
12462 { ac_try='test -s conftest$ac_exeext'
12463 { (case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466 esac
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_try") 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; }; then
12472 ac_cv_search_ffi_call=$ac_res
12473 else
12474 echo "$as_me: failed program was:" >&5
12475 sed 's/^/| /' conftest.$ac_ext >&5
12478 fi
12480 rm -f core conftest.err conftest.$ac_objext \
12481 conftest$ac_exeext
12482 if test "${ac_cv_search_ffi_call+set}" = set; then
12483 break
12484 fi
12485 done
12486 if test "${ac_cv_search_ffi_call+set}" = set; then
12487 :
12488 else
12489 ac_cv_search_ffi_call=no
12490 fi
12491 rm conftest.$ac_ext
12492 LIBS=$ac_func_search_save_LIBS
12493 fi
12494 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12495 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12496 ac_res=$ac_cv_search_ffi_call
12497 if test "$ac_res" != no; then
12498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12500 cat >>confdefs.h <<\_ACEOF
12501 #define HAVE_FFI_CALL 1
12502 _ACEOF
12504 else
12505 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12506 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12507 { (exit 1); exit 1; }; }
12508 fi
12510 fi
12512 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12513 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12514 if test "${ac_cv_search_mallinfo+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 else
12517 ac_func_search_save_LIBS=$LIBS
12518 cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h. */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12525 /* Override any GCC internal prototype to avoid an error.
12526 Use char because int might match the return type of a GCC
12527 builtin and then its argument prototype would still apply. */
12528 #ifdef __cplusplus
12529 extern "C"
12530 #endif
12531 char mallinfo ();
12532 int
12533 main ()
12534 {
12535 return mallinfo ();
12536 ;
12537 return 0;
12538 }
12539 _ACEOF
12540 for ac_lib in '' malloc; do
12541 if test -z "$ac_lib"; then
12542 ac_res="none required"
12543 else
12544 ac_res=-l$ac_lib
12545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12546 fi
12547 rm -f conftest.$ac_objext conftest$ac_exeext
12548 if { (ac_try="$ac_link"
12549 case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12552 esac
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_link") 2>conftest.er1
12555 ac_status=$?
12556 grep -v '^ *+' conftest.er1 >conftest.err
12557 rm -f conftest.er1
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12562 { (case "(($ac_try" in
12563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564 *) ac_try_echo=$ac_try;;
12565 esac
12566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567 (eval "$ac_try") 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest$ac_exeext'
12572 { (case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12575 esac
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_try") 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 ac_cv_search_mallinfo=$ac_res
12582 else
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12587 fi
12589 rm -f core conftest.err conftest.$ac_objext \
12590 conftest$ac_exeext
12591 if test "${ac_cv_search_mallinfo+set}" = set; then
12592 break
12593 fi
12594 done
12595 if test "${ac_cv_search_mallinfo+set}" = set; then
12596 :
12597 else
12598 ac_cv_search_mallinfo=no
12599 fi
12600 rm conftest.$ac_ext
12601 LIBS=$ac_func_search_save_LIBS
12602 fi
12603 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12604 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12605 ac_res=$ac_cv_search_mallinfo
12606 if test "$ac_res" != no; then
12607 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12609 cat >>confdefs.h <<\_ACEOF
12610 #define HAVE_MALLINFO 1
12611 _ACEOF
12613 fi
12616 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12618 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12619 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12620 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 else
12623 ac_check_lib_save_LIBS=$LIBS
12624 LIBS="-lpthread $LIBS"
12625 cat >conftest.$ac_ext <<_ACEOF
12626 /* confdefs.h. */
12627 _ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h. */
12632 /* Override any GCC internal prototype to avoid an error.
12633 Use char because int might match the return type of a GCC
12634 builtin and then its argument prototype would still apply. */
12635 #ifdef __cplusplus
12636 extern "C"
12637 #endif
12638 char pthread_mutex_init ();
12639 int
12640 main ()
12641 {
12642 return pthread_mutex_init ();
12643 ;
12644 return 0;
12645 }
12646 _ACEOF
12647 rm -f conftest.$ac_objext conftest$ac_exeext
12648 if { (ac_try="$ac_link"
12649 case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12652 esac
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_link") 2>conftest.er1
12655 ac_status=$?
12656 grep -v '^ *+' conftest.er1 >conftest.err
12657 rm -f conftest.er1
12658 cat conftest.err >&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } &&
12661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12662 { (case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12665 esac
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_try") 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; } &&
12671 { ac_try='test -s conftest$ac_exeext'
12672 { (case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12675 esac
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_try") 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 ac_cv_lib_pthread_pthread_mutex_init=yes
12682 else
12683 echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12686 ac_cv_lib_pthread_pthread_mutex_init=no
12687 fi
12689 rm -f core conftest.err conftest.$ac_objext \
12690 conftest$ac_exeext conftest.$ac_ext
12691 LIBS=$ac_check_lib_save_LIBS
12692 fi
12693 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12694 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12695 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12696 cat >>confdefs.h <<_ACEOF
12697 #define HAVE_LIBPTHREAD 1
12698 _ACEOF
12700 LIBS="-lpthread $LIBS"
12702 fi
12704 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12705 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12706 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708 else
12709 ac_func_search_save_LIBS=$LIBS
12710 cat >conftest.$ac_ext <<_ACEOF
12711 /* confdefs.h. */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12717 /* Override any GCC internal prototype to avoid an error.
12718 Use char because int might match the return type of a GCC
12719 builtin and then its argument prototype would still apply. */
12720 #ifdef __cplusplus
12721 extern "C"
12722 #endif
12723 char pthread_mutex_lock ();
12724 int
12725 main ()
12726 {
12727 return pthread_mutex_lock ();
12728 ;
12729 return 0;
12730 }
12731 _ACEOF
12732 for ac_lib in '' pthread; do
12733 if test -z "$ac_lib"; then
12734 ac_res="none required"
12735 else
12736 ac_res=-l$ac_lib
12737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12738 fi
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (ac_try="$ac_link"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12744 esac
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_link") 2>conftest.er1
12747 ac_status=$?
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
12753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12754 { (case "(($ac_try" in
12755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756 *) ac_try_echo=$ac_try;;
12757 esac
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759 (eval "$ac_try") 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest$ac_exeext'
12764 { (case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12767 esac
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_try") 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
12773 ac_cv_search_pthread_mutex_lock=$ac_res
12774 else
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12779 fi
12781 rm -f core conftest.err conftest.$ac_objext \
12782 conftest$ac_exeext
12783 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12784 break
12785 fi
12786 done
12787 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12788 :
12789 else
12790 ac_cv_search_pthread_mutex_lock=no
12791 fi
12792 rm conftest.$ac_ext
12793 LIBS=$ac_func_search_save_LIBS
12794 fi
12795 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12796 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12797 ac_res=$ac_cv_search_pthread_mutex_lock
12798 if test "$ac_res" != no; then
12799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12801 cat >>confdefs.h <<\_ACEOF
12802 #define HAVE_PTHREAD_MUTEX_LOCK 1
12803 _ACEOF
12805 fi
12807 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12808 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12809 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12811 else
12812 ac_func_search_save_LIBS=$LIBS
12813 cat >conftest.$ac_ext <<_ACEOF
12814 /* confdefs.h. */
12815 _ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12820 /* Override any GCC internal prototype to avoid an error.
12821 Use char because int might match the return type of a GCC
12822 builtin and then its argument prototype would still apply. */
12823 #ifdef __cplusplus
12824 extern "C"
12825 #endif
12826 char pthread_rwlock_init ();
12827 int
12828 main ()
12829 {
12830 return pthread_rwlock_init ();
12831 ;
12832 return 0;
12833 }
12834 _ACEOF
12835 for ac_lib in '' pthread; do
12836 if test -z "$ac_lib"; then
12837 ac_res="none required"
12838 else
12839 ac_res=-l$ac_lib
12840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12841 fi
12842 rm -f conftest.$ac_objext conftest$ac_exeext
12843 if { (ac_try="$ac_link"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847 esac
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_link") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
12856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860 esac
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; } &&
12866 { ac_try='test -s conftest$ac_exeext'
12867 { (case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_try") 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12876 ac_cv_search_pthread_rwlock_init=$ac_res
12877 else
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12882 fi
12884 rm -f core conftest.err conftest.$ac_objext \
12885 conftest$ac_exeext
12886 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12887 break
12888 fi
12889 done
12890 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12891 :
12892 else
12893 ac_cv_search_pthread_rwlock_init=no
12894 fi
12895 rm conftest.$ac_ext
12896 LIBS=$ac_func_search_save_LIBS
12897 fi
12898 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12899 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12900 ac_res=$ac_cv_search_pthread_rwlock_init
12901 if test "$ac_res" != no; then
12902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12904 cat >>confdefs.h <<\_ACEOF
12905 #define HAVE_PTHREAD_RWLOCK_INIT 1
12906 _ACEOF
12908 fi
12910 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12911 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12912 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 else
12915 ac_func_search_save_LIBS=$LIBS
12916 cat >conftest.$ac_ext <<_ACEOF
12917 /* confdefs.h. */
12918 _ACEOF
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h. */
12923 /* Override any GCC internal prototype to avoid an error.
12924 Use char because int might match the return type of a GCC
12925 builtin and then its argument prototype would still apply. */
12926 #ifdef __cplusplus
12927 extern "C"
12928 #endif
12929 char pthread_getspecific ();
12930 int
12931 main ()
12932 {
12933 return pthread_getspecific ();
12934 ;
12935 return 0;
12936 }
12937 _ACEOF
12938 for ac_lib in '' pthread; do
12939 if test -z "$ac_lib"; then
12940 ac_res="none required"
12941 else
12942 ac_res=-l$ac_lib
12943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12944 fi
12945 rm -f conftest.$ac_objext conftest$ac_exeext
12946 if { (ac_try="$ac_link"
12947 case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12950 esac
12951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12952 (eval "$ac_link") 2>conftest.er1
12953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } &&
12959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12960 { (case "(($ac_try" in
12961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962 *) ac_try_echo=$ac_try;;
12963 esac
12964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12965 (eval "$ac_try") 2>&5
12966 ac_status=$?
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; } &&
12969 { ac_try='test -s conftest$ac_exeext'
12970 { (case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12973 esac
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_try") 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12979 ac_cv_search_pthread_getspecific=$ac_res
12980 else
12981 echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12985 fi
12987 rm -f core conftest.err conftest.$ac_objext \
12988 conftest$ac_exeext
12989 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12990 break
12991 fi
12992 done
12993 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12994 :
12995 else
12996 ac_cv_search_pthread_getspecific=no
12997 fi
12998 rm conftest.$ac_ext
12999 LIBS=$ac_func_search_save_LIBS
13000 fi
13001 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13002 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13003 ac_res=$ac_cv_search_pthread_getspecific
13004 if test "$ac_res" != no; then
13005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13007 cat >>confdefs.h <<\_ACEOF
13008 #define HAVE_PTHREAD_GETSPECIFIC 1
13009 _ACEOF
13011 fi
13013 fi
13015 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13017 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13018 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13019 if test "${ac_cv_lib_z_compress2+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022 ac_check_lib_save_LIBS=$LIBS
13023 LIBS="-lz $LIBS"
13024 cat >conftest.$ac_ext <<_ACEOF
13025 /* confdefs.h. */
13026 _ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h. */
13031 /* Override any GCC internal prototype to avoid an error.
13032 Use char because int might match the return type of a GCC
13033 builtin and then its argument prototype would still apply. */
13034 #ifdef __cplusplus
13035 extern "C"
13036 #endif
13037 char compress2 ();
13038 int
13039 main ()
13040 {
13041 return compress2 ();
13042 ;
13043 return 0;
13044 }
13045 _ACEOF
13046 rm -f conftest.$ac_objext conftest$ac_exeext
13047 if { (ac_try="$ac_link"
13048 case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13051 esac
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_link") 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13061 { (case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13064 esac
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_try") 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try='test -s conftest$ac_exeext'
13071 { (case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13074 esac
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_try") 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13080 ac_cv_lib_z_compress2=yes
13081 else
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13085 ac_cv_lib_z_compress2=no
13086 fi
13088 rm -f core conftest.err conftest.$ac_objext \
13089 conftest$ac_exeext conftest.$ac_ext
13090 LIBS=$ac_check_lib_save_LIBS
13091 fi
13092 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13093 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13094 if test $ac_cv_lib_z_compress2 = yes; then
13095 cat >>confdefs.h <<_ACEOF
13096 #define HAVE_LIBZ 1
13097 _ACEOF
13099 LIBS="-lz $LIBS"
13101 fi
13103 fi
13106 # Check whether --with-udis86 was given.
13107 if test "${with_udis86+set}" = set; then
13108 withval=$with_udis86;
13109 USE_UDIS86=1
13111 case "$withval" in
13112 /usr/lib|yes) ;;
13113 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13114 esac
13116 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13117 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13118 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121 ac_check_lib_save_LIBS=$LIBS
13122 LIBS="-ludis86 $LIBS"
13123 cat >conftest.$ac_ext <<_ACEOF
13124 /* confdefs.h. */
13125 _ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13130 /* Override any GCC internal prototype to avoid an error.
13131 Use char because int might match the return type of a GCC
13132 builtin and then its argument prototype would still apply. */
13133 #ifdef __cplusplus
13134 extern "C"
13135 #endif
13136 char ud_init ();
13137 int
13138 main ()
13139 {
13140 return ud_init ();
13141 ;
13142 return 0;
13143 }
13144 _ACEOF
13145 rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (ac_try="$ac_link"
13147 case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13150 esac
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_link") 2>conftest.er1
13153 ac_status=$?
13154 grep -v '^ *+' conftest.er1 >conftest.err
13155 rm -f conftest.er1
13156 cat conftest.err >&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } &&
13159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13160 { (case "(($ac_try" in
13161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162 *) ac_try_echo=$ac_try;;
13163 esac
13164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165 (eval "$ac_try") 2>&5
13166 ac_status=$?
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; } &&
13169 { ac_try='test -s conftest$ac_exeext'
13170 { (case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13173 esac
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_try") 2>&5
13176 ac_status=$?
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }; then
13179 ac_cv_lib_udis86_ud_init=yes
13180 else
13181 echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13184 ac_cv_lib_udis86_ud_init=no
13185 fi
13187 rm -f core conftest.err conftest.$ac_objext \
13188 conftest$ac_exeext conftest.$ac_ext
13189 LIBS=$ac_check_lib_save_LIBS
13190 fi
13191 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13192 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13193 if test $ac_cv_lib_udis86_ud_init = yes; then
13194 cat >>confdefs.h <<_ACEOF
13195 #define HAVE_LIBUDIS86 1
13196 _ACEOF
13198 LIBS="-ludis86 $LIBS"
13200 else
13202 echo "Error! You need to have libudis86 around."
13203 exit -1
13205 fi
13208 else
13209 USE_UDIS86=0
13211 fi
13214 cat >>confdefs.h <<_ACEOF
13215 #define USE_UDIS86 $USE_UDIS86
13216 _ACEOF
13220 # Check whether --with-oprofile was given.
13221 if test "${with_oprofile+set}" = set; then
13222 withval=$with_oprofile;
13223 USE_OPROFILE=1
13225 case "$withval" in
13226 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13227 no) llvm_cv_oppath=
13228 USE_OPROFILE=0
13229 ;;
13230 *) llvm_cv_oppath="${withval}/lib/oprofile"
13231 CPPFLAGS="-I${withval}/include";;
13232 esac
13233 case $llvm_cv_os_type in
13234 Linux)
13235 if test -n "$llvm_cv_oppath" ; then
13236 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13237 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13238 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13239 if test "${ac_cv_search_bfd_init+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 else
13242 ac_func_search_save_LIBS=$LIBS
13243 cat >conftest.$ac_ext <<_ACEOF
13244 /* confdefs.h. */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13250 /* Override any GCC internal prototype to avoid an error.
13251 Use char because int might match the return type of a GCC
13252 builtin and then its argument prototype would still apply. */
13253 #ifdef __cplusplus
13254 extern "C"
13255 #endif
13256 char bfd_init ();
13257 int
13258 main ()
13259 {
13260 return bfd_init ();
13261 ;
13262 return 0;
13263 }
13264 _ACEOF
13265 for ac_lib in '' bfd; do
13266 if test -z "$ac_lib"; then
13267 ac_res="none required"
13268 else
13269 ac_res=-l$ac_lib
13270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13271 fi
13272 rm -f conftest.$ac_objext conftest$ac_exeext
13273 if { (ac_try="$ac_link"
13274 case "(($ac_try" in
13275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276 *) ac_try_echo=$ac_try;;
13277 esac
13278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279 (eval "$ac_link") 2>conftest.er1
13280 ac_status=$?
13281 grep -v '^ *+' conftest.er1 >conftest.err
13282 rm -f conftest.er1
13283 cat conftest.err >&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } &&
13286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13287 { (case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13290 esac
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_try") 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; } &&
13296 { ac_try='test -s conftest$ac_exeext'
13297 { (case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13300 esac
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_try") 2>&5
13303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; }; then
13306 ac_cv_search_bfd_init=$ac_res
13307 else
13308 echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13312 fi
13314 rm -f core conftest.err conftest.$ac_objext \
13315 conftest$ac_exeext
13316 if test "${ac_cv_search_bfd_init+set}" = set; then
13317 break
13318 fi
13319 done
13320 if test "${ac_cv_search_bfd_init+set}" = set; then
13321 :
13322 else
13323 ac_cv_search_bfd_init=no
13324 fi
13325 rm conftest.$ac_ext
13326 LIBS=$ac_func_search_save_LIBS
13327 fi
13328 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13329 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13330 ac_res=$ac_cv_search_bfd_init
13331 if test "$ac_res" != no; then
13332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13334 fi
13336 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13337 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13338 if test "${ac_cv_search_op_open_agent+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341 ac_func_search_save_LIBS=$LIBS
13342 cat >conftest.$ac_ext <<_ACEOF
13343 /* confdefs.h. */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13349 /* Override any GCC internal prototype to avoid an error.
13350 Use char because int might match the return type of a GCC
13351 builtin and then its argument prototype would still apply. */
13352 #ifdef __cplusplus
13353 extern "C"
13354 #endif
13355 char op_open_agent ();
13356 int
13357 main ()
13358 {
13359 return op_open_agent ();
13360 ;
13361 return 0;
13362 }
13363 _ACEOF
13364 for ac_lib in '' opagent; do
13365 if test -z "$ac_lib"; then
13366 ac_res="none required"
13367 else
13368 ac_res=-l$ac_lib
13369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13370 fi
13371 rm -f conftest.$ac_objext conftest$ac_exeext
13372 if { (ac_try="$ac_link"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376 esac
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_link") 2>conftest.er1
13379 ac_status=$?
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } &&
13385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13386 { (case "(($ac_try" in
13387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13389 esac
13390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391 (eval "$ac_try") 2>&5
13392 ac_status=$?
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; } &&
13395 { ac_try='test -s conftest$ac_exeext'
13396 { (case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13399 esac
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_try") 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
13405 ac_cv_search_op_open_agent=$ac_res
13406 else
13407 echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.$ac_ext >&5
13411 fi
13413 rm -f core conftest.err conftest.$ac_objext \
13414 conftest$ac_exeext
13415 if test "${ac_cv_search_op_open_agent+set}" = set; then
13416 break
13417 fi
13418 done
13419 if test "${ac_cv_search_op_open_agent+set}" = set; then
13420 :
13421 else
13422 ac_cv_search_op_open_agent=no
13423 fi
13424 rm conftest.$ac_ext
13425 LIBS=$ac_func_search_save_LIBS
13426 fi
13427 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13428 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13429 ac_res=$ac_cv_search_op_open_agent
13430 if test "$ac_res" != no; then
13431 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13433 else
13435 echo "Error! You need to have libopagent around."
13436 exit -1
13438 fi
13440 if test "${ac_cv_header_opagent_h+set}" = set; then
13441 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13442 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13443 if test "${ac_cv_header_opagent_h+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 fi
13446 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13447 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13448 else
13449 # Is the header compilable?
13450 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13451 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13452 cat >conftest.$ac_ext <<_ACEOF
13453 /* confdefs.h. */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13458 $ac_includes_default
13459 #include <opagent.h>
13460 _ACEOF
13461 rm -f conftest.$ac_objext
13462 if { (ac_try="$ac_compile"
13463 case "(($ac_try" in
13464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465 *) ac_try_echo=$ac_try;;
13466 esac
13467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468 (eval "$ac_compile") 2>conftest.er1
13469 ac_status=$?
13470 grep -v '^ *+' conftest.er1 >conftest.err
13471 rm -f conftest.er1
13472 cat conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } &&
13475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13476 { (case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479 esac
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_try") 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; } &&
13485 { ac_try='test -s conftest.$ac_objext'
13486 { (case "(($ac_try" in
13487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488 *) ac_try_echo=$ac_try;;
13489 esac
13490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491 (eval "$ac_try") 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; }; then
13495 ac_header_compiler=yes
13496 else
13497 echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13500 ac_header_compiler=no
13501 fi
13503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13505 echo "${ECHO_T}$ac_header_compiler" >&6; }
13507 # Is the header present?
13508 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13509 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h. */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <opagent.h>
13517 _ACEOF
13518 if { (ac_try="$ac_cpp conftest.$ac_ext"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13525 ac_status=$?
13526 grep -v '^ *+' conftest.er1 >conftest.err
13527 rm -f conftest.er1
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } >/dev/null; then
13531 if test -s conftest.err; then
13532 ac_cpp_err=$ac_c_preproc_warn_flag
13533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13534 else
13535 ac_cpp_err=
13536 fi
13537 else
13538 ac_cpp_err=yes
13539 fi
13540 if test -z "$ac_cpp_err"; then
13541 ac_header_preproc=yes
13542 else
13543 echo "$as_me: failed program was:" >&5
13544 sed 's/^/| /' conftest.$ac_ext >&5
13546 ac_header_preproc=no
13547 fi
13549 rm -f conftest.err conftest.$ac_ext
13550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13551 echo "${ECHO_T}$ac_header_preproc" >&6; }
13553 # So? What about this header?
13554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13555 yes:no: )
13556 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13557 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13558 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13559 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13560 ac_header_preproc=yes
13561 ;;
13562 no:yes:* )
13563 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13564 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13566 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13568 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13570 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13571 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13572 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13573 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13574 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13575 ( cat <<\_ASBOX
13576 ## ------------------------------------ ##
13577 ## Report this to http://llvm.org/bugs/ ##
13578 ## ------------------------------------ ##
13579 _ASBOX
13580 ) | sed "s/^/$as_me: WARNING: /" >&2
13581 ;;
13582 esac
13583 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13584 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13585 if test "${ac_cv_header_opagent_h+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588 ac_cv_header_opagent_h=$ac_header_preproc
13589 fi
13590 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13591 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13593 fi
13594 if test $ac_cv_header_opagent_h = yes; then
13595 :
13596 else
13598 echo "Error! You need to have opagent.h around."
13599 exit -1
13601 fi
13604 fi ;;
13605 *)
13606 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13607 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13608 { (exit 1); exit 1; }; } ;;
13609 esac
13611 else
13613 USE_OPROFILE=0
13616 fi
13619 cat >>confdefs.h <<_ACEOF
13620 #define LLVM_USE_OPROFILE $USE_OPROFILE
13621 _ACEOF
13625 # Check whether --with-intel-jitevents was given.
13626 if test "${with_intel_jitevents+set}" = set; then
13627 withval=$with_intel_jitevents;
13628 case "$withval" in
13629 yes) USE_INTEL_JITEVENTS=1
13630 ;;
13631 no) USE_INTEL_JITEVENTS=0
13632 ;;
13633 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13634 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13635 { (exit 1); exit 1; }; };;
13636 esac
13638 case $llvm_cv_os_type in
13639 Linux|Win32|Cygwin|MingW) ;;
13640 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13641 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13642 { (exit 1); exit 1; }; };;
13643 esac
13645 case "$llvm_cv_target_arch" in
13646 x86|x86_64) ;;
13647 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13648 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13649 { (exit 1); exit 1; }; };;
13650 esac
13652 else
13654 USE_INTEL_JITEVENTS=0
13657 fi
13660 cat >>confdefs.h <<_ACEOF
13661 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13662 _ACEOF
13665 for ac_prog in xml2-config
13666 do
13667 # Extract the first word of "$ac_prog", so it can be a program name with args.
13668 set dummy $ac_prog; ac_word=$2
13669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13671 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674 if test -n "$XML2CONFIG"; then
13675 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13676 else
13677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678 for as_dir in $PATH
13679 do
13680 IFS=$as_save_IFS
13681 test -z "$as_dir" && as_dir=.
13682 for ac_exec_ext in '' $ac_executable_extensions; do
13683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13684 ac_cv_prog_XML2CONFIG="$ac_prog"
13685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13686 break 2
13687 fi
13688 done
13689 done
13690 IFS=$as_save_IFS
13692 fi
13693 fi
13694 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13695 if test -n "$XML2CONFIG"; then
13696 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13697 echo "${ECHO_T}$XML2CONFIG" >&6; }
13698 else
13699 { echo "$as_me:$LINENO: result: no" >&5
13700 echo "${ECHO_T}no" >&6; }
13701 fi
13704 test -n "$XML2CONFIG" && break
13705 done
13708 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13709 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13710 if test "x$XML2CONFIG" = "x"; then
13711 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13712 echo "${ECHO_T}xml2-config not found" >&6; }
13713 else
13714 LIBXML2_INC=`$XML2CONFIG --cflags`
13715 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13716 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13717 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13718 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13719 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 else
13722 ac_check_lib_save_LIBS=$LIBS
13723 LIBS="-lxml2 $LIBS"
13724 cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h. */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13731 /* Override any GCC internal prototype to avoid an error.
13732 Use char because int might match the return type of a GCC
13733 builtin and then its argument prototype would still apply. */
13734 #ifdef __cplusplus
13735 extern "C"
13736 #endif
13737 char xmlReadFile ();
13738 int
13739 main ()
13740 {
13741 return xmlReadFile ();
13742 ;
13743 return 0;
13744 }
13745 _ACEOF
13746 rm -f conftest.$ac_objext conftest$ac_exeext
13747 if { (ac_try="$ac_link"
13748 case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13751 esac
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_link") 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13761 { (case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764 esac
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; } &&
13770 { ac_try='test -s conftest$ac_exeext'
13771 { (case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13774 esac
13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776 (eval "$ac_try") 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_cv_lib_xml2_xmlReadFile=yes
13781 else
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13785 ac_cv_lib_xml2_xmlReadFile=no
13786 fi
13788 rm -f core conftest.err conftest.$ac_objext \
13789 conftest$ac_exeext conftest.$ac_ext
13790 LIBS=$ac_check_lib_save_LIBS
13791 fi
13792 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13793 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13794 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13796 cat >>confdefs.h <<\_ACEOF
13797 #define CLANG_HAVE_LIBXML 1
13798 _ACEOF
13800 LIBXML2_LIBS="-lxml2"
13801 fi
13803 fi
13813 ac_header_dirent=no
13814 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13815 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13816 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13817 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821 cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h. */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 #include <sys/types.h>
13828 #include <$ac_hdr>
13830 int
13831 main ()
13832 {
13833 if ((DIR *) 0)
13834 return 0;
13835 ;
13836 return 0;
13837 }
13838 _ACEOF
13839 rm -f conftest.$ac_objext
13840 if { (ac_try="$ac_compile"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_compile") 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13854 { (case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13857 esac
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859 (eval "$ac_try") 2>&5
13860 ac_status=$?
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; } &&
13863 { ac_try='test -s conftest.$ac_objext'
13864 { (case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13867 esac
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_try") 2>&5
13870 ac_status=$?
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }; then
13873 eval "$as_ac_Header=yes"
13874 else
13875 echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13878 eval "$as_ac_Header=no"
13879 fi
13881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13882 fi
13883 ac_res=`eval echo '${'$as_ac_Header'}'`
13884 { echo "$as_me:$LINENO: result: $ac_res" >&5
13885 echo "${ECHO_T}$ac_res" >&6; }
13886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13887 cat >>confdefs.h <<_ACEOF
13888 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13889 _ACEOF
13891 ac_header_dirent=$ac_hdr; break
13892 fi
13894 done
13895 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13896 if test $ac_header_dirent = dirent.h; then
13897 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13898 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13899 if test "${ac_cv_search_opendir+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902 ac_func_search_save_LIBS=$LIBS
13903 cat >conftest.$ac_ext <<_ACEOF
13904 /* confdefs.h. */
13905 _ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h. */
13910 /* Override any GCC internal prototype to avoid an error.
13911 Use char because int might match the return type of a GCC
13912 builtin and then its argument prototype would still apply. */
13913 #ifdef __cplusplus
13914 extern "C"
13915 #endif
13916 char opendir ();
13917 int
13918 main ()
13919 {
13920 return opendir ();
13921 ;
13922 return 0;
13923 }
13924 _ACEOF
13925 for ac_lib in '' dir; do
13926 if test -z "$ac_lib"; then
13927 ac_res="none required"
13928 else
13929 ac_res=-l$ac_lib
13930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13931 fi
13932 rm -f conftest.$ac_objext conftest$ac_exeext
13933 if { (ac_try="$ac_link"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13937 esac
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_link") 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13947 { (case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13950 esac
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_try") 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; } &&
13956 { ac_try='test -s conftest$ac_exeext'
13957 { (case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13960 esac
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_try") 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 ac_cv_search_opendir=$ac_res
13967 else
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13972 fi
13974 rm -f core conftest.err conftest.$ac_objext \
13975 conftest$ac_exeext
13976 if test "${ac_cv_search_opendir+set}" = set; then
13977 break
13978 fi
13979 done
13980 if test "${ac_cv_search_opendir+set}" = set; then
13981 :
13982 else
13983 ac_cv_search_opendir=no
13984 fi
13985 rm conftest.$ac_ext
13986 LIBS=$ac_func_search_save_LIBS
13987 fi
13988 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13989 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13990 ac_res=$ac_cv_search_opendir
13991 if test "$ac_res" != no; then
13992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13994 fi
13996 else
13997 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13998 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13999 if test "${ac_cv_search_opendir+set}" = set; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14001 else
14002 ac_func_search_save_LIBS=$LIBS
14003 cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h. */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14010 /* Override any GCC internal prototype to avoid an error.
14011 Use char because int might match the return type of a GCC
14012 builtin and then its argument prototype would still apply. */
14013 #ifdef __cplusplus
14014 extern "C"
14015 #endif
14016 char opendir ();
14017 int
14018 main ()
14019 {
14020 return opendir ();
14021 ;
14022 return 0;
14023 }
14024 _ACEOF
14025 for ac_lib in '' x; do
14026 if test -z "$ac_lib"; then
14027 ac_res="none required"
14028 else
14029 ac_res=-l$ac_lib
14030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14031 fi
14032 rm -f conftest.$ac_objext conftest$ac_exeext
14033 if { (ac_try="$ac_link"
14034 case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14037 esac
14038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_link") 2>conftest.er1
14040 ac_status=$?
14041 grep -v '^ *+' conftest.er1 >conftest.err
14042 rm -f conftest.er1
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14047 { (case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14050 esac
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_try") 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest$ac_exeext'
14057 { (case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14060 esac
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 ac_cv_search_opendir=$ac_res
14067 else
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14072 fi
14074 rm -f core conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext
14076 if test "${ac_cv_search_opendir+set}" = set; then
14077 break
14078 fi
14079 done
14080 if test "${ac_cv_search_opendir+set}" = set; then
14081 :
14082 else
14083 ac_cv_search_opendir=no
14084 fi
14085 rm conftest.$ac_ext
14086 LIBS=$ac_func_search_save_LIBS
14087 fi
14088 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14089 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14090 ac_res=$ac_cv_search_opendir
14091 if test "$ac_res" != no; then
14092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14094 fi
14096 fi
14098 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14099 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14100 if test "${ac_cv_header_mmap_anon+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 else
14103 ac_ext=c
14104 ac_cpp='$CPP $CPPFLAGS'
14105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14109 cat >conftest.$ac_ext <<_ACEOF
14110 /* confdefs.h. */
14111 _ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115 #include <sys/mman.h>
14116 #include <unistd.h>
14117 #include <fcntl.h>
14118 int
14119 main ()
14120 {
14121 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14122 ;
14123 return 0;
14124 }
14125 _ACEOF
14126 rm -f conftest.$ac_objext
14127 if { (ac_try="$ac_compile"
14128 case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14131 esac
14132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_compile") 2>conftest.er1
14134 ac_status=$?
14135 grep -v '^ *+' conftest.er1 >conftest.err
14136 rm -f conftest.er1
14137 cat conftest.err >&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } &&
14140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14141 { (case "(($ac_try" in
14142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14143 *) ac_try_echo=$ac_try;;
14144 esac
14145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14146 (eval "$ac_try") 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try='test -s conftest.$ac_objext'
14151 { (case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14154 esac
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_try") 2>&5
14157 ac_status=$?
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; }; then
14160 ac_cv_header_mmap_anon=yes
14161 else
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14165 ac_cv_header_mmap_anon=no
14166 fi
14168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14169 ac_ext=c
14170 ac_cpp='$CPP $CPPFLAGS'
14171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14176 fi
14177 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14178 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14179 if test "$ac_cv_header_mmap_anon" = yes; then
14181 cat >>confdefs.h <<\_ACEOF
14182 #define HAVE_MMAP_ANONYMOUS 1
14183 _ACEOF
14185 fi
14187 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14188 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14189 if test "${ac_cv_header_stat_broken+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192 cat >conftest.$ac_ext <<_ACEOF
14193 /* confdefs.h. */
14194 _ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14198 #include <sys/types.h>
14199 #include <sys/stat.h>
14201 #if defined S_ISBLK && defined S_IFDIR
14202 # if S_ISBLK (S_IFDIR)
14203 You lose.
14204 # endif
14205 #endif
14207 #if defined S_ISBLK && defined S_IFCHR
14208 # if S_ISBLK (S_IFCHR)
14209 You lose.
14210 # endif
14211 #endif
14213 #if defined S_ISLNK && defined S_IFREG
14214 # if S_ISLNK (S_IFREG)
14215 You lose.
14216 # endif
14217 #endif
14219 #if defined S_ISSOCK && defined S_IFREG
14220 # if S_ISSOCK (S_IFREG)
14221 You lose.
14222 # endif
14223 #endif
14225 _ACEOF
14226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14227 $EGREP "You lose" >/dev/null 2>&1; then
14228 ac_cv_header_stat_broken=yes
14229 else
14230 ac_cv_header_stat_broken=no
14231 fi
14232 rm -f conftest*
14234 fi
14235 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14236 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14237 if test $ac_cv_header_stat_broken = yes; then
14239 cat >>confdefs.h <<\_ACEOF
14240 #define STAT_MACROS_BROKEN 1
14241 _ACEOF
14243 fi
14245 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14246 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14247 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 else
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h. */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14256 #include <sys/types.h>
14257 #include <sys/wait.h>
14258 #ifndef WEXITSTATUS
14259 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14260 #endif
14261 #ifndef WIFEXITED
14262 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14263 #endif
14265 int
14266 main ()
14267 {
14268 int s;
14269 wait (&s);
14270 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14271 ;
14272 return 0;
14273 }
14274 _ACEOF
14275 rm -f conftest.$ac_objext
14276 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14283 ac_status=$?
14284 grep -v '^ *+' conftest.er1 >conftest.err
14285 rm -f conftest.er1
14286 cat conftest.err >&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } &&
14289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14290 { (case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14293 esac
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_try") 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest.$ac_objext'
14300 { (case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14303 esac
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_try") 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 ac_cv_header_sys_wait_h=yes
14310 else
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14314 ac_cv_header_sys_wait_h=no
14315 fi
14317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14318 fi
14319 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14320 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14321 if test $ac_cv_header_sys_wait_h = yes; then
14323 cat >>confdefs.h <<\_ACEOF
14324 #define HAVE_SYS_WAIT_H 1
14325 _ACEOF
14327 fi
14329 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14330 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14331 if test "${ac_cv_header_time+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 else
14334 cat >conftest.$ac_ext <<_ACEOF
14335 /* confdefs.h. */
14336 _ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340 #include <sys/types.h>
14341 #include <sys/time.h>
14342 #include <time.h>
14344 int
14345 main ()
14346 {
14347 if ((struct tm *) 0)
14348 return 0;
14349 ;
14350 return 0;
14351 }
14352 _ACEOF
14353 rm -f conftest.$ac_objext
14354 if { (ac_try="$ac_compile"
14355 case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14358 esac
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360 (eval "$ac_compile") 2>conftest.er1
14361 ac_status=$?
14362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } &&
14367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14368 { (case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14371 esac
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_try") 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; } &&
14377 { ac_try='test -s conftest.$ac_objext'
14378 { (case "(($ac_try" in
14379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380 *) ac_try_echo=$ac_try;;
14381 esac
14382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383 (eval "$ac_try") 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14387 ac_cv_header_time=yes
14388 else
14389 echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14392 ac_cv_header_time=no
14393 fi
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396 fi
14397 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14398 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14399 if test $ac_cv_header_time = yes; then
14401 cat >>confdefs.h <<\_ACEOF
14402 #define TIME_WITH_SYS_TIME 1
14403 _ACEOF
14405 fi
14408 ac_ext=cpp
14409 ac_cpp='$CXXCPP $CPPFLAGS'
14410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14414 ac_ext=cpp
14415 ac_cpp='$CXXCPP $CPPFLAGS'
14416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14419 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14420 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14421 if test -z "$CXXCPP"; then
14422 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 else
14425 # Double quotes because CXXCPP needs to be expanded
14426 for CXXCPP in "$CXX -E" "/lib/cpp"
14427 do
14428 ac_preproc_ok=false
14429 for ac_cxx_preproc_warn_flag in '' yes
14430 do
14431 # Use a header file that comes with gcc, so configuring glibc
14432 # with a fresh cross-compiler works.
14433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14434 # <limits.h> exists even on freestanding compilers.
14435 # On the NeXT, cc -E runs the code through the compiler's parser,
14436 # not just through cpp. "Syntax error" is here to catch this case.
14437 cat >conftest.$ac_ext <<_ACEOF
14438 /* confdefs.h. */
14439 _ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h. */
14443 #ifdef __STDC__
14444 # include <limits.h>
14445 #else
14446 # include <assert.h>
14447 #endif
14448 Syntax error
14449 _ACEOF
14450 if { (ac_try="$ac_cpp conftest.$ac_ext"
14451 case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14454 esac
14455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14457 ac_status=$?
14458 grep -v '^ *+' conftest.er1 >conftest.err
14459 rm -f conftest.er1
14460 cat conftest.err >&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } >/dev/null; then
14463 if test -s conftest.err; then
14464 ac_cpp_err=$ac_cxx_preproc_warn_flag
14465 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14466 else
14467 ac_cpp_err=
14468 fi
14469 else
14470 ac_cpp_err=yes
14471 fi
14472 if test -z "$ac_cpp_err"; then
14473 :
14474 else
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 # Broken: fails on valid input.
14479 continue
14480 fi
14482 rm -f conftest.err conftest.$ac_ext
14484 # OK, works on sane cases. Now check whether nonexistent headers
14485 # can be detected and how.
14486 cat >conftest.$ac_ext <<_ACEOF
14487 /* confdefs.h. */
14488 _ACEOF
14489 cat confdefs.h >>conftest.$ac_ext
14490 cat >>conftest.$ac_ext <<_ACEOF
14491 /* end confdefs.h. */
14492 #include <ac_nonexistent.h>
14493 _ACEOF
14494 if { (ac_try="$ac_cpp conftest.$ac_ext"
14495 case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14498 esac
14499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14501 ac_status=$?
14502 grep -v '^ *+' conftest.er1 >conftest.err
14503 rm -f conftest.er1
14504 cat conftest.err >&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } >/dev/null; then
14507 if test -s conftest.err; then
14508 ac_cpp_err=$ac_cxx_preproc_warn_flag
14509 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14510 else
14511 ac_cpp_err=
14512 fi
14513 else
14514 ac_cpp_err=yes
14515 fi
14516 if test -z "$ac_cpp_err"; then
14517 # Broken: success on invalid input.
14518 continue
14519 else
14520 echo "$as_me: failed program was:" >&5
14521 sed 's/^/| /' conftest.$ac_ext >&5
14523 # Passes both tests.
14524 ac_preproc_ok=:
14525 break
14526 fi
14528 rm -f conftest.err conftest.$ac_ext
14530 done
14531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14532 rm -f conftest.err conftest.$ac_ext
14533 if $ac_preproc_ok; then
14534 break
14535 fi
14537 done
14538 ac_cv_prog_CXXCPP=$CXXCPP
14540 fi
14541 CXXCPP=$ac_cv_prog_CXXCPP
14542 else
14543 ac_cv_prog_CXXCPP=$CXXCPP
14544 fi
14545 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14546 echo "${ECHO_T}$CXXCPP" >&6; }
14547 ac_preproc_ok=false
14548 for ac_cxx_preproc_warn_flag in '' yes
14549 do
14550 # Use a header file that comes with gcc, so configuring glibc
14551 # with a fresh cross-compiler works.
14552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14553 # <limits.h> exists even on freestanding compilers.
14554 # On the NeXT, cc -E runs the code through the compiler's parser,
14555 # not just through cpp. "Syntax error" is here to catch this case.
14556 cat >conftest.$ac_ext <<_ACEOF
14557 /* confdefs.h. */
14558 _ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h. */
14562 #ifdef __STDC__
14563 # include <limits.h>
14564 #else
14565 # include <assert.h>
14566 #endif
14567 Syntax error
14568 _ACEOF
14569 if { (ac_try="$ac_cpp conftest.$ac_ext"
14570 case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14573 esac
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14576 ac_status=$?
14577 grep -v '^ *+' conftest.er1 >conftest.err
14578 rm -f conftest.er1
14579 cat conftest.err >&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } >/dev/null; then
14582 if test -s conftest.err; then
14583 ac_cpp_err=$ac_cxx_preproc_warn_flag
14584 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14585 else
14586 ac_cpp_err=
14587 fi
14588 else
14589 ac_cpp_err=yes
14590 fi
14591 if test -z "$ac_cpp_err"; then
14592 :
14593 else
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 # Broken: fails on valid input.
14598 continue
14599 fi
14601 rm -f conftest.err conftest.$ac_ext
14603 # OK, works on sane cases. Now check whether nonexistent headers
14604 # can be detected and how.
14605 cat >conftest.$ac_ext <<_ACEOF
14606 /* confdefs.h. */
14607 _ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14611 #include <ac_nonexistent.h>
14612 _ACEOF
14613 if { (ac_try="$ac_cpp conftest.$ac_ext"
14614 case "(($ac_try" in
14615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616 *) ac_try_echo=$ac_try;;
14617 esac
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14620 ac_status=$?
14621 grep -v '^ *+' conftest.er1 >conftest.err
14622 rm -f conftest.er1
14623 cat conftest.err >&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } >/dev/null; then
14626 if test -s conftest.err; then
14627 ac_cpp_err=$ac_cxx_preproc_warn_flag
14628 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14629 else
14630 ac_cpp_err=
14631 fi
14632 else
14633 ac_cpp_err=yes
14634 fi
14635 if test -z "$ac_cpp_err"; then
14636 # Broken: success on invalid input.
14637 continue
14638 else
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14642 # Passes both tests.
14643 ac_preproc_ok=:
14644 break
14645 fi
14647 rm -f conftest.err conftest.$ac_ext
14649 done
14650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14651 rm -f conftest.err conftest.$ac_ext
14652 if $ac_preproc_ok; then
14653 :
14654 else
14655 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14656 See \`config.log' for more details." >&5
14657 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14658 See \`config.log' for more details." >&2;}
14659 { (exit 1); exit 1; }; }
14660 fi
14662 ac_ext=cpp
14663 ac_cpp='$CXXCPP $CPPFLAGS'
14664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14670 for ac_header in cxxabi.h
14671 do
14672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 fi
14679 ac_res=`eval echo '${'$as_ac_Header'}'`
14680 { echo "$as_me:$LINENO: result: $ac_res" >&5
14681 echo "${ECHO_T}$ac_res" >&6; }
14682 else
14683 # Is the header compilable?
14684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14686 cat >conftest.$ac_ext <<_ACEOF
14687 /* confdefs.h. */
14688 _ACEOF
14689 cat confdefs.h >>conftest.$ac_ext
14690 cat >>conftest.$ac_ext <<_ACEOF
14691 /* end confdefs.h. */
14692 $ac_includes_default
14693 #include <$ac_header>
14694 _ACEOF
14695 rm -f conftest.$ac_objext
14696 if { (ac_try="$ac_compile"
14697 case "(($ac_try" in
14698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699 *) ac_try_echo=$ac_try;;
14700 esac
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_compile") 2>conftest.er1
14703 ac_status=$?
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
14709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14710 { (case "(($ac_try" in
14711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14712 *) ac_try_echo=$ac_try;;
14713 esac
14714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14715 (eval "$ac_try") 2>&5
14716 ac_status=$?
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; } &&
14719 { ac_try='test -s conftest.$ac_objext'
14720 { (case "(($ac_try" in
14721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14722 *) ac_try_echo=$ac_try;;
14723 esac
14724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14725 (eval "$ac_try") 2>&5
14726 ac_status=$?
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); }; }; then
14729 ac_header_compiler=yes
14730 else
14731 echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14734 ac_header_compiler=no
14735 fi
14737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14739 echo "${ECHO_T}$ac_header_compiler" >&6; }
14741 # Is the header present?
14742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14744 cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h. */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14750 #include <$ac_header>
14751 _ACEOF
14752 if { (ac_try="$ac_cpp conftest.$ac_ext"
14753 case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14756 esac
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14759 ac_status=$?
14760 grep -v '^ *+' conftest.er1 >conftest.err
14761 rm -f conftest.er1
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } >/dev/null; then
14765 if test -s conftest.err; then
14766 ac_cpp_err=$ac_cxx_preproc_warn_flag
14767 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14768 else
14769 ac_cpp_err=
14770 fi
14771 else
14772 ac_cpp_err=yes
14773 fi
14774 if test -z "$ac_cpp_err"; then
14775 ac_header_preproc=yes
14776 else
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 ac_header_preproc=no
14781 fi
14783 rm -f conftest.err conftest.$ac_ext
14784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14785 echo "${ECHO_T}$ac_header_preproc" >&6; }
14787 # So? What about this header?
14788 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14789 yes:no: )
14790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14794 ac_header_preproc=yes
14795 ;;
14796 no:yes:* )
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14809 ( cat <<\_ASBOX
14810 ## ------------------------------------ ##
14811 ## Report this to http://llvm.org/bugs/ ##
14812 ## ------------------------------------ ##
14813 _ASBOX
14814 ) | sed "s/^/$as_me: WARNING: /" >&2
14815 ;;
14816 esac
14817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822 eval "$as_ac_Header=\$ac_header_preproc"
14823 fi
14824 ac_res=`eval echo '${'$as_ac_Header'}'`
14825 { echo "$as_me:$LINENO: result: $ac_res" >&5
14826 echo "${ECHO_T}$ac_res" >&6; }
14828 fi
14829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14830 cat >>confdefs.h <<_ACEOF
14831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14832 _ACEOF
14834 fi
14836 done
14838 ac_ext=c
14839 ac_cpp='$CPP $CPPFLAGS'
14840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14849 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14850 do
14851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14856 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 fi
14858 ac_res=`eval echo '${'$as_ac_Header'}'`
14859 { echo "$as_me:$LINENO: result: $ac_res" >&5
14860 echo "${ECHO_T}$ac_res" >&6; }
14861 else
14862 # Is the header compilable?
14863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14865 cat >conftest.$ac_ext <<_ACEOF
14866 /* confdefs.h. */
14867 _ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14871 $ac_includes_default
14872 #include <$ac_header>
14873 _ACEOF
14874 rm -f conftest.$ac_objext
14875 if { (ac_try="$ac_compile"
14876 case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879 esac
14880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14881 (eval "$ac_compile") 2>conftest.er1
14882 ac_status=$?
14883 grep -v '^ *+' conftest.er1 >conftest.err
14884 rm -f conftest.er1
14885 cat conftest.err >&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14889 { (case "(($ac_try" in
14890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891 *) ac_try_echo=$ac_try;;
14892 esac
14893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14894 (eval "$ac_try") 2>&5
14895 ac_status=$?
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; } &&
14898 { ac_try='test -s conftest.$ac_objext'
14899 { (case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14902 esac
14903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904 (eval "$ac_try") 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14908 ac_header_compiler=yes
14909 else
14910 echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14913 ac_header_compiler=no
14914 fi
14916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14918 echo "${ECHO_T}$ac_header_compiler" >&6; }
14920 # Is the header present?
14921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14923 cat >conftest.$ac_ext <<_ACEOF
14924 /* confdefs.h. */
14925 _ACEOF
14926 cat confdefs.h >>conftest.$ac_ext
14927 cat >>conftest.$ac_ext <<_ACEOF
14928 /* end confdefs.h. */
14929 #include <$ac_header>
14930 _ACEOF
14931 if { (ac_try="$ac_cpp conftest.$ac_ext"
14932 case "(($ac_try" in
14933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934 *) ac_try_echo=$ac_try;;
14935 esac
14936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14938 ac_status=$?
14939 grep -v '^ *+' conftest.er1 >conftest.err
14940 rm -f conftest.er1
14941 cat conftest.err >&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } >/dev/null; then
14944 if test -s conftest.err; then
14945 ac_cpp_err=$ac_c_preproc_warn_flag
14946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14947 else
14948 ac_cpp_err=
14949 fi
14950 else
14951 ac_cpp_err=yes
14952 fi
14953 if test -z "$ac_cpp_err"; then
14954 ac_header_preproc=yes
14955 else
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14959 ac_header_preproc=no
14960 fi
14962 rm -f conftest.err conftest.$ac_ext
14963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14964 echo "${ECHO_T}$ac_header_preproc" >&6; }
14966 # So? What about this header?
14967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14968 yes:no: )
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14973 ac_header_preproc=yes
14974 ;;
14975 no:yes:* )
14976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14988 ( cat <<\_ASBOX
14989 ## ------------------------------------ ##
14990 ## Report this to http://llvm.org/bugs/ ##
14991 ## ------------------------------------ ##
14992 _ASBOX
14993 ) | sed "s/^/$as_me: WARNING: /" >&2
14994 ;;
14995 esac
14996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14999 echo $ECHO_N "(cached) $ECHO_C" >&6
15000 else
15001 eval "$as_ac_Header=\$ac_header_preproc"
15002 fi
15003 ac_res=`eval echo '${'$as_ac_Header'}'`
15004 { echo "$as_me:$LINENO: result: $ac_res" >&5
15005 echo "${ECHO_T}$ac_res" >&6; }
15007 fi
15008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15009 cat >>confdefs.h <<_ACEOF
15010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15011 _ACEOF
15013 fi
15015 done
15023 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15024 do
15025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15030 echo $ECHO_N "(cached) $ECHO_C" >&6
15031 fi
15032 ac_res=`eval echo '${'$as_ac_Header'}'`
15033 { echo "$as_me:$LINENO: result: $ac_res" >&5
15034 echo "${ECHO_T}$ac_res" >&6; }
15035 else
15036 # Is the header compilable?
15037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15039 cat >conftest.$ac_ext <<_ACEOF
15040 /* confdefs.h. */
15041 _ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h. */
15045 $ac_includes_default
15046 #include <$ac_header>
15047 _ACEOF
15048 rm -f conftest.$ac_objext
15049 if { (ac_try="$ac_compile"
15050 case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15053 esac
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_compile") 2>conftest.er1
15056 ac_status=$?
15057 grep -v '^ *+' conftest.er1 >conftest.err
15058 rm -f conftest.er1
15059 cat conftest.err >&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
15062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15063 { (case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15066 esac
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_try") 2>&5
15069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15079 ac_status=$?
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; }; then
15082 ac_header_compiler=yes
15083 else
15084 echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15087 ac_header_compiler=no
15088 fi
15090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15092 echo "${ECHO_T}$ac_header_compiler" >&6; }
15094 # Is the header present?
15095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15097 cat >conftest.$ac_ext <<_ACEOF
15098 /* confdefs.h. */
15099 _ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15103 #include <$ac_header>
15104 _ACEOF
15105 if { (ac_try="$ac_cpp conftest.$ac_ext"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15109 esac
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15112 ac_status=$?
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } >/dev/null; then
15118 if test -s conftest.err; then
15119 ac_cpp_err=$ac_c_preproc_warn_flag
15120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15121 else
15122 ac_cpp_err=
15123 fi
15124 else
15125 ac_cpp_err=yes
15126 fi
15127 if test -z "$ac_cpp_err"; then
15128 ac_header_preproc=yes
15129 else
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_header_preproc=no
15134 fi
15136 rm -f conftest.err conftest.$ac_ext
15137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15138 echo "${ECHO_T}$ac_header_preproc" >&6; }
15140 # So? What about this header?
15141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15142 yes:no: )
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15147 ac_header_preproc=yes
15148 ;;
15149 no:yes:* )
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15162 ( cat <<\_ASBOX
15163 ## ------------------------------------ ##
15164 ## Report this to http://llvm.org/bugs/ ##
15165 ## ------------------------------------ ##
15166 _ASBOX
15167 ) | sed "s/^/$as_me: WARNING: /" >&2
15168 ;;
15169 esac
15170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175 eval "$as_ac_Header=\$ac_header_preproc"
15176 fi
15177 ac_res=`eval echo '${'$as_ac_Header'}'`
15178 { echo "$as_me:$LINENO: result: $ac_res" >&5
15179 echo "${ECHO_T}$ac_res" >&6; }
15181 fi
15182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15183 cat >>confdefs.h <<_ACEOF
15184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15185 _ACEOF
15187 fi
15189 done
15192 for ac_header in utime.h
15193 do
15194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 fi
15201 ac_res=`eval echo '${'$as_ac_Header'}'`
15202 { echo "$as_me:$LINENO: result: $ac_res" >&5
15203 echo "${ECHO_T}$ac_res" >&6; }
15204 else
15205 # Is the header compilable?
15206 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15208 cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h. */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214 $ac_includes_default
15215 #include <$ac_header>
15216 _ACEOF
15217 rm -f conftest.$ac_objext
15218 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15232 { (case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_try") 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; } &&
15241 { ac_try='test -s conftest.$ac_objext'
15242 { (case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15245 esac
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_try") 2>&5
15248 ac_status=$?
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; }; then
15251 ac_header_compiler=yes
15252 else
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15256 ac_header_compiler=no
15257 fi
15259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15261 echo "${ECHO_T}$ac_header_compiler" >&6; }
15263 # Is the header present?
15264 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15266 cat >conftest.$ac_ext <<_ACEOF
15267 /* confdefs.h. */
15268 _ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15272 #include <$ac_header>
15273 _ACEOF
15274 if { (ac_try="$ac_cpp conftest.$ac_ext"
15275 case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15278 esac
15279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15281 ac_status=$?
15282 grep -v '^ *+' conftest.er1 >conftest.err
15283 rm -f conftest.er1
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } >/dev/null; then
15287 if test -s conftest.err; then
15288 ac_cpp_err=$ac_c_preproc_warn_flag
15289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15290 else
15291 ac_cpp_err=
15292 fi
15293 else
15294 ac_cpp_err=yes
15295 fi
15296 if test -z "$ac_cpp_err"; then
15297 ac_header_preproc=yes
15298 else
15299 echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15302 ac_header_preproc=no
15303 fi
15305 rm -f conftest.err conftest.$ac_ext
15306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15307 echo "${ECHO_T}$ac_header_preproc" >&6; }
15309 # So? What about this header?
15310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15311 yes:no: )
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15315 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15316 ac_header_preproc=yes
15317 ;;
15318 no:yes:* )
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15322 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15324 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15326 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15330 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15331 ( cat <<\_ASBOX
15332 ## ------------------------------------ ##
15333 ## Report this to http://llvm.org/bugs/ ##
15334 ## ------------------------------------ ##
15335 _ASBOX
15336 ) | sed "s/^/$as_me: WARNING: /" >&2
15337 ;;
15338 esac
15339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 else
15344 eval "$as_ac_Header=\$ac_header_preproc"
15345 fi
15346 ac_res=`eval echo '${'$as_ac_Header'}'`
15347 { echo "$as_me:$LINENO: result: $ac_res" >&5
15348 echo "${ECHO_T}$ac_res" >&6; }
15350 fi
15351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15352 cat >>confdefs.h <<_ACEOF
15353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15354 _ACEOF
15356 fi
15358 done
15365 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15366 do
15367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 fi
15374 ac_res=`eval echo '${'$as_ac_Header'}'`
15375 { echo "$as_me:$LINENO: result: $ac_res" >&5
15376 echo "${ECHO_T}$ac_res" >&6; }
15377 else
15378 # Is the header compilable?
15379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15381 cat >conftest.$ac_ext <<_ACEOF
15382 /* confdefs.h. */
15383 _ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 $ac_includes_default
15388 #include <$ac_header>
15389 _ACEOF
15390 rm -f conftest.$ac_objext
15391 if { (ac_try="$ac_compile"
15392 case "(($ac_try" in
15393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15394 *) ac_try_echo=$ac_try;;
15395 esac
15396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15397 (eval "$ac_compile") 2>conftest.er1
15398 ac_status=$?
15399 grep -v '^ *+' conftest.er1 >conftest.err
15400 rm -f conftest.er1
15401 cat conftest.err >&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } &&
15404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15405 { (case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; } &&
15414 { ac_try='test -s conftest.$ac_objext'
15415 { (case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_try") 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; }; then
15424 ac_header_compiler=yes
15425 else
15426 echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15429 ac_header_compiler=no
15430 fi
15432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15434 echo "${ECHO_T}$ac_header_compiler" >&6; }
15436 # Is the header present?
15437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15439 cat >conftest.$ac_ext <<_ACEOF
15440 /* confdefs.h. */
15441 _ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h. */
15445 #include <$ac_header>
15446 _ACEOF
15447 if { (ac_try="$ac_cpp conftest.$ac_ext"
15448 case "(($ac_try" in
15449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15450 *) ac_try_echo=$ac_try;;
15451 esac
15452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15454 ac_status=$?
15455 grep -v '^ *+' conftest.er1 >conftest.err
15456 rm -f conftest.er1
15457 cat conftest.err >&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } >/dev/null; then
15460 if test -s conftest.err; then
15461 ac_cpp_err=$ac_c_preproc_warn_flag
15462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15463 else
15464 ac_cpp_err=
15465 fi
15466 else
15467 ac_cpp_err=yes
15468 fi
15469 if test -z "$ac_cpp_err"; then
15470 ac_header_preproc=yes
15471 else
15472 echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15475 ac_header_preproc=no
15476 fi
15478 rm -f conftest.err conftest.$ac_ext
15479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15480 echo "${ECHO_T}$ac_header_preproc" >&6; }
15482 # So? What about this header?
15483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15484 yes:no: )
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15489 ac_header_preproc=yes
15490 ;;
15491 no:yes:* )
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15504 ( cat <<\_ASBOX
15505 ## ------------------------------------ ##
15506 ## Report this to http://llvm.org/bugs/ ##
15507 ## ------------------------------------ ##
15508 _ASBOX
15509 ) | sed "s/^/$as_me: WARNING: /" >&2
15510 ;;
15511 esac
15512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517 eval "$as_ac_Header=\$ac_header_preproc"
15518 fi
15519 ac_res=`eval echo '${'$as_ac_Header'}'`
15520 { echo "$as_me:$LINENO: result: $ac_res" >&5
15521 echo "${ECHO_T}$ac_res" >&6; }
15523 fi
15524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15525 cat >>confdefs.h <<_ACEOF
15526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15527 _ACEOF
15529 fi
15531 done
15536 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15537 do
15538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15544 fi
15545 ac_res=`eval echo '${'$as_ac_Header'}'`
15546 { echo "$as_me:$LINENO: result: $ac_res" >&5
15547 echo "${ECHO_T}$ac_res" >&6; }
15548 else
15549 # Is the header compilable?
15550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15552 cat >conftest.$ac_ext <<_ACEOF
15553 /* confdefs.h. */
15554 _ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15558 $ac_includes_default
15559 #include <$ac_header>
15560 _ACEOF
15561 rm -f conftest.$ac_objext
15562 if { (ac_try="$ac_compile"
15563 case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15566 esac
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_compile") 2>conftest.er1
15569 ac_status=$?
15570 grep -v '^ *+' conftest.er1 >conftest.err
15571 rm -f conftest.er1
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } &&
15575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15576 { (case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579 esac
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_try") 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest.$ac_objext'
15586 { (case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15589 esac
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_try") 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_header_compiler=yes
15596 else
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 ac_header_compiler=no
15601 fi
15603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15605 echo "${ECHO_T}$ac_header_compiler" >&6; }
15607 # Is the header present?
15608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h. */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616 #include <$ac_header>
15617 _ACEOF
15618 if { (ac_try="$ac_cpp conftest.$ac_ext"
15619 case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15622 esac
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15625 ac_status=$?
15626 grep -v '^ *+' conftest.er1 >conftest.err
15627 rm -f conftest.er1
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } >/dev/null; then
15631 if test -s conftest.err; then
15632 ac_cpp_err=$ac_c_preproc_warn_flag
15633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15634 else
15635 ac_cpp_err=
15636 fi
15637 else
15638 ac_cpp_err=yes
15639 fi
15640 if test -z "$ac_cpp_err"; then
15641 ac_header_preproc=yes
15642 else
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 ac_header_preproc=no
15647 fi
15649 rm -f conftest.err conftest.$ac_ext
15650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15651 echo "${ECHO_T}$ac_header_preproc" >&6; }
15653 # So? What about this header?
15654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15655 yes:no: )
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15660 ac_header_preproc=yes
15661 ;;
15662 no:yes:* )
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15675 ( cat <<\_ASBOX
15676 ## ------------------------------------ ##
15677 ## Report this to http://llvm.org/bugs/ ##
15678 ## ------------------------------------ ##
15679 _ASBOX
15680 ) | sed "s/^/$as_me: WARNING: /" >&2
15681 ;;
15682 esac
15683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15687 else
15688 eval "$as_ac_Header=\$ac_header_preproc"
15689 fi
15690 ac_res=`eval echo '${'$as_ac_Header'}'`
15691 { echo "$as_me:$LINENO: result: $ac_res" >&5
15692 echo "${ECHO_T}$ac_res" >&6; }
15694 fi
15695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15696 cat >>confdefs.h <<_ACEOF
15697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15698 _ACEOF
15700 fi
15702 done
15705 for ac_header in valgrind/valgrind.h
15706 do
15707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 fi
15714 ac_res=`eval echo '${'$as_ac_Header'}'`
15715 { echo "$as_me:$LINENO: result: $ac_res" >&5
15716 echo "${ECHO_T}$ac_res" >&6; }
15717 else
15718 # Is the header compilable?
15719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15721 cat >conftest.$ac_ext <<_ACEOF
15722 /* confdefs.h. */
15723 _ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h. */
15727 $ac_includes_default
15728 #include <$ac_header>
15729 _ACEOF
15730 rm -f conftest.$ac_objext
15731 if { (ac_try="$ac_compile"
15732 case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_compile") 2>conftest.er1
15738 ac_status=$?
15739 grep -v '^ *+' conftest.er1 >conftest.err
15740 rm -f conftest.er1
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } &&
15744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15745 { (case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15748 esac
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_try") 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; } &&
15754 { ac_try='test -s conftest.$ac_objext'
15755 { (case "(($ac_try" in
15756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757 *) ac_try_echo=$ac_try;;
15758 esac
15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760 (eval "$ac_try") 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_header_compiler=yes
15765 else
15766 echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15769 ac_header_compiler=no
15770 fi
15772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15774 echo "${ECHO_T}$ac_header_compiler" >&6; }
15776 # Is the header present?
15777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15779 cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h. */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h. */
15785 #include <$ac_header>
15786 _ACEOF
15787 if { (ac_try="$ac_cpp conftest.$ac_ext"
15788 case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791 esac
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15794 ac_status=$?
15795 grep -v '^ *+' conftest.er1 >conftest.err
15796 rm -f conftest.er1
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } >/dev/null; then
15800 if test -s conftest.err; then
15801 ac_cpp_err=$ac_c_preproc_warn_flag
15802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15803 else
15804 ac_cpp_err=
15805 fi
15806 else
15807 ac_cpp_err=yes
15808 fi
15809 if test -z "$ac_cpp_err"; then
15810 ac_header_preproc=yes
15811 else
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15815 ac_header_preproc=no
15816 fi
15818 rm -f conftest.err conftest.$ac_ext
15819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15820 echo "${ECHO_T}$ac_header_preproc" >&6; }
15822 # So? What about this header?
15823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15824 yes:no: )
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15829 ac_header_preproc=yes
15830 ;;
15831 no:yes:* )
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15844 ( cat <<\_ASBOX
15845 ## ------------------------------------ ##
15846 ## Report this to http://llvm.org/bugs/ ##
15847 ## ------------------------------------ ##
15848 _ASBOX
15849 ) | sed "s/^/$as_me: WARNING: /" >&2
15850 ;;
15851 esac
15852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15855 echo $ECHO_N "(cached) $ECHO_C" >&6
15856 else
15857 eval "$as_ac_Header=\$ac_header_preproc"
15858 fi
15859 ac_res=`eval echo '${'$as_ac_Header'}'`
15860 { echo "$as_me:$LINENO: result: $ac_res" >&5
15861 echo "${ECHO_T}$ac_res" >&6; }
15863 fi
15864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15867 _ACEOF
15869 fi
15871 done
15874 for ac_header in fenv.h
15875 do
15876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 fi
15883 ac_res=`eval echo '${'$as_ac_Header'}'`
15884 { echo "$as_me:$LINENO: result: $ac_res" >&5
15885 echo "${ECHO_T}$ac_res" >&6; }
15886 else
15887 # Is the header compilable?
15888 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15890 cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h. */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15896 $ac_includes_default
15897 #include <$ac_header>
15898 _ACEOF
15899 rm -f conftest.$ac_objext
15900 if { (ac_try="$ac_compile"
15901 case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15904 esac
15905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906 (eval "$ac_compile") 2>conftest.er1
15907 ac_status=$?
15908 grep -v '^ *+' conftest.er1 >conftest.err
15909 rm -f conftest.er1
15910 cat conftest.err >&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15914 { (case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15917 esac
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_try") 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest.$ac_objext'
15924 { (case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15927 esac
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929 (eval "$ac_try") 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15933 ac_header_compiler=yes
15934 else
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15938 ac_header_compiler=no
15939 fi
15941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15943 echo "${ECHO_T}$ac_header_compiler" >&6; }
15945 # Is the header present?
15946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15948 cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h. */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 #include <$ac_header>
15955 _ACEOF
15956 if { (ac_try="$ac_cpp conftest.$ac_ext"
15957 case "(($ac_try" in
15958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959 *) ac_try_echo=$ac_try;;
15960 esac
15961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15963 ac_status=$?
15964 grep -v '^ *+' conftest.er1 >conftest.err
15965 rm -f conftest.er1
15966 cat conftest.err >&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); } >/dev/null; then
15969 if test -s conftest.err; then
15970 ac_cpp_err=$ac_c_preproc_warn_flag
15971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15972 else
15973 ac_cpp_err=
15974 fi
15975 else
15976 ac_cpp_err=yes
15977 fi
15978 if test -z "$ac_cpp_err"; then
15979 ac_header_preproc=yes
15980 else
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 ac_header_preproc=no
15985 fi
15987 rm -f conftest.err conftest.$ac_ext
15988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15989 echo "${ECHO_T}$ac_header_preproc" >&6; }
15991 # So? What about this header?
15992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15993 yes:no: )
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15998 ac_header_preproc=yes
15999 ;;
16000 no:yes:* )
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16013 ( cat <<\_ASBOX
16014 ## ------------------------------------ ##
16015 ## Report this to http://llvm.org/bugs/ ##
16016 ## ------------------------------------ ##
16017 _ASBOX
16018 ) | sed "s/^/$as_me: WARNING: /" >&2
16019 ;;
16020 esac
16021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16025 else
16026 eval "$as_ac_Header=\$ac_header_preproc"
16027 fi
16028 ac_res=`eval echo '${'$as_ac_Header'}'`
16029 { echo "$as_me:$LINENO: result: $ac_res" >&5
16030 echo "${ECHO_T}$ac_res" >&6; }
16032 fi
16033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16034 cat >>confdefs.h <<_ACEOF
16035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16036 _ACEOF
16038 fi
16040 done
16042 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16043 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16044 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 else
16047 cat >conftest.$ac_ext <<_ACEOF
16048 /* confdefs.h. */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 #include <fenv.h>
16055 int
16056 main ()
16057 {
16058 #ifndef FE_ALL_EXCEPT
16059 char *p = (char *) FE_ALL_EXCEPT;
16060 return !p;
16061 #endif
16063 ;
16064 return 0;
16065 }
16066 _ACEOF
16067 rm -f conftest.$ac_objext
16068 if { (ac_try="$ac_compile"
16069 case "(($ac_try" in
16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071 *) ac_try_echo=$ac_try;;
16072 esac
16073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_compile") 2>conftest.er1
16075 ac_status=$?
16076 grep -v '^ *+' conftest.er1 >conftest.err
16077 rm -f conftest.er1
16078 cat conftest.err >&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } &&
16081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16082 { (case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16085 esac
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_try") 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; } &&
16091 { ac_try='test -s conftest.$ac_objext'
16092 { (case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16095 esac
16096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_try") 2>&5
16098 ac_status=$?
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; }; then
16101 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16102 else
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16106 ac_cv_have_decl_FE_ALL_EXCEPT=no
16107 fi
16109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16110 fi
16111 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16112 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16113 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16115 cat >>confdefs.h <<_ACEOF
16116 #define HAVE_DECL_FE_ALL_EXCEPT 1
16117 _ACEOF
16120 else
16121 cat >>confdefs.h <<_ACEOF
16122 #define HAVE_DECL_FE_ALL_EXCEPT 0
16123 _ACEOF
16126 fi
16127 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16128 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16129 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
16131 else
16132 cat >conftest.$ac_ext <<_ACEOF
16133 /* confdefs.h. */
16134 _ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16138 #include <fenv.h>
16140 int
16141 main ()
16142 {
16143 #ifndef FE_INEXACT
16144 char *p = (char *) FE_INEXACT;
16145 return !p;
16146 #endif
16148 ;
16149 return 0;
16150 }
16151 _ACEOF
16152 rm -f conftest.$ac_objext
16153 if { (ac_try="$ac_compile"
16154 case "(($ac_try" in
16155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16157 esac
16158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159 (eval "$ac_compile") 2>conftest.er1
16160 ac_status=$?
16161 grep -v '^ *+' conftest.er1 >conftest.err
16162 rm -f conftest.er1
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } &&
16166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16167 { (case "(($ac_try" in
16168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169 *) ac_try_echo=$ac_try;;
16170 esac
16171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16172 (eval "$ac_try") 2>&5
16173 ac_status=$?
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); }; } &&
16176 { ac_try='test -s conftest.$ac_objext'
16177 { (case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16180 esac
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_try") 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 ac_cv_have_decl_FE_INEXACT=yes
16187 else
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 ac_cv_have_decl_FE_INEXACT=no
16192 fi
16194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195 fi
16196 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16197 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16198 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16200 cat >>confdefs.h <<_ACEOF
16201 #define HAVE_DECL_FE_INEXACT 1
16202 _ACEOF
16205 else
16206 cat >>confdefs.h <<_ACEOF
16207 #define HAVE_DECL_FE_INEXACT 0
16208 _ACEOF
16211 fi
16214 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16216 for ac_header in pthread.h
16217 do
16218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 fi
16225 ac_res=`eval echo '${'$as_ac_Header'}'`
16226 { echo "$as_me:$LINENO: result: $ac_res" >&5
16227 echo "${ECHO_T}$ac_res" >&6; }
16228 else
16229 # Is the header compilable?
16230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16232 cat >conftest.$ac_ext <<_ACEOF
16233 /* confdefs.h. */
16234 _ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h. */
16238 $ac_includes_default
16239 #include <$ac_header>
16240 _ACEOF
16241 rm -f conftest.$ac_objext
16242 if { (ac_try="$ac_compile"
16243 case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16246 esac
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_compile") 2>conftest.er1
16249 ac_status=$?
16250 grep -v '^ *+' conftest.er1 >conftest.err
16251 rm -f conftest.er1
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16256 { (case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16259 esac
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_try") 2>&5
16262 ac_status=$?
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; } &&
16265 { ac_try='test -s conftest.$ac_objext'
16266 { (case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_try") 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ac_header_compiler=yes
16276 else
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16280 ac_header_compiler=no
16281 fi
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16285 echo "${ECHO_T}$ac_header_compiler" >&6; }
16287 # Is the header present?
16288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16290 cat >conftest.$ac_ext <<_ACEOF
16291 /* confdefs.h. */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 #include <$ac_header>
16297 _ACEOF
16298 if { (ac_try="$ac_cpp conftest.$ac_ext"
16299 case "(($ac_try" in
16300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301 *) ac_try_echo=$ac_try;;
16302 esac
16303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16305 ac_status=$?
16306 grep -v '^ *+' conftest.er1 >conftest.err
16307 rm -f conftest.er1
16308 cat conftest.err >&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } >/dev/null; then
16311 if test -s conftest.err; then
16312 ac_cpp_err=$ac_c_preproc_warn_flag
16313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16314 else
16315 ac_cpp_err=
16316 fi
16317 else
16318 ac_cpp_err=yes
16319 fi
16320 if test -z "$ac_cpp_err"; then
16321 ac_header_preproc=yes
16322 else
16323 echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16326 ac_header_preproc=no
16327 fi
16329 rm -f conftest.err conftest.$ac_ext
16330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16331 echo "${ECHO_T}$ac_header_preproc" >&6; }
16333 # So? What about this header?
16334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16335 yes:no: )
16336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16340 ac_header_preproc=yes
16341 ;;
16342 no:yes:* )
16343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16355 ( cat <<\_ASBOX
16356 ## ------------------------------------ ##
16357 ## Report this to http://llvm.org/bugs/ ##
16358 ## ------------------------------------ ##
16359 _ASBOX
16360 ) | sed "s/^/$as_me: WARNING: /" >&2
16361 ;;
16362 esac
16363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 else
16368 eval "$as_ac_Header=\$ac_header_preproc"
16369 fi
16370 ac_res=`eval echo '${'$as_ac_Header'}'`
16371 { echo "$as_me:$LINENO: result: $ac_res" >&5
16372 echo "${ECHO_T}$ac_res" >&6; }
16374 fi
16375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16376 cat >>confdefs.h <<_ACEOF
16377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16378 _ACEOF
16379 HAVE_PTHREAD=1
16381 else
16382 HAVE_PTHREAD=0
16384 fi
16386 done
16388 else
16389 HAVE_PTHREAD=0
16391 fi
16392 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16394 for ac_header in zlib.h
16395 do
16396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 fi
16403 ac_res=`eval echo '${'$as_ac_Header'}'`
16404 { echo "$as_me:$LINENO: result: $ac_res" >&5
16405 echo "${ECHO_T}$ac_res" >&6; }
16406 else
16407 # Is the header compilable?
16408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16410 cat >conftest.$ac_ext <<_ACEOF
16411 /* confdefs.h. */
16412 _ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16416 $ac_includes_default
16417 #include <$ac_header>
16418 _ACEOF
16419 rm -f conftest.$ac_objext
16420 if { (ac_try="$ac_compile"
16421 case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16424 esac
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_compile") 2>conftest.er1
16427 ac_status=$?
16428 grep -v '^ *+' conftest.er1 >conftest.err
16429 rm -f conftest.er1
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
16433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16434 { (case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16437 esac
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_try") 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; } &&
16443 { ac_try='test -s conftest.$ac_objext'
16444 { (case "(($ac_try" in
16445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446 *) ac_try_echo=$ac_try;;
16447 esac
16448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449 (eval "$ac_try") 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 ac_header_compiler=yes
16454 else
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16458 ac_header_compiler=no
16459 fi
16461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16463 echo "${ECHO_T}$ac_header_compiler" >&6; }
16465 # Is the header present?
16466 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16468 cat >conftest.$ac_ext <<_ACEOF
16469 /* confdefs.h. */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 #include <$ac_header>
16475 _ACEOF
16476 if { (ac_try="$ac_cpp conftest.$ac_ext"
16477 case "(($ac_try" in
16478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479 *) ac_try_echo=$ac_try;;
16480 esac
16481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16483 ac_status=$?
16484 grep -v '^ *+' conftest.er1 >conftest.err
16485 rm -f conftest.er1
16486 cat conftest.err >&5
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } >/dev/null; then
16489 if test -s conftest.err; then
16490 ac_cpp_err=$ac_c_preproc_warn_flag
16491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16492 else
16493 ac_cpp_err=
16494 fi
16495 else
16496 ac_cpp_err=yes
16497 fi
16498 if test -z "$ac_cpp_err"; then
16499 ac_header_preproc=yes
16500 else
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16504 ac_header_preproc=no
16505 fi
16507 rm -f conftest.err conftest.$ac_ext
16508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16509 echo "${ECHO_T}$ac_header_preproc" >&6; }
16511 # So? What about this header?
16512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16513 yes:no: )
16514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16518 ac_header_preproc=yes
16519 ;;
16520 no:yes:* )
16521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16533 ( cat <<\_ASBOX
16534 ## ------------------------------------ ##
16535 ## Report this to http://llvm.org/bugs/ ##
16536 ## ------------------------------------ ##
16537 _ASBOX
16538 ) | sed "s/^/$as_me: WARNING: /" >&2
16539 ;;
16540 esac
16541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16545 else
16546 eval "$as_ac_Header=\$ac_header_preproc"
16547 fi
16548 ac_res=`eval echo '${'$as_ac_Header'}'`
16549 { echo "$as_me:$LINENO: result: $ac_res" >&5
16550 echo "${ECHO_T}$ac_res" >&6; }
16552 fi
16553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16554 cat >>confdefs.h <<_ACEOF
16555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16556 _ACEOF
16557 HAVE_LIBZ=1
16559 else
16560 HAVE_LIBZ=0
16562 fi
16564 done
16566 else
16567 HAVE_LIBZ=0
16569 fi
16571 if test "$llvm_cv_enable_libffi" = "yes" ; then
16574 for ac_header in ffi.h ffi/ffi.h
16575 do
16576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16581 echo $ECHO_N "(cached) $ECHO_C" >&6
16582 fi
16583 ac_res=`eval echo '${'$as_ac_Header'}'`
16584 { echo "$as_me:$LINENO: result: $ac_res" >&5
16585 echo "${ECHO_T}$ac_res" >&6; }
16586 else
16587 # Is the header compilable?
16588 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16590 cat >conftest.$ac_ext <<_ACEOF
16591 /* confdefs.h. */
16592 _ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h. */
16596 $ac_includes_default
16597 #include <$ac_header>
16598 _ACEOF
16599 rm -f conftest.$ac_objext
16600 if { (ac_try="$ac_compile"
16601 case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16604 esac
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_compile") 2>conftest.er1
16607 ac_status=$?
16608 grep -v '^ *+' conftest.er1 >conftest.err
16609 rm -f conftest.er1
16610 cat conftest.err >&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } &&
16613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16614 { (case "(($ac_try" in
16615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616 *) ac_try_echo=$ac_try;;
16617 esac
16618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619 (eval "$ac_try") 2>&5
16620 ac_status=$?
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; } &&
16623 { ac_try='test -s conftest.$ac_objext'
16624 { (case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16627 esac
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629 (eval "$ac_try") 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 ac_header_compiler=yes
16634 else
16635 echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16638 ac_header_compiler=no
16639 fi
16641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16643 echo "${ECHO_T}$ac_header_compiler" >&6; }
16645 # Is the header present?
16646 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16648 cat >conftest.$ac_ext <<_ACEOF
16649 /* confdefs.h. */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16654 #include <$ac_header>
16655 _ACEOF
16656 if { (ac_try="$ac_cpp conftest.$ac_ext"
16657 case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16660 esac
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16663 ac_status=$?
16664 grep -v '^ *+' conftest.er1 >conftest.err
16665 rm -f conftest.er1
16666 cat conftest.err >&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } >/dev/null; then
16669 if test -s conftest.err; then
16670 ac_cpp_err=$ac_c_preproc_warn_flag
16671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16672 else
16673 ac_cpp_err=
16674 fi
16675 else
16676 ac_cpp_err=yes
16677 fi
16678 if test -z "$ac_cpp_err"; then
16679 ac_header_preproc=yes
16680 else
16681 echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16684 ac_header_preproc=no
16685 fi
16687 rm -f conftest.err conftest.$ac_ext
16688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16689 echo "${ECHO_T}$ac_header_preproc" >&6; }
16691 # So? What about this header?
16692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16693 yes:no: )
16694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16698 ac_header_preproc=yes
16699 ;;
16700 no:yes:* )
16701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16713 ( cat <<\_ASBOX
16714 ## ------------------------------------ ##
16715 ## Report this to http://llvm.org/bugs/ ##
16716 ## ------------------------------------ ##
16717 _ASBOX
16718 ) | sed "s/^/$as_me: WARNING: /" >&2
16719 ;;
16720 esac
16721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16724 echo $ECHO_N "(cached) $ECHO_C" >&6
16725 else
16726 eval "$as_ac_Header=\$ac_header_preproc"
16727 fi
16728 ac_res=`eval echo '${'$as_ac_Header'}'`
16729 { echo "$as_me:$LINENO: result: $ac_res" >&5
16730 echo "${ECHO_T}$ac_res" >&6; }
16732 fi
16733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16734 cat >>confdefs.h <<_ACEOF
16735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16736 _ACEOF
16738 fi
16740 done
16742 fi
16745 for ac_header in CrashReporterClient.h
16746 do
16747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16753 fi
16754 ac_res=`eval echo '${'$as_ac_Header'}'`
16755 { echo "$as_me:$LINENO: result: $ac_res" >&5
16756 echo "${ECHO_T}$ac_res" >&6; }
16757 else
16758 # Is the header compilable?
16759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16761 cat >conftest.$ac_ext <<_ACEOF
16762 /* confdefs.h. */
16763 _ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 $ac_includes_default
16768 #include <$ac_header>
16769 _ACEOF
16770 rm -f conftest.$ac_objext
16771 if { (ac_try="$ac_compile"
16772 case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_compile") 2>conftest.er1
16778 ac_status=$?
16779 grep -v '^ *+' conftest.er1 >conftest.err
16780 rm -f conftest.er1
16781 cat conftest.err >&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } &&
16784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16785 { (case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16788 esac
16789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_try") 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; } &&
16794 { ac_try='test -s conftest.$ac_objext'
16795 { (case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16798 esac
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_try") 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 ac_header_compiler=yes
16805 else
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 ac_header_compiler=no
16810 fi
16812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16814 echo "${ECHO_T}$ac_header_compiler" >&6; }
16816 # Is the header present?
16817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16819 cat >conftest.$ac_ext <<_ACEOF
16820 /* confdefs.h. */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 #include <$ac_header>
16826 _ACEOF
16827 if { (ac_try="$ac_cpp conftest.$ac_ext"
16828 case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16834 ac_status=$?
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } >/dev/null; then
16840 if test -s conftest.err; then
16841 ac_cpp_err=$ac_c_preproc_warn_flag
16842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16843 else
16844 ac_cpp_err=
16845 fi
16846 else
16847 ac_cpp_err=yes
16848 fi
16849 if test -z "$ac_cpp_err"; then
16850 ac_header_preproc=yes
16851 else
16852 echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16855 ac_header_preproc=no
16856 fi
16858 rm -f conftest.err conftest.$ac_ext
16859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16860 echo "${ECHO_T}$ac_header_preproc" >&6; }
16862 # So? What about this header?
16863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16864 yes:no: )
16865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16869 ac_header_preproc=yes
16870 ;;
16871 no:yes:* )
16872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16884 ( cat <<\_ASBOX
16885 ## ------------------------------------ ##
16886 ## Report this to http://llvm.org/bugs/ ##
16887 ## ------------------------------------ ##
16888 _ASBOX
16889 ) | sed "s/^/$as_me: WARNING: /" >&2
16890 ;;
16891 esac
16892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16895 echo $ECHO_N "(cached) $ECHO_C" >&6
16896 else
16897 eval "$as_ac_Header=\$ac_header_preproc"
16898 fi
16899 ac_res=`eval echo '${'$as_ac_Header'}'`
16900 { echo "$as_me:$LINENO: result: $ac_res" >&5
16901 echo "${ECHO_T}$ac_res" >&6; }
16903 fi
16904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16905 cat >>confdefs.h <<_ACEOF
16906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16907 _ACEOF
16909 fi
16911 done
16914 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16915 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16916 cat >conftest.$ac_ext <<_ACEOF
16918 /* confdefs.h. */
16919 _ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16924 extern const char *__crashreporter_info__;
16925 int main() {
16926 __crashreporter_info__ = "test";
16927 return 0;
16928 }
16931 _ACEOF
16932 rm -f conftest.$ac_objext conftest$ac_exeext
16933 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16940 ac_status=$?
16941 grep -v '^ *+' conftest.er1 >conftest.err
16942 rm -f conftest.er1
16943 cat conftest.err >&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
16946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16947 { (case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_try") 2>&5
16953 ac_status=$?
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; } &&
16956 { ac_try='test -s conftest$ac_exeext'
16957 { (case "(($ac_try" in
16958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16959 *) ac_try_echo=$ac_try;;
16960 esac
16961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16962 (eval "$ac_try") 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16967 { echo "$as_me:$LINENO: result: yes" >&5
16968 echo "${ECHO_T}yes" >&6; }
16970 cat >>confdefs.h <<\_ACEOF
16971 #define HAVE_CRASHREPORTER_INFO 1
16972 _ACEOF
16975 else
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16980 { echo "$as_me:$LINENO: result: no" >&5
16981 echo "${ECHO_T}no" >&6; }
16983 cat >>confdefs.h <<\_ACEOF
16984 #define HAVE_CRASHREPORTER_INFO 0
16985 _ACEOF
16988 fi
16990 rm -f core conftest.err conftest.$ac_objext \
16991 conftest$ac_exeext conftest.$ac_ext
16995 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16996 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16997 if test "${ac_cv_huge_val_sanity+set}" = set; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
16999 else
17001 ac_ext=cpp
17002 ac_cpp='$CXXCPP $CPPFLAGS'
17003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17007 ac_save_CXXFLAGS=$CXXFLAGS
17008 CXXFLAGS="$CXXFLAGS -pedantic"
17009 if test "$cross_compiling" = yes; then
17010 ac_cv_huge_val_sanity=yes
17011 else
17012 cat >conftest.$ac_ext <<_ACEOF
17013 /* confdefs.h. */
17014 _ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h. */
17018 #include <math.h>
17019 int
17020 main ()
17021 {
17022 double x = HUGE_VAL; return x != x;
17023 ;
17024 return 0;
17025 }
17026 _ACEOF
17027 rm -f conftest$ac_exeext
17028 if { (ac_try="$ac_link"
17029 case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17032 esac
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_link") 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17038 { (case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17041 esac
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_try") 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 ac_cv_huge_val_sanity=yes
17048 else
17049 echo "$as_me: program exited with status $ac_status" >&5
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17053 ( exit $ac_status )
17054 ac_cv_huge_val_sanity=no
17055 fi
17056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17057 fi
17060 CXXFLAGS=$ac_save_CXXFLAGS
17061 ac_ext=c
17062 ac_cpp='$CPP $CPPFLAGS'
17063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17068 fi
17069 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17070 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17071 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17074 { echo "$as_me:$LINENO: checking for pid_t" >&5
17075 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17076 if test "${ac_cv_type_pid_t+set}" = set; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079 cat >conftest.$ac_ext <<_ACEOF
17080 /* confdefs.h. */
17081 _ACEOF
17082 cat confdefs.h >>conftest.$ac_ext
17083 cat >>conftest.$ac_ext <<_ACEOF
17084 /* end confdefs.h. */
17085 $ac_includes_default
17086 typedef pid_t ac__type_new_;
17087 int
17088 main ()
17089 {
17090 if ((ac__type_new_ *) 0)
17091 return 0;
17092 if (sizeof (ac__type_new_))
17093 return 0;
17094 ;
17095 return 0;
17096 }
17097 _ACEOF
17098 rm -f conftest.$ac_objext
17099 if { (ac_try="$ac_compile"
17100 case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17103 esac
17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_compile") 2>conftest.er1
17106 ac_status=$?
17107 grep -v '^ *+' conftest.er1 >conftest.err
17108 rm -f conftest.er1
17109 cat conftest.err >&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } &&
17112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17113 { (case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17116 esac
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_try") 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; } &&
17122 { ac_try='test -s conftest.$ac_objext'
17123 { (case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17126 esac
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_try") 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 ac_cv_type_pid_t=yes
17133 else
17134 echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17137 ac_cv_type_pid_t=no
17138 fi
17140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141 fi
17142 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17143 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17144 if test $ac_cv_type_pid_t = yes; then
17145 :
17146 else
17148 cat >>confdefs.h <<_ACEOF
17149 #define pid_t int
17150 _ACEOF
17152 fi
17154 { echo "$as_me:$LINENO: checking for size_t" >&5
17155 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17156 if test "${ac_cv_type_size_t+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17158 else
17159 cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h. */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17165 $ac_includes_default
17166 typedef size_t ac__type_new_;
17167 int
17168 main ()
17169 {
17170 if ((ac__type_new_ *) 0)
17171 return 0;
17172 if (sizeof (ac__type_new_))
17173 return 0;
17174 ;
17175 return 0;
17176 }
17177 _ACEOF
17178 rm -f conftest.$ac_objext
17179 if { (ac_try="$ac_compile"
17180 case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_compile") 2>conftest.er1
17186 ac_status=$?
17187 grep -v '^ *+' conftest.er1 >conftest.err
17188 rm -f conftest.er1
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
17192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17193 { (case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196 esac
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_try") 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; } &&
17202 { ac_try='test -s conftest.$ac_objext'
17203 { (case "(($ac_try" in
17204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205 *) ac_try_echo=$ac_try;;
17206 esac
17207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208 (eval "$ac_try") 2>&5
17209 ac_status=$?
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; }; then
17212 ac_cv_type_size_t=yes
17213 else
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 ac_cv_type_size_t=no
17218 fi
17220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221 fi
17222 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17223 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17224 if test $ac_cv_type_size_t = yes; then
17225 :
17226 else
17228 cat >>confdefs.h <<_ACEOF
17229 #define size_t unsigned int
17230 _ACEOF
17232 fi
17235 cat >>confdefs.h <<_ACEOF
17236 #define RETSIGTYPE void
17237 _ACEOF
17239 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17240 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17241 if test "${ac_cv_struct_tm+set}" = set; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17243 else
17244 cat >conftest.$ac_ext <<_ACEOF
17245 /* confdefs.h. */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17250 #include <sys/types.h>
17251 #include <time.h>
17253 int
17254 main ()
17255 {
17256 struct tm *tp; tp->tm_sec;
17257 ;
17258 return 0;
17259 }
17260 _ACEOF
17261 rm -f conftest.$ac_objext
17262 if { (ac_try="$ac_compile"
17263 case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_compile") 2>conftest.er1
17269 ac_status=$?
17270 grep -v '^ *+' conftest.er1 >conftest.err
17271 rm -f conftest.er1
17272 cat conftest.err >&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17276 { (case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17279 esac
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281 (eval "$ac_try") 2>&5
17282 ac_status=$?
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; } &&
17285 { ac_try='test -s conftest.$ac_objext'
17286 { (case "(($ac_try" in
17287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288 *) ac_try_echo=$ac_try;;
17289 esac
17290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291 (eval "$ac_try") 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; }; then
17295 ac_cv_struct_tm=time.h
17296 else
17297 echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17300 ac_cv_struct_tm=sys/time.h
17301 fi
17303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17304 fi
17305 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17306 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17307 if test $ac_cv_struct_tm = sys/time.h; then
17309 cat >>confdefs.h <<\_ACEOF
17310 #define TM_IN_SYS_TIME 1
17311 _ACEOF
17313 fi
17315 { echo "$as_me:$LINENO: checking for int64_t" >&5
17316 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17317 if test "${ac_cv_type_int64_t+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 else
17320 cat >conftest.$ac_ext <<_ACEOF
17321 /* confdefs.h. */
17322 _ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17326 $ac_includes_default
17327 typedef int64_t ac__type_new_;
17328 int
17329 main ()
17330 {
17331 if ((ac__type_new_ *) 0)
17332 return 0;
17333 if (sizeof (ac__type_new_))
17334 return 0;
17335 ;
17336 return 0;
17337 }
17338 _ACEOF
17339 rm -f conftest.$ac_objext
17340 if { (ac_try="$ac_compile"
17341 case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17344 esac
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_compile") 2>conftest.er1
17347 ac_status=$?
17348 grep -v '^ *+' conftest.er1 >conftest.err
17349 rm -f conftest.er1
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } &&
17353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17354 { (case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_try") 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; } &&
17363 { ac_try='test -s conftest.$ac_objext'
17364 { (case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_try") 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; }; then
17373 ac_cv_type_int64_t=yes
17374 else
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 ac_cv_type_int64_t=no
17379 fi
17381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17382 fi
17383 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17384 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17385 if test $ac_cv_type_int64_t = yes; then
17387 cat >>confdefs.h <<_ACEOF
17388 #define HAVE_INT64_T 1
17389 _ACEOF
17392 else
17393 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17394 echo "$as_me: error: Type int64_t required but not found" >&2;}
17395 { (exit 1); exit 1; }; }
17396 fi
17398 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17399 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17400 if test "${ac_cv_type_uint64_t+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17402 else
17403 cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h. */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17409 $ac_includes_default
17410 typedef uint64_t ac__type_new_;
17411 int
17412 main ()
17413 {
17414 if ((ac__type_new_ *) 0)
17415 return 0;
17416 if (sizeof (ac__type_new_))
17417 return 0;
17418 ;
17419 return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext
17423 if { (ac_try="$ac_compile"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17427 esac
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_compile") 2>conftest.er1
17430 ac_status=$?
17431 grep -v '^ *+' conftest.er1 >conftest.err
17432 rm -f conftest.er1
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17437 { (case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17440 esac
17441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_try") 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; } &&
17446 { ac_try='test -s conftest.$ac_objext'
17447 { (case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17450 esac
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_try") 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 ac_cv_type_uint64_t=yes
17457 else
17458 echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17461 ac_cv_type_uint64_t=no
17462 fi
17464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17465 fi
17466 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17467 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17468 if test $ac_cv_type_uint64_t = yes; then
17470 cat >>confdefs.h <<_ACEOF
17471 #define HAVE_UINT64_T 1
17472 _ACEOF
17475 else
17476 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17477 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17478 if test "${ac_cv_type_u_int64_t+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17480 else
17481 cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h. */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 $ac_includes_default
17488 typedef u_int64_t ac__type_new_;
17489 int
17490 main ()
17491 {
17492 if ((ac__type_new_ *) 0)
17493 return 0;
17494 if (sizeof (ac__type_new_))
17495 return 0;
17496 ;
17497 return 0;
17498 }
17499 _ACEOF
17500 rm -f conftest.$ac_objext
17501 if { (ac_try="$ac_compile"
17502 case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17505 esac
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_compile") 2>conftest.er1
17508 ac_status=$?
17509 grep -v '^ *+' conftest.er1 >conftest.err
17510 rm -f conftest.er1
17511 cat conftest.err >&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } &&
17514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17515 { (case "(($ac_try" in
17516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517 *) ac_try_echo=$ac_try;;
17518 esac
17519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520 (eval "$ac_try") 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest.$ac_objext'
17525 { (case "(($ac_try" in
17526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17528 esac
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530 (eval "$ac_try") 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; }; then
17534 ac_cv_type_u_int64_t=yes
17535 else
17536 echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17539 ac_cv_type_u_int64_t=no
17540 fi
17542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17543 fi
17544 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17545 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17546 if test $ac_cv_type_u_int64_t = yes; then
17548 cat >>confdefs.h <<_ACEOF
17549 #define HAVE_U_INT64_T 1
17550 _ACEOF
17553 else
17554 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17555 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17556 { (exit 1); exit 1; }; }
17557 fi
17559 fi
17570 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17571 do
17572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17577 else
17578 cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h. */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17586 #define $ac_func innocuous_$ac_func
17588 /* System header to define __stub macros and hopefully few prototypes,
17589 which can conflict with char $ac_func (); below.
17590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17591 <limits.h> exists even on freestanding compilers. */
17593 #ifdef __STDC__
17594 # include <limits.h>
17595 #else
17596 # include <assert.h>
17597 #endif
17599 #undef $ac_func
17601 /* Override any GCC internal prototype to avoid an error.
17602 Use char because int might match the return type of a GCC
17603 builtin and then its argument prototype would still apply. */
17604 #ifdef __cplusplus
17605 extern "C"
17606 #endif
17607 char $ac_func ();
17608 /* The GNU C library defines this for functions which it implements
17609 to always fail with ENOSYS. Some functions are actually named
17610 something starting with __ and the normal name is an alias. */
17611 #if defined __stub_$ac_func || defined __stub___$ac_func
17612 choke me
17613 #endif
17615 int
17616 main ()
17617 {
17618 return $ac_func ();
17619 ;
17620 return 0;
17621 }
17622 _ACEOF
17623 rm -f conftest.$ac_objext conftest$ac_exeext
17624 if { (ac_try="$ac_link"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_link") 2>conftest.er1
17631 ac_status=$?
17632 grep -v '^ *+' conftest.er1 >conftest.err
17633 rm -f conftest.er1
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } &&
17637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17638 { (case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17641 esac
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_try") 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; } &&
17647 { ac_try='test -s conftest$ac_exeext'
17648 { (case "(($ac_try" in
17649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650 *) ac_try_echo=$ac_try;;
17651 esac
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653 (eval "$ac_try") 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657 eval "$as_ac_var=yes"
17658 else
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 eval "$as_ac_var=no"
17663 fi
17665 rm -f core conftest.err conftest.$ac_objext \
17666 conftest$ac_exeext conftest.$ac_ext
17667 fi
17668 ac_res=`eval echo '${'$as_ac_var'}'`
17669 { echo "$as_me:$LINENO: result: $ac_res" >&5
17670 echo "${ECHO_T}$ac_res" >&6; }
17671 if test `eval echo '${'$as_ac_var'}'` = yes; then
17672 cat >>confdefs.h <<_ACEOF
17673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17674 _ACEOF
17676 fi
17677 done
17683 for ac_func in powf fmodf strtof round
17684 do
17685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17686 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 else
17691 cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h. */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17699 #define $ac_func innocuous_$ac_func
17701 /* System header to define __stub macros and hopefully few prototypes,
17702 which can conflict with char $ac_func (); below.
17703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17704 <limits.h> exists even on freestanding compilers. */
17706 #ifdef __STDC__
17707 # include <limits.h>
17708 #else
17709 # include <assert.h>
17710 #endif
17712 #undef $ac_func
17714 /* Override any GCC internal prototype to avoid an error.
17715 Use char because int might match the return type of a GCC
17716 builtin and then its argument prototype would still apply. */
17717 #ifdef __cplusplus
17718 extern "C"
17719 #endif
17720 char $ac_func ();
17721 /* The GNU C library defines this for functions which it implements
17722 to always fail with ENOSYS. Some functions are actually named
17723 something starting with __ and the normal name is an alias. */
17724 #if defined __stub_$ac_func || defined __stub___$ac_func
17725 choke me
17726 #endif
17728 int
17729 main ()
17730 {
17731 return $ac_func ();
17732 ;
17733 return 0;
17734 }
17735 _ACEOF
17736 rm -f conftest.$ac_objext conftest$ac_exeext
17737 if { (ac_try="$ac_link"
17738 case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17741 esac
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_link") 2>conftest.er1
17744 ac_status=$?
17745 grep -v '^ *+' conftest.er1 >conftest.err
17746 rm -f conftest.er1
17747 cat conftest.err >&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } &&
17750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17751 { (case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17754 esac
17755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_try") 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest$ac_exeext'
17761 { (case "(($ac_try" in
17762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763 *) ac_try_echo=$ac_try;;
17764 esac
17765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17766 (eval "$ac_try") 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17770 eval "$as_ac_var=yes"
17771 else
17772 echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17775 eval "$as_ac_var=no"
17776 fi
17778 rm -f core conftest.err conftest.$ac_objext \
17779 conftest$ac_exeext conftest.$ac_ext
17780 fi
17781 ac_res=`eval echo '${'$as_ac_var'}'`
17782 { echo "$as_me:$LINENO: result: $ac_res" >&5
17783 echo "${ECHO_T}$ac_res" >&6; }
17784 if test `eval echo '${'$as_ac_var'}'` = yes; then
17785 cat >>confdefs.h <<_ACEOF
17786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17787 _ACEOF
17789 fi
17790 done
17797 for ac_func in log log2 log10 exp exp2
17798 do
17799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17803 echo $ECHO_N "(cached) $ECHO_C" >&6
17804 else
17805 cat >conftest.$ac_ext <<_ACEOF
17806 /* confdefs.h. */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17813 #define $ac_func innocuous_$ac_func
17815 /* System header to define __stub macros and hopefully few prototypes,
17816 which can conflict with char $ac_func (); below.
17817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17818 <limits.h> exists even on freestanding compilers. */
17820 #ifdef __STDC__
17821 # include <limits.h>
17822 #else
17823 # include <assert.h>
17824 #endif
17826 #undef $ac_func
17828 /* Override any GCC internal prototype to avoid an error.
17829 Use char because int might match the return type of a GCC
17830 builtin and then its argument prototype would still apply. */
17831 #ifdef __cplusplus
17832 extern "C"
17833 #endif
17834 char $ac_func ();
17835 /* The GNU C library defines this for functions which it implements
17836 to always fail with ENOSYS. Some functions are actually named
17837 something starting with __ and the normal name is an alias. */
17838 #if defined __stub_$ac_func || defined __stub___$ac_func
17839 choke me
17840 #endif
17842 int
17843 main ()
17844 {
17845 return $ac_func ();
17846 ;
17847 return 0;
17848 }
17849 _ACEOF
17850 rm -f conftest.$ac_objext conftest$ac_exeext
17851 if { (ac_try="$ac_link"
17852 case "(($ac_try" in
17853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854 *) ac_try_echo=$ac_try;;
17855 esac
17856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17857 (eval "$ac_link") 2>conftest.er1
17858 ac_status=$?
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17865 { (case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17868 esac
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_try") 2>&5
17871 ac_status=$?
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); }; } &&
17874 { ac_try='test -s conftest$ac_exeext'
17875 { (case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17878 esac
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_try") 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17884 eval "$as_ac_var=yes"
17885 else
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 eval "$as_ac_var=no"
17890 fi
17892 rm -f core conftest.err conftest.$ac_objext \
17893 conftest$ac_exeext conftest.$ac_ext
17894 fi
17895 ac_res=`eval echo '${'$as_ac_var'}'`
17896 { echo "$as_me:$LINENO: result: $ac_res" >&5
17897 echo "${ECHO_T}$ac_res" >&6; }
17898 if test `eval echo '${'$as_ac_var'}'` = yes; then
17899 cat >>confdefs.h <<_ACEOF
17900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17901 _ACEOF
17903 fi
17904 done
17911 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17912 do
17913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17918 else
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h. */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17927 #define $ac_func innocuous_$ac_func
17929 /* System header to define __stub macros and hopefully few prototypes,
17930 which can conflict with char $ac_func (); below.
17931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17932 <limits.h> exists even on freestanding compilers. */
17934 #ifdef __STDC__
17935 # include <limits.h>
17936 #else
17937 # include <assert.h>
17938 #endif
17940 #undef $ac_func
17942 /* Override any GCC internal prototype to avoid an error.
17943 Use char because int might match the return type of a GCC
17944 builtin and then its argument prototype would still apply. */
17945 #ifdef __cplusplus
17946 extern "C"
17947 #endif
17948 char $ac_func ();
17949 /* The GNU C library defines this for functions which it implements
17950 to always fail with ENOSYS. Some functions are actually named
17951 something starting with __ and the normal name is an alias. */
17952 #if defined __stub_$ac_func || defined __stub___$ac_func
17953 choke me
17954 #endif
17956 int
17957 main ()
17958 {
17959 return $ac_func ();
17960 ;
17961 return 0;
17962 }
17963 _ACEOF
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (ac_try="$ac_link"
17966 case "(($ac_try" in
17967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968 *) ac_try_echo=$ac_try;;
17969 esac
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971 (eval "$ac_link") 2>conftest.er1
17972 ac_status=$?
17973 grep -v '^ *+' conftest.er1 >conftest.err
17974 rm -f conftest.er1
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } &&
17978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17979 { (case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17982 esac
17983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_try") 2>&5
17985 ac_status=$?
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; } &&
17988 { ac_try='test -s conftest$ac_exeext'
17989 { (case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17992 esac
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_try") 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
17998 eval "$as_ac_var=yes"
17999 else
18000 echo "$as_me: failed program was:" >&5
18001 sed 's/^/| /' conftest.$ac_ext >&5
18003 eval "$as_ac_var=no"
18004 fi
18006 rm -f core conftest.err conftest.$ac_objext \
18007 conftest$ac_exeext conftest.$ac_ext
18008 fi
18009 ac_res=`eval echo '${'$as_ac_var'}'`
18010 { echo "$as_me:$LINENO: result: $ac_res" >&5
18011 echo "${ECHO_T}$ac_res" >&6; }
18012 if test `eval echo '${'$as_ac_var'}'` = yes; then
18013 cat >>confdefs.h <<_ACEOF
18014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18015 _ACEOF
18017 fi
18018 done
18023 for ac_func in isatty mkdtemp mkstemp
18024 do
18025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18030 else
18031 cat >conftest.$ac_ext <<_ACEOF
18032 /* confdefs.h. */
18033 _ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h. */
18037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18039 #define $ac_func innocuous_$ac_func
18041 /* System header to define __stub macros and hopefully few prototypes,
18042 which can conflict with char $ac_func (); below.
18043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18044 <limits.h> exists even on freestanding compilers. */
18046 #ifdef __STDC__
18047 # include <limits.h>
18048 #else
18049 # include <assert.h>
18050 #endif
18052 #undef $ac_func
18054 /* Override any GCC internal prototype to avoid an error.
18055 Use char because int might match the return type of a GCC
18056 builtin and then its argument prototype would still apply. */
18057 #ifdef __cplusplus
18058 extern "C"
18059 #endif
18060 char $ac_func ();
18061 /* The GNU C library defines this for functions which it implements
18062 to always fail with ENOSYS. Some functions are actually named
18063 something starting with __ and the normal name is an alias. */
18064 #if defined __stub_$ac_func || defined __stub___$ac_func
18065 choke me
18066 #endif
18068 int
18069 main ()
18070 {
18071 return $ac_func ();
18072 ;
18073 return 0;
18074 }
18075 _ACEOF
18076 rm -f conftest.$ac_objext conftest$ac_exeext
18077 if { (ac_try="$ac_link"
18078 case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18081 esac
18082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083 (eval "$ac_link") 2>conftest.er1
18084 ac_status=$?
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -f conftest.er1
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } &&
18090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18091 { (case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18094 esac
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_try") 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; } &&
18100 { ac_try='test -s conftest$ac_exeext'
18101 { (case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18104 esac
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_try") 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; }; then
18110 eval "$as_ac_var=yes"
18111 else
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 eval "$as_ac_var=no"
18116 fi
18118 rm -f core conftest.err conftest.$ac_objext \
18119 conftest$ac_exeext conftest.$ac_ext
18120 fi
18121 ac_res=`eval echo '${'$as_ac_var'}'`
18122 { echo "$as_me:$LINENO: result: $ac_res" >&5
18123 echo "${ECHO_T}$ac_res" >&6; }
18124 if test `eval echo '${'$as_ac_var'}'` = yes; then
18125 cat >>confdefs.h <<_ACEOF
18126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18127 _ACEOF
18129 fi
18130 done
18138 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18139 do
18140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18145 else
18146 cat >conftest.$ac_ext <<_ACEOF
18147 /* confdefs.h. */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18154 #define $ac_func innocuous_$ac_func
18156 /* System header to define __stub macros and hopefully few prototypes,
18157 which can conflict with char $ac_func (); below.
18158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18159 <limits.h> exists even on freestanding compilers. */
18161 #ifdef __STDC__
18162 # include <limits.h>
18163 #else
18164 # include <assert.h>
18165 #endif
18167 #undef $ac_func
18169 /* Override any GCC internal prototype to avoid an error.
18170 Use char because int might match the return type of a GCC
18171 builtin and then its argument prototype would still apply. */
18172 #ifdef __cplusplus
18173 extern "C"
18174 #endif
18175 char $ac_func ();
18176 /* The GNU C library defines this for functions which it implements
18177 to always fail with ENOSYS. Some functions are actually named
18178 something starting with __ and the normal name is an alias. */
18179 #if defined __stub_$ac_func || defined __stub___$ac_func
18180 choke me
18181 #endif
18183 int
18184 main ()
18185 {
18186 return $ac_func ();
18187 ;
18188 return 0;
18189 }
18190 _ACEOF
18191 rm -f conftest.$ac_objext conftest$ac_exeext
18192 if { (ac_try="$ac_link"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18196 esac
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_link") 2>conftest.er1
18199 ac_status=$?
18200 grep -v '^ *+' conftest.er1 >conftest.err
18201 rm -f conftest.er1
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } &&
18205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18206 { (case "(($ac_try" in
18207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208 *) ac_try_echo=$ac_try;;
18209 esac
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211 (eval "$ac_try") 2>&5
18212 ac_status=$?
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; } &&
18215 { ac_try='test -s conftest$ac_exeext'
18216 { (case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18219 esac
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221 (eval "$ac_try") 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; }; then
18225 eval "$as_ac_var=yes"
18226 else
18227 echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18230 eval "$as_ac_var=no"
18231 fi
18233 rm -f core conftest.err conftest.$ac_objext \
18234 conftest$ac_exeext conftest.$ac_ext
18235 fi
18236 ac_res=`eval echo '${'$as_ac_var'}'`
18237 { echo "$as_me:$LINENO: result: $ac_res" >&5
18238 echo "${ECHO_T}$ac_res" >&6; }
18239 if test `eval echo '${'$as_ac_var'}'` = yes; then
18240 cat >>confdefs.h <<_ACEOF
18241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18242 _ACEOF
18244 fi
18245 done
18251 for ac_func in strerror strerror_r setenv arc4random
18252 do
18253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18257 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 else
18259 cat >conftest.$ac_ext <<_ACEOF
18260 /* confdefs.h. */
18261 _ACEOF
18262 cat confdefs.h >>conftest.$ac_ext
18263 cat >>conftest.$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18267 #define $ac_func innocuous_$ac_func
18269 /* System header to define __stub macros and hopefully few prototypes,
18270 which can conflict with char $ac_func (); below.
18271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18272 <limits.h> exists even on freestanding compilers. */
18274 #ifdef __STDC__
18275 # include <limits.h>
18276 #else
18277 # include <assert.h>
18278 #endif
18280 #undef $ac_func
18282 /* Override any GCC internal prototype to avoid an error.
18283 Use char because int might match the return type of a GCC
18284 builtin and then its argument prototype would still apply. */
18285 #ifdef __cplusplus
18286 extern "C"
18287 #endif
18288 char $ac_func ();
18289 /* The GNU C library defines this for functions which it implements
18290 to always fail with ENOSYS. Some functions are actually named
18291 something starting with __ and the normal name is an alias. */
18292 #if defined __stub_$ac_func || defined __stub___$ac_func
18293 choke me
18294 #endif
18296 int
18297 main ()
18298 {
18299 return $ac_func ();
18300 ;
18301 return 0;
18302 }
18303 _ACEOF
18304 rm -f conftest.$ac_objext conftest$ac_exeext
18305 if { (ac_try="$ac_link"
18306 case "(($ac_try" in
18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18309 esac
18310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311 (eval "$ac_link") 2>conftest.er1
18312 ac_status=$?
18313 grep -v '^ *+' conftest.er1 >conftest.err
18314 rm -f conftest.er1
18315 cat conftest.err >&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } &&
18318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18319 { (case "(($ac_try" in
18320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321 *) ac_try_echo=$ac_try;;
18322 esac
18323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324 (eval "$ac_try") 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; } &&
18328 { ac_try='test -s conftest$ac_exeext'
18329 { (case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18332 esac
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_try") 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; }; then
18338 eval "$as_ac_var=yes"
18339 else
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18343 eval "$as_ac_var=no"
18344 fi
18346 rm -f core conftest.err conftest.$ac_objext \
18347 conftest$ac_exeext conftest.$ac_ext
18348 fi
18349 ac_res=`eval echo '${'$as_ac_var'}'`
18350 { echo "$as_me:$LINENO: result: $ac_res" >&5
18351 echo "${ECHO_T}$ac_res" >&6; }
18352 if test `eval echo '${'$as_ac_var'}'` = yes; then
18353 cat >>confdefs.h <<_ACEOF
18354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18355 _ACEOF
18357 fi
18358 done
18364 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18365 do
18366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 else
18372 cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h. */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18380 #define $ac_func innocuous_$ac_func
18382 /* System header to define __stub macros and hopefully few prototypes,
18383 which can conflict with char $ac_func (); below.
18384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18385 <limits.h> exists even on freestanding compilers. */
18387 #ifdef __STDC__
18388 # include <limits.h>
18389 #else
18390 # include <assert.h>
18391 #endif
18393 #undef $ac_func
18395 /* Override any GCC internal prototype to avoid an error.
18396 Use char because int might match the return type of a GCC
18397 builtin and then its argument prototype would still apply. */
18398 #ifdef __cplusplus
18399 extern "C"
18400 #endif
18401 char $ac_func ();
18402 /* The GNU C library defines this for functions which it implements
18403 to always fail with ENOSYS. Some functions are actually named
18404 something starting with __ and the normal name is an alias. */
18405 #if defined __stub_$ac_func || defined __stub___$ac_func
18406 choke me
18407 #endif
18409 int
18410 main ()
18411 {
18412 return $ac_func ();
18413 ;
18414 return 0;
18415 }
18416 _ACEOF
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (ac_try="$ac_link"
18419 case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18422 esac
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_link") 2>conftest.er1
18425 ac_status=$?
18426 grep -v '^ *+' conftest.er1 >conftest.err
18427 rm -f conftest.er1
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
18431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18432 { (case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18435 esac
18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_try") 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest$ac_exeext'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 eval "$as_ac_var=yes"
18452 else
18453 echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18456 eval "$as_ac_var=no"
18457 fi
18459 rm -f core conftest.err conftest.$ac_objext \
18460 conftest$ac_exeext conftest.$ac_ext
18461 fi
18462 ac_res=`eval echo '${'$as_ac_var'}'`
18463 { echo "$as_me:$LINENO: result: $ac_res" >&5
18464 echo "${ECHO_T}$ac_res" >&6; }
18465 if test `eval echo '${'$as_ac_var'}'` = yes; then
18466 cat >>confdefs.h <<_ACEOF
18467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18468 _ACEOF
18470 fi
18471 done
18478 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18479 do
18480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18481 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18484 echo $ECHO_N "(cached) $ECHO_C" >&6
18485 else
18486 cat >conftest.$ac_ext <<_ACEOF
18487 /* confdefs.h. */
18488 _ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h. */
18492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18494 #define $ac_func innocuous_$ac_func
18496 /* System header to define __stub macros and hopefully few prototypes,
18497 which can conflict with char $ac_func (); below.
18498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18499 <limits.h> exists even on freestanding compilers. */
18501 #ifdef __STDC__
18502 # include <limits.h>
18503 #else
18504 # include <assert.h>
18505 #endif
18507 #undef $ac_func
18509 /* Override any GCC internal prototype to avoid an error.
18510 Use char because int might match the return type of a GCC
18511 builtin and then its argument prototype would still apply. */
18512 #ifdef __cplusplus
18513 extern "C"
18514 #endif
18515 char $ac_func ();
18516 /* The GNU C library defines this for functions which it implements
18517 to always fail with ENOSYS. Some functions are actually named
18518 something starting with __ and the normal name is an alias. */
18519 #if defined __stub_$ac_func || defined __stub___$ac_func
18520 choke me
18521 #endif
18523 int
18524 main ()
18525 {
18526 return $ac_func ();
18527 ;
18528 return 0;
18529 }
18530 _ACEOF
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (ac_try="$ac_link"
18533 case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18536 esac
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_link") 2>conftest.er1
18539 ac_status=$?
18540 grep -v '^ *+' conftest.er1 >conftest.err
18541 rm -f conftest.er1
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } &&
18545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18546 { (case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18549 esac
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_try") 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest$ac_exeext'
18556 { (case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18559 esac
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_try") 2>&5
18562 ac_status=$?
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18565 eval "$as_ac_var=yes"
18566 else
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 eval "$as_ac_var=no"
18571 fi
18573 rm -f core conftest.err conftest.$ac_objext \
18574 conftest$ac_exeext conftest.$ac_ext
18575 fi
18576 ac_res=`eval echo '${'$as_ac_var'}'`
18577 { echo "$as_me:$LINENO: result: $ac_res" >&5
18578 echo "${ECHO_T}$ac_res" >&6; }
18579 if test `eval echo '${'$as_ac_var'}'` = yes; then
18580 cat >>confdefs.h <<_ACEOF
18581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18582 _ACEOF
18584 fi
18585 done
18589 for ac_func in futimes futimens
18590 do
18591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18596 else
18597 cat >conftest.$ac_ext <<_ACEOF
18598 /* confdefs.h. */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18605 #define $ac_func innocuous_$ac_func
18607 /* System header to define __stub macros and hopefully few prototypes,
18608 which can conflict with char $ac_func (); below.
18609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18610 <limits.h> exists even on freestanding compilers. */
18612 #ifdef __STDC__
18613 # include <limits.h>
18614 #else
18615 # include <assert.h>
18616 #endif
18618 #undef $ac_func
18620 /* Override any GCC internal prototype to avoid an error.
18621 Use char because int might match the return type of a GCC
18622 builtin and then its argument prototype would still apply. */
18623 #ifdef __cplusplus
18624 extern "C"
18625 #endif
18626 char $ac_func ();
18627 /* The GNU C library defines this for functions which it implements
18628 to always fail with ENOSYS. Some functions are actually named
18629 something starting with __ and the normal name is an alias. */
18630 #if defined __stub_$ac_func || defined __stub___$ac_func
18631 choke me
18632 #endif
18634 int
18635 main ()
18636 {
18637 return $ac_func ();
18638 ;
18639 return 0;
18640 }
18641 _ACEOF
18642 rm -f conftest.$ac_objext conftest$ac_exeext
18643 if { (ac_try="$ac_link"
18644 case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18647 esac
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_link") 2>conftest.er1
18650 ac_status=$?
18651 grep -v '^ *+' conftest.er1 >conftest.err
18652 rm -f conftest.er1
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } &&
18656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18657 { (case "(($ac_try" in
18658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18659 *) ac_try_echo=$ac_try;;
18660 esac
18661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18662 (eval "$ac_try") 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; } &&
18666 { ac_try='test -s conftest$ac_exeext'
18667 { (case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18670 esac
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_try") 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 eval "$as_ac_var=yes"
18677 else
18678 echo "$as_me: failed program was:" >&5
18679 sed 's/^/| /' conftest.$ac_ext >&5
18681 eval "$as_ac_var=no"
18682 fi
18684 rm -f core conftest.err conftest.$ac_objext \
18685 conftest$ac_exeext conftest.$ac_ext
18686 fi
18687 ac_res=`eval echo '${'$as_ac_var'}'`
18688 { echo "$as_me:$LINENO: result: $ac_res" >&5
18689 echo "${ECHO_T}$ac_res" >&6; }
18690 if test `eval echo '${'$as_ac_var'}'` = yes; then
18691 cat >>confdefs.h <<_ACEOF
18692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18693 _ACEOF
18695 fi
18696 done
18698 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18699 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18700 if test "${llvm_cv_c_printf_a+set}" = set; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18702 else
18703 ac_ext=c
18704 ac_cpp='$CPP $CPPFLAGS'
18705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18709 if test "$cross_compiling" = yes; then
18710 llvmac_cv_c_printf_a=no
18711 else
18712 cat >conftest.$ac_ext <<_ACEOF
18714 /* confdefs.h. */
18715 _ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h. */
18720 #include <stdio.h>
18721 #include <stdlib.h>
18723 int
18724 main ()
18725 {
18727 volatile double A, B;
18728 char Buffer[100];
18729 A = 1;
18730 A /= 10.0;
18731 sprintf(Buffer, "%a", A);
18732 B = atof(Buffer);
18733 if (A != B)
18734 return (1);
18735 if (A != 0x1.999999999999ap-4)
18736 return (1);
18737 return (0);
18738 ;
18739 return 0;
18740 }
18741 _ACEOF
18742 rm -f conftest$ac_exeext
18743 if { (ac_try="$ac_link"
18744 case "(($ac_try" in
18745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18746 *) ac_try_echo=$ac_try;;
18747 esac
18748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18749 (eval "$ac_link") 2>&5
18750 ac_status=$?
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18753 { (case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18756 esac
18757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_try") 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; }; then
18762 llvm_cv_c_printf_a=yes
18763 else
18764 echo "$as_me: program exited with status $ac_status" >&5
18765 echo "$as_me: failed program was:" >&5
18766 sed 's/^/| /' conftest.$ac_ext >&5
18768 ( exit $ac_status )
18769 llvmac_cv_c_printf_a=no
18770 fi
18771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18772 fi
18775 ac_ext=c
18776 ac_cpp='$CPP $CPPFLAGS'
18777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18781 fi
18782 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18783 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18784 if test "$llvm_cv_c_printf_a" = "yes"; then
18786 cat >>confdefs.h <<\_ACEOF
18787 #define HAVE_PRINTF_A 1
18788 _ACEOF
18790 fi
18794 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18795 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18796 if test "${ac_cv_func_rand48+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18800 ac_ext=cpp
18801 ac_cpp='$CXXCPP $CPPFLAGS'
18802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18806 cat >conftest.$ac_ext <<_ACEOF
18807 /* confdefs.h. */
18808 _ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h. */
18812 #include <stdlib.h>
18813 int
18814 main ()
18815 {
18816 srand48(0);lrand48();drand48();
18817 ;
18818 return 0;
18819 }
18820 _ACEOF
18821 rm -f conftest.$ac_objext
18822 if { (ac_try="$ac_compile"
18823 case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18826 esac
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_compile") 2>conftest.er1
18829 ac_status=$?
18830 grep -v '^ *+' conftest.er1 >conftest.err
18831 rm -f conftest.er1
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } &&
18835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18836 { (case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18839 esac
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_try") 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest.$ac_objext'
18846 { (case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18849 esac
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_try") 2>&5
18852 ac_status=$?
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; }; then
18855 ac_cv_func_rand48=yes
18856 else
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18860 ac_cv_func_rand48=no
18861 fi
18863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18864 ac_ext=c
18865 ac_cpp='$CPP $CPPFLAGS'
18866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18871 fi
18872 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18873 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18875 if test "$ac_cv_func_rand48" = "yes" ; then
18877 cat >>confdefs.h <<\_ACEOF
18878 #define HAVE_RAND48 1
18879 _ACEOF
18881 fi
18884 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18885 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18886 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 else
18889 cat >conftest.$ac_ext <<_ACEOF
18890 /* confdefs.h. */
18891 _ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18895 $ac_includes_default
18896 int
18897 main ()
18898 {
18899 #ifndef strerror_s
18900 char *p = (char *) strerror_s;
18901 return !p;
18902 #endif
18904 ;
18905 return 0;
18906 }
18907 _ACEOF
18908 rm -f conftest.$ac_objext
18909 if { (ac_try="$ac_compile"
18910 case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18913 esac
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_compile") 2>conftest.er1
18916 ac_status=$?
18917 grep -v '^ *+' conftest.er1 >conftest.err
18918 rm -f conftest.er1
18919 cat conftest.err >&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } &&
18922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18923 { (case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18926 esac
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_try") 2>&5
18929 ac_status=$?
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; } &&
18932 { ac_try='test -s conftest.$ac_objext'
18933 { (case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18936 esac
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_try") 2>&5
18939 ac_status=$?
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942 ac_cv_have_decl_strerror_s=yes
18943 else
18944 echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18947 ac_cv_have_decl_strerror_s=no
18948 fi
18950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18951 fi
18952 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18953 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18954 if test $ac_cv_have_decl_strerror_s = yes; then
18956 cat >>confdefs.h <<_ACEOF
18957 #define HAVE_DECL_STRERROR_S 1
18958 _ACEOF
18961 else
18962 cat >>confdefs.h <<_ACEOF
18963 #define HAVE_DECL_STRERROR_S 0
18964 _ACEOF
18967 fi
18971 if test "$llvm_cv_os_type" = "MingW" ; then
18972 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18973 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18974 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18976 else
18977 ac_check_lib_save_LIBS=$LIBS
18978 LIBS="-lgcc $LIBS"
18979 cat >conftest.$ac_ext <<_ACEOF
18980 /* confdefs.h. */
18981 _ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h. */
18986 /* Override any GCC internal prototype to avoid an error.
18987 Use char because int might match the return type of a GCC
18988 builtin and then its argument prototype would still apply. */
18989 #ifdef __cplusplus
18990 extern "C"
18991 #endif
18992 char _alloca ();
18993 int
18994 main ()
18995 {
18996 return _alloca ();
18997 ;
18998 return 0;
18999 }
19000 _ACEOF
19001 rm -f conftest.$ac_objext conftest$ac_exeext
19002 if { (ac_try="$ac_link"
19003 case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19006 esac
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_link") 2>conftest.er1
19009 ac_status=$?
19010 grep -v '^ *+' conftest.er1 >conftest.err
19011 rm -f conftest.er1
19012 cat conftest.err >&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); } &&
19015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19016 { (case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19019 esac
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_try") 2>&5
19022 ac_status=$?
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; } &&
19025 { ac_try='test -s conftest$ac_exeext'
19026 { (case "(($ac_try" in
19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19029 esac
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031 (eval "$ac_try") 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; }; then
19035 ac_cv_lib_gcc__alloca=yes
19036 else
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 ac_cv_lib_gcc__alloca=no
19041 fi
19043 rm -f core conftest.err conftest.$ac_objext \
19044 conftest$ac_exeext conftest.$ac_ext
19045 LIBS=$ac_check_lib_save_LIBS
19046 fi
19047 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19048 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19049 if test $ac_cv_lib_gcc__alloca = yes; then
19051 cat >>confdefs.h <<\_ACEOF
19052 #define HAVE__ALLOCA 1
19053 _ACEOF
19055 fi
19057 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19058 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19059 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062 ac_check_lib_save_LIBS=$LIBS
19063 LIBS="-lgcc $LIBS"
19064 cat >conftest.$ac_ext <<_ACEOF
19065 /* confdefs.h. */
19066 _ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h. */
19071 /* Override any GCC internal prototype to avoid an error.
19072 Use char because int might match the return type of a GCC
19073 builtin and then its argument prototype would still apply. */
19074 #ifdef __cplusplus
19075 extern "C"
19076 #endif
19077 char __alloca ();
19078 int
19079 main ()
19080 {
19081 return __alloca ();
19082 ;
19083 return 0;
19084 }
19085 _ACEOF
19086 rm -f conftest.$ac_objext conftest$ac_exeext
19087 if { (ac_try="$ac_link"
19088 case "(($ac_try" in
19089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090 *) ac_try_echo=$ac_try;;
19091 esac
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093 (eval "$ac_link") 2>conftest.er1
19094 ac_status=$?
19095 grep -v '^ *+' conftest.er1 >conftest.err
19096 rm -f conftest.er1
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
19100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19101 { (case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19104 esac
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_try") 2>&5
19107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; } &&
19110 { ac_try='test -s conftest$ac_exeext'
19111 { (case "(($ac_try" in
19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113 *) ac_try_echo=$ac_try;;
19114 esac
19115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116 (eval "$ac_try") 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 ac_cv_lib_gcc___alloca=yes
19121 else
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19125 ac_cv_lib_gcc___alloca=no
19126 fi
19128 rm -f core conftest.err conftest.$ac_objext \
19129 conftest$ac_exeext conftest.$ac_ext
19130 LIBS=$ac_check_lib_save_LIBS
19131 fi
19132 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19133 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19134 if test $ac_cv_lib_gcc___alloca = yes; then
19136 cat >>confdefs.h <<\_ACEOF
19137 #define HAVE___ALLOCA 1
19138 _ACEOF
19140 fi
19142 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19143 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19144 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 else
19147 ac_check_lib_save_LIBS=$LIBS
19148 LIBS="-lgcc $LIBS"
19149 cat >conftest.$ac_ext <<_ACEOF
19150 /* confdefs.h. */
19151 _ACEOF
19152 cat confdefs.h >>conftest.$ac_ext
19153 cat >>conftest.$ac_ext <<_ACEOF
19154 /* end confdefs.h. */
19156 /* Override any GCC internal prototype to avoid an error.
19157 Use char because int might match the return type of a GCC
19158 builtin and then its argument prototype would still apply. */
19159 #ifdef __cplusplus
19160 extern "C"
19161 #endif
19162 char __chkstk ();
19163 int
19164 main ()
19165 {
19166 return __chkstk ();
19167 ;
19168 return 0;
19169 }
19170 _ACEOF
19171 rm -f conftest.$ac_objext conftest$ac_exeext
19172 if { (ac_try="$ac_link"
19173 case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19176 esac
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_link") 2>conftest.er1
19179 ac_status=$?
19180 grep -v '^ *+' conftest.er1 >conftest.err
19181 rm -f conftest.er1
19182 cat conftest.err >&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } &&
19185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19186 { (case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19189 esac
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_try") 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; } &&
19195 { ac_try='test -s conftest$ac_exeext'
19196 { (case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19199 esac
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_try") 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 ac_cv_lib_gcc___chkstk=yes
19206 else
19207 echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19210 ac_cv_lib_gcc___chkstk=no
19211 fi
19213 rm -f core conftest.err conftest.$ac_objext \
19214 conftest$ac_exeext conftest.$ac_ext
19215 LIBS=$ac_check_lib_save_LIBS
19216 fi
19217 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19218 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19219 if test $ac_cv_lib_gcc___chkstk = yes; then
19221 cat >>confdefs.h <<\_ACEOF
19222 #define HAVE___CHKSTK 1
19223 _ACEOF
19225 fi
19227 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19228 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19229 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232 ac_check_lib_save_LIBS=$LIBS
19233 LIBS="-lgcc $LIBS"
19234 cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h. */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19241 /* Override any GCC internal prototype to avoid an error.
19242 Use char because int might match the return type of a GCC
19243 builtin and then its argument prototype would still apply. */
19244 #ifdef __cplusplus
19245 extern "C"
19246 #endif
19247 char ___chkstk ();
19248 int
19249 main ()
19250 {
19251 return ___chkstk ();
19252 ;
19253 return 0;
19254 }
19255 _ACEOF
19256 rm -f conftest.$ac_objext conftest$ac_exeext
19257 if { (ac_try="$ac_link"
19258 case "(($ac_try" in
19259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260 *) ac_try_echo=$ac_try;;
19261 esac
19262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19263 (eval "$ac_link") 2>conftest.er1
19264 ac_status=$?
19265 grep -v '^ *+' conftest.er1 >conftest.err
19266 rm -f conftest.er1
19267 cat conftest.err >&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } &&
19270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19271 { (case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19274 esac
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_try") 2>&5
19277 ac_status=$?
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; } &&
19280 { ac_try='test -s conftest$ac_exeext'
19281 { (case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19284 esac
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_try") 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; }; then
19290 ac_cv_lib_gcc____chkstk=yes
19291 else
19292 echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19295 ac_cv_lib_gcc____chkstk=no
19296 fi
19298 rm -f core conftest.err conftest.$ac_objext \
19299 conftest$ac_exeext conftest.$ac_ext
19300 LIBS=$ac_check_lib_save_LIBS
19301 fi
19302 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19303 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19304 if test $ac_cv_lib_gcc____chkstk = yes; then
19306 cat >>confdefs.h <<\_ACEOF
19307 #define HAVE____CHKSTK 1
19308 _ACEOF
19310 fi
19313 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19314 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19315 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19316 echo $ECHO_N "(cached) $ECHO_C" >&6
19317 else
19318 ac_check_lib_save_LIBS=$LIBS
19319 LIBS="-lgcc $LIBS"
19320 cat >conftest.$ac_ext <<_ACEOF
19321 /* confdefs.h. */
19322 _ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h. */
19327 /* Override any GCC internal prototype to avoid an error.
19328 Use char because int might match the return type of a GCC
19329 builtin and then its argument prototype would still apply. */
19330 #ifdef __cplusplus
19331 extern "C"
19332 #endif
19333 char __ashldi3 ();
19334 int
19335 main ()
19336 {
19337 return __ashldi3 ();
19338 ;
19339 return 0;
19340 }
19341 _ACEOF
19342 rm -f conftest.$ac_objext conftest$ac_exeext
19343 if { (ac_try="$ac_link"
19344 case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19347 esac
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_link") 2>conftest.er1
19350 ac_status=$?
19351 grep -v '^ *+' conftest.er1 >conftest.err
19352 rm -f conftest.er1
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19357 { (case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19360 esac
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_try") 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; } &&
19366 { ac_try='test -s conftest$ac_exeext'
19367 { (case "(($ac_try" in
19368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19370 esac
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372 (eval "$ac_try") 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; }; then
19376 ac_cv_lib_gcc___ashldi3=yes
19377 else
19378 echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19381 ac_cv_lib_gcc___ashldi3=no
19382 fi
19384 rm -f core conftest.err conftest.$ac_objext \
19385 conftest$ac_exeext conftest.$ac_ext
19386 LIBS=$ac_check_lib_save_LIBS
19387 fi
19388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19389 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19390 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19392 cat >>confdefs.h <<\_ACEOF
19393 #define HAVE___ASHLDI3 1
19394 _ACEOF
19396 fi
19398 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19399 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19400 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
19402 else
19403 ac_check_lib_save_LIBS=$LIBS
19404 LIBS="-lgcc $LIBS"
19405 cat >conftest.$ac_ext <<_ACEOF
19406 /* confdefs.h. */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19412 /* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19415 #ifdef __cplusplus
19416 extern "C"
19417 #endif
19418 char __ashrdi3 ();
19419 int
19420 main ()
19421 {
19422 return __ashrdi3 ();
19423 ;
19424 return 0;
19425 }
19426 _ACEOF
19427 rm -f conftest.$ac_objext conftest$ac_exeext
19428 if { (ac_try="$ac_link"
19429 case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432 esac
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_link") 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
19441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19442 { (case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445 esac
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_try") 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; } &&
19451 { ac_try='test -s conftest$ac_exeext'
19452 { (case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19455 esac
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_try") 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
19461 ac_cv_lib_gcc___ashrdi3=yes
19462 else
19463 echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19466 ac_cv_lib_gcc___ashrdi3=no
19467 fi
19469 rm -f core conftest.err conftest.$ac_objext \
19470 conftest$ac_exeext conftest.$ac_ext
19471 LIBS=$ac_check_lib_save_LIBS
19472 fi
19473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19474 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19475 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE___ASHRDI3 1
19479 _ACEOF
19481 fi
19483 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19484 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19485 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19487 else
19488 ac_check_lib_save_LIBS=$LIBS
19489 LIBS="-lgcc $LIBS"
19490 cat >conftest.$ac_ext <<_ACEOF
19491 /* confdefs.h. */
19492 _ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19497 /* Override any GCC internal prototype to avoid an error.
19498 Use char because int might match the return type of a GCC
19499 builtin and then its argument prototype would still apply. */
19500 #ifdef __cplusplus
19501 extern "C"
19502 #endif
19503 char __divdi3 ();
19504 int
19505 main ()
19506 {
19507 return __divdi3 ();
19508 ;
19509 return 0;
19510 }
19511 _ACEOF
19512 rm -f conftest.$ac_objext conftest$ac_exeext
19513 if { (ac_try="$ac_link"
19514 case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19517 esac
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_link") 2>conftest.er1
19520 ac_status=$?
19521 grep -v '^ *+' conftest.er1 >conftest.err
19522 rm -f conftest.er1
19523 cat conftest.err >&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } &&
19526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19527 { (case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19530 esac
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532 (eval "$ac_try") 2>&5
19533 ac_status=$?
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; } &&
19536 { ac_try='test -s conftest$ac_exeext'
19537 { (case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19540 esac
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_try") 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; }; then
19546 ac_cv_lib_gcc___divdi3=yes
19547 else
19548 echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19551 ac_cv_lib_gcc___divdi3=no
19552 fi
19554 rm -f core conftest.err conftest.$ac_objext \
19555 conftest$ac_exeext conftest.$ac_ext
19556 LIBS=$ac_check_lib_save_LIBS
19557 fi
19558 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19559 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19560 if test $ac_cv_lib_gcc___divdi3 = yes; then
19562 cat >>confdefs.h <<\_ACEOF
19563 #define HAVE___DIVDI3 1
19564 _ACEOF
19566 fi
19568 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19569 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19570 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573 ac_check_lib_save_LIBS=$LIBS
19574 LIBS="-lgcc $LIBS"
19575 cat >conftest.$ac_ext <<_ACEOF
19576 /* confdefs.h. */
19577 _ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h. */
19582 /* Override any GCC internal prototype to avoid an error.
19583 Use char because int might match the return type of a GCC
19584 builtin and then its argument prototype would still apply. */
19585 #ifdef __cplusplus
19586 extern "C"
19587 #endif
19588 char __fixdfdi ();
19589 int
19590 main ()
19591 {
19592 return __fixdfdi ();
19593 ;
19594 return 0;
19595 }
19596 _ACEOF
19597 rm -f conftest.$ac_objext conftest$ac_exeext
19598 if { (ac_try="$ac_link"
19599 case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19602 esac
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_link") 2>conftest.er1
19605 ac_status=$?
19606 grep -v '^ *+' conftest.er1 >conftest.err
19607 rm -f conftest.er1
19608 cat conftest.err >&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } &&
19611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19612 { (case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19615 esac
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_try") 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; } &&
19621 { ac_try='test -s conftest$ac_exeext'
19622 { (case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_try") 2>&5
19628 ac_status=$?
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; }; then
19631 ac_cv_lib_gcc___fixdfdi=yes
19632 else
19633 echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19636 ac_cv_lib_gcc___fixdfdi=no
19637 fi
19639 rm -f core conftest.err conftest.$ac_objext \
19640 conftest$ac_exeext conftest.$ac_ext
19641 LIBS=$ac_check_lib_save_LIBS
19642 fi
19643 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19644 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19645 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE___FIXDFDI 1
19649 _ACEOF
19651 fi
19653 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19654 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19655 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658 ac_check_lib_save_LIBS=$LIBS
19659 LIBS="-lgcc $LIBS"
19660 cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h. */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19667 /* Override any GCC internal prototype to avoid an error.
19668 Use char because int might match the return type of a GCC
19669 builtin and then its argument prototype would still apply. */
19670 #ifdef __cplusplus
19671 extern "C"
19672 #endif
19673 char __fixsfdi ();
19674 int
19675 main ()
19676 {
19677 return __fixsfdi ();
19678 ;
19679 return 0;
19680 }
19681 _ACEOF
19682 rm -f conftest.$ac_objext conftest$ac_exeext
19683 if { (ac_try="$ac_link"
19684 case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_link") 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
19696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19697 { (case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19700 esac
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_try") 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; } &&
19706 { ac_try='test -s conftest$ac_exeext'
19707 { (case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19710 esac
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_try") 2>&5
19713 ac_status=$?
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
19716 ac_cv_lib_gcc___fixsfdi=yes
19717 else
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ac_cv_lib_gcc___fixsfdi=no
19722 fi
19724 rm -f core conftest.err conftest.$ac_objext \
19725 conftest$ac_exeext conftest.$ac_ext
19726 LIBS=$ac_check_lib_save_LIBS
19727 fi
19728 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19729 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19730 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19732 cat >>confdefs.h <<\_ACEOF
19733 #define HAVE___FIXSFDI 1
19734 _ACEOF
19736 fi
19738 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19739 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19740 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19742 else
19743 ac_check_lib_save_LIBS=$LIBS
19744 LIBS="-lgcc $LIBS"
19745 cat >conftest.$ac_ext <<_ACEOF
19746 /* confdefs.h. */
19747 _ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h. */
19752 /* Override any GCC internal prototype to avoid an error.
19753 Use char because int might match the return type of a GCC
19754 builtin and then its argument prototype would still apply. */
19755 #ifdef __cplusplus
19756 extern "C"
19757 #endif
19758 char __floatdidf ();
19759 int
19760 main ()
19761 {
19762 return __floatdidf ();
19763 ;
19764 return 0;
19765 }
19766 _ACEOF
19767 rm -f conftest.$ac_objext conftest$ac_exeext
19768 if { (ac_try="$ac_link"
19769 case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19772 esac
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_link") 2>conftest.er1
19775 ac_status=$?
19776 grep -v '^ *+' conftest.er1 >conftest.err
19777 rm -f conftest.er1
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } &&
19781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19782 { (case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19785 esac
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_try") 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; } &&
19791 { ac_try='test -s conftest$ac_exeext'
19792 { (case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_try") 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 ac_cv_lib_gcc___floatdidf=yes
19802 else
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19806 ac_cv_lib_gcc___floatdidf=no
19807 fi
19809 rm -f core conftest.err conftest.$ac_objext \
19810 conftest$ac_exeext conftest.$ac_ext
19811 LIBS=$ac_check_lib_save_LIBS
19812 fi
19813 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19814 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19815 if test $ac_cv_lib_gcc___floatdidf = yes; then
19817 cat >>confdefs.h <<\_ACEOF
19818 #define HAVE___FLOATDIDF 1
19819 _ACEOF
19821 fi
19823 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19824 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19825 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 else
19828 ac_check_lib_save_LIBS=$LIBS
19829 LIBS="-lgcc $LIBS"
19830 cat >conftest.$ac_ext <<_ACEOF
19831 /* confdefs.h. */
19832 _ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h. */
19837 /* Override any GCC internal prototype to avoid an error.
19838 Use char because int might match the return type of a GCC
19839 builtin and then its argument prototype would still apply. */
19840 #ifdef __cplusplus
19841 extern "C"
19842 #endif
19843 char __lshrdi3 ();
19844 int
19845 main ()
19846 {
19847 return __lshrdi3 ();
19848 ;
19849 return 0;
19850 }
19851 _ACEOF
19852 rm -f conftest.$ac_objext conftest$ac_exeext
19853 if { (ac_try="$ac_link"
19854 case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19857 esac
19858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_link") 2>conftest.er1
19860 ac_status=$?
19861 grep -v '^ *+' conftest.er1 >conftest.err
19862 rm -f conftest.er1
19863 cat conftest.err >&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } &&
19866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19867 { (case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19870 esac
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_try") 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; } &&
19876 { ac_try='test -s conftest$ac_exeext'
19877 { (case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19880 esac
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_try") 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; }; then
19886 ac_cv_lib_gcc___lshrdi3=yes
19887 else
19888 echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19891 ac_cv_lib_gcc___lshrdi3=no
19892 fi
19894 rm -f core conftest.err conftest.$ac_objext \
19895 conftest$ac_exeext conftest.$ac_ext
19896 LIBS=$ac_check_lib_save_LIBS
19897 fi
19898 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19899 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19900 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19902 cat >>confdefs.h <<\_ACEOF
19903 #define HAVE___LSHRDI3 1
19904 _ACEOF
19906 fi
19908 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19909 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19910 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 else
19913 ac_check_lib_save_LIBS=$LIBS
19914 LIBS="-lgcc $LIBS"
19915 cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h. */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19922 /* Override any GCC internal prototype to avoid an error.
19923 Use char because int might match the return type of a GCC
19924 builtin and then its argument prototype would still apply. */
19925 #ifdef __cplusplus
19926 extern "C"
19927 #endif
19928 char __moddi3 ();
19929 int
19930 main ()
19931 {
19932 return __moddi3 ();
19933 ;
19934 return 0;
19935 }
19936 _ACEOF
19937 rm -f conftest.$ac_objext conftest$ac_exeext
19938 if { (ac_try="$ac_link"
19939 case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19942 esac
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_link") 2>conftest.er1
19945 ac_status=$?
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
19951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19952 { (case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19955 esac
19956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_try") 2>&5
19958 ac_status=$?
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; } &&
19961 { ac_try='test -s conftest$ac_exeext'
19962 { (case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_try") 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; }; then
19971 ac_cv_lib_gcc___moddi3=yes
19972 else
19973 echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19976 ac_cv_lib_gcc___moddi3=no
19977 fi
19979 rm -f core conftest.err conftest.$ac_objext \
19980 conftest$ac_exeext conftest.$ac_ext
19981 LIBS=$ac_check_lib_save_LIBS
19982 fi
19983 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19984 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19985 if test $ac_cv_lib_gcc___moddi3 = yes; then
19987 cat >>confdefs.h <<\_ACEOF
19988 #define HAVE___MODDI3 1
19989 _ACEOF
19991 fi
19993 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19994 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19995 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19996 echo $ECHO_N "(cached) $ECHO_C" >&6
19997 else
19998 ac_check_lib_save_LIBS=$LIBS
19999 LIBS="-lgcc $LIBS"
20000 cat >conftest.$ac_ext <<_ACEOF
20001 /* confdefs.h. */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20007 /* Override any GCC internal prototype to avoid an error.
20008 Use char because int might match the return type of a GCC
20009 builtin and then its argument prototype would still apply. */
20010 #ifdef __cplusplus
20011 extern "C"
20012 #endif
20013 char __udivdi3 ();
20014 int
20015 main ()
20016 {
20017 return __udivdi3 ();
20018 ;
20019 return 0;
20020 }
20021 _ACEOF
20022 rm -f conftest.$ac_objext conftest$ac_exeext
20023 if { (ac_try="$ac_link"
20024 case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20027 esac
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_link") 2>conftest.er1
20030 ac_status=$?
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
20036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20037 { (case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_try") 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest$ac_exeext'
20047 { (case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20050 esac
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_try") 2>&5
20053 ac_status=$?
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20056 ac_cv_lib_gcc___udivdi3=yes
20057 else
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20061 ac_cv_lib_gcc___udivdi3=no
20062 fi
20064 rm -f core conftest.err conftest.$ac_objext \
20065 conftest$ac_exeext conftest.$ac_ext
20066 LIBS=$ac_check_lib_save_LIBS
20067 fi
20068 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20069 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20070 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20072 cat >>confdefs.h <<\_ACEOF
20073 #define HAVE___UDIVDI3 1
20074 _ACEOF
20076 fi
20078 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20079 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20080 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20082 else
20083 ac_check_lib_save_LIBS=$LIBS
20084 LIBS="-lgcc $LIBS"
20085 cat >conftest.$ac_ext <<_ACEOF
20086 /* confdefs.h. */
20087 _ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20092 /* Override any GCC internal prototype to avoid an error.
20093 Use char because int might match the return type of a GCC
20094 builtin and then its argument prototype would still apply. */
20095 #ifdef __cplusplus
20096 extern "C"
20097 #endif
20098 char __umoddi3 ();
20099 int
20100 main ()
20101 {
20102 return __umoddi3 ();
20103 ;
20104 return 0;
20105 }
20106 _ACEOF
20107 rm -f conftest.$ac_objext conftest$ac_exeext
20108 if { (ac_try="$ac_link"
20109 case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20112 esac
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114 (eval "$ac_link") 2>conftest.er1
20115 ac_status=$?
20116 grep -v '^ *+' conftest.er1 >conftest.err
20117 rm -f conftest.er1
20118 cat conftest.err >&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); } &&
20121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20122 { (case "(($ac_try" in
20123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124 *) ac_try_echo=$ac_try;;
20125 esac
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127 (eval "$ac_try") 2>&5
20128 ac_status=$?
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }; } &&
20131 { ac_try='test -s conftest$ac_exeext'
20132 { (case "(($ac_try" in
20133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134 *) ac_try_echo=$ac_try;;
20135 esac
20136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20137 (eval "$ac_try") 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; }; then
20141 ac_cv_lib_gcc___umoddi3=yes
20142 else
20143 echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20146 ac_cv_lib_gcc___umoddi3=no
20147 fi
20149 rm -f core conftest.err conftest.$ac_objext \
20150 conftest$ac_exeext conftest.$ac_ext
20151 LIBS=$ac_check_lib_save_LIBS
20152 fi
20153 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20154 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20155 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20157 cat >>confdefs.h <<\_ACEOF
20158 #define HAVE___UMODDI3 1
20159 _ACEOF
20161 fi
20164 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20165 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20166 if test "${ac_cv_lib_gcc___main+set}" = set; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 else
20169 ac_check_lib_save_LIBS=$LIBS
20170 LIBS="-lgcc $LIBS"
20171 cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h. */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20178 /* Override any GCC internal prototype to avoid an error.
20179 Use char because int might match the return type of a GCC
20180 builtin and then its argument prototype would still apply. */
20181 #ifdef __cplusplus
20182 extern "C"
20183 #endif
20184 char __main ();
20185 int
20186 main ()
20187 {
20188 return __main ();
20189 ;
20190 return 0;
20191 }
20192 _ACEOF
20193 rm -f conftest.$ac_objext conftest$ac_exeext
20194 if { (ac_try="$ac_link"
20195 case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_link") 2>conftest.er1
20201 ac_status=$?
20202 grep -v '^ *+' conftest.er1 >conftest.err
20203 rm -f conftest.er1
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } &&
20207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20208 { (case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_try") 2>&5
20214 ac_status=$?
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; } &&
20217 { ac_try='test -s conftest$ac_exeext'
20218 { (case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20221 esac
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_try") 2>&5
20224 ac_status=$?
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20227 ac_cv_lib_gcc___main=yes
20228 else
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20232 ac_cv_lib_gcc___main=no
20233 fi
20235 rm -f core conftest.err conftest.$ac_objext \
20236 conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20238 fi
20239 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20240 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20241 if test $ac_cv_lib_gcc___main = yes; then
20243 cat >>confdefs.h <<\_ACEOF
20244 #define HAVE___MAIN 1
20245 _ACEOF
20247 fi
20249 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20250 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20251 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254 ac_check_lib_save_LIBS=$LIBS
20255 LIBS="-lgcc $LIBS"
20256 cat >conftest.$ac_ext <<_ACEOF
20257 /* confdefs.h. */
20258 _ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h. */
20263 /* Override any GCC internal prototype to avoid an error.
20264 Use char because int might match the return type of a GCC
20265 builtin and then its argument prototype would still apply. */
20266 #ifdef __cplusplus
20267 extern "C"
20268 #endif
20269 char __cmpdi2 ();
20270 int
20271 main ()
20272 {
20273 return __cmpdi2 ();
20274 ;
20275 return 0;
20276 }
20277 _ACEOF
20278 rm -f conftest.$ac_objext conftest$ac_exeext
20279 if { (ac_try="$ac_link"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20283 esac
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_link") 2>conftest.er1
20286 ac_status=$?
20287 grep -v '^ *+' conftest.er1 >conftest.err
20288 rm -f conftest.er1
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } &&
20292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20293 { (case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20296 esac
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_try") 2>&5
20299 ac_status=$?
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } &&
20302 { ac_try='test -s conftest$ac_exeext'
20303 { (case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20306 esac
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_try") 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 ac_cv_lib_gcc___cmpdi2=yes
20313 else
20314 echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20317 ac_cv_lib_gcc___cmpdi2=no
20318 fi
20320 rm -f core conftest.err conftest.$ac_objext \
20321 conftest$ac_exeext conftest.$ac_ext
20322 LIBS=$ac_check_lib_save_LIBS
20323 fi
20324 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20325 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20326 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20328 cat >>confdefs.h <<\_ACEOF
20329 #define HAVE___CMPDI2 1
20330 _ACEOF
20332 fi
20334 fi
20336 if test "$llvm_cv_os_type" = "MingW" ; then
20337 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20338 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20339 cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h. */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20347 #include <windows.h>
20348 #include <imagehlp.h>
20349 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20350 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20353 _ACEOF
20354 rm -f conftest.$ac_objext
20355 if { (ac_try="$ac_compile"
20356 case "(($ac_try" in
20357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358 *) ac_try_echo=$ac_try;;
20359 esac
20360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361 (eval "$ac_compile") 2>conftest.er1
20362 ac_status=$?
20363 grep -v '^ *+' conftest.er1 >conftest.err
20364 rm -f conftest.er1
20365 cat conftest.err >&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } &&
20368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20369 { (case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20372 esac
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_try") 2>&5
20375 ac_status=$?
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; } &&
20378 { ac_try='test -s conftest.$ac_objext'
20379 { (case "(($ac_try" in
20380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381 *) ac_try_echo=$ac_try;;
20382 esac
20383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20384 (eval "$ac_try") 2>&5
20385 ac_status=$?
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; }; then
20389 { echo "$as_me:$LINENO: result: yes" >&5
20390 echo "${ECHO_T}yes" >&6; }
20391 llvm_cv_win32_elmcb_pcstr="PCSTR"
20393 else
20394 echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20398 { echo "$as_me:$LINENO: result: no" >&5
20399 echo "${ECHO_T}no" >&6; }
20400 llvm_cv_win32_elmcb_pcstr="PSTR"
20402 fi
20404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20406 cat >>confdefs.h <<_ACEOF
20407 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20408 _ACEOF
20410 fi
20414 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20415 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20416 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20418 else
20420 ac_ext=cpp
20421 ac_cpp='$CXXCPP $CPPFLAGS'
20422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20426 cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h. */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20432 #include <math.h>
20433 int
20434 main ()
20435 {
20436 float f; isnan(f);
20437 ;
20438 return 0;
20439 }
20440 _ACEOF
20441 rm -f conftest.$ac_objext
20442 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20449 ac_status=$?
20450 grep -v '^ *+' conftest.er1 >conftest.err
20451 rm -f conftest.er1
20452 cat conftest.err >&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } &&
20455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20456 { (case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20459 esac
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_try") 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; } &&
20465 { ac_try='test -s conftest.$ac_objext'
20466 { (case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20469 esac
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_try") 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; }; then
20475 ac_cv_func_isnan_in_math_h=yes
20476 else
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ac_cv_func_isnan_in_math_h=no
20481 fi
20483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20484 ac_ext=c
20485 ac_cpp='$CPP $CPPFLAGS'
20486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20491 fi
20492 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20493 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20496 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20498 cat >>confdefs.h <<\_ACEOF
20499 #define HAVE_ISNAN_IN_MATH_H 1
20500 _ACEOF
20502 fi
20505 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20506 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20507 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20508 echo $ECHO_N "(cached) $ECHO_C" >&6
20509 else
20511 ac_ext=cpp
20512 ac_cpp='$CXXCPP $CPPFLAGS'
20513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20517 cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h. */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20523 #include <cmath>
20524 int
20525 main ()
20526 {
20527 float f; isnan(f);
20528 ;
20529 return 0;
20530 }
20531 _ACEOF
20532 rm -f conftest.$ac_objext
20533 if { (ac_try="$ac_compile"
20534 case "(($ac_try" in
20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536 *) ac_try_echo=$ac_try;;
20537 esac
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539 (eval "$ac_compile") 2>conftest.er1
20540 ac_status=$?
20541 grep -v '^ *+' conftest.er1 >conftest.err
20542 rm -f conftest.er1
20543 cat conftest.err >&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } &&
20546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20547 { (case "(($ac_try" in
20548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549 *) ac_try_echo=$ac_try;;
20550 esac
20551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552 (eval "$ac_try") 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; } &&
20556 { ac_try='test -s conftest.$ac_objext'
20557 { (case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20560 esac
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_try") 2>&5
20563 ac_status=$?
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; }; then
20566 ac_cv_func_isnan_in_cmath=yes
20567 else
20568 echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20571 ac_cv_func_isnan_in_cmath=no
20572 fi
20574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20575 ac_ext=c
20576 ac_cpp='$CPP $CPPFLAGS'
20577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20582 fi
20583 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20584 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20586 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20588 cat >>confdefs.h <<\_ACEOF
20589 #define HAVE_ISNAN_IN_CMATH 1
20590 _ACEOF
20592 fi
20595 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20596 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20597 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20599 else
20601 ac_ext=cpp
20602 ac_cpp='$CXXCPP $CPPFLAGS'
20603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20607 cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h. */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20613 #include <cmath>
20614 int
20615 main ()
20616 {
20617 float f; std::isnan(f);
20618 ;
20619 return 0;
20620 }
20621 _ACEOF
20622 rm -f conftest.$ac_objext
20623 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20630 ac_status=$?
20631 grep -v '^ *+' conftest.er1 >conftest.err
20632 rm -f conftest.er1
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } &&
20636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20637 { (case "(($ac_try" in
20638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639 *) ac_try_echo=$ac_try;;
20640 esac
20641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642 (eval "$ac_try") 2>&5
20643 ac_status=$?
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; } &&
20646 { ac_try='test -s conftest.$ac_objext'
20647 { (case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20650 esac
20651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652 (eval "$ac_try") 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 ac_cv_func_std_isnan_in_cmath=yes
20657 else
20658 echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20661 ac_cv_func_std_isnan_in_cmath=no
20662 fi
20664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665 ac_ext=c
20666 ac_cpp='$CPP $CPPFLAGS'
20667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20672 fi
20673 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20674 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20676 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20678 cat >>confdefs.h <<\_ACEOF
20679 #define HAVE_STD_ISNAN_IN_CMATH 1
20680 _ACEOF
20682 fi
20687 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20688 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20689 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20691 else
20693 ac_ext=cpp
20694 ac_cpp='$CXXCPP $CPPFLAGS'
20695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20699 cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h. */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 #include <math.h>
20706 int
20707 main ()
20708 {
20709 float f; isinf(f);
20710 ;
20711 return 0;
20712 }
20713 _ACEOF
20714 rm -f conftest.$ac_objext
20715 if { (ac_try="$ac_compile"
20716 case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20719 esac
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_compile") 2>conftest.er1
20722 ac_status=$?
20723 grep -v '^ *+' conftest.er1 >conftest.err
20724 rm -f conftest.er1
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } &&
20728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20729 { (case "(($ac_try" in
20730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731 *) ac_try_echo=$ac_try;;
20732 esac
20733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734 (eval "$ac_try") 2>&5
20735 ac_status=$?
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; } &&
20738 { ac_try='test -s conftest.$ac_objext'
20739 { (case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_try") 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; }; then
20748 ac_cv_func_isinf_in_math_h=yes
20749 else
20750 echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20753 ac_cv_func_isinf_in_math_h=no
20754 fi
20756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757 ac_ext=c
20758 ac_cpp='$CPP $CPPFLAGS'
20759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20764 fi
20765 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20766 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20768 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20770 cat >>confdefs.h <<\_ACEOF
20771 #define HAVE_ISINF_IN_MATH_H 1
20772 _ACEOF
20774 fi
20777 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20778 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20779 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20781 else
20783 ac_ext=cpp
20784 ac_cpp='$CXXCPP $CPPFLAGS'
20785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20789 cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h. */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20795 #include <cmath>
20796 int
20797 main ()
20798 {
20799 float f; isinf(f);
20800 ;
20801 return 0;
20802 }
20803 _ACEOF
20804 rm -f conftest.$ac_objext
20805 if { (ac_try="$ac_compile"
20806 case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20809 esac
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_compile") 2>conftest.er1
20812 ac_status=$?
20813 grep -v '^ *+' conftest.er1 >conftest.err
20814 rm -f conftest.er1
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } &&
20818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20819 { (case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20822 esac
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_try") 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; } &&
20828 { ac_try='test -s conftest.$ac_objext'
20829 { (case "(($ac_try" in
20830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831 *) ac_try_echo=$ac_try;;
20832 esac
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834 (eval "$ac_try") 2>&5
20835 ac_status=$?
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; }; then
20838 ac_cv_func_isinf_in_cmath=yes
20839 else
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20843 ac_cv_func_isinf_in_cmath=no
20844 fi
20846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847 ac_ext=c
20848 ac_cpp='$CPP $CPPFLAGS'
20849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20854 fi
20855 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20856 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20858 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20860 cat >>confdefs.h <<\_ACEOF
20861 #define HAVE_ISINF_IN_CMATH 1
20862 _ACEOF
20864 fi
20867 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20868 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20869 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20871 else
20873 ac_ext=cpp
20874 ac_cpp='$CXXCPP $CPPFLAGS'
20875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20879 cat >conftest.$ac_ext <<_ACEOF
20880 /* confdefs.h. */
20881 _ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20885 #include <cmath>
20886 int
20887 main ()
20888 {
20889 float f; std::isinf(f);
20890 ;
20891 return 0;
20892 }
20893 _ACEOF
20894 rm -f conftest.$ac_objext
20895 if { (ac_try="$ac_compile"
20896 case "(($ac_try" in
20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20899 esac
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901 (eval "$ac_compile") 2>conftest.er1
20902 ac_status=$?
20903 grep -v '^ *+' conftest.er1 >conftest.err
20904 rm -f conftest.er1
20905 cat conftest.err >&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } &&
20908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20909 { (case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20912 esac
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914 (eval "$ac_try") 2>&5
20915 ac_status=$?
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; } &&
20918 { ac_try='test -s conftest.$ac_objext'
20919 { (case "(($ac_try" in
20920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921 *) ac_try_echo=$ac_try;;
20922 esac
20923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20924 (eval "$ac_try") 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 ac_cv_func_std_isinf_in_cmath=yes
20929 else
20930 echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20933 ac_cv_func_std_isinf_in_cmath=no
20934 fi
20936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937 ac_ext=c
20938 ac_cpp='$CPP $CPPFLAGS'
20939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20944 fi
20945 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20946 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20948 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20950 cat >>confdefs.h <<\_ACEOF
20951 #define HAVE_STD_ISINF_IN_CMATH 1
20952 _ACEOF
20954 fi
20957 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20958 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20959 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20960 echo $ECHO_N "(cached) $ECHO_C" >&6
20961 else
20963 ac_ext=cpp
20964 ac_cpp='$CXXCPP $CPPFLAGS'
20965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20969 cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h. */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 #include <ieeefp.h>
20976 int
20977 main ()
20978 {
20979 float f; finite(f);
20980 ;
20981 return 0;
20982 }
20983 _ACEOF
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20989 esac
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_compile") 2>conftest.er1
20992 ac_status=$?
20993 grep -v '^ *+' conftest.er1 >conftest.err
20994 rm -f conftest.er1
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } &&
20998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20999 { (case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21002 esac
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_try") 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try='test -s conftest.$ac_objext'
21009 { (case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21012 esac
21013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014 (eval "$ac_try") 2>&5
21015 ac_status=$?
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; }; then
21018 ac_cv_func_finite_in_ieeefp_h=yes
21019 else
21020 echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21023 ac_cv_func_finite_in_ieeefp_h=no
21024 fi
21026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027 ac_ext=c
21028 ac_cpp='$CPP $CPPFLAGS'
21029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21034 fi
21035 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21036 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21038 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21040 cat >>confdefs.h <<\_ACEOF
21041 #define HAVE_FINITE_IN_IEEEFP_H 1
21042 _ACEOF
21044 fi
21048 if test "$llvm_cv_platform_type" = "Unix" ; then
21051 for ac_header in stdlib.h unistd.h
21052 do
21053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21059 fi
21060 ac_res=`eval echo '${'$as_ac_Header'}'`
21061 { echo "$as_me:$LINENO: result: $ac_res" >&5
21062 echo "${ECHO_T}$ac_res" >&6; }
21063 else
21064 # Is the header compilable?
21065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21067 cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h. */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21073 $ac_includes_default
21074 #include <$ac_header>
21075 _ACEOF
21076 rm -f conftest.$ac_objext
21077 if { (ac_try="$ac_compile"
21078 case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21081 esac
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_compile") 2>conftest.er1
21084 ac_status=$?
21085 grep -v '^ *+' conftest.er1 >conftest.err
21086 rm -f conftest.er1
21087 cat conftest.err >&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); } &&
21090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21091 { (case "(($ac_try" in
21092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093 *) ac_try_echo=$ac_try;;
21094 esac
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096 (eval "$ac_try") 2>&5
21097 ac_status=$?
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; } &&
21100 { ac_try='test -s conftest.$ac_objext'
21101 { (case "(($ac_try" in
21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21104 esac
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106 (eval "$ac_try") 2>&5
21107 ac_status=$?
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; }; then
21110 ac_header_compiler=yes
21111 else
21112 echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21115 ac_header_compiler=no
21116 fi
21118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21120 echo "${ECHO_T}$ac_header_compiler" >&6; }
21122 # Is the header present?
21123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21125 cat >conftest.$ac_ext <<_ACEOF
21126 /* confdefs.h. */
21127 _ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131 #include <$ac_header>
21132 _ACEOF
21133 if { (ac_try="$ac_cpp conftest.$ac_ext"
21134 case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21137 esac
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21140 ac_status=$?
21141 grep -v '^ *+' conftest.er1 >conftest.err
21142 rm -f conftest.er1
21143 cat conftest.err >&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); } >/dev/null; then
21146 if test -s conftest.err; then
21147 ac_cpp_err=$ac_c_preproc_warn_flag
21148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21149 else
21150 ac_cpp_err=
21151 fi
21152 else
21153 ac_cpp_err=yes
21154 fi
21155 if test -z "$ac_cpp_err"; then
21156 ac_header_preproc=yes
21157 else
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 ac_header_preproc=no
21162 fi
21164 rm -f conftest.err conftest.$ac_ext
21165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21166 echo "${ECHO_T}$ac_header_preproc" >&6; }
21168 # So? What about this header?
21169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21170 yes:no: )
21171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21175 ac_header_preproc=yes
21176 ;;
21177 no:yes:* )
21178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21190 ( cat <<\_ASBOX
21191 ## ------------------------------------ ##
21192 ## Report this to http://llvm.org/bugs/ ##
21193 ## ------------------------------------ ##
21194 _ASBOX
21195 ) | sed "s/^/$as_me: WARNING: /" >&2
21196 ;;
21197 esac
21198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21202 else
21203 eval "$as_ac_Header=\$ac_header_preproc"
21204 fi
21205 ac_res=`eval echo '${'$as_ac_Header'}'`
21206 { echo "$as_me:$LINENO: result: $ac_res" >&5
21207 echo "${ECHO_T}$ac_res" >&6; }
21209 fi
21210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21211 cat >>confdefs.h <<_ACEOF
21212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21213 _ACEOF
21215 fi
21217 done
21220 for ac_func in getpagesize
21221 do
21222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
21227 else
21228 cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h. */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21236 #define $ac_func innocuous_$ac_func
21238 /* System header to define __stub macros and hopefully few prototypes,
21239 which can conflict with char $ac_func (); below.
21240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21241 <limits.h> exists even on freestanding compilers. */
21243 #ifdef __STDC__
21244 # include <limits.h>
21245 #else
21246 # include <assert.h>
21247 #endif
21249 #undef $ac_func
21251 /* Override any GCC internal prototype to avoid an error.
21252 Use char because int might match the return type of a GCC
21253 builtin and then its argument prototype would still apply. */
21254 #ifdef __cplusplus
21255 extern "C"
21256 #endif
21257 char $ac_func ();
21258 /* The GNU C library defines this for functions which it implements
21259 to always fail with ENOSYS. Some functions are actually named
21260 something starting with __ and the normal name is an alias. */
21261 #if defined __stub_$ac_func || defined __stub___$ac_func
21262 choke me
21263 #endif
21265 int
21266 main ()
21267 {
21268 return $ac_func ();
21269 ;
21270 return 0;
21271 }
21272 _ACEOF
21273 rm -f conftest.$ac_objext conftest$ac_exeext
21274 if { (ac_try="$ac_link"
21275 case "(($ac_try" in
21276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277 *) ac_try_echo=$ac_try;;
21278 esac
21279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280 (eval "$ac_link") 2>conftest.er1
21281 ac_status=$?
21282 grep -v '^ *+' conftest.er1 >conftest.err
21283 rm -f conftest.er1
21284 cat conftest.err >&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); } &&
21287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21288 { (case "(($ac_try" in
21289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290 *) ac_try_echo=$ac_try;;
21291 esac
21292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293 (eval "$ac_try") 2>&5
21294 ac_status=$?
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; } &&
21297 { ac_try='test -s conftest$ac_exeext'
21298 { (case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21301 esac
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303 (eval "$ac_try") 2>&5
21304 ac_status=$?
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; }; then
21307 eval "$as_ac_var=yes"
21308 else
21309 echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21312 eval "$as_ac_var=no"
21313 fi
21315 rm -f core conftest.err conftest.$ac_objext \
21316 conftest$ac_exeext conftest.$ac_ext
21317 fi
21318 ac_res=`eval echo '${'$as_ac_var'}'`
21319 { echo "$as_me:$LINENO: result: $ac_res" >&5
21320 echo "${ECHO_T}$ac_res" >&6; }
21321 if test `eval echo '${'$as_ac_var'}'` = yes; then
21322 cat >>confdefs.h <<_ACEOF
21323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21324 _ACEOF
21326 fi
21327 done
21329 { echo "$as_me:$LINENO: checking for working mmap" >&5
21330 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21331 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 else
21334 if test "$cross_compiling" = yes; then
21335 ac_cv_func_mmap_fixed_mapped=no
21336 else
21337 cat >conftest.$ac_ext <<_ACEOF
21338 /* confdefs.h. */
21339 _ACEOF
21340 cat confdefs.h >>conftest.$ac_ext
21341 cat >>conftest.$ac_ext <<_ACEOF
21342 /* end confdefs.h. */
21343 $ac_includes_default
21344 /* malloc might have been renamed as rpl_malloc. */
21345 #undef malloc
21347 /* Thanks to Mike Haertel and Jim Avera for this test.
21348 Here is a matrix of mmap possibilities:
21349 mmap private not fixed
21350 mmap private fixed at somewhere currently unmapped
21351 mmap private fixed at somewhere already mapped
21352 mmap shared not fixed
21353 mmap shared fixed at somewhere currently unmapped
21354 mmap shared fixed at somewhere already mapped
21355 For private mappings, we should verify that changes cannot be read()
21356 back from the file, nor mmap's back from the file at a different
21357 address. (There have been systems where private was not correctly
21358 implemented like the infamous i386 svr4.0, and systems where the
21359 VM page cache was not coherent with the file system buffer cache
21360 like early versions of FreeBSD and possibly contemporary NetBSD.)
21361 For shared mappings, we should conversely verify that changes get
21362 propagated back to all the places they're supposed to be.
21364 Grep wants private fixed already mapped.
21365 The main things grep needs to know about mmap are:
21366 * does it exist and is it safe to write into the mmap'd area
21367 * how to use it (BSD variants) */
21369 #include <fcntl.h>
21370 #include <sys/mman.h>
21372 #if !STDC_HEADERS && !HAVE_STDLIB_H
21373 char *malloc ();
21374 #endif
21376 /* This mess was copied from the GNU getpagesize.h. */
21377 #if !HAVE_GETPAGESIZE
21378 /* Assume that all systems that can run configure have sys/param.h. */
21379 # if !HAVE_SYS_PARAM_H
21380 # define HAVE_SYS_PARAM_H 1
21381 # endif
21383 # ifdef _SC_PAGESIZE
21384 # define getpagesize() sysconf(_SC_PAGESIZE)
21385 # else /* no _SC_PAGESIZE */
21386 # if HAVE_SYS_PARAM_H
21387 # include <sys/param.h>
21388 # ifdef EXEC_PAGESIZE
21389 # define getpagesize() EXEC_PAGESIZE
21390 # else /* no EXEC_PAGESIZE */
21391 # ifdef NBPG
21392 # define getpagesize() NBPG * CLSIZE
21393 # ifndef CLSIZE
21394 # define CLSIZE 1
21395 # endif /* no CLSIZE */
21396 # else /* no NBPG */
21397 # ifdef NBPC
21398 # define getpagesize() NBPC
21399 # else /* no NBPC */
21400 # ifdef PAGESIZE
21401 # define getpagesize() PAGESIZE
21402 # endif /* PAGESIZE */
21403 # endif /* no NBPC */
21404 # endif /* no NBPG */
21405 # endif /* no EXEC_PAGESIZE */
21406 # else /* no HAVE_SYS_PARAM_H */
21407 # define getpagesize() 8192 /* punt totally */
21408 # endif /* no HAVE_SYS_PARAM_H */
21409 # endif /* no _SC_PAGESIZE */
21411 #endif /* no HAVE_GETPAGESIZE */
21413 int
21414 main ()
21415 {
21416 char *data, *data2, *data3;
21417 int i, pagesize;
21418 int fd;
21420 pagesize = getpagesize ();
21422 /* First, make a file with some known garbage in it. */
21423 data = (char *) malloc (pagesize);
21424 if (!data)
21425 return 1;
21426 for (i = 0; i < pagesize; ++i)
21427 *(data + i) = rand ();
21428 umask (0);
21429 fd = creat ("conftest.mmap", 0600);
21430 if (fd < 0)
21431 return 1;
21432 if (write (fd, data, pagesize) != pagesize)
21433 return 1;
21434 close (fd);
21436 /* Next, try to mmap the file at a fixed address which already has
21437 something else allocated at it. If we can, also make sure that
21438 we see the same garbage. */
21439 fd = open ("conftest.mmap", O_RDWR);
21440 if (fd < 0)
21441 return 1;
21442 data2 = (char *) malloc (2 * pagesize);
21443 if (!data2)
21444 return 1;
21445 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21446 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21447 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21448 return 1;
21449 for (i = 0; i < pagesize; ++i)
21450 if (*(data + i) != *(data2 + i))
21451 return 1;
21453 /* Finally, make sure that changes to the mapped area do not
21454 percolate back to the file as seen by read(). (This is a bug on
21455 some variants of i386 svr4.0.) */
21456 for (i = 0; i < pagesize; ++i)
21457 *(data2 + i) = *(data2 + i) + 1;
21458 data3 = (char *) malloc (pagesize);
21459 if (!data3)
21460 return 1;
21461 if (read (fd, data3, pagesize) != pagesize)
21462 return 1;
21463 for (i = 0; i < pagesize; ++i)
21464 if (*(data + i) != *(data3 + i))
21465 return 1;
21466 close (fd);
21467 return 0;
21468 }
21469 _ACEOF
21470 rm -f conftest$ac_exeext
21471 if { (ac_try="$ac_link"
21472 case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21475 esac
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_link") 2>&5
21478 ac_status=$?
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21481 { (case "(($ac_try" in
21482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483 *) ac_try_echo=$ac_try;;
21484 esac
21485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21486 (eval "$ac_try") 2>&5
21487 ac_status=$?
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); }; }; then
21490 ac_cv_func_mmap_fixed_mapped=yes
21491 else
21492 echo "$as_me: program exited with status $ac_status" >&5
21493 echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21496 ( exit $ac_status )
21497 ac_cv_func_mmap_fixed_mapped=no
21498 fi
21499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21500 fi
21503 fi
21504 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21505 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21506 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21508 cat >>confdefs.h <<\_ACEOF
21509 #define HAVE_MMAP 1
21510 _ACEOF
21512 fi
21513 rm -f conftest.mmap
21515 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21516 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21517 if test "${ac_cv_func_mmap_file+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21519 else
21520 ac_ext=c
21521 ac_cpp='$CPP $CPPFLAGS'
21522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21526 if test "$cross_compiling" = yes; then
21527 ac_cv_func_mmap_file=no
21528 else
21529 cat >conftest.$ac_ext <<_ACEOF
21531 /* confdefs.h. */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21537 #include <sys/types.h>
21538 #include <sys/mman.h>
21539 #include <fcntl.h>
21541 int
21542 main ()
21543 {
21545 int fd;
21546 fd = creat ("foo",0777);
21547 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21548 unlink ("foo");
21549 return (fd != (int) MAP_FAILED);
21550 ;
21551 return 0;
21552 }
21553 _ACEOF
21554 rm -f conftest$ac_exeext
21555 if { (ac_try="$ac_link"
21556 case "(($ac_try" in
21557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21559 esac
21560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561 (eval "$ac_link") 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21565 { (case "(($ac_try" in
21566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21567 *) ac_try_echo=$ac_try;;
21568 esac
21569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21570 (eval "$ac_try") 2>&5
21571 ac_status=$?
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; }; then
21574 ac_cv_func_mmap_file=yes
21575 else
21576 echo "$as_me: program exited with status $ac_status" >&5
21577 echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21580 ( exit $ac_status )
21581 ac_cv_func_mmap_file=no
21582 fi
21583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21584 fi
21587 ac_ext=c
21588 ac_cpp='$CPP $CPPFLAGS'
21589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21594 fi
21595 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21596 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21597 if test "$ac_cv_func_mmap_file" = yes; then
21599 cat >>confdefs.h <<\_ACEOF
21600 #define HAVE_MMAP_FILE
21601 _ACEOF
21603 MMAP_FILE=yes
21605 fi
21607 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21608 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21609 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 else
21612 if test "$llvm_cv_os_type" = "Interix" ; then
21613 ac_cv_need_dev_zero_for_mmap=yes
21614 else
21615 ac_cv_need_dev_zero_for_mmap=no
21616 fi
21618 fi
21619 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21620 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21621 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21623 cat >>confdefs.h <<\_ACEOF
21624 #define NEED_DEV_ZERO_FOR_MMAP 1
21625 _ACEOF
21627 fi
21629 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21630 then
21631 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21632 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21633 fi
21634 if test "$ac_cv_func_mmap_file" = "no"
21635 then
21636 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21637 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21638 fi
21639 fi
21641 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21642 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21643 ac_ext=cpp
21644 ac_cpp='$CXXCPP $CPPFLAGS'
21645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21649 cat >conftest.$ac_ext <<_ACEOF
21651 /* confdefs.h. */
21652 _ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21657 int main() {
21658 volatile unsigned long val = 1;
21659 __sync_synchronize();
21660 __sync_val_compare_and_swap(&val, 1, 0);
21661 __sync_add_and_fetch(&val, 1);
21662 __sync_sub_and_fetch(&val, 1);
21663 return 0;
21664 }
21667 _ACEOF
21668 rm -f conftest.$ac_objext conftest$ac_exeext
21669 if { (ac_try="$ac_link"
21670 case "(($ac_try" in
21671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672 *) ac_try_echo=$ac_try;;
21673 esac
21674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21675 (eval "$ac_link") 2>conftest.er1
21676 ac_status=$?
21677 grep -v '^ *+' conftest.er1 >conftest.err
21678 rm -f conftest.er1
21679 cat conftest.err >&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); } &&
21682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21683 { (case "(($ac_try" in
21684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685 *) ac_try_echo=$ac_try;;
21686 esac
21687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21688 (eval "$ac_try") 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; } &&
21692 { ac_try='test -s conftest$ac_exeext'
21693 { (case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21696 esac
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_try") 2>&5
21699 ac_status=$?
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; }; then
21703 { echo "$as_me:$LINENO: result: yes" >&5
21704 echo "${ECHO_T}yes" >&6; }
21706 cat >>confdefs.h <<\_ACEOF
21707 #define LLVM_HAS_ATOMICS 1
21708 _ACEOF
21711 else
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21716 { echo "$as_me:$LINENO: result: no" >&5
21717 echo "${ECHO_T}no" >&6; }
21719 cat >>confdefs.h <<\_ACEOF
21720 #define LLVM_HAS_ATOMICS 0
21721 _ACEOF
21723 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21724 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21726 fi
21728 rm -f core conftest.err conftest.$ac_objext \
21729 conftest$ac_exeext conftest.$ac_ext
21730 ac_ext=c
21731 ac_cpp='$CPP $CPPFLAGS'
21732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21738 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21739 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21740 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21741 if test "${llvm_cv_linux_mixed+set}" = set; then
21742 echo $ECHO_N "(cached) $ECHO_C" >&6
21743 else
21744 ac_ext=c
21745 ac_cpp='$CPP $CPPFLAGS'
21746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21750 cat >conftest.$ac_ext <<_ACEOF
21751 /* confdefs.h. */
21752 _ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21756 #ifndef __x86_64__
21757 error: Not x86-64 even if uname says so!
21758 #endif
21760 int
21761 main ()
21762 {
21764 ;
21765 return 0;
21766 }
21767 _ACEOF
21768 rm -f conftest.$ac_objext
21769 if { (ac_try="$ac_compile"
21770 case "(($ac_try" in
21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772 *) ac_try_echo=$ac_try;;
21773 esac
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775 (eval "$ac_compile") 2>conftest.er1
21776 ac_status=$?
21777 grep -v '^ *+' conftest.er1 >conftest.err
21778 rm -f conftest.er1
21779 cat conftest.err >&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); } &&
21782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21783 { (case "(($ac_try" in
21784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785 *) ac_try_echo=$ac_try;;
21786 esac
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788 (eval "$ac_try") 2>&5
21789 ac_status=$?
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; } &&
21792 { ac_try='test -s conftest.$ac_objext'
21793 { (case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21796 esac
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_try") 2>&5
21799 ac_status=$?
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); }; }; then
21802 llvm_cv_linux_mixed=no
21803 else
21804 echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21807 llvm_cv_linux_mixed=yes
21808 fi
21810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21811 ac_ext=c
21812 ac_cpp='$CPP $CPPFLAGS'
21813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21818 fi
21819 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21820 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21822 if test "$llvm_cv_linux_mixed" = "yes"; then
21823 llvm_cv_target_arch="x86"
21824 ARCH="x86"
21825 fi
21826 fi
21829 for ac_func in __dso_handle
21830 do
21831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21836 else
21837 cat >conftest.$ac_ext <<_ACEOF
21838 /* confdefs.h. */
21839 _ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21845 #define $ac_func innocuous_$ac_func
21847 /* System header to define __stub macros and hopefully few prototypes,
21848 which can conflict with char $ac_func (); below.
21849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21850 <limits.h> exists even on freestanding compilers. */
21852 #ifdef __STDC__
21853 # include <limits.h>
21854 #else
21855 # include <assert.h>
21856 #endif
21858 #undef $ac_func
21860 /* Override any GCC internal prototype to avoid an error.
21861 Use char because int might match the return type of a GCC
21862 builtin and then its argument prototype would still apply. */
21863 #ifdef __cplusplus
21864 extern "C"
21865 #endif
21866 char $ac_func ();
21867 /* The GNU C library defines this for functions which it implements
21868 to always fail with ENOSYS. Some functions are actually named
21869 something starting with __ and the normal name is an alias. */
21870 #if defined __stub_$ac_func || defined __stub___$ac_func
21871 choke me
21872 #endif
21874 int
21875 main ()
21876 {
21877 return $ac_func ();
21878 ;
21879 return 0;
21880 }
21881 _ACEOF
21882 rm -f conftest.$ac_objext conftest$ac_exeext
21883 if { (ac_try="$ac_link"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21887 esac
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_link") 2>conftest.er1
21890 ac_status=$?
21891 grep -v '^ *+' conftest.er1 >conftest.err
21892 rm -f conftest.er1
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } &&
21896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21897 { (case "(($ac_try" in
21898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899 *) ac_try_echo=$ac_try;;
21900 esac
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902 (eval "$ac_try") 2>&5
21903 ac_status=$?
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); }; } &&
21906 { ac_try='test -s conftest$ac_exeext'
21907 { (case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_try") 2>&5
21913 ac_status=$?
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; }; then
21916 eval "$as_ac_var=yes"
21917 else
21918 echo "$as_me: failed program was:" >&5
21919 sed 's/^/| /' conftest.$ac_ext >&5
21921 eval "$as_ac_var=no"
21922 fi
21924 rm -f core conftest.err conftest.$ac_objext \
21925 conftest$ac_exeext conftest.$ac_ext
21926 fi
21927 ac_res=`eval echo '${'$as_ac_var'}'`
21928 { echo "$as_me:$LINENO: result: $ac_res" >&5
21929 echo "${ECHO_T}$ac_res" >&6; }
21930 if test `eval echo '${'$as_ac_var'}'` = yes; then
21931 cat >>confdefs.h <<_ACEOF
21932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21933 _ACEOF
21935 fi
21936 done
21939 SHLIBEXT=$libltdl_cv_shlibext
21942 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21945 if test "${prefix}" = "NONE" ; then
21946 prefix="/usr/local"
21947 fi
21948 eval LLVM_PREFIX="${prefix}";
21949 eval LLVM_BINDIR="${prefix}/bin";
21950 eval LLVM_DATADIR="${prefix}/share/llvm";
21951 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21952 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21953 eval LLVM_INCLUDEDIR="${prefix}/include";
21954 eval LLVM_INFODIR="${prefix}/info";
21955 eval LLVM_MANDIR="${prefix}/man";
21956 LLVM_CONFIGTIME=`date`
21967 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21968 LLVM_CONFIGTIME="(timestamp not enabled)"
21969 fi
21972 cat >>confdefs.h <<_ACEOF
21973 #define LLVM_PREFIX "$LLVM_PREFIX"
21974 _ACEOF
21977 cat >>confdefs.h <<_ACEOF
21978 #define LLVM_BINDIR "$LLVM_BINDIR"
21979 _ACEOF
21982 cat >>confdefs.h <<_ACEOF
21983 #define LLVM_DATADIR "$LLVM_DATADIR"
21984 _ACEOF
21987 cat >>confdefs.h <<_ACEOF
21988 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21989 _ACEOF
21992 cat >>confdefs.h <<_ACEOF
21993 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21994 _ACEOF
21997 cat >>confdefs.h <<_ACEOF
21998 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21999 _ACEOF
22002 cat >>confdefs.h <<_ACEOF
22003 #define LLVM_INFODIR "$LLVM_INFODIR"
22004 _ACEOF
22007 cat >>confdefs.h <<_ACEOF
22008 #define LLVM_MANDIR "$LLVM_MANDIR"
22009 _ACEOF
22012 cat >>confdefs.h <<_ACEOF
22013 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22014 _ACEOF
22017 cat >>confdefs.h <<_ACEOF
22018 #define LLVM_HOST_TRIPLE "$host"
22019 _ACEOF
22022 cat >>confdefs.h <<_ACEOF
22023 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22024 _ACEOF
22027 if test "$BINDINGS_TO_BUILD" = auto ; then
22028 BINDINGS_TO_BUILD=""
22029 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22030 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22031 fi
22032 fi
22033 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22036 ALL_BINDINGS=ocaml
22039 binding_prereqs_failed=0
22040 for a_binding in $BINDINGS_TO_BUILD ; do
22041 case "$a_binding" in
22042 ocaml)
22043 if test "x$OCAMLC" = x ; then
22044 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22045 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22046 binding_prereqs_failed=1
22047 fi
22048 if test "x$OCAMLDEP" = x ; then
22049 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22050 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22051 binding_prereqs_failed=1
22052 fi
22053 if test "x$OCAMLOPT" = x ; then
22054 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22055 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22056 fi
22057 if test "x$with_ocaml_libdir" != xauto ; then
22058 OCAML_LIBDIR=$with_ocaml_libdir
22060 else
22061 ocaml_stdlib="`"$OCAMLC" -where`"
22062 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22063 then
22064 # ocaml stdlib is beneath our prefix; use stdlib
22065 OCAML_LIBDIR=$ocaml_stdlib
22067 else
22068 # ocaml stdlib is outside our prefix; use libdir/ocaml
22069 OCAML_LIBDIR=${prefix}/lib/ocaml
22071 fi
22072 fi
22073 ;;
22074 esac
22075 done
22076 if test "$binding_prereqs_failed" = 1 ; then
22077 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22078 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22079 { (exit 1); exit 1; }; }
22080 fi
22082 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22083 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22084 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22085 echo $ECHO_N "(cached) $ECHO_C" >&6
22086 else
22087 ac_ext=cpp
22088 ac_cpp='$CXXCPP $CPPFLAGS'
22089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22093 oldcxxflags="$CXXFLAGS"
22094 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22095 cat >conftest.$ac_ext <<_ACEOF
22096 /* confdefs.h. */
22097 _ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22101 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22102 int
22103 main ()
22104 {
22105 X<int>().f();
22106 ;
22107 return 0;
22108 }
22109 _ACEOF
22110 rm -f conftest.$ac_objext
22111 if { (ac_try="$ac_compile"
22112 case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22115 esac
22116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117 (eval "$ac_compile") 2>conftest.er1
22118 ac_status=$?
22119 grep -v '^ *+' conftest.er1 >conftest.err
22120 rm -f conftest.er1
22121 cat conftest.err >&5
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); } &&
22124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22125 { (case "(($ac_try" in
22126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127 *) ac_try_echo=$ac_try;;
22128 esac
22129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22130 (eval "$ac_try") 2>&5
22131 ac_status=$?
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }; } &&
22134 { ac_try='test -s conftest.$ac_objext'
22135 { (case "(($ac_try" in
22136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22137 *) ac_try_echo=$ac_try;;
22138 esac
22139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22140 (eval "$ac_try") 2>&5
22141 ac_status=$?
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); }; }; then
22144 llvm_cv_cxx_visibility_inlines_hidden=yes
22145 else
22146 echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22149 llvm_cv_cxx_visibility_inlines_hidden=no
22150 fi
22152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22153 CXXFLAGS="$oldcxxflags"
22154 ac_ext=c
22155 ac_cpp='$CPP $CPPFLAGS'
22156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22161 fi
22162 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22163 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22164 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22165 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22167 else
22168 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22170 fi
22173 if test "$llvm_cv_link_use_r" = "yes" ; then
22174 RPATH="-Wl,-R"
22175 else
22176 RPATH="-Wl,-rpath"
22177 fi
22180 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22181 RDYNAMIC="-rdynamic"
22182 else
22183 RDYNAMIC=""
22184 fi
22188 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22195 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22197 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22199 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22201 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22203 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22206 ac_config_files="$ac_config_files Makefile.config"
22209 ac_config_files="$ac_config_files llvm.spec"
22212 ac_config_files="$ac_config_files docs/doxygen.cfg"
22215 if test "${clang_src_root}" = ""; then
22216 clang_src_root="$srcdir/tools/clang"
22217 fi
22218 if test -f ${clang_src_root}/README.txt; then
22219 configh="include/clang/Config/config.h"
22220 doxy="docs/doxygen.cfg"
22221 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22223 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22225 fi
22227 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22230 test "x$program_prefix" = "xNONE" && program_prefix=""
22234 ac_config_commands="$ac_config_commands setup"
22236 ac_config_commands="$ac_config_commands Makefile"
22239 ac_config_commands="$ac_config_commands Makefile.common"
22242 ac_config_commands="$ac_config_commands examples/Makefile"
22245 ac_config_commands="$ac_config_commands lib/Makefile"
22248 ac_config_commands="$ac_config_commands runtime/Makefile"
22251 ac_config_commands="$ac_config_commands test/Makefile"
22254 ac_config_commands="$ac_config_commands test/Makefile.tests"
22257 ac_config_commands="$ac_config_commands unittests/Makefile"
22260 ac_config_commands="$ac_config_commands tools/Makefile"
22263 ac_config_commands="$ac_config_commands utils/Makefile"
22266 ac_config_commands="$ac_config_commands projects/Makefile"
22269 ac_config_commands="$ac_config_commands bindings/Makefile"
22272 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22276 cat >confcache <<\_ACEOF
22277 # This file is a shell script that caches the results of configure
22278 # tests run on this system so they can be shared between configure
22279 # scripts and configure runs, see configure's option --config-cache.
22280 # It is not useful on other systems. If it contains results you don't
22281 # want to keep, you may remove or edit it.
22282 #
22283 # config.status only pays attention to the cache file if you give it
22284 # the --recheck option to rerun configure.
22285 #
22286 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22287 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22288 # following values.
22290 _ACEOF
22292 # The following way of writing the cache mishandles newlines in values,
22293 # but we know of no workaround that is simple, portable, and efficient.
22294 # So, we kill variables containing newlines.
22295 # Ultrix sh set writes to stderr and can't be redirected directly,
22296 # and sets the high bit in the cache file unless we assign to the vars.
22297 (
22298 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22299 eval ac_val=\$$ac_var
22300 case $ac_val in #(
22301 *${as_nl}*)
22302 case $ac_var in #(
22303 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22304 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22305 esac
22306 case $ac_var in #(
22307 _ | IFS | as_nl) ;; #(
22308 *) $as_unset $ac_var ;;
22309 esac ;;
22310 esac
22311 done
22313 (set) 2>&1 |
22314 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22315 *${as_nl}ac_space=\ *)
22316 # `set' does not quote correctly, so add quotes (double-quote
22317 # substitution turns \\\\ into \\, and sed turns \\ into \).
22318 sed -n \
22319 "s/'/'\\\\''/g;
22320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22321 ;; #(
22322 *)
22323 # `set' quotes correctly as required by POSIX, so do not add quotes.
22324 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22325 ;;
22326 esac |
22327 sort
22328 ) |
22329 sed '
22330 /^ac_cv_env_/b end
22331 t clear
22332 :clear
22333 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22334 t end
22335 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22336 :end' >>confcache
22337 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22338 if test -w "$cache_file"; then
22339 test "x$cache_file" != "x/dev/null" &&
22340 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22341 echo "$as_me: updating cache $cache_file" >&6;}
22342 cat confcache >$cache_file
22343 else
22344 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22345 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22346 fi
22347 fi
22348 rm -f confcache
22350 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22351 # Let make expand exec_prefix.
22352 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22354 DEFS=-DHAVE_CONFIG_H
22356 ac_libobjs=
22357 ac_ltlibobjs=
22358 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22359 # 1. Remove the extension, and $U if already installed.
22360 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22361 ac_i=`echo "$ac_i" | sed "$ac_script"`
22362 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22363 # will be set to the directory where LIBOBJS objects are built.
22364 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22365 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22366 done
22367 LIBOBJS=$ac_libobjs
22369 LTLIBOBJS=$ac_ltlibobjs
22372 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22373 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22374 Usually this means the macro was only invoked conditionally." >&5
22375 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22376 Usually this means the macro was only invoked conditionally." >&2;}
22377 { (exit 1); exit 1; }; }
22378 fi
22379 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22380 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22381 Usually this means the macro was only invoked conditionally." >&5
22382 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22383 Usually this means the macro was only invoked conditionally." >&2;}
22384 { (exit 1); exit 1; }; }
22385 fi
22387 : ${CONFIG_STATUS=./config.status}
22388 ac_clean_files_save=$ac_clean_files
22389 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22390 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22391 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22392 cat >$CONFIG_STATUS <<_ACEOF
22393 #! $SHELL
22394 # Generated by $as_me.
22395 # Run this file to recreate the current configuration.
22396 # Compiler output produced by configure, useful for debugging
22397 # configure, is in config.log if it exists.
22399 debug=false
22400 ac_cs_recheck=false
22401 ac_cs_silent=false
22402 SHELL=\${CONFIG_SHELL-$SHELL}
22403 _ACEOF
22405 cat >>$CONFIG_STATUS <<\_ACEOF
22406 ## --------------------- ##
22407 ## M4sh Initialization. ##
22408 ## --------------------- ##
22410 # Be Bourne compatible
22411 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22412 emulate sh
22413 NULLCMD=:
22414 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22415 # is contrary to our usage. Disable this feature.
22416 alias -g '${1+"$@"}'='"$@"'
22417 setopt NO_GLOB_SUBST
22418 else
22419 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22420 fi
22421 BIN_SH=xpg4; export BIN_SH # for Tru64
22422 DUALCASE=1; export DUALCASE # for MKS sh
22425 # PATH needs CR
22426 # Avoid depending upon Character Ranges.
22427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22430 as_cr_digits='0123456789'
22431 as_cr_alnum=$as_cr_Letters$as_cr_digits
22433 # The user is always right.
22434 if test "${PATH_SEPARATOR+set}" != set; then
22435 echo "#! /bin/sh" >conf$$.sh
22436 echo "exit 0" >>conf$$.sh
22437 chmod +x conf$$.sh
22438 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22439 PATH_SEPARATOR=';'
22440 else
22441 PATH_SEPARATOR=:
22442 fi
22443 rm -f conf$$.sh
22444 fi
22446 # Support unset when possible.
22447 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22448 as_unset=unset
22449 else
22450 as_unset=false
22451 fi
22454 # IFS
22455 # We need space, tab and new line, in precisely that order. Quoting is
22456 # there to prevent editors from complaining about space-tab.
22457 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22458 # splitting by setting IFS to empty value.)
22459 as_nl='
22460 '
22461 IFS=" "" $as_nl"
22463 # Find who we are. Look in the path if we contain no directory separator.
22464 case $0 in
22465 *[\\/]* ) as_myself=$0 ;;
22466 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22467 for as_dir in $PATH
22468 do
22469 IFS=$as_save_IFS
22470 test -z "$as_dir" && as_dir=.
22471 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22472 done
22473 IFS=$as_save_IFS
22475 ;;
22476 esac
22477 # We did not find ourselves, most probably we were run as `sh COMMAND'
22478 # in which case we are not to be found in the path.
22479 if test "x$as_myself" = x; then
22480 as_myself=$0
22481 fi
22482 if test ! -f "$as_myself"; then
22483 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22484 { (exit 1); exit 1; }
22485 fi
22487 # Work around bugs in pre-3.0 UWIN ksh.
22488 for as_var in ENV MAIL MAILPATH
22489 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22490 done
22491 PS1='$ '
22492 PS2='> '
22493 PS4='+ '
22495 # NLS nuisances.
22496 for as_var in \
22497 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22498 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22499 LC_TELEPHONE LC_TIME
22500 do
22501 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22502 eval $as_var=C; export $as_var
22503 else
22504 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22505 fi
22506 done
22508 # Required to use basename.
22509 if expr a : '\(a\)' >/dev/null 2>&1 &&
22510 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22511 as_expr=expr
22512 else
22513 as_expr=false
22514 fi
22516 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22517 as_basename=basename
22518 else
22519 as_basename=false
22520 fi
22523 # Name of the executable.
22524 as_me=`$as_basename -- "$0" ||
22525 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22526 X"$0" : 'X\(//\)$' \| \
22527 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22528 echo X/"$0" |
22529 sed '/^.*\/\([^/][^/]*\)\/*$/{
22530 s//\1/
22531 q
22532 }
22533 /^X\/\(\/\/\)$/{
22534 s//\1/
22535 q
22536 }
22537 /^X\/\(\/\).*/{
22538 s//\1/
22539 q
22540 }
22541 s/.*/./; q'`
22543 # CDPATH.
22544 $as_unset CDPATH
22548 as_lineno_1=$LINENO
22549 as_lineno_2=$LINENO
22550 test "x$as_lineno_1" != "x$as_lineno_2" &&
22551 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22553 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22554 # uniformly replaced by the line number. The first 'sed' inserts a
22555 # line-number line after each line using $LINENO; the second 'sed'
22556 # does the real work. The second script uses 'N' to pair each
22557 # line-number line with the line containing $LINENO, and appends
22558 # trailing '-' during substitution so that $LINENO is not a special
22559 # case at line end.
22560 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22561 # scripts with optimization help from Paolo Bonzini. Blame Lee
22562 # E. McMahon (1931-1989) for sed's syntax. :-)
22563 sed -n '
22564 p
22565 /[$]LINENO/=
22566 ' <$as_myself |
22567 sed '
22568 s/[$]LINENO.*/&-/
22569 t lineno
22570 b
22571 :lineno
22572 N
22573 :loop
22574 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22575 t loop
22576 s/-\n.*//
22577 ' >$as_me.lineno &&
22578 chmod +x "$as_me.lineno" ||
22579 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22580 { (exit 1); exit 1; }; }
22582 # Don't try to exec as it changes $[0], causing all sort of problems
22583 # (the dirname of $[0] is not the place where we might find the
22584 # original and so on. Autoconf is especially sensitive to this).
22585 . "./$as_me.lineno"
22586 # Exit status is that of the last command.
22587 exit
22588 }
22591 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22592 as_dirname=dirname
22593 else
22594 as_dirname=false
22595 fi
22597 ECHO_C= ECHO_N= ECHO_T=
22598 case `echo -n x` in
22599 -n*)
22600 case `echo 'x\c'` in
22601 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22602 *) ECHO_C='\c';;
22603 esac;;
22604 *)
22605 ECHO_N='-n';;
22606 esac
22608 if expr a : '\(a\)' >/dev/null 2>&1 &&
22609 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22610 as_expr=expr
22611 else
22612 as_expr=false
22613 fi
22615 rm -f conf$$ conf$$.exe conf$$.file
22616 if test -d conf$$.dir; then
22617 rm -f conf$$.dir/conf$$.file
22618 else
22619 rm -f conf$$.dir
22620 mkdir conf$$.dir
22621 fi
22622 echo >conf$$.file
22623 if ln -s conf$$.file conf$$ 2>/dev/null; then
22624 as_ln_s='ln -s'
22625 # ... but there are two gotchas:
22626 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22627 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22628 # In both cases, we have to default to `cp -p'.
22629 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22630 as_ln_s='cp -p'
22631 elif ln conf$$.file conf$$ 2>/dev/null; then
22632 as_ln_s=ln
22633 else
22634 as_ln_s='cp -p'
22635 fi
22636 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22637 rmdir conf$$.dir 2>/dev/null
22639 if mkdir -p . 2>/dev/null; then
22640 as_mkdir_p=:
22641 else
22642 test -d ./-p && rmdir ./-p
22643 as_mkdir_p=false
22644 fi
22646 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22647 # systems may use methods other than mode bits to determine executability.
22648 cat >conf$$.file <<_ASEOF
22649 #! /bin/sh
22650 exit 0
22651 _ASEOF
22652 chmod +x conf$$.file
22653 if test -x conf$$.file >/dev/null 2>&1; then
22654 as_executable_p="test -x"
22655 else
22656 as_executable_p=:
22657 fi
22658 rm -f conf$$.file
22660 # Sed expression to map a string onto a valid CPP name.
22661 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22663 # Sed expression to map a string onto a valid variable name.
22664 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22667 exec 6>&1
22669 # Save the log message, to keep $[0] and so on meaningful, and to
22670 # report actual input values of CONFIG_FILES etc. instead of their
22671 # values after options handling.
22672 ac_log="
22673 This file was extended by LLVM $as_me 3.4svn, which was
22674 generated by GNU Autoconf 2.60. Invocation command line was
22676 CONFIG_FILES = $CONFIG_FILES
22677 CONFIG_HEADERS = $CONFIG_HEADERS
22678 CONFIG_LINKS = $CONFIG_LINKS
22679 CONFIG_COMMANDS = $CONFIG_COMMANDS
22680 $ $0 $@
22682 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22683 "
22685 _ACEOF
22687 cat >>$CONFIG_STATUS <<_ACEOF
22688 # Files that config.status was made for.
22689 config_files="$ac_config_files"
22690 config_headers="$ac_config_headers"
22691 config_commands="$ac_config_commands"
22693 _ACEOF
22695 cat >>$CONFIG_STATUS <<\_ACEOF
22696 ac_cs_usage="\
22697 \`$as_me' instantiates files from templates according to the
22698 current configuration.
22700 Usage: $0 [OPTIONS] [FILE]...
22702 -h, --help print this help, then exit
22703 -V, --version print version number, then exit
22704 -q, --quiet do not print progress messages
22705 -d, --debug don't remove temporary files
22706 --recheck update $as_me by reconfiguring in the same conditions
22707 --file=FILE[:TEMPLATE]
22708 instantiate the configuration file FILE
22709 --header=FILE[:TEMPLATE]
22710 instantiate the configuration header FILE
22712 Configuration files:
22713 $config_files
22715 Configuration headers:
22716 $config_headers
22718 Configuration commands:
22719 $config_commands
22721 Report bugs to <bug-autoconf@gnu.org>."
22723 _ACEOF
22724 cat >>$CONFIG_STATUS <<_ACEOF
22725 ac_cs_version="\\
22726 LLVM config.status 3.4svn
22727 configured by $0, generated by GNU Autoconf 2.60,
22728 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22730 Copyright (C) 2006 Free Software Foundation, Inc.
22731 This config.status script is free software; the Free Software Foundation
22732 gives unlimited permission to copy, distribute and modify it."
22734 ac_pwd='$ac_pwd'
22735 srcdir='$srcdir'
22736 INSTALL='$INSTALL'
22737 _ACEOF
22739 cat >>$CONFIG_STATUS <<\_ACEOF
22740 # If no file are specified by the user, then we need to provide default
22741 # value. By we need to know if files were specified by the user.
22742 ac_need_defaults=:
22743 while test $# != 0
22744 do
22745 case $1 in
22746 --*=*)
22747 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22748 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22749 ac_shift=:
22750 ;;
22751 *)
22752 ac_option=$1
22753 ac_optarg=$2
22754 ac_shift=shift
22755 ;;
22756 esac
22758 case $ac_option in
22759 # Handling of the options.
22760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22761 ac_cs_recheck=: ;;
22762 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22763 echo "$ac_cs_version"; exit ;;
22764 --debug | --debu | --deb | --de | --d | -d )
22765 debug=: ;;
22766 --file | --fil | --fi | --f )
22767 $ac_shift
22768 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22769 ac_need_defaults=false;;
22770 --header | --heade | --head | --hea )
22771 $ac_shift
22772 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22773 ac_need_defaults=false;;
22774 --he | --h)
22775 # Conflict between --help and --header
22776 { echo "$as_me: error: ambiguous option: $1
22777 Try \`$0 --help' for more information." >&2
22778 { (exit 1); exit 1; }; };;
22779 --help | --hel | -h )
22780 echo "$ac_cs_usage"; exit ;;
22781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22782 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22783 ac_cs_silent=: ;;
22785 # This is an error.
22786 -*) { echo "$as_me: error: unrecognized option: $1
22787 Try \`$0 --help' for more information." >&2
22788 { (exit 1); exit 1; }; } ;;
22790 *) ac_config_targets="$ac_config_targets $1"
22791 ac_need_defaults=false ;;
22793 esac
22794 shift
22795 done
22797 ac_configure_extra_args=
22799 if $ac_cs_silent; then
22800 exec 6>/dev/null
22801 ac_configure_extra_args="$ac_configure_extra_args --silent"
22802 fi
22804 _ACEOF
22805 cat >>$CONFIG_STATUS <<_ACEOF
22806 if \$ac_cs_recheck; then
22807 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22808 CONFIG_SHELL=$SHELL
22809 export CONFIG_SHELL
22810 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22811 fi
22813 _ACEOF
22814 cat >>$CONFIG_STATUS <<\_ACEOF
22815 exec 5>>config.log
22816 {
22817 echo
22818 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22819 ## Running $as_me. ##
22820 _ASBOX
22821 echo "$ac_log"
22822 } >&5
22824 _ACEOF
22825 cat >>$CONFIG_STATUS <<_ACEOF
22826 #
22827 # INIT-COMMANDS
22828 #
22829 llvm_src="${srcdir}"
22831 _ACEOF
22833 cat >>$CONFIG_STATUS <<\_ACEOF
22835 # Handling of arguments.
22836 for ac_config_target in $ac_config_targets
22837 do
22838 case $ac_config_target in
22839 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22840 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22841 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22842 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22843 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22844 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22845 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22846 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22847 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22848 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22849 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22850 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22851 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22852 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22853 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22854 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22855 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22856 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22857 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22858 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22859 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22860 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22861 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22862 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22863 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22864 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22865 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22867 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22868 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22869 { (exit 1); exit 1; }; };;
22870 esac
22871 done
22874 # If the user did not use the arguments to specify the items to instantiate,
22875 # then the envvar interface is used. Set only those that are not.
22876 # We use the long form for the default assignment because of an extremely
22877 # bizarre bug on SunOS 4.1.3.
22878 if $ac_need_defaults; then
22879 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22880 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22881 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22882 fi
22884 # Have a temporary directory for convenience. Make it in the build tree
22885 # simply because there is no reason against having it here, and in addition,
22886 # creating and moving files from /tmp can sometimes cause problems.
22887 # Hook for its removal unless debugging.
22888 # Note that there is a small window in which the directory will not be cleaned:
22889 # after its creation but before its name has been assigned to `$tmp'.
22890 $debug ||
22891 {
22892 tmp=
22893 trap 'exit_status=$?
22894 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22895 ' 0
22896 trap '{ (exit 1); exit 1; }' 1 2 13 15
22897 }
22898 # Create a (secure) tmp directory for tmp files.
22900 {
22901 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22902 test -n "$tmp" && test -d "$tmp"
22903 } ||
22904 {
22905 tmp=./conf$$-$RANDOM
22906 (umask 077 && mkdir "$tmp")
22907 } ||
22908 {
22909 echo "$me: cannot create a temporary directory in ." >&2
22910 { (exit 1); exit 1; }
22911 }
22913 #
22914 # Set up the sed scripts for CONFIG_FILES section.
22915 #
22917 # No need to generate the scripts if there are no CONFIG_FILES.
22918 # This happens for instance when ./config.status config.h
22919 if test -n "$CONFIG_FILES"; then
22921 _ACEOF
22925 ac_delim='%!_!# '
22926 for ac_last_try in false false false false false :; do
22927 cat >conf$$subs.sed <<_ACEOF
22928 SHELL!$SHELL$ac_delim
22929 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22930 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22931 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22932 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22933 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22934 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22935 exec_prefix!$exec_prefix$ac_delim
22936 prefix!$prefix$ac_delim
22937 program_transform_name!$program_transform_name$ac_delim
22938 bindir!$bindir$ac_delim
22939 sbindir!$sbindir$ac_delim
22940 libexecdir!$libexecdir$ac_delim
22941 datarootdir!$datarootdir$ac_delim
22942 datadir!$datadir$ac_delim
22943 sysconfdir!$sysconfdir$ac_delim
22944 sharedstatedir!$sharedstatedir$ac_delim
22945 localstatedir!$localstatedir$ac_delim
22946 includedir!$includedir$ac_delim
22947 oldincludedir!$oldincludedir$ac_delim
22948 docdir!$docdir$ac_delim
22949 infodir!$infodir$ac_delim
22950 htmldir!$htmldir$ac_delim
22951 dvidir!$dvidir$ac_delim
22952 pdfdir!$pdfdir$ac_delim
22953 psdir!$psdir$ac_delim
22954 libdir!$libdir$ac_delim
22955 localedir!$localedir$ac_delim
22956 mandir!$mandir$ac_delim
22957 DEFS!$DEFS$ac_delim
22958 ECHO_C!$ECHO_C$ac_delim
22959 ECHO_N!$ECHO_N$ac_delim
22960 ECHO_T!$ECHO_T$ac_delim
22961 LIBS!$LIBS$ac_delim
22962 build_alias!$build_alias$ac_delim
22963 host_alias!$host_alias$ac_delim
22964 target_alias!$target_alias$ac_delim
22965 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22966 CC!$CC$ac_delim
22967 CFLAGS!$CFLAGS$ac_delim
22968 LDFLAGS!$LDFLAGS$ac_delim
22969 CPPFLAGS!$CPPFLAGS$ac_delim
22970 ac_ct_CC!$ac_ct_CC$ac_delim
22971 EXEEXT!$EXEEXT$ac_delim
22972 OBJEXT!$OBJEXT$ac_delim
22973 CXX!$CXX$ac_delim
22974 CXXFLAGS!$CXXFLAGS$ac_delim
22975 ac_ct_CXX!$ac_ct_CXX$ac_delim
22976 CPP!$CPP$ac_delim
22977 subdirs!$subdirs$ac_delim
22978 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22979 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22980 build!$build$ac_delim
22981 build_cpu!$build_cpu$ac_delim
22982 build_vendor!$build_vendor$ac_delim
22983 build_os!$build_os$ac_delim
22984 host!$host$ac_delim
22985 host_cpu!$host_cpu$ac_delim
22986 host_vendor!$host_vendor$ac_delim
22987 host_os!$host_os$ac_delim
22988 target!$target$ac_delim
22989 target_cpu!$target_cpu$ac_delim
22990 target_vendor!$target_vendor$ac_delim
22991 target_os!$target_os$ac_delim
22992 OS!$OS$ac_delim
22993 HOST_OS!$HOST_OS$ac_delim
22994 TARGET_OS!$TARGET_OS$ac_delim
22995 LINKALL!$LINKALL$ac_delim
22996 NOLINKALL!$NOLINKALL$ac_delim
22997 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22998 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22999 ARCH!$ARCH$ac_delim
23000 HOST_ARCH!$HOST_ARCH$ac_delim
23001 ENDIAN!$ENDIAN$ac_delim
23002 GREP!$GREP$ac_delim
23003 EGREP!$EGREP$ac_delim
23004 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23005 BUILD_CC!$BUILD_CC$ac_delim
23006 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23007 BUILD_CXX!$BUILD_CXX$ac_delim
23008 CVSBUILD!$CVSBUILD$ac_delim
23009 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23010 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23011 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23012 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23013 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23014 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23015 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23016 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23017 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23018 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23019 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23020 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23021 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23022 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23023 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23024 JIT!$JIT$ac_delim
23025 _ACEOF
23027 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23028 break
23029 elif $ac_last_try; then
23030 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23031 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23032 { (exit 1); exit 1; }; }
23033 else
23034 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23035 fi
23036 done
23038 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23039 if test -n "$ac_eof"; then
23040 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23041 ac_eof=`expr $ac_eof + 1`
23042 fi
23044 cat >>$CONFIG_STATUS <<_ACEOF
23045 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23046 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23047 _ACEOF
23048 sed '
23049 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23050 s/^/s,@/; s/!/@,|#_!!_#|/
23051 :n
23052 t n
23053 s/'"$ac_delim"'$/,g/; t
23054 s/$/\\/; p
23055 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23056 ' >>$CONFIG_STATUS <conf$$subs.sed
23057 rm -f conf$$subs.sed
23058 cat >>$CONFIG_STATUS <<_ACEOF
23059 CEOF$ac_eof
23060 _ACEOF
23063 ac_delim='%!_!# '
23064 for ac_last_try in false false false false false :; do
23065 cat >conf$$subs.sed <<_ACEOF
23066 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23067 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23068 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23069 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23070 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23071 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23072 ENABLE_PIC!$ENABLE_PIC$ac_delim
23073 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23074 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23075 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23076 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23077 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23078 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23079 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23080 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23081 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23082 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23083 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23084 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23085 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23086 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23087 NM!$NM$ac_delim
23088 ifGNUmake!$ifGNUmake$ac_delim
23089 LN_S!$LN_S$ac_delim
23090 CMP!$CMP$ac_delim
23091 CP!$CP$ac_delim
23092 DATE!$DATE$ac_delim
23093 FIND!$FIND$ac_delim
23094 MKDIR!$MKDIR$ac_delim
23095 MV!$MV$ac_delim
23096 RANLIB!$RANLIB$ac_delim
23097 AR!$AR$ac_delim
23098 RM!$RM$ac_delim
23099 SED!$SED$ac_delim
23100 TAR!$TAR$ac_delim
23101 BINPWD!$BINPWD$ac_delim
23102 GRAPHVIZ!$GRAPHVIZ$ac_delim
23103 DOT!$DOT$ac_delim
23104 FDP!$FDP$ac_delim
23105 NEATO!$NEATO$ac_delim
23106 TWOPI!$TWOPI$ac_delim
23107 CIRCO!$CIRCO$ac_delim
23108 GV!$GV$ac_delim
23109 DOTTY!$DOTTY$ac_delim
23110 XDOT!$XDOT$ac_delim
23111 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23112 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23113 INSTALL_DATA!$INSTALL_DATA$ac_delim
23114 BZIP2!$BZIP2$ac_delim
23115 CAT!$CAT$ac_delim
23116 DOXYGEN!$DOXYGEN$ac_delim
23117 GROFF!$GROFF$ac_delim
23118 GZIPBIN!$GZIPBIN$ac_delim
23119 PDFROFF!$PDFROFF$ac_delim
23120 ZIP!$ZIP$ac_delim
23121 OCAMLC!$OCAMLC$ac_delim
23122 OCAMLOPT!$OCAMLOPT$ac_delim
23123 OCAMLDEP!$OCAMLDEP$ac_delim
23124 OCAMLDOC!$OCAMLDOC$ac_delim
23125 GAS!$GAS$ac_delim
23126 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23127 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23128 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23129 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23130 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23131 LIBADD_DL!$LIBADD_DL$ac_delim
23132 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23133 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23134 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23135 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23136 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23137 PYTHON!$PYTHON$ac_delim
23138 USE_UDIS86!$USE_UDIS86$ac_delim
23139 USE_OPROFILE!$USE_OPROFILE$ac_delim
23140 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23141 XML2CONFIG!$XML2CONFIG$ac_delim
23142 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23143 LIBXML2_INC!$LIBXML2_INC$ac_delim
23144 CXXCPP!$CXXCPP$ac_delim
23145 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23146 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23147 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23148 MMAP_FILE!$MMAP_FILE$ac_delim
23149 SHLIBEXT!$SHLIBEXT$ac_delim
23150 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23151 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23152 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23153 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23154 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23155 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23156 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23157 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23158 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23159 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23160 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23161 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23162 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23163 _ACEOF
23165 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23166 break
23167 elif $ac_last_try; then
23168 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23169 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23170 { (exit 1); exit 1; }; }
23171 else
23172 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23173 fi
23174 done
23176 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23177 if test -n "$ac_eof"; then
23178 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23179 ac_eof=`expr $ac_eof + 1`
23180 fi
23182 cat >>$CONFIG_STATUS <<_ACEOF
23183 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23185 _ACEOF
23186 sed '
23187 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23188 s/^/s,@/; s/!/@,|#_!!_#|/
23189 :n
23190 t n
23191 s/'"$ac_delim"'$/,g/; t
23192 s/$/\\/; p
23193 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23194 ' >>$CONFIG_STATUS <conf$$subs.sed
23195 rm -f conf$$subs.sed
23196 cat >>$CONFIG_STATUS <<_ACEOF
23197 CEOF$ac_eof
23198 _ACEOF
23201 ac_delim='%!_!# '
23202 for ac_last_try in false false false false false :; do
23203 cat >conf$$subs.sed <<_ACEOF
23204 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23205 RPATH!$RPATH$ac_delim
23206 RDYNAMIC!$RDYNAMIC$ac_delim
23207 program_prefix!$program_prefix$ac_delim
23208 LIBOBJS!$LIBOBJS$ac_delim
23209 LTLIBOBJS!$LTLIBOBJS$ac_delim
23210 _ACEOF
23212 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23213 break
23214 elif $ac_last_try; then
23215 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23216 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23217 { (exit 1); exit 1; }; }
23218 else
23219 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23220 fi
23221 done
23223 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23224 if test -n "$ac_eof"; then
23225 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23226 ac_eof=`expr $ac_eof + 1`
23227 fi
23229 cat >>$CONFIG_STATUS <<_ACEOF
23230 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23231 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23232 _ACEOF
23233 sed '
23234 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23235 s/^/s,@/; s/!/@,|#_!!_#|/
23236 :n
23237 t n
23238 s/'"$ac_delim"'$/,g/; t
23239 s/$/\\/; p
23240 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23241 ' >>$CONFIG_STATUS <conf$$subs.sed
23242 rm -f conf$$subs.sed
23243 cat >>$CONFIG_STATUS <<_ACEOF
23244 :end
23245 s/|#_!!_#|//g
23246 CEOF$ac_eof
23247 _ACEOF
23250 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23251 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23252 # trailing colons and then remove the whole line if VPATH becomes empty
23253 # (actually we leave an empty line to preserve line numbers).
23254 if test "x$srcdir" = x.; then
23255 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23256 s/:*\$(srcdir):*/:/
23257 s/:*\${srcdir}:*/:/
23258 s/:*@srcdir@:*/:/
23259 s/^\([^=]*=[ ]*\):*/\1/
23260 s/:*$//
23261 s/^[^=]*=[ ]*$//
23262 }'
23263 fi
23265 cat >>$CONFIG_STATUS <<\_ACEOF
23266 fi # test -n "$CONFIG_FILES"
23269 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23270 do
23271 case $ac_tag in
23272 :[FHLC]) ac_mode=$ac_tag; continue;;
23273 esac
23274 case $ac_mode$ac_tag in
23275 :[FHL]*:*);;
23276 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23277 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23278 { (exit 1); exit 1; }; };;
23279 :[FH]-) ac_tag=-:-;;
23280 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23281 esac
23282 ac_save_IFS=$IFS
23283 IFS=:
23284 set x $ac_tag
23285 IFS=$ac_save_IFS
23286 shift
23287 ac_file=$1
23288 shift
23290 case $ac_mode in
23291 :L) ac_source=$1;;
23292 :[FH])
23293 ac_file_inputs=
23294 for ac_f
23295 do
23296 case $ac_f in
23297 -) ac_f="$tmp/stdin";;
23298 *) # Look for the file first in the build tree, then in the source tree
23299 # (if the path is not absolute). The absolute path cannot be DOS-style,
23300 # because $ac_f cannot contain `:'.
23301 test -f "$ac_f" ||
23302 case $ac_f in
23303 [\\/$]*) false;;
23304 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23305 esac ||
23306 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23307 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23308 { (exit 1); exit 1; }; };;
23309 esac
23310 ac_file_inputs="$ac_file_inputs $ac_f"
23311 done
23313 # Let's still pretend it is `configure' which instantiates (i.e., don't
23314 # use $as_me), people would be surprised to read:
23315 # /* config.h. Generated by config.status. */
23316 configure_input="Generated from "`IFS=:
23317 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23318 if test x"$ac_file" != x-; then
23319 configure_input="$ac_file. $configure_input"
23320 { echo "$as_me:$LINENO: creating $ac_file" >&5
23321 echo "$as_me: creating $ac_file" >&6;}
23322 fi
23324 case $ac_tag in
23325 *:-:* | *:-) cat >"$tmp/stdin";;
23326 esac
23327 ;;
23328 esac
23330 ac_dir=`$as_dirname -- "$ac_file" ||
23331 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23332 X"$ac_file" : 'X\(//\)[^/]' \| \
23333 X"$ac_file" : 'X\(//\)$' \| \
23334 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23335 echo X"$ac_file" |
23336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23337 s//\1/
23338 q
23339 }
23340 /^X\(\/\/\)[^/].*/{
23341 s//\1/
23342 q
23343 }
23344 /^X\(\/\/\)$/{
23345 s//\1/
23346 q
23347 }
23348 /^X\(\/\).*/{
23349 s//\1/
23350 q
23351 }
23352 s/.*/./; q'`
23353 { as_dir="$ac_dir"
23354 case $as_dir in #(
23355 -*) as_dir=./$as_dir;;
23356 esac
23357 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23358 as_dirs=
23359 while :; do
23360 case $as_dir in #(
23361 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23362 *) as_qdir=$as_dir;;
23363 esac
23364 as_dirs="'$as_qdir' $as_dirs"
23365 as_dir=`$as_dirname -- "$as_dir" ||
23366 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23367 X"$as_dir" : 'X\(//\)[^/]' \| \
23368 X"$as_dir" : 'X\(//\)$' \| \
23369 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23370 echo X"$as_dir" |
23371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23372 s//\1/
23373 q
23374 }
23375 /^X\(\/\/\)[^/].*/{
23376 s//\1/
23377 q
23378 }
23379 /^X\(\/\/\)$/{
23380 s//\1/
23381 q
23382 }
23383 /^X\(\/\).*/{
23384 s//\1/
23385 q
23386 }
23387 s/.*/./; q'`
23388 test -d "$as_dir" && break
23389 done
23390 test -z "$as_dirs" || eval "mkdir $as_dirs"
23391 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23392 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23393 { (exit 1); exit 1; }; }; }
23394 ac_builddir=.
23396 case "$ac_dir" in
23397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23398 *)
23399 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23400 # A ".." for each directory in $ac_dir_suffix.
23401 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23402 case $ac_top_builddir_sub in
23403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23405 esac ;;
23406 esac
23407 ac_abs_top_builddir=$ac_pwd
23408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23409 # for backward compatibility:
23410 ac_top_builddir=$ac_top_build_prefix
23412 case $srcdir in
23413 .) # We are building in place.
23414 ac_srcdir=.
23415 ac_top_srcdir=$ac_top_builddir_sub
23416 ac_abs_top_srcdir=$ac_pwd ;;
23417 [\\/]* | ?:[\\/]* ) # Absolute name.
23418 ac_srcdir=$srcdir$ac_dir_suffix;
23419 ac_top_srcdir=$srcdir
23420 ac_abs_top_srcdir=$srcdir ;;
23421 *) # Relative name.
23422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23423 ac_top_srcdir=$ac_top_build_prefix$srcdir
23424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23425 esac
23426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23429 case $ac_mode in
23430 :F)
23431 #
23432 # CONFIG_FILE
23433 #
23435 case $INSTALL in
23436 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23437 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23438 esac
23439 _ACEOF
23441 cat >>$CONFIG_STATUS <<\_ACEOF
23442 # If the template does not know about datarootdir, expand it.
23443 # FIXME: This hack should be removed a few years after 2.60.
23444 ac_datarootdir_hack=; ac_datarootdir_seen=
23446 case `sed -n '/datarootdir/ {
23447 p
23448 q
23449 }
23450 /@datadir@/p
23451 /@docdir@/p
23452 /@infodir@/p
23453 /@localedir@/p
23454 /@mandir@/p
23455 ' $ac_file_inputs` in
23456 *datarootdir*) ac_datarootdir_seen=yes;;
23457 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23458 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23459 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23460 _ACEOF
23461 cat >>$CONFIG_STATUS <<_ACEOF
23462 ac_datarootdir_hack='
23463 s&@datadir@&$datadir&g
23464 s&@docdir@&$docdir&g
23465 s&@infodir@&$infodir&g
23466 s&@localedir@&$localedir&g
23467 s&@mandir@&$mandir&g
23468 s&\\\${datarootdir}&$datarootdir&g' ;;
23469 esac
23470 _ACEOF
23472 # Neutralize VPATH when `$srcdir' = `.'.
23473 # Shell code in configure.ac might set extrasub.
23474 # FIXME: do we really want to maintain this feature?
23475 cat >>$CONFIG_STATUS <<_ACEOF
23476 sed "$ac_vpsub
23477 $extrasub
23478 _ACEOF
23479 cat >>$CONFIG_STATUS <<\_ACEOF
23480 :t
23481 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23482 s&@configure_input@&$configure_input&;t t
23483 s&@top_builddir@&$ac_top_builddir_sub&;t t
23484 s&@srcdir@&$ac_srcdir&;t t
23485 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23486 s&@top_srcdir@&$ac_top_srcdir&;t t
23487 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23488 s&@builddir@&$ac_builddir&;t t
23489 s&@abs_builddir@&$ac_abs_builddir&;t t
23490 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23491 s&@INSTALL@&$ac_INSTALL&;t t
23492 $ac_datarootdir_hack
23493 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23495 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23496 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23497 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23498 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23499 which seems to be undefined. Please make sure it is defined." >&5
23500 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23501 which seems to be undefined. Please make sure it is defined." >&2;}
23503 rm -f "$tmp/stdin"
23504 case $ac_file in
23505 -) cat "$tmp/out"; rm -f "$tmp/out";;
23506 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23507 esac
23508 ;;
23509 :H)
23510 #
23511 # CONFIG_HEADER
23512 #
23513 _ACEOF
23515 # Transform confdefs.h into a sed script `conftest.defines', that
23516 # substitutes the proper values into config.h.in to produce config.h.
23517 rm -f conftest.defines conftest.tail
23518 # First, append a space to every undef/define line, to ease matching.
23519 echo 's/$/ /' >conftest.defines
23520 # Then, protect against being on the right side of a sed subst, or in
23521 # an unquoted here document, in config.status. If some macros were
23522 # called several times there might be several #defines for the same
23523 # symbol, which is useless. But do not sort them, since the last
23524 # AC_DEFINE must be honored.
23525 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23526 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23527 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23528 # PARAMS is the parameter list in the macro definition--in most cases, it's
23529 # just an empty string.
23530 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23531 ac_dB='\\)[ (].*,\\1define\\2'
23532 ac_dC=' '
23533 ac_dD=' ,'
23535 uniq confdefs.h |
23536 sed -n '
23537 t rset
23538 :rset
23539 s/^[ ]*#[ ]*define[ ][ ]*//
23540 t ok
23541 d
23542 :ok
23543 s/[\\&,]/\\&/g
23544 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23545 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23546 ' >>conftest.defines
23548 # Remove the space that was appended to ease matching.
23549 # Then replace #undef with comments. This is necessary, for
23550 # example, in the case of _POSIX_SOURCE, which is predefined and required
23551 # on some systems where configure will not decide to define it.
23552 # (The regexp can be short, since the line contains either #define or #undef.)
23553 echo 's/ $//
23554 s,^[ #]*u.*,/* & */,' >>conftest.defines
23556 # Break up conftest.defines:
23557 ac_max_sed_lines=50
23559 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23560 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23561 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23562 # et cetera.
23563 ac_in='$ac_file_inputs'
23564 ac_out='"$tmp/out1"'
23565 ac_nxt='"$tmp/out2"'
23567 while :
23568 do
23569 # Write a here document:
23570 cat >>$CONFIG_STATUS <<_ACEOF
23571 # First, check the format of the line:
23572 cat >"\$tmp/defines.sed" <<\\CEOF
23573 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23574 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23575 b
23576 :def
23577 _ACEOF
23578 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23579 echo 'CEOF
23580 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23581 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23582 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23583 grep . conftest.tail >/dev/null || break
23584 rm -f conftest.defines
23585 mv conftest.tail conftest.defines
23586 done
23587 rm -f conftest.defines conftest.tail
23589 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23590 cat >>$CONFIG_STATUS <<\_ACEOF
23591 if test x"$ac_file" != x-; then
23592 echo "/* $configure_input */" >"$tmp/config.h"
23593 cat "$ac_result" >>"$tmp/config.h"
23594 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23595 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23596 echo "$as_me: $ac_file is unchanged" >&6;}
23597 else
23598 rm -f $ac_file
23599 mv "$tmp/config.h" $ac_file
23600 fi
23601 else
23602 echo "/* $configure_input */"
23603 cat "$ac_result"
23604 fi
23605 rm -f "$tmp/out12"
23606 ;;
23608 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23609 echo "$as_me: executing $ac_file commands" >&6;}
23610 ;;
23611 esac
23614 case $ac_file$ac_mode in
23615 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23616 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23617 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23618 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23619 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23620 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23621 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23622 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23623 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23624 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23625 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23626 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23627 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23628 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23629 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23630 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23631 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23632 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23633 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23634 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23635 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23636 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23637 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23638 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23639 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23640 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23642 esac
23643 done # for ac_tag
23646 { (exit 0); exit 0; }
23647 _ACEOF
23648 chmod +x $CONFIG_STATUS
23649 ac_clean_files=$ac_clean_files_save
23652 # configure is writing to config.log, and then calls config.status.
23653 # config.status does its own redirection, appending to config.log.
23654 # Unfortunately, on DOS this fails, as config.log is still kept open
23655 # by configure, so config.status won't be able to write to it; its
23656 # output is simply discarded. So we exec the FD to /dev/null,
23657 # effectively closing config.log, so it can be properly (re)opened and
23658 # appended to by config.status. When coming back to configure, we
23659 # need to make the FD available again.
23660 if test "$no_create" != yes; then
23661 ac_cs_success=:
23662 ac_config_status_args=
23663 test "$silent" = yes &&
23664 ac_config_status_args="$ac_config_status_args --quiet"
23665 exec 5>/dev/null
23666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23667 exec 5>>config.log
23668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23669 # would make configure fail if this is the last instruction.
23670 $ac_cs_success || { (exit 1); exit 1; }
23671 fi
23673 #
23674 # CONFIG_SUBDIRS section.
23675 #
23676 if test "$no_recursion" != yes; then
23678 # Remove --cache-file and --srcdir arguments so they do not pile up.
23679 ac_sub_configure_args=
23680 ac_prev=
23681 eval "set x $ac_configure_args"
23682 shift
23683 for ac_arg
23684 do
23685 if test -n "$ac_prev"; then
23686 ac_prev=
23687 continue
23688 fi
23689 case $ac_arg in
23690 -cache-file | --cache-file | --cache-fil | --cache-fi \
23691 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23692 ac_prev=cache_file ;;
23693 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23694 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23695 | --c=*)
23696 ;;
23697 --config-cache | -C)
23698 ;;
23699 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23700 ac_prev=srcdir ;;
23701 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23702 ;;
23703 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23704 ac_prev=prefix ;;
23705 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23706 ;;
23707 *)
23708 case $ac_arg in
23709 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23710 esac
23711 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23712 esac
23713 done
23715 # Always prepend --prefix to ensure using the same prefix
23716 # in subdir configurations.
23717 ac_arg="--prefix=$prefix"
23718 case $ac_arg in
23719 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23720 esac
23721 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23723 ac_popdir=`pwd`
23724 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23726 # Do not complain, so a configure script can configure whichever
23727 # parts of a large source tree are present.
23728 test -d "$srcdir/$ac_dir" || continue
23730 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23731 echo "$as_me:$LINENO: $ac_msg" >&5
23732 echo "$ac_msg" >&6
23733 { as_dir="$ac_dir"
23734 case $as_dir in #(
23735 -*) as_dir=./$as_dir;;
23736 esac
23737 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23738 as_dirs=
23739 while :; do
23740 case $as_dir in #(
23741 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23742 *) as_qdir=$as_dir;;
23743 esac
23744 as_dirs="'$as_qdir' $as_dirs"
23745 as_dir=`$as_dirname -- "$as_dir" ||
23746 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23747 X"$as_dir" : 'X\(//\)[^/]' \| \
23748 X"$as_dir" : 'X\(//\)$' \| \
23749 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23750 echo X"$as_dir" |
23751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23752 s//\1/
23753 q
23754 }
23755 /^X\(\/\/\)[^/].*/{
23756 s//\1/
23757 q
23758 }
23759 /^X\(\/\/\)$/{
23760 s//\1/
23761 q
23762 }
23763 /^X\(\/\).*/{
23764 s//\1/
23765 q
23766 }
23767 s/.*/./; q'`
23768 test -d "$as_dir" && break
23769 done
23770 test -z "$as_dirs" || eval "mkdir $as_dirs"
23771 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23772 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23773 { (exit 1); exit 1; }; }; }
23774 ac_builddir=.
23776 case "$ac_dir" in
23777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23778 *)
23779 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23780 # A ".." for each directory in $ac_dir_suffix.
23781 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23782 case $ac_top_builddir_sub in
23783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23785 esac ;;
23786 esac
23787 ac_abs_top_builddir=$ac_pwd
23788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23789 # for backward compatibility:
23790 ac_top_builddir=$ac_top_build_prefix
23792 case $srcdir in
23793 .) # We are building in place.
23794 ac_srcdir=.
23795 ac_top_srcdir=$ac_top_builddir_sub
23796 ac_abs_top_srcdir=$ac_pwd ;;
23797 [\\/]* | ?:[\\/]* ) # Absolute name.
23798 ac_srcdir=$srcdir$ac_dir_suffix;
23799 ac_top_srcdir=$srcdir
23800 ac_abs_top_srcdir=$srcdir ;;
23801 *) # Relative name.
23802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23803 ac_top_srcdir=$ac_top_build_prefix$srcdir
23804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23805 esac
23806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23809 cd "$ac_dir"
23811 # Check for guested configure; otherwise get Cygnus style configure.
23812 if test -f "$ac_srcdir/configure.gnu"; then
23813 ac_sub_configure=$ac_srcdir/configure.gnu
23814 elif test -f "$ac_srcdir/configure"; then
23815 ac_sub_configure=$ac_srcdir/configure
23816 elif test -f "$ac_srcdir/configure.in"; then
23817 # This should be Cygnus configure.
23818 ac_sub_configure=$ac_aux_dir/configure
23819 else
23820 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23821 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23822 ac_sub_configure=
23823 fi
23825 # The recursion is here.
23826 if test -n "$ac_sub_configure"; then
23827 # Make the cache file name correct relative to the subdirectory.
23828 case $cache_file in
23829 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23830 *) # Relative name.
23831 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23832 esac
23834 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23835 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23836 # The eval makes quoting arguments work.
23837 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23838 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23839 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23840 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23841 { (exit 1); exit 1; }; }
23842 fi
23844 cd "$ac_popdir"
23845 done
23846 fi