]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - configure
Improve performance of calculateDbgValueHistory.
[opencl/llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.6.0svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
165 as_func_success () {
166   as_func_return 0
168 as_func_failure () {
169   as_func_return 1
171 as_func_ret_success () {
172   return 0
174 as_func_ret_failure () {
175   return 1
178 exitcode=0
179 if as_func_success; then
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; }
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
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
275 (as_func_return () {
276   (exit $1)
278 as_func_success () {
279   as_func_return 0
281 as_func_failure () {
282   as_func_return 1
284 as_func_ret_success () {
285   return 0
287 as_func_ret_failure () {
288   return 1
291 exitcode=0
292 if as_func_success; then
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; }
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)
367 as_func_success () {
368   as_func_return 0
370 as_func_failure () {
371   as_func_return 1
373 as_func_ret_success () {
374   return 0
376 as_func_ret_failure () {
377   return 1
380 exitcode=0
381 if as_func_success; then
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
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
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`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.6.0svn'
565 PACKAGE_STRING='LLVM 3.6.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_VERSION_MAJOR
643 LLVM_VERSION_MINOR
644 LLVM_VERSION_PATCH
645 LLVM_VERSION_SUFFIX
646 LLVM_COPYRIGHT
647 CC
648 CFLAGS
649 LDFLAGS
650 CPPFLAGS
651 ac_ct_CC
652 EXEEXT
653 OBJEXT
654 CXX
655 CXXFLAGS
656 ac_ct_CXX
657 CPP
658 subdirs
659 ENABLE_POLLY
660 LLVM_HAS_POLLY
661 build
662 build_cpu
663 build_vendor
664 build_os
665 host
666 host_cpu
667 host_vendor
668 host_os
669 target
670 target_cpu
671 target_vendor
672 target_os
673 OS
674 HOST_OS
675 TARGET_OS
676 LINKALL
677 NOLINKALL
678 LLVM_ON_UNIX
679 LLVM_ON_WIN32
680 ARCH
681 LLVM_NATIVE_ARCH
682 HOST_ARCH
683 LLVM_CROSS_COMPILING
684 BUILD_CC
685 BUILD_EXEEXT
686 BUILD_CXX
687 CVSBUILD
688 ENABLE_LIBCPP
689 ENABLE_CXX1Y
690 ENABLE_SPLIT_DWARF
691 ENABLE_CLANG_ARCMT
692 CLANG_PLUGIN_SUPPORT
693 ENABLE_CLANG_STATIC_ANALYZER
694 ENABLE_OPTIMIZED
695 ENABLE_PROFILING
696 DISABLE_ASSERTIONS
697 ENABLE_WERROR
698 ENABLE_EXPENSIVE_CHECKS
699 EXPENSIVE_CHECKS
700 DEBUG_RUNTIME
701 DEBUG_SYMBOLS
702 KEEP_SYMBOLS
703 JIT
704 TARGET_HAS_JIT
705 TARGETS_WITH_JIT
706 ENABLE_DOCS
707 ENABLE_DOXYGEN
708 LLVM_ENABLE_THREADS
709 ENABLE_PTHREADS
710 LLVM_ENABLE_ZLIB
711 ENABLE_PIC
712 ENABLE_SHARED
713 ENABLE_EMBED_STDCXX
714 ENABLE_TIMESTAMPS
715 ALL_TARGETS
716 TARGETS_TO_BUILD
717 LLVM_ENUM_TARGETS
718 LLVM_ENUM_ASM_PRINTERS
719 LLVM_ENUM_ASM_PARSERS
720 LLVM_ENUM_DISASSEMBLERS
721 OPTIMIZE_OPTION
722 EXTRA_OPTIONS
723 EXTRA_LD_OPTIONS
724 CLANG_SRC_ROOT
725 BINUTILS_INCDIR
726 ENABLE_TERMINFO
727 INTERNAL_PREFIX
728 ifGNUmake
729 LN_S
730 NM
731 CMP
732 CP
733 DATE
734 FIND
735 GREP
736 MKDIR
737 MV
738 RANLIB
739 AR
740 RM
741 SED
742 TAR
743 BINPWD
744 DOT
745 INSTALL_PROGRAM
746 INSTALL_SCRIPT
747 INSTALL_DATA
748 BZIP2
749 CAT
750 DOXYGEN
751 GROFF
752 GZIPBIN
753 PDFROFF
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 EGREP
762 NO_VARIADIC_MACROS
763 NO_MISSING_FIELD_INITIALIZERS
764 COVERED_SWITCH_DEFAULT
765 NO_MAYBE_UNINITIALIZED
766 NO_UNINITIALIZED
767 PYTHON
768 HAVE_DLOPEN
769 HAVE_TERMINFO
770 USE_OPROFILE
771 USE_INTEL_JITEVENTS
772 XML2CONFIG
773 LIBXML2_LIBS
774 LIBXML2_INC
775 CXXCPP
776 HAVE_PTHREAD
777 HAVE_LIBZ
778 HUGE_VAL_SANITY
779 MMAP_FILE
780 SHLIBEXT
781 LLVM_PREFIX
782 LLVM_BINDIR
783 LLVM_DATADIR
784 LLVM_DOCSDIR
785 LLVM_ETCDIR
786 LLVM_INCLUDEDIR
787 LLVM_INFODIR
788 LLVM_MANDIR
789 LLVM_CONFIGTIME
790 BINDINGS_TO_BUILD
791 ALL_BINDINGS
792 OCAML_LIBDIR
793 ENABLE_VISIBILITY_INLINES_HIDDEN
794 RPATH
795 RDYNAMIC
796 program_prefix
797 LIBOBJS
798 LTLIBOBJS'
799 ac_subst_files=''
800       ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 CPPFLAGS
807 CXX
808 CXXFLAGS
809 CCC
810 CPP
811 CXXCPP'
812 ac_subdirs_all='projects/test-suite
813 projects/llvm-test
814 projects/poolalloc
815 projects/llvm-poolalloc
816 projects/safecode
817 tools/polly'
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869   # If the previous option needs an argument, assign it.
870   if test -n "$ac_prev"; then
871     eval $ac_prev=\$ac_option
872     ac_prev=
873     continue
874   fi
876   case $ac_option in
877   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878   *)    ac_optarg=yes ;;
879   esac
881   # Accept the important Cygnus configure options, so we can diagnose typos.
883   case $ac_dashdash$ac_option in
884   --)
885     ac_dashdash=yes ;;
887   -bindir | --bindir | --bindi | --bind | --bin | --bi)
888     ac_prev=bindir ;;
889   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890     bindir=$ac_optarg ;;
892   -build | --build | --buil | --bui | --bu)
893     ac_prev=build_alias ;;
894   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895     build_alias=$ac_optarg ;;
897   -cache-file | --cache-file | --cache-fil | --cache-fi \
898   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899     ac_prev=cache_file ;;
900   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902     cache_file=$ac_optarg ;;
904   --config-cache | -C)
905     cache_file=config.cache ;;
907   -datadir | --datadir | --datadi | --datad)
908     ac_prev=datadir ;;
909   -datadir=* | --datadir=* | --datadi=* | --datad=*)
910     datadir=$ac_optarg ;;
912   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913   | --dataroo | --dataro | --datar)
914     ac_prev=datarootdir ;;
915   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917     datarootdir=$ac_optarg ;;
919   -disable-* | --disable-*)
920     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921     # Reject names that are not valid shell variable names.
922     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924    { (exit 1); exit 1; }; }
925     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926     eval enable_$ac_feature=no ;;
928   -docdir | --docdir | --docdi | --doc | --do)
929     ac_prev=docdir ;;
930   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931     docdir=$ac_optarg ;;
933   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934     ac_prev=dvidir ;;
935   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936     dvidir=$ac_optarg ;;
938   -enable-* | --enable-*)
939     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940     # Reject names that are not valid shell variable names.
941     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943    { (exit 1); exit 1; }; }
944     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945     eval enable_$ac_feature=\$ac_optarg ;;
947   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949   | --exec | --exe | --ex)
950     ac_prev=exec_prefix ;;
951   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953   | --exec=* | --exe=* | --ex=*)
954     exec_prefix=$ac_optarg ;;
956   -gas | --gas | --ga | --g)
957     # Obsolete; use --with-gas.
958     with_gas=yes ;;
960   -help | --help | --hel | --he | -h)
961     ac_init_help=long ;;
962   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963     ac_init_help=recursive ;;
964   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965     ac_init_help=short ;;
967   -host | --host | --hos | --ho)
968     ac_prev=host_alias ;;
969   -host=* | --host=* | --hos=* | --ho=*)
970     host_alias=$ac_optarg ;;
972   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973     ac_prev=htmldir ;;
974   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975   | --ht=*)
976     htmldir=$ac_optarg ;;
978   -includedir | --includedir | --includedi | --included | --include \
979   | --includ | --inclu | --incl | --inc)
980     ac_prev=includedir ;;
981   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982   | --includ=* | --inclu=* | --incl=* | --inc=*)
983     includedir=$ac_optarg ;;
985   -infodir | --infodir | --infodi | --infod | --info | --inf)
986     ac_prev=infodir ;;
987   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988     infodir=$ac_optarg ;;
990   -libdir | --libdir | --libdi | --libd)
991     ac_prev=libdir ;;
992   -libdir=* | --libdir=* | --libdi=* | --libd=*)
993     libdir=$ac_optarg ;;
995   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996   | --libexe | --libex | --libe)
997     ac_prev=libexecdir ;;
998   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999   | --libexe=* | --libex=* | --libe=*)
1000     libexecdir=$ac_optarg ;;
1002   -localedir | --localedir | --localedi | --localed | --locale)
1003     ac_prev=localedir ;;
1004   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005     localedir=$ac_optarg ;;
1007   -localstatedir | --localstatedir | --localstatedi | --localstated \
1008   | --localstate | --localstat | --localsta | --localst | --locals)
1009     ac_prev=localstatedir ;;
1010   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012     localstatedir=$ac_optarg ;;
1014   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015     ac_prev=mandir ;;
1016   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017     mandir=$ac_optarg ;;
1019   -nfp | --nfp | --nf)
1020     # Obsolete; use --without-fp.
1021     with_fp=no ;;
1023   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024   | --no-cr | --no-c | -n)
1025     no_create=yes ;;
1027   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029     no_recursion=yes ;;
1031   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033   | --oldin | --oldi | --old | --ol | --o)
1034     ac_prev=oldincludedir ;;
1035   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038     oldincludedir=$ac_optarg ;;
1040   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041     ac_prev=prefix ;;
1042   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043     prefix=$ac_optarg ;;
1045   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046   | --program-pre | --program-pr | --program-p)
1047     ac_prev=program_prefix ;;
1048   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050     program_prefix=$ac_optarg ;;
1052   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053   | --program-suf | --program-su | --program-s)
1054     ac_prev=program_suffix ;;
1055   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057     program_suffix=$ac_optarg ;;
1059   -program-transform-name | --program-transform-name \
1060   | --program-transform-nam | --program-transform-na \
1061   | --program-transform-n | --program-transform- \
1062   | --program-transform | --program-transfor \
1063   | --program-transfo | --program-transf \
1064   | --program-trans | --program-tran \
1065   | --progr-tra | --program-tr | --program-t)
1066     ac_prev=program_transform_name ;;
1067   -program-transform-name=* | --program-transform-name=* \
1068   | --program-transform-nam=* | --program-transform-na=* \
1069   | --program-transform-n=* | --program-transform-=* \
1070   | --program-transform=* | --program-transfor=* \
1071   | --program-transfo=* | --program-transf=* \
1072   | --program-trans=* | --program-tran=* \
1073   | --progr-tra=* | --program-tr=* | --program-t=*)
1074     program_transform_name=$ac_optarg ;;
1076   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077     ac_prev=pdfdir ;;
1078   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079     pdfdir=$ac_optarg ;;
1081   -psdir | --psdir | --psdi | --psd | --ps)
1082     ac_prev=psdir ;;
1083   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084     psdir=$ac_optarg ;;
1086   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087   | -silent | --silent | --silen | --sile | --sil)
1088     silent=yes ;;
1090   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091     ac_prev=sbindir ;;
1092   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093   | --sbi=* | --sb=*)
1094     sbindir=$ac_optarg ;;
1096   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098   | --sharedst | --shareds | --shared | --share | --shar \
1099   | --sha | --sh)
1100     ac_prev=sharedstatedir ;;
1101   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104   | --sha=* | --sh=*)
1105     sharedstatedir=$ac_optarg ;;
1107   -site | --site | --sit)
1108     ac_prev=site ;;
1109   -site=* | --site=* | --sit=*)
1110     site=$ac_optarg ;;
1112   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113     ac_prev=srcdir ;;
1114   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115     srcdir=$ac_optarg ;;
1117   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118   | --syscon | --sysco | --sysc | --sys | --sy)
1119     ac_prev=sysconfdir ;;
1120   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122     sysconfdir=$ac_optarg ;;
1124   -target | --target | --targe | --targ | --tar | --ta | --t)
1125     ac_prev=target_alias ;;
1126   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127     target_alias=$ac_optarg ;;
1129   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130     verbose=yes ;;
1132   -version | --version | --versio | --versi | --vers | -V)
1133     ac_init_version=: ;;
1135   -with-* | --with-*)
1136     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139       { echo "$as_me: error: invalid package name: $ac_package" >&2
1140    { (exit 1); exit 1; }; }
1141     ac_package=`echo $ac_package| sed 's/-/_/g'`
1142     eval with_$ac_package=\$ac_optarg ;;
1144   -without-* | --without-*)
1145     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148       { echo "$as_me: error: invalid package name: $ac_package" >&2
1149    { (exit 1); exit 1; }; }
1150     ac_package=`echo $ac_package | sed 's/-/_/g'`
1151     eval with_$ac_package=no ;;
1153   --x)
1154     # Obsolete; use --with-x.
1155     with_x=yes ;;
1157   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158   | --x-incl | --x-inc | --x-in | --x-i)
1159     ac_prev=x_includes ;;
1160   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162     x_includes=$ac_optarg ;;
1164   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166     ac_prev=x_libraries ;;
1167   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169     x_libraries=$ac_optarg ;;
1171   -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173    { (exit 1); exit 1; }; }
1174     ;;
1176   *=*)
1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181    { (exit 1); exit 1; }; }
1182     eval $ac_envvar=\$ac_optarg
1183     export $ac_envvar ;;
1185   *)
1186     # FIXME: should be removed in autoconf 3.0.
1187     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191     ;;
1193   esac
1194 done
1196 if test -n "$ac_prev"; then
1197   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198   { echo "$as_me: error: missing argument to $ac_option" >&2
1199    { (exit 1); exit 1; }; }
1200 fi
1202 # Be sure to have absolute directory names.
1203 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204                 datadir sysconfdir sharedstatedir localstatedir includedir \
1205                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206                 libdir localedir mandir
1207 do
1208   eval ac_val=\$$ac_var
1209   case $ac_val in
1210     [\\/$]* | ?:[\\/]* )  continue;;
1211     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212   esac
1213   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214    { (exit 1); exit 1; }; }
1215 done
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226   if test "x$build_alias" = x; then
1227     cross_compiling=maybe
1228     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229     If a cross compiler is detected then cross compile mode will be used." >&2
1230   elif test "x$build_alias" != "x$host_alias"; then
1231     cross_compiling=yes
1232   fi
1233 fi
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244   { echo "$as_me: error: Working directory cannot be determined" >&2
1245    { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247   { echo "$as_me: error: pwd does not report name of working directory" >&2
1248    { (exit 1); exit 1; }; }
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253   ac_srcdir_defaulted=yes
1254   # Try the directory containing this script, then the parent directory.
1255   ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257          X"$0" : 'X\(//\)[^/]' \| \
1258          X"$0" : 'X\(//\)$' \| \
1259          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 echo X"$0" |
1261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\/\)[^/].*/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\).*/{
1274             s//\1/
1275             q
1276           }
1277           s/.*/./; q'`
1278   srcdir=$ac_confdir
1279   if test ! -r "$srcdir/$ac_unique_file"; then
1280     srcdir=..
1281   fi
1282 else
1283   ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288    { (exit 1); exit 1; }; }
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293    { (exit 1); exit 1; }; }
1294         pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297   srcdir=.
1298 fi
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_env_${ac_var}_value=\$${ac_var}
1308   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316   # Omit some internal or obsolete options to make the list less imposing.
1317   # This message is too long to be a string in the A/UX 3.1 sh.
1318   cat <<_ACEOF
1319 \`configure' configures LLVM 3.6.0svn to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE.  See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1328 Configuration:
1329   -h, --help              display this help and exit
1330       --help=short        display options specific to this package
1331       --help=recursive    display the short help of all the included packages
1332   -V, --version           display version information and exit
1333   -q, --quiet, --silent   do not print \`checking...' messages
1334       --cache-file=FILE   cache test results in FILE [disabled]
1335   -C, --config-cache      alias for \`--cache-file=config.cache'
1336   -n, --no-create         do not create output files
1337       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340   --prefix=PREFIX         install architecture-independent files in PREFIX
1341                           [$ac_default_prefix]
1342   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                           [PREFIX]
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353   --bindir=DIR           user executables [EPREFIX/bin]
1354   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1355   --libexecdir=DIR       program executables [EPREFIX/libexec]
1356   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1357   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1358   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1359   --libdir=DIR           object code libraries [EPREFIX/lib]
1360   --includedir=DIR       C header files [PREFIX/include]
1361   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1362   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1363   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1364   --infodir=DIR          info documentation [DATAROOTDIR/info]
1365   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1366   --mandir=DIR           man documentation [DATAROOTDIR/man]
1367   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1368   --htmldir=DIR          html documentation [DOCDIR]
1369   --dvidir=DIR           dvi documentation [DOCDIR]
1370   --pdfdir=DIR           pdf documentation [DOCDIR]
1371   --psdir=DIR            ps documentation [DOCDIR]
1372 _ACEOF
1374   cat <<\_ACEOF
1376 System types:
1377   --build=BUILD     configure for building on BUILD [guessed]
1378   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379   --target=TARGET   configure for building compilers for TARGET [HOST]
1380 _ACEOF
1381 fi
1383 if test -n "$ac_init_help"; then
1384   case $ac_init_help in
1385      short | recursive ) echo "Configuration of LLVM 3.6.0svn:";;
1386    esac
1387   cat <<\_ACEOF
1389 Optional Features:
1390   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1392   --enable-polly          Use polly if available (default is YES)
1393   --enable-libcpp         Use libc++ if available (default is NO)
1394   --enable-compiler-version-checks
1395                           Check the version of the host compiler (default is
1396                           YES)
1397   --enable-cxx1y          Use c++1y if available (default is NO)
1398   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1399   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1400   --enable-clang-plugin-support
1401                           Enable plugin support in clang (default is YES)
1402   --enable-clang-static-analyzer
1403                           Enable building of clang Static Analyzer (default is
1404                           YES)
1405   --enable-optimized      Compile with optimizations enabled (default is NO)
1406   --enable-profiling      Compile with profiling enabled (default is NO)
1407   --enable-assertions     Compile with assertion checks enabled (default is
1408                           YES)
1409   --enable-werror         Compile with -Werror enabled (default is NO)
1410   --enable-expensive-checks
1411                           Compile with expensive debug checks enabled (default
1412                           is NO)
1413   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1414                           NO)
1415   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1416                           optimization is on and YES if it's off)
1417   --enable-keep-symbols   Do not strip installed executables)
1418   --enable-jit            Enable Just In Time Compiling (default is YES)
1419   --enable-docs           Build documents (default is YES)
1420   --enable-doxygen        Build doxygen documentation (default is NO)
1421   --enable-threads        Use threads if available (default is YES)
1422   --enable-pthreads       Use pthreads if available (default is YES)
1423   --enable-zlib           Use zlib for compression/decompression if available
1424                           (default is YES)
1425   --enable-pic            Build LLVM with Position Independent Code (default
1426                           is YES)
1427   --enable-shared         Build a shared library and link tools against it
1428                           (default is NO)
1429   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1430                           Win32 DLL (default is NO)
1431   --enable-timestamps     Enable embedding timestamp information in build
1432                           (default is YES)
1433   --enable-backtraces     Enable embedding backtraces on crash (default is
1434                           YES)
1435   --enable-crash-overrides
1436                           Enable crash handling overrides (default is YES)
1437   --enable-targets        Build specific host targets: all or
1438                           target1,target2,... Valid targets are: host, x86,
1439                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1440                           hexagon, xcore, msp430, nvptx, systemz, r600, and
1441                           cpp (default=all)
1442   --enable-experimental-targets
1443                           Build experimental host targets: disable or
1444                           target1,target2,... (default=disable)
1445   --enable-bindings       Build specific language bindings:
1446                           all,auto,none,{binding-name} (default=auto)
1447   --enable-terminfo       Query the terminfo database if available (default is
1448                           YES)
1449   --enable-libedit        Use libedit if available (default is YES)
1450   --enable-libffi         Check for the presence of libffi (default is NO)
1452 Optional Packages:
1453   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1454   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1455   --with-optimize-option  Select the compiler options to use for optimized
1456                           builds
1457   --with-extra-options    Specify additional options to compile LLVM with
1458   --with-extra-ld-options Specify additional options to link LLVM with
1459   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1460                           is stdlib)
1461   --with-clang-srcdir     Directory to the out-of-tree Clang source
1462   --with-clang-resource-dir
1463                           Relative directory from the Clang binary for
1464                           resource files
1465   --with-c-include-dirs   Colon separated list of directories clang will
1466                           search for headers
1467   --with-gcc-toolchain    Directory where gcc is installed.
1468   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1469   --with-binutils-include Specify path to binutils/include/ containing
1470                           plugin-api.h file for gold plugin.
1471   --with-bug-report-url   Specify the URL where bug reports should be
1472                           submitted (default=http://llvm.org/bugs/)
1473   --with-internal-prefix  Installation directory for internal files
1474   --with-python           path to python
1475   --with-oprofile=<prefix>
1476                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1477   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1480 Some influential environment variables:
1481   CC          C compiler command
1482   CFLAGS      C compiler flags
1483   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1484               nonstandard directory <lib dir>
1485   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486               you have headers in a nonstandard directory <include dir>
1487   CXX         C++ compiler command
1488   CXXFLAGS    C++ compiler flags
1489   CPP         C preprocessor
1490   CXXCPP      C++ preprocessor
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to <http://llvm.org/bugs/>.
1496 _ACEOF
1497 ac_status=$?
1498 fi
1500 if test "$ac_init_help" = "recursive"; then
1501   # If there are subdirs, report their specific --help.
1502   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503     test -d "$ac_dir" || continue
1504     ac_builddir=.
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510   # A ".." for each directory in $ac_dir_suffix.
1511   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512   case $ac_top_builddir_sub in
1513   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515   esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1522 case $srcdir in
1523   .)  # We are building in place.
1524     ac_srcdir=.
1525     ac_top_srcdir=$ac_top_builddir_sub
1526     ac_abs_top_srcdir=$ac_pwd ;;
1527   [\\/]* | ?:[\\/]* )  # Absolute name.
1528     ac_srcdir=$srcdir$ac_dir_suffix;
1529     ac_top_srcdir=$srcdir
1530     ac_abs_top_srcdir=$srcdir ;;
1531   *) # Relative name.
1532     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533     ac_top_srcdir=$ac_top_build_prefix$srcdir
1534     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538     cd "$ac_dir" || { ac_status=$?; continue; }
1539     # Check for guested configure.
1540     if test -f "$ac_srcdir/configure.gnu"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543     elif test -f "$ac_srcdir/configure"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure" --help=recursive
1546     else
1547       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548     fi || ac_status=$?
1549     cd "$ac_pwd" || { ac_status=$?; break; }
1550   done
1551 fi
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555   cat <<\_ACEOF
1556 LLVM configure 3.6.0svn
1557 generated by GNU Autoconf 2.60
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1564 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1565 _ACEOF
1566   exit
1567 fi
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1572 It was created by LLVM $as_me 3.6.0svn, which was
1573 generated by GNU Autoconf 2.60.  Invocation command line was
1575   $ $0 $@
1577 _ACEOF
1578 exec 5>>config.log
1580 cat <<_ASUNAME
1581 ## --------- ##
1582 ## Platform. ##
1583 ## --------- ##
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1594 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1595 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1598 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1599 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1600 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1602 _ASUNAME
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1606 do
1607   IFS=$as_save_IFS
1608   test -z "$as_dir" && as_dir=.
1609   echo "PATH: $as_dir"
1610 done
1611 IFS=$as_save_IFS
1613 } >&5
1615 cat >&5 <<_ACEOF
1618 ## ----------- ##
1619 ## Core tests. ##
1620 ## ----------- ##
1622 _ACEOF
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_configure_args=
1631 ac_configure_args0=
1632 ac_configure_args1=
1633 ac_must_keep_next=false
1634 for ac_pass in 1 2
1635 do
1636   for ac_arg
1637   do
1638     case $ac_arg in
1639     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641     | -silent | --silent | --silen | --sile | --sil)
1642       continue ;;
1643     *\'*)
1644       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1645     esac
1646     case $ac_pass in
1647     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1648     2)
1649       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650       if test $ac_must_keep_next = true; then
1651         ac_must_keep_next=false # Got value, back to normal.
1652       else
1653         case $ac_arg in
1654           *=* | --config-cache | -C | -disable-* | --disable-* \
1655           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657           | -with-* | --with-* | -without-* | --without-* | --x)
1658             case "$ac_configure_args0 " in
1659               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660             esac
1661             ;;
1662           -* ) ac_must_keep_next=true ;;
1663         esac
1664       fi
1665       ac_configure_args="$ac_configure_args '$ac_arg'"
1666       ;;
1667     esac
1668   done
1669 done
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log.  We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679   # Save into config.log some information that might help in debugging.
1680   {
1681     echo
1683     cat <<\_ASBOX
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1687 _ASBOX
1688     echo
1689     # The following way of writing the cache mishandles newlines in values,
1691   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692     eval ac_val=\$$ac_var
1693     case $ac_val in #(
1694     *${as_nl}*)
1695       case $ac_var in #(
1696       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1698       esac
1699       case $ac_var in #(
1700       _ | IFS | as_nl) ;; #(
1701       *) $as_unset $ac_var ;;
1702       esac ;;
1703     esac
1704   done
1705   (set) 2>&1 |
1706     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707     *${as_nl}ac_space=\ *)
1708       sed -n \
1709         "s/'\''/'\''\\\\'\'''\''/g;
1710           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711       ;; #(
1712     *)
1713       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1714       ;;
1715     esac |
1716     sort
1718     echo
1720     cat <<\_ASBOX
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1724 _ASBOX
1725     echo
1726     for ac_var in $ac_subst_vars
1727     do
1728       eval ac_val=\$$ac_var
1729       case $ac_val in
1730       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731       esac
1732       echo "$ac_var='\''$ac_val'\''"
1733     done | sort
1734     echo
1736     if test -n "$ac_subst_files"; then
1737       cat <<\_ASBOX
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1741 _ASBOX
1742       echo
1743       for ac_var in $ac_subst_files
1744       do
1745         eval ac_val=\$$ac_var
1746         case $ac_val in
1747         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748         esac
1749         echo "$ac_var='\''$ac_val'\''"
1750       done | sort
1751       echo
1752     fi
1754     if test -s confdefs.h; then
1755       cat <<\_ASBOX
1756 ## ----------- ##
1757 ## confdefs.h. ##
1758 ## ----------- ##
1759 _ASBOX
1760       echo
1761       cat confdefs.h
1762       echo
1763     fi
1764     test "$ac_signal" != 0 &&
1765       echo "$as_me: caught signal $ac_signal"
1766     echo "$as_me: exit $exit_status"
1767   } >&5
1768   rm -f core *.core core.conftest.* &&
1769     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1770     exit $exit_status
1771 ' 0
1772 for ac_signal in 1 2 13 15; do
1773   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 done
1775 ac_signal=0
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1780 # Predefined preprocessor variables.
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 _ACEOF
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 _ACEOF
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 _ACEOF
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 _ACEOF
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 _ACEOF
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810   set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1813 else
1814   set x "$ac_default_prefix/share/config.site" \
1815         "$ac_default_prefix/etc/config.site"
1816 fi
1817 shift
1818 for ac_site_file
1819 do
1820   if test -r "$ac_site_file"; then
1821     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823     sed 's/^/| /' "$ac_site_file" >&5
1824     . "$ac_site_file"
1825   fi
1826 done
1828 if test -r "$cache_file"; then
1829   # Some versions of bash will fail to source /dev/null (special
1830   # files actually), so we avoid doing that.
1831   if test -f "$cache_file"; then
1832     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1834     case $cache_file in
1835       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836       *)                      . "./$cache_file";;
1837     esac
1838   fi
1839 else
1840   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1842   >$cache_file
1843 fi
1845 # Check that the precious variables saved in the cache have kept the same
1846 # value.
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850   eval ac_new_set=\$ac_env_${ac_var}_set
1851   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852   eval ac_new_val=\$ac_env_${ac_var}_value
1853   case $ac_old_set,$ac_new_set in
1854     set,)
1855       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857       ac_cache_corrupted=: ;;
1858     ,set)
1859       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861       ac_cache_corrupted=: ;;
1862     ,);;
1863     *)
1864       if test "x$ac_old_val" != "x$ac_new_val"; then
1865         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1868 echo "$as_me:   former value:  $ac_old_val" >&2;}
1869         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1870 echo "$as_me:   current value: $ac_new_val" >&2;}
1871         ac_cache_corrupted=:
1872       fi;;
1873   esac
1874   # Pass precious variables to config.status.
1875   if test "$ac_new_set" = set; then
1876     case $ac_new_val in
1877     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878     *) ac_arg=$ac_var=$ac_new_val ;;
1879     esac
1880     case " $ac_configure_args " in
1881       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1882       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883     esac
1884   fi
1885 done
1886 if $ac_cache_corrupted; then
1887   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891    { (exit 1); exit 1; }; }
1892 fi
1918 ac_ext=c
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926 LLVM_VERSION_MAJOR=3
1927 LLVM_VERSION_MINOR=6
1928 LLVM_VERSION_PATCH=0
1929 LLVM_VERSION_SUFFIX=svn
1932 cat >>confdefs.h <<_ACEOF
1933 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1934 _ACEOF
1937 cat >>confdefs.h <<_ACEOF
1938 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1939 _ACEOF
1942 cat >>confdefs.h <<_ACEOF
1943 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1944 _ACEOF
1952 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1960 ac_aux_dir=
1961 for ac_dir in autoconf "$srcdir"/autoconf; do
1962   if test -f "$ac_dir/install-sh"; then
1963     ac_aux_dir=$ac_dir
1964     ac_install_sh="$ac_aux_dir/install-sh -c"
1965     break
1966   elif test -f "$ac_dir/install.sh"; then
1967     ac_aux_dir=$ac_dir
1968     ac_install_sh="$ac_aux_dir/install.sh -c"
1969     break
1970   elif test -f "$ac_dir/shtool"; then
1971     ac_aux_dir=$ac_dir
1972     ac_install_sh="$ac_aux_dir/shtool install -c"
1973     break
1974   fi
1975 done
1976 if test -z "$ac_aux_dir"; then
1977   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1979    { (exit 1); exit 1; }; }
1980 fi
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1992 if test ${srcdir} != "." ; then
1993   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1994     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1995 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1996    { (exit 1); exit 1; }; }
1997   fi
1998 fi
2000 : ${CFLAGS=}
2001 : ${CXXFLAGS=}
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009   for ac_prog in clang gcc
2010   do
2011     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   if test -n "$CC"; then
2019   ac_cv_prog_CC="$CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   for ac_exec_ext in '' $ac_executable_extensions; do
2027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040   { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2042 else
2043   { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2048     test -n "$CC" && break
2049   done
2050 fi
2051 if test -z "$CC"; then
2052   ac_ct_CC=$CC
2053   for ac_prog in clang gcc
2054 do
2055   # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   if test -n "$ac_ct_CC"; then
2063   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068   IFS=$as_save_IFS
2069   test -z "$as_dir" && as_dir=.
2070   for ac_exec_ext in '' $ac_executable_extensions; do
2071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2072     ac_cv_prog_ac_ct_CC="$ac_prog"
2073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074     break 2
2075   fi
2076 done
2077 done
2078 IFS=$as_save_IFS
2080 fi
2081 fi
2082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085 echo "${ECHO_T}$ac_ct_CC" >&6; }
2086 else
2087   { echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6; }
2089 fi
2092   test -n "$ac_ct_CC" && break
2093 done
2095   if test "x$ac_ct_CC" = x; then
2096     CC=""
2097   else
2098     case $cross_compiling:$ac_tool_warned in
2099 yes:)
2100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2101 whose name does not start with the host triplet.  If you think this
2102 configuration is useful to you, please write to autoconf@gnu.org." >&5
2103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2104 whose name does not start with the host triplet.  If you think this
2105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2106 ac_tool_warned=yes ;;
2107 esac
2108     CC=$ac_ct_CC
2109   fi
2110 fi
2113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details." >&5
2115 echo "$as_me: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&2;}
2117    { (exit 1); exit 1; }; }
2119 # Provide some information about the compiler.
2120 echo "$as_me:$LINENO: checking for C compiler version" >&5
2121 ac_compiler=`set X $ac_compile; echo $2`
2122 { (ac_try="$ac_compiler --version >&5"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128   (eval "$ac_compiler --version >&5") 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132 { (ac_try="$ac_compiler -v >&5"
2133 case "(($ac_try" in
2134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135   *) ac_try_echo=$ac_try;;
2136 esac
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138   (eval "$ac_compiler -v >&5") 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142 { (ac_try="$ac_compiler -V >&5"
2143 case "(($ac_try" in
2144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145   *) ac_try_echo=$ac_try;;
2146 esac
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148   (eval "$ac_compiler -V >&5") 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); }
2153 cat >conftest.$ac_ext <<_ACEOF
2154 /* confdefs.h.  */
2155 _ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h.  */
2160 int
2161 main ()
2164   ;
2165   return 0;
2167 _ACEOF
2168 ac_clean_files_save=$ac_clean_files
2169 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170 # Try to create an executable without -o first, disregard a.out.
2171 # It will help us diagnose broken compilers, and finding out an intuition
2172 # of exeext.
2173 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2174 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2177 # List of possible output files, starting from the most likely.
2178 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2179 # only as a last resort.  b.out is created by i960 compilers.
2180 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2182 # The IRIX 6 linker writes into existing files which may not be
2183 # executable, retaining their permissions.  Remove them first so a
2184 # subsequent execution test works.
2185 ac_rmfiles=
2186 for ac_file in $ac_files
2187 do
2188   case $ac_file in
2189     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2190     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2191   esac
2192 done
2193 rm -f $ac_rmfiles
2195 if { (ac_try="$ac_link_default"
2196 case "(($ac_try" in
2197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198   *) ac_try_echo=$ac_try;;
2199 esac
2200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2201   (eval "$ac_link_default") 2>&5
2202   ac_status=$?
2203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204   (exit $ac_status); }; then
2205   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2207 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2208 # so that the user can short-circuit this test for compilers unknown to
2209 # Autoconf.
2210 for ac_file in $ac_files
2211 do
2212   test -f "$ac_file" || continue
2213   case $ac_file in
2214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2215         ;;
2216     [ab].out )
2217         # We found the default executable, but exeext='' is most
2218         # certainly right.
2219         break;;
2220     *.* )
2221         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2222         then :; else
2223            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224         fi
2225         # We set ac_cv_exeext here because the later test for it is not
2226         # safe: cross compilers may not add the suffix if given an `-o'
2227         # argument, so we may need to know it at that point already.
2228         # Even if this section looks crufty: it has the advantage of
2229         # actually working.
2230         break;;
2231     * )
2232         break;;
2233   esac
2234 done
2235 test "$ac_cv_exeext" = no && ac_cv_exeext=
2237 else
2238   echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2241 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&2;}
2245    { (exit 77); exit 77; }; }
2246 fi
2248 ac_exeext=$ac_cv_exeext
2249 { echo "$as_me:$LINENO: result: $ac_file" >&5
2250 echo "${ECHO_T}$ac_file" >&6; }
2252 # Check that the compiler produces executables we can run.  If not, either
2253 # the compiler is broken, or we cross compile.
2254 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2255 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2256 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2257 # If not cross compiling, check that we can run a simple program.
2258 if test "$cross_compiling" != yes; then
2259   if { ac_try='./$ac_file'
2260   { (case "(($ac_try" in
2261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262   *) ac_try_echo=$ac_try;;
2263 esac
2264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265   (eval "$ac_try") 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; }; then
2269     cross_compiling=no
2270   else
2271     if test "$cross_compiling" = maybe; then
2272         cross_compiling=yes
2273     else
2274         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2275 If you meant to cross compile, use \`--host'.
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot run C compiled programs.
2278 If you meant to cross compile, use \`--host'.
2279 See \`config.log' for more details." >&2;}
2280    { (exit 1); exit 1; }; }
2281     fi
2282   fi
2283 fi
2284 { echo "$as_me:$LINENO: result: yes" >&5
2285 echo "${ECHO_T}yes" >&6; }
2287 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2288 ac_clean_files=$ac_clean_files_save
2289 # Check that the compiler produces executables we can run.  If not, either
2290 # the compiler is broken, or we cross compile.
2291 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2292 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2293 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2294 echo "${ECHO_T}$cross_compiling" >&6; }
2296 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2297 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2298 if { (ac_try="$ac_link"
2299 case "(($ac_try" in
2300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301   *) ac_try_echo=$ac_try;;
2302 esac
2303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2304   (eval "$ac_link") 2>&5
2305   ac_status=$?
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); }; then
2308   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2309 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2310 # work properly (i.e., refer to `conftest.exe'), while it won't with
2311 # `rm'.
2312 for ac_file in conftest.exe conftest conftest.*; do
2313   test -f "$ac_file" || continue
2314   case $ac_file in
2315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2316     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2317           break;;
2318     * ) break;;
2319   esac
2320 done
2321 else
2322   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&2;}
2326    { (exit 1); exit 1; }; }
2327 fi
2329 rm -f conftest$ac_cv_exeext
2330 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2331 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2333 rm -f conftest.$ac_ext
2334 EXEEXT=$ac_cv_exeext
2335 ac_exeext=$EXEEXT
2336 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2337 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2338 if test "${ac_cv_objext+set}" = set; then
2339   echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341   cat >conftest.$ac_ext <<_ACEOF
2342 /* confdefs.h.  */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h.  */
2348 int
2349 main ()
2352   ;
2353   return 0;
2355 _ACEOF
2356 rm -f conftest.o conftest.obj
2357 if { (ac_try="$ac_compile"
2358 case "(($ac_try" in
2359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360   *) ac_try_echo=$ac_try;;
2361 esac
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363   (eval "$ac_compile") 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }; then
2367   for ac_file in conftest.o conftest.obj conftest.*; do
2368   test -f "$ac_file" || continue;
2369   case $ac_file in
2370     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2371     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2372        break;;
2373   esac
2374 done
2375 else
2376   echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&2;}
2383    { (exit 1); exit 1; }; }
2384 fi
2386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2387 fi
2388 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389 echo "${ECHO_T}$ac_cv_objext" >&6; }
2390 OBJEXT=$ac_cv_objext
2391 ac_objext=$OBJEXT
2392 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2404 int
2405 main ()
2407 #ifndef __GNUC__
2408        choke me
2409 #endif
2411   ;
2412   return 0;
2414 _ACEOF
2415 rm -f conftest.$ac_objext
2416 if { (ac_try="$ac_compile"
2417 case "(($ac_try" in
2418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419   *) ac_try_echo=$ac_try;;
2420 esac
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422   (eval "$ac_compile") 2>conftest.er1
2423   ac_status=$?
2424   grep -v '^ *+' conftest.er1 >conftest.err
2425   rm -f conftest.er1
2426   cat conftest.err >&5
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); } &&
2429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2430   { (case "(($ac_try" in
2431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432   *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435   (eval "$ac_try") 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; } &&
2439          { ac_try='test -s conftest.$ac_objext'
2440   { (case "(($ac_try" in
2441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442   *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445   (eval "$ac_try") 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; }; then
2449   ac_compiler_gnu=yes
2450 else
2451   echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2454         ac_compiler_gnu=no
2455 fi
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2460 fi
2461 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2462 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2463 GCC=`test $ac_compiler_gnu = yes && echo yes`
2464 ac_test_CFLAGS=${CFLAGS+set}
2465 ac_save_CFLAGS=$CFLAGS
2466 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2467 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_cc_g+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471   ac_save_c_werror_flag=$ac_c_werror_flag
2472    ac_c_werror_flag=yes
2473    ac_cv_prog_cc_g=no
2474    CFLAGS="-g"
2475    cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h.  */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h.  */
2482 int
2483 main ()
2486   ;
2487   return 0;
2489 _ACEOF
2490 rm -f conftest.$ac_objext
2491 if { (ac_try="$ac_compile"
2492 case "(($ac_try" in
2493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494   *) ac_try_echo=$ac_try;;
2495 esac
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497   (eval "$ac_compile") 2>conftest.er1
2498   ac_status=$?
2499   grep -v '^ *+' conftest.er1 >conftest.err
2500   rm -f conftest.er1
2501   cat conftest.err >&5
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); } &&
2504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2505   { (case "(($ac_try" in
2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507   *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510   (eval "$ac_try") 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; } &&
2514          { ac_try='test -s conftest.$ac_objext'
2515   { (case "(($ac_try" in
2516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517   *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520   (eval "$ac_try") 2>&5
2521   ac_status=$?
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); }; }; then
2524   ac_cv_prog_cc_g=yes
2525 else
2526   echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2529         CFLAGS=""
2530       cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h.  */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h.  */
2537 int
2538 main ()
2541   ;
2542   return 0;
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (ac_try="$ac_compile"
2547 case "(($ac_try" in
2548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549   *) ac_try_echo=$ac_try;;
2550 esac
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552   (eval "$ac_compile") 2>conftest.er1
2553   ac_status=$?
2554   grep -v '^ *+' conftest.er1 >conftest.err
2555   rm -f conftest.er1
2556   cat conftest.err >&5
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); } &&
2559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2560   { (case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_try") 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; } &&
2569          { ac_try='test -s conftest.$ac_objext'
2570   { (case "(($ac_try" in
2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572   *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575   (eval "$ac_try") 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); }; }; then
2579   :
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2584         ac_c_werror_flag=$ac_save_c_werror_flag
2585          CFLAGS="-g"
2586          cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h.  */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h.  */
2593 int
2594 main ()
2597   ;
2598   return 0;
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2603 case "(($ac_try" in
2604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605   *) ac_try_echo=$ac_try;;
2606 esac
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608   (eval "$ac_compile") 2>conftest.er1
2609   ac_status=$?
2610   grep -v '^ *+' conftest.er1 >conftest.err
2611   rm -f conftest.er1
2612   cat conftest.err >&5
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); } &&
2615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616   { (case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621   (eval "$ac_try") 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; } &&
2625          { ac_try='test -s conftest.$ac_objext'
2626   { (case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631   (eval "$ac_try") 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   ac_cv_prog_cc_g=yes
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2641 fi
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 fi
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 fi
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650    ac_c_werror_flag=$ac_save_c_werror_flag
2651 fi
2652 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2654 if test "$ac_test_CFLAGS" = set; then
2655   CFLAGS=$ac_save_CFLAGS
2656 elif test $ac_cv_prog_cc_g = yes; then
2657   if test "$GCC" = yes; then
2658     CFLAGS="-g -O2"
2659   else
2660     CFLAGS="-g"
2661   fi
2662 else
2663   if test "$GCC" = yes; then
2664     CFLAGS="-O2"
2665   else
2666     CFLAGS=
2667   fi
2668 fi
2669 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2670 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_cc_c89+set}" = set; then
2672   echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674   ac_cv_prog_cc_c89=no
2675 ac_save_CC=$CC
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682 #include <stdarg.h>
2683 #include <stdio.h>
2684 #include <sys/types.h>
2685 #include <sys/stat.h>
2686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2687 struct buf { int x; };
2688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2689 static char *e (p, i)
2690      char **p;
2691      int i;
2693   return p[i];
2695 static char *f (char * (*g) (char **, int), char **p, ...)
2697   char *s;
2698   va_list v;
2699   va_start (v,p);
2700   s = g (p, va_arg (v,int));
2701   va_end (v);
2702   return s;
2705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2706    function prototypes and stuff, but not '\xHH' hex character constants.
2707    These don't provoke an error unfortunately, instead are silently treated
2708    as 'x'.  The following induces an error, until -std is added to get
2709    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2710    array size at least.  It's necessary to write '\x00'==0 to get something
2711    that's true only with -std.  */
2712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2714 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2715    inside strings and character constants.  */
2716 #define FOO(x) 'x'
2717 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2719 int test (int i, double x);
2720 struct s1 {int (*f) (int a);};
2721 struct s2 {int (*f) (double a);};
2722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2723 int argc;
2724 char **argv;
2725 int
2726 main ()
2728 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2729   ;
2730   return 0;
2732 _ACEOF
2733 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2734         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2735 do
2736   CC="$ac_save_CC $ac_arg"
2737   rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2739 case "(($ac_try" in
2740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741   *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744   (eval "$ac_compile") 2>conftest.er1
2745   ac_status=$?
2746   grep -v '^ *+' conftest.er1 >conftest.err
2747   rm -f conftest.er1
2748   cat conftest.err >&5
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); } &&
2751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2752   { (case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_try") 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; } &&
2761          { ac_try='test -s conftest.$ac_objext'
2762   { (case "(($ac_try" in
2763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764   *) ac_try_echo=$ac_try;;
2765 esac
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767   (eval "$ac_try") 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }; }; then
2771   ac_cv_prog_cc_c89=$ac_arg
2772 else
2773   echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2777 fi
2779 rm -f core conftest.err conftest.$ac_objext
2780   test "x$ac_cv_prog_cc_c89" != "xno" && break
2781 done
2782 rm -f conftest.$ac_ext
2783 CC=$ac_save_CC
2785 fi
2786 # AC_CACHE_VAL
2787 case "x$ac_cv_prog_cc_c89" in
2788   x)
2789     { echo "$as_me:$LINENO: result: none needed" >&5
2790 echo "${ECHO_T}none needed" >&6; } ;;
2791   xno)
2792     { echo "$as_me:$LINENO: result: unsupported" >&5
2793 echo "${ECHO_T}unsupported" >&6; } ;;
2794   *)
2795     CC="$CC $ac_cv_prog_cc_c89"
2796     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2797 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2798 esac
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807 ac_ext=cpp
2808 ac_cpp='$CXXCPP $CPPFLAGS'
2809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2812 if test -z "$CXX"; then
2813   if test -n "$CCC"; then
2814     CXX=$CCC
2815   else
2816     if test -n "$ac_tool_prefix"; then
2817   for ac_prog in clang++ g++
2818   do
2819     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_CXX+set}" = set; then
2824   echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826   if test -n "$CXX"; then
2827   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832   IFS=$as_save_IFS
2833   test -z "$as_dir" && as_dir=.
2834   for ac_exec_ext in '' $ac_executable_extensions; do
2835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838     break 2
2839   fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2844 fi
2845 fi
2846 CXX=$ac_cv_prog_CXX
2847 if test -n "$CXX"; then
2848   { echo "$as_me:$LINENO: result: $CXX" >&5
2849 echo "${ECHO_T}$CXX" >&6; }
2850 else
2851   { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2853 fi
2856     test -n "$CXX" && break
2857   done
2858 fi
2859 if test -z "$CXX"; then
2860   ac_ct_CXX=$CXX
2861   for ac_prog in clang++ g++
2862 do
2863   # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy $ac_prog; ac_word=$2
2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2868   echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870   if test -n "$ac_ct_CXX"; then
2871   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876   IFS=$as_save_IFS
2877   test -z "$as_dir" && as_dir=.
2878   for ac_exec_ext in '' $ac_executable_extensions; do
2879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2880     ac_cv_prog_ac_ct_CXX="$ac_prog"
2881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882     break 2
2883   fi
2884 done
2885 done
2886 IFS=$as_save_IFS
2888 fi
2889 fi
2890 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2891 if test -n "$ac_ct_CXX"; then
2892   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2893 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2894 else
2895   { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2897 fi
2900   test -n "$ac_ct_CXX" && break
2901 done
2903   if test "x$ac_ct_CXX" = x; then
2904     CXX="g++"
2905   else
2906     case $cross_compiling:$ac_tool_warned in
2907 yes:)
2908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2909 whose name does not start with the host triplet.  If you think this
2910 configuration is useful to you, please write to autoconf@gnu.org." >&5
2911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2912 whose name does not start with the host triplet.  If you think this
2913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2914 ac_tool_warned=yes ;;
2915 esac
2916     CXX=$ac_ct_CXX
2917   fi
2918 fi
2920   fi
2921 fi
2922 # Provide some information about the compiler.
2923 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2924 ac_compiler=`set X $ac_compile; echo $2`
2925 { (ac_try="$ac_compiler --version >&5"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_compiler --version >&5") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }
2935 { (ac_try="$ac_compiler -v >&5"
2936 case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_compiler -v >&5") 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }
2945 { (ac_try="$ac_compiler -V >&5"
2946 case "(($ac_try" in
2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948   *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951   (eval "$ac_compiler -V >&5") 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }
2956 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2957 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2958 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2959   echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961   cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h.  */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h.  */
2968 int
2969 main ()
2971 #ifndef __GNUC__
2972        choke me
2973 #endif
2975   ;
2976   return 0;
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_compile") 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } &&
2993          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2994   { (case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999   (eval "$ac_try") 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; } &&
3003          { ac_try='test -s conftest.$ac_objext'
3004   { (case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009   (eval "$ac_try") 2>&5
3010   ac_status=$?
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); }; }; then
3013   ac_compiler_gnu=yes
3014 else
3015   echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3018         ac_compiler_gnu=no
3019 fi
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3024 fi
3025 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3026 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3027 GXX=`test $ac_compiler_gnu = yes && echo yes`
3028 ac_test_CXXFLAGS=${CXXFLAGS+set}
3029 ac_save_CXXFLAGS=$CXXFLAGS
3030 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3031 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3032 if test "${ac_cv_prog_cxx_g+set}" = set; then
3033   echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3036    ac_cxx_werror_flag=yes
3037    ac_cv_prog_cxx_g=no
3038    CXXFLAGS="-g"
3039    cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3046 int
3047 main ()
3050   ;
3051   return 0;
3053 _ACEOF
3054 rm -f conftest.$ac_objext
3055 if { (ac_try="$ac_compile"
3056 case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061   (eval "$ac_compile") 2>conftest.er1
3062   ac_status=$?
3063   grep -v '^ *+' conftest.er1 >conftest.err
3064   rm -f conftest.er1
3065   cat conftest.err >&5
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); } &&
3068          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3069   { (case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_try") 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; } &&
3078          { ac_try='test -s conftest.$ac_objext'
3079   { (case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084   (eval "$ac_try") 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; }; then
3088   ac_cv_prog_cxx_g=yes
3089 else
3090   echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3093         CXXFLAGS=""
3094       cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h.  */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h.  */
3101 int
3102 main ()
3105   ;
3106   return 0;
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3111 case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116   (eval "$ac_compile") 2>conftest.er1
3117   ac_status=$?
3118   grep -v '^ *+' conftest.er1 >conftest.err
3119   rm -f conftest.er1
3120   cat conftest.err >&5
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); } &&
3123          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; } &&
3133          { ac_try='test -s conftest.$ac_objext'
3134   { (case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_try") 2>&5
3140   ac_status=$?
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); }; }; then
3143   :
3144 else
3145   echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3149          CXXFLAGS="-g"
3150          cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h.  */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h.  */
3157 int
3158 main ()
3161   ;
3162   return 0;
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compile") 2>conftest.er1
3173   ac_status=$?
3174   grep -v '^ *+' conftest.er1 >conftest.err
3175   rm -f conftest.er1
3176   cat conftest.err >&5
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } &&
3179          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; } &&
3189          { ac_try='test -s conftest.$ac_objext'
3190   { (case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_try") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; }; then
3199   ac_cv_prog_cxx_g=yes
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3205 fi
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 fi
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 fi
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3215 fi
3216 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3217 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3218 if test "$ac_test_CXXFLAGS" = set; then
3219   CXXFLAGS=$ac_save_CXXFLAGS
3220 elif test $ac_cv_prog_cxx_g = yes; then
3221   if test "$GXX" = yes; then
3222     CXXFLAGS="-g -O2"
3223   else
3224     CXXFLAGS="-g"
3225   fi
3226 else
3227   if test "$GXX" = yes; then
3228     CXXFLAGS="-O2"
3229   else
3230     CXXFLAGS=
3231   fi
3232 fi
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 ac_ext=c
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3245 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3246 # On Suns, sometimes $CPP names a directory.
3247 if test -n "$CPP" && test -d "$CPP"; then
3248   CPP=
3249 fi
3250 if test -z "$CPP"; then
3251   if test "${ac_cv_prog_CPP+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254       # Double quotes because CPP needs to be expanded
3255     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3256     do
3257       ac_preproc_ok=false
3258 for ac_c_preproc_warn_flag in '' yes
3259 do
3260   # Use a header file that comes with gcc, so configuring glibc
3261   # with a fresh cross-compiler works.
3262   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3263   # <limits.h> exists even on freestanding compilers.
3264   # On the NeXT, cc -E runs the code through the compiler's parser,
3265   # not just through cpp. "Syntax error" is here to catch this case.
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #ifdef __STDC__
3273 # include <limits.h>
3274 #else
3275 # include <assert.h>
3276 #endif
3277                      Syntax error
3278 _ACEOF
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3280 case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286   ac_status=$?
3287   grep -v '^ *+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } >/dev/null; then
3292   if test -s conftest.err; then
3293     ac_cpp_err=$ac_c_preproc_warn_flag
3294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295   else
3296     ac_cpp_err=
3297   fi
3298 else
3299   ac_cpp_err=yes
3300 fi
3301 if test -z "$ac_cpp_err"; then
3302   :
3303 else
3304   echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307   # Broken: fails on valid input.
3308 continue
3309 fi
3311 rm -f conftest.err conftest.$ac_ext
3313   # OK, works on sane cases.  Now check whether nonexistent headers
3314   # can be detected and how.
3315   cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h.  */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h.  */
3321 #include <ac_nonexistent.h>
3322 _ACEOF
3323 if { (ac_try="$ac_cpp conftest.$ac_ext"
3324 case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3330   ac_status=$?
3331   grep -v '^ *+' conftest.er1 >conftest.err
3332   rm -f conftest.er1
3333   cat conftest.err >&5
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); } >/dev/null; then
3336   if test -s conftest.err; then
3337     ac_cpp_err=$ac_c_preproc_warn_flag
3338     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3339   else
3340     ac_cpp_err=
3341   fi
3342 else
3343   ac_cpp_err=yes
3344 fi
3345 if test -z "$ac_cpp_err"; then
3346   # Broken: success on invalid input.
3347 continue
3348 else
3349   echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352   # Passes both tests.
3353 ac_preproc_ok=:
3354 break
3355 fi
3357 rm -f conftest.err conftest.$ac_ext
3359 done
3360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3361 rm -f conftest.err conftest.$ac_ext
3362 if $ac_preproc_ok; then
3363   break
3364 fi
3366     done
3367     ac_cv_prog_CPP=$CPP
3369 fi
3370   CPP=$ac_cv_prog_CPP
3371 else
3372   ac_cv_prog_CPP=$CPP
3373 fi
3374 { echo "$as_me:$LINENO: result: $CPP" >&5
3375 echo "${ECHO_T}$CPP" >&6; }
3376 ac_preproc_ok=false
3377 for ac_c_preproc_warn_flag in '' yes
3378 do
3379   # Use a header file that comes with gcc, so configuring glibc
3380   # with a fresh cross-compiler works.
3381   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3382   # <limits.h> exists even on freestanding compilers.
3383   # On the NeXT, cc -E runs the code through the compiler's parser,
3384   # not just through cpp. "Syntax error" is here to catch this case.
3385   cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391 #ifdef __STDC__
3392 # include <limits.h>
3393 #else
3394 # include <assert.h>
3395 #endif
3396                      Syntax error
3397 _ACEOF
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405   ac_status=$?
3406   grep -v '^ *+' conftest.er1 >conftest.err
3407   rm -f conftest.er1
3408   cat conftest.err >&5
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } >/dev/null; then
3411   if test -s conftest.err; then
3412     ac_cpp_err=$ac_c_preproc_warn_flag
3413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414   else
3415     ac_cpp_err=
3416   fi
3417 else
3418   ac_cpp_err=yes
3419 fi
3420 if test -z "$ac_cpp_err"; then
3421   :
3422 else
3423   echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426   # Broken: fails on valid input.
3427 continue
3428 fi
3430 rm -f conftest.err conftest.$ac_ext
3432   # OK, works on sane cases.  Now check whether nonexistent headers
3433   # can be detected and how.
3434   cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 #include <ac_nonexistent.h>
3441 _ACEOF
3442 if { (ac_try="$ac_cpp conftest.$ac_ext"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3449   ac_status=$?
3450   grep -v '^ *+' conftest.er1 >conftest.err
3451   rm -f conftest.er1
3452   cat conftest.err >&5
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); } >/dev/null; then
3455   if test -s conftest.err; then
3456     ac_cpp_err=$ac_c_preproc_warn_flag
3457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3458   else
3459     ac_cpp_err=
3460   fi
3461 else
3462   ac_cpp_err=yes
3463 fi
3464 if test -z "$ac_cpp_err"; then
3465   # Broken: success on invalid input.
3466 continue
3467 else
3468   echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471   # Passes both tests.
3472 ac_preproc_ok=:
3473 break
3474 fi
3476 rm -f conftest.err conftest.$ac_ext
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3482   :
3483 else
3484   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3485 See \`config.log' for more details." >&5
3486 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&2;}
3488    { (exit 1); exit 1; }; }
3489 fi
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 if test "$CXX" = "clang++" ; then
3499   { echo "$as_me:$LINENO: checking whether clang works" >&5
3500 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3501   ac_ext=cpp
3502 ac_cpp='$CXXCPP $CPPFLAGS'
3503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h.  */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h.  */
3514 #include <limits>
3515 #if __has_include (<cxxabi.h>)
3516 #include <cxxabi.h>
3517 #endif
3518 #if __has_include (<unwind.h>)
3519 #include <unwind.h>
3520 #endif
3522 int
3523 main ()
3526   ;
3527   return 0;
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (ac_try="$ac_compile"
3532 case "(($ac_try" in
3533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534   *) ac_try_echo=$ac_try;;
3535 esac
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537   (eval "$ac_compile") 2>conftest.er1
3538   ac_status=$?
3539   grep -v '^ *+' conftest.er1 >conftest.err
3540   rm -f conftest.er1
3541   cat conftest.err >&5
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); } &&
3544          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3545   { (case "(($ac_try" in
3546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547   *) ac_try_echo=$ac_try;;
3548 esac
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550   (eval "$ac_try") 2>&5
3551   ac_status=$?
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); }; } &&
3554          { ac_try='test -s conftest.$ac_objext'
3555   { (case "(($ac_try" in
3556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557   *) ac_try_echo=$ac_try;;
3558 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560   (eval "$ac_try") 2>&5
3561   ac_status=$?
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); }; }; then
3565   { echo "$as_me:$LINENO: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6; }
3568 else
3569   echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3573   { echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6; }
3575   { { 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
3576 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;}
3577    { (exit 1); exit 1; }; }
3579 fi
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582   ac_ext=c
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588 fi
3590 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3591 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3592 ac_ext=cpp
3593 ac_cpp='$CXXCPP $CPPFLAGS'
3594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3598 llvm_cv_cxx_compiler=unknown
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h.  */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h.  */
3605 #if ! __clang__
3606                                     #error
3607                                     #endif
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3612 case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617   (eval "$ac_compile") 2>conftest.er1
3618   ac_status=$?
3619   grep -v '^ *+' conftest.er1 >conftest.err
3620   rm -f conftest.er1
3621   cat conftest.err >&5
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); } &&
3624          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3625   { (case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630   (eval "$ac_try") 2>&5
3631   ac_status=$?
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); }; } &&
3634          { ac_try='test -s conftest.$ac_objext'
3635   { (case "(($ac_try" in
3636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637   *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640   (eval "$ac_try") 2>&5
3641   ac_status=$?
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); }; }; then
3644   llvm_cv_cxx_compiler=clang
3645 else
3646   echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649         cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h.  */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h.  */
3655 #if ! __GNUC__
3656                                                        #error
3657                                                        #endif
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3662 case "(($ac_try" in
3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664   *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667   (eval "$ac_compile") 2>conftest.er1
3668   ac_status=$?
3669   grep -v '^ *+' conftest.er1 >conftest.err
3670   rm -f conftest.er1
3671   cat conftest.err >&5
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); } &&
3674          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3675   { (case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680   (eval "$ac_try") 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); }; } &&
3684          { ac_try='test -s conftest.$ac_objext'
3685   { (case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690   (eval "$ac_try") 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; }; then
3694   llvm_cv_cxx_compiler=gcc
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3700 fi
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 fi
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 ac_ext=c
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3713 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3717 if test -d ${srcdir}/projects/test-suite ; then
3718   subdirs="$subdirs projects/test-suite"
3720 fi
3722 if test -d ${srcdir}/projects/llvm-test ; then
3723   subdirs="$subdirs projects/llvm-test"
3725 fi
3727 if test -d ${srcdir}/projects/poolalloc ; then
3728   subdirs="$subdirs projects/poolalloc"
3730 fi
3732 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3733   subdirs="$subdirs projects/llvm-poolalloc"
3735 fi
3737 for i in `ls ${srcdir}/projects`
3738 do
3739   if test -d ${srcdir}/projects/${i} ; then
3740     case ${i} in
3741       safecode)     subdirs="$subdirs projects/safecode"
3742  ;;
3743       compiler-rt)       ;;
3744       test-suite)     ;;
3745       llvm-test)      ;;
3746       poolalloc)      ;;
3747       llvm-poolalloc) ;;
3748       *)
3749         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3750 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3751         ;;
3752     esac
3753   fi
3754 done
3756 # Check whether --enable-polly was given.
3757 if test "${enable_polly+set}" = set; then
3758   enableval=$enable_polly;
3759 else
3760   enableval=default
3761 fi
3763 case "$enableval" in
3764   yes) ENABLE_POLLY=1
3765  ;;
3766   no)  ENABLE_POLLY=0
3767  ;;
3768   default) ENABLE_POLLY=1
3769  ;;
3770   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3771 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3772    { (exit 1); exit 1; }; } ;;
3773 esac
3776 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3777   LLVM_HAS_POLLY=1
3779   subdirs="$subdirs tools/polly"
3781 fi
3784 # Make sure we can run config.sub.
3785 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3786   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3787 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3788    { (exit 1); exit 1; }; }
3790 { echo "$as_me:$LINENO: checking build system type" >&5
3791 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3792 if test "${ac_cv_build+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   ac_build_alias=$build_alias
3796 test "x$ac_build_alias" = x &&
3797   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3798 test "x$ac_build_alias" = x &&
3799   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3800 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3801    { (exit 1); exit 1; }; }
3802 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3803   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3804 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3805    { (exit 1); exit 1; }; }
3807 fi
3808 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3809 echo "${ECHO_T}$ac_cv_build" >&6; }
3810 case $ac_cv_build in
3811 *-*-*) ;;
3812 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3813 echo "$as_me: error: invalid value of canonical build" >&2;}
3814    { (exit 1); exit 1; }; };;
3815 esac
3816 build=$ac_cv_build
3817 ac_save_IFS=$IFS; IFS='-'
3818 set x $ac_cv_build
3819 shift
3820 build_cpu=$1
3821 build_vendor=$2
3822 shift; shift
3823 # Remember, the first character of IFS is used to create $*,
3824 # except with old shells:
3825 build_os=$*
3826 IFS=$ac_save_IFS
3827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3830 { echo "$as_me:$LINENO: checking host system type" >&5
3831 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3832 if test "${ac_cv_host+set}" = set; then
3833   echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835   if test "x$host_alias" = x; then
3836   ac_cv_host=$ac_cv_build
3837 else
3838   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3839     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3840 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3841    { (exit 1); exit 1; }; }
3842 fi
3844 fi
3845 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3846 echo "${ECHO_T}$ac_cv_host" >&6; }
3847 case $ac_cv_host in
3848 *-*-*) ;;
3849 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3850 echo "$as_me: error: invalid value of canonical host" >&2;}
3851    { (exit 1); exit 1; }; };;
3852 esac
3853 host=$ac_cv_host
3854 ac_save_IFS=$IFS; IFS='-'
3855 set x $ac_cv_host
3856 shift
3857 host_cpu=$1
3858 host_vendor=$2
3859 shift; shift
3860 # Remember, the first character of IFS is used to create $*,
3861 # except with old shells:
3862 host_os=$*
3863 IFS=$ac_save_IFS
3864 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3867 { echo "$as_me:$LINENO: checking target system type" >&5
3868 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3869 if test "${ac_cv_target+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   if test "x$target_alias" = x; then
3873   ac_cv_target=$ac_cv_host
3874 else
3875   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3876     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3877 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3878    { (exit 1); exit 1; }; }
3879 fi
3881 fi
3882 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3883 echo "${ECHO_T}$ac_cv_target" >&6; }
3884 case $ac_cv_target in
3885 *-*-*) ;;
3886 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3887 echo "$as_me: error: invalid value of canonical target" >&2;}
3888    { (exit 1); exit 1; }; };;
3889 esac
3890 target=$ac_cv_target
3891 ac_save_IFS=$IFS; IFS='-'
3892 set x $ac_cv_target
3893 shift
3894 target_cpu=$1
3895 target_vendor=$2
3896 shift; shift
3897 # Remember, the first character of IFS is used to create $*,
3898 # except with old shells:
3899 target_os=$*
3900 IFS=$ac_save_IFS
3901 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3904 # The aliases save the names the user supplied, while $host etc.
3905 # will get canonicalized.
3906 test -n "$target_alias" &&
3907   test "$program_prefix$program_suffix$program_transform_name" = \
3908     NONENONEs,x,x, &&
3909   program_prefix=${target_alias}-
3911 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3912 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3913 if test "${llvm_cv_os_type+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   case $host in
3917   *-*-aix*)
3918     llvm_cv_link_all_option="-Wl,--whole-archive"
3919     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3920     llvm_cv_os_type="AIX"
3921     llvm_cv_platform_type="Unix" ;;
3922   *-*-irix*)
3923     llvm_cv_link_all_option="-Wl,--whole-archive"
3924     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3925     llvm_cv_os_type="IRIX"
3926     llvm_cv_platform_type="Unix" ;;
3927   *-*-cygwin*)
3928     llvm_cv_link_all_option="-Wl,--whole-archive"
3929     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3930     llvm_cv_os_type="Cygwin"
3931     llvm_cv_platform_type="Unix" ;;
3932   *-*-darwin*)
3933     llvm_cv_link_all_option="-Wl,-all_load"
3934     llvm_cv_no_link_all_option="-Wl,-noall_load"
3935     llvm_cv_os_type="Darwin"
3936     llvm_cv_platform_type="Unix" ;;
3937   *-*-minix*)
3938     llvm_cv_link_all_option="-Wl,-all_load"
3939     llvm_cv_no_link_all_option="-Wl,-noall_load"
3940     llvm_cv_os_type="Minix"
3941     llvm_cv_platform_type="Unix" ;;
3942   *-*-freebsd*)
3943     llvm_cv_link_all_option="-Wl,--whole-archive"
3944     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3945     llvm_cv_os_type="FreeBSD"
3946     llvm_cv_platform_type="Unix" ;;
3947   *-*-kfreebsd-gnu)
3948     llvm_cv_link_all_option="-Wl,--whole-archive"
3949     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3950     llvm_cv_os_type="GNU/kFreeBSD"
3951     llvm_cv_platform_type="Unix" ;;
3952   *-*-openbsd*)
3953     llvm_cv_link_all_option="-Wl,--whole-archive"
3954     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3955     llvm_cv_os_type="OpenBSD"
3956     llvm_cv_platform_type="Unix" ;;
3957   *-*-netbsd*)
3958     llvm_cv_link_all_option="-Wl,--whole-archive"
3959     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3960     llvm_cv_os_type="NetBSD"
3961     llvm_cv_platform_type="Unix" ;;
3962   *-*-dragonfly*)
3963     llvm_cv_link_all_option="-Wl,--whole-archive"
3964     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3965     llvm_cv_os_type="DragonFly"
3966     llvm_cv_platform_type="Unix" ;;
3967   *-*-hpux*)
3968     llvm_cv_link_all_option="-Wl,--whole-archive"
3969     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3970     llvm_cv_os_type="HP-UX"
3971     llvm_cv_platform_type="Unix" ;;
3972   *-*-interix*)
3973     llvm_cv_link_all_option="-Wl,--whole-archive"
3974     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3975     llvm_cv_os_type="Interix"
3976     llvm_cv_platform_type="Unix" ;;
3977   *-*-linux*)
3978     llvm_cv_link_all_option="-Wl,--whole-archive"
3979     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3980     llvm_cv_os_type="Linux"
3981     llvm_cv_platform_type="Unix" ;;
3982   *-*-gnu*)
3983     llvm_cv_link_all_option="-Wl,--whole-archive"
3984     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3985     llvm_cv_os_type="GNU"
3986     llvm_cv_platform_type="Unix" ;;
3987   *-*-solaris*)
3988     llvm_cv_link_all_option="-Wl,-z,allextract"
3989     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3990     llvm_cv_os_type="SunOS"
3991     llvm_cv_platform_type="Unix" ;;
3992   *-*-auroraux*)
3993     llvm_cv_link_all_option="-Wl,-z,allextract"
3994     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3995     llvm_cv_os_type="AuroraUX"
3996     llvm_cv_platform_type="Unix" ;;
3997   *-*-win32*)
3998     llvm_cv_link_all_option="-Wl,--whole-archive"
3999     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4000     llvm_cv_os_type="Win32"
4001     llvm_cv_platform_type="Win32" ;;
4002   *-*-mingw*)
4003     llvm_cv_link_all_option="-Wl,--whole-archive"
4004     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4005     llvm_cv_os_type="MingW"
4006     llvm_cv_platform_type="Win32" ;;
4007   *-*-haiku*)
4008     llvm_cv_link_all_option="-Wl,--whole-archive"
4009     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4010     llvm_cv_os_type="Haiku"
4011     llvm_cv_platform_type="Unix" ;;
4012   *-unknown-eabi*)
4013     llvm_cv_link_all_option="-Wl,--whole-archive"
4014     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4015     llvm_cv_os_type="Freestanding"
4016     llvm_cv_platform_type="Unix" ;;
4017   *-unknown-elf*)
4018     llvm_cv_link_all_option="-Wl,--whole-archive"
4019     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4020     llvm_cv_os_type="Freestanding"
4021     llvm_cv_platform_type="Unix" ;;
4022   *)
4023     llvm_cv_link_all_option=""
4024     llvm_cv_no_link_all_option=""
4025     llvm_cv_os_type="Unknown"
4026     llvm_cv_platform_type="Unknown" ;;
4027 esac
4028 fi
4029 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4030 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4032 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4033 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4034 if test "${llvm_cv_target_os_type+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   case $target in
4038   *-*-aix*)
4039     llvm_cv_target_os_type="AIX" ;;
4040   *-*-irix*)
4041     llvm_cv_target_os_type="IRIX" ;;
4042   *-*-cygwin*)
4043     llvm_cv_target_os_type="Cygwin" ;;
4044   *-*-darwin*)
4045     llvm_cv_target_os_type="Darwin" ;;
4046   *-*-minix*)
4047     llvm_cv_target_os_type="Minix" ;;
4048   *-*-freebsd*)
4049     llvm_cv_target_os_type="FreeBSD" ;;
4050   *-*-kfreebsd-gnu)
4051     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4052   *-*-openbsd*)
4053     llvm_cv_target_os_type="OpenBSD" ;;
4054   *-*-netbsd*)
4055     llvm_cv_target_os_type="NetBSD" ;;
4056   *-*-dragonfly*)
4057     llvm_cv_target_os_type="DragonFly" ;;
4058   *-*-hpux*)
4059     llvm_cv_target_os_type="HP-UX" ;;
4060   *-*-interix*)
4061     llvm_cv_target_os_type="Interix" ;;
4062   *-*-linux*)
4063     llvm_cv_target_os_type="Linux" ;;
4064   *-*-gnu*)
4065     llvm_cv_target_os_type="GNU" ;;
4066   *-*-solaris*)
4067     llvm_cv_target_os_type="SunOS" ;;
4068   *-*-auroraux*)
4069     llvm_cv_target_os_type="AuroraUX" ;;
4070   *-*-win32*)
4071     llvm_cv_target_os_type="Win32" ;;
4072   *-*-mingw*)
4073     llvm_cv_target_os_type="MingW" ;;
4074   *-*-haiku*)
4075     llvm_cv_target_os_type="Haiku" ;;
4076   *-*-rtems*)
4077     llvm_cv_target_os_type="RTEMS" ;;
4078   *-*-nacl*)
4079     llvm_cv_target_os_type="NativeClient" ;;
4080   *-unknown-eabi*)
4081     llvm_cv_target_os_type="Freestanding" ;;
4082   *)
4083     llvm_cv_target_os_type="Unknown" ;;
4084 esac
4085 fi
4086 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4087 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4089 if test "$llvm_cv_os_type" = "Unknown" ; then
4090   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4091 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4092    { (exit 1); exit 1; }; }
4093 fi
4095 OS=$llvm_cv_os_type
4097 HOST_OS=$llvm_cv_os_type
4099 TARGET_OS=$llvm_cv_target_os_type
4102 LINKALL=$llvm_cv_link_all_option
4104 NOLINKALL=$llvm_cv_no_link_all_option
4107 case $llvm_cv_platform_type in
4108   Unix)
4110 cat >>confdefs.h <<\_ACEOF
4111 #define LLVM_ON_UNIX 1
4112 _ACEOF
4114     LLVM_ON_UNIX=1
4116     LLVM_ON_WIN32=0
4118     ;;
4119   Win32)
4121 cat >>confdefs.h <<\_ACEOF
4122 #define LLVM_ON_WIN32 1
4123 _ACEOF
4125     LLVM_ON_UNIX=0
4127     LLVM_ON_WIN32=1
4129     ;;
4130 esac
4132 { echo "$as_me:$LINENO: checking target architecture" >&5
4133 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4134 if test "${llvm_cv_target_arch+set}" = set; then
4135   echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137   case $target in
4138   i?86-*)                 llvm_cv_target_arch="x86" ;;
4139   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4140   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4141   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4142   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4143   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4144   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4145   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4146   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4147   xcore-*)                llvm_cv_target_arch="XCore" ;;
4148   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4149   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4150   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4151   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4152   *)                      llvm_cv_target_arch="Unknown" ;;
4153 esac
4154 fi
4155 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4156 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4158 if test "$llvm_cv_target_arch" = "Unknown" ; then
4159   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4160 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4161 fi
4163 case "$llvm_cv_target_arch" in
4164     x86)     LLVM_NATIVE_ARCH="X86" ;;
4165     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4166     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4167 esac
4169 ARCH=$llvm_cv_target_arch
4171 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4174 case $host in
4175   i?86-*)                 host_arch="x86" ;;
4176   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4177   sparc*-*)               host_arch="Sparc" ;;
4178   powerpc*-*)             host_arch="PowerPC" ;;
4179   arm64*-*)               host_arch="AArch64" ;;
4180   arm*-*)                 host_arch="ARM" ;;
4181   aarch64*-*)             host_arch="AArch64" ;;
4182   mips-* | mips64-*)      host_arch="Mips" ;;
4183   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4184   xcore-*)                host_arch="XCore" ;;
4185   msp430-*)               host_arch="MSP430" ;;
4186   hexagon-*)              host_arch="Hexagon" ;;
4187   s390x-*)                host_arch="SystemZ" ;;
4188   *)                      host_arch="Unknown" ;;
4189 esac
4191 if test "$host_arch" = "Unknown" ; then
4192   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4193 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4194 fi
4196 HOST_ARCH=$host_arch
4199 if test "$cross_compiling" = yes; then
4200   LLVM_CROSS_COMPILING=1
4203 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4204 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4205 if test "${ac_cv_build_exeext+set}" = set; then
4206   echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4209   ac_cv_build_exeext=.exe
4210 else
4211   ac_build_prefix=${build_alias}-
4213   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4214 set dummy ${ac_build_prefix}gcc; ac_word=$2
4215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4217 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4218   echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220   if test -n "$BUILD_CC"; then
4221   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226   IFS=$as_save_IFS
4227   test -z "$as_dir" && as_dir=.
4228   for ac_exec_ext in '' $ac_executable_extensions; do
4229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4230     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232     break 2
4233   fi
4234 done
4235 done
4236 IFS=$as_save_IFS
4238 fi
4239 fi
4240 BUILD_CC=$ac_cv_prog_BUILD_CC
4241 if test -n "$BUILD_CC"; then
4242   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4243 echo "${ECHO_T}$BUILD_CC" >&6; }
4244 else
4245   { echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6; }
4247 fi
4250   if test -z "$BUILD_CC"; then
4251      # Extract the first word of "gcc", so it can be a program name with args.
4252 set dummy gcc; ac_word=$2
4253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4256   echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258   if test -n "$BUILD_CC"; then
4259   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264   IFS=$as_save_IFS
4265   test -z "$as_dir" && as_dir=.
4266   for ac_exec_ext in '' $ac_executable_extensions; do
4267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4268     ac_cv_prog_BUILD_CC="gcc"
4269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270     break 2
4271   fi
4272 done
4273 done
4274 IFS=$as_save_IFS
4276 fi
4277 fi
4278 BUILD_CC=$ac_cv_prog_BUILD_CC
4279 if test -n "$BUILD_CC"; then
4280   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4281 echo "${ECHO_T}$BUILD_CC" >&6; }
4282 else
4283   { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4285 fi
4288      if test -z "$BUILD_CC"; then
4289        # Extract the first word of "cc", so it can be a program name with args.
4290 set dummy cc; ac_word=$2
4291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4293 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   if test -n "$BUILD_CC"; then
4297   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4298 else
4299   ac_prog_rejected=no
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH
4302 do
4303   IFS=$as_save_IFS
4304   test -z "$as_dir" && as_dir=.
4305   for ac_exec_ext in '' $ac_executable_extensions; do
4306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4307     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4308        ac_prog_rejected=yes
4309        continue
4310      fi
4311     ac_cv_prog_BUILD_CC="cc"
4312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316 done
4317 IFS=$as_save_IFS
4319 if test $ac_prog_rejected = yes; then
4320   # We found a bogon in the path, so make sure we never use it.
4321   set dummy $ac_cv_prog_BUILD_CC
4322   shift
4323   if test $# != 0; then
4324     # We chose a different compiler from the bogus one.
4325     # However, it has the same basename, so the bogon will be chosen
4326     # first if we set BUILD_CC to just the basename; use the full file name.
4327     shift
4328     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4329   fi
4330 fi
4331 fi
4332 fi
4333 BUILD_CC=$ac_cv_prog_BUILD_CC
4334 if test -n "$BUILD_CC"; then
4335   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4336 echo "${ECHO_T}$BUILD_CC" >&6; }
4337 else
4338   { echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6; }
4340 fi
4343      fi
4344   fi
4345   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4346 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4347    { (exit 1); exit 1; }; }
4348   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4349   rm -f conftest*
4350   echo 'int main () { return 0; }' > conftest.$ac_ext
4351   ac_cv_build_exeext=
4352   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4353   (eval $ac_build_link) 2>&5
4354   ac_status=$?
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); }; then
4357     for file in conftest.*; do
4358       case $file in
4359       *.c | *.o | *.obj | *.dSYM) ;;
4360       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4361       esac
4362     done
4363   else
4364     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4365 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4366    { (exit 1); exit 1; }; }
4367   fi
4368   rm -f conftest*
4369   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4370 fi
4371 fi
4373 BUILD_EXEEXT=""
4374 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4375 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4376 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4377 ac_build_exeext=$BUILD_EXEEXT
4379   ac_build_prefix=${build_alias}-
4380   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4381 set dummy ${ac_build_prefix}g++; ac_word=$2
4382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4384 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4385   echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387   if test -n "$BUILD_CXX"; then
4388   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393   IFS=$as_save_IFS
4394   test -z "$as_dir" && as_dir=.
4395   for ac_exec_ext in '' $ac_executable_extensions; do
4396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4397     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399     break 2
4400   fi
4401 done
4402 done
4403 IFS=$as_save_IFS
4405 fi
4406 fi
4407 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4408 if test -n "$BUILD_CXX"; then
4409   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4410 echo "${ECHO_T}$BUILD_CXX" >&6; }
4411 else
4412   { echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6; }
4414 fi
4417   if test -z "$BUILD_CXX"; then
4418      # Extract the first word of "g++", so it can be a program name with args.
4419 set dummy g++; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   if test -n "$BUILD_CXX"; then
4426   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4430 do
4431   IFS=$as_save_IFS
4432   test -z "$as_dir" && as_dir=.
4433   for ac_exec_ext in '' $ac_executable_extensions; do
4434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4435     ac_cv_prog_BUILD_CXX="g++"
4436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437     break 2
4438   fi
4439 done
4440 done
4441 IFS=$as_save_IFS
4443 fi
4444 fi
4445 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4446 if test -n "$BUILD_CXX"; then
4447   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4448 echo "${ECHO_T}$BUILD_CXX" >&6; }
4449 else
4450   { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4452 fi
4455      if test -z "$BUILD_CXX"; then
4456        # Extract the first word of "c++", so it can be a program name with args.
4457 set dummy c++; ac_word=$2
4458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4460 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4461   echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463   if test -n "$BUILD_CXX"; then
4464   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4465 else
4466   ac_prog_rejected=no
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472   for ac_exec_ext in '' $ac_executable_extensions; do
4473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4474     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4475        ac_prog_rejected=yes
4476        continue
4477      fi
4478     ac_cv_prog_BUILD_CXX="c++"
4479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480     break 2
4481   fi
4482 done
4483 done
4484 IFS=$as_save_IFS
4486 if test $ac_prog_rejected = yes; then
4487   # We found a bogon in the path, so make sure we never use it.
4488   set dummy $ac_cv_prog_BUILD_CXX
4489   shift
4490   if test $# != 0; then
4491     # We chose a different compiler from the bogus one.
4492     # However, it has the same basename, so the bogon will be chosen
4493     # first if we set BUILD_CXX to just the basename; use the full file name.
4494     shift
4495     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4496   fi
4497 fi
4498 fi
4499 fi
4500 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4501 if test -n "$BUILD_CXX"; then
4502   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4503 echo "${ECHO_T}$BUILD_CXX" >&6; }
4504 else
4505   { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4507 fi
4510      fi
4511   fi
4512 else
4513   LLVM_CROSS_COMPILING=0
4515 fi
4517 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4518   cvsbuild="yes"
4519   optimize="no"
4520   CVSBUILD=CVSBUILD=1
4522 else
4523   cvsbuild="no"
4524   optimize="yes"
4525 fi
4528 # Check whether --enable-libcpp was given.
4529 if test "${enable_libcpp+set}" = set; then
4530   enableval=$enable_libcpp;
4531 else
4532   enableval=default
4533 fi
4535 case "$enableval" in
4536   yes) ENABLE_LIBCPP=1
4537  ;;
4538   no)  ENABLE_LIBCPP=0
4539  ;;
4540   default) ENABLE_LIBCPP=0
4541 ;;
4542   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4543 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4544    { (exit 1); exit 1; }; } ;;
4545 esac
4547 # Check whether --enable-compiler-version-checks was given.
4548 if test "${enable_compiler_version_checks+set}" = set; then
4549   enableval=$enable_compiler_version_checks;
4550 else
4551   enableval=default
4552 fi
4554 case "$enableval" in
4555   no)
4556     ;;
4557   yes|default)
4558     ac_ext=cpp
4559 ac_cpp='$CXXCPP $CPPFLAGS'
4560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4564     case "$llvm_cv_cxx_compiler" in
4565     clang)
4566       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4567 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4568       cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h.  */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h.  */
4575 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4576 #error This version of Clang is too old to build LLVM
4577 #endif
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (ac_try="$ac_compile"
4582 case "(($ac_try" in
4583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584   *) ac_try_echo=$ac_try;;
4585 esac
4586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587   (eval "$ac_compile") 2>conftest.er1
4588   ac_status=$?
4589   grep -v '^ *+' conftest.er1 >conftest.err
4590   rm -f conftest.er1
4591   cat conftest.err >&5
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); } &&
4594          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4595   { (case "(($ac_try" in
4596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597   *) ac_try_echo=$ac_try;;
4598 esac
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600   (eval "$ac_try") 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; } &&
4604          { ac_try='test -s conftest.$ac_objext'
4605   { (case "(($ac_try" in
4606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607   *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610   (eval "$ac_try") 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); }; }; then
4614   { echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6; }
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620         { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4622            { { echo "$as_me:$LINENO: error:
4623 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4624 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4625 bypass these sanity checks." >&5
4626 echo "$as_me: error:
4627 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4628 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4629 bypass these sanity checks." >&2;}
4630    { (exit 1); exit 1; }; }
4631 fi
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4636         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4637 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4638         llvm_cv_old_cxxflags="$CXXFLAGS"
4639         CXXFLAGS="$CXXFLAGS -std=c++0x"
4640         cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h.  */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h.  */
4647 #include <atomic>
4648 std::atomic<float> x(0.0f);
4649 int main() { return (float)x; }
4651 _ACEOF
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (ac_try="$ac_link"
4654 case "(($ac_try" in
4655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656   *) ac_try_echo=$ac_try;;
4657 esac
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659   (eval "$ac_link") 2>conftest.er1
4660   ac_status=$?
4661   grep -v '^ *+' conftest.er1 >conftest.err
4662   rm -f conftest.er1
4663   cat conftest.err >&5
4664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); } &&
4666          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4667   { (case "(($ac_try" in
4668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669   *) ac_try_echo=$ac_try;;
4670 esac
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672   (eval "$ac_try") 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; } &&
4676          { ac_try='test -s conftest$ac_exeext'
4677   { (case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682   (eval "$ac_try") 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; }; then
4686   { echo "$as_me:$LINENO: result: yes" >&5
4687 echo "${ECHO_T}yes" >&6; }
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692         { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4694              { { echo "$as_me:$LINENO: error:
4695 We detected a missing feature in the standard C++ library that was known to be
4696 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4697 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4698 than 4.7. You will need to update your system and ensure Clang uses the newer
4699 standard library.
4701 If this error is incorrect or you need to force things to work, you may pass
4702 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4703 echo "$as_me: error:
4704 We detected a missing feature in the standard C++ library that was known to be
4705 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4706 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4707 than 4.7. You will need to update your system and ensure Clang uses the newer
4708 standard library.
4710 If this error is incorrect or you need to force things to work, you may pass
4711 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4712    { (exit 1); exit 1; }; }
4713 fi
4715 rm -f core conftest.err conftest.$ac_objext \
4716       conftest$ac_exeext conftest.$ac_ext
4717         CXXFLAGS="$llvm_cv_old_cxxflags"
4718       fi
4719       ;;
4720     gcc)
4721       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4722 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4723       cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h.  */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h.  */
4730 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4731 #error This version of GCC is too old to build LLVM
4732 #endif
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4737 case "(($ac_try" in
4738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739   *) ac_try_echo=$ac_try;;
4740 esac
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742   (eval "$ac_compile") 2>conftest.er1
4743   ac_status=$?
4744   grep -v '^ *+' conftest.er1 >conftest.err
4745   rm -f conftest.er1
4746   cat conftest.err >&5
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); } &&
4749          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4750   { (case "(($ac_try" in
4751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752   *) ac_try_echo=$ac_try;;
4753 esac
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755   (eval "$ac_try") 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; } &&
4759          { ac_try='test -s conftest.$ac_objext'
4760   { (case "(($ac_try" in
4761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762   *) ac_try_echo=$ac_try;;
4763 esac
4764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765   (eval "$ac_try") 2>&5
4766   ac_status=$?
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); }; }; then
4769   { echo "$as_me:$LINENO: result: yes" >&5
4770 echo "${ECHO_T}yes" >&6; }
4771 else
4772   echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4775         { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4777            { { echo "$as_me:$LINENO: error:
4778 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4779 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4780 bypass these sanity checks." >&5
4781 echo "$as_me: error:
4782 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4783 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4784 bypass these sanity checks." >&2;}
4785    { (exit 1); exit 1; }; }
4786 fi
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789       ;;
4790     unknown)
4791       ;;
4792     esac
4793     ac_ext=c
4794 ac_cpp='$CPP $CPPFLAGS'
4795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799     ;;
4800   *)
4801     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4802 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4803    { (exit 1); exit 1; }; }
4804     ;;
4805 esac
4807 # Check whether --enable-cxx1y was given.
4808 if test "${enable_cxx1y+set}" = set; then
4809   enableval=$enable_cxx1y;
4810 else
4811   enableval=default
4812 fi
4814 case "$enableval" in
4815   yes) ENABLE_CXX1Y=1
4816  ;;
4817   no)  ENABLE_CXX1Y=0
4818  ;;
4819   default) ENABLE_CXX1Y=0
4820 ;;
4821   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4822 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4823    { (exit 1); exit 1; }; } ;;
4824 esac
4826 # Check whether --enable-split-dwarf was given.
4827 if test "${enable_split_dwarf+set}" = set; then
4828   enableval=$enable_split_dwarf;
4829 else
4830   enableval=default
4831 fi
4833 case "$enableval" in
4834   yes) ENABLE_SPLIT_DWARF=1
4835  ;;
4836   no)  ENABLE_SPLIT_DWARF=0
4837  ;;
4838   default) ENABLE_SPLIT_DWARF=0
4839 ;;
4840   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4841 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4842    { (exit 1); exit 1; }; } ;;
4843 esac
4845 clang_arcmt="yes"
4846 # Check whether --enable-clang-arcmt was given.
4847 if test "${enable_clang_arcmt+set}" = set; then
4848   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4849 else
4850   enableval="yes"
4851 fi
4853 case "$enableval" in
4854   yes) ENABLE_CLANG_ARCMT=1
4855  ;;
4856   no)  ENABLE_CLANG_ARCMT=0
4857  ;;
4858   default) ENABLE_CLANG_ARCMT=1
4859 ;;
4860   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4861 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4862    { (exit 1); exit 1; }; } ;;
4863 esac
4865 clang_plugin_support="yes"
4866 # Check whether --enable-clang-plugin-support was given.
4867 if test "${enable_clang_plugin_support+set}" = set; then
4868   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4869 else
4870   enableval="yes"
4871 fi
4873 case "$enableval" in
4874   yes) CLANG_PLUGIN_SUPPORT=1
4875  ;;
4876   no)  CLANG_PLUGIN_SUPPORT=0
4877  ;;
4878   default) CLANG_PLUGIN_SUPPORT=1
4879 ;;
4880   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4881 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4882    { (exit 1); exit 1; }; } ;;
4883 esac
4885 clang_static_analyzer="yes"
4886 # Check whether --enable-clang-static-analyzer was given.
4887 if test "${enable_clang_static_analyzer+set}" = set; then
4888   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4889 else
4890   enableval="yes"
4891 fi
4893 case "$enableval" in
4894   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4895  ;;
4896   no)
4897     if test ${clang_arcmt} != "no" ; then
4898       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4899 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4900    { (exit 1); exit 1; }; }
4901     fi
4902     ENABLE_CLANG_STATIC_ANALYZER=0
4904     ;;
4905   default) ENABLE_CLANG_STATIC_ANALYZER=1
4906 ;;
4907   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4908 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4909    { (exit 1); exit 1; }; } ;;
4910 esac
4912 # Check whether --enable-optimized was given.
4913 if test "${enable_optimized+set}" = set; then
4914   enableval=$enable_optimized;
4915 else
4916   enableval=$optimize
4917 fi
4919 if test ${enableval} = "no" ; then
4920   ENABLE_OPTIMIZED=
4922 else
4923   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4925 fi
4927 # Check whether --enable-profiling was given.
4928 if test "${enable_profiling+set}" = set; then
4929   enableval=$enable_profiling;
4930 else
4931   enableval="no"
4932 fi
4934 if test ${enableval} = "no" ; then
4935   ENABLE_PROFILING=
4937 else
4938   ENABLE_PROFILING=ENABLE_PROFILING=1
4940 fi
4942 # Check whether --enable-assertions was given.
4943 if test "${enable_assertions+set}" = set; then
4944   enableval=$enable_assertions;
4945 else
4946   enableval="yes"
4947 fi
4949 if test ${enableval} = "yes" ; then
4950   DISABLE_ASSERTIONS=
4952 else
4953   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4955 fi
4957 # Check whether --enable-werror was given.
4958 if test "${enable_werror+set}" = set; then
4959   enableval=$enable_werror;
4960 else
4961   enableval="no"
4962 fi
4964 case "$enableval" in
4965   yes) ENABLE_WERROR=1
4966  ;;
4967   no)  ENABLE_WERROR=0
4968  ;;
4969   default) ENABLE_WERROR=0
4970 ;;
4971   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4972 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4973    { (exit 1); exit 1; }; } ;;
4974 esac
4976 # Check whether --enable-expensive-checks was given.
4977 if test "${enable_expensive_checks+set}" = set; then
4978   enableval=$enable_expensive_checks;
4979 else
4980   enableval="no"
4981 fi
4983 if test ${enableval} = "yes" ; then
4984   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4986   EXPENSIVE_CHECKS=yes
4988 else
4989   ENABLE_EXPENSIVE_CHECKS=
4991   EXPENSIVE_CHECKS=no
4993 fi
4995 # Check whether --enable-debug-runtime was given.
4996 if test "${enable_debug_runtime+set}" = set; then
4997   enableval=$enable_debug_runtime;
4998 else
4999   enableval=no
5000 fi
5002 if test ${enableval} = "no" ; then
5003   DEBUG_RUNTIME=
5005 else
5006   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5008 fi
5010 # Check whether --enable-debug-symbols was given.
5011 if test "${enable_debug_symbols+set}" = set; then
5012   enableval=$enable_debug_symbols;
5013 else
5014   enableval=no
5015 fi
5017 if test ${enableval} = "no" ; then
5018   DEBUG_SYMBOLS=
5020 else
5021   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5023 fi
5025 # Check whether --enable-keep-symbols was given.
5026 if test "${enable_keep_symbols+set}" = set; then
5027   enableval=$enable_keep_symbols;
5028 else
5029   enableval=no
5030 fi
5032 if test ${enableval} = "no" ; then
5033   KEEP_SYMBOLS=
5035 else
5036   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5038 fi
5040 # Check whether --enable-jit was given.
5041 if test "${enable_jit+set}" = set; then
5042   enableval=$enable_jit;
5043 else
5044   enableval=default
5045 fi
5047 if test ${enableval} = "no"
5048 then
5049   JIT=
5051 else
5052   case "$llvm_cv_target_arch" in
5053     x86)         TARGET_HAS_JIT=1
5054  ;;
5055     Sparc)       TARGET_HAS_JIT=0
5056  ;;
5057     PowerPC)     TARGET_HAS_JIT=1
5058  ;;
5059     x86_64)      TARGET_HAS_JIT=1
5060  ;;
5061     ARM)         TARGET_HAS_JIT=1
5062  ;;
5063     Mips)        TARGET_HAS_JIT=1
5064  ;;
5065     XCore)       TARGET_HAS_JIT=0
5066  ;;
5067     MSP430)      TARGET_HAS_JIT=0
5068  ;;
5069     Hexagon)     TARGET_HAS_JIT=0
5070  ;;
5071     NVPTX)       TARGET_HAS_JIT=0
5072  ;;
5073     SystemZ)     TARGET_HAS_JIT=1
5074  ;;
5075     *)           TARGET_HAS_JIT=0
5076  ;;
5077   esac
5078 fi
5080 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5081 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5084 # Check whether --enable-docs was given.
5085 if test "${enable_docs+set}" = set; then
5086   enableval=$enable_docs;
5087 else
5088   enableval=default
5089 fi
5091 case "$enableval" in
5092   yes) ENABLE_DOCS=1
5093  ;;
5094   no)  ENABLE_DOCS=0
5095  ;;
5096   default) ENABLE_DOCS=1
5097  ;;
5098   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5099 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5100    { (exit 1); exit 1; }; } ;;
5101 esac
5103 # Check whether --enable-doxygen was given.
5104 if test "${enable_doxygen+set}" = set; then
5105   enableval=$enable_doxygen;
5106 else
5107   enableval=default
5108 fi
5110 case "$enableval" in
5111   yes) ENABLE_DOXYGEN=1
5112  ;;
5113   no)  ENABLE_DOXYGEN=0
5114  ;;
5115   default) ENABLE_DOXYGEN=0
5116  ;;
5117   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5118 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5119    { (exit 1); exit 1; }; } ;;
5120 esac
5122 # Check whether --enable-threads was given.
5123 if test "${enable_threads+set}" = set; then
5124   enableval=$enable_threads;
5125 else
5126   enableval=default
5127 fi
5129 case "$enableval" in
5130   yes) LLVM_ENABLE_THREADS=1
5131  ;;
5132   no)  LLVM_ENABLE_THREADS=0
5133  ;;
5134   default) LLVM_ENABLE_THREADS=1
5135  ;;
5136   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5137 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5138    { (exit 1); exit 1; }; } ;;
5139 esac
5141 cat >>confdefs.h <<_ACEOF
5142 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5143 _ACEOF
5146 # Check whether --enable-pthreads was given.
5147 if test "${enable_pthreads+set}" = set; then
5148   enableval=$enable_pthreads;
5149 else
5150   enableval=default
5151 fi
5153 case "$enableval" in
5154   yes) ENABLE_PTHREADS=1
5155  ;;
5156   no)  ENABLE_PTHREADS=0
5157  ;;
5158   default) ENABLE_PTHREADS=1
5159  ;;
5160   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5162    { (exit 1); exit 1; }; } ;;
5163 esac
5165 # Check whether --enable-zlib was given.
5166 if test "${enable_zlib+set}" = set; then
5167   enableval=$enable_zlib;
5168 else
5169   enableval=default
5170 fi
5172 case "$enableval" in
5173   yes) LLVM_ENABLE_ZLIB=1
5174  ;;
5175   no)  LLVM_ENABLE_ZLIB=0
5176  ;;
5177   default) LLVM_ENABLE_ZLIB=1
5178  ;;
5179   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5181    { (exit 1); exit 1; }; } ;;
5182 esac
5184 cat >>confdefs.h <<_ACEOF
5185 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5186 _ACEOF
5189 # Check whether --enable-pic was given.
5190 if test "${enable_pic+set}" = set; then
5191   enableval=$enable_pic;
5192 else
5193   enableval=default
5194 fi
5196 case "$enableval" in
5197   yes) ENABLE_PIC=1
5198  ;;
5199   no)  ENABLE_PIC=0
5200  ;;
5201   default) ENABLE_PIC=1
5202  ;;
5203   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5205    { (exit 1); exit 1; }; } ;;
5206 esac
5208 cat >>confdefs.h <<_ACEOF
5209 #define ENABLE_PIC $ENABLE_PIC
5210 _ACEOF
5213 # Check whether --enable-shared was given.
5214 if test "${enable_shared+set}" = set; then
5215   enableval=$enable_shared;
5216 else
5217   enableval=default
5218 fi
5220 case "$enableval" in
5221   yes) ENABLE_SHARED=1
5222  ;;
5223   no)  ENABLE_SHARED=0
5224  ;;
5225   default) ENABLE_SHARED=0
5226  ;;
5227   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5228 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5229    { (exit 1); exit 1; }; } ;;
5230 esac
5232 # Check whether --enable-embed-stdcxx was given.
5233 if test "${enable_embed_stdcxx+set}" = set; then
5234   enableval=$enable_embed_stdcxx;
5235 else
5236   enableval=default
5237 fi
5239 case "$enableval" in
5240   yes) ENABLE_EMBED_STDCXX=1
5241  ;;
5242   no)  ENABLE_EMBED_STDCXX=0
5243  ;;
5244   default) ENABLE_EMBED_STDCXX=0
5245  ;;
5246   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5248    { (exit 1); exit 1; }; } ;;
5249 esac
5251 # Check whether --enable-timestamps was given.
5252 if test "${enable_timestamps+set}" = set; then
5253   enableval=$enable_timestamps;
5254 else
5255   enableval=default
5256 fi
5258 case "$enableval" in
5259   yes) ENABLE_TIMESTAMPS=1
5260  ;;
5261   no)  ENABLE_TIMESTAMPS=0
5262  ;;
5263   default) ENABLE_TIMESTAMPS=1
5264  ;;
5265   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5266 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5267    { (exit 1); exit 1; }; } ;;
5268 esac
5270 cat >>confdefs.h <<_ACEOF
5271 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5272 _ACEOF
5275 # Check whether --enable-backtraces was given.
5276 if test "${enable_backtraces+set}" = set; then
5277   enableval=$enable_backtraces; case "$enableval" in
5278     yes) llvm_cv_enable_backtraces="yes" ;;
5279     no)  llvm_cv_enable_backtraces="no"  ;;
5280     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5281 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5282    { (exit 1); exit 1; }; } ;;
5283   esac
5284 else
5285   llvm_cv_enable_backtraces="yes"
5286 fi
5288 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5290 cat >>confdefs.h <<\_ACEOF
5291 #define ENABLE_BACKTRACES 1
5292 _ACEOF
5294 fi
5296 # Check whether --enable-crash-overrides was given.
5297 if test "${enable_crash_overrides+set}" = set; then
5298   enableval=$enable_crash_overrides; case "$enableval" in
5299     yes) llvm_cv_enable_crash_overrides="yes" ;;
5300     no)  llvm_cv_enable_crash_overrides="no"  ;;
5301     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5302 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5303    { (exit 1); exit 1; }; } ;;
5304   esac
5305 else
5306   llvm_cv_enable_crash_overrides="yes"
5307 fi
5309 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5311 cat >>confdefs.h <<\_ACEOF
5312 #define ENABLE_CRASH_OVERRIDES 1
5313 _ACEOF
5315 fi
5317 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5318 ALL_TARGETS=$ALL_TARGETS
5321 TARGETS_TO_BUILD=""
5322 # Check whether --enable-targets was given.
5323 if test "${enable_targets+set}" = set; then
5324   enableval=$enable_targets;
5325 else
5326   enableval=all
5327 fi
5329 if test "$enableval" = host-only ; then
5330   enableval=host
5331 fi
5332 case "$enableval" in
5333   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5334   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5335       case "$a_target" in
5336         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5338         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5339         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5340         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5341         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5342         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5343         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5344         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5345         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5346         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5347         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5348         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5349         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5350         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5351         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5352         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5353         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5354         host) case "$llvm_cv_target_arch" in
5355             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5356             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5357             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5358             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5359             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5360             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5361             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5362             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5363             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5364             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5365             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5366             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5367             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5368 echo "$as_me: error: Can not set target to build" >&2;}
5369    { (exit 1); exit 1; }; } ;;
5370           esac ;;
5371         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5372 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5373    { (exit 1); exit 1; }; } ;;
5374       esac
5375   done
5376   ;;
5377 esac
5379 # Check whether --enable-experimental-targets was given.
5380 if test "${enable_experimental_targets+set}" = set; then
5381   enableval=$enable_experimental_targets;
5382 else
5383   enableval=disable
5384 fi
5387 if test ${enableval} != "disable"
5388 then
5389   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5390 fi
5392 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5395 for a_target in $TARGETS_TO_BUILD; do
5396   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5398 cat >>confdefs.h <<_ACEOF
5399 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5400 _ACEOF
5402     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5403     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5404     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5405     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5406     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5407       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5408     fi
5409     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5410       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5411     fi
5413 cat >>confdefs.h <<_ACEOF
5414 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5415 _ACEOF
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5420 _ACEOF
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5425 _ACEOF
5428 cat >>confdefs.h <<_ACEOF
5429 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5430 _ACEOF
5432     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5434 cat >>confdefs.h <<_ACEOF
5435 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5436 _ACEOF
5438     fi
5439     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5441 cat >>confdefs.h <<_ACEOF
5442 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5443 _ACEOF
5445     fi
5446   fi
5447 done
5449 LLVM_ENUM_TARGETS=""
5450 LLVM_ENUM_ASM_PRINTERS=""
5451 LLVM_ENUM_ASM_PARSERS=""
5452 LLVM_ENUM_DISASSEMBLERS=""
5453 for target_to_build in $TARGETS_TO_BUILD; do
5454   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5455   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5456     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5457   fi
5458   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5459     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5460   fi
5461   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5462     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5463   fi
5464 done
5471 # Check whether --with-optimize-option was given.
5472 if test "${with_optimize_option+set}" = set; then
5473   withval=$with_optimize_option;
5474 else
5475   withval=default
5476 fi
5478 { echo "$as_me:$LINENO: checking optimization flags" >&5
5479 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5480 case "$withval" in
5481   default)
5482     case "$llvm_cv_os_type" in
5483     FreeBSD) optimize_option=-O2 ;;
5484     MingW) optimize_option=-O2 ;;
5485     *)     optimize_option=-O3 ;;
5486     esac ;;
5487   *) optimize_option="$withval" ;;
5488 esac
5489 OPTIMIZE_OPTION=$optimize_option
5491 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5492 echo "${ECHO_T}$optimize_option" >&6; }
5495 # Check whether --with-extra-options was given.
5496 if test "${with_extra_options+set}" = set; then
5497   withval=$with_extra_options;
5498 else
5499   withval=default
5500 fi
5502 case "$withval" in
5503   default) EXTRA_OPTIONS= ;;
5504   *) EXTRA_OPTIONS=$withval ;;
5505 esac
5506 EXTRA_OPTIONS=$EXTRA_OPTIONS
5510 # Check whether --with-extra-ld-options was given.
5511 if test "${with_extra_ld_options+set}" = set; then
5512   withval=$with_extra_ld_options;
5513 else
5514   withval=default
5515 fi
5517 case "$withval" in
5518   default) EXTRA_LD_OPTIONS= ;;
5519   *) EXTRA_LD_OPTIONS=$withval ;;
5520 esac
5521 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5524 # Check whether --enable-bindings was given.
5525 if test "${enable_bindings+set}" = set; then
5526   enableval=$enable_bindings;
5527 else
5528   enableval=default
5529 fi
5531 BINDINGS_TO_BUILD=""
5532 case "$enableval" in
5533   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5534   all ) BINDINGS_TO_BUILD="ocaml" ;;
5535   none | no) BINDINGS_TO_BUILD="" ;;
5536   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5537       case "$a_binding" in
5538         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5539         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5540 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5541    { (exit 1); exit 1; }; } ;;
5542       esac
5543   done
5544   ;;
5545 esac
5548 # Check whether --with-ocaml-libdir was given.
5549 if test "${with_ocaml_libdir+set}" = set; then
5550   withval=$with_ocaml_libdir;
5551 else
5552   withval=auto
5553 fi
5555 case "$withval" in
5556   auto) with_ocaml_libdir="$withval" ;;
5557   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5558   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5559 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5560    { (exit 1); exit 1; }; } ;;
5561 esac
5564 # Check whether --with-clang-srcdir was given.
5565 if test "${with_clang_srcdir+set}" = set; then
5566   withval=$with_clang_srcdir;
5567 else
5568   withval="-"
5569 fi
5571 case "$withval" in
5572   -) clang_src_root="" ;;
5573   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5574   *) clang_src_root="$ac_pwd/$withval" ;;
5575 esac
5576 CLANG_SRC_ROOT=$clang_src_root
5580 # Check whether --with-clang-resource-dir was given.
5581 if test "${with_clang_resource_dir+set}" = set; then
5582   withval=$with_clang_resource_dir;
5583 else
5584   withval=""
5585 fi
5588 cat >>confdefs.h <<_ACEOF
5589 #define CLANG_RESOURCE_DIR "$withval"
5590 _ACEOF
5594 # Check whether --with-c-include-dirs was given.
5595 if test "${with_c_include_dirs+set}" = set; then
5596   withval=$with_c_include_dirs;
5597 else
5598   withval=""
5599 fi
5602 cat >>confdefs.h <<_ACEOF
5603 #define C_INCLUDE_DIRS "$withval"
5604 _ACEOF
5607 # Clang normally uses the system c++ headers and libraries. With this option,
5608 # clang will use the ones provided by a gcc installation instead. This option should
5609 # be passed the same value that was used with --prefix when configuring gcc.
5611 # Check whether --with-gcc-toolchain was given.
5612 if test "${with_gcc_toolchain+set}" = set; then
5613   withval=$with_gcc_toolchain;
5614 else
5615   withval=""
5616 fi
5619 cat >>confdefs.h <<_ACEOF
5620 #define GCC_INSTALL_PREFIX "$withval"
5621 _ACEOF
5625 # Check whether --with-default-sysroot was given.
5626 if test "${with_default_sysroot+set}" = set; then
5627   withval=$with_default_sysroot;
5628 else
5629   withval=""
5630 fi
5633 cat >>confdefs.h <<_ACEOF
5634 #define DEFAULT_SYSROOT "$withval"
5635 _ACEOF
5639 # Check whether --with-binutils-include was given.
5640 if test "${with_binutils_include+set}" = set; then
5641   withval=$with_binutils_include;
5642 else
5643   withval=default
5644 fi
5646 case "$withval" in
5647   default) WITH_BINUTILS_INCDIR=default ;;
5648   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5649   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5650 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5651    { (exit 1); exit 1; }; } ;;
5652 esac
5653 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5654   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5656   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5657      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5658      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5659 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5660    { (exit 1); exit 1; }; };
5661   fi
5662 fi
5665 # Check whether --with-bug-report-url was given.
5666 if test "${with_bug_report_url+set}" = set; then
5667   withval=$with_bug_report_url;
5668 else
5669   withval="http://llvm.org/bugs/"
5670 fi
5673 cat >>confdefs.h <<_ACEOF
5674 #define BUG_REPORT_URL "$withval"
5675 _ACEOF
5678 # Check whether --enable-terminfo was given.
5679 if test "${enable_terminfo+set}" = set; then
5680   enableval=$enable_terminfo; case "$enableval" in
5681     yes) llvm_cv_enable_terminfo="yes" ;;
5682     no)  llvm_cv_enable_terminfo="no"  ;;
5683     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5684 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5685    { (exit 1); exit 1; }; } ;;
5686   esac
5687 else
5688   llvm_cv_enable_terminfo="yes"
5689 fi
5691 case "$llvm_cv_enable_terminfo" in
5692   yes) ENABLE_TERMINFO=1
5693  ;;
5694   no)  ENABLE_TERMINFO=0
5695  ;;
5696 esac
5698 # Check whether --enable-libedit was given.
5699 if test "${enable_libedit+set}" = set; then
5700   enableval=$enable_libedit; case "$enableval" in
5701     yes) llvm_cv_enable_libedit="yes" ;;
5702     no)  llvm_cv_enable_libedit="no"  ;;
5703     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5704 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5705    { (exit 1); exit 1; }; } ;;
5706   esac
5707 else
5708   llvm_cv_enable_libedit="yes"
5709 fi
5712 # Check whether --enable-libffi was given.
5713 if test "${enable_libffi+set}" = set; then
5714   enableval=$enable_libffi; case "$enableval" in
5715     yes) llvm_cv_enable_libffi="yes" ;;
5716     no)  llvm_cv_enable_libffi="no"  ;;
5717     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5718 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5719    { (exit 1); exit 1; }; } ;;
5720   esac
5721 else
5722   llvm_cv_enable_libffi=no
5723 fi
5727 # Check whether --with-internal-prefix was given.
5728 if test "${with_internal_prefix+set}" = set; then
5729   withval=$with_internal_prefix;
5730 else
5731   withval=""
5732 fi
5734 INTERNAL_PREFIX=$withval
5738 { echo "$as_me:$LINENO: checking for GNU make" >&5
5739 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5740 if test "${llvm_cv_gnu_make_command+set}" = set; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743   llvm_cv_gnu_make_command=''
5744  for a in "$MAKE" make gmake gnumake ; do
5745   if test -z "$a" ; then continue ; fi ;
5746   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5747   then
5748    llvm_cv_gnu_make_command=$a ;
5749    break;
5750   fi
5751  done
5752 fi
5753 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5754 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5755  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5756    ifGNUmake='' ;
5757  else
5758    ifGNUmake='#' ;
5759    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5760 echo "${ECHO_T}\"Not found\"" >&6; };
5761  fi
5764 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5765 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5766 LN_S=$as_ln_s
5767 if test "$LN_S" = "ln -s"; then
5768   { echo "$as_me:$LINENO: result: yes" >&5
5769 echo "${ECHO_T}yes" >&6; }
5770 else
5771   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5772 echo "${ECHO_T}no, using $LN_S" >&6; }
5773 fi
5775 # Extract the first word of "nm", so it can be a program name with args.
5776 set dummy nm; ac_word=$2
5777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5779 if test "${ac_cv_path_NM+set}" = set; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782   case $NM in
5783   [\\/]* | ?:[\\/]*)
5784   ac_cv_path_NM="$NM" # Let the user override the test with a path.
5785   ;;
5786   *)
5787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 for as_dir in $PATH
5789 do
5790   IFS=$as_save_IFS
5791   test -z "$as_dir" && as_dir=.
5792   for ac_exec_ext in '' $ac_executable_extensions; do
5793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5794     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5796     break 2
5797   fi
5798 done
5799 done
5800 IFS=$as_save_IFS
5802   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5803   ;;
5804 esac
5805 fi
5806 NM=$ac_cv_path_NM
5807 if test -n "$NM"; then
5808   { echo "$as_me:$LINENO: result: $NM" >&5
5809 echo "${ECHO_T}$NM" >&6; }
5810 else
5811   { echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6; }
5813 fi
5816 # Extract the first word of "cmp", so it can be a program name with args.
5817 set dummy cmp; ac_word=$2
5818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5820 if test "${ac_cv_path_CMP+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   case $CMP in
5824   [\\/]* | ?:[\\/]*)
5825   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5826   ;;
5827   *)
5828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831   IFS=$as_save_IFS
5832   test -z "$as_dir" && as_dir=.
5833   for ac_exec_ext in '' $ac_executable_extensions; do
5834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5835     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837     break 2
5838   fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5843   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5844   ;;
5845 esac
5846 fi
5847 CMP=$ac_cv_path_CMP
5848 if test -n "$CMP"; then
5849   { echo "$as_me:$LINENO: result: $CMP" >&5
5850 echo "${ECHO_T}$CMP" >&6; }
5851 else
5852   { echo "$as_me:$LINENO: result: no" >&5
5853 echo "${ECHO_T}no" >&6; }
5854 fi
5857 # Extract the first word of "cp", so it can be a program name with args.
5858 set dummy cp; ac_word=$2
5859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5861 if test "${ac_cv_path_CP+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   case $CP in
5865   [\\/]* | ?:[\\/]*)
5866   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5867   ;;
5868   *)
5869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872   IFS=$as_save_IFS
5873   test -z "$as_dir" && as_dir=.
5874   for ac_exec_ext in '' $ac_executable_extensions; do
5875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5876     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878     break 2
5879   fi
5880 done
5881 done
5882 IFS=$as_save_IFS
5884   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5885   ;;
5886 esac
5887 fi
5888 CP=$ac_cv_path_CP
5889 if test -n "$CP"; then
5890   { echo "$as_me:$LINENO: result: $CP" >&5
5891 echo "${ECHO_T}$CP" >&6; }
5892 else
5893   { echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6; }
5895 fi
5898 # Extract the first word of "date", so it can be a program name with args.
5899 set dummy date; ac_word=$2
5900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5902 if test "${ac_cv_path_DATE+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   case $DATE in
5906   [\\/]* | ?:[\\/]*)
5907   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5908   ;;
5909   *)
5910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915   for ac_exec_ext in '' $ac_executable_extensions; do
5916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5917     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919     break 2
5920   fi
5921 done
5922 done
5923 IFS=$as_save_IFS
5925   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5926   ;;
5927 esac
5928 fi
5929 DATE=$ac_cv_path_DATE
5930 if test -n "$DATE"; then
5931   { echo "$as_me:$LINENO: result: $DATE" >&5
5932 echo "${ECHO_T}$DATE" >&6; }
5933 else
5934   { echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6; }
5936 fi
5939 # Extract the first word of "find", so it can be a program name with args.
5940 set dummy find; ac_word=$2
5941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943 if test "${ac_cv_path_FIND+set}" = set; then
5944   echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946   case $FIND in
5947   [\\/]* | ?:[\\/]*)
5948   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5949   ;;
5950   *)
5951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954   IFS=$as_save_IFS
5955   test -z "$as_dir" && as_dir=.
5956   for ac_exec_ext in '' $ac_executable_extensions; do
5957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5958     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963 done
5964 IFS=$as_save_IFS
5966   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5967   ;;
5968 esac
5969 fi
5970 FIND=$ac_cv_path_FIND
5971 if test -n "$FIND"; then
5972   { echo "$as_me:$LINENO: result: $FIND" >&5
5973 echo "${ECHO_T}$FIND" >&6; }
5974 else
5975   { echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6; }
5977 fi
5980 # Extract the first word of "grep", so it can be a program name with args.
5981 set dummy grep; ac_word=$2
5982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5984 if test "${ac_cv_path_GREP+set}" = set; then
5985   echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987   case $GREP in
5988   [\\/]* | ?:[\\/]*)
5989   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5990   ;;
5991   *)
5992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997   for ac_exec_ext in '' $ac_executable_extensions; do
5998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5999     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001     break 2
6002   fi
6003 done
6004 done
6005 IFS=$as_save_IFS
6007   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6008   ;;
6009 esac
6010 fi
6011 GREP=$ac_cv_path_GREP
6012 if test -n "$GREP"; then
6013   { echo "$as_me:$LINENO: result: $GREP" >&5
6014 echo "${ECHO_T}$GREP" >&6; }
6015 else
6016   { echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6; }
6018 fi
6021 # Extract the first word of "mkdir", so it can be a program name with args.
6022 set dummy mkdir; ac_word=$2
6023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6025 if test "${ac_cv_path_MKDIR+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028   case $MKDIR in
6029   [\\/]* | ?:[\\/]*)
6030   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6031   ;;
6032   *)
6033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036   IFS=$as_save_IFS
6037   test -z "$as_dir" && as_dir=.
6038   for ac_exec_ext in '' $ac_executable_extensions; do
6039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6040     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6042     break 2
6043   fi
6044 done
6045 done
6046 IFS=$as_save_IFS
6048   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6049   ;;
6050 esac
6051 fi
6052 MKDIR=$ac_cv_path_MKDIR
6053 if test -n "$MKDIR"; then
6054   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6055 echo "${ECHO_T}$MKDIR" >&6; }
6056 else
6057   { echo "$as_me:$LINENO: result: no" >&5
6058 echo "${ECHO_T}no" >&6; }
6059 fi
6062 # Extract the first word of "mv", so it can be a program name with args.
6063 set dummy mv; ac_word=$2
6064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6066 if test "${ac_cv_path_MV+set}" = set; then
6067   echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069   case $MV in
6070   [\\/]* | ?:[\\/]*)
6071   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6072   ;;
6073   *)
6074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079   for ac_exec_ext in '' $ac_executable_extensions; do
6080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6081     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083     break 2
6084   fi
6085 done
6086 done
6087 IFS=$as_save_IFS
6089   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6090   ;;
6091 esac
6092 fi
6093 MV=$ac_cv_path_MV
6094 if test -n "$MV"; then
6095   { echo "$as_me:$LINENO: result: $MV" >&5
6096 echo "${ECHO_T}$MV" >&6; }
6097 else
6098   { echo "$as_me:$LINENO: result: no" >&5
6099 echo "${ECHO_T}no" >&6; }
6100 fi
6103 if test -n "$ac_tool_prefix"; then
6104   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_prog_RANLIB+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   if test -n "$RANLIB"; then
6112   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119   for ac_exec_ext in '' $ac_executable_extensions; do
6120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6121     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6129 fi
6130 fi
6131 RANLIB=$ac_cv_prog_RANLIB
6132 if test -n "$RANLIB"; then
6133   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6134 echo "${ECHO_T}$RANLIB" >&6; }
6135 else
6136   { echo "$as_me:$LINENO: result: no" >&5
6137 echo "${ECHO_T}no" >&6; }
6138 fi
6141 fi
6142 if test -z "$ac_cv_prog_RANLIB"; then
6143   ac_ct_RANLIB=$RANLIB
6144   # Extract the first word of "ranlib", so it can be a program name with args.
6145 set dummy ranlib; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   if test -n "$ac_ct_RANLIB"; then
6152   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157   IFS=$as_save_IFS
6158   test -z "$as_dir" && as_dir=.
6159   for ac_exec_ext in '' $ac_executable_extensions; do
6160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6161     ac_cv_prog_ac_ct_RANLIB="ranlib"
6162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163     break 2
6164   fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6169 fi
6170 fi
6171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6172 if test -n "$ac_ct_RANLIB"; then
6173   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6174 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6175 else
6176   { echo "$as_me:$LINENO: result: no" >&5
6177 echo "${ECHO_T}no" >&6; }
6178 fi
6180   if test "x$ac_ct_RANLIB" = x; then
6181     RANLIB=":"
6182   else
6183     case $cross_compiling:$ac_tool_warned in
6184 yes:)
6185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6186 whose name does not start with the host triplet.  If you think this
6187 configuration is useful to you, please write to autoconf@gnu.org." >&5
6188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6189 whose name does not start with the host triplet.  If you think this
6190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6191 ac_tool_warned=yes ;;
6192 esac
6193     RANLIB=$ac_ct_RANLIB
6194   fi
6195 else
6196   RANLIB="$ac_cv_prog_RANLIB"
6197 fi
6199 if test -n "$ac_tool_prefix"; then
6200   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6201 set dummy ${ac_tool_prefix}ar; ac_word=$2
6202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6204 if test "${ac_cv_prog_AR+set}" = set; then
6205   echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207   if test -n "$AR"; then
6208   ac_cv_prog_AR="$AR" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213   IFS=$as_save_IFS
6214   test -z "$as_dir" && as_dir=.
6215   for ac_exec_ext in '' $ac_executable_extensions; do
6216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6217     ac_cv_prog_AR="${ac_tool_prefix}ar"
6218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219     break 2
6220   fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6225 fi
6226 fi
6227 AR=$ac_cv_prog_AR
6228 if test -n "$AR"; then
6229   { echo "$as_me:$LINENO: result: $AR" >&5
6230 echo "${ECHO_T}$AR" >&6; }
6231 else
6232   { echo "$as_me:$LINENO: result: no" >&5
6233 echo "${ECHO_T}no" >&6; }
6234 fi
6237 fi
6238 if test -z "$ac_cv_prog_AR"; then
6239   ac_ct_AR=$AR
6240   # Extract the first word of "ar", so it can be a program name with args.
6241 set dummy ar; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   if test -n "$ac_ct_AR"; then
6248   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253   IFS=$as_save_IFS
6254   test -z "$as_dir" && as_dir=.
6255   for ac_exec_ext in '' $ac_executable_extensions; do
6256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6257     ac_cv_prog_ac_ct_AR="ar"
6258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259     break 2
6260   fi
6261 done
6262 done
6263 IFS=$as_save_IFS
6265 fi
6266 fi
6267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6268 if test -n "$ac_ct_AR"; then
6269   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6270 echo "${ECHO_T}$ac_ct_AR" >&6; }
6271 else
6272   { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6274 fi
6276   if test "x$ac_ct_AR" = x; then
6277     AR="false"
6278   else
6279     case $cross_compiling:$ac_tool_warned in
6280 yes:)
6281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6282 whose name does not start with the host triplet.  If you think this
6283 configuration is useful to you, please write to autoconf@gnu.org." >&5
6284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6285 whose name does not start with the host triplet.  If you think this
6286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6287 ac_tool_warned=yes ;;
6288 esac
6289     AR=$ac_ct_AR
6290   fi
6291 else
6292   AR="$ac_cv_prog_AR"
6293 fi
6295 # Extract the first word of "rm", so it can be a program name with args.
6296 set dummy rm; ac_word=$2
6297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299 if test "${ac_cv_path_RM+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   case $RM in
6303   [\\/]* | ?:[\\/]*)
6304   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6305   ;;
6306   *)
6307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312   for ac_exec_ext in '' $ac_executable_extensions; do
6313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6314     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6322   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6323   ;;
6324 esac
6325 fi
6326 RM=$ac_cv_path_RM
6327 if test -n "$RM"; then
6328   { echo "$as_me:$LINENO: result: $RM" >&5
6329 echo "${ECHO_T}$RM" >&6; }
6330 else
6331   { echo "$as_me:$LINENO: result: no" >&5
6332 echo "${ECHO_T}no" >&6; }
6333 fi
6336 # Extract the first word of "sed", so it can be a program name with args.
6337 set dummy sed; ac_word=$2
6338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6340 if test "${ac_cv_path_SED+set}" = set; then
6341   echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343   case $SED in
6344   [\\/]* | ?:[\\/]*)
6345   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6346   ;;
6347   *)
6348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351   IFS=$as_save_IFS
6352   test -z "$as_dir" && as_dir=.
6353   for ac_exec_ext in '' $ac_executable_extensions; do
6354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6355     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357     break 2
6358   fi
6359 done
6360 done
6361 IFS=$as_save_IFS
6363   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6364   ;;
6365 esac
6366 fi
6367 SED=$ac_cv_path_SED
6368 if test -n "$SED"; then
6369   { echo "$as_me:$LINENO: result: $SED" >&5
6370 echo "${ECHO_T}$SED" >&6; }
6371 else
6372   { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6374 fi
6377 # Extract the first word of "tar", so it can be a program name with args.
6378 set dummy tar; ac_word=$2
6379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6381 if test "${ac_cv_path_TAR+set}" = set; then
6382   echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384   case $TAR in
6385   [\\/]* | ?:[\\/]*)
6386   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6387   ;;
6388   *)
6389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394   for ac_exec_ext in '' $ac_executable_extensions; do
6395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6396     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401 done
6402 IFS=$as_save_IFS
6404   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6405   ;;
6406 esac
6407 fi
6408 TAR=$ac_cv_path_TAR
6409 if test -n "$TAR"; then
6410   { echo "$as_me:$LINENO: result: $TAR" >&5
6411 echo "${ECHO_T}$TAR" >&6; }
6412 else
6413   { echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6; }
6415 fi
6418 # Extract the first word of "pwd", so it can be a program name with args.
6419 set dummy pwd; ac_word=$2
6420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6422 if test "${ac_cv_path_BINPWD+set}" = set; then
6423   echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425   case $BINPWD in
6426   [\\/]* | ?:[\\/]*)
6427   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6428   ;;
6429   *)
6430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6432 do
6433   IFS=$as_save_IFS
6434   test -z "$as_dir" && as_dir=.
6435   for ac_exec_ext in '' $ac_executable_extensions; do
6436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6437     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439     break 2
6440   fi
6441 done
6442 done
6443 IFS=$as_save_IFS
6445   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6446   ;;
6447 esac
6448 fi
6449 BINPWD=$ac_cv_path_BINPWD
6450 if test -n "$BINPWD"; then
6451   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6452 echo "${ECHO_T}$BINPWD" >&6; }
6453 else
6454   { echo "$as_me:$LINENO: result: no" >&5
6455 echo "${ECHO_T}no" >&6; }
6456 fi
6460 # Extract the first word of "dot", so it can be a program name with args.
6461 set dummy dot; ac_word=$2
6462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6464 if test "${ac_cv_path_DOT+set}" = set; then
6465   echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467   case $DOT in
6468   [\\/]* | ?:[\\/]*)
6469   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6470   ;;
6471   *)
6472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475   IFS=$as_save_IFS
6476   test -z "$as_dir" && as_dir=.
6477   for ac_exec_ext in '' $ac_executable_extensions; do
6478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6479     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481     break 2
6482   fi
6483 done
6484 done
6485 IFS=$as_save_IFS
6487   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6488   ;;
6489 esac
6490 fi
6491 DOT=$ac_cv_path_DOT
6492 if test -n "$DOT"; then
6493   { echo "$as_me:$LINENO: result: $DOT" >&5
6494 echo "${ECHO_T}$DOT" >&6; }
6495 else
6496   { echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6; }
6498 fi
6501 if test "$DOT" != "echo dot" ; then
6503 cat >>confdefs.h <<\_ACEOF
6504 #define HAVE_DOT 1
6505 _ACEOF
6507     if test "$llvm_cv_os_type" = "MingW" ; then
6508     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6509   fi
6511 cat >>confdefs.h <<_ACEOF
6512 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6513 _ACEOF
6515 fi
6517 # Find a good install program.  We prefer a C program (faster),
6518 # so one script is as good as another.  But avoid the broken or
6519 # incompatible versions:
6520 # SysV /etc/install, /usr/sbin/install
6521 # SunOS /usr/etc/install
6522 # IRIX /sbin/install
6523 # AIX /bin/install
6524 # AmigaOS /C/install, which installs bootblocks on floppy discs
6525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6528 # OS/2's system install, which has a completely different semantic
6529 # ./install, which can be erroneously created by make from ./install.sh.
6530 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6531 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6532 if test -z "$INSTALL"; then
6533 if test "${ac_cv_path_install+set}" = set; then
6534   echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541   # Account for people who put trailing slashes in PATH elements.
6542 case $as_dir/ in
6543   ./ | .// | /cC/* | \
6544   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6545   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6546   /usr/ucb/* ) ;;
6547   *)
6548     # OSF1 and SCO ODT 3.0 have their own names for install.
6549     # Don't use installbsd from OSF since it installs stuff as root
6550     # by default.
6551     for ac_prog in ginstall scoinst install; do
6552       for ac_exec_ext in '' $ac_executable_extensions; do
6553         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6554           if test $ac_prog = install &&
6555             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6556             # AIX install.  It has an incompatible calling convention.
6557             :
6558           elif test $ac_prog = install &&
6559             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6560             # program-specific install script used by HP pwplus--don't use.
6561             :
6562           else
6563             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6564             break 3
6565           fi
6566         fi
6567       done
6568     done
6569     ;;
6570 esac
6571 done
6572 IFS=$as_save_IFS
6575 fi
6576   if test "${ac_cv_path_install+set}" = set; then
6577     INSTALL=$ac_cv_path_install
6578   else
6579     # As a last resort, use the slow shell script.  Don't cache a
6580     # value for INSTALL within a source directory, because that will
6581     # break other packages using the cache if that directory is
6582     # removed, or if the value is a relative name.
6583     INSTALL=$ac_install_sh
6584   fi
6585 fi
6586 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6587 echo "${ECHO_T}$INSTALL" >&6; }
6589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6590 # It thinks the first close brace ends the variable substitution.
6591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6597 case "$INSTALL" in
6598  [\\/$]* | ?:[\\/]* ) ;;
6599  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6600 esac
6602 # Extract the first word of "bzip2", so it can be a program name with args.
6603 set dummy bzip2; ac_word=$2
6604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6606 if test "${ac_cv_path_BZIP2+set}" = set; then
6607   echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609   case $BZIP2 in
6610   [\\/]* | ?:[\\/]*)
6611   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6612   ;;
6613   *)
6614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619   for ac_exec_ext in '' $ac_executable_extensions; do
6620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6621     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6629   ;;
6630 esac
6631 fi
6632 BZIP2=$ac_cv_path_BZIP2
6633 if test -n "$BZIP2"; then
6634   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6635 echo "${ECHO_T}$BZIP2" >&6; }
6636 else
6637   { echo "$as_me:$LINENO: result: no" >&5
6638 echo "${ECHO_T}no" >&6; }
6639 fi
6642 # Extract the first word of "cat", so it can be a program name with args.
6643 set dummy cat; ac_word=$2
6644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6646 if test "${ac_cv_path_CAT+set}" = set; then
6647   echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649   case $CAT in
6650   [\\/]* | ?:[\\/]*)
6651   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6652   ;;
6653   *)
6654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657   IFS=$as_save_IFS
6658   test -z "$as_dir" && as_dir=.
6659   for ac_exec_ext in '' $ac_executable_extensions; do
6660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6661     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663     break 2
6664   fi
6665 done
6666 done
6667 IFS=$as_save_IFS
6669   ;;
6670 esac
6671 fi
6672 CAT=$ac_cv_path_CAT
6673 if test -n "$CAT"; then
6674   { echo "$as_me:$LINENO: result: $CAT" >&5
6675 echo "${ECHO_T}$CAT" >&6; }
6676 else
6677   { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6679 fi
6682 # Extract the first word of "doxygen", so it can be a program name with args.
6683 set dummy doxygen; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6687   echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689   case $DOXYGEN in
6690   [\\/]* | ?:[\\/]*)
6691   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6692   ;;
6693   *)
6694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697   IFS=$as_save_IFS
6698   test -z "$as_dir" && as_dir=.
6699   for ac_exec_ext in '' $ac_executable_extensions; do
6700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703     break 2
6704   fi
6705 done
6706 done
6707 IFS=$as_save_IFS
6709   ;;
6710 esac
6711 fi
6712 DOXYGEN=$ac_cv_path_DOXYGEN
6713 if test -n "$DOXYGEN"; then
6714   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6715 echo "${ECHO_T}$DOXYGEN" >&6; }
6716 else
6717   { echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6; }
6719 fi
6722 # Extract the first word of "groff", so it can be a program name with args.
6723 set dummy groff; ac_word=$2
6724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726 if test "${ac_cv_path_GROFF+set}" = set; then
6727   echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729   case $GROFF in
6730   [\\/]* | ?:[\\/]*)
6731   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6732   ;;
6733   *)
6734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6736 do
6737   IFS=$as_save_IFS
6738   test -z "$as_dir" && as_dir=.
6739   for ac_exec_ext in '' $ac_executable_extensions; do
6740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6741     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743     break 2
6744   fi
6745 done
6746 done
6747 IFS=$as_save_IFS
6749   ;;
6750 esac
6751 fi
6752 GROFF=$ac_cv_path_GROFF
6753 if test -n "$GROFF"; then
6754   { echo "$as_me:$LINENO: result: $GROFF" >&5
6755 echo "${ECHO_T}$GROFF" >&6; }
6756 else
6757   { echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6; }
6759 fi
6762 # Extract the first word of "gzip", so it can be a program name with args.
6763 set dummy gzip; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6767   echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769   case $GZIPBIN in
6770   [\\/]* | ?:[\\/]*)
6771   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6772   ;;
6773   *)
6774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777   IFS=$as_save_IFS
6778   test -z "$as_dir" && as_dir=.
6779   for ac_exec_ext in '' $ac_executable_extensions; do
6780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783     break 2
6784   fi
6785 done
6786 done
6787 IFS=$as_save_IFS
6789   ;;
6790 esac
6791 fi
6792 GZIPBIN=$ac_cv_path_GZIPBIN
6793 if test -n "$GZIPBIN"; then
6794   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6795 echo "${ECHO_T}$GZIPBIN" >&6; }
6796 else
6797   { echo "$as_me:$LINENO: result: no" >&5
6798 echo "${ECHO_T}no" >&6; }
6799 fi
6802 # Extract the first word of "pdfroff", so it can be a program name with args.
6803 set dummy pdfroff; ac_word=$2
6804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806 if test "${ac_cv_path_PDFROFF+set}" = set; then
6807   echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809   case $PDFROFF in
6810   [\\/]* | ?:[\\/]*)
6811   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6812   ;;
6813   *)
6814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819   for ac_exec_ext in '' $ac_executable_extensions; do
6820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6821     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823     break 2
6824   fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6829   ;;
6830 esac
6831 fi
6832 PDFROFF=$ac_cv_path_PDFROFF
6833 if test -n "$PDFROFF"; then
6834   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6835 echo "${ECHO_T}$PDFROFF" >&6; }
6836 else
6837   { echo "$as_me:$LINENO: result: no" >&5
6838 echo "${ECHO_T}no" >&6; }
6839 fi
6842 # Extract the first word of "zip", so it can be a program name with args.
6843 set dummy zip; ac_word=$2
6844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846 if test "${ac_cv_path_ZIP+set}" = set; then
6847   echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849   case $ZIP in
6850   [\\/]* | ?:[\\/]*)
6851   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6852   ;;
6853   *)
6854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859   for ac_exec_ext in '' $ac_executable_extensions; do
6860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6869   ;;
6870 esac
6871 fi
6872 ZIP=$ac_cv_path_ZIP
6873 if test -n "$ZIP"; then
6874   { echo "$as_me:$LINENO: result: $ZIP" >&5
6875 echo "${ECHO_T}$ZIP" >&6; }
6876 else
6877   { echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6; }
6879 fi
6882 for ac_prog in ocamlc
6883 do
6884   # Extract the first word of "$ac_prog", so it can be a program name with args.
6885 set dummy $ac_prog; ac_word=$2
6886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6888 if test "${ac_cv_path_OCAMLC+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891   case $OCAMLC in
6892   [\\/]* | ?:[\\/]*)
6893   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
6894   ;;
6895   *)
6896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901   for ac_exec_ext in '' $ac_executable_extensions; do
6902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6903     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
6904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908 done
6909 IFS=$as_save_IFS
6911   ;;
6912 esac
6913 fi
6914 OCAMLC=$ac_cv_path_OCAMLC
6915 if test -n "$OCAMLC"; then
6916   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
6917 echo "${ECHO_T}$OCAMLC" >&6; }
6918 else
6919   { echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6; }
6921 fi
6924   test -n "$OCAMLC" && break
6925 done
6927 for ac_prog in ocamlopt
6928 do
6929   # Extract the first word of "$ac_prog", so it can be a program name with args.
6930 set dummy $ac_prog; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   case $OCAMLOPT in
6937   [\\/]* | ?:[\\/]*)
6938   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
6939   ;;
6940   *)
6941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946   for ac_exec_ext in '' $ac_executable_extensions; do
6947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
6949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953 done
6954 IFS=$as_save_IFS
6956   ;;
6957 esac
6958 fi
6959 OCAMLOPT=$ac_cv_path_OCAMLOPT
6960 if test -n "$OCAMLOPT"; then
6961   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
6962 echo "${ECHO_T}$OCAMLOPT" >&6; }
6963 else
6964   { echo "$as_me:$LINENO: result: no" >&5
6965 echo "${ECHO_T}no" >&6; }
6966 fi
6969   test -n "$OCAMLOPT" && break
6970 done
6972 for ac_prog in ocamldep
6973 do
6974   # Extract the first word of "$ac_prog", so it can be a program name with args.
6975 set dummy $ac_prog; ac_word=$2
6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981   case $OCAMLDEP in
6982   [\\/]* | ?:[\\/]*)
6983   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
6984   ;;
6985   *)
6986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989   IFS=$as_save_IFS
6990   test -z "$as_dir" && as_dir=.
6991   for ac_exec_ext in '' $ac_executable_extensions; do
6992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6993     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
6994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995     break 2
6996   fi
6997 done
6998 done
6999 IFS=$as_save_IFS
7001   ;;
7002 esac
7003 fi
7004 OCAMLDEP=$ac_cv_path_OCAMLDEP
7005 if test -n "$OCAMLDEP"; then
7006   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7007 echo "${ECHO_T}$OCAMLDEP" >&6; }
7008 else
7009   { echo "$as_me:$LINENO: result: no" >&5
7010 echo "${ECHO_T}no" >&6; }
7011 fi
7014   test -n "$OCAMLDEP" && break
7015 done
7017 for ac_prog in ocamldoc
7018 do
7019   # Extract the first word of "$ac_prog", so it can be a program name with args.
7020 set dummy $ac_prog; ac_word=$2
7021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7024   echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026   case $OCAMLDOC in
7027   [\\/]* | ?:[\\/]*)
7028   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7029   ;;
7030   *)
7031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034   IFS=$as_save_IFS
7035   test -z "$as_dir" && as_dir=.
7036   for ac_exec_ext in '' $ac_executable_extensions; do
7037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7038     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040     break 2
7041   fi
7042 done
7043 done
7044 IFS=$as_save_IFS
7046   ;;
7047 esac
7048 fi
7049 OCAMLDOC=$ac_cv_path_OCAMLDOC
7050 if test -n "$OCAMLDOC"; then
7051   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7052 echo "${ECHO_T}$OCAMLDOC" >&6; }
7053 else
7054   { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7056 fi
7059   test -n "$OCAMLDOC" && break
7060 done
7062 for ac_prog in gas as
7063 do
7064   # Extract the first word of "$ac_prog", so it can be a program name with args.
7065 set dummy $ac_prog; ac_word=$2
7066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7068 if test "${ac_cv_path_GAS+set}" = set; then
7069   echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071   case $GAS in
7072   [\\/]* | ?:[\\/]*)
7073   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7074   ;;
7075   *)
7076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7078 do
7079   IFS=$as_save_IFS
7080   test -z "$as_dir" && as_dir=.
7081   for ac_exec_ext in '' $ac_executable_extensions; do
7082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7083     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085     break 2
7086   fi
7087 done
7088 done
7089 IFS=$as_save_IFS
7091   ;;
7092 esac
7093 fi
7094 GAS=$ac_cv_path_GAS
7095 if test -n "$GAS"; then
7096   { echo "$as_me:$LINENO: result: $GAS" >&5
7097 echo "${ECHO_T}$GAS" >&6; }
7098 else
7099   { echo "$as_me:$LINENO: result: no" >&5
7100 echo "${ECHO_T}no" >&6; }
7101 fi
7104   test -n "$GAS" && break
7105 done
7108 { echo "$as_me:$LINENO: checking for linker version" >&5
7109 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7110 if test "${llvm_cv_link_version+set}" = set; then
7111   echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7114    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7116    # Check for ld64.
7117    if (echo "$version_string" | grep -q "ld64"); then
7118      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7119    else
7120      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7121    fi
7123 fi
7124 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7125 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7127 cat >>confdefs.h <<_ACEOF
7128 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7129 _ACEOF
7134 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7135 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7136 if test "${llvm_cv_link_use_r+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139    ac_ext=c
7140 ac_cpp='$CPP $CPPFLAGS'
7141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7145   oldcflags="$CFLAGS"
7146   CFLAGS="$CFLAGS -Wl,-R."
7147   cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h.  */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h.  */
7154 int
7155 main ()
7158   ;
7159   return 0;
7161 _ACEOF
7162 rm -f conftest.$ac_objext conftest$ac_exeext
7163 if { (ac_try="$ac_link"
7164 case "(($ac_try" in
7165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166   *) ac_try_echo=$ac_try;;
7167 esac
7168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169   (eval "$ac_link") 2>conftest.er1
7170   ac_status=$?
7171   grep -v '^ *+' conftest.er1 >conftest.err
7172   rm -f conftest.er1
7173   cat conftest.err >&5
7174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175   (exit $ac_status); } &&
7176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7177   { (case "(($ac_try" in
7178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179   *) ac_try_echo=$ac_try;;
7180 esac
7181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182   (eval "$ac_try") 2>&5
7183   ac_status=$?
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); }; } &&
7186          { ac_try='test -s conftest$ac_exeext'
7187   { (case "(($ac_try" in
7188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189   *) ac_try_echo=$ac_try;;
7190 esac
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192   (eval "$ac_try") 2>&5
7193   ac_status=$?
7194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195   (exit $ac_status); }; }; then
7196   llvm_cv_link_use_r=yes
7197 else
7198   echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7201         llvm_cv_link_use_r=no
7202 fi
7204 rm -f core conftest.err conftest.$ac_objext \
7205       conftest$ac_exeext conftest.$ac_ext
7206   CFLAGS="$oldcflags"
7207   ac_ext=c
7208 ac_cpp='$CPP $CPPFLAGS'
7209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7214 fi
7215 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7216 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7217 if test "$llvm_cv_link_use_r" = yes ; then
7219 cat >>confdefs.h <<\_ACEOF
7220 #define HAVE_LINK_R 1
7221 _ACEOF
7223   fi
7226 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7227 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7228 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231    ac_ext=c
7232 ac_cpp='$CPP $CPPFLAGS'
7233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7237   oldcflags="$CFLAGS"
7238   CFLAGS="$CFLAGS -rdynamic"
7239   cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h.  */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h.  */
7246 int
7247 main ()
7250   ;
7251   return 0;
7253 _ACEOF
7254 rm -f conftest.$ac_objext conftest$ac_exeext
7255 if { (ac_try="$ac_link"
7256 case "(($ac_try" in
7257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258   *) ac_try_echo=$ac_try;;
7259 esac
7260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261   (eval "$ac_link") 2>conftest.er1
7262   ac_status=$?
7263   grep -v '^ *+' conftest.er1 >conftest.err
7264   rm -f conftest.er1
7265   cat conftest.err >&5
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); } &&
7268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7269   { (case "(($ac_try" in
7270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271   *) ac_try_echo=$ac_try;;
7272 esac
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274   (eval "$ac_try") 2>&5
7275   ac_status=$?
7276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277   (exit $ac_status); }; } &&
7278          { ac_try='test -s conftest$ac_exeext'
7279   { (case "(($ac_try" in
7280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281   *) ac_try_echo=$ac_try;;
7282 esac
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284   (eval "$ac_try") 2>&5
7285   ac_status=$?
7286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287   (exit $ac_status); }; }; then
7288   llvm_cv_link_use_export_dynamic=yes
7289 else
7290   echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293         llvm_cv_link_use_export_dynamic=no
7294 fi
7296 rm -f core conftest.err conftest.$ac_objext \
7297       conftest$ac_exeext conftest.$ac_ext
7298   CFLAGS="$oldcflags"
7299   ac_ext=c
7300 ac_cpp='$CPP $CPPFLAGS'
7301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7306 fi
7307 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7308 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7309 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7311 cat >>confdefs.h <<\_ACEOF
7312 #define HAVE_LINK_EXPORT_DYNAMIC 1
7313 _ACEOF
7315   fi
7318 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7319 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7320 if test "${llvm_cv_link_use_version_script+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323    ac_ext=c
7324 ac_cpp='$CPP $CPPFLAGS'
7325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329   oldcflags="$CFLAGS"
7331   # The following code is from the autoconf manual,
7332   # "11.13: Limitations of Usual Tools".
7333   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7334   # Use mktemp if possible; otherwise fall back on mkdir,
7335   # with $RANDOM to make collisions less likely.
7336   : ${TMPDIR=/tmp}
7337   {
7338     tmp=`
7339       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7340     ` &&
7341     test -n "$tmp" && test -d "$tmp"
7342   } || {
7343     tmp=$TMPDIR/foo$$-$RANDOM
7344     (umask 077 && mkdir "$tmp")
7345   } || exit $?
7347   echo "{" > "$tmp/export.map"
7348   echo "  global: main;" >> "$tmp/export.map"
7349   echo "  local: *;" >> "$tmp/export.map"
7350   echo "};" >> "$tmp/export.map"
7352   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7353   cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h.  */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h.  */
7360 int
7361 main ()
7364   ;
7365   return 0;
7367 _ACEOF
7368 rm -f conftest.$ac_objext conftest$ac_exeext
7369 if { (ac_try="$ac_link"
7370 case "(($ac_try" in
7371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372   *) ac_try_echo=$ac_try;;
7373 esac
7374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7375   (eval "$ac_link") 2>conftest.er1
7376   ac_status=$?
7377   grep -v '^ *+' conftest.er1 >conftest.err
7378   rm -f conftest.er1
7379   cat conftest.err >&5
7380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); } &&
7382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7383   { (case "(($ac_try" in
7384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385   *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388   (eval "$ac_try") 2>&5
7389   ac_status=$?
7390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391   (exit $ac_status); }; } &&
7392          { ac_try='test -s conftest$ac_exeext'
7393   { (case "(($ac_try" in
7394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395   *) ac_try_echo=$ac_try;;
7396 esac
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398   (eval "$ac_try") 2>&5
7399   ac_status=$?
7400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401   (exit $ac_status); }; }; then
7402   llvm_cv_link_use_version_script=yes
7403 else
7404   echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7407         llvm_cv_link_use_version_script=no
7408 fi
7410 rm -f core conftest.err conftest.$ac_objext \
7411       conftest$ac_exeext conftest.$ac_ext
7412   rm "$tmp/export.map"
7413   rmdir "$tmp"
7414   CFLAGS="$oldcflags"
7415   ac_ext=c
7416 ac_cpp='$CPP $CPPFLAGS'
7417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7422 fi
7423 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7424 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7425 if test "$llvm_cv_link_use_version_script" = yes ; then
7426   HAVE_LINK_VERSION_SCRIPT=1
7428   fi
7432 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7433 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7434 if test "${ac_cv_path_GREP+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   # Extract the first word of "grep ggrep" to use in msg output
7438 if test -z "$GREP"; then
7439 set dummy grep ggrep; ac_prog_name=$2
7440 if test "${ac_cv_path_GREP+set}" = set; then
7441   echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443   ac_path_GREP_found=false
7444 # Loop through the user's path and test for each of PROGNAME-LIST
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7447 do
7448   IFS=$as_save_IFS
7449   test -z "$as_dir" && as_dir=.
7450   for ac_prog in grep ggrep; do
7451   for ac_exec_ext in '' $ac_executable_extensions; do
7452     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7453     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7454     # Check for GNU ac_path_GREP and select it if it is found.
7455   # Check for GNU $ac_path_GREP
7456 case `"$ac_path_GREP" --version 2>&1` in
7457 *GNU*)
7458   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7459 *)
7460   ac_count=0
7461   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7462   while :
7463   do
7464     cat "conftest.in" "conftest.in" >"conftest.tmp"
7465     mv "conftest.tmp" "conftest.in"
7466     cp "conftest.in" "conftest.nl"
7467     echo 'GREP' >> "conftest.nl"
7468     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7469     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7470     ac_count=`expr $ac_count + 1`
7471     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7472       # Best one so far, save it but keep looking for a better one
7473       ac_cv_path_GREP="$ac_path_GREP"
7474       ac_path_GREP_max=$ac_count
7475     fi
7476     # 10*(2^10) chars as input seems more than enough
7477     test $ac_count -gt 10 && break
7478   done
7479   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7480 esac
7483     $ac_path_GREP_found && break 3
7484   done
7485 done
7487 done
7488 IFS=$as_save_IFS
7491 fi
7493 GREP="$ac_cv_path_GREP"
7494 if test -z "$GREP"; then
7495   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7496 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7497    { (exit 1); exit 1; }; }
7498 fi
7500 else
7501   ac_cv_path_GREP=$GREP
7502 fi
7505 fi
7506 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7507 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7508  GREP="$ac_cv_path_GREP"
7511 { echo "$as_me:$LINENO: checking for egrep" >&5
7512 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7513 if test "${ac_cv_path_EGREP+set}" = set; then
7514   echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7517    then ac_cv_path_EGREP="$GREP -E"
7518    else
7519      # Extract the first word of "egrep" to use in msg output
7520 if test -z "$EGREP"; then
7521 set dummy egrep; ac_prog_name=$2
7522 if test "${ac_cv_path_EGREP+set}" = set; then
7523   echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525   ac_path_EGREP_found=false
7526 # Loop through the user's path and test for each of PROGNAME-LIST
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7529 do
7530   IFS=$as_save_IFS
7531   test -z "$as_dir" && as_dir=.
7532   for ac_prog in egrep; do
7533   for ac_exec_ext in '' $ac_executable_extensions; do
7534     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7535     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7536     # Check for GNU ac_path_EGREP and select it if it is found.
7537   # Check for GNU $ac_path_EGREP
7538 case `"$ac_path_EGREP" --version 2>&1` in
7539 *GNU*)
7540   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7541 *)
7542   ac_count=0
7543   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7544   while :
7545   do
7546     cat "conftest.in" "conftest.in" >"conftest.tmp"
7547     mv "conftest.tmp" "conftest.in"
7548     cp "conftest.in" "conftest.nl"
7549     echo 'EGREP' >> "conftest.nl"
7550     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7551     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7552     ac_count=`expr $ac_count + 1`
7553     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7554       # Best one so far, save it but keep looking for a better one
7555       ac_cv_path_EGREP="$ac_path_EGREP"
7556       ac_path_EGREP_max=$ac_count
7557     fi
7558     # 10*(2^10) chars as input seems more than enough
7559     test $ac_count -gt 10 && break
7560   done
7561   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7562 esac
7565     $ac_path_EGREP_found && break 3
7566   done
7567 done
7569 done
7570 IFS=$as_save_IFS
7573 fi
7575 EGREP="$ac_cv_path_EGREP"
7576 if test -z "$EGREP"; then
7577   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7578 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7579    { (exit 1); exit 1; }; }
7580 fi
7582 else
7583   ac_cv_path_EGREP=$EGREP
7584 fi
7587    fi
7588 fi
7589 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7590 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7591  EGREP="$ac_cv_path_EGREP"
7594 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7595 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7596 if test "${ac_cv_header_stdc+set}" = set; then
7597   echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599   cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h.  */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h.  */
7605 #include <stdlib.h>
7606 #include <stdarg.h>
7607 #include <string.h>
7608 #include <float.h>
7610 int
7611 main ()
7614   ;
7615   return 0;
7617 _ACEOF
7618 rm -f conftest.$ac_objext
7619 if { (ac_try="$ac_compile"
7620 case "(($ac_try" in
7621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7622   *) ac_try_echo=$ac_try;;
7623 esac
7624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7625   (eval "$ac_compile") 2>conftest.er1
7626   ac_status=$?
7627   grep -v '^ *+' conftest.er1 >conftest.err
7628   rm -f conftest.er1
7629   cat conftest.err >&5
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); } &&
7632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7633   { (case "(($ac_try" in
7634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635   *) ac_try_echo=$ac_try;;
7636 esac
7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7638   (eval "$ac_try") 2>&5
7639   ac_status=$?
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); }; } &&
7642          { ac_try='test -s conftest.$ac_objext'
7643   { (case "(($ac_try" in
7644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645   *) ac_try_echo=$ac_try;;
7646 esac
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648   (eval "$ac_try") 2>&5
7649   ac_status=$?
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); }; }; then
7652   ac_cv_header_stdc=yes
7653 else
7654   echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7657         ac_cv_header_stdc=no
7658 fi
7660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 if test $ac_cv_header_stdc = yes; then
7663   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7664   cat >conftest.$ac_ext <<_ACEOF
7665 /* confdefs.h.  */
7666 _ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h.  */
7670 #include <string.h>
7672 _ACEOF
7673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7674   $EGREP "memchr" >/dev/null 2>&1; then
7675   :
7676 else
7677   ac_cv_header_stdc=no
7678 fi
7679 rm -f conftest*
7681 fi
7683 if test $ac_cv_header_stdc = yes; then
7684   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7685   cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h.  */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h.  */
7691 #include <stdlib.h>
7693 _ACEOF
7694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7695   $EGREP "free" >/dev/null 2>&1; then
7696   :
7697 else
7698   ac_cv_header_stdc=no
7699 fi
7700 rm -f conftest*
7702 fi
7704 if test $ac_cv_header_stdc = yes; then
7705   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7706   if test "$cross_compiling" = yes; then
7707   :
7708 else
7709   cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h.  */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h.  */
7715 #include <ctype.h>
7716 #include <stdlib.h>
7717 #if ((' ' & 0x0FF) == 0x020)
7718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7720 #else
7721 # define ISLOWER(c) \
7722                    (('a' <= (c) && (c) <= 'i') \
7723                      || ('j' <= (c) && (c) <= 'r') \
7724                      || ('s' <= (c) && (c) <= 'z'))
7725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7726 #endif
7728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7729 int
7730 main ()
7732   int i;
7733   for (i = 0; i < 256; i++)
7734     if (XOR (islower (i), ISLOWER (i))
7735         || toupper (i) != TOUPPER (i))
7736       return 2;
7737   return 0;
7739 _ACEOF
7740 rm -f conftest$ac_exeext
7741 if { (ac_try="$ac_link"
7742 case "(($ac_try" in
7743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744   *) ac_try_echo=$ac_try;;
7745 esac
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747   (eval "$ac_link") 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7751   { (case "(($ac_try" in
7752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753   *) ac_try_echo=$ac_try;;
7754 esac
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756   (eval "$ac_try") 2>&5
7757   ac_status=$?
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); }; }; then
7760   :
7761 else
7762   echo "$as_me: program exited with status $ac_status" >&5
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7766 ( exit $ac_status )
7767 ac_cv_header_stdc=no
7768 fi
7769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7770 fi
7773 fi
7774 fi
7775 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7776 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7777 if test $ac_cv_header_stdc = yes; then
7779 cat >>confdefs.h <<\_ACEOF
7780 #define STDC_HEADERS 1
7781 _ACEOF
7783 fi
7785 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7795 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7796                   inttypes.h stdint.h unistd.h
7797 do
7798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7802   echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804   cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h.  */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h.  */
7810 $ac_includes_default
7812 #include <$ac_header>
7813 _ACEOF
7814 rm -f conftest.$ac_objext
7815 if { (ac_try="$ac_compile"
7816 case "(($ac_try" in
7817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818   *) ac_try_echo=$ac_try;;
7819 esac
7820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821   (eval "$ac_compile") 2>conftest.er1
7822   ac_status=$?
7823   grep -v '^ *+' conftest.er1 >conftest.err
7824   rm -f conftest.er1
7825   cat conftest.err >&5
7826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827   (exit $ac_status); } &&
7828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7829   { (case "(($ac_try" in
7830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831   *) ac_try_echo=$ac_try;;
7832 esac
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834   (eval "$ac_try") 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); }; } &&
7838          { ac_try='test -s conftest.$ac_objext'
7839   { (case "(($ac_try" in
7840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841   *) ac_try_echo=$ac_try;;
7842 esac
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844   (eval "$ac_try") 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); }; }; then
7848   eval "$as_ac_Header=yes"
7849 else
7850   echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853         eval "$as_ac_Header=no"
7854 fi
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 fi
7858 ac_res=`eval echo '${'$as_ac_Header'}'`
7859                { echo "$as_me:$LINENO: result: $ac_res" >&5
7860 echo "${ECHO_T}$ac_res" >&6; }
7861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7862   cat >>confdefs.h <<_ACEOF
7863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7864 _ACEOF
7866 fi
7868 done
7872 for ac_header in errno.h
7873 do
7874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7876   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7879   echo $ECHO_N "(cached) $ECHO_C" >&6
7880 fi
7881 ac_res=`eval echo '${'$as_ac_Header'}'`
7882                { echo "$as_me:$LINENO: result: $ac_res" >&5
7883 echo "${ECHO_T}$ac_res" >&6; }
7884 else
7885   # Is the header compilable?
7886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7888 cat >conftest.$ac_ext <<_ACEOF
7889 /* confdefs.h.  */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h.  */
7894 $ac_includes_default
7895 #include <$ac_header>
7896 _ACEOF
7897 rm -f conftest.$ac_objext
7898 if { (ac_try="$ac_compile"
7899 case "(($ac_try" in
7900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901   *) ac_try_echo=$ac_try;;
7902 esac
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904   (eval "$ac_compile") 2>conftest.er1
7905   ac_status=$?
7906   grep -v '^ *+' conftest.er1 >conftest.err
7907   rm -f conftest.er1
7908   cat conftest.err >&5
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); } &&
7911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7912   { (case "(($ac_try" in
7913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914   *) ac_try_echo=$ac_try;;
7915 esac
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917   (eval "$ac_try") 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; } &&
7921          { ac_try='test -s conftest.$ac_objext'
7922   { (case "(($ac_try" in
7923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924   *) ac_try_echo=$ac_try;;
7925 esac
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927   (eval "$ac_try") 2>&5
7928   ac_status=$?
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); }; }; then
7931   ac_header_compiler=yes
7932 else
7933   echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936         ac_header_compiler=no
7937 fi
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7941 echo "${ECHO_T}$ac_header_compiler" >&6; }
7943 # Is the header present?
7944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7946 cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h.  */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h.  */
7952 #include <$ac_header>
7953 _ACEOF
7954 if { (ac_try="$ac_cpp conftest.$ac_ext"
7955 case "(($ac_try" in
7956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957   *) ac_try_echo=$ac_try;;
7958 esac
7959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7961   ac_status=$?
7962   grep -v '^ *+' conftest.er1 >conftest.err
7963   rm -f conftest.er1
7964   cat conftest.err >&5
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); } >/dev/null; then
7967   if test -s conftest.err; then
7968     ac_cpp_err=$ac_c_preproc_warn_flag
7969     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7970   else
7971     ac_cpp_err=
7972   fi
7973 else
7974   ac_cpp_err=yes
7975 fi
7976 if test -z "$ac_cpp_err"; then
7977   ac_header_preproc=yes
7978 else
7979   echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7982   ac_header_preproc=no
7983 fi
7985 rm -f conftest.err conftest.$ac_ext
7986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7987 echo "${ECHO_T}$ac_header_preproc" >&6; }
7989 # So?  What about this header?
7990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7991   yes:no: )
7992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7996     ac_header_preproc=yes
7997     ;;
7998   no:yes:* )
7999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8001     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8002 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8003     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8005     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8006 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8009     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8011     ( cat <<\_ASBOX
8012 ## ------------------------------------ ##
8013 ## Report this to http://llvm.org/bugs/ ##
8014 ## ------------------------------------ ##
8015 _ASBOX
8016      ) | sed "s/^/$as_me: WARNING:     /" >&2
8017     ;;
8018 esac
8019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8022   echo $ECHO_N "(cached) $ECHO_C" >&6
8023 else
8024   eval "$as_ac_Header=\$ac_header_preproc"
8025 fi
8026 ac_res=`eval echo '${'$as_ac_Header'}'`
8027                { echo "$as_me:$LINENO: result: $ac_res" >&5
8028 echo "${ECHO_T}$ac_res" >&6; }
8030 fi
8031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8032   cat >>confdefs.h <<_ACEOF
8033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8034 _ACEOF
8036 fi
8038 done
8041 case "$llvm_cv_os_type" in
8042   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8043   Darwin) llvm_shlib_ext=.dylib ;;
8044   *) llvm_shlib_ext=.so ;;
8045 esac
8048 cat >>confdefs.h <<_ACEOF
8049 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8050 _ACEOF
8053 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8054 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8056 ICC=no
8057 IXX=no
8058 case $CC in
8059   icc*|icpc*)
8060     ICC=yes
8061     IXX=yes
8062     ;;
8063    *)
8064     ;;
8065 esac
8067 if test "$GCC" != "yes" && test "$ICC" != "yes"
8068 then
8069   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8070 echo "$as_me: error: gcc|icc required but not found" >&2;}
8071    { (exit 1); exit 1; }; }
8072 fi
8074 if test "$GXX" != "yes" && test "$IXX" != "yes"
8075 then
8076   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8077 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8078    { (exit 1); exit 1; }; }
8079 fi
8081 if test "$GCC" = "yes"
8082 then
8083   cat >conftest.$ac_ext <<_ACEOF
8085   /* confdefs.h.  */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h.  */
8091     #if !defined(__GNUC__) || __GNUC__ < 3
8092     #error Unsupported GCC version
8093     #endif
8096 _ACEOF
8097 rm -f conftest.$ac_objext
8098 if { (ac_try="$ac_compile"
8099 case "(($ac_try" in
8100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101   *) ac_try_echo=$ac_try;;
8102 esac
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104   (eval "$ac_compile") 2>conftest.er1
8105   ac_status=$?
8106   grep -v '^ *+' conftest.er1 >conftest.err
8107   rm -f conftest.er1
8108   cat conftest.err >&5
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } &&
8111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8112   { (case "(($ac_try" in
8113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114   *) ac_try_echo=$ac_try;;
8115 esac
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117   (eval "$ac_try") 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; } &&
8121          { ac_try='test -s conftest.$ac_objext'
8122   { (case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127   (eval "$ac_try") 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; }; then
8131   :
8132 else
8133   echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8137 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8138    { (exit 1); exit 1; }; }
8139 fi
8141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 fi
8144 if test -z "$llvm_cv_gnu_make_command"
8145 then
8146   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8147 echo "$as_me: error: GNU Make required but not found" >&2;}
8148    { (exit 1); exit 1; }; }
8149 fi
8151 { echo "$as_me:$LINENO: result: ok" >&5
8152 echo "${ECHO_T}ok" >&6; }
8154 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8155 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8156 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8158 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8160 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8163 NO_UNINITIALIZED=
8164 NO_MAYBE_UNINITIALIZED=
8165 if test "$GXX" = "yes"
8166 then
8167   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8169         if test -z "$NO_MAYBE_UNINITIALIZED"
8170   then
8171     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8173   fi
8174 fi
8175 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8176 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8179 # Check whether --with-python was given.
8180 if test "${with_python+set}" = set; then
8181   withval=$with_python; PYTHON="$withval"
8182 fi
8185 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8186   { echo "$as_me:$LINENO: checking for python" >&5
8187 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8188   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8189 echo "${ECHO_T}user defined: $with_python" >&6; }
8190 else
8191   if test -n "$PYTHON" ; then
8192     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8193 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8194   fi
8196   # Extract the first word of "python python2 python26", so it can be a program name with args.
8197 set dummy python python2 python26; ac_word=$2
8198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8200 if test "${ac_cv_path_PYTHON+set}" = set; then
8201   echo $ECHO_N "(cached) $ECHO_C" >&6
8202 else
8203   case $PYTHON in
8204   [\\/]* | ?:[\\/]*)
8205   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8206   ;;
8207   *)
8208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209 for as_dir in $PATH
8210 do
8211   IFS=$as_save_IFS
8212   test -z "$as_dir" && as_dir=.
8213   for ac_exec_ext in '' $ac_executable_extensions; do
8214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8215     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8217     break 2
8218   fi
8219 done
8220 done
8221 IFS=$as_save_IFS
8223   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8224 echo "${ECHO_T}not found" >&6; }
8225                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8226 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8227    { (exit 1); exit 1; }; }"
8228   ;;
8229 esac
8230 fi
8231 PYTHON=$ac_cv_path_PYTHON
8232 if test -n "$PYTHON"; then
8233   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8234 echo "${ECHO_T}$PYTHON" >&6; }
8235 else
8236   { echo "$as_me:$LINENO: result: no" >&5
8237 echo "${ECHO_T}no" >&6; }
8238 fi
8241 fi
8243 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8244 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8245 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8246 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8247 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8248 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8249 if test "$ac_python_version_major" -gt "2" || \
8250    (test "$ac_python_version_major" -eq "2" && \
8251     test "$ac_python_version_minor" -ge "5") ; then
8252   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8253 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8254 else
8255   { echo "$as_me:$LINENO: result: not found" >&5
8256 echo "${ECHO_T}not found" >&6; }
8257   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8258 See \`config.log' for more details." >&5
8259 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8260 See \`config.log' for more details." >&2;}
8261    { (exit 1); exit 1; }; }
8262 fi
8266 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8267 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8268 if test "${ac_cv_lib_m_sin+set}" = set; then
8269   echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271   ac_check_lib_save_LIBS=$LIBS
8272 LIBS="-lm  $LIBS"
8273 cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8280 /* Override any GCC internal prototype to avoid an error.
8281    Use char because int might match the return type of a GCC
8282    builtin and then its argument prototype would still apply.  */
8283 #ifdef __cplusplus
8284 extern "C"
8285 #endif
8286 char sin ();
8287 int
8288 main ()
8290 return sin ();
8291   ;
8292   return 0;
8294 _ACEOF
8295 rm -f conftest.$ac_objext conftest$ac_exeext
8296 if { (ac_try="$ac_link"
8297 case "(($ac_try" in
8298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299   *) ac_try_echo=$ac_try;;
8300 esac
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302   (eval "$ac_link") 2>conftest.er1
8303   ac_status=$?
8304   grep -v '^ *+' conftest.er1 >conftest.err
8305   rm -f conftest.er1
8306   cat conftest.err >&5
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); } &&
8309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8310   { (case "(($ac_try" in
8311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312   *) ac_try_echo=$ac_try;;
8313 esac
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315   (eval "$ac_try") 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; } &&
8319          { ac_try='test -s conftest$ac_exeext'
8320   { (case "(($ac_try" in
8321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322   *) ac_try_echo=$ac_try;;
8323 esac
8324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325   (eval "$ac_try") 2>&5
8326   ac_status=$?
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); }; }; then
8329   ac_cv_lib_m_sin=yes
8330 else
8331   echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8334         ac_cv_lib_m_sin=no
8335 fi
8337 rm -f core conftest.err conftest.$ac_objext \
8338       conftest$ac_exeext conftest.$ac_ext
8339 LIBS=$ac_check_lib_save_LIBS
8340 fi
8341 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8342 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8343 if test $ac_cv_lib_m_sin = yes; then
8344   cat >>confdefs.h <<_ACEOF
8345 #define HAVE_LIBM 1
8346 _ACEOF
8348   LIBS="-lm $LIBS"
8350 fi
8352 if test "$llvm_cv_os_type" = "MingW" ; then
8354 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8355 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8356 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8357   echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359   ac_check_lib_save_LIBS=$LIBS
8360 LIBS="-limagehlp  $LIBS"
8361 cat >conftest.$ac_ext <<_ACEOF
8362 /* confdefs.h.  */
8363 _ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h.  */
8369 int
8370 main ()
8372 return main ();
8373   ;
8374   return 0;
8376 _ACEOF
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (ac_try="$ac_link"
8379 case "(($ac_try" in
8380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381   *) ac_try_echo=$ac_try;;
8382 esac
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384   (eval "$ac_link") 2>conftest.er1
8385   ac_status=$?
8386   grep -v '^ *+' conftest.er1 >conftest.err
8387   rm -f conftest.er1
8388   cat conftest.err >&5
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); } &&
8391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8392   { (case "(($ac_try" in
8393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394   *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397   (eval "$ac_try") 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); }; } &&
8401          { ac_try='test -s conftest$ac_exeext'
8402   { (case "(($ac_try" in
8403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404   *) ac_try_echo=$ac_try;;
8405 esac
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407   (eval "$ac_try") 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   ac_cv_lib_imagehlp_main=yes
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416         ac_cv_lib_imagehlp_main=no
8417 fi
8419 rm -f core conftest.err conftest.$ac_objext \
8420       conftest$ac_exeext conftest.$ac_ext
8421 LIBS=$ac_check_lib_save_LIBS
8422 fi
8423 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8424 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8425 if test $ac_cv_lib_imagehlp_main = yes; then
8426   cat >>confdefs.h <<_ACEOF
8427 #define HAVE_LIBIMAGEHLP 1
8428 _ACEOF
8430   LIBS="-limagehlp $LIBS"
8432 fi
8435 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8436 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8437 if test "${ac_cv_lib_psapi_main+set}" = set; then
8438   echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440   ac_check_lib_save_LIBS=$LIBS
8441 LIBS="-lpsapi  $LIBS"
8442 cat >conftest.$ac_ext <<_ACEOF
8443 /* confdefs.h.  */
8444 _ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h.  */
8450 int
8451 main ()
8453 return main ();
8454   ;
8455   return 0;
8457 _ACEOF
8458 rm -f conftest.$ac_objext conftest$ac_exeext
8459 if { (ac_try="$ac_link"
8460 case "(($ac_try" in
8461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462   *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465   (eval "$ac_link") 2>conftest.er1
8466   ac_status=$?
8467   grep -v '^ *+' conftest.er1 >conftest.err
8468   rm -f conftest.er1
8469   cat conftest.err >&5
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); } &&
8472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8473   { (case "(($ac_try" in
8474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475   *) ac_try_echo=$ac_try;;
8476 esac
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478   (eval "$ac_try") 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; } &&
8482          { ac_try='test -s conftest$ac_exeext'
8483   { (case "(($ac_try" in
8484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485   *) ac_try_echo=$ac_try;;
8486 esac
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488   (eval "$ac_try") 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; }; then
8492   ac_cv_lib_psapi_main=yes
8493 else
8494   echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8497         ac_cv_lib_psapi_main=no
8498 fi
8500 rm -f core conftest.err conftest.$ac_objext \
8501       conftest$ac_exeext conftest.$ac_ext
8502 LIBS=$ac_check_lib_save_LIBS
8503 fi
8504 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8505 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8506 if test $ac_cv_lib_psapi_main = yes; then
8507   cat >>confdefs.h <<_ACEOF
8508 #define HAVE_LIBPSAPI 1
8509 _ACEOF
8511   LIBS="-lpsapi $LIBS"
8513 fi
8516 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8517 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8518 if test "${ac_cv_lib_shell32_main+set}" = set; then
8519   echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521   ac_check_lib_save_LIBS=$LIBS
8522 LIBS="-lshell32  $LIBS"
8523 cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h.  */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h.  */
8531 int
8532 main ()
8534 return main ();
8535   ;
8536   return 0;
8538 _ACEOF
8539 rm -f conftest.$ac_objext conftest$ac_exeext
8540 if { (ac_try="$ac_link"
8541 case "(($ac_try" in
8542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543   *) ac_try_echo=$ac_try;;
8544 esac
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546   (eval "$ac_link") 2>conftest.er1
8547   ac_status=$?
8548   grep -v '^ *+' conftest.er1 >conftest.err
8549   rm -f conftest.er1
8550   cat conftest.err >&5
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); } &&
8553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8554   { (case "(($ac_try" in
8555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556   *) ac_try_echo=$ac_try;;
8557 esac
8558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559   (eval "$ac_try") 2>&5
8560   ac_status=$?
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); }; } &&
8563          { ac_try='test -s conftest$ac_exeext'
8564   { (case "(($ac_try" in
8565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566   *) ac_try_echo=$ac_try;;
8567 esac
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569   (eval "$ac_try") 2>&5
8570   ac_status=$?
8571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); }; }; then
8573   ac_cv_lib_shell32_main=yes
8574 else
8575   echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8578         ac_cv_lib_shell32_main=no
8579 fi
8581 rm -f core conftest.err conftest.$ac_objext \
8582       conftest$ac_exeext conftest.$ac_ext
8583 LIBS=$ac_check_lib_save_LIBS
8584 fi
8585 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8586 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8587 if test $ac_cv_lib_shell32_main = yes; then
8588   cat >>confdefs.h <<_ACEOF
8589 #define HAVE_LIBSHELL32 1
8590 _ACEOF
8592   LIBS="-lshell32 $LIBS"
8594 fi
8596 fi
8598 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8599 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8600 if test "${ac_cv_search_dlopen+set}" = set; then
8601   echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603   ac_func_search_save_LIBS=$LIBS
8604 cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h.  */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h.  */
8611 /* Override any GCC internal prototype to avoid an error.
8612    Use char because int might match the return type of a GCC
8613    builtin and then its argument prototype would still apply.  */
8614 #ifdef __cplusplus
8615 extern "C"
8616 #endif
8617 char dlopen ();
8618 int
8619 main ()
8621 return dlopen ();
8622   ;
8623   return 0;
8625 _ACEOF
8626 for ac_lib in '' dl; do
8627   if test -z "$ac_lib"; then
8628     ac_res="none required"
8629   else
8630     ac_res=-l$ac_lib
8631     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8632   fi
8633   rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (ac_try="$ac_link"
8635 case "(($ac_try" in
8636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637   *) ac_try_echo=$ac_try;;
8638 esac
8639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640   (eval "$ac_link") 2>conftest.er1
8641   ac_status=$?
8642   grep -v '^ *+' conftest.er1 >conftest.err
8643   rm -f conftest.er1
8644   cat conftest.err >&5
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); } &&
8647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8648   { (case "(($ac_try" in
8649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650   *) ac_try_echo=$ac_try;;
8651 esac
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653   (eval "$ac_try") 2>&5
8654   ac_status=$?
8655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656   (exit $ac_status); }; } &&
8657          { ac_try='test -s conftest$ac_exeext'
8658   { (case "(($ac_try" in
8659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660   *) ac_try_echo=$ac_try;;
8661 esac
8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663   (eval "$ac_try") 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); }; }; then
8667   ac_cv_search_dlopen=$ac_res
8668 else
8669   echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8673 fi
8675 rm -f core conftest.err conftest.$ac_objext \
8676       conftest$ac_exeext
8677   if test "${ac_cv_search_dlopen+set}" = set; then
8678   break
8679 fi
8680 done
8681 if test "${ac_cv_search_dlopen+set}" = set; then
8682   :
8683 else
8684   ac_cv_search_dlopen=no
8685 fi
8686 rm conftest.$ac_ext
8687 LIBS=$ac_func_search_save_LIBS
8688 fi
8689 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8690 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8691 ac_res=$ac_cv_search_dlopen
8692 if test "$ac_res" != no; then
8693   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8696 cat >>confdefs.h <<\_ACEOF
8697 #define HAVE_DLOPEN 1
8698 _ACEOF
8700 HAVE_DLOPEN='1'
8703 else
8704   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8705 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8706 fi
8709 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8710 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8711 if test "${ac_cv_search_clock_gettime+set}" = set; then
8712   echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714   ac_func_search_save_LIBS=$LIBS
8715 cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h.  */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h.  */
8722 /* Override any GCC internal prototype to avoid an error.
8723    Use char because int might match the return type of a GCC
8724    builtin and then its argument prototype would still apply.  */
8725 #ifdef __cplusplus
8726 extern "C"
8727 #endif
8728 char clock_gettime ();
8729 int
8730 main ()
8732 return clock_gettime ();
8733   ;
8734   return 0;
8736 _ACEOF
8737 for ac_lib in '' rt; do
8738   if test -z "$ac_lib"; then
8739     ac_res="none required"
8740   else
8741     ac_res=-l$ac_lib
8742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8743   fi
8744   rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (ac_try="$ac_link"
8746 case "(($ac_try" in
8747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748   *) ac_try_echo=$ac_try;;
8749 esac
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751   (eval "$ac_link") 2>conftest.er1
8752   ac_status=$?
8753   grep -v '^ *+' conftest.er1 >conftest.err
8754   rm -f conftest.er1
8755   cat conftest.err >&5
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } &&
8758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8759   { (case "(($ac_try" in
8760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761   *) ac_try_echo=$ac_try;;
8762 esac
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764   (eval "$ac_try") 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; } &&
8768          { ac_try='test -s conftest$ac_exeext'
8769   { (case "(($ac_try" in
8770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771   *) ac_try_echo=$ac_try;;
8772 esac
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774   (eval "$ac_try") 2>&5
8775   ac_status=$?
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); }; }; then
8778   ac_cv_search_clock_gettime=$ac_res
8779 else
8780   echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8784 fi
8786 rm -f core conftest.err conftest.$ac_objext \
8787       conftest$ac_exeext
8788   if test "${ac_cv_search_clock_gettime+set}" = set; then
8789   break
8790 fi
8791 done
8792 if test "${ac_cv_search_clock_gettime+set}" = set; then
8793   :
8794 else
8795   ac_cv_search_clock_gettime=no
8796 fi
8797 rm conftest.$ac_ext
8798 LIBS=$ac_func_search_save_LIBS
8799 fi
8800 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8801 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8802 ac_res=$ac_cv_search_clock_gettime
8803 if test "$ac_res" != no; then
8804   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8806 fi
8809 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8810     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8811 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8812 if test "${ac_cv_search_setupterm+set}" = set; then
8813   echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815   ac_func_search_save_LIBS=$LIBS
8816 cat >conftest.$ac_ext <<_ACEOF
8817 /* confdefs.h.  */
8818 _ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h.  */
8823 /* Override any GCC internal prototype to avoid an error.
8824    Use char because int might match the return type of a GCC
8825    builtin and then its argument prototype would still apply.  */
8826 #ifdef __cplusplus
8827 extern "C"
8828 #endif
8829 char setupterm ();
8830 int
8831 main ()
8833 return setupterm ();
8834   ;
8835   return 0;
8837 _ACEOF
8838 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8839   if test -z "$ac_lib"; then
8840     ac_res="none required"
8841   else
8842     ac_res=-l$ac_lib
8843     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8844   fi
8845   rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (ac_try="$ac_link"
8847 case "(($ac_try" in
8848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849   *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852   (eval "$ac_link") 2>conftest.er1
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } &&
8859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860   { (case "(($ac_try" in
8861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862   *) ac_try_echo=$ac_try;;
8863 esac
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865   (eval "$ac_try") 2>&5
8866   ac_status=$?
8867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); }; } &&
8869          { ac_try='test -s conftest$ac_exeext'
8870   { (case "(($ac_try" in
8871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872   *) ac_try_echo=$ac_try;;
8873 esac
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875   (eval "$ac_try") 2>&5
8876   ac_status=$?
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); }; }; then
8879   ac_cv_search_setupterm=$ac_res
8880 else
8881   echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8885 fi
8887 rm -f core conftest.err conftest.$ac_objext \
8888       conftest$ac_exeext
8889   if test "${ac_cv_search_setupterm+set}" = set; then
8890   break
8891 fi
8892 done
8893 if test "${ac_cv_search_setupterm+set}" = set; then
8894   :
8895 else
8896   ac_cv_search_setupterm=no
8897 fi
8898 rm conftest.$ac_ext
8899 LIBS=$ac_func_search_save_LIBS
8900 fi
8901 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8902 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8903 ac_res=$ac_cv_search_setupterm
8904 if test "$ac_res" != no; then
8905   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_TERMINFO 1
8910 _ACEOF
8912 HAVE_TERMINFO='1'
8915 fi
8917 fi
8919 if test "$llvm_cv_enable_libedit" = "yes" ; then
8920   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8921 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8922 if test "${ac_cv_search_el_init+set}" = set; then
8923   echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925   ac_func_search_save_LIBS=$LIBS
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h.  */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h.  */
8933 /* Override any GCC internal prototype to avoid an error.
8934    Use char because int might match the return type of a GCC
8935    builtin and then its argument prototype would still apply.  */
8936 #ifdef __cplusplus
8937 extern "C"
8938 #endif
8939 char el_init ();
8940 int
8941 main ()
8943 return el_init ();
8944   ;
8945   return 0;
8947 _ACEOF
8948 for ac_lib in '' edit; do
8949   if test -z "$ac_lib"; then
8950     ac_res="none required"
8951   else
8952     ac_res=-l$ac_lib
8953     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8954   fi
8955   rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (ac_try="$ac_link"
8957 case "(($ac_try" in
8958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959   *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962   (eval "$ac_link") 2>conftest.er1
8963   ac_status=$?
8964   grep -v '^ *+' conftest.er1 >conftest.err
8965   rm -f conftest.er1
8966   cat conftest.err >&5
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } &&
8969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970   { (case "(($ac_try" in
8971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972   *) ac_try_echo=$ac_try;;
8973 esac
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975   (eval "$ac_try") 2>&5
8976   ac_status=$?
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); }; } &&
8979          { ac_try='test -s conftest$ac_exeext'
8980   { (case "(($ac_try" in
8981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982   *) ac_try_echo=$ac_try;;
8983 esac
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985   (eval "$ac_try") 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; }; then
8989   ac_cv_search_el_init=$ac_res
8990 else
8991   echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8995 fi
8997 rm -f core conftest.err conftest.$ac_objext \
8998       conftest$ac_exeext
8999   if test "${ac_cv_search_el_init+set}" = set; then
9000   break
9001 fi
9002 done
9003 if test "${ac_cv_search_el_init+set}" = set; then
9004   :
9005 else
9006   ac_cv_search_el_init=no
9007 fi
9008 rm conftest.$ac_ext
9009 LIBS=$ac_func_search_save_LIBS
9010 fi
9011 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9012 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9013 ac_res=$ac_cv_search_el_init
9014 if test "$ac_res" != no; then
9015   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9017 cat >>confdefs.h <<\_ACEOF
9018 #define HAVE_LIBEDIT 1
9019 _ACEOF
9021 fi
9023 fi
9025 if test "$llvm_cv_enable_libffi" = "yes" ; then
9026   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9027 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9028 if test "${ac_cv_search_ffi_call+set}" = set; then
9029   echo $ECHO_N "(cached) $ECHO_C" >&6
9030 else
9031   ac_func_search_save_LIBS=$LIBS
9032 cat >conftest.$ac_ext <<_ACEOF
9033 /* confdefs.h.  */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h.  */
9039 /* Override any GCC internal prototype to avoid an error.
9040    Use char because int might match the return type of a GCC
9041    builtin and then its argument prototype would still apply.  */
9042 #ifdef __cplusplus
9043 extern "C"
9044 #endif
9045 char ffi_call ();
9046 int
9047 main ()
9049 return ffi_call ();
9050   ;
9051   return 0;
9053 _ACEOF
9054 for ac_lib in '' ffi; do
9055   if test -z "$ac_lib"; then
9056     ac_res="none required"
9057   else
9058     ac_res=-l$ac_lib
9059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9060   fi
9061   rm -f conftest.$ac_objext conftest$ac_exeext
9062 if { (ac_try="$ac_link"
9063 case "(($ac_try" in
9064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065   *) ac_try_echo=$ac_try;;
9066 esac
9067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068   (eval "$ac_link") 2>conftest.er1
9069   ac_status=$?
9070   grep -v '^ *+' conftest.er1 >conftest.err
9071   rm -f conftest.er1
9072   cat conftest.err >&5
9073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074   (exit $ac_status); } &&
9075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9076   { (case "(($ac_try" in
9077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078   *) ac_try_echo=$ac_try;;
9079 esac
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081   (eval "$ac_try") 2>&5
9082   ac_status=$?
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); }; } &&
9085          { ac_try='test -s conftest$ac_exeext'
9086   { (case "(($ac_try" in
9087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088   *) ac_try_echo=$ac_try;;
9089 esac
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091   (eval "$ac_try") 2>&5
9092   ac_status=$?
9093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); }; }; then
9095   ac_cv_search_ffi_call=$ac_res
9096 else
9097   echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9101 fi
9103 rm -f core conftest.err conftest.$ac_objext \
9104       conftest$ac_exeext
9105   if test "${ac_cv_search_ffi_call+set}" = set; then
9106   break
9107 fi
9108 done
9109 if test "${ac_cv_search_ffi_call+set}" = set; then
9110   :
9111 else
9112   ac_cv_search_ffi_call=no
9113 fi
9114 rm conftest.$ac_ext
9115 LIBS=$ac_func_search_save_LIBS
9116 fi
9117 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9118 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9119 ac_res=$ac_cv_search_ffi_call
9120 if test "$ac_res" != no; then
9121   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9123 cat >>confdefs.h <<\_ACEOF
9124 #define HAVE_FFI_CALL 1
9125 _ACEOF
9127 else
9128   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9129 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9130    { (exit 1); exit 1; }; }
9131 fi
9133 fi
9135 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9136 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9137 if test "${ac_cv_search_mallinfo+set}" = set; then
9138   echo $ECHO_N "(cached) $ECHO_C" >&6
9139 else
9140   ac_func_search_save_LIBS=$LIBS
9141 cat >conftest.$ac_ext <<_ACEOF
9142 /* confdefs.h.  */
9143 _ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h.  */
9148 /* Override any GCC internal prototype to avoid an error.
9149    Use char because int might match the return type of a GCC
9150    builtin and then its argument prototype would still apply.  */
9151 #ifdef __cplusplus
9152 extern "C"
9153 #endif
9154 char mallinfo ();
9155 int
9156 main ()
9158 return mallinfo ();
9159   ;
9160   return 0;
9162 _ACEOF
9163 for ac_lib in '' malloc; do
9164   if test -z "$ac_lib"; then
9165     ac_res="none required"
9166   else
9167     ac_res=-l$ac_lib
9168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9169   fi
9170   rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (ac_try="$ac_link"
9172 case "(($ac_try" in
9173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174   *) ac_try_echo=$ac_try;;
9175 esac
9176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177   (eval "$ac_link") 2>conftest.er1
9178   ac_status=$?
9179   grep -v '^ *+' conftest.er1 >conftest.err
9180   rm -f conftest.er1
9181   cat conftest.err >&5
9182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183   (exit $ac_status); } &&
9184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9185   { (case "(($ac_try" in
9186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187   *) ac_try_echo=$ac_try;;
9188 esac
9189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9190   (eval "$ac_try") 2>&5
9191   ac_status=$?
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); }; } &&
9194          { ac_try='test -s conftest$ac_exeext'
9195   { (case "(($ac_try" in
9196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197   *) ac_try_echo=$ac_try;;
9198 esac
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200   (eval "$ac_try") 2>&5
9201   ac_status=$?
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); }; }; then
9204   ac_cv_search_mallinfo=$ac_res
9205 else
9206   echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9210 fi
9212 rm -f core conftest.err conftest.$ac_objext \
9213       conftest$ac_exeext
9214   if test "${ac_cv_search_mallinfo+set}" = set; then
9215   break
9216 fi
9217 done
9218 if test "${ac_cv_search_mallinfo+set}" = set; then
9219   :
9220 else
9221   ac_cv_search_mallinfo=no
9222 fi
9223 rm conftest.$ac_ext
9224 LIBS=$ac_func_search_save_LIBS
9225 fi
9226 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9227 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9228 ac_res=$ac_cv_search_mallinfo
9229 if test "$ac_res" != no; then
9230   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9232 cat >>confdefs.h <<\_ACEOF
9233 #define HAVE_MALLINFO 1
9234 _ACEOF
9236 fi
9239 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9241 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9242 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9243 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9244   echo $ECHO_N "(cached) $ECHO_C" >&6
9245 else
9246   ac_check_lib_save_LIBS=$LIBS
9247 LIBS="-lpthread  $LIBS"
9248 cat >conftest.$ac_ext <<_ACEOF
9249 /* confdefs.h.  */
9250 _ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h.  */
9255 /* Override any GCC internal prototype to avoid an error.
9256    Use char because int might match the return type of a GCC
9257    builtin and then its argument prototype would still apply.  */
9258 #ifdef __cplusplus
9259 extern "C"
9260 #endif
9261 char pthread_mutex_init ();
9262 int
9263 main ()
9265 return pthread_mutex_init ();
9266   ;
9267   return 0;
9269 _ACEOF
9270 rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (ac_try="$ac_link"
9272 case "(($ac_try" in
9273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274   *) ac_try_echo=$ac_try;;
9275 esac
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277   (eval "$ac_link") 2>conftest.er1
9278   ac_status=$?
9279   grep -v '^ *+' conftest.er1 >conftest.err
9280   rm -f conftest.er1
9281   cat conftest.err >&5
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); } &&
9284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9285   { (case "(($ac_try" in
9286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287   *) ac_try_echo=$ac_try;;
9288 esac
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290   (eval "$ac_try") 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); }; } &&
9294          { ac_try='test -s conftest$ac_exeext'
9295   { (case "(($ac_try" in
9296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297   *) ac_try_echo=$ac_try;;
9298 esac
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300   (eval "$ac_try") 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; }; then
9304   ac_cv_lib_pthread_pthread_mutex_init=yes
9305 else
9306   echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9309         ac_cv_lib_pthread_pthread_mutex_init=no
9310 fi
9312 rm -f core conftest.err conftest.$ac_objext \
9313       conftest$ac_exeext conftest.$ac_ext
9314 LIBS=$ac_check_lib_save_LIBS
9315 fi
9316 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9317 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9318 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9319   cat >>confdefs.h <<_ACEOF
9320 #define HAVE_LIBPTHREAD 1
9321 _ACEOF
9323   LIBS="-lpthread $LIBS"
9325 fi
9327   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9328 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9329 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9330   echo $ECHO_N "(cached) $ECHO_C" >&6
9331 else
9332   ac_func_search_save_LIBS=$LIBS
9333 cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h.  */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h.  */
9340 /* Override any GCC internal prototype to avoid an error.
9341    Use char because int might match the return type of a GCC
9342    builtin and then its argument prototype would still apply.  */
9343 #ifdef __cplusplus
9344 extern "C"
9345 #endif
9346 char pthread_mutex_lock ();
9347 int
9348 main ()
9350 return pthread_mutex_lock ();
9351   ;
9352   return 0;
9354 _ACEOF
9355 for ac_lib in '' pthread; do
9356   if test -z "$ac_lib"; then
9357     ac_res="none required"
9358   else
9359     ac_res=-l$ac_lib
9360     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9361   fi
9362   rm -f conftest.$ac_objext conftest$ac_exeext
9363 if { (ac_try="$ac_link"
9364 case "(($ac_try" in
9365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366   *) ac_try_echo=$ac_try;;
9367 esac
9368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369   (eval "$ac_link") 2>conftest.er1
9370   ac_status=$?
9371   grep -v '^ *+' conftest.er1 >conftest.err
9372   rm -f conftest.er1
9373   cat conftest.err >&5
9374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375   (exit $ac_status); } &&
9376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9377   { (case "(($ac_try" in
9378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379   *) ac_try_echo=$ac_try;;
9380 esac
9381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382   (eval "$ac_try") 2>&5
9383   ac_status=$?
9384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385   (exit $ac_status); }; } &&
9386          { ac_try='test -s conftest$ac_exeext'
9387   { (case "(($ac_try" in
9388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389   *) ac_try_echo=$ac_try;;
9390 esac
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392   (eval "$ac_try") 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); }; }; then
9396   ac_cv_search_pthread_mutex_lock=$ac_res
9397 else
9398   echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9402 fi
9404 rm -f core conftest.err conftest.$ac_objext \
9405       conftest$ac_exeext
9406   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9407   break
9408 fi
9409 done
9410 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9411   :
9412 else
9413   ac_cv_search_pthread_mutex_lock=no
9414 fi
9415 rm conftest.$ac_ext
9416 LIBS=$ac_func_search_save_LIBS
9417 fi
9418 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9419 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9420 ac_res=$ac_cv_search_pthread_mutex_lock
9421 if test "$ac_res" != no; then
9422   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9424 cat >>confdefs.h <<\_ACEOF
9425 #define HAVE_PTHREAD_MUTEX_LOCK 1
9426 _ACEOF
9428 fi
9430   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9431 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9432 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9433   echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
9435   ac_func_search_save_LIBS=$LIBS
9436 cat >conftest.$ac_ext <<_ACEOF
9437 /* confdefs.h.  */
9438 _ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h.  */
9443 /* Override any GCC internal prototype to avoid an error.
9444    Use char because int might match the return type of a GCC
9445    builtin and then its argument prototype would still apply.  */
9446 #ifdef __cplusplus
9447 extern "C"
9448 #endif
9449 char pthread_rwlock_init ();
9450 int
9451 main ()
9453 return pthread_rwlock_init ();
9454   ;
9455   return 0;
9457 _ACEOF
9458 for ac_lib in '' pthread; do
9459   if test -z "$ac_lib"; then
9460     ac_res="none required"
9461   else
9462     ac_res=-l$ac_lib
9463     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9464   fi
9465   rm -f conftest.$ac_objext conftest$ac_exeext
9466 if { (ac_try="$ac_link"
9467 case "(($ac_try" in
9468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469   *) ac_try_echo=$ac_try;;
9470 esac
9471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472   (eval "$ac_link") 2>conftest.er1
9473   ac_status=$?
9474   grep -v '^ *+' conftest.er1 >conftest.err
9475   rm -f conftest.er1
9476   cat conftest.err >&5
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   (exit $ac_status); } &&
9479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9480   { (case "(($ac_try" in
9481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482   *) ac_try_echo=$ac_try;;
9483 esac
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485   (eval "$ac_try") 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; } &&
9489          { ac_try='test -s conftest$ac_exeext'
9490   { (case "(($ac_try" in
9491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492   *) ac_try_echo=$ac_try;;
9493 esac
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495   (eval "$ac_try") 2>&5
9496   ac_status=$?
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); }; }; then
9499   ac_cv_search_pthread_rwlock_init=$ac_res
9500 else
9501   echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9505 fi
9507 rm -f core conftest.err conftest.$ac_objext \
9508       conftest$ac_exeext
9509   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9510   break
9511 fi
9512 done
9513 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9514   :
9515 else
9516   ac_cv_search_pthread_rwlock_init=no
9517 fi
9518 rm conftest.$ac_ext
9519 LIBS=$ac_func_search_save_LIBS
9520 fi
9521 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9522 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9523 ac_res=$ac_cv_search_pthread_rwlock_init
9524 if test "$ac_res" != no; then
9525   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9527 cat >>confdefs.h <<\_ACEOF
9528 #define HAVE_PTHREAD_RWLOCK_INIT 1
9529 _ACEOF
9531 fi
9533   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9534 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9535 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538   ac_func_search_save_LIBS=$LIBS
9539 cat >conftest.$ac_ext <<_ACEOF
9540 /* confdefs.h.  */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h.  */
9546 /* Override any GCC internal prototype to avoid an error.
9547    Use char because int might match the return type of a GCC
9548    builtin and then its argument prototype would still apply.  */
9549 #ifdef __cplusplus
9550 extern "C"
9551 #endif
9552 char pthread_getspecific ();
9553 int
9554 main ()
9556 return pthread_getspecific ();
9557   ;
9558   return 0;
9560 _ACEOF
9561 for ac_lib in '' pthread; do
9562   if test -z "$ac_lib"; then
9563     ac_res="none required"
9564   else
9565     ac_res=-l$ac_lib
9566     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9567   fi
9568   rm -f conftest.$ac_objext conftest$ac_exeext
9569 if { (ac_try="$ac_link"
9570 case "(($ac_try" in
9571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572   *) ac_try_echo=$ac_try;;
9573 esac
9574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575   (eval "$ac_link") 2>conftest.er1
9576   ac_status=$?
9577   grep -v '^ *+' conftest.er1 >conftest.err
9578   rm -f conftest.er1
9579   cat conftest.err >&5
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); } &&
9582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9583   { (case "(($ac_try" in
9584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585   *) ac_try_echo=$ac_try;;
9586 esac
9587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588   (eval "$ac_try") 2>&5
9589   ac_status=$?
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); }; } &&
9592          { ac_try='test -s conftest$ac_exeext'
9593   { (case "(($ac_try" in
9594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595   *) ac_try_echo=$ac_try;;
9596 esac
9597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598   (eval "$ac_try") 2>&5
9599   ac_status=$?
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); }; }; then
9602   ac_cv_search_pthread_getspecific=$ac_res
9603 else
9604   echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9608 fi
9610 rm -f core conftest.err conftest.$ac_objext \
9611       conftest$ac_exeext
9612   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9613   break
9614 fi
9615 done
9616 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9617   :
9618 else
9619   ac_cv_search_pthread_getspecific=no
9620 fi
9621 rm conftest.$ac_ext
9622 LIBS=$ac_func_search_save_LIBS
9623 fi
9624 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9625 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9626 ac_res=$ac_cv_search_pthread_getspecific
9627 if test "$ac_res" != no; then
9628   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9630 cat >>confdefs.h <<\_ACEOF
9631 #define HAVE_PTHREAD_GETSPECIFIC 1
9632 _ACEOF
9634 fi
9636 fi
9638 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9640 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9641 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9642 if test "${ac_cv_lib_z_compress2+set}" = set; then
9643   echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645   ac_check_lib_save_LIBS=$LIBS
9646 LIBS="-lz  $LIBS"
9647 cat >conftest.$ac_ext <<_ACEOF
9648 /* confdefs.h.  */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h.  */
9654 /* Override any GCC internal prototype to avoid an error.
9655    Use char because int might match the return type of a GCC
9656    builtin and then its argument prototype would still apply.  */
9657 #ifdef __cplusplus
9658 extern "C"
9659 #endif
9660 char compress2 ();
9661 int
9662 main ()
9664 return compress2 ();
9665   ;
9666   return 0;
9668 _ACEOF
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (ac_try="$ac_link"
9671 case "(($ac_try" in
9672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673   *) ac_try_echo=$ac_try;;
9674 esac
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676   (eval "$ac_link") 2>conftest.er1
9677   ac_status=$?
9678   grep -v '^ *+' conftest.er1 >conftest.err
9679   rm -f conftest.er1
9680   cat conftest.err >&5
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } &&
9683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9684   { (case "(($ac_try" in
9685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9686   *) ac_try_echo=$ac_try;;
9687 esac
9688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9689   (eval "$ac_try") 2>&5
9690   ac_status=$?
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); }; } &&
9693          { ac_try='test -s conftest$ac_exeext'
9694   { (case "(($ac_try" in
9695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696   *) ac_try_echo=$ac_try;;
9697 esac
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699   (eval "$ac_try") 2>&5
9700   ac_status=$?
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); }; }; then
9703   ac_cv_lib_z_compress2=yes
9704 else
9705   echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9708         ac_cv_lib_z_compress2=no
9709 fi
9711 rm -f core conftest.err conftest.$ac_objext \
9712       conftest$ac_exeext conftest.$ac_ext
9713 LIBS=$ac_check_lib_save_LIBS
9714 fi
9715 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9716 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9717 if test $ac_cv_lib_z_compress2 = yes; then
9718   cat >>confdefs.h <<_ACEOF
9719 #define HAVE_LIBZ 1
9720 _ACEOF
9722   LIBS="-lz $LIBS"
9724 fi
9726 fi
9729 # Check whether --with-oprofile was given.
9730 if test "${with_oprofile+set}" = set; then
9731   withval=$with_oprofile;
9732       USE_OPROFILE=1
9734       case "$withval" in
9735         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9736         no) llvm_cv_oppath=
9737             USE_OPROFILE=0
9738  ;;
9739         *) llvm_cv_oppath="${withval}/lib/oprofile"
9740            CPPFLAGS="-I${withval}/include";;
9741       esac
9742       case $llvm_cv_os_type in
9743         Linux)
9744           if test -n "$llvm_cv_oppath" ; then
9745             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9746                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9747 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9748 if test "${ac_cv_search_bfd_init+set}" = set; then
9749   echo $ECHO_N "(cached) $ECHO_C" >&6
9750 else
9751   ac_func_search_save_LIBS=$LIBS
9752 cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h.  */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h.  */
9759 /* Override any GCC internal prototype to avoid an error.
9760    Use char because int might match the return type of a GCC
9761    builtin and then its argument prototype would still apply.  */
9762 #ifdef __cplusplus
9763 extern "C"
9764 #endif
9765 char bfd_init ();
9766 int
9767 main ()
9769 return bfd_init ();
9770   ;
9771   return 0;
9773 _ACEOF
9774 for ac_lib in '' bfd; do
9775   if test -z "$ac_lib"; then
9776     ac_res="none required"
9777   else
9778     ac_res=-l$ac_lib
9779     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9780   fi
9781   rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9783 case "(($ac_try" in
9784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785   *) ac_try_echo=$ac_try;;
9786 esac
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788   (eval "$ac_link") 2>conftest.er1
9789   ac_status=$?
9790   grep -v '^ *+' conftest.er1 >conftest.err
9791   rm -f conftest.er1
9792   cat conftest.err >&5
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); } &&
9795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9796   { (case "(($ac_try" in
9797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798   *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801   (eval "$ac_try") 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; } &&
9805          { ac_try='test -s conftest$ac_exeext'
9806   { (case "(($ac_try" in
9807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808   *) ac_try_echo=$ac_try;;
9809 esac
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811   (eval "$ac_try") 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); }; }; then
9815   ac_cv_search_bfd_init=$ac_res
9816 else
9817   echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9821 fi
9823 rm -f core conftest.err conftest.$ac_objext \
9824       conftest$ac_exeext
9825   if test "${ac_cv_search_bfd_init+set}" = set; then
9826   break
9827 fi
9828 done
9829 if test "${ac_cv_search_bfd_init+set}" = set; then
9830   :
9831 else
9832   ac_cv_search_bfd_init=no
9833 fi
9834 rm conftest.$ac_ext
9835 LIBS=$ac_func_search_save_LIBS
9836 fi
9837 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9838 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9839 ac_res=$ac_cv_search_bfd_init
9840 if test "$ac_res" != no; then
9841   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9843 fi
9845             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9846 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9847 if test "${ac_cv_search_op_open_agent+set}" = set; then
9848   echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850   ac_func_search_save_LIBS=$LIBS
9851 cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h.  */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h.  */
9858 /* Override any GCC internal prototype to avoid an error.
9859    Use char because int might match the return type of a GCC
9860    builtin and then its argument prototype would still apply.  */
9861 #ifdef __cplusplus
9862 extern "C"
9863 #endif
9864 char op_open_agent ();
9865 int
9866 main ()
9868 return op_open_agent ();
9869   ;
9870   return 0;
9872 _ACEOF
9873 for ac_lib in '' opagent; do
9874   if test -z "$ac_lib"; then
9875     ac_res="none required"
9876   else
9877     ac_res=-l$ac_lib
9878     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9879   fi
9880   rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (ac_try="$ac_link"
9882 case "(($ac_try" in
9883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884   *) ac_try_echo=$ac_try;;
9885 esac
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887   (eval "$ac_link") 2>conftest.er1
9888   ac_status=$?
9889   grep -v '^ *+' conftest.er1 >conftest.err
9890   rm -f conftest.er1
9891   cat conftest.err >&5
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); } &&
9894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9895   { (case "(($ac_try" in
9896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897   *) ac_try_echo=$ac_try;;
9898 esac
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900   (eval "$ac_try") 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); }; } &&
9904          { ac_try='test -s conftest$ac_exeext'
9905   { (case "(($ac_try" in
9906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907   *) ac_try_echo=$ac_try;;
9908 esac
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910   (eval "$ac_try") 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); }; }; then
9914   ac_cv_search_op_open_agent=$ac_res
9915 else
9916   echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9920 fi
9922 rm -f core conftest.err conftest.$ac_objext \
9923       conftest$ac_exeext
9924   if test "${ac_cv_search_op_open_agent+set}" = set; then
9925   break
9926 fi
9927 done
9928 if test "${ac_cv_search_op_open_agent+set}" = set; then
9929   :
9930 else
9931   ac_cv_search_op_open_agent=no
9932 fi
9933 rm conftest.$ac_ext
9934 LIBS=$ac_func_search_save_LIBS
9935 fi
9936 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9937 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9938 ac_res=$ac_cv_search_op_open_agent
9939 if test "$ac_res" != no; then
9940   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9942 else
9944               echo "Error! You need to have libopagent around."
9945               exit -1
9947 fi
9949             if test "${ac_cv_header_opagent_h+set}" = set; then
9950   { echo "$as_me:$LINENO: checking for opagent.h" >&5
9951 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9952 if test "${ac_cv_header_opagent_h+set}" = set; then
9953   echo $ECHO_N "(cached) $ECHO_C" >&6
9954 fi
9955 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9956 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9957 else
9958   # Is the header compilable?
9959 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9960 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9961 cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967 $ac_includes_default
9968 #include <opagent.h>
9969 _ACEOF
9970 rm -f conftest.$ac_objext
9971 if { (ac_try="$ac_compile"
9972 case "(($ac_try" in
9973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974   *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977   (eval "$ac_compile") 2>conftest.er1
9978   ac_status=$?
9979   grep -v '^ *+' conftest.er1 >conftest.err
9980   rm -f conftest.er1
9981   cat conftest.err >&5
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); } &&
9984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9985   { (case "(($ac_try" in
9986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987   *) ac_try_echo=$ac_try;;
9988 esac
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990   (eval "$ac_try") 2>&5
9991   ac_status=$?
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); }; } &&
9994          { ac_try='test -s conftest.$ac_objext'
9995   { (case "(($ac_try" in
9996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997   *) ac_try_echo=$ac_try;;
9998 esac
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000   (eval "$ac_try") 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; }; then
10004   ac_header_compiler=yes
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009         ac_header_compiler=no
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10014 echo "${ECHO_T}$ac_header_compiler" >&6; }
10016 # Is the header present?
10017 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10018 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10019 cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h.  */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h.  */
10025 #include <opagent.h>
10026 _ACEOF
10027 if { (ac_try="$ac_cpp conftest.$ac_ext"
10028 case "(($ac_try" in
10029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030   *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10034   ac_status=$?
10035   grep -v '^ *+' conftest.er1 >conftest.err
10036   rm -f conftest.er1
10037   cat conftest.err >&5
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); } >/dev/null; then
10040   if test -s conftest.err; then
10041     ac_cpp_err=$ac_c_preproc_warn_flag
10042     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10043   else
10044     ac_cpp_err=
10045   fi
10046 else
10047   ac_cpp_err=yes
10049 if test -z "$ac_cpp_err"; then
10050   ac_header_preproc=yes
10051 else
10052   echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055   ac_header_preproc=no
10058 rm -f conftest.err conftest.$ac_ext
10059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10060 echo "${ECHO_T}$ac_header_preproc" >&6; }
10062 # So?  What about this header?
10063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10064   yes:no: )
10065     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10066 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10067     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10068 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10069     ac_header_preproc=yes
10070     ;;
10071   no:yes:* )
10072     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10073 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10074     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10075 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10076     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10077 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10078     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10079 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10080     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10081 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10082     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10083 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10084     ( cat <<\_ASBOX
10085 ## ------------------------------------ ##
10086 ## Report this to http://llvm.org/bugs/ ##
10087 ## ------------------------------------ ##
10088 _ASBOX
10089      ) | sed "s/^/$as_me: WARNING:     /" >&2
10090     ;;
10091 esac
10092 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10093 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10094 if test "${ac_cv_header_opagent_h+set}" = set; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097   ac_cv_header_opagent_h=$ac_header_preproc
10099 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10100 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10103 if test $ac_cv_header_opagent_h = yes; then
10104   :
10105 else
10107               echo "Error! You need to have opagent.h around."
10108               exit -1
10113           fi ;;
10114         *)
10115           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10116 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10117    { (exit 1); exit 1; }; } ;;
10118       esac
10120 else
10122       USE_OPROFILE=0
10128 cat >>confdefs.h <<_ACEOF
10129 #define LLVM_USE_OPROFILE $USE_OPROFILE
10130 _ACEOF
10134 # Check whether --with-intel-jitevents was given.
10135 if test "${with_intel_jitevents+set}" = set; then
10136   withval=$with_intel_jitevents;
10137        case "$withval" in
10138           yes) USE_INTEL_JITEVENTS=1
10140           no)  USE_INTEL_JITEVENTS=0
10142           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10143 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10144    { (exit 1); exit 1; }; };;
10145        esac
10147       case $llvm_cv_os_type in
10148         Linux|Win32|Cygwin|MingW) ;;
10149         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10150 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10151    { (exit 1); exit 1; }; };;
10152       esac
10154       case "$llvm_cv_target_arch" in
10155         x86|x86_64) ;;
10156         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10157 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10158    { (exit 1); exit 1; }; };;
10159       esac
10161 else
10163       USE_INTEL_JITEVENTS=0
10169 cat >>confdefs.h <<_ACEOF
10170 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10171 _ACEOF
10174 for ac_prog in xml2-config
10176   # Extract the first word of "$ac_prog", so it can be a program name with args.
10177 set dummy $ac_prog; ac_word=$2
10178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10180 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10181   echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183   if test -n "$XML2CONFIG"; then
10184   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10185 else
10186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187 for as_dir in $PATH
10189   IFS=$as_save_IFS
10190   test -z "$as_dir" && as_dir=.
10191   for ac_exec_ext in '' $ac_executable_extensions; do
10192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10193     ac_cv_prog_XML2CONFIG="$ac_prog"
10194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10195     break 2
10196   fi
10197 done
10198 done
10199 IFS=$as_save_IFS
10203 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10204 if test -n "$XML2CONFIG"; then
10205   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10206 echo "${ECHO_T}$XML2CONFIG" >&6; }
10207 else
10208   { echo "$as_me:$LINENO: result: no" >&5
10209 echo "${ECHO_T}no" >&6; }
10213   test -n "$XML2CONFIG" && break
10214 done
10217 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10218 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10219 if test "x$XML2CONFIG" = "x"; then
10220  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10221 echo "${ECHO_T}xml2-config not found" >&6; }
10222 else
10223  LIBXML2_INC=`$XML2CONFIG --cflags`
10224  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10225 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10226  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10227 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10228 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10229   echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231   ac_check_lib_save_LIBS=$LIBS
10232 LIBS="-lxml2  $LIBS"
10233 cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h.  */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h.  */
10240 /* Override any GCC internal prototype to avoid an error.
10241    Use char because int might match the return type of a GCC
10242    builtin and then its argument prototype would still apply.  */
10243 #ifdef __cplusplus
10244 extern "C"
10245 #endif
10246 char xmlReadFile ();
10247 int
10248 main ()
10250 return xmlReadFile ();
10251   ;
10252   return 0;
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259   *) ac_try_echo=$ac_try;;
10260 esac
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262   (eval "$ac_link") 2>conftest.er1
10263   ac_status=$?
10264   grep -v '^ *+' conftest.er1 >conftest.err
10265   rm -f conftest.er1
10266   cat conftest.err >&5
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); } &&
10269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10270   { (case "(($ac_try" in
10271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272   *) ac_try_echo=$ac_try;;
10273 esac
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275   (eval "$ac_try") 2>&5
10276   ac_status=$?
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); }; } &&
10279          { ac_try='test -s conftest$ac_exeext'
10280   { (case "(($ac_try" in
10281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282   *) ac_try_echo=$ac_try;;
10283 esac
10284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285   (eval "$ac_try") 2>&5
10286   ac_status=$?
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); }; }; then
10289   ac_cv_lib_xml2_xmlReadFile=yes
10290 else
10291   echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294         ac_cv_lib_xml2_xmlReadFile=no
10297 rm -f core conftest.err conftest.$ac_objext \
10298       conftest$ac_exeext conftest.$ac_ext
10299 LIBS=$ac_check_lib_save_LIBS
10301 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10302 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10303 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10305 cat >>confdefs.h <<\_ACEOF
10306 #define CLANG_HAVE_LIBXML 1
10307 _ACEOF
10309                                 LIBXML2_LIBS="-lxml2"
10322 ac_header_dirent=no
10323 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10324   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10325 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10326 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10328   echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330   cat >conftest.$ac_ext <<_ACEOF
10331 /* confdefs.h.  */
10332 _ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h.  */
10336 #include <sys/types.h>
10337 #include <$ac_hdr>
10339 int
10340 main ()
10342 if ((DIR *) 0)
10343 return 0;
10344   ;
10345   return 0;
10347 _ACEOF
10348 rm -f conftest.$ac_objext
10349 if { (ac_try="$ac_compile"
10350 case "(($ac_try" in
10351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352   *) ac_try_echo=$ac_try;;
10353 esac
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355   (eval "$ac_compile") 2>conftest.er1
10356   ac_status=$?
10357   grep -v '^ *+' conftest.er1 >conftest.err
10358   rm -f conftest.er1
10359   cat conftest.err >&5
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); } &&
10362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10363   { (case "(($ac_try" in
10364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365   *) ac_try_echo=$ac_try;;
10366 esac
10367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368   (eval "$ac_try") 2>&5
10369   ac_status=$?
10370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371   (exit $ac_status); }; } &&
10372          { ac_try='test -s conftest.$ac_objext'
10373   { (case "(($ac_try" in
10374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375   *) ac_try_echo=$ac_try;;
10376 esac
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378   (eval "$ac_try") 2>&5
10379   ac_status=$?
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); }; }; then
10382   eval "$as_ac_Header=yes"
10383 else
10384   echo "$as_me: failed program was:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10387         eval "$as_ac_Header=no"
10390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10392 ac_res=`eval echo '${'$as_ac_Header'}'`
10393                { echo "$as_me:$LINENO: result: $ac_res" >&5
10394 echo "${ECHO_T}$ac_res" >&6; }
10395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10396   cat >>confdefs.h <<_ACEOF
10397 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10398 _ACEOF
10400 ac_header_dirent=$ac_hdr; break
10403 done
10404 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10405 if test $ac_header_dirent = dirent.h; then
10406   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10407 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10408 if test "${ac_cv_search_opendir+set}" = set; then
10409   echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411   ac_func_search_save_LIBS=$LIBS
10412 cat >conftest.$ac_ext <<_ACEOF
10413 /* confdefs.h.  */
10414 _ACEOF
10415 cat confdefs.h >>conftest.$ac_ext
10416 cat >>conftest.$ac_ext <<_ACEOF
10417 /* end confdefs.h.  */
10419 /* Override any GCC internal prototype to avoid an error.
10420    Use char because int might match the return type of a GCC
10421    builtin and then its argument prototype would still apply.  */
10422 #ifdef __cplusplus
10423 extern "C"
10424 #endif
10425 char opendir ();
10426 int
10427 main ()
10429 return opendir ();
10430   ;
10431   return 0;
10433 _ACEOF
10434 for ac_lib in '' dir; do
10435   if test -z "$ac_lib"; then
10436     ac_res="none required"
10437   else
10438     ac_res=-l$ac_lib
10439     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10440   fi
10441   rm -f conftest.$ac_objext conftest$ac_exeext
10442 if { (ac_try="$ac_link"
10443 case "(($ac_try" in
10444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445   *) ac_try_echo=$ac_try;;
10446 esac
10447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448   (eval "$ac_link") 2>conftest.er1
10449   ac_status=$?
10450   grep -v '^ *+' conftest.er1 >conftest.err
10451   rm -f conftest.er1
10452   cat conftest.err >&5
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); } &&
10455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10456   { (case "(($ac_try" in
10457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458   *) ac_try_echo=$ac_try;;
10459 esac
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461   (eval "$ac_try") 2>&5
10462   ac_status=$?
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); }; } &&
10465          { ac_try='test -s conftest$ac_exeext'
10466   { (case "(($ac_try" in
10467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468   *) ac_try_echo=$ac_try;;
10469 esac
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471   (eval "$ac_try") 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); }; }; then
10475   ac_cv_search_opendir=$ac_res
10476 else
10477   echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10483 rm -f core conftest.err conftest.$ac_objext \
10484       conftest$ac_exeext
10485   if test "${ac_cv_search_opendir+set}" = set; then
10486   break
10488 done
10489 if test "${ac_cv_search_opendir+set}" = set; then
10490   :
10491 else
10492   ac_cv_search_opendir=no
10494 rm conftest.$ac_ext
10495 LIBS=$ac_func_search_save_LIBS
10497 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10498 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10499 ac_res=$ac_cv_search_opendir
10500 if test "$ac_res" != no; then
10501   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10505 else
10506   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10507 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10508 if test "${ac_cv_search_opendir+set}" = set; then
10509   echo $ECHO_N "(cached) $ECHO_C" >&6
10510 else
10511   ac_func_search_save_LIBS=$LIBS
10512 cat >conftest.$ac_ext <<_ACEOF
10513 /* confdefs.h.  */
10514 _ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h.  */
10519 /* Override any GCC internal prototype to avoid an error.
10520    Use char because int might match the return type of a GCC
10521    builtin and then its argument prototype would still apply.  */
10522 #ifdef __cplusplus
10523 extern "C"
10524 #endif
10525 char opendir ();
10526 int
10527 main ()
10529 return opendir ();
10530   ;
10531   return 0;
10533 _ACEOF
10534 for ac_lib in '' x; do
10535   if test -z "$ac_lib"; then
10536     ac_res="none required"
10537   else
10538     ac_res=-l$ac_lib
10539     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10540   fi
10541   rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (ac_try="$ac_link"
10543 case "(($ac_try" in
10544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545   *) ac_try_echo=$ac_try;;
10546 esac
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548   (eval "$ac_link") 2>conftest.er1
10549   ac_status=$?
10550   grep -v '^ *+' conftest.er1 >conftest.err
10551   rm -f conftest.er1
10552   cat conftest.err >&5
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); } &&
10555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10556   { (case "(($ac_try" in
10557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558   *) ac_try_echo=$ac_try;;
10559 esac
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561   (eval "$ac_try") 2>&5
10562   ac_status=$?
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); }; } &&
10565          { ac_try='test -s conftest$ac_exeext'
10566   { (case "(($ac_try" in
10567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568   *) ac_try_echo=$ac_try;;
10569 esac
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571   (eval "$ac_try") 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); }; }; then
10575   ac_cv_search_opendir=$ac_res
10576 else
10577   echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10583 rm -f core conftest.err conftest.$ac_objext \
10584       conftest$ac_exeext
10585   if test "${ac_cv_search_opendir+set}" = set; then
10586   break
10588 done
10589 if test "${ac_cv_search_opendir+set}" = set; then
10590   :
10591 else
10592   ac_cv_search_opendir=no
10594 rm conftest.$ac_ext
10595 LIBS=$ac_func_search_save_LIBS
10597 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10598 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10599 ac_res=$ac_cv_search_opendir
10600 if test "$ac_res" != no; then
10601   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10607 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10608 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10609 if test "${ac_cv_header_mmap_anon+set}" = set; then
10610   echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612    ac_ext=c
10613 ac_cpp='$CPP $CPPFLAGS'
10614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10618   cat >conftest.$ac_ext <<_ACEOF
10619 /* confdefs.h.  */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h.  */
10624 #include <sys/mman.h>
10625 #include <unistd.h>
10626 #include <fcntl.h>
10627 int
10628 main ()
10630 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10631   ;
10632   return 0;
10634 _ACEOF
10635 rm -f conftest.$ac_objext
10636 if { (ac_try="$ac_compile"
10637 case "(($ac_try" in
10638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639   *) ac_try_echo=$ac_try;;
10640 esac
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642   (eval "$ac_compile") 2>conftest.er1
10643   ac_status=$?
10644   grep -v '^ *+' conftest.er1 >conftest.err
10645   rm -f conftest.er1
10646   cat conftest.err >&5
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); } &&
10649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10650   { (case "(($ac_try" in
10651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652   *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655   (eval "$ac_try") 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; } &&
10659          { ac_try='test -s conftest.$ac_objext'
10660   { (case "(($ac_try" in
10661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662   *) ac_try_echo=$ac_try;;
10663 esac
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665   (eval "$ac_try") 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }; }; then
10669   ac_cv_header_mmap_anon=yes
10670 else
10671   echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674         ac_cv_header_mmap_anon=no
10677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10678   ac_ext=c
10679 ac_cpp='$CPP $CPPFLAGS'
10680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10686 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10687 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10688 if test "$ac_cv_header_mmap_anon" = yes; then
10690 cat >>confdefs.h <<\_ACEOF
10691 #define HAVE_MMAP_ANONYMOUS 1
10692 _ACEOF
10696 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10697 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10698 if test "${ac_cv_header_stat_broken+set}" = set; then
10699   echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701   cat >conftest.$ac_ext <<_ACEOF
10702 /* confdefs.h.  */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h.  */
10707 #include <sys/types.h>
10708 #include <sys/stat.h>
10710 #if defined S_ISBLK && defined S_IFDIR
10711 # if S_ISBLK (S_IFDIR)
10712 You lose.
10713 # endif
10714 #endif
10716 #if defined S_ISBLK && defined S_IFCHR
10717 # if S_ISBLK (S_IFCHR)
10718 You lose.
10719 # endif
10720 #endif
10722 #if defined S_ISLNK && defined S_IFREG
10723 # if S_ISLNK (S_IFREG)
10724 You lose.
10725 # endif
10726 #endif
10728 #if defined S_ISSOCK && defined S_IFREG
10729 # if S_ISSOCK (S_IFREG)
10730 You lose.
10731 # endif
10732 #endif
10734 _ACEOF
10735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10736   $EGREP "You lose" >/dev/null 2>&1; then
10737   ac_cv_header_stat_broken=yes
10738 else
10739   ac_cv_header_stat_broken=no
10741 rm -f conftest*
10744 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10745 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10746 if test $ac_cv_header_stat_broken = yes; then
10748 cat >>confdefs.h <<\_ACEOF
10749 #define STAT_MACROS_BROKEN 1
10750 _ACEOF
10754 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10755 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10756 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10757   echo $ECHO_N "(cached) $ECHO_C" >&6
10758 else
10759   cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h.  */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h.  */
10765 #include <sys/types.h>
10766 #include <sys/wait.h>
10767 #ifndef WEXITSTATUS
10768 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10769 #endif
10770 #ifndef WIFEXITED
10771 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10772 #endif
10774 int
10775 main ()
10777   int s;
10778   wait (&s);
10779   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10780   ;
10781   return 0;
10783 _ACEOF
10784 rm -f conftest.$ac_objext
10785 if { (ac_try="$ac_compile"
10786 case "(($ac_try" in
10787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788   *) ac_try_echo=$ac_try;;
10789 esac
10790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10791   (eval "$ac_compile") 2>conftest.er1
10792   ac_status=$?
10793   grep -v '^ *+' conftest.er1 >conftest.err
10794   rm -f conftest.er1
10795   cat conftest.err >&5
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); } &&
10798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10799   { (case "(($ac_try" in
10800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801   *) ac_try_echo=$ac_try;;
10802 esac
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804   (eval "$ac_try") 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; } &&
10808          { ac_try='test -s conftest.$ac_objext'
10809   { (case "(($ac_try" in
10810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811   *) ac_try_echo=$ac_try;;
10812 esac
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814   (eval "$ac_try") 2>&5
10815   ac_status=$?
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); }; }; then
10818   ac_cv_header_sys_wait_h=yes
10819 else
10820   echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823         ac_cv_header_sys_wait_h=no
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10829 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10830 if test $ac_cv_header_sys_wait_h = yes; then
10832 cat >>confdefs.h <<\_ACEOF
10833 #define HAVE_SYS_WAIT_H 1
10834 _ACEOF
10838 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10839 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10840 if test "${ac_cv_header_time+set}" = set; then
10841   echo $ECHO_N "(cached) $ECHO_C" >&6
10842 else
10843   cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h.  */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h.  */
10849 #include <sys/types.h>
10850 #include <sys/time.h>
10851 #include <time.h>
10853 int
10854 main ()
10856 if ((struct tm *) 0)
10857 return 0;
10858   ;
10859   return 0;
10861 _ACEOF
10862 rm -f conftest.$ac_objext
10863 if { (ac_try="$ac_compile"
10864 case "(($ac_try" in
10865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866   *) ac_try_echo=$ac_try;;
10867 esac
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869   (eval "$ac_compile") 2>conftest.er1
10870   ac_status=$?
10871   grep -v '^ *+' conftest.er1 >conftest.err
10872   rm -f conftest.er1
10873   cat conftest.err >&5
10874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); } &&
10876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10877   { (case "(($ac_try" in
10878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879   *) ac_try_echo=$ac_try;;
10880 esac
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882   (eval "$ac_try") 2>&5
10883   ac_status=$?
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); }; } &&
10886          { ac_try='test -s conftest.$ac_objext'
10887   { (case "(($ac_try" in
10888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889   *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892   (eval "$ac_try") 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); }; }; then
10896   ac_cv_header_time=yes
10897 else
10898   echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10901         ac_cv_header_time=no
10904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10906 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10907 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10908 if test $ac_cv_header_time = yes; then
10910 cat >>confdefs.h <<\_ACEOF
10911 #define TIME_WITH_SYS_TIME 1
10912 _ACEOF
10917 ac_ext=cpp
10918 ac_cpp='$CXXCPP $CPPFLAGS'
10919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10923 ac_ext=cpp
10924 ac_cpp='$CXXCPP $CPPFLAGS'
10925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10928 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10929 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10930 if test -z "$CXXCPP"; then
10931   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10932   echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934       # Double quotes because CXXCPP needs to be expanded
10935     for CXXCPP in "$CXX -E" "/lib/cpp"
10936     do
10937       ac_preproc_ok=false
10938 for ac_cxx_preproc_warn_flag in '' yes
10940   # Use a header file that comes with gcc, so configuring glibc
10941   # with a fresh cross-compiler works.
10942   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10943   # <limits.h> exists even on freestanding compilers.
10944   # On the NeXT, cc -E runs the code through the compiler's parser,
10945   # not just through cpp. "Syntax error" is here to catch this case.
10946   cat >conftest.$ac_ext <<_ACEOF
10947 /* confdefs.h.  */
10948 _ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h.  */
10952 #ifdef __STDC__
10953 # include <limits.h>
10954 #else
10955 # include <assert.h>
10956 #endif
10957                      Syntax error
10958 _ACEOF
10959 if { (ac_try="$ac_cpp conftest.$ac_ext"
10960 case "(($ac_try" in
10961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962   *) ac_try_echo=$ac_try;;
10963 esac
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10966   ac_status=$?
10967   grep -v '^ *+' conftest.er1 >conftest.err
10968   rm -f conftest.er1
10969   cat conftest.err >&5
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); } >/dev/null; then
10972   if test -s conftest.err; then
10973     ac_cpp_err=$ac_cxx_preproc_warn_flag
10974     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10975   else
10976     ac_cpp_err=
10977   fi
10978 else
10979   ac_cpp_err=yes
10981 if test -z "$ac_cpp_err"; then
10982   :
10983 else
10984   echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10987   # Broken: fails on valid input.
10988 continue
10991 rm -f conftest.err conftest.$ac_ext
10993   # OK, works on sane cases.  Now check whether nonexistent headers
10994   # can be detected and how.
10995   cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h.  */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h.  */
11001 #include <ac_nonexistent.h>
11002 _ACEOF
11003 if { (ac_try="$ac_cpp conftest.$ac_ext"
11004 case "(($ac_try" in
11005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006   *) ac_try_echo=$ac_try;;
11007 esac
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11010   ac_status=$?
11011   grep -v '^ *+' conftest.er1 >conftest.err
11012   rm -f conftest.er1
11013   cat conftest.err >&5
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); } >/dev/null; then
11016   if test -s conftest.err; then
11017     ac_cpp_err=$ac_cxx_preproc_warn_flag
11018     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11019   else
11020     ac_cpp_err=
11021   fi
11022 else
11023   ac_cpp_err=yes
11025 if test -z "$ac_cpp_err"; then
11026   # Broken: success on invalid input.
11027 continue
11028 else
11029   echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032   # Passes both tests.
11033 ac_preproc_ok=:
11034 break
11037 rm -f conftest.err conftest.$ac_ext
11039 done
11040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11041 rm -f conftest.err conftest.$ac_ext
11042 if $ac_preproc_ok; then
11043   break
11046     done
11047     ac_cv_prog_CXXCPP=$CXXCPP
11050   CXXCPP=$ac_cv_prog_CXXCPP
11051 else
11052   ac_cv_prog_CXXCPP=$CXXCPP
11054 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11055 echo "${ECHO_T}$CXXCPP" >&6; }
11056 ac_preproc_ok=false
11057 for ac_cxx_preproc_warn_flag in '' yes
11059   # Use a header file that comes with gcc, so configuring glibc
11060   # with a fresh cross-compiler works.
11061   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11062   # <limits.h> exists even on freestanding compilers.
11063   # On the NeXT, cc -E runs the code through the compiler's parser,
11064   # not just through cpp. "Syntax error" is here to catch this case.
11065   cat >conftest.$ac_ext <<_ACEOF
11066 /* confdefs.h.  */
11067 _ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h.  */
11071 #ifdef __STDC__
11072 # include <limits.h>
11073 #else
11074 # include <assert.h>
11075 #endif
11076                      Syntax error
11077 _ACEOF
11078 if { (ac_try="$ac_cpp conftest.$ac_ext"
11079 case "(($ac_try" in
11080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081   *) ac_try_echo=$ac_try;;
11082 esac
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11085   ac_status=$?
11086   grep -v '^ *+' conftest.er1 >conftest.err
11087   rm -f conftest.er1
11088   cat conftest.err >&5
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); } >/dev/null; then
11091   if test -s conftest.err; then
11092     ac_cpp_err=$ac_cxx_preproc_warn_flag
11093     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11094   else
11095     ac_cpp_err=
11096   fi
11097 else
11098   ac_cpp_err=yes
11100 if test -z "$ac_cpp_err"; then
11101   :
11102 else
11103   echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11106   # Broken: fails on valid input.
11107 continue
11110 rm -f conftest.err conftest.$ac_ext
11112   # OK, works on sane cases.  Now check whether nonexistent headers
11113   # can be detected and how.
11114   cat >conftest.$ac_ext <<_ACEOF
11115 /* confdefs.h.  */
11116 _ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h.  */
11120 #include <ac_nonexistent.h>
11121 _ACEOF
11122 if { (ac_try="$ac_cpp conftest.$ac_ext"
11123 case "(($ac_try" in
11124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125   *) ac_try_echo=$ac_try;;
11126 esac
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11129   ac_status=$?
11130   grep -v '^ *+' conftest.er1 >conftest.err
11131   rm -f conftest.er1
11132   cat conftest.err >&5
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); } >/dev/null; then
11135   if test -s conftest.err; then
11136     ac_cpp_err=$ac_cxx_preproc_warn_flag
11137     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11138   else
11139     ac_cpp_err=
11140   fi
11141 else
11142   ac_cpp_err=yes
11144 if test -z "$ac_cpp_err"; then
11145   # Broken: success on invalid input.
11146 continue
11147 else
11148   echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151   # Passes both tests.
11152 ac_preproc_ok=:
11153 break
11156 rm -f conftest.err conftest.$ac_ext
11158 done
11159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11160 rm -f conftest.err conftest.$ac_ext
11161 if $ac_preproc_ok; then
11162   :
11163 else
11164   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11165 See \`config.log' for more details." >&5
11166 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11167 See \`config.log' for more details." >&2;}
11168    { (exit 1); exit 1; }; }
11171 ac_ext=cpp
11172 ac_cpp='$CXXCPP $CPPFLAGS'
11173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11179 for ac_header in cxxabi.h
11181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11183   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11186   echo $ECHO_N "(cached) $ECHO_C" >&6
11188 ac_res=`eval echo '${'$as_ac_Header'}'`
11189                { echo "$as_me:$LINENO: result: $ac_res" >&5
11190 echo "${ECHO_T}$ac_res" >&6; }
11191 else
11192   # Is the header compilable?
11193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11195 cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h.  */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h.  */
11201 $ac_includes_default
11202 #include <$ac_header>
11203 _ACEOF
11204 rm -f conftest.$ac_objext
11205 if { (ac_try="$ac_compile"
11206 case "(($ac_try" in
11207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208   *) ac_try_echo=$ac_try;;
11209 esac
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211   (eval "$ac_compile") 2>conftest.er1
11212   ac_status=$?
11213   grep -v '^ *+' conftest.er1 >conftest.err
11214   rm -f conftest.er1
11215   cat conftest.err >&5
11216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217   (exit $ac_status); } &&
11218          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11219   { (case "(($ac_try" in
11220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221   *) ac_try_echo=$ac_try;;
11222 esac
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224   (eval "$ac_try") 2>&5
11225   ac_status=$?
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); }; } &&
11228          { ac_try='test -s conftest.$ac_objext'
11229   { (case "(($ac_try" in
11230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231   *) ac_try_echo=$ac_try;;
11232 esac
11233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234   (eval "$ac_try") 2>&5
11235   ac_status=$?
11236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237   (exit $ac_status); }; }; then
11238   ac_header_compiler=yes
11239 else
11240   echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11243         ac_header_compiler=no
11246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11248 echo "${ECHO_T}$ac_header_compiler" >&6; }
11250 # Is the header present?
11251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11253 cat >conftest.$ac_ext <<_ACEOF
11254 /* confdefs.h.  */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h.  */
11259 #include <$ac_header>
11260 _ACEOF
11261 if { (ac_try="$ac_cpp conftest.$ac_ext"
11262 case "(($ac_try" in
11263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264   *) ac_try_echo=$ac_try;;
11265 esac
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11268   ac_status=$?
11269   grep -v '^ *+' conftest.er1 >conftest.err
11270   rm -f conftest.er1
11271   cat conftest.err >&5
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); } >/dev/null; then
11274   if test -s conftest.err; then
11275     ac_cpp_err=$ac_cxx_preproc_warn_flag
11276     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11277   else
11278     ac_cpp_err=
11279   fi
11280 else
11281   ac_cpp_err=yes
11283 if test -z "$ac_cpp_err"; then
11284   ac_header_preproc=yes
11285 else
11286   echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289   ac_header_preproc=no
11292 rm -f conftest.err conftest.$ac_ext
11293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11294 echo "${ECHO_T}$ac_header_preproc" >&6; }
11296 # So?  What about this header?
11297 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11298   yes:no: )
11299     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11303     ac_header_preproc=yes
11304     ;;
11305   no:yes:* )
11306     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11308     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11309 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11310     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11312     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11313 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11316     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11318     ( cat <<\_ASBOX
11319 ## ------------------------------------ ##
11320 ## Report this to http://llvm.org/bugs/ ##
11321 ## ------------------------------------ ##
11322 _ASBOX
11323      ) | sed "s/^/$as_me: WARNING:     /" >&2
11324     ;;
11325 esac
11326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11329   echo $ECHO_N "(cached) $ECHO_C" >&6
11330 else
11331   eval "$as_ac_Header=\$ac_header_preproc"
11333 ac_res=`eval echo '${'$as_ac_Header'}'`
11334                { echo "$as_me:$LINENO: result: $ac_res" >&5
11335 echo "${ECHO_T}$ac_res" >&6; }
11338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11339   cat >>confdefs.h <<_ACEOF
11340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11341 _ACEOF
11345 done
11347 ac_ext=c
11348 ac_cpp='$CPP $CPPFLAGS'
11349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11358 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11362   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11365   echo $ECHO_N "(cached) $ECHO_C" >&6
11367 ac_res=`eval echo '${'$as_ac_Header'}'`
11368                { echo "$as_me:$LINENO: result: $ac_res" >&5
11369 echo "${ECHO_T}$ac_res" >&6; }
11370 else
11371   # Is the header compilable?
11372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11374 cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h.  */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h.  */
11380 $ac_includes_default
11381 #include <$ac_header>
11382 _ACEOF
11383 rm -f conftest.$ac_objext
11384 if { (ac_try="$ac_compile"
11385 case "(($ac_try" in
11386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387   *) ac_try_echo=$ac_try;;
11388 esac
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390   (eval "$ac_compile") 2>conftest.er1
11391   ac_status=$?
11392   grep -v '^ *+' conftest.er1 >conftest.err
11393   rm -f conftest.er1
11394   cat conftest.err >&5
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } &&
11397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11398   { (case "(($ac_try" in
11399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400   *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403   (eval "$ac_try") 2>&5
11404   ac_status=$?
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); }; } &&
11407          { ac_try='test -s conftest.$ac_objext'
11408   { (case "(($ac_try" in
11409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11410   *) ac_try_echo=$ac_try;;
11411 esac
11412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11413   (eval "$ac_try") 2>&5
11414   ac_status=$?
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); }; }; then
11417   ac_header_compiler=yes
11418 else
11419   echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11422         ac_header_compiler=no
11425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11427 echo "${ECHO_T}$ac_header_compiler" >&6; }
11429 # Is the header present?
11430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11432 cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h.  */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h.  */
11438 #include <$ac_header>
11439 _ACEOF
11440 if { (ac_try="$ac_cpp conftest.$ac_ext"
11441 case "(($ac_try" in
11442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443   *) ac_try_echo=$ac_try;;
11444 esac
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11447   ac_status=$?
11448   grep -v '^ *+' conftest.er1 >conftest.err
11449   rm -f conftest.er1
11450   cat conftest.err >&5
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); } >/dev/null; then
11453   if test -s conftest.err; then
11454     ac_cpp_err=$ac_c_preproc_warn_flag
11455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11456   else
11457     ac_cpp_err=
11458   fi
11459 else
11460   ac_cpp_err=yes
11462 if test -z "$ac_cpp_err"; then
11463   ac_header_preproc=yes
11464 else
11465   echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11468   ac_header_preproc=no
11471 rm -f conftest.err conftest.$ac_ext
11472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11473 echo "${ECHO_T}$ac_header_preproc" >&6; }
11475 # So?  What about this header?
11476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11477   yes:no: )
11478     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11482     ac_header_preproc=yes
11483     ;;
11484   no:yes:* )
11485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11487     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11488 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11489     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11491     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11492 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11495     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11497     ( cat <<\_ASBOX
11498 ## ------------------------------------ ##
11499 ## Report this to http://llvm.org/bugs/ ##
11500 ## ------------------------------------ ##
11501 _ASBOX
11502      ) | sed "s/^/$as_me: WARNING:     /" >&2
11503     ;;
11504 esac
11505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11508   echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510   eval "$as_ac_Header=\$ac_header_preproc"
11512 ac_res=`eval echo '${'$as_ac_Header'}'`
11513                { echo "$as_me:$LINENO: result: $ac_res" >&5
11514 echo "${ECHO_T}$ac_res" >&6; }
11517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11518   cat >>confdefs.h <<_ACEOF
11519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11520 _ACEOF
11524 done
11532 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11536   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11541 ac_res=`eval echo '${'$as_ac_Header'}'`
11542                { echo "$as_me:$LINENO: result: $ac_res" >&5
11543 echo "${ECHO_T}$ac_res" >&6; }
11544 else
11545   # Is the header compilable?
11546 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11548 cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h.  */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h.  */
11554 $ac_includes_default
11555 #include <$ac_header>
11556 _ACEOF
11557 rm -f conftest.$ac_objext
11558 if { (ac_try="$ac_compile"
11559 case "(($ac_try" in
11560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561   *) ac_try_echo=$ac_try;;
11562 esac
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564   (eval "$ac_compile") 2>conftest.er1
11565   ac_status=$?
11566   grep -v '^ *+' conftest.er1 >conftest.err
11567   rm -f conftest.er1
11568   cat conftest.err >&5
11569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570   (exit $ac_status); } &&
11571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11572   { (case "(($ac_try" in
11573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574   *) ac_try_echo=$ac_try;;
11575 esac
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577   (eval "$ac_try") 2>&5
11578   ac_status=$?
11579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580   (exit $ac_status); }; } &&
11581          { ac_try='test -s conftest.$ac_objext'
11582   { (case "(($ac_try" in
11583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584   *) ac_try_echo=$ac_try;;
11585 esac
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587   (eval "$ac_try") 2>&5
11588   ac_status=$?
11589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590   (exit $ac_status); }; }; then
11591   ac_header_compiler=yes
11592 else
11593   echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596         ac_header_compiler=no
11599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11601 echo "${ECHO_T}$ac_header_compiler" >&6; }
11603 # Is the header present?
11604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h.  */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h.  */
11612 #include <$ac_header>
11613 _ACEOF
11614 if { (ac_try="$ac_cpp conftest.$ac_ext"
11615 case "(($ac_try" in
11616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617   *) ac_try_echo=$ac_try;;
11618 esac
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11621   ac_status=$?
11622   grep -v '^ *+' conftest.er1 >conftest.err
11623   rm -f conftest.er1
11624   cat conftest.err >&5
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); } >/dev/null; then
11627   if test -s conftest.err; then
11628     ac_cpp_err=$ac_c_preproc_warn_flag
11629     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11630   else
11631     ac_cpp_err=
11632   fi
11633 else
11634   ac_cpp_err=yes
11636 if test -z "$ac_cpp_err"; then
11637   ac_header_preproc=yes
11638 else
11639   echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642   ac_header_preproc=no
11645 rm -f conftest.err conftest.$ac_ext
11646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11647 echo "${ECHO_T}$ac_header_preproc" >&6; }
11649 # So?  What about this header?
11650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11651   yes:no: )
11652     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11656     ac_header_preproc=yes
11657     ;;
11658   no:yes:* )
11659     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11661     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11662 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11663     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11665     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11666 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11669     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11671     ( cat <<\_ASBOX
11672 ## ------------------------------------ ##
11673 ## Report this to http://llvm.org/bugs/ ##
11674 ## ------------------------------------ ##
11675 _ASBOX
11676      ) | sed "s/^/$as_me: WARNING:     /" >&2
11677     ;;
11678 esac
11679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11682   echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684   eval "$as_ac_Header=\$ac_header_preproc"
11686 ac_res=`eval echo '${'$as_ac_Header'}'`
11687                { echo "$as_me:$LINENO: result: $ac_res" >&5
11688 echo "${ECHO_T}$ac_res" >&6; }
11691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11692   cat >>confdefs.h <<_ACEOF
11693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11694 _ACEOF
11698 done
11701 for ac_header in utime.h
11703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11705   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11708   echo $ECHO_N "(cached) $ECHO_C" >&6
11710 ac_res=`eval echo '${'$as_ac_Header'}'`
11711                { echo "$as_me:$LINENO: result: $ac_res" >&5
11712 echo "${ECHO_T}$ac_res" >&6; }
11713 else
11714   # Is the header compilable?
11715 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11717 cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h.  */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h.  */
11723 $ac_includes_default
11724 #include <$ac_header>
11725 _ACEOF
11726 rm -f conftest.$ac_objext
11727 if { (ac_try="$ac_compile"
11728 case "(($ac_try" in
11729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730   *) ac_try_echo=$ac_try;;
11731 esac
11732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733   (eval "$ac_compile") 2>conftest.er1
11734   ac_status=$?
11735   grep -v '^ *+' conftest.er1 >conftest.err
11736   rm -f conftest.er1
11737   cat conftest.err >&5
11738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); } &&
11740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11741   { (case "(($ac_try" in
11742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743   *) ac_try_echo=$ac_try;;
11744 esac
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746   (eval "$ac_try") 2>&5
11747   ac_status=$?
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); }; } &&
11750          { ac_try='test -s conftest.$ac_objext'
11751   { (case "(($ac_try" in
11752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753   *) ac_try_echo=$ac_try;;
11754 esac
11755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756   (eval "$ac_try") 2>&5
11757   ac_status=$?
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); }; }; then
11760   ac_header_compiler=yes
11761 else
11762   echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11765         ac_header_compiler=no
11768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11769 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11770 echo "${ECHO_T}$ac_header_compiler" >&6; }
11772 # Is the header present?
11773 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11775 cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h.  */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h.  */
11781 #include <$ac_header>
11782 _ACEOF
11783 if { (ac_try="$ac_cpp conftest.$ac_ext"
11784 case "(($ac_try" in
11785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786   *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11790   ac_status=$?
11791   grep -v '^ *+' conftest.er1 >conftest.err
11792   rm -f conftest.er1
11793   cat conftest.err >&5
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } >/dev/null; then
11796   if test -s conftest.err; then
11797     ac_cpp_err=$ac_c_preproc_warn_flag
11798     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11799   else
11800     ac_cpp_err=
11801   fi
11802 else
11803   ac_cpp_err=yes
11805 if test -z "$ac_cpp_err"; then
11806   ac_header_preproc=yes
11807 else
11808   echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11811   ac_header_preproc=no
11814 rm -f conftest.err conftest.$ac_ext
11815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11816 echo "${ECHO_T}$ac_header_preproc" >&6; }
11818 # So?  What about this header?
11819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11820   yes:no: )
11821     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11825     ac_header_preproc=yes
11826     ;;
11827   no:yes:* )
11828     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11830     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11831 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11832     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11834     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11835 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11838     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11840     ( cat <<\_ASBOX
11841 ## ------------------------------------ ##
11842 ## Report this to http://llvm.org/bugs/ ##
11843 ## ------------------------------------ ##
11844 _ASBOX
11845      ) | sed "s/^/$as_me: WARNING:     /" >&2
11846     ;;
11847 esac
11848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11851   echo $ECHO_N "(cached) $ECHO_C" >&6
11852 else
11853   eval "$as_ac_Header=\$ac_header_preproc"
11855 ac_res=`eval echo '${'$as_ac_Header'}'`
11856                { echo "$as_me:$LINENO: result: $ac_res" >&5
11857 echo "${ECHO_T}$ac_res" >&6; }
11860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11861   cat >>confdefs.h <<_ACEOF
11862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11863 _ACEOF
11867 done
11874 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11878   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11881   echo $ECHO_N "(cached) $ECHO_C" >&6
11883 ac_res=`eval echo '${'$as_ac_Header'}'`
11884                { echo "$as_me:$LINENO: result: $ac_res" >&5
11885 echo "${ECHO_T}$ac_res" >&6; }
11886 else
11887   # Is the header compilable?
11888 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11890 cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h.  */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h.  */
11896 $ac_includes_default
11897 #include <$ac_header>
11898 _ACEOF
11899 rm -f conftest.$ac_objext
11900 if { (ac_try="$ac_compile"
11901 case "(($ac_try" in
11902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903   *) ac_try_echo=$ac_try;;
11904 esac
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906   (eval "$ac_compile") 2>conftest.er1
11907   ac_status=$?
11908   grep -v '^ *+' conftest.er1 >conftest.err
11909   rm -f conftest.er1
11910   cat conftest.err >&5
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } &&
11913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11914   { (case "(($ac_try" in
11915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916   *) ac_try_echo=$ac_try;;
11917 esac
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919   (eval "$ac_try") 2>&5
11920   ac_status=$?
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); }; } &&
11923          { ac_try='test -s conftest.$ac_objext'
11924   { (case "(($ac_try" in
11925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926   *) ac_try_echo=$ac_try;;
11927 esac
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929   (eval "$ac_try") 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; }; then
11933   ac_header_compiler=yes
11934 else
11935   echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938         ac_header_compiler=no
11941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11943 echo "${ECHO_T}$ac_header_compiler" >&6; }
11945 # Is the header present?
11946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11948 cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h.  */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h.  */
11954 #include <$ac_header>
11955 _ACEOF
11956 if { (ac_try="$ac_cpp conftest.$ac_ext"
11957 case "(($ac_try" in
11958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959   *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11963   ac_status=$?
11964   grep -v '^ *+' conftest.er1 >conftest.err
11965   rm -f conftest.er1
11966   cat conftest.err >&5
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); } >/dev/null; then
11969   if test -s conftest.err; then
11970     ac_cpp_err=$ac_c_preproc_warn_flag
11971     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11972   else
11973     ac_cpp_err=
11974   fi
11975 else
11976   ac_cpp_err=yes
11978 if test -z "$ac_cpp_err"; then
11979   ac_header_preproc=yes
11980 else
11981   echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984   ac_header_preproc=no
11987 rm -f conftest.err conftest.$ac_ext
11988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11989 echo "${ECHO_T}$ac_header_preproc" >&6; }
11991 # So?  What about this header?
11992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11993   yes:no: )
11994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11998     ac_header_preproc=yes
11999     ;;
12000   no:yes:* )
12001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12003     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12004 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12005     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12007     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12008 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12011     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12013     ( cat <<\_ASBOX
12014 ## ------------------------------------ ##
12015 ## Report this to http://llvm.org/bugs/ ##
12016 ## ------------------------------------ ##
12017 _ASBOX
12018      ) | sed "s/^/$as_me: WARNING:     /" >&2
12019     ;;
12020 esac
12021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12024   echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026   eval "$as_ac_Header=\$ac_header_preproc"
12028 ac_res=`eval echo '${'$as_ac_Header'}'`
12029                { echo "$as_me:$LINENO: result: $ac_res" >&5
12030 echo "${ECHO_T}$ac_res" >&6; }
12033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12034   cat >>confdefs.h <<_ACEOF
12035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12036 _ACEOF
12040 done
12045 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12049   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052   echo $ECHO_N "(cached) $ECHO_C" >&6
12054 ac_res=`eval echo '${'$as_ac_Header'}'`
12055                { echo "$as_me:$LINENO: result: $ac_res" >&5
12056 echo "${ECHO_T}$ac_res" >&6; }
12057 else
12058   # Is the header compilable?
12059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12061 cat >conftest.$ac_ext <<_ACEOF
12062 /* confdefs.h.  */
12063 _ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h.  */
12067 $ac_includes_default
12068 #include <$ac_header>
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (ac_try="$ac_compile"
12072 case "(($ac_try" in
12073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074   *) ac_try_echo=$ac_try;;
12075 esac
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077   (eval "$ac_compile") 2>conftest.er1
12078   ac_status=$?
12079   grep -v '^ *+' conftest.er1 >conftest.err
12080   rm -f conftest.er1
12081   cat conftest.err >&5
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); } &&
12084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085   { (case "(($ac_try" in
12086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087   *) ac_try_echo=$ac_try;;
12088 esac
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090   (eval "$ac_try") 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); }; } &&
12094          { ac_try='test -s conftest.$ac_objext'
12095   { (case "(($ac_try" in
12096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097   *) ac_try_echo=$ac_try;;
12098 esac
12099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100   (eval "$ac_try") 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); }; }; then
12104   ac_header_compiler=yes
12105 else
12106   echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109         ac_header_compiler=no
12112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12114 echo "${ECHO_T}$ac_header_compiler" >&6; }
12116 # Is the header present?
12117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125 #include <$ac_header>
12126 _ACEOF
12127 if { (ac_try="$ac_cpp conftest.$ac_ext"
12128 case "(($ac_try" in
12129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130   *) ac_try_echo=$ac_try;;
12131 esac
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12134   ac_status=$?
12135   grep -v '^ *+' conftest.er1 >conftest.err
12136   rm -f conftest.er1
12137   cat conftest.err >&5
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); } >/dev/null; then
12140   if test -s conftest.err; then
12141     ac_cpp_err=$ac_c_preproc_warn_flag
12142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12143   else
12144     ac_cpp_err=
12145   fi
12146 else
12147   ac_cpp_err=yes
12149 if test -z "$ac_cpp_err"; then
12150   ac_header_preproc=yes
12151 else
12152   echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155   ac_header_preproc=no
12158 rm -f conftest.err conftest.$ac_ext
12159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12160 echo "${ECHO_T}$ac_header_preproc" >&6; }
12162 # So?  What about this header?
12163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12164   yes:no: )
12165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12169     ac_header_preproc=yes
12170     ;;
12171   no:yes:* )
12172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12184     ( cat <<\_ASBOX
12185 ## ------------------------------------ ##
12186 ## Report this to http://llvm.org/bugs/ ##
12187 ## ------------------------------------ ##
12188 _ASBOX
12189      ) | sed "s/^/$as_me: WARNING:     /" >&2
12190     ;;
12191 esac
12192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12195   echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197   eval "$as_ac_Header=\$ac_header_preproc"
12199 ac_res=`eval echo '${'$as_ac_Header'}'`
12200                { echo "$as_me:$LINENO: result: $ac_res" >&5
12201 echo "${ECHO_T}$ac_res" >&6; }
12204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12205   cat >>confdefs.h <<_ACEOF
12206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12207 _ACEOF
12211 done
12214 for ac_header in valgrind/valgrind.h
12216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12218   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12221   echo $ECHO_N "(cached) $ECHO_C" >&6
12223 ac_res=`eval echo '${'$as_ac_Header'}'`
12224                { echo "$as_me:$LINENO: result: $ac_res" >&5
12225 echo "${ECHO_T}$ac_res" >&6; }
12226 else
12227   # Is the header compilable?
12228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12230 cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h.  */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h.  */
12236 $ac_includes_default
12237 #include <$ac_header>
12238 _ACEOF
12239 rm -f conftest.$ac_objext
12240 if { (ac_try="$ac_compile"
12241 case "(($ac_try" in
12242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243   *) ac_try_echo=$ac_try;;
12244 esac
12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246   (eval "$ac_compile") 2>conftest.er1
12247   ac_status=$?
12248   grep -v '^ *+' conftest.er1 >conftest.err
12249   rm -f conftest.er1
12250   cat conftest.err >&5
12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   (exit $ac_status); } &&
12253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12254   { (case "(($ac_try" in
12255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256   *) ac_try_echo=$ac_try;;
12257 esac
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259   (eval "$ac_try") 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); }; } &&
12263          { ac_try='test -s conftest.$ac_objext'
12264   { (case "(($ac_try" in
12265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266   *) ac_try_echo=$ac_try;;
12267 esac
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269   (eval "$ac_try") 2>&5
12270   ac_status=$?
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); }; }; then
12273   ac_header_compiler=yes
12274 else
12275   echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278         ac_header_compiler=no
12281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12283 echo "${ECHO_T}$ac_header_compiler" >&6; }
12285 # Is the header present?
12286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h.  */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h.  */
12294 #include <$ac_header>
12295 _ACEOF
12296 if { (ac_try="$ac_cpp conftest.$ac_ext"
12297 case "(($ac_try" in
12298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299   *) ac_try_echo=$ac_try;;
12300 esac
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12303   ac_status=$?
12304   grep -v '^ *+' conftest.er1 >conftest.err
12305   rm -f conftest.er1
12306   cat conftest.err >&5
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); } >/dev/null; then
12309   if test -s conftest.err; then
12310     ac_cpp_err=$ac_c_preproc_warn_flag
12311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12312   else
12313     ac_cpp_err=
12314   fi
12315 else
12316   ac_cpp_err=yes
12318 if test -z "$ac_cpp_err"; then
12319   ac_header_preproc=yes
12320 else
12321   echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12324   ac_header_preproc=no
12327 rm -f conftest.err conftest.$ac_ext
12328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12329 echo "${ECHO_T}$ac_header_preproc" >&6; }
12331 # So?  What about this header?
12332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12333   yes:no: )
12334     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12338     ac_header_preproc=yes
12339     ;;
12340   no:yes:* )
12341     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12343     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12344 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12345     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12347     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12348 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12351     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12353     ( cat <<\_ASBOX
12354 ## ------------------------------------ ##
12355 ## Report this to http://llvm.org/bugs/ ##
12356 ## ------------------------------------ ##
12357 _ASBOX
12358      ) | sed "s/^/$as_me: WARNING:     /" >&2
12359     ;;
12360 esac
12361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12364   echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366   eval "$as_ac_Header=\$ac_header_preproc"
12368 ac_res=`eval echo '${'$as_ac_Header'}'`
12369                { echo "$as_me:$LINENO: result: $ac_res" >&5
12370 echo "${ECHO_T}$ac_res" >&6; }
12373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12374   cat >>confdefs.h <<_ACEOF
12375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12376 _ACEOF
12380 done
12383 for ac_header in fenv.h
12385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12387   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12392 ac_res=`eval echo '${'$as_ac_Header'}'`
12393                { echo "$as_me:$LINENO: result: $ac_res" >&5
12394 echo "${ECHO_T}$ac_res" >&6; }
12395 else
12396   # Is the header compilable?
12397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12399 cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405 $ac_includes_default
12406 #include <$ac_header>
12407 _ACEOF
12408 rm -f conftest.$ac_objext
12409 if { (ac_try="$ac_compile"
12410 case "(($ac_try" in
12411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412   *) ac_try_echo=$ac_try;;
12413 esac
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415   (eval "$ac_compile") 2>conftest.er1
12416   ac_status=$?
12417   grep -v '^ *+' conftest.er1 >conftest.err
12418   rm -f conftest.er1
12419   cat conftest.err >&5
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } &&
12422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12423   { (case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_try") 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; } &&
12432          { ac_try='test -s conftest.$ac_objext'
12433   { (case "(($ac_try" in
12434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435   *) ac_try_echo=$ac_try;;
12436 esac
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438   (eval "$ac_try") 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; }; then
12442   ac_header_compiler=yes
12443 else
12444   echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447         ac_header_compiler=no
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12452 echo "${ECHO_T}$ac_header_compiler" >&6; }
12454 # Is the header present?
12455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12457 cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h.  */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h.  */
12463 #include <$ac_header>
12464 _ACEOF
12465 if { (ac_try="$ac_cpp conftest.$ac_ext"
12466 case "(($ac_try" in
12467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468   *) ac_try_echo=$ac_try;;
12469 esac
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12472   ac_status=$?
12473   grep -v '^ *+' conftest.er1 >conftest.err
12474   rm -f conftest.er1
12475   cat conftest.err >&5
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); } >/dev/null; then
12478   if test -s conftest.err; then
12479     ac_cpp_err=$ac_c_preproc_warn_flag
12480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12481   else
12482     ac_cpp_err=
12483   fi
12484 else
12485   ac_cpp_err=yes
12487 if test -z "$ac_cpp_err"; then
12488   ac_header_preproc=yes
12489 else
12490   echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493   ac_header_preproc=no
12496 rm -f conftest.err conftest.$ac_ext
12497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12498 echo "${ECHO_T}$ac_header_preproc" >&6; }
12500 # So?  What about this header?
12501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12502   yes:no: )
12503     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12507     ac_header_preproc=yes
12508     ;;
12509   no:yes:* )
12510     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12512     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12513 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12514     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12516     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12517 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12520     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12522     ( cat <<\_ASBOX
12523 ## ------------------------------------ ##
12524 ## Report this to http://llvm.org/bugs/ ##
12525 ## ------------------------------------ ##
12526 _ASBOX
12527      ) | sed "s/^/$as_me: WARNING:     /" >&2
12528     ;;
12529 esac
12530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12533   echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535   eval "$as_ac_Header=\$ac_header_preproc"
12537 ac_res=`eval echo '${'$as_ac_Header'}'`
12538                { echo "$as_me:$LINENO: result: $ac_res" >&5
12539 echo "${ECHO_T}$ac_res" >&6; }
12542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12543   cat >>confdefs.h <<_ACEOF
12544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12545 _ACEOF
12549 done
12551 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12552 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12553 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12554   echo $ECHO_N "(cached) $ECHO_C" >&6
12555 else
12556   cat >conftest.$ac_ext <<_ACEOF
12557 /* confdefs.h.  */
12558 _ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h.  */
12562 #include <fenv.h>
12564 int
12565 main ()
12567 #ifndef FE_ALL_EXCEPT
12568   char *p = (char *) FE_ALL_EXCEPT;
12569   return !p;
12570 #endif
12572   ;
12573   return 0;
12575 _ACEOF
12576 rm -f conftest.$ac_objext
12577 if { (ac_try="$ac_compile"
12578 case "(($ac_try" in
12579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580   *) ac_try_echo=$ac_try;;
12581 esac
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583   (eval "$ac_compile") 2>conftest.er1
12584   ac_status=$?
12585   grep -v '^ *+' conftest.er1 >conftest.err
12586   rm -f conftest.er1
12587   cat conftest.err >&5
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); } &&
12590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12591   { (case "(($ac_try" in
12592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593   *) ac_try_echo=$ac_try;;
12594 esac
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596   (eval "$ac_try") 2>&5
12597   ac_status=$?
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); }; } &&
12600          { ac_try='test -s conftest.$ac_objext'
12601   { (case "(($ac_try" in
12602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603   *) ac_try_echo=$ac_try;;
12604 esac
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606   (eval "$ac_try") 2>&5
12607   ac_status=$?
12608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609   (exit $ac_status); }; }; then
12610   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12611 else
12612   echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12615         ac_cv_have_decl_FE_ALL_EXCEPT=no
12618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12620 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12621 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12622 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12624 cat >>confdefs.h <<_ACEOF
12625 #define HAVE_DECL_FE_ALL_EXCEPT 1
12626 _ACEOF
12629 else
12630   cat >>confdefs.h <<_ACEOF
12631 #define HAVE_DECL_FE_ALL_EXCEPT 0
12632 _ACEOF
12636 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12637 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12638 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12639   echo $ECHO_N "(cached) $ECHO_C" >&6
12640 else
12641   cat >conftest.$ac_ext <<_ACEOF
12642 /* confdefs.h.  */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h.  */
12647 #include <fenv.h>
12649 int
12650 main ()
12652 #ifndef FE_INEXACT
12653   char *p = (char *) FE_INEXACT;
12654   return !p;
12655 #endif
12657   ;
12658   return 0;
12660 _ACEOF
12661 rm -f conftest.$ac_objext
12662 if { (ac_try="$ac_compile"
12663 case "(($ac_try" in
12664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665   *) ac_try_echo=$ac_try;;
12666 esac
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668   (eval "$ac_compile") 2>conftest.er1
12669   ac_status=$?
12670   grep -v '^ *+' conftest.er1 >conftest.err
12671   rm -f conftest.er1
12672   cat conftest.err >&5
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); } &&
12675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12676   { (case "(($ac_try" in
12677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678   *) ac_try_echo=$ac_try;;
12679 esac
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681   (eval "$ac_try") 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; } &&
12685          { ac_try='test -s conftest.$ac_objext'
12686   { (case "(($ac_try" in
12687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688   *) ac_try_echo=$ac_try;;
12689 esac
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691   (eval "$ac_try") 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); }; }; then
12695   ac_cv_have_decl_FE_INEXACT=yes
12696 else
12697   echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12700         ac_cv_have_decl_FE_INEXACT=no
12703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12705 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12706 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12707 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12709 cat >>confdefs.h <<_ACEOF
12710 #define HAVE_DECL_FE_INEXACT 1
12711 _ACEOF
12714 else
12715   cat >>confdefs.h <<_ACEOF
12716 #define HAVE_DECL_FE_INEXACT 0
12717 _ACEOF
12723 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12725 for ac_header in pthread.h
12727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12729   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12732   echo $ECHO_N "(cached) $ECHO_C" >&6
12734 ac_res=`eval echo '${'$as_ac_Header'}'`
12735                { echo "$as_me:$LINENO: result: $ac_res" >&5
12736 echo "${ECHO_T}$ac_res" >&6; }
12737 else
12738   # Is the header compilable?
12739 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12741 cat >conftest.$ac_ext <<_ACEOF
12742 /* confdefs.h.  */
12743 _ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h.  */
12747 $ac_includes_default
12748 #include <$ac_header>
12749 _ACEOF
12750 rm -f conftest.$ac_objext
12751 if { (ac_try="$ac_compile"
12752 case "(($ac_try" in
12753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754   *) ac_try_echo=$ac_try;;
12755 esac
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757   (eval "$ac_compile") 2>conftest.er1
12758   ac_status=$?
12759   grep -v '^ *+' conftest.er1 >conftest.err
12760   rm -f conftest.er1
12761   cat conftest.err >&5
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); } &&
12764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12765   { (case "(($ac_try" in
12766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767   *) ac_try_echo=$ac_try;;
12768 esac
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770   (eval "$ac_try") 2>&5
12771   ac_status=$?
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); }; } &&
12774          { ac_try='test -s conftest.$ac_objext'
12775   { (case "(($ac_try" in
12776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777   *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780   (eval "$ac_try") 2>&5
12781   ac_status=$?
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); }; }; then
12784   ac_header_compiler=yes
12785 else
12786   echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789         ac_header_compiler=no
12792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12794 echo "${ECHO_T}$ac_header_compiler" >&6; }
12796 # Is the header present?
12797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12799 cat >conftest.$ac_ext <<_ACEOF
12800 /* confdefs.h.  */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h.  */
12805 #include <$ac_header>
12806 _ACEOF
12807 if { (ac_try="$ac_cpp conftest.$ac_ext"
12808 case "(($ac_try" in
12809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810   *) ac_try_echo=$ac_try;;
12811 esac
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12814   ac_status=$?
12815   grep -v '^ *+' conftest.er1 >conftest.err
12816   rm -f conftest.er1
12817   cat conftest.err >&5
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); } >/dev/null; then
12820   if test -s conftest.err; then
12821     ac_cpp_err=$ac_c_preproc_warn_flag
12822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12823   else
12824     ac_cpp_err=
12825   fi
12826 else
12827   ac_cpp_err=yes
12829 if test -z "$ac_cpp_err"; then
12830   ac_header_preproc=yes
12831 else
12832   echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835   ac_header_preproc=no
12838 rm -f conftest.err conftest.$ac_ext
12839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12840 echo "${ECHO_T}$ac_header_preproc" >&6; }
12842 # So?  What about this header?
12843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12844   yes:no: )
12845     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12849     ac_header_preproc=yes
12850     ;;
12851   no:yes:* )
12852     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12854     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12855 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12856     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12858     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12859 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12862     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12864     ( cat <<\_ASBOX
12865 ## ------------------------------------ ##
12866 ## Report this to http://llvm.org/bugs/ ##
12867 ## ------------------------------------ ##
12868 _ASBOX
12869      ) | sed "s/^/$as_me: WARNING:     /" >&2
12870     ;;
12871 esac
12872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12875   echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12877   eval "$as_ac_Header=\$ac_header_preproc"
12879 ac_res=`eval echo '${'$as_ac_Header'}'`
12880                { echo "$as_me:$LINENO: result: $ac_res" >&5
12881 echo "${ECHO_T}$ac_res" >&6; }
12884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12885   cat >>confdefs.h <<_ACEOF
12886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12887 _ACEOF
12888  HAVE_PTHREAD=1
12890 else
12891   HAVE_PTHREAD=0
12895 done
12897 else
12898   HAVE_PTHREAD=0
12901 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12903 for ac_header in zlib.h
12905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12907   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12910   echo $ECHO_N "(cached) $ECHO_C" >&6
12912 ac_res=`eval echo '${'$as_ac_Header'}'`
12913                { echo "$as_me:$LINENO: result: $ac_res" >&5
12914 echo "${ECHO_T}$ac_res" >&6; }
12915 else
12916   # Is the header compilable?
12917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h.  */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h.  */
12925 $ac_includes_default
12926 #include <$ac_header>
12927 _ACEOF
12928 rm -f conftest.$ac_objext
12929 if { (ac_try="$ac_compile"
12930 case "(($ac_try" in
12931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932   *) ac_try_echo=$ac_try;;
12933 esac
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935   (eval "$ac_compile") 2>conftest.er1
12936   ac_status=$?
12937   grep -v '^ *+' conftest.er1 >conftest.err
12938   rm -f conftest.er1
12939   cat conftest.err >&5
12940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941   (exit $ac_status); } &&
12942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12943   { (case "(($ac_try" in
12944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945   *) ac_try_echo=$ac_try;;
12946 esac
12947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948   (eval "$ac_try") 2>&5
12949   ac_status=$?
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); }; } &&
12952          { ac_try='test -s conftest.$ac_objext'
12953   { (case "(($ac_try" in
12954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955   *) ac_try_echo=$ac_try;;
12956 esac
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958   (eval "$ac_try") 2>&5
12959   ac_status=$?
12960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961   (exit $ac_status); }; }; then
12962   ac_header_compiler=yes
12963 else
12964   echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12967         ac_header_compiler=no
12970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12972 echo "${ECHO_T}$ac_header_compiler" >&6; }
12974 # Is the header present?
12975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12977 cat >conftest.$ac_ext <<_ACEOF
12978 /* confdefs.h.  */
12979 _ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h.  */
12983 #include <$ac_header>
12984 _ACEOF
12985 if { (ac_try="$ac_cpp conftest.$ac_ext"
12986 case "(($ac_try" in
12987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988   *) ac_try_echo=$ac_try;;
12989 esac
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12992   ac_status=$?
12993   grep -v '^ *+' conftest.er1 >conftest.err
12994   rm -f conftest.er1
12995   cat conftest.err >&5
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); } >/dev/null; then
12998   if test -s conftest.err; then
12999     ac_cpp_err=$ac_c_preproc_warn_flag
13000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13001   else
13002     ac_cpp_err=
13003   fi
13004 else
13005   ac_cpp_err=yes
13007 if test -z "$ac_cpp_err"; then
13008   ac_header_preproc=yes
13009 else
13010   echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.$ac_ext >&5
13013   ac_header_preproc=no
13016 rm -f conftest.err conftest.$ac_ext
13017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13018 echo "${ECHO_T}$ac_header_preproc" >&6; }
13020 # So?  What about this header?
13021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13022   yes:no: )
13023     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13027     ac_header_preproc=yes
13028     ;;
13029   no:yes:* )
13030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13032     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13033 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13034     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13036     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13037 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13040     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13042     ( cat <<\_ASBOX
13043 ## ------------------------------------ ##
13044 ## Report this to http://llvm.org/bugs/ ##
13045 ## ------------------------------------ ##
13046 _ASBOX
13047      ) | sed "s/^/$as_me: WARNING:     /" >&2
13048     ;;
13049 esac
13050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13053   echo $ECHO_N "(cached) $ECHO_C" >&6
13054 else
13055   eval "$as_ac_Header=\$ac_header_preproc"
13057 ac_res=`eval echo '${'$as_ac_Header'}'`
13058                { echo "$as_me:$LINENO: result: $ac_res" >&5
13059 echo "${ECHO_T}$ac_res" >&6; }
13062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13063   cat >>confdefs.h <<_ACEOF
13064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13065 _ACEOF
13066  HAVE_LIBZ=1
13068 else
13069   HAVE_LIBZ=0
13073 done
13075 else
13076   HAVE_LIBZ=0
13080 if test "$llvm_cv_enable_libffi" = "yes" ; then
13083 for ac_header in ffi.h ffi/ffi.h
13085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13087   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13090   echo $ECHO_N "(cached) $ECHO_C" >&6
13092 ac_res=`eval echo '${'$as_ac_Header'}'`
13093                { echo "$as_me:$LINENO: result: $ac_res" >&5
13094 echo "${ECHO_T}$ac_res" >&6; }
13095 else
13096   # Is the header compilable?
13097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13099 cat >conftest.$ac_ext <<_ACEOF
13100 /* confdefs.h.  */
13101 _ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h.  */
13105 $ac_includes_default
13106 #include <$ac_header>
13107 _ACEOF
13108 rm -f conftest.$ac_objext
13109 if { (ac_try="$ac_compile"
13110 case "(($ac_try" in
13111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112   *) ac_try_echo=$ac_try;;
13113 esac
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115   (eval "$ac_compile") 2>conftest.er1
13116   ac_status=$?
13117   grep -v '^ *+' conftest.er1 >conftest.err
13118   rm -f conftest.er1
13119   cat conftest.err >&5
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); } &&
13122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13123   { (case "(($ac_try" in
13124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125   *) ac_try_echo=$ac_try;;
13126 esac
13127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13128   (eval "$ac_try") 2>&5
13129   ac_status=$?
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); }; } &&
13132          { ac_try='test -s conftest.$ac_objext'
13133   { (case "(($ac_try" in
13134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135   *) ac_try_echo=$ac_try;;
13136 esac
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138   (eval "$ac_try") 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); }; }; then
13142   ac_header_compiler=yes
13143 else
13144   echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13147         ac_header_compiler=no
13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13152 echo "${ECHO_T}$ac_header_compiler" >&6; }
13154 # Is the header present?
13155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13157 cat >conftest.$ac_ext <<_ACEOF
13158 /* confdefs.h.  */
13159 _ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h.  */
13163 #include <$ac_header>
13164 _ACEOF
13165 if { (ac_try="$ac_cpp conftest.$ac_ext"
13166 case "(($ac_try" in
13167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168   *) ac_try_echo=$ac_try;;
13169 esac
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13172   ac_status=$?
13173   grep -v '^ *+' conftest.er1 >conftest.err
13174   rm -f conftest.er1
13175   cat conftest.err >&5
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); } >/dev/null; then
13178   if test -s conftest.err; then
13179     ac_cpp_err=$ac_c_preproc_warn_flag
13180     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13181   else
13182     ac_cpp_err=
13183   fi
13184 else
13185   ac_cpp_err=yes
13187 if test -z "$ac_cpp_err"; then
13188   ac_header_preproc=yes
13189 else
13190   echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193   ac_header_preproc=no
13196 rm -f conftest.err conftest.$ac_ext
13197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13198 echo "${ECHO_T}$ac_header_preproc" >&6; }
13200 # So?  What about this header?
13201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13202   yes:no: )
13203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13207     ac_header_preproc=yes
13208     ;;
13209   no:yes:* )
13210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13212     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13213 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13214     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13216     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13217 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13220     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13222     ( cat <<\_ASBOX
13223 ## ------------------------------------ ##
13224 ## Report this to http://llvm.org/bugs/ ##
13225 ## ------------------------------------ ##
13226 _ASBOX
13227      ) | sed "s/^/$as_me: WARNING:     /" >&2
13228     ;;
13229 esac
13230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13233   echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235   eval "$as_ac_Header=\$ac_header_preproc"
13237 ac_res=`eval echo '${'$as_ac_Header'}'`
13238                { echo "$as_me:$LINENO: result: $ac_res" >&5
13239 echo "${ECHO_T}$ac_res" >&6; }
13242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13243   cat >>confdefs.h <<_ACEOF
13244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13245 _ACEOF
13249 done
13254 for ac_header in CrashReporterClient.h
13256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13258   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13261   echo $ECHO_N "(cached) $ECHO_C" >&6
13263 ac_res=`eval echo '${'$as_ac_Header'}'`
13264                { echo "$as_me:$LINENO: result: $ac_res" >&5
13265 echo "${ECHO_T}$ac_res" >&6; }
13266 else
13267   # Is the header compilable?
13268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13270 cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h.  */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h.  */
13276 $ac_includes_default
13277 #include <$ac_header>
13278 _ACEOF
13279 rm -f conftest.$ac_objext
13280 if { (ac_try="$ac_compile"
13281 case "(($ac_try" in
13282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283   *) ac_try_echo=$ac_try;;
13284 esac
13285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286   (eval "$ac_compile") 2>conftest.er1
13287   ac_status=$?
13288   grep -v '^ *+' conftest.er1 >conftest.err
13289   rm -f conftest.er1
13290   cat conftest.err >&5
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); } &&
13293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13294   { (case "(($ac_try" in
13295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296   *) ac_try_echo=$ac_try;;
13297 esac
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299   (eval "$ac_try") 2>&5
13300   ac_status=$?
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); }; } &&
13303          { ac_try='test -s conftest.$ac_objext'
13304   { (case "(($ac_try" in
13305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306   *) ac_try_echo=$ac_try;;
13307 esac
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309   (eval "$ac_try") 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }; }; then
13313   ac_header_compiler=yes
13314 else
13315   echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318         ac_header_compiler=no
13321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13323 echo "${ECHO_T}$ac_header_compiler" >&6; }
13325 # Is the header present?
13326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13328 cat >conftest.$ac_ext <<_ACEOF
13329 /* confdefs.h.  */
13330 _ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h.  */
13334 #include <$ac_header>
13335 _ACEOF
13336 if { (ac_try="$ac_cpp conftest.$ac_ext"
13337 case "(($ac_try" in
13338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339   *) ac_try_echo=$ac_try;;
13340 esac
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13343   ac_status=$?
13344   grep -v '^ *+' conftest.er1 >conftest.err
13345   rm -f conftest.er1
13346   cat conftest.err >&5
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); } >/dev/null; then
13349   if test -s conftest.err; then
13350     ac_cpp_err=$ac_c_preproc_warn_flag
13351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13352   else
13353     ac_cpp_err=
13354   fi
13355 else
13356   ac_cpp_err=yes
13358 if test -z "$ac_cpp_err"; then
13359   ac_header_preproc=yes
13360 else
13361   echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13364   ac_header_preproc=no
13367 rm -f conftest.err conftest.$ac_ext
13368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13369 echo "${ECHO_T}$ac_header_preproc" >&6; }
13371 # So?  What about this header?
13372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13373   yes:no: )
13374     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13378     ac_header_preproc=yes
13379     ;;
13380   no:yes:* )
13381     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13383     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13384 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13385     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13387     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13388 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13391     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13393     ( cat <<\_ASBOX
13394 ## ------------------------------------ ##
13395 ## Report this to http://llvm.org/bugs/ ##
13396 ## ------------------------------------ ##
13397 _ASBOX
13398      ) | sed "s/^/$as_me: WARNING:     /" >&2
13399     ;;
13400 esac
13401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13404   echo $ECHO_N "(cached) $ECHO_C" >&6
13405 else
13406   eval "$as_ac_Header=\$ac_header_preproc"
13408 ac_res=`eval echo '${'$as_ac_Header'}'`
13409                { echo "$as_me:$LINENO: result: $ac_res" >&5
13410 echo "${ECHO_T}$ac_res" >&6; }
13413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13414   cat >>confdefs.h <<_ACEOF
13415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13416 _ACEOF
13420 done
13423 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13424 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13425 cat >conftest.$ac_ext <<_ACEOF
13427   /* confdefs.h.  */
13428 _ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h.  */
13433     extern const char *__crashreporter_info__;
13434     int main() {
13435       __crashreporter_info__ = "test";
13436       return 0;
13437     }
13440 _ACEOF
13441 rm -f conftest.$ac_objext conftest$ac_exeext
13442 if { (ac_try="$ac_link"
13443 case "(($ac_try" in
13444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445   *) ac_try_echo=$ac_try;;
13446 esac
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448   (eval "$ac_link") 2>conftest.er1
13449   ac_status=$?
13450   grep -v '^ *+' conftest.er1 >conftest.err
13451   rm -f conftest.er1
13452   cat conftest.err >&5
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); } &&
13455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13456   { (case "(($ac_try" in
13457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458   *) ac_try_echo=$ac_try;;
13459 esac
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461   (eval "$ac_try") 2>&5
13462   ac_status=$?
13463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464   (exit $ac_status); }; } &&
13465          { ac_try='test -s conftest$ac_exeext'
13466   { (case "(($ac_try" in
13467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468   *) ac_try_echo=$ac_try;;
13469 esac
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471   (eval "$ac_try") 2>&5
13472   ac_status=$?
13473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474   (exit $ac_status); }; }; then
13476   { echo "$as_me:$LINENO: result: yes" >&5
13477 echo "${ECHO_T}yes" >&6; }
13479 cat >>confdefs.h <<\_ACEOF
13480 #define HAVE_CRASHREPORTER_INFO 1
13481 _ACEOF
13484 else
13485   echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13489   { echo "$as_me:$LINENO: result: no" >&5
13490 echo "${ECHO_T}no" >&6; }
13492 cat >>confdefs.h <<\_ACEOF
13493 #define HAVE_CRASHREPORTER_INFO 0
13494 _ACEOF
13499 rm -f core conftest.err conftest.$ac_objext \
13500       conftest$ac_exeext conftest.$ac_ext
13504   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13505 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13506 if test "${ac_cv_huge_val_sanity+set}" = set; then
13507   echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13510     ac_ext=cpp
13511 ac_cpp='$CXXCPP $CPPFLAGS'
13512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13516     ac_save_CXXFLAGS=$CXXFLAGS
13517     CXXFLAGS="$CXXFLAGS -pedantic"
13518     if test "$cross_compiling" = yes; then
13519   ac_cv_huge_val_sanity=yes
13520 else
13521   cat >conftest.$ac_ext <<_ACEOF
13522 /* confdefs.h.  */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h.  */
13527 #include <math.h>
13528 int
13529 main ()
13531 double x = HUGE_VAL; return x != x;
13532   ;
13533   return 0;
13535 _ACEOF
13536 rm -f conftest$ac_exeext
13537 if { (ac_try="$ac_link"
13538 case "(($ac_try" in
13539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540   *) ac_try_echo=$ac_try;;
13541 esac
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543   (eval "$ac_link") 2>&5
13544   ac_status=$?
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13547   { (case "(($ac_try" in
13548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549   *) ac_try_echo=$ac_try;;
13550 esac
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552   (eval "$ac_try") 2>&5
13553   ac_status=$?
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); }; }; then
13556   ac_cv_huge_val_sanity=yes
13557 else
13558   echo "$as_me: program exited with status $ac_status" >&5
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 ( exit $ac_status )
13563 ac_cv_huge_val_sanity=no
13565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13569     CXXFLAGS=$ac_save_CXXFLAGS
13570     ac_ext=c
13571 ac_cpp='$CPP $CPPFLAGS'
13572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13578 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13579 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13580   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13583 { echo "$as_me:$LINENO: checking for pid_t" >&5
13584 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13585 if test "${ac_cv_type_pid_t+set}" = set; then
13586   echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588   cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h.  */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h.  */
13594 $ac_includes_default
13595 typedef pid_t ac__type_new_;
13596 int
13597 main ()
13599 if ((ac__type_new_ *) 0)
13600   return 0;
13601 if (sizeof (ac__type_new_))
13602   return 0;
13603   ;
13604   return 0;
13606 _ACEOF
13607 rm -f conftest.$ac_objext
13608 if { (ac_try="$ac_compile"
13609 case "(($ac_try" in
13610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611   *) ac_try_echo=$ac_try;;
13612 esac
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614   (eval "$ac_compile") 2>conftest.er1
13615   ac_status=$?
13616   grep -v '^ *+' conftest.er1 >conftest.err
13617   rm -f conftest.er1
13618   cat conftest.err >&5
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); } &&
13621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13622   { (case "(($ac_try" in
13623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624   *) ac_try_echo=$ac_try;;
13625 esac
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627   (eval "$ac_try") 2>&5
13628   ac_status=$?
13629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630   (exit $ac_status); }; } &&
13631          { ac_try='test -s conftest.$ac_objext'
13632   { (case "(($ac_try" in
13633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634   *) ac_try_echo=$ac_try;;
13635 esac
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637   (eval "$ac_try") 2>&5
13638   ac_status=$?
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); }; }; then
13641   ac_cv_type_pid_t=yes
13642 else
13643   echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13646         ac_cv_type_pid_t=no
13649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13651 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13652 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13653 if test $ac_cv_type_pid_t = yes; then
13654   :
13655 else
13657 cat >>confdefs.h <<_ACEOF
13658 #define pid_t int
13659 _ACEOF
13663 { echo "$as_me:$LINENO: checking for size_t" >&5
13664 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13665 if test "${ac_cv_type_size_t+set}" = set; then
13666   echo $ECHO_N "(cached) $ECHO_C" >&6
13667 else
13668   cat >conftest.$ac_ext <<_ACEOF
13669 /* confdefs.h.  */
13670 _ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h.  */
13674 $ac_includes_default
13675 typedef size_t ac__type_new_;
13676 int
13677 main ()
13679 if ((ac__type_new_ *) 0)
13680   return 0;
13681 if (sizeof (ac__type_new_))
13682   return 0;
13683   ;
13684   return 0;
13686 _ACEOF
13687 rm -f conftest.$ac_objext
13688 if { (ac_try="$ac_compile"
13689 case "(($ac_try" in
13690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691   *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694   (eval "$ac_compile") 2>conftest.er1
13695   ac_status=$?
13696   grep -v '^ *+' conftest.er1 >conftest.err
13697   rm -f conftest.er1
13698   cat conftest.err >&5
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); } &&
13701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13702   { (case "(($ac_try" in
13703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704   *) ac_try_echo=$ac_try;;
13705 esac
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707   (eval "$ac_try") 2>&5
13708   ac_status=$?
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); }; } &&
13711          { ac_try='test -s conftest.$ac_objext'
13712   { (case "(($ac_try" in
13713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714   *) ac_try_echo=$ac_try;;
13715 esac
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717   (eval "$ac_try") 2>&5
13718   ac_status=$?
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); }; }; then
13721   ac_cv_type_size_t=yes
13722 else
13723   echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13726         ac_cv_type_size_t=no
13729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13731 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13732 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13733 if test $ac_cv_type_size_t = yes; then
13734   :
13735 else
13737 cat >>confdefs.h <<_ACEOF
13738 #define size_t unsigned int
13739 _ACEOF
13744 cat >>confdefs.h <<_ACEOF
13745 #define RETSIGTYPE void
13746 _ACEOF
13748 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13749 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13750 if test "${ac_cv_struct_tm+set}" = set; then
13751   echo $ECHO_N "(cached) $ECHO_C" >&6
13752 else
13753   cat >conftest.$ac_ext <<_ACEOF
13754 /* confdefs.h.  */
13755 _ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h.  */
13759 #include <sys/types.h>
13760 #include <time.h>
13762 int
13763 main ()
13765 struct tm *tp; tp->tm_sec;
13766   ;
13767   return 0;
13769 _ACEOF
13770 rm -f conftest.$ac_objext
13771 if { (ac_try="$ac_compile"
13772 case "(($ac_try" in
13773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774   *) ac_try_echo=$ac_try;;
13775 esac
13776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13777   (eval "$ac_compile") 2>conftest.er1
13778   ac_status=$?
13779   grep -v '^ *+' conftest.er1 >conftest.err
13780   rm -f conftest.er1
13781   cat conftest.err >&5
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); } &&
13784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13785   { (case "(($ac_try" in
13786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13787   *) ac_try_echo=$ac_try;;
13788 esac
13789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13790   (eval "$ac_try") 2>&5
13791   ac_status=$?
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); }; } &&
13794          { ac_try='test -s conftest.$ac_objext'
13795   { (case "(($ac_try" in
13796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797   *) ac_try_echo=$ac_try;;
13798 esac
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800   (eval "$ac_try") 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; }; then
13804   ac_cv_struct_tm=time.h
13805 else
13806   echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13809         ac_cv_struct_tm=sys/time.h
13812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13814 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13815 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13816 if test $ac_cv_struct_tm = sys/time.h; then
13818 cat >>confdefs.h <<\_ACEOF
13819 #define TM_IN_SYS_TIME 1
13820 _ACEOF
13824 { echo "$as_me:$LINENO: checking for int64_t" >&5
13825 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13826 if test "${ac_cv_type_int64_t+set}" = set; then
13827   echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829   cat >conftest.$ac_ext <<_ACEOF
13830 /* confdefs.h.  */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h.  */
13835 $ac_includes_default
13836 typedef int64_t ac__type_new_;
13837 int
13838 main ()
13840 if ((ac__type_new_ *) 0)
13841   return 0;
13842 if (sizeof (ac__type_new_))
13843   return 0;
13844   ;
13845   return 0;
13847 _ACEOF
13848 rm -f conftest.$ac_objext
13849 if { (ac_try="$ac_compile"
13850 case "(($ac_try" in
13851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852   *) ac_try_echo=$ac_try;;
13853 esac
13854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855   (eval "$ac_compile") 2>conftest.er1
13856   ac_status=$?
13857   grep -v '^ *+' conftest.er1 >conftest.err
13858   rm -f conftest.er1
13859   cat conftest.err >&5
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); } &&
13862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13863   { (case "(($ac_try" in
13864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865   *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868   (eval "$ac_try") 2>&5
13869   ac_status=$?
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); }; } &&
13872          { ac_try='test -s conftest.$ac_objext'
13873   { (case "(($ac_try" in
13874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875   *) ac_try_echo=$ac_try;;
13876 esac
13877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878   (eval "$ac_try") 2>&5
13879   ac_status=$?
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); }; }; then
13882   ac_cv_type_int64_t=yes
13883 else
13884   echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13887         ac_cv_type_int64_t=no
13890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13893 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13894 if test $ac_cv_type_int64_t = yes; then
13896 cat >>confdefs.h <<_ACEOF
13897 #define HAVE_INT64_T 1
13898 _ACEOF
13901 else
13902   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13903 echo "$as_me: error: Type int64_t required but not found" >&2;}
13904    { (exit 1); exit 1; }; }
13907 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13908 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13909 if test "${ac_cv_type_uint64_t+set}" = set; then
13910   echo $ECHO_N "(cached) $ECHO_C" >&6
13911 else
13912   cat >conftest.$ac_ext <<_ACEOF
13913 /* confdefs.h.  */
13914 _ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h.  */
13918 $ac_includes_default
13919 typedef uint64_t ac__type_new_;
13920 int
13921 main ()
13923 if ((ac__type_new_ *) 0)
13924   return 0;
13925 if (sizeof (ac__type_new_))
13926   return 0;
13927   ;
13928   return 0;
13930 _ACEOF
13931 rm -f conftest.$ac_objext
13932 if { (ac_try="$ac_compile"
13933 case "(($ac_try" in
13934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935   *) ac_try_echo=$ac_try;;
13936 esac
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938   (eval "$ac_compile") 2>conftest.er1
13939   ac_status=$?
13940   grep -v '^ *+' conftest.er1 >conftest.err
13941   rm -f conftest.er1
13942   cat conftest.err >&5
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); } &&
13945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13946   { (case "(($ac_try" in
13947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948   *) ac_try_echo=$ac_try;;
13949 esac
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951   (eval "$ac_try") 2>&5
13952   ac_status=$?
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); }; } &&
13955          { ac_try='test -s conftest.$ac_objext'
13956   { (case "(($ac_try" in
13957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958   *) ac_try_echo=$ac_try;;
13959 esac
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961   (eval "$ac_try") 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); }; }; then
13965   ac_cv_type_uint64_t=yes
13966 else
13967   echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13970         ac_cv_type_uint64_t=no
13973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13975 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13976 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13977 if test $ac_cv_type_uint64_t = yes; then
13979 cat >>confdefs.h <<_ACEOF
13980 #define HAVE_UINT64_T 1
13981 _ACEOF
13984 else
13985   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13986 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13987 if test "${ac_cv_type_u_int64_t+set}" = set; then
13988   echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990   cat >conftest.$ac_ext <<_ACEOF
13991 /* confdefs.h.  */
13992 _ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h.  */
13996 $ac_includes_default
13997 typedef u_int64_t ac__type_new_;
13998 int
13999 main ()
14001 if ((ac__type_new_ *) 0)
14002   return 0;
14003 if (sizeof (ac__type_new_))
14004   return 0;
14005   ;
14006   return 0;
14008 _ACEOF
14009 rm -f conftest.$ac_objext
14010 if { (ac_try="$ac_compile"
14011 case "(($ac_try" in
14012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013   *) ac_try_echo=$ac_try;;
14014 esac
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016   (eval "$ac_compile") 2>conftest.er1
14017   ac_status=$?
14018   grep -v '^ *+' conftest.er1 >conftest.err
14019   rm -f conftest.er1
14020   cat conftest.err >&5
14021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022   (exit $ac_status); } &&
14023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14024   { (case "(($ac_try" in
14025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026   *) ac_try_echo=$ac_try;;
14027 esac
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029   (eval "$ac_try") 2>&5
14030   ac_status=$?
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); }; } &&
14033          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14040   ac_status=$?
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); }; }; then
14043   ac_cv_type_u_int64_t=yes
14044 else
14045   echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048         ac_cv_type_u_int64_t=no
14051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14054 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14055 if test $ac_cv_type_u_int64_t = yes; then
14057 cat >>confdefs.h <<_ACEOF
14058 #define HAVE_U_INT64_T 1
14059 _ACEOF
14062 else
14063   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14064 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14065    { (exit 1); exit 1; }; }
14079 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14085   echo $ECHO_N "(cached) $ECHO_C" >&6
14086 else
14087   cat >conftest.$ac_ext <<_ACEOF
14088 /* confdefs.h.  */
14089 _ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h.  */
14093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14095 #define $ac_func innocuous_$ac_func
14097 /* System header to define __stub macros and hopefully few prototypes,
14098     which can conflict with char $ac_func (); below.
14099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14100     <limits.h> exists even on freestanding compilers.  */
14102 #ifdef __STDC__
14103 # include <limits.h>
14104 #else
14105 # include <assert.h>
14106 #endif
14108 #undef $ac_func
14110 /* Override any GCC internal prototype to avoid an error.
14111    Use char because int might match the return type of a GCC
14112    builtin and then its argument prototype would still apply.  */
14113 #ifdef __cplusplus
14114 extern "C"
14115 #endif
14116 char $ac_func ();
14117 /* The GNU C library defines this for functions which it implements
14118     to always fail with ENOSYS.  Some functions are actually named
14119     something starting with __ and the normal name is an alias.  */
14120 #if defined __stub_$ac_func || defined __stub___$ac_func
14121 choke me
14122 #endif
14124 int
14125 main ()
14127 return $ac_func ();
14128   ;
14129   return 0;
14131 _ACEOF
14132 rm -f conftest.$ac_objext conftest$ac_exeext
14133 if { (ac_try="$ac_link"
14134 case "(($ac_try" in
14135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136   *) ac_try_echo=$ac_try;;
14137 esac
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139   (eval "$ac_link") 2>conftest.er1
14140   ac_status=$?
14141   grep -v '^ *+' conftest.er1 >conftest.err
14142   rm -f conftest.er1
14143   cat conftest.err >&5
14144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145   (exit $ac_status); } &&
14146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14147   { (case "(($ac_try" in
14148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149   *) ac_try_echo=$ac_try;;
14150 esac
14151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152   (eval "$ac_try") 2>&5
14153   ac_status=$?
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); }; } &&
14156          { ac_try='test -s conftest$ac_exeext'
14157   { (case "(($ac_try" in
14158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159   *) ac_try_echo=$ac_try;;
14160 esac
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162   (eval "$ac_try") 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); }; }; then
14166   eval "$as_ac_var=yes"
14167 else
14168   echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14171         eval "$as_ac_var=no"
14174 rm -f core conftest.err conftest.$ac_objext \
14175       conftest$ac_exeext conftest.$ac_ext
14177 ac_res=`eval echo '${'$as_ac_var'}'`
14178                { echo "$as_me:$LINENO: result: $ac_res" >&5
14179 echo "${ECHO_T}$ac_res" >&6; }
14180 if test `eval echo '${'$as_ac_var'}'` = yes; then
14181   cat >>confdefs.h <<_ACEOF
14182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14183 _ACEOF
14186 done
14192 for ac_func in powf fmodf strtof round
14194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14195 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14198   echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200   cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h.  */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h.  */
14206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14208 #define $ac_func innocuous_$ac_func
14210 /* System header to define __stub macros and hopefully few prototypes,
14211     which can conflict with char $ac_func (); below.
14212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14213     <limits.h> exists even on freestanding compilers.  */
14215 #ifdef __STDC__
14216 # include <limits.h>
14217 #else
14218 # include <assert.h>
14219 #endif
14221 #undef $ac_func
14223 /* Override any GCC internal prototype to avoid an error.
14224    Use char because int might match the return type of a GCC
14225    builtin and then its argument prototype would still apply.  */
14226 #ifdef __cplusplus
14227 extern "C"
14228 #endif
14229 char $ac_func ();
14230 /* The GNU C library defines this for functions which it implements
14231     to always fail with ENOSYS.  Some functions are actually named
14232     something starting with __ and the normal name is an alias.  */
14233 #if defined __stub_$ac_func || defined __stub___$ac_func
14234 choke me
14235 #endif
14237 int
14238 main ()
14240 return $ac_func ();
14241   ;
14242   return 0;
14244 _ACEOF
14245 rm -f conftest.$ac_objext conftest$ac_exeext
14246 if { (ac_try="$ac_link"
14247 case "(($ac_try" in
14248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249   *) ac_try_echo=$ac_try;;
14250 esac
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252   (eval "$ac_link") 2>conftest.er1
14253   ac_status=$?
14254   grep -v '^ *+' conftest.er1 >conftest.err
14255   rm -f conftest.er1
14256   cat conftest.err >&5
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); } &&
14259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14260   { (case "(($ac_try" in
14261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262   *) ac_try_echo=$ac_try;;
14263 esac
14264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265   (eval "$ac_try") 2>&5
14266   ac_status=$?
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); }; } &&
14269          { ac_try='test -s conftest$ac_exeext'
14270   { (case "(($ac_try" in
14271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272   *) ac_try_echo=$ac_try;;
14273 esac
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275   (eval "$ac_try") 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); }; }; then
14279   eval "$as_ac_var=yes"
14280 else
14281   echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14284         eval "$as_ac_var=no"
14287 rm -f core conftest.err conftest.$ac_objext \
14288       conftest$ac_exeext conftest.$ac_ext
14290 ac_res=`eval echo '${'$as_ac_var'}'`
14291                { echo "$as_me:$LINENO: result: $ac_res" >&5
14292 echo "${ECHO_T}$ac_res" >&6; }
14293 if test `eval echo '${'$as_ac_var'}'` = yes; then
14294   cat >>confdefs.h <<_ACEOF
14295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14296 _ACEOF
14299 done
14306 for ac_func in log log2 log10 exp exp2
14308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14312   echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314   cat >conftest.$ac_ext <<_ACEOF
14315 /* confdefs.h.  */
14316 _ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h.  */
14320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14322 #define $ac_func innocuous_$ac_func
14324 /* System header to define __stub macros and hopefully few prototypes,
14325     which can conflict with char $ac_func (); below.
14326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14327     <limits.h> exists even on freestanding compilers.  */
14329 #ifdef __STDC__
14330 # include <limits.h>
14331 #else
14332 # include <assert.h>
14333 #endif
14335 #undef $ac_func
14337 /* Override any GCC internal prototype to avoid an error.
14338    Use char because int might match the return type of a GCC
14339    builtin and then its argument prototype would still apply.  */
14340 #ifdef __cplusplus
14341 extern "C"
14342 #endif
14343 char $ac_func ();
14344 /* The GNU C library defines this for functions which it implements
14345     to always fail with ENOSYS.  Some functions are actually named
14346     something starting with __ and the normal name is an alias.  */
14347 #if defined __stub_$ac_func || defined __stub___$ac_func
14348 choke me
14349 #endif
14351 int
14352 main ()
14354 return $ac_func ();
14355   ;
14356   return 0;
14358 _ACEOF
14359 rm -f conftest.$ac_objext conftest$ac_exeext
14360 if { (ac_try="$ac_link"
14361 case "(($ac_try" in
14362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363   *) ac_try_echo=$ac_try;;
14364 esac
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366   (eval "$ac_link") 2>conftest.er1
14367   ac_status=$?
14368   grep -v '^ *+' conftest.er1 >conftest.err
14369   rm -f conftest.er1
14370   cat conftest.err >&5
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); } &&
14373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14374   { (case "(($ac_try" in
14375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376   *) ac_try_echo=$ac_try;;
14377 esac
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379   (eval "$ac_try") 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); }; } &&
14383          { ac_try='test -s conftest$ac_exeext'
14384   { (case "(($ac_try" in
14385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386   *) ac_try_echo=$ac_try;;
14387 esac
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389   (eval "$ac_try") 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); }; }; then
14393   eval "$as_ac_var=yes"
14394 else
14395   echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14398         eval "$as_ac_var=no"
14401 rm -f core conftest.err conftest.$ac_objext \
14402       conftest$ac_exeext conftest.$ac_ext
14404 ac_res=`eval echo '${'$as_ac_var'}'`
14405                { echo "$as_me:$LINENO: result: $ac_res" >&5
14406 echo "${ECHO_T}$ac_res" >&6; }
14407 if test `eval echo '${'$as_ac_var'}'` = yes; then
14408   cat >>confdefs.h <<_ACEOF
14409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14410 _ACEOF
14413 done
14420 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14426   echo $ECHO_N "(cached) $ECHO_C" >&6
14427 else
14428   cat >conftest.$ac_ext <<_ACEOF
14429 /* confdefs.h.  */
14430 _ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h.  */
14434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14436 #define $ac_func innocuous_$ac_func
14438 /* System header to define __stub macros and hopefully few prototypes,
14439     which can conflict with char $ac_func (); below.
14440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14441     <limits.h> exists even on freestanding compilers.  */
14443 #ifdef __STDC__
14444 # include <limits.h>
14445 #else
14446 # include <assert.h>
14447 #endif
14449 #undef $ac_func
14451 /* Override any GCC internal prototype to avoid an error.
14452    Use char because int might match the return type of a GCC
14453    builtin and then its argument prototype would still apply.  */
14454 #ifdef __cplusplus
14455 extern "C"
14456 #endif
14457 char $ac_func ();
14458 /* The GNU C library defines this for functions which it implements
14459     to always fail with ENOSYS.  Some functions are actually named
14460     something starting with __ and the normal name is an alias.  */
14461 #if defined __stub_$ac_func || defined __stub___$ac_func
14462 choke me
14463 #endif
14465 int
14466 main ()
14468 return $ac_func ();
14469   ;
14470   return 0;
14472 _ACEOF
14473 rm -f conftest.$ac_objext conftest$ac_exeext
14474 if { (ac_try="$ac_link"
14475 case "(($ac_try" in
14476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477   *) ac_try_echo=$ac_try;;
14478 esac
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480   (eval "$ac_link") 2>conftest.er1
14481   ac_status=$?
14482   grep -v '^ *+' conftest.er1 >conftest.err
14483   rm -f conftest.er1
14484   cat conftest.err >&5
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); } &&
14487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14488   { (case "(($ac_try" in
14489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490   *) ac_try_echo=$ac_try;;
14491 esac
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493   (eval "$ac_try") 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; } &&
14497          { ac_try='test -s conftest$ac_exeext'
14498   { (case "(($ac_try" in
14499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500   *) ac_try_echo=$ac_try;;
14501 esac
14502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14503   (eval "$ac_try") 2>&5
14504   ac_status=$?
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); }; }; then
14507   eval "$as_ac_var=yes"
14508 else
14509   echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14512         eval "$as_ac_var=no"
14515 rm -f core conftest.err conftest.$ac_objext \
14516       conftest$ac_exeext conftest.$ac_ext
14518 ac_res=`eval echo '${'$as_ac_var'}'`
14519                { echo "$as_me:$LINENO: result: $ac_res" >&5
14520 echo "${ECHO_T}$ac_res" >&6; }
14521 if test `eval echo '${'$as_ac_var'}'` = yes; then
14522   cat >>confdefs.h <<_ACEOF
14523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14524 _ACEOF
14527 done
14532 for ac_func in isatty mkdtemp mkstemp
14534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14538   echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540   cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h.  */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h.  */
14546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14548 #define $ac_func innocuous_$ac_func
14550 /* System header to define __stub macros and hopefully few prototypes,
14551     which can conflict with char $ac_func (); below.
14552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14553     <limits.h> exists even on freestanding compilers.  */
14555 #ifdef __STDC__
14556 # include <limits.h>
14557 #else
14558 # include <assert.h>
14559 #endif
14561 #undef $ac_func
14563 /* Override any GCC internal prototype to avoid an error.
14564    Use char because int might match the return type of a GCC
14565    builtin and then its argument prototype would still apply.  */
14566 #ifdef __cplusplus
14567 extern "C"
14568 #endif
14569 char $ac_func ();
14570 /* The GNU C library defines this for functions which it implements
14571     to always fail with ENOSYS.  Some functions are actually named
14572     something starting with __ and the normal name is an alias.  */
14573 #if defined __stub_$ac_func || defined __stub___$ac_func
14574 choke me
14575 #endif
14577 int
14578 main ()
14580 return $ac_func ();
14581   ;
14582   return 0;
14584 _ACEOF
14585 rm -f conftest.$ac_objext conftest$ac_exeext
14586 if { (ac_try="$ac_link"
14587 case "(($ac_try" in
14588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589   *) ac_try_echo=$ac_try;;
14590 esac
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592   (eval "$ac_link") 2>conftest.er1
14593   ac_status=$?
14594   grep -v '^ *+' conftest.er1 >conftest.err
14595   rm -f conftest.er1
14596   cat conftest.err >&5
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); } &&
14599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14600   { (case "(($ac_try" in
14601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602   *) ac_try_echo=$ac_try;;
14603 esac
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605   (eval "$ac_try") 2>&5
14606   ac_status=$?
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); }; } &&
14609          { ac_try='test -s conftest$ac_exeext'
14610   { (case "(($ac_try" in
14611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612   *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615   (eval "$ac_try") 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; }; then
14619   eval "$as_ac_var=yes"
14620 else
14621   echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624         eval "$as_ac_var=no"
14627 rm -f core conftest.err conftest.$ac_objext \
14628       conftest$ac_exeext conftest.$ac_ext
14630 ac_res=`eval echo '${'$as_ac_var'}'`
14631                { echo "$as_me:$LINENO: result: $ac_res" >&5
14632 echo "${ECHO_T}$ac_res" >&6; }
14633 if test `eval echo '${'$as_ac_var'}'` = yes; then
14634   cat >>confdefs.h <<_ACEOF
14635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14636 _ACEOF
14639 done
14647 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14650 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14653   echo $ECHO_N "(cached) $ECHO_C" >&6
14654 else
14655   cat >conftest.$ac_ext <<_ACEOF
14656 /* confdefs.h.  */
14657 _ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h.  */
14661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14663 #define $ac_func innocuous_$ac_func
14665 /* System header to define __stub macros and hopefully few prototypes,
14666     which can conflict with char $ac_func (); below.
14667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14668     <limits.h> exists even on freestanding compilers.  */
14670 #ifdef __STDC__
14671 # include <limits.h>
14672 #else
14673 # include <assert.h>
14674 #endif
14676 #undef $ac_func
14678 /* Override any GCC internal prototype to avoid an error.
14679    Use char because int might match the return type of a GCC
14680    builtin and then its argument prototype would still apply.  */
14681 #ifdef __cplusplus
14682 extern "C"
14683 #endif
14684 char $ac_func ();
14685 /* The GNU C library defines this for functions which it implements
14686     to always fail with ENOSYS.  Some functions are actually named
14687     something starting with __ and the normal name is an alias.  */
14688 #if defined __stub_$ac_func || defined __stub___$ac_func
14689 choke me
14690 #endif
14692 int
14693 main ()
14695 return $ac_func ();
14696   ;
14697   return 0;
14699 _ACEOF
14700 rm -f conftest.$ac_objext conftest$ac_exeext
14701 if { (ac_try="$ac_link"
14702 case "(($ac_try" in
14703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704   *) ac_try_echo=$ac_try;;
14705 esac
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707   (eval "$ac_link") 2>conftest.er1
14708   ac_status=$?
14709   grep -v '^ *+' conftest.er1 >conftest.err
14710   rm -f conftest.er1
14711   cat conftest.err >&5
14712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   (exit $ac_status); } &&
14714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14715   { (case "(($ac_try" in
14716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717   *) ac_try_echo=$ac_try;;
14718 esac
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720   (eval "$ac_try") 2>&5
14721   ac_status=$?
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); }; } &&
14724          { ac_try='test -s conftest$ac_exeext'
14725   { (case "(($ac_try" in
14726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727   *) ac_try_echo=$ac_try;;
14728 esac
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730   (eval "$ac_try") 2>&5
14731   ac_status=$?
14732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733   (exit $ac_status); }; }; then
14734   eval "$as_ac_var=yes"
14735 else
14736   echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14739         eval "$as_ac_var=no"
14742 rm -f core conftest.err conftest.$ac_objext \
14743       conftest$ac_exeext conftest.$ac_ext
14745 ac_res=`eval echo '${'$as_ac_var'}'`
14746                { echo "$as_me:$LINENO: result: $ac_res" >&5
14747 echo "${ECHO_T}$ac_res" >&6; }
14748 if test `eval echo '${'$as_ac_var'}'` = yes; then
14749   cat >>confdefs.h <<_ACEOF
14750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14751 _ACEOF
14754 done
14759 for ac_func in strerror strerror_r setenv
14761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14762 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14765   echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767   cat >conftest.$ac_ext <<_ACEOF
14768 /* confdefs.h.  */
14769 _ACEOF
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h.  */
14773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14774    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14775 #define $ac_func innocuous_$ac_func
14777 /* System header to define __stub macros and hopefully few prototypes,
14778     which can conflict with char $ac_func (); below.
14779     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14780     <limits.h> exists even on freestanding compilers.  */
14782 #ifdef __STDC__
14783 # include <limits.h>
14784 #else
14785 # include <assert.h>
14786 #endif
14788 #undef $ac_func
14790 /* Override any GCC internal prototype to avoid an error.
14791    Use char because int might match the return type of a GCC
14792    builtin and then its argument prototype would still apply.  */
14793 #ifdef __cplusplus
14794 extern "C"
14795 #endif
14796 char $ac_func ();
14797 /* The GNU C library defines this for functions which it implements
14798     to always fail with ENOSYS.  Some functions are actually named
14799     something starting with __ and the normal name is an alias.  */
14800 #if defined __stub_$ac_func || defined __stub___$ac_func
14801 choke me
14802 #endif
14804 int
14805 main ()
14807 return $ac_func ();
14808   ;
14809   return 0;
14811 _ACEOF
14812 rm -f conftest.$ac_objext conftest$ac_exeext
14813 if { (ac_try="$ac_link"
14814 case "(($ac_try" in
14815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816   *) ac_try_echo=$ac_try;;
14817 esac
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819   (eval "$ac_link") 2>conftest.er1
14820   ac_status=$?
14821   grep -v '^ *+' conftest.er1 >conftest.err
14822   rm -f conftest.er1
14823   cat conftest.err >&5
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); } &&
14826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14827   { (case "(($ac_try" in
14828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829   *) ac_try_echo=$ac_try;;
14830 esac
14831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832   (eval "$ac_try") 2>&5
14833   ac_status=$?
14834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835   (exit $ac_status); }; } &&
14836          { ac_try='test -s conftest$ac_exeext'
14837   { (case "(($ac_try" in
14838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839   *) ac_try_echo=$ac_try;;
14840 esac
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842   (eval "$ac_try") 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; }; then
14846   eval "$as_ac_var=yes"
14847 else
14848   echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14851         eval "$as_ac_var=no"
14854 rm -f core conftest.err conftest.$ac_objext \
14855       conftest$ac_exeext conftest.$ac_ext
14857 ac_res=`eval echo '${'$as_ac_var'}'`
14858                { echo "$as_me:$LINENO: result: $ac_res" >&5
14859 echo "${ECHO_T}$ac_res" >&6; }
14860 if test `eval echo '${'$as_ac_var'}'` = yes; then
14861   cat >>confdefs.h <<_ACEOF
14862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14863 _ACEOF
14866 done
14872 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14878   echo $ECHO_N "(cached) $ECHO_C" >&6
14879 else
14880   cat >conftest.$ac_ext <<_ACEOF
14881 /* confdefs.h.  */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h.  */
14886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14888 #define $ac_func innocuous_$ac_func
14890 /* System header to define __stub macros and hopefully few prototypes,
14891     which can conflict with char $ac_func (); below.
14892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14893     <limits.h> exists even on freestanding compilers.  */
14895 #ifdef __STDC__
14896 # include <limits.h>
14897 #else
14898 # include <assert.h>
14899 #endif
14901 #undef $ac_func
14903 /* Override any GCC internal prototype to avoid an error.
14904    Use char because int might match the return type of a GCC
14905    builtin and then its argument prototype would still apply.  */
14906 #ifdef __cplusplus
14907 extern "C"
14908 #endif
14909 char $ac_func ();
14910 /* The GNU C library defines this for functions which it implements
14911     to always fail with ENOSYS.  Some functions are actually named
14912     something starting with __ and the normal name is an alias.  */
14913 #if defined __stub_$ac_func || defined __stub___$ac_func
14914 choke me
14915 #endif
14917 int
14918 main ()
14920 return $ac_func ();
14921   ;
14922   return 0;
14924 _ACEOF
14925 rm -f conftest.$ac_objext conftest$ac_exeext
14926 if { (ac_try="$ac_link"
14927 case "(($ac_try" in
14928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14929   *) ac_try_echo=$ac_try;;
14930 esac
14931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14932   (eval "$ac_link") 2>conftest.er1
14933   ac_status=$?
14934   grep -v '^ *+' conftest.er1 >conftest.err
14935   rm -f conftest.er1
14936   cat conftest.err >&5
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); } &&
14939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14940   { (case "(($ac_try" in
14941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942   *) ac_try_echo=$ac_try;;
14943 esac
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945   (eval "$ac_try") 2>&5
14946   ac_status=$?
14947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948   (exit $ac_status); }; } &&
14949          { ac_try='test -s conftest$ac_exeext'
14950   { (case "(($ac_try" in
14951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952   *) ac_try_echo=$ac_try;;
14953 esac
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955   (eval "$ac_try") 2>&5
14956   ac_status=$?
14957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958   (exit $ac_status); }; }; then
14959   eval "$as_ac_var=yes"
14960 else
14961   echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14964         eval "$as_ac_var=no"
14967 rm -f core conftest.err conftest.$ac_objext \
14968       conftest$ac_exeext conftest.$ac_ext
14970 ac_res=`eval echo '${'$as_ac_var'}'`
14971                { echo "$as_me:$LINENO: result: $ac_res" >&5
14972 echo "${ECHO_T}$ac_res" >&6; }
14973 if test `eval echo '${'$as_ac_var'}'` = yes; then
14974   cat >>confdefs.h <<_ACEOF
14975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14976 _ACEOF
14979 done
14986 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14992   echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994   cat >conftest.$ac_ext <<_ACEOF
14995 /* confdefs.h.  */
14996 _ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h.  */
15000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15002 #define $ac_func innocuous_$ac_func
15004 /* System header to define __stub macros and hopefully few prototypes,
15005     which can conflict with char $ac_func (); below.
15006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15007     <limits.h> exists even on freestanding compilers.  */
15009 #ifdef __STDC__
15010 # include <limits.h>
15011 #else
15012 # include <assert.h>
15013 #endif
15015 #undef $ac_func
15017 /* Override any GCC internal prototype to avoid an error.
15018    Use char because int might match the return type of a GCC
15019    builtin and then its argument prototype would still apply.  */
15020 #ifdef __cplusplus
15021 extern "C"
15022 #endif
15023 char $ac_func ();
15024 /* The GNU C library defines this for functions which it implements
15025     to always fail with ENOSYS.  Some functions are actually named
15026     something starting with __ and the normal name is an alias.  */
15027 #if defined __stub_$ac_func || defined __stub___$ac_func
15028 choke me
15029 #endif
15031 int
15032 main ()
15034 return $ac_func ();
15035   ;
15036   return 0;
15038 _ACEOF
15039 rm -f conftest.$ac_objext conftest$ac_exeext
15040 if { (ac_try="$ac_link"
15041 case "(($ac_try" in
15042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043   *) ac_try_echo=$ac_try;;
15044 esac
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046   (eval "$ac_link") 2>conftest.er1
15047   ac_status=$?
15048   grep -v '^ *+' conftest.er1 >conftest.err
15049   rm -f conftest.er1
15050   cat conftest.err >&5
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); } &&
15053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15054   { (case "(($ac_try" in
15055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056   *) ac_try_echo=$ac_try;;
15057 esac
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059   (eval "$ac_try") 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); }; } &&
15063          { ac_try='test -s conftest$ac_exeext'
15064   { (case "(($ac_try" in
15065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066   *) ac_try_echo=$ac_try;;
15067 esac
15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069   (eval "$ac_try") 2>&5
15070   ac_status=$?
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); }; }; then
15073   eval "$as_ac_var=yes"
15074 else
15075   echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078         eval "$as_ac_var=no"
15081 rm -f core conftest.err conftest.$ac_objext \
15082       conftest$ac_exeext conftest.$ac_ext
15084 ac_res=`eval echo '${'$as_ac_var'}'`
15085                { echo "$as_me:$LINENO: result: $ac_res" >&5
15086 echo "${ECHO_T}$ac_res" >&6; }
15087 if test `eval echo '${'$as_ac_var'}'` = yes; then
15088   cat >>confdefs.h <<_ACEOF
15089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15090 _ACEOF
15093 done
15097 for ac_func in futimes futimens
15099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15100 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15103   echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105   cat >conftest.$ac_ext <<_ACEOF
15106 /* confdefs.h.  */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h.  */
15111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15113 #define $ac_func innocuous_$ac_func
15115 /* System header to define __stub macros and hopefully few prototypes,
15116     which can conflict with char $ac_func (); below.
15117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15118     <limits.h> exists even on freestanding compilers.  */
15120 #ifdef __STDC__
15121 # include <limits.h>
15122 #else
15123 # include <assert.h>
15124 #endif
15126 #undef $ac_func
15128 /* Override any GCC internal prototype to avoid an error.
15129    Use char because int might match the return type of a GCC
15130    builtin and then its argument prototype would still apply.  */
15131 #ifdef __cplusplus
15132 extern "C"
15133 #endif
15134 char $ac_func ();
15135 /* The GNU C library defines this for functions which it implements
15136     to always fail with ENOSYS.  Some functions are actually named
15137     something starting with __ and the normal name is an alias.  */
15138 #if defined __stub_$ac_func || defined __stub___$ac_func
15139 choke me
15140 #endif
15142 int
15143 main ()
15145 return $ac_func ();
15146   ;
15147   return 0;
15149 _ACEOF
15150 rm -f conftest.$ac_objext conftest$ac_exeext
15151 if { (ac_try="$ac_link"
15152 case "(($ac_try" in
15153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154   *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157   (eval "$ac_link") 2>conftest.er1
15158   ac_status=$?
15159   grep -v '^ *+' conftest.er1 >conftest.err
15160   rm -f conftest.er1
15161   cat conftest.err >&5
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); } &&
15164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15165   { (case "(($ac_try" in
15166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167   *) ac_try_echo=$ac_try;;
15168 esac
15169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170   (eval "$ac_try") 2>&5
15171   ac_status=$?
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); }; } &&
15174          { ac_try='test -s conftest$ac_exeext'
15175   { (case "(($ac_try" in
15176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177   *) ac_try_echo=$ac_try;;
15178 esac
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180   (eval "$ac_try") 2>&5
15181   ac_status=$?
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); }; }; then
15184   eval "$as_ac_var=yes"
15185 else
15186   echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189         eval "$as_ac_var=no"
15192 rm -f core conftest.err conftest.$ac_objext \
15193       conftest$ac_exeext conftest.$ac_ext
15195 ac_res=`eval echo '${'$as_ac_var'}'`
15196                { echo "$as_me:$LINENO: result: $ac_res" >&5
15197 echo "${ECHO_T}$ac_res" >&6; }
15198 if test `eval echo '${'$as_ac_var'}'` = yes; then
15199   cat >>confdefs.h <<_ACEOF
15200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15201 _ACEOF
15204 done
15206 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15207 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15208 if test "${llvm_cv_c_printf_a+set}" = set; then
15209   echo $ECHO_N "(cached) $ECHO_C" >&6
15210 else
15211   ac_ext=c
15212 ac_cpp='$CPP $CPPFLAGS'
15213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15217  if test "$cross_compiling" = yes; then
15218   llvmac_cv_c_printf_a=no
15219 else
15220   cat >conftest.$ac_ext <<_ACEOF
15222   /* confdefs.h.  */
15223 _ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h.  */
15228 #include <stdio.h>
15229 #include <stdlib.h>
15231 int
15232 main ()
15235 volatile double A, B;
15236 char Buffer[100];
15237 A = 1;
15238 A /= 10.0;
15239 sprintf(Buffer, "%a", A);
15240 B = atof(Buffer);
15241 if (A != B)
15242   return (1);
15243 if (A != 0x1.999999999999ap-4)
15244   return (1);
15245 return (0);
15246   ;
15247   return 0;
15249 _ACEOF
15250 rm -f conftest$ac_exeext
15251 if { (ac_try="$ac_link"
15252 case "(($ac_try" in
15253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254   *) ac_try_echo=$ac_try;;
15255 esac
15256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257   (eval "$ac_link") 2>&5
15258   ac_status=$?
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15261   { (case "(($ac_try" in
15262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263   *) ac_try_echo=$ac_try;;
15264 esac
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266   (eval "$ac_try") 2>&5
15267   ac_status=$?
15268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); }; }; then
15270   llvm_cv_c_printf_a=yes
15271 else
15272   echo "$as_me: program exited with status $ac_status" >&5
15273 echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15276 ( exit $ac_status )
15277 llvmac_cv_c_printf_a=no
15279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15283  ac_ext=c
15284 ac_cpp='$CPP $CPPFLAGS'
15285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15290 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15291 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15292  if test "$llvm_cv_c_printf_a" = "yes"; then
15294 cat >>confdefs.h <<\_ACEOF
15295 #define HAVE_PRINTF_A 1
15296 _ACEOF
15298  fi
15302   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15303 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15304 if test "${ac_cv_func_rand48+set}" = set; then
15305   echo $ECHO_N "(cached) $ECHO_C" >&6
15306 else
15308     ac_ext=cpp
15309 ac_cpp='$CXXCPP $CPPFLAGS'
15310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15314     cat >conftest.$ac_ext <<_ACEOF
15315 /* confdefs.h.  */
15316 _ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h.  */
15320 #include <stdlib.h>
15321 int
15322 main ()
15324 srand48(0);lrand48();drand48();
15325   ;
15326   return 0;
15328 _ACEOF
15329 rm -f conftest.$ac_objext
15330 if { (ac_try="$ac_compile"
15331 case "(($ac_try" in
15332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333   *) ac_try_echo=$ac_try;;
15334 esac
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336   (eval "$ac_compile") 2>conftest.er1
15337   ac_status=$?
15338   grep -v '^ *+' conftest.er1 >conftest.err
15339   rm -f conftest.er1
15340   cat conftest.err >&5
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); } &&
15343          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15344   { (case "(($ac_try" in
15345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346   *) ac_try_echo=$ac_try;;
15347 esac
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349   (eval "$ac_try") 2>&5
15350   ac_status=$?
15351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352   (exit $ac_status); }; } &&
15353          { ac_try='test -s conftest.$ac_objext'
15354   { (case "(($ac_try" in
15355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356   *) ac_try_echo=$ac_try;;
15357 esac
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359   (eval "$ac_try") 2>&5
15360   ac_status=$?
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); }; }; then
15363   ac_cv_func_rand48=yes
15364 else
15365   echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15368         ac_cv_func_rand48=no
15371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372     ac_ext=c
15373 ac_cpp='$CPP $CPPFLAGS'
15374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15380 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15381 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15383 if test "$ac_cv_func_rand48" = "yes" ; then
15385 cat >>confdefs.h <<\_ACEOF
15386 #define HAVE_RAND48 1
15387 _ACEOF
15392 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15393 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15394 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15395   echo $ECHO_N "(cached) $ECHO_C" >&6
15396 else
15397   cat >conftest.$ac_ext <<_ACEOF
15398 /* confdefs.h.  */
15399 _ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h.  */
15403 $ac_includes_default
15404 int
15405 main ()
15407 #ifndef arc4random
15408   char *p = (char *) arc4random;
15409   return !p;
15410 #endif
15412   ;
15413   return 0;
15415 _ACEOF
15416 rm -f conftest.$ac_objext
15417 if { (ac_try="$ac_compile"
15418 case "(($ac_try" in
15419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420   *) ac_try_echo=$ac_try;;
15421 esac
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423   (eval "$ac_compile") 2>conftest.er1
15424   ac_status=$?
15425   grep -v '^ *+' conftest.er1 >conftest.err
15426   rm -f conftest.er1
15427   cat conftest.err >&5
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); } &&
15430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15431   { (case "(($ac_try" in
15432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433   *) ac_try_echo=$ac_try;;
15434 esac
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436   (eval "$ac_try") 2>&5
15437   ac_status=$?
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); }; } &&
15440          { ac_try='test -s conftest.$ac_objext'
15441   { (case "(($ac_try" in
15442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443   *) ac_try_echo=$ac_try;;
15444 esac
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446   (eval "$ac_try") 2>&5
15447   ac_status=$?
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); }; }; then
15450   ac_cv_have_decl_arc4random=yes
15451 else
15452   echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455         ac_cv_have_decl_arc4random=no
15458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15461 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15462 if test $ac_cv_have_decl_arc4random = yes; then
15464 cat >>confdefs.h <<_ACEOF
15465 #define HAVE_DECL_ARC4RANDOM 1
15466 _ACEOF
15469 else
15470   cat >>confdefs.h <<_ACEOF
15471 #define HAVE_DECL_ARC4RANDOM 0
15472 _ACEOF
15479 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15480 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15481 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15482   echo $ECHO_N "(cached) $ECHO_C" >&6
15483 else
15484   cat >conftest.$ac_ext <<_ACEOF
15485 /* confdefs.h.  */
15486 _ACEOF
15487 cat confdefs.h >>conftest.$ac_ext
15488 cat >>conftest.$ac_ext <<_ACEOF
15489 /* end confdefs.h.  */
15490 $ac_includes_default
15491 int
15492 main ()
15494 #ifndef strerror_s
15495   char *p = (char *) strerror_s;
15496   return !p;
15497 #endif
15499   ;
15500   return 0;
15502 _ACEOF
15503 rm -f conftest.$ac_objext
15504 if { (ac_try="$ac_compile"
15505 case "(($ac_try" in
15506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507   *) ac_try_echo=$ac_try;;
15508 esac
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510   (eval "$ac_compile") 2>conftest.er1
15511   ac_status=$?
15512   grep -v '^ *+' conftest.er1 >conftest.err
15513   rm -f conftest.er1
15514   cat conftest.err >&5
15515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); } &&
15517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15518   { (case "(($ac_try" in
15519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520   *) ac_try_echo=$ac_try;;
15521 esac
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523   (eval "$ac_try") 2>&5
15524   ac_status=$?
15525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); }; } &&
15527          { ac_try='test -s conftest.$ac_objext'
15528   { (case "(($ac_try" in
15529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530   *) ac_try_echo=$ac_try;;
15531 esac
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533   (eval "$ac_try") 2>&5
15534   ac_status=$?
15535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536   (exit $ac_status); }; }; then
15537   ac_cv_have_decl_strerror_s=yes
15538 else
15539   echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15542         ac_cv_have_decl_strerror_s=no
15545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15547 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15548 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15549 if test $ac_cv_have_decl_strerror_s = yes; then
15551 cat >>confdefs.h <<_ACEOF
15552 #define HAVE_DECL_STRERROR_S 1
15553 _ACEOF
15556 else
15557   cat >>confdefs.h <<_ACEOF
15558 #define HAVE_DECL_STRERROR_S 0
15559 _ACEOF
15566 if test "$llvm_cv_os_type" = "MingW" ; then
15567   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15568 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15569 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15570   echo $ECHO_N "(cached) $ECHO_C" >&6
15571 else
15572   ac_check_lib_save_LIBS=$LIBS
15573 LIBS="-lgcc  $LIBS"
15574 cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h.  */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h.  */
15581 /* Override any GCC internal prototype to avoid an error.
15582    Use char because int might match the return type of a GCC
15583    builtin and then its argument prototype would still apply.  */
15584 #ifdef __cplusplus
15585 extern "C"
15586 #endif
15587 char _alloca ();
15588 int
15589 main ()
15591 return _alloca ();
15592   ;
15593   return 0;
15595 _ACEOF
15596 rm -f conftest.$ac_objext conftest$ac_exeext
15597 if { (ac_try="$ac_link"
15598 case "(($ac_try" in
15599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600   *) ac_try_echo=$ac_try;;
15601 esac
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603   (eval "$ac_link") 2>conftest.er1
15604   ac_status=$?
15605   grep -v '^ *+' conftest.er1 >conftest.err
15606   rm -f conftest.er1
15607   cat conftest.err >&5
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); } &&
15610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15611   { (case "(($ac_try" in
15612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613   *) ac_try_echo=$ac_try;;
15614 esac
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616   (eval "$ac_try") 2>&5
15617   ac_status=$?
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); }; } &&
15620          { ac_try='test -s conftest$ac_exeext'
15621   { (case "(($ac_try" in
15622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623   *) ac_try_echo=$ac_try;;
15624 esac
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626   (eval "$ac_try") 2>&5
15627   ac_status=$?
15628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629   (exit $ac_status); }; }; then
15630   ac_cv_lib_gcc__alloca=yes
15631 else
15632   echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15635         ac_cv_lib_gcc__alloca=no
15638 rm -f core conftest.err conftest.$ac_objext \
15639       conftest$ac_exeext conftest.$ac_ext
15640 LIBS=$ac_check_lib_save_LIBS
15642 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15643 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15644 if test $ac_cv_lib_gcc__alloca = yes; then
15646 cat >>confdefs.h <<\_ACEOF
15647 #define HAVE__ALLOCA 1
15648 _ACEOF
15652   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15653 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15654 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15655   echo $ECHO_N "(cached) $ECHO_C" >&6
15656 else
15657   ac_check_lib_save_LIBS=$LIBS
15658 LIBS="-lgcc  $LIBS"
15659 cat >conftest.$ac_ext <<_ACEOF
15660 /* confdefs.h.  */
15661 _ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h.  */
15666 /* Override any GCC internal prototype to avoid an error.
15667    Use char because int might match the return type of a GCC
15668    builtin and then its argument prototype would still apply.  */
15669 #ifdef __cplusplus
15670 extern "C"
15671 #endif
15672 char __alloca ();
15673 int
15674 main ()
15676 return __alloca ();
15677   ;
15678   return 0;
15680 _ACEOF
15681 rm -f conftest.$ac_objext conftest$ac_exeext
15682 if { (ac_try="$ac_link"
15683 case "(($ac_try" in
15684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685   *) ac_try_echo=$ac_try;;
15686 esac
15687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688   (eval "$ac_link") 2>conftest.er1
15689   ac_status=$?
15690   grep -v '^ *+' conftest.er1 >conftest.err
15691   rm -f conftest.er1
15692   cat conftest.err >&5
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); } &&
15695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15696   { (case "(($ac_try" in
15697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698   *) ac_try_echo=$ac_try;;
15699 esac
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701   (eval "$ac_try") 2>&5
15702   ac_status=$?
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); }; } &&
15705          { ac_try='test -s conftest$ac_exeext'
15706   { (case "(($ac_try" in
15707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708   *) ac_try_echo=$ac_try;;
15709 esac
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711   (eval "$ac_try") 2>&5
15712   ac_status=$?
15713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); }; }; then
15715   ac_cv_lib_gcc___alloca=yes
15716 else
15717   echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.$ac_ext >&5
15720         ac_cv_lib_gcc___alloca=no
15723 rm -f core conftest.err conftest.$ac_objext \
15724       conftest$ac_exeext conftest.$ac_ext
15725 LIBS=$ac_check_lib_save_LIBS
15727 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15728 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15729 if test $ac_cv_lib_gcc___alloca = yes; then
15731 cat >>confdefs.h <<\_ACEOF
15732 #define HAVE___ALLOCA 1
15733 _ACEOF
15737   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15738 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15739 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15740   echo $ECHO_N "(cached) $ECHO_C" >&6
15741 else
15742   ac_check_lib_save_LIBS=$LIBS
15743 LIBS="-lgcc  $LIBS"
15744 cat >conftest.$ac_ext <<_ACEOF
15745 /* confdefs.h.  */
15746 _ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h.  */
15751 /* Override any GCC internal prototype to avoid an error.
15752    Use char because int might match the return type of a GCC
15753    builtin and then its argument prototype would still apply.  */
15754 #ifdef __cplusplus
15755 extern "C"
15756 #endif
15757 char __chkstk ();
15758 int
15759 main ()
15761 return __chkstk ();
15762   ;
15763   return 0;
15765 _ACEOF
15766 rm -f conftest.$ac_objext conftest$ac_exeext
15767 if { (ac_try="$ac_link"
15768 case "(($ac_try" in
15769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770   *) ac_try_echo=$ac_try;;
15771 esac
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773   (eval "$ac_link") 2>conftest.er1
15774   ac_status=$?
15775   grep -v '^ *+' conftest.er1 >conftest.err
15776   rm -f conftest.er1
15777   cat conftest.err >&5
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); } &&
15780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15781   { (case "(($ac_try" in
15782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783   *) ac_try_echo=$ac_try;;
15784 esac
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786   (eval "$ac_try") 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; } &&
15790          { ac_try='test -s conftest$ac_exeext'
15791   { (case "(($ac_try" in
15792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793   *) ac_try_echo=$ac_try;;
15794 esac
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796   (eval "$ac_try") 2>&5
15797   ac_status=$?
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); }; }; then
15800   ac_cv_lib_gcc___chkstk=yes
15801 else
15802   echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805         ac_cv_lib_gcc___chkstk=no
15808 rm -f core conftest.err conftest.$ac_objext \
15809       conftest$ac_exeext conftest.$ac_ext
15810 LIBS=$ac_check_lib_save_LIBS
15812 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15813 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15814 if test $ac_cv_lib_gcc___chkstk = yes; then
15816 cat >>confdefs.h <<\_ACEOF
15817 #define HAVE___CHKSTK 1
15818 _ACEOF
15822   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15823 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15824 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15825   echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827   ac_check_lib_save_LIBS=$LIBS
15828 LIBS="-lgcc  $LIBS"
15829 cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h.  */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h.  */
15836 /* Override any GCC internal prototype to avoid an error.
15837    Use char because int might match the return type of a GCC
15838    builtin and then its argument prototype would still apply.  */
15839 #ifdef __cplusplus
15840 extern "C"
15841 #endif
15842 char ___chkstk ();
15843 int
15844 main ()
15846 return ___chkstk ();
15847   ;
15848   return 0;
15850 _ACEOF
15851 rm -f conftest.$ac_objext conftest$ac_exeext
15852 if { (ac_try="$ac_link"
15853 case "(($ac_try" in
15854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855   *) ac_try_echo=$ac_try;;
15856 esac
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858   (eval "$ac_link") 2>conftest.er1
15859   ac_status=$?
15860   grep -v '^ *+' conftest.er1 >conftest.err
15861   rm -f conftest.er1
15862   cat conftest.err >&5
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); } &&
15865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15866   { (case "(($ac_try" in
15867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868   *) ac_try_echo=$ac_try;;
15869 esac
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871   (eval "$ac_try") 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); }; } &&
15875          { ac_try='test -s conftest$ac_exeext'
15876   { (case "(($ac_try" in
15877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878   *) ac_try_echo=$ac_try;;
15879 esac
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881   (eval "$ac_try") 2>&5
15882   ac_status=$?
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); }; }; then
15885   ac_cv_lib_gcc____chkstk=yes
15886 else
15887   echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.$ac_ext >&5
15890         ac_cv_lib_gcc____chkstk=no
15893 rm -f core conftest.err conftest.$ac_objext \
15894       conftest$ac_exeext conftest.$ac_ext
15895 LIBS=$ac_check_lib_save_LIBS
15897 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15898 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15899 if test $ac_cv_lib_gcc____chkstk = yes; then
15901 cat >>confdefs.h <<\_ACEOF
15902 #define HAVE____CHKSTK 1
15903 _ACEOF
15908   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15909 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15910 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15911   echo $ECHO_N "(cached) $ECHO_C" >&6
15912 else
15913   ac_check_lib_save_LIBS=$LIBS
15914 LIBS="-lgcc  $LIBS"
15915 cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h.  */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h.  */
15922 /* Override any GCC internal prototype to avoid an error.
15923    Use char because int might match the return type of a GCC
15924    builtin and then its argument prototype would still apply.  */
15925 #ifdef __cplusplus
15926 extern "C"
15927 #endif
15928 char __ashldi3 ();
15929 int
15930 main ()
15932 return __ashldi3 ();
15933   ;
15934   return 0;
15936 _ACEOF
15937 rm -f conftest.$ac_objext conftest$ac_exeext
15938 if { (ac_try="$ac_link"
15939 case "(($ac_try" in
15940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941   *) ac_try_echo=$ac_try;;
15942 esac
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944   (eval "$ac_link") 2>conftest.er1
15945   ac_status=$?
15946   grep -v '^ *+' conftest.er1 >conftest.err
15947   rm -f conftest.er1
15948   cat conftest.err >&5
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } &&
15951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15952   { (case "(($ac_try" in
15953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954   *) ac_try_echo=$ac_try;;
15955 esac
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957   (eval "$ac_try") 2>&5
15958   ac_status=$?
15959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960   (exit $ac_status); }; } &&
15961          { ac_try='test -s conftest$ac_exeext'
15962   { (case "(($ac_try" in
15963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964   *) ac_try_echo=$ac_try;;
15965 esac
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967   (eval "$ac_try") 2>&5
15968   ac_status=$?
15969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970   (exit $ac_status); }; }; then
15971   ac_cv_lib_gcc___ashldi3=yes
15972 else
15973   echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976         ac_cv_lib_gcc___ashldi3=no
15979 rm -f core conftest.err conftest.$ac_objext \
15980       conftest$ac_exeext conftest.$ac_ext
15981 LIBS=$ac_check_lib_save_LIBS
15983 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15984 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15985 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15987 cat >>confdefs.h <<\_ACEOF
15988 #define HAVE___ASHLDI3 1
15989 _ACEOF
15993   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15994 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15995 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15996   echo $ECHO_N "(cached) $ECHO_C" >&6
15997 else
15998   ac_check_lib_save_LIBS=$LIBS
15999 LIBS="-lgcc  $LIBS"
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h.  */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h.  */
16007 /* Override any GCC internal prototype to avoid an error.
16008    Use char because int might match the return type of a GCC
16009    builtin and then its argument prototype would still apply.  */
16010 #ifdef __cplusplus
16011 extern "C"
16012 #endif
16013 char __ashrdi3 ();
16014 int
16015 main ()
16017 return __ashrdi3 ();
16018   ;
16019   return 0;
16021 _ACEOF
16022 rm -f conftest.$ac_objext conftest$ac_exeext
16023 if { (ac_try="$ac_link"
16024 case "(($ac_try" in
16025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026   *) ac_try_echo=$ac_try;;
16027 esac
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029   (eval "$ac_link") 2>conftest.er1
16030   ac_status=$?
16031   grep -v '^ *+' conftest.er1 >conftest.err
16032   rm -f conftest.er1
16033   cat conftest.err >&5
16034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035   (exit $ac_status); } &&
16036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16037   { (case "(($ac_try" in
16038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16039   *) ac_try_echo=$ac_try;;
16040 esac
16041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16042   (eval "$ac_try") 2>&5
16043   ac_status=$?
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); }; } &&
16046          { ac_try='test -s conftest$ac_exeext'
16047   { (case "(($ac_try" in
16048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049   *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052   (eval "$ac_try") 2>&5
16053   ac_status=$?
16054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055   (exit $ac_status); }; }; then
16056   ac_cv_lib_gcc___ashrdi3=yes
16057 else
16058   echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16061         ac_cv_lib_gcc___ashrdi3=no
16064 rm -f core conftest.err conftest.$ac_objext \
16065       conftest$ac_exeext conftest.$ac_ext
16066 LIBS=$ac_check_lib_save_LIBS
16068 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16069 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16070 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16072 cat >>confdefs.h <<\_ACEOF
16073 #define HAVE___ASHRDI3 1
16074 _ACEOF
16078   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16079 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16080 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16081   echo $ECHO_N "(cached) $ECHO_C" >&6
16082 else
16083   ac_check_lib_save_LIBS=$LIBS
16084 LIBS="-lgcc  $LIBS"
16085 cat >conftest.$ac_ext <<_ACEOF
16086 /* confdefs.h.  */
16087 _ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h.  */
16092 /* Override any GCC internal prototype to avoid an error.
16093    Use char because int might match the return type of a GCC
16094    builtin and then its argument prototype would still apply.  */
16095 #ifdef __cplusplus
16096 extern "C"
16097 #endif
16098 char __divdi3 ();
16099 int
16100 main ()
16102 return __divdi3 ();
16103   ;
16104   return 0;
16106 _ACEOF
16107 rm -f conftest.$ac_objext conftest$ac_exeext
16108 if { (ac_try="$ac_link"
16109 case "(($ac_try" in
16110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111   *) ac_try_echo=$ac_try;;
16112 esac
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114   (eval "$ac_link") 2>conftest.er1
16115   ac_status=$?
16116   grep -v '^ *+' conftest.er1 >conftest.err
16117   rm -f conftest.er1
16118   cat conftest.err >&5
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); } &&
16121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122   { (case "(($ac_try" in
16123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124   *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127   (eval "$ac_try") 2>&5
16128   ac_status=$?
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); }; } &&
16131          { ac_try='test -s conftest$ac_exeext'
16132   { (case "(($ac_try" in
16133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134   *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137   (eval "$ac_try") 2>&5
16138   ac_status=$?
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); }; }; then
16141   ac_cv_lib_gcc___divdi3=yes
16142 else
16143   echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16146         ac_cv_lib_gcc___divdi3=no
16149 rm -f core conftest.err conftest.$ac_objext \
16150       conftest$ac_exeext conftest.$ac_ext
16151 LIBS=$ac_check_lib_save_LIBS
16153 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16154 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16155 if test $ac_cv_lib_gcc___divdi3 = yes; then
16157 cat >>confdefs.h <<\_ACEOF
16158 #define HAVE___DIVDI3 1
16159 _ACEOF
16163   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16164 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16165 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16166   echo $ECHO_N "(cached) $ECHO_C" >&6
16167 else
16168   ac_check_lib_save_LIBS=$LIBS
16169 LIBS="-lgcc  $LIBS"
16170 cat >conftest.$ac_ext <<_ACEOF
16171 /* confdefs.h.  */
16172 _ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h.  */
16177 /* Override any GCC internal prototype to avoid an error.
16178    Use char because int might match the return type of a GCC
16179    builtin and then its argument prototype would still apply.  */
16180 #ifdef __cplusplus
16181 extern "C"
16182 #endif
16183 char __fixdfdi ();
16184 int
16185 main ()
16187 return __fixdfdi ();
16188   ;
16189   return 0;
16191 _ACEOF
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (ac_try="$ac_link"
16194 case "(($ac_try" in
16195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196   *) ac_try_echo=$ac_try;;
16197 esac
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199   (eval "$ac_link") 2>conftest.er1
16200   ac_status=$?
16201   grep -v '^ *+' conftest.er1 >conftest.err
16202   rm -f conftest.er1
16203   cat conftest.err >&5
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); } &&
16206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16207   { (case "(($ac_try" in
16208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209   *) ac_try_echo=$ac_try;;
16210 esac
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212   (eval "$ac_try") 2>&5
16213   ac_status=$?
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); }; } &&
16216          { ac_try='test -s conftest$ac_exeext'
16217   { (case "(($ac_try" in
16218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219   *) ac_try_echo=$ac_try;;
16220 esac
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222   (eval "$ac_try") 2>&5
16223   ac_status=$?
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); }; }; then
16226   ac_cv_lib_gcc___fixdfdi=yes
16227 else
16228   echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231         ac_cv_lib_gcc___fixdfdi=no
16234 rm -f core conftest.err conftest.$ac_objext \
16235       conftest$ac_exeext conftest.$ac_ext
16236 LIBS=$ac_check_lib_save_LIBS
16238 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16239 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16240 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16242 cat >>confdefs.h <<\_ACEOF
16243 #define HAVE___FIXDFDI 1
16244 _ACEOF
16248   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16249 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16250 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16251   echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253   ac_check_lib_save_LIBS=$LIBS
16254 LIBS="-lgcc  $LIBS"
16255 cat >conftest.$ac_ext <<_ACEOF
16256 /* confdefs.h.  */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h.  */
16262 /* Override any GCC internal prototype to avoid an error.
16263    Use char because int might match the return type of a GCC
16264    builtin and then its argument prototype would still apply.  */
16265 #ifdef __cplusplus
16266 extern "C"
16267 #endif
16268 char __fixsfdi ();
16269 int
16270 main ()
16272 return __fixsfdi ();
16273   ;
16274   return 0;
16276 _ACEOF
16277 rm -f conftest.$ac_objext conftest$ac_exeext
16278 if { (ac_try="$ac_link"
16279 case "(($ac_try" in
16280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281   *) ac_try_echo=$ac_try;;
16282 esac
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284   (eval "$ac_link") 2>conftest.er1
16285   ac_status=$?
16286   grep -v '^ *+' conftest.er1 >conftest.err
16287   rm -f conftest.er1
16288   cat conftest.err >&5
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); } &&
16291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16292   { (case "(($ac_try" in
16293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294   *) ac_try_echo=$ac_try;;
16295 esac
16296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297   (eval "$ac_try") 2>&5
16298   ac_status=$?
16299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300   (exit $ac_status); }; } &&
16301          { ac_try='test -s conftest$ac_exeext'
16302   { (case "(($ac_try" in
16303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304   *) ac_try_echo=$ac_try;;
16305 esac
16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307   (eval "$ac_try") 2>&5
16308   ac_status=$?
16309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310   (exit $ac_status); }; }; then
16311   ac_cv_lib_gcc___fixsfdi=yes
16312 else
16313   echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16316         ac_cv_lib_gcc___fixsfdi=no
16319 rm -f core conftest.err conftest.$ac_objext \
16320       conftest$ac_exeext conftest.$ac_ext
16321 LIBS=$ac_check_lib_save_LIBS
16323 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16324 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16325 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16327 cat >>confdefs.h <<\_ACEOF
16328 #define HAVE___FIXSFDI 1
16329 _ACEOF
16333   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16334 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16335 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16336   echo $ECHO_N "(cached) $ECHO_C" >&6
16337 else
16338   ac_check_lib_save_LIBS=$LIBS
16339 LIBS="-lgcc  $LIBS"
16340 cat >conftest.$ac_ext <<_ACEOF
16341 /* confdefs.h.  */
16342 _ACEOF
16343 cat confdefs.h >>conftest.$ac_ext
16344 cat >>conftest.$ac_ext <<_ACEOF
16345 /* end confdefs.h.  */
16347 /* Override any GCC internal prototype to avoid an error.
16348    Use char because int might match the return type of a GCC
16349    builtin and then its argument prototype would still apply.  */
16350 #ifdef __cplusplus
16351 extern "C"
16352 #endif
16353 char __floatdidf ();
16354 int
16355 main ()
16357 return __floatdidf ();
16358   ;
16359   return 0;
16361 _ACEOF
16362 rm -f conftest.$ac_objext conftest$ac_exeext
16363 if { (ac_try="$ac_link"
16364 case "(($ac_try" in
16365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366   *) ac_try_echo=$ac_try;;
16367 esac
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369   (eval "$ac_link") 2>conftest.er1
16370   ac_status=$?
16371   grep -v '^ *+' conftest.er1 >conftest.err
16372   rm -f conftest.er1
16373   cat conftest.err >&5
16374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375   (exit $ac_status); } &&
16376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16377   { (case "(($ac_try" in
16378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379   *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382   (eval "$ac_try") 2>&5
16383   ac_status=$?
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); }; } &&
16386          { ac_try='test -s conftest$ac_exeext'
16387   { (case "(($ac_try" in
16388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389   *) ac_try_echo=$ac_try;;
16390 esac
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392   (eval "$ac_try") 2>&5
16393   ac_status=$?
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); }; }; then
16396   ac_cv_lib_gcc___floatdidf=yes
16397 else
16398   echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401         ac_cv_lib_gcc___floatdidf=no
16404 rm -f core conftest.err conftest.$ac_objext \
16405       conftest$ac_exeext conftest.$ac_ext
16406 LIBS=$ac_check_lib_save_LIBS
16408 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16409 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16410 if test $ac_cv_lib_gcc___floatdidf = yes; then
16412 cat >>confdefs.h <<\_ACEOF
16413 #define HAVE___FLOATDIDF 1
16414 _ACEOF
16418   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16419 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16420 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16421   echo $ECHO_N "(cached) $ECHO_C" >&6
16422 else
16423   ac_check_lib_save_LIBS=$LIBS
16424 LIBS="-lgcc  $LIBS"
16425 cat >conftest.$ac_ext <<_ACEOF
16426 /* confdefs.h.  */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h.  */
16432 /* Override any GCC internal prototype to avoid an error.
16433    Use char because int might match the return type of a GCC
16434    builtin and then its argument prototype would still apply.  */
16435 #ifdef __cplusplus
16436 extern "C"
16437 #endif
16438 char __lshrdi3 ();
16439 int
16440 main ()
16442 return __lshrdi3 ();
16443   ;
16444   return 0;
16446 _ACEOF
16447 rm -f conftest.$ac_objext conftest$ac_exeext
16448 if { (ac_try="$ac_link"
16449 case "(($ac_try" in
16450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451   *) ac_try_echo=$ac_try;;
16452 esac
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454   (eval "$ac_link") 2>conftest.er1
16455   ac_status=$?
16456   grep -v '^ *+' conftest.er1 >conftest.err
16457   rm -f conftest.er1
16458   cat conftest.err >&5
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); } &&
16461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16462   { (case "(($ac_try" in
16463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464   *) ac_try_echo=$ac_try;;
16465 esac
16466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16467   (eval "$ac_try") 2>&5
16468   ac_status=$?
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); }; } &&
16471          { ac_try='test -s conftest$ac_exeext'
16472   { (case "(($ac_try" in
16473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474   *) ac_try_echo=$ac_try;;
16475 esac
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477   (eval "$ac_try") 2>&5
16478   ac_status=$?
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); }; }; then
16481   ac_cv_lib_gcc___lshrdi3=yes
16482 else
16483   echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16486         ac_cv_lib_gcc___lshrdi3=no
16489 rm -f core conftest.err conftest.$ac_objext \
16490       conftest$ac_exeext conftest.$ac_ext
16491 LIBS=$ac_check_lib_save_LIBS
16493 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16494 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16495 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16497 cat >>confdefs.h <<\_ACEOF
16498 #define HAVE___LSHRDI3 1
16499 _ACEOF
16503   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16504 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16505 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16506   echo $ECHO_N "(cached) $ECHO_C" >&6
16507 else
16508   ac_check_lib_save_LIBS=$LIBS
16509 LIBS="-lgcc  $LIBS"
16510 cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h.  */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h.  */
16517 /* Override any GCC internal prototype to avoid an error.
16518    Use char because int might match the return type of a GCC
16519    builtin and then its argument prototype would still apply.  */
16520 #ifdef __cplusplus
16521 extern "C"
16522 #endif
16523 char __moddi3 ();
16524 int
16525 main ()
16527 return __moddi3 ();
16528   ;
16529   return 0;
16531 _ACEOF
16532 rm -f conftest.$ac_objext conftest$ac_exeext
16533 if { (ac_try="$ac_link"
16534 case "(($ac_try" in
16535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536   *) ac_try_echo=$ac_try;;
16537 esac
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539   (eval "$ac_link") 2>conftest.er1
16540   ac_status=$?
16541   grep -v '^ *+' conftest.er1 >conftest.err
16542   rm -f conftest.er1
16543   cat conftest.err >&5
16544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545   (exit $ac_status); } &&
16546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16547   { (case "(($ac_try" in
16548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549   *) ac_try_echo=$ac_try;;
16550 esac
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552   (eval "$ac_try") 2>&5
16553   ac_status=$?
16554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); }; } &&
16556          { ac_try='test -s conftest$ac_exeext'
16557   { (case "(($ac_try" in
16558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559   *) ac_try_echo=$ac_try;;
16560 esac
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562   (eval "$ac_try") 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); }; }; then
16566   ac_cv_lib_gcc___moddi3=yes
16567 else
16568   echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16571         ac_cv_lib_gcc___moddi3=no
16574 rm -f core conftest.err conftest.$ac_objext \
16575       conftest$ac_exeext conftest.$ac_ext
16576 LIBS=$ac_check_lib_save_LIBS
16578 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16579 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16580 if test $ac_cv_lib_gcc___moddi3 = yes; then
16582 cat >>confdefs.h <<\_ACEOF
16583 #define HAVE___MODDI3 1
16584 _ACEOF
16588   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16589 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16590 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16591   echo $ECHO_N "(cached) $ECHO_C" >&6
16592 else
16593   ac_check_lib_save_LIBS=$LIBS
16594 LIBS="-lgcc  $LIBS"
16595 cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h.  */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h.  */
16602 /* Override any GCC internal prototype to avoid an error.
16603    Use char because int might match the return type of a GCC
16604    builtin and then its argument prototype would still apply.  */
16605 #ifdef __cplusplus
16606 extern "C"
16607 #endif
16608 char __udivdi3 ();
16609 int
16610 main ()
16612 return __udivdi3 ();
16613   ;
16614   return 0;
16616 _ACEOF
16617 rm -f conftest.$ac_objext conftest$ac_exeext
16618 if { (ac_try="$ac_link"
16619 case "(($ac_try" in
16620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621   *) ac_try_echo=$ac_try;;
16622 esac
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624   (eval "$ac_link") 2>conftest.er1
16625   ac_status=$?
16626   grep -v '^ *+' conftest.er1 >conftest.err
16627   rm -f conftest.er1
16628   cat conftest.err >&5
16629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630   (exit $ac_status); } &&
16631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632   { (case "(($ac_try" in
16633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634   *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637   (eval "$ac_try") 2>&5
16638   ac_status=$?
16639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640   (exit $ac_status); }; } &&
16641          { ac_try='test -s conftest$ac_exeext'
16642   { (case "(($ac_try" in
16643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644   *) ac_try_echo=$ac_try;;
16645 esac
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647   (eval "$ac_try") 2>&5
16648   ac_status=$?
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); }; }; then
16651   ac_cv_lib_gcc___udivdi3=yes
16652 else
16653   echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656         ac_cv_lib_gcc___udivdi3=no
16659 rm -f core conftest.err conftest.$ac_objext \
16660       conftest$ac_exeext conftest.$ac_ext
16661 LIBS=$ac_check_lib_save_LIBS
16663 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16664 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16665 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16667 cat >>confdefs.h <<\_ACEOF
16668 #define HAVE___UDIVDI3 1
16669 _ACEOF
16673   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16674 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16675 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16676   echo $ECHO_N "(cached) $ECHO_C" >&6
16677 else
16678   ac_check_lib_save_LIBS=$LIBS
16679 LIBS="-lgcc  $LIBS"
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h.  */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h.  */
16687 /* Override any GCC internal prototype to avoid an error.
16688    Use char because int might match the return type of a GCC
16689    builtin and then its argument prototype would still apply.  */
16690 #ifdef __cplusplus
16691 extern "C"
16692 #endif
16693 char __umoddi3 ();
16694 int
16695 main ()
16697 return __umoddi3 ();
16698   ;
16699   return 0;
16701 _ACEOF
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (ac_try="$ac_link"
16704 case "(($ac_try" in
16705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706   *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709   (eval "$ac_link") 2>conftest.er1
16710   ac_status=$?
16711   grep -v '^ *+' conftest.er1 >conftest.err
16712   rm -f conftest.er1
16713   cat conftest.err >&5
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); } &&
16716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717   { (case "(($ac_try" in
16718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719   *) ac_try_echo=$ac_try;;
16720 esac
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722   (eval "$ac_try") 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; } &&
16726          { ac_try='test -s conftest$ac_exeext'
16727   { (case "(($ac_try" in
16728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729   *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732   (eval "$ac_try") 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); }; }; then
16736   ac_cv_lib_gcc___umoddi3=yes
16737 else
16738   echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741         ac_cv_lib_gcc___umoddi3=no
16744 rm -f core conftest.err conftest.$ac_objext \
16745       conftest$ac_exeext conftest.$ac_ext
16746 LIBS=$ac_check_lib_save_LIBS
16748 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16749 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16750 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16752 cat >>confdefs.h <<\_ACEOF
16753 #define HAVE___UMODDI3 1
16754 _ACEOF
16759   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16760 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16761 if test "${ac_cv_lib_gcc___main+set}" = set; then
16762   echo $ECHO_N "(cached) $ECHO_C" >&6
16763 else
16764   ac_check_lib_save_LIBS=$LIBS
16765 LIBS="-lgcc  $LIBS"
16766 cat >conftest.$ac_ext <<_ACEOF
16767 /* confdefs.h.  */
16768 _ACEOF
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h.  */
16773 /* Override any GCC internal prototype to avoid an error.
16774    Use char because int might match the return type of a GCC
16775    builtin and then its argument prototype would still apply.  */
16776 #ifdef __cplusplus
16777 extern "C"
16778 #endif
16779 char __main ();
16780 int
16781 main ()
16783 return __main ();
16784   ;
16785   return 0;
16787 _ACEOF
16788 rm -f conftest.$ac_objext conftest$ac_exeext
16789 if { (ac_try="$ac_link"
16790 case "(($ac_try" in
16791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792   *) ac_try_echo=$ac_try;;
16793 esac
16794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16795   (eval "$ac_link") 2>conftest.er1
16796   ac_status=$?
16797   grep -v '^ *+' conftest.er1 >conftest.err
16798   rm -f conftest.er1
16799   cat conftest.err >&5
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); } &&
16802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16803   { (case "(($ac_try" in
16804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805   *) ac_try_echo=$ac_try;;
16806 esac
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808   (eval "$ac_try") 2>&5
16809   ac_status=$?
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); }; } &&
16812          { ac_try='test -s conftest$ac_exeext'
16813   { (case "(($ac_try" in
16814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815   *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818   (eval "$ac_try") 2>&5
16819   ac_status=$?
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); }; }; then
16822   ac_cv_lib_gcc___main=yes
16823 else
16824   echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827         ac_cv_lib_gcc___main=no
16830 rm -f core conftest.err conftest.$ac_objext \
16831       conftest$ac_exeext conftest.$ac_ext
16832 LIBS=$ac_check_lib_save_LIBS
16834 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16835 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16836 if test $ac_cv_lib_gcc___main = yes; then
16838 cat >>confdefs.h <<\_ACEOF
16839 #define HAVE___MAIN 1
16840 _ACEOF
16844   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16845 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16846 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16847   echo $ECHO_N "(cached) $ECHO_C" >&6
16848 else
16849   ac_check_lib_save_LIBS=$LIBS
16850 LIBS="-lgcc  $LIBS"
16851 cat >conftest.$ac_ext <<_ACEOF
16852 /* confdefs.h.  */
16853 _ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h.  */
16858 /* Override any GCC internal prototype to avoid an error.
16859    Use char because int might match the return type of a GCC
16860    builtin and then its argument prototype would still apply.  */
16861 #ifdef __cplusplus
16862 extern "C"
16863 #endif
16864 char __cmpdi2 ();
16865 int
16866 main ()
16868 return __cmpdi2 ();
16869   ;
16870   return 0;
16872 _ACEOF
16873 rm -f conftest.$ac_objext conftest$ac_exeext
16874 if { (ac_try="$ac_link"
16875 case "(($ac_try" in
16876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877   *) ac_try_echo=$ac_try;;
16878 esac
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880   (eval "$ac_link") 2>conftest.er1
16881   ac_status=$?
16882   grep -v '^ *+' conftest.er1 >conftest.err
16883   rm -f conftest.er1
16884   cat conftest.err >&5
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); } &&
16887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16888   { (case "(($ac_try" in
16889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890   *) ac_try_echo=$ac_try;;
16891 esac
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893   (eval "$ac_try") 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; } &&
16897          { ac_try='test -s conftest$ac_exeext'
16898   { (case "(($ac_try" in
16899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900   *) ac_try_echo=$ac_try;;
16901 esac
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903   (eval "$ac_try") 2>&5
16904   ac_status=$?
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); }; }; then
16907   ac_cv_lib_gcc___cmpdi2=yes
16908 else
16909   echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16912         ac_cv_lib_gcc___cmpdi2=no
16915 rm -f core conftest.err conftest.$ac_objext \
16916       conftest$ac_exeext conftest.$ac_ext
16917 LIBS=$ac_check_lib_save_LIBS
16919 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16920 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16921 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16923 cat >>confdefs.h <<\_ACEOF
16924 #define HAVE___CMPDI2 1
16925 _ACEOF
16931 if test "$llvm_cv_os_type" = "MingW" ; then
16932   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16933 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16934   cat >conftest.$ac_ext <<_ACEOF
16936   /* confdefs.h.  */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h.  */
16942     #include <windows.h>
16943     #include <imagehlp.h>
16944     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16945     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16948 _ACEOF
16949 rm -f conftest.$ac_objext
16950 if { (ac_try="$ac_compile"
16951 case "(($ac_try" in
16952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953   *) ac_try_echo=$ac_try;;
16954 esac
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956   (eval "$ac_compile") 2>conftest.er1
16957   ac_status=$?
16958   grep -v '^ *+' conftest.er1 >conftest.err
16959   rm -f conftest.er1
16960   cat conftest.err >&5
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); } &&
16963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16964   { (case "(($ac_try" in
16965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966   *) ac_try_echo=$ac_try;;
16967 esac
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969   (eval "$ac_try") 2>&5
16970   ac_status=$?
16971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972   (exit $ac_status); }; } &&
16973          { ac_try='test -s conftest.$ac_objext'
16974   { (case "(($ac_try" in
16975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976   *) ac_try_echo=$ac_try;;
16977 esac
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979   (eval "$ac_try") 2>&5
16980   ac_status=$?
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); }; }; then
16984   { echo "$as_me:$LINENO: result: yes" >&5
16985 echo "${ECHO_T}yes" >&6; }
16986   llvm_cv_win32_elmcb_pcstr="PCSTR"
16988 else
16989   echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16993   { echo "$as_me:$LINENO: result: no" >&5
16994 echo "${ECHO_T}no" >&6; }
16995   llvm_cv_win32_elmcb_pcstr="PSTR"
16999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001 cat >>confdefs.h <<_ACEOF
17002 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17003 _ACEOF
17009   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17010 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17011 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17012   echo $ECHO_N "(cached) $ECHO_C" >&6
17013 else
17015     ac_ext=cpp
17016 ac_cpp='$CXXCPP $CPPFLAGS'
17017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17021     cat >conftest.$ac_ext <<_ACEOF
17022 /* confdefs.h.  */
17023 _ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h.  */
17027 #include <math.h>
17028 int
17029 main ()
17031 float f; isnan(f);
17032   ;
17033   return 0;
17035 _ACEOF
17036 rm -f conftest.$ac_objext
17037 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17044   ac_status=$?
17045   grep -v '^ *+' conftest.er1 >conftest.err
17046   rm -f conftest.er1
17047   cat conftest.err >&5
17048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049   (exit $ac_status); } &&
17050          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17051   { (case "(($ac_try" in
17052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053   *) ac_try_echo=$ac_try;;
17054 esac
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056   (eval "$ac_try") 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); }; } &&
17060          { ac_try='test -s conftest.$ac_objext'
17061   { (case "(($ac_try" in
17062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063   *) ac_try_echo=$ac_try;;
17064 esac
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066   (eval "$ac_try") 2>&5
17067   ac_status=$?
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); }; }; then
17070   ac_cv_func_isnan_in_math_h=yes
17071 else
17072   echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075         ac_cv_func_isnan_in_math_h=no
17078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17079     ac_ext=c
17080 ac_cpp='$CPP $CPPFLAGS'
17081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17087 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17088 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17091 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17093 cat >>confdefs.h <<\_ACEOF
17094 #define HAVE_ISNAN_IN_MATH_H 1
17095 _ACEOF
17100   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17101 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17102 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17103   echo $ECHO_N "(cached) $ECHO_C" >&6
17104 else
17106     ac_ext=cpp
17107 ac_cpp='$CXXCPP $CPPFLAGS'
17108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17112     cat >conftest.$ac_ext <<_ACEOF
17113 /* confdefs.h.  */
17114 _ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h.  */
17118 #include <cmath>
17119 int
17120 main ()
17122 float f; isnan(f);
17123   ;
17124   return 0;
17126 _ACEOF
17127 rm -f conftest.$ac_objext
17128 if { (ac_try="$ac_compile"
17129 case "(($ac_try" in
17130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131   *) ac_try_echo=$ac_try;;
17132 esac
17133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134   (eval "$ac_compile") 2>conftest.er1
17135   ac_status=$?
17136   grep -v '^ *+' conftest.er1 >conftest.err
17137   rm -f conftest.er1
17138   cat conftest.err >&5
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); } &&
17141          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17142   { (case "(($ac_try" in
17143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144   *) ac_try_echo=$ac_try;;
17145 esac
17146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147   (eval "$ac_try") 2>&5
17148   ac_status=$?
17149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150   (exit $ac_status); }; } &&
17151          { ac_try='test -s conftest.$ac_objext'
17152   { (case "(($ac_try" in
17153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154   *) ac_try_echo=$ac_try;;
17155 esac
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157   (eval "$ac_try") 2>&5
17158   ac_status=$?
17159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160   (exit $ac_status); }; }; then
17161   ac_cv_func_isnan_in_cmath=yes
17162 else
17163   echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17166         ac_cv_func_isnan_in_cmath=no
17169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17170     ac_ext=c
17171 ac_cpp='$CPP $CPPFLAGS'
17172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17178 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17179 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17181 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17183 cat >>confdefs.h <<\_ACEOF
17184 #define HAVE_ISNAN_IN_CMATH 1
17185 _ACEOF
17190   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17191 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17192 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17193   echo $ECHO_N "(cached) $ECHO_C" >&6
17194 else
17196     ac_ext=cpp
17197 ac_cpp='$CXXCPP $CPPFLAGS'
17198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17202     cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h.  */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h.  */
17208 #include <cmath>
17209 int
17210 main ()
17212 float f; std::isnan(f);
17213   ;
17214   return 0;
17216 _ACEOF
17217 rm -f conftest.$ac_objext
17218 if { (ac_try="$ac_compile"
17219 case "(($ac_try" in
17220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221   *) ac_try_echo=$ac_try;;
17222 esac
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224   (eval "$ac_compile") 2>conftest.er1
17225   ac_status=$?
17226   grep -v '^ *+' conftest.er1 >conftest.err
17227   rm -f conftest.er1
17228   cat conftest.err >&5
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); } &&
17231          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17232   { (case "(($ac_try" in
17233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234   *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237   (eval "$ac_try") 2>&5
17238   ac_status=$?
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); }; } &&
17241          { ac_try='test -s conftest.$ac_objext'
17242   { (case "(($ac_try" in
17243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244   *) ac_try_echo=$ac_try;;
17245 esac
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247   (eval "$ac_try") 2>&5
17248   ac_status=$?
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); }; }; then
17251   ac_cv_func_std_isnan_in_cmath=yes
17252 else
17253   echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17256         ac_cv_func_std_isnan_in_cmath=no
17259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17260     ac_ext=c
17261 ac_cpp='$CPP $CPPFLAGS'
17262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17268 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17269 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17271 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17273 cat >>confdefs.h <<\_ACEOF
17274 #define HAVE_STD_ISNAN_IN_CMATH 1
17275 _ACEOF
17282   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17283 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17284 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17285   echo $ECHO_N "(cached) $ECHO_C" >&6
17286 else
17288     ac_ext=cpp
17289 ac_cpp='$CXXCPP $CPPFLAGS'
17290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17294     cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h.  */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h.  */
17300 #include <math.h>
17301 int
17302 main ()
17304 float f; isinf(f);
17305   ;
17306   return 0;
17308 _ACEOF
17309 rm -f conftest.$ac_objext
17310 if { (ac_try="$ac_compile"
17311 case "(($ac_try" in
17312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313   *) ac_try_echo=$ac_try;;
17314 esac
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316   (eval "$ac_compile") 2>conftest.er1
17317   ac_status=$?
17318   grep -v '^ *+' conftest.er1 >conftest.err
17319   rm -f conftest.er1
17320   cat conftest.err >&5
17321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322   (exit $ac_status); } &&
17323          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17324   { (case "(($ac_try" in
17325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326   *) ac_try_echo=$ac_try;;
17327 esac
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329   (eval "$ac_try") 2>&5
17330   ac_status=$?
17331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332   (exit $ac_status); }; } &&
17333          { ac_try='test -s conftest.$ac_objext'
17334   { (case "(($ac_try" in
17335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336   *) ac_try_echo=$ac_try;;
17337 esac
17338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339   (eval "$ac_try") 2>&5
17340   ac_status=$?
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); }; }; then
17343   ac_cv_func_isinf_in_math_h=yes
17344 else
17345   echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17348         ac_cv_func_isinf_in_math_h=no
17351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17352     ac_ext=c
17353 ac_cpp='$CPP $CPPFLAGS'
17354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17360 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17361 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17363 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17365 cat >>confdefs.h <<\_ACEOF
17366 #define HAVE_ISINF_IN_MATH_H 1
17367 _ACEOF
17372   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17373 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17374 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17375   echo $ECHO_N "(cached) $ECHO_C" >&6
17376 else
17378     ac_ext=cpp
17379 ac_cpp='$CXXCPP $CPPFLAGS'
17380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17384     cat >conftest.$ac_ext <<_ACEOF
17385 /* confdefs.h.  */
17386 _ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h.  */
17390 #include <cmath>
17391 int
17392 main ()
17394 float f; isinf(f);
17395   ;
17396   return 0;
17398 _ACEOF
17399 rm -f conftest.$ac_objext
17400 if { (ac_try="$ac_compile"
17401 case "(($ac_try" in
17402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403   *) ac_try_echo=$ac_try;;
17404 esac
17405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406   (eval "$ac_compile") 2>conftest.er1
17407   ac_status=$?
17408   grep -v '^ *+' conftest.er1 >conftest.err
17409   rm -f conftest.er1
17410   cat conftest.err >&5
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); } &&
17413          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17414   { (case "(($ac_try" in
17415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17416   *) ac_try_echo=$ac_try;;
17417 esac
17418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17419   (eval "$ac_try") 2>&5
17420   ac_status=$?
17421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422   (exit $ac_status); }; } &&
17423          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
17430   ac_status=$?
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); }; }; then
17433   ac_cv_func_isinf_in_cmath=yes
17434 else
17435   echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17438         ac_cv_func_isinf_in_cmath=no
17441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17442     ac_ext=c
17443 ac_cpp='$CPP $CPPFLAGS'
17444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17450 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17451 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17453 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17455 cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_ISINF_IN_CMATH 1
17457 _ACEOF
17462   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17463 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17464 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17465   echo $ECHO_N "(cached) $ECHO_C" >&6
17466 else
17468     ac_ext=cpp
17469 ac_cpp='$CXXCPP $CPPFLAGS'
17470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17474     cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h.  */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h.  */
17480 #include <cmath>
17481 int
17482 main ()
17484 float f; std::isinf(f);
17485   ;
17486   return 0;
17488 _ACEOF
17489 rm -f conftest.$ac_objext
17490 if { (ac_try="$ac_compile"
17491 case "(($ac_try" in
17492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493   *) ac_try_echo=$ac_try;;
17494 esac
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496   (eval "$ac_compile") 2>conftest.er1
17497   ac_status=$?
17498   grep -v '^ *+' conftest.er1 >conftest.err
17499   rm -f conftest.er1
17500   cat conftest.err >&5
17501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); } &&
17503          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17504   { (case "(($ac_try" in
17505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17506   *) ac_try_echo=$ac_try;;
17507 esac
17508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17509   (eval "$ac_try") 2>&5
17510   ac_status=$?
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); }; } &&
17513          { ac_try='test -s conftest.$ac_objext'
17514   { (case "(($ac_try" in
17515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516   *) ac_try_echo=$ac_try;;
17517 esac
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519   (eval "$ac_try") 2>&5
17520   ac_status=$?
17521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522   (exit $ac_status); }; }; then
17523   ac_cv_func_std_isinf_in_cmath=yes
17524 else
17525   echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17528         ac_cv_func_std_isinf_in_cmath=no
17531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17532     ac_ext=c
17533 ac_cpp='$CPP $CPPFLAGS'
17534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17540 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17541 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17543 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17545 cat >>confdefs.h <<\_ACEOF
17546 #define HAVE_STD_ISINF_IN_CMATH 1
17547 _ACEOF
17552   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17553 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17554 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17555   echo $ECHO_N "(cached) $ECHO_C" >&6
17556 else
17558     ac_ext=cpp
17559 ac_cpp='$CXXCPP $CPPFLAGS'
17560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17564     cat >conftest.$ac_ext <<_ACEOF
17565 /* confdefs.h.  */
17566 _ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h.  */
17570 #include <ieeefp.h>
17571 int
17572 main ()
17574 float f; finite(f);
17575   ;
17576   return 0;
17578 _ACEOF
17579 rm -f conftest.$ac_objext
17580 if { (ac_try="$ac_compile"
17581 case "(($ac_try" in
17582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583   *) ac_try_echo=$ac_try;;
17584 esac
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586   (eval "$ac_compile") 2>conftest.er1
17587   ac_status=$?
17588   grep -v '^ *+' conftest.er1 >conftest.err
17589   rm -f conftest.er1
17590   cat conftest.err >&5
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); } &&
17593          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17594   { (case "(($ac_try" in
17595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596   *) ac_try_echo=$ac_try;;
17597 esac
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599   (eval "$ac_try") 2>&5
17600   ac_status=$?
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); }; } &&
17603          { ac_try='test -s conftest.$ac_objext'
17604   { (case "(($ac_try" in
17605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606   *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609   (eval "$ac_try") 2>&5
17610   ac_status=$?
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); }; }; then
17613   ac_cv_func_finite_in_ieeefp_h=yes
17614 else
17615   echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17618         ac_cv_func_finite_in_ieeefp_h=no
17621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17622     ac_ext=c
17623 ac_cpp='$CPP $CPPFLAGS'
17624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17630 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17631 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17633 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17635 cat >>confdefs.h <<\_ACEOF
17636 #define HAVE_FINITE_IN_IEEEFP_H 1
17637 _ACEOF
17643 if test "$llvm_cv_platform_type" = "Unix" ; then
17646 for ac_header in stdlib.h unistd.h
17648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17650   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17653   echo $ECHO_N "(cached) $ECHO_C" >&6
17655 ac_res=`eval echo '${'$as_ac_Header'}'`
17656                { echo "$as_me:$LINENO: result: $ac_res" >&5
17657 echo "${ECHO_T}$ac_res" >&6; }
17658 else
17659   # Is the header compilable?
17660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17662 cat >conftest.$ac_ext <<_ACEOF
17663 /* confdefs.h.  */
17664 _ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h.  */
17668 $ac_includes_default
17669 #include <$ac_header>
17670 _ACEOF
17671 rm -f conftest.$ac_objext
17672 if { (ac_try="$ac_compile"
17673 case "(($ac_try" in
17674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675   *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678   (eval "$ac_compile") 2>conftest.er1
17679   ac_status=$?
17680   grep -v '^ *+' conftest.er1 >conftest.err
17681   rm -f conftest.er1
17682   cat conftest.err >&5
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); } &&
17685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686   { (case "(($ac_try" in
17687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688   *) ac_try_echo=$ac_try;;
17689 esac
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691   (eval "$ac_try") 2>&5
17692   ac_status=$?
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); }; } &&
17695          { ac_try='test -s conftest.$ac_objext'
17696   { (case "(($ac_try" in
17697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698   *) ac_try_echo=$ac_try;;
17699 esac
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701   (eval "$ac_try") 2>&5
17702   ac_status=$?
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); }; }; then
17705   ac_header_compiler=yes
17706 else
17707   echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710         ac_header_compiler=no
17713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17715 echo "${ECHO_T}$ac_header_compiler" >&6; }
17717 # Is the header present?
17718 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17720 cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h.  */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h.  */
17726 #include <$ac_header>
17727 _ACEOF
17728 if { (ac_try="$ac_cpp conftest.$ac_ext"
17729 case "(($ac_try" in
17730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731   *) ac_try_echo=$ac_try;;
17732 esac
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17735   ac_status=$?
17736   grep -v '^ *+' conftest.er1 >conftest.err
17737   rm -f conftest.er1
17738   cat conftest.err >&5
17739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740   (exit $ac_status); } >/dev/null; then
17741   if test -s conftest.err; then
17742     ac_cpp_err=$ac_c_preproc_warn_flag
17743     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17744   else
17745     ac_cpp_err=
17746   fi
17747 else
17748   ac_cpp_err=yes
17750 if test -z "$ac_cpp_err"; then
17751   ac_header_preproc=yes
17752 else
17753   echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17756   ac_header_preproc=no
17759 rm -f conftest.err conftest.$ac_ext
17760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17761 echo "${ECHO_T}$ac_header_preproc" >&6; }
17763 # So?  What about this header?
17764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17765   yes:no: )
17766     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17770     ac_header_preproc=yes
17771     ;;
17772   no:yes:* )
17773     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17775     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17776 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17777     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17779     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17780 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17783     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17785     ( cat <<\_ASBOX
17786 ## ------------------------------------ ##
17787 ## Report this to http://llvm.org/bugs/ ##
17788 ## ------------------------------------ ##
17789 _ASBOX
17790      ) | sed "s/^/$as_me: WARNING:     /" >&2
17791     ;;
17792 esac
17793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17796   echo $ECHO_N "(cached) $ECHO_C" >&6
17797 else
17798   eval "$as_ac_Header=\$ac_header_preproc"
17800 ac_res=`eval echo '${'$as_ac_Header'}'`
17801                { echo "$as_me:$LINENO: result: $ac_res" >&5
17802 echo "${ECHO_T}$ac_res" >&6; }
17805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17806   cat >>confdefs.h <<_ACEOF
17807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17808 _ACEOF
17812 done
17815 for ac_func in getpagesize
17817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17821   echo $ECHO_N "(cached) $ECHO_C" >&6
17822 else
17823   cat >conftest.$ac_ext <<_ACEOF
17824 /* confdefs.h.  */
17825 _ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h.  */
17829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17831 #define $ac_func innocuous_$ac_func
17833 /* System header to define __stub macros and hopefully few prototypes,
17834     which can conflict with char $ac_func (); below.
17835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17836     <limits.h> exists even on freestanding compilers.  */
17838 #ifdef __STDC__
17839 # include <limits.h>
17840 #else
17841 # include <assert.h>
17842 #endif
17844 #undef $ac_func
17846 /* Override any GCC internal prototype to avoid an error.
17847    Use char because int might match the return type of a GCC
17848    builtin and then its argument prototype would still apply.  */
17849 #ifdef __cplusplus
17850 extern "C"
17851 #endif
17852 char $ac_func ();
17853 /* The GNU C library defines this for functions which it implements
17854     to always fail with ENOSYS.  Some functions are actually named
17855     something starting with __ and the normal name is an alias.  */
17856 #if defined __stub_$ac_func || defined __stub___$ac_func
17857 choke me
17858 #endif
17860 int
17861 main ()
17863 return $ac_func ();
17864   ;
17865   return 0;
17867 _ACEOF
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (ac_try="$ac_link"
17870 case "(($ac_try" in
17871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872   *) ac_try_echo=$ac_try;;
17873 esac
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875   (eval "$ac_link") 2>conftest.er1
17876   ac_status=$?
17877   grep -v '^ *+' conftest.er1 >conftest.err
17878   rm -f conftest.er1
17879   cat conftest.err >&5
17880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881   (exit $ac_status); } &&
17882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17883   { (case "(($ac_try" in
17884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885   *) ac_try_echo=$ac_try;;
17886 esac
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888   (eval "$ac_try") 2>&5
17889   ac_status=$?
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); }; } &&
17892          { ac_try='test -s conftest$ac_exeext'
17893   { (case "(($ac_try" in
17894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895   *) ac_try_echo=$ac_try;;
17896 esac
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898   (eval "$ac_try") 2>&5
17899   ac_status=$?
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); }; }; then
17902   eval "$as_ac_var=yes"
17903 else
17904   echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907         eval "$as_ac_var=no"
17910 rm -f core conftest.err conftest.$ac_objext \
17911       conftest$ac_exeext conftest.$ac_ext
17913 ac_res=`eval echo '${'$as_ac_var'}'`
17914                { echo "$as_me:$LINENO: result: $ac_res" >&5
17915 echo "${ECHO_T}$ac_res" >&6; }
17916 if test `eval echo '${'$as_ac_var'}'` = yes; then
17917   cat >>confdefs.h <<_ACEOF
17918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17919 _ACEOF
17922 done
17924 { echo "$as_me:$LINENO: checking for working mmap" >&5
17925 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17926 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17927   echo $ECHO_N "(cached) $ECHO_C" >&6
17928 else
17929   if test "$cross_compiling" = yes; then
17930   ac_cv_func_mmap_fixed_mapped=no
17931 else
17932   cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h.  */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h.  */
17938 $ac_includes_default
17939 /* malloc might have been renamed as rpl_malloc. */
17940 #undef malloc
17942 /* Thanks to Mike Haertel and Jim Avera for this test.
17943    Here is a matrix of mmap possibilities:
17944         mmap private not fixed
17945         mmap private fixed at somewhere currently unmapped
17946         mmap private fixed at somewhere already mapped
17947         mmap shared not fixed
17948         mmap shared fixed at somewhere currently unmapped
17949         mmap shared fixed at somewhere already mapped
17950    For private mappings, we should verify that changes cannot be read()
17951    back from the file, nor mmap's back from the file at a different
17952    address.  (There have been systems where private was not correctly
17953    implemented like the infamous i386 svr4.0, and systems where the
17954    VM page cache was not coherent with the file system buffer cache
17955    like early versions of FreeBSD and possibly contemporary NetBSD.)
17956    For shared mappings, we should conversely verify that changes get
17957    propagated back to all the places they're supposed to be.
17959    Grep wants private fixed already mapped.
17960    The main things grep needs to know about mmap are:
17961    * does it exist and is it safe to write into the mmap'd area
17962    * how to use it (BSD variants)  */
17964 #include <fcntl.h>
17965 #include <sys/mman.h>
17967 #if !STDC_HEADERS && !HAVE_STDLIB_H
17968 char *malloc ();
17969 #endif
17971 /* This mess was copied from the GNU getpagesize.h.  */
17972 #if !HAVE_GETPAGESIZE
17973 /* Assume that all systems that can run configure have sys/param.h.  */
17974 # if !HAVE_SYS_PARAM_H
17975 #  define HAVE_SYS_PARAM_H 1
17976 # endif
17978 # ifdef _SC_PAGESIZE
17979 #  define getpagesize() sysconf(_SC_PAGESIZE)
17980 # else /* no _SC_PAGESIZE */
17981 #  if HAVE_SYS_PARAM_H
17982 #   include <sys/param.h>
17983 #   ifdef EXEC_PAGESIZE
17984 #    define getpagesize() EXEC_PAGESIZE
17985 #   else /* no EXEC_PAGESIZE */
17986 #    ifdef NBPG
17987 #     define getpagesize() NBPG * CLSIZE
17988 #     ifndef CLSIZE
17989 #      define CLSIZE 1
17990 #     endif /* no CLSIZE */
17991 #    else /* no NBPG */
17992 #     ifdef NBPC
17993 #      define getpagesize() NBPC
17994 #     else /* no NBPC */
17995 #      ifdef PAGESIZE
17996 #       define getpagesize() PAGESIZE
17997 #      endif /* PAGESIZE */
17998 #     endif /* no NBPC */
17999 #    endif /* no NBPG */
18000 #   endif /* no EXEC_PAGESIZE */
18001 #  else /* no HAVE_SYS_PARAM_H */
18002 #   define getpagesize() 8192   /* punt totally */
18003 #  endif /* no HAVE_SYS_PARAM_H */
18004 # endif /* no _SC_PAGESIZE */
18006 #endif /* no HAVE_GETPAGESIZE */
18008 int
18009 main ()
18011   char *data, *data2, *data3;
18012   int i, pagesize;
18013   int fd;
18015   pagesize = getpagesize ();
18017   /* First, make a file with some known garbage in it. */
18018   data = (char *) malloc (pagesize);
18019   if (!data)
18020     return 1;
18021   for (i = 0; i < pagesize; ++i)
18022     *(data + i) = rand ();
18023   umask (0);
18024   fd = creat ("conftest.mmap", 0600);
18025   if (fd < 0)
18026     return 1;
18027   if (write (fd, data, pagesize) != pagesize)
18028     return 1;
18029   close (fd);
18031   /* Next, try to mmap the file at a fixed address which already has
18032      something else allocated at it.  If we can, also make sure that
18033      we see the same garbage.  */
18034   fd = open ("conftest.mmap", O_RDWR);
18035   if (fd < 0)
18036     return 1;
18037   data2 = (char *) malloc (2 * pagesize);
18038   if (!data2)
18039     return 1;
18040   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18041   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18042                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18043     return 1;
18044   for (i = 0; i < pagesize; ++i)
18045     if (*(data + i) != *(data2 + i))
18046       return 1;
18048   /* Finally, make sure that changes to the mapped area do not
18049      percolate back to the file as seen by read().  (This is a bug on
18050      some variants of i386 svr4.0.)  */
18051   for (i = 0; i < pagesize; ++i)
18052     *(data2 + i) = *(data2 + i) + 1;
18053   data3 = (char *) malloc (pagesize);
18054   if (!data3)
18055     return 1;
18056   if (read (fd, data3, pagesize) != pagesize)
18057     return 1;
18058   for (i = 0; i < pagesize; ++i)
18059     if (*(data + i) != *(data3 + i))
18060       return 1;
18061   close (fd);
18062   return 0;
18064 _ACEOF
18065 rm -f conftest$ac_exeext
18066 if { (ac_try="$ac_link"
18067 case "(($ac_try" in
18068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069   *) ac_try_echo=$ac_try;;
18070 esac
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072   (eval "$ac_link") 2>&5
18073   ac_status=$?
18074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18076   { (case "(($ac_try" in
18077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078   *) ac_try_echo=$ac_try;;
18079 esac
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081   (eval "$ac_try") 2>&5
18082   ac_status=$?
18083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); }; }; then
18085   ac_cv_func_mmap_fixed_mapped=yes
18086 else
18087   echo "$as_me: program exited with status $ac_status" >&5
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 ( exit $ac_status )
18092 ac_cv_func_mmap_fixed_mapped=no
18094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18099 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18100 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18101 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18103 cat >>confdefs.h <<\_ACEOF
18104 #define HAVE_MMAP 1
18105 _ACEOF
18108 rm -f conftest.mmap
18110   { echo "$as_me:$LINENO: checking for mmap of files" >&5
18111 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18112 if test "${ac_cv_func_mmap_file+set}" = set; then
18113   echo $ECHO_N "(cached) $ECHO_C" >&6
18114 else
18115    ac_ext=c
18116 ac_cpp='$CPP $CPPFLAGS'
18117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18121   if test "$cross_compiling" = yes; then
18122   ac_cv_func_mmap_file=no
18123 else
18124   cat >conftest.$ac_ext <<_ACEOF
18126     /* confdefs.h.  */
18127 _ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h.  */
18132 #include <sys/types.h>
18133 #include <sys/mman.h>
18134 #include <fcntl.h>
18136 int
18137 main ()
18140   int fd;
18141   fd = creat ("foo",0777);
18142   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18143   unlink ("foo");
18144   return (fd != (int) MAP_FAILED);
18145   ;
18146   return 0;
18148 _ACEOF
18149 rm -f conftest$ac_exeext
18150 if { (ac_try="$ac_link"
18151 case "(($ac_try" in
18152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153   *) ac_try_echo=$ac_try;;
18154 esac
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156   (eval "$ac_link") 2>&5
18157   ac_status=$?
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18160   { (case "(($ac_try" in
18161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162   *) ac_try_echo=$ac_try;;
18163 esac
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165   (eval "$ac_try") 2>&5
18166   ac_status=$?
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); }; }; then
18169   ac_cv_func_mmap_file=yes
18170 else
18171   echo "$as_me: program exited with status $ac_status" >&5
18172 echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18175 ( exit $ac_status )
18176 ac_cv_func_mmap_file=no
18178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18182   ac_ext=c
18183 ac_cpp='$CPP $CPPFLAGS'
18184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18190 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18191 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18192 if test "$ac_cv_func_mmap_file" = yes; then
18194 cat >>confdefs.h <<\_ACEOF
18195 #define HAVE_MMAP_FILE
18196 _ACEOF
18198    MMAP_FILE=yes
18202   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18203 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18204 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18205   echo $ECHO_N "(cached) $ECHO_C" >&6
18206 else
18207   if test "$llvm_cv_os_type" = "Interix" ; then
18208    ac_cv_need_dev_zero_for_mmap=yes
18209  else
18210    ac_cv_need_dev_zero_for_mmap=no
18211  fi
18214 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18215 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18216 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18218 cat >>confdefs.h <<\_ACEOF
18219 #define NEED_DEV_ZERO_FOR_MMAP 1
18220 _ACEOF
18224   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18225   then
18226     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18227 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18228   fi
18229   if test "$ac_cv_func_mmap_file" = "no"
18230   then
18231     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18232 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18233   fi
18236 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18237 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18238 ac_ext=cpp
18239 ac_cpp='$CXXCPP $CPPFLAGS'
18240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18244 cat >conftest.$ac_ext <<_ACEOF
18246   /* confdefs.h.  */
18247 _ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h.  */
18252     int main() {
18253       volatile unsigned long val = 1;
18254       __sync_synchronize();
18255       __sync_val_compare_and_swap(&val, 1, 0);
18256       __sync_add_and_fetch(&val, 1);
18257       __sync_sub_and_fetch(&val, 1);
18258       return 0;
18259     }
18262 _ACEOF
18263 rm -f conftest.$ac_objext conftest$ac_exeext
18264 if { (ac_try="$ac_link"
18265 case "(($ac_try" in
18266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267   *) ac_try_echo=$ac_try;;
18268 esac
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270   (eval "$ac_link") 2>conftest.er1
18271   ac_status=$?
18272   grep -v '^ *+' conftest.er1 >conftest.err
18273   rm -f conftest.er1
18274   cat conftest.err >&5
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); } &&
18277          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18278   { (case "(($ac_try" in
18279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280   *) ac_try_echo=$ac_try;;
18281 esac
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283   (eval "$ac_try") 2>&5
18284   ac_status=$?
18285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286   (exit $ac_status); }; } &&
18287          { ac_try='test -s conftest$ac_exeext'
18288   { (case "(($ac_try" in
18289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290   *) ac_try_echo=$ac_try;;
18291 esac
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293   (eval "$ac_try") 2>&5
18294   ac_status=$?
18295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296   (exit $ac_status); }; }; then
18298   { echo "$as_me:$LINENO: result: yes" >&5
18299 echo "${ECHO_T}yes" >&6; }
18301 cat >>confdefs.h <<\_ACEOF
18302 #define LLVM_HAS_ATOMICS 1
18303 _ACEOF
18306 else
18307   echo "$as_me: failed program was:" >&5
18308 sed 's/^/| /' conftest.$ac_ext >&5
18311   { echo "$as_me:$LINENO: result: no" >&5
18312 echo "${ECHO_T}no" >&6; }
18314 cat >>confdefs.h <<\_ACEOF
18315 #define LLVM_HAS_ATOMICS 0
18316 _ACEOF
18318   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18319 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18323 rm -f core conftest.err conftest.$ac_objext \
18324       conftest$ac_exeext conftest.$ac_ext
18325 ac_ext=c
18326 ac_cpp='$CPP $CPPFLAGS'
18327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18333 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18334   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18335 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18336 if test "${llvm_cv_linux_mixed+set}" = set; then
18337   echo $ECHO_N "(cached) $ECHO_C" >&6
18338 else
18339    ac_ext=c
18340 ac_cpp='$CPP $CPPFLAGS'
18341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18345   cat >conftest.$ac_ext <<_ACEOF
18346 /* confdefs.h.  */
18347 _ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h.  */
18351 #ifndef __x86_64__
18352        error: Not x86-64 even if uname says so!
18353       #endif
18355 int
18356 main ()
18359   ;
18360   return 0;
18362 _ACEOF
18363 rm -f conftest.$ac_objext
18364 if { (ac_try="$ac_compile"
18365 case "(($ac_try" in
18366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367   *) ac_try_echo=$ac_try;;
18368 esac
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370   (eval "$ac_compile") 2>conftest.er1
18371   ac_status=$?
18372   grep -v '^ *+' conftest.er1 >conftest.err
18373   rm -f conftest.er1
18374   cat conftest.err >&5
18375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376   (exit $ac_status); } &&
18377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18378   { (case "(($ac_try" in
18379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380   *) ac_try_echo=$ac_try;;
18381 esac
18382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383   (eval "$ac_try") 2>&5
18384   ac_status=$?
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); }; } &&
18387          { ac_try='test -s conftest.$ac_objext'
18388   { (case "(($ac_try" in
18389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390   *) ac_try_echo=$ac_try;;
18391 esac
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393   (eval "$ac_try") 2>&5
18394   ac_status=$?
18395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396   (exit $ac_status); }; }; then
18397   llvm_cv_linux_mixed=no
18398 else
18399   echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18402         llvm_cv_linux_mixed=yes
18405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18406   ac_ext=c
18407 ac_cpp='$CPP $CPPFLAGS'
18408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18414 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18415 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18417   if test "$llvm_cv_linux_mixed" = "yes"; then
18418     llvm_cv_target_arch="x86"
18419     ARCH="x86"
18420   fi
18424 for ac_func in __dso_handle
18426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18430   echo $ECHO_N "(cached) $ECHO_C" >&6
18431 else
18432   cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h.  */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h.  */
18438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18440 #define $ac_func innocuous_$ac_func
18442 /* System header to define __stub macros and hopefully few prototypes,
18443     which can conflict with char $ac_func (); below.
18444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18445     <limits.h> exists even on freestanding compilers.  */
18447 #ifdef __STDC__
18448 # include <limits.h>
18449 #else
18450 # include <assert.h>
18451 #endif
18453 #undef $ac_func
18455 /* Override any GCC internal prototype to avoid an error.
18456    Use char because int might match the return type of a GCC
18457    builtin and then its argument prototype would still apply.  */
18458 #ifdef __cplusplus
18459 extern "C"
18460 #endif
18461 char $ac_func ();
18462 /* The GNU C library defines this for functions which it implements
18463     to always fail with ENOSYS.  Some functions are actually named
18464     something starting with __ and the normal name is an alias.  */
18465 #if defined __stub_$ac_func || defined __stub___$ac_func
18466 choke me
18467 #endif
18469 int
18470 main ()
18472 return $ac_func ();
18473   ;
18474   return 0;
18476 _ACEOF
18477 rm -f conftest.$ac_objext conftest$ac_exeext
18478 if { (ac_try="$ac_link"
18479 case "(($ac_try" in
18480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481   *) ac_try_echo=$ac_try;;
18482 esac
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484   (eval "$ac_link") 2>conftest.er1
18485   ac_status=$?
18486   grep -v '^ *+' conftest.er1 >conftest.err
18487   rm -f conftest.er1
18488   cat conftest.err >&5
18489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490   (exit $ac_status); } &&
18491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18492   { (case "(($ac_try" in
18493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494   *) ac_try_echo=$ac_try;;
18495 esac
18496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497   (eval "$ac_try") 2>&5
18498   ac_status=$?
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); }; } &&
18501          { ac_try='test -s conftest$ac_exeext'
18502   { (case "(($ac_try" in
18503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504   *) ac_try_echo=$ac_try;;
18505 esac
18506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507   (eval "$ac_try") 2>&5
18508   ac_status=$?
18509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510   (exit $ac_status); }; }; then
18511   eval "$as_ac_var=yes"
18512 else
18513   echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18516         eval "$as_ac_var=no"
18519 rm -f core conftest.err conftest.$ac_objext \
18520       conftest$ac_exeext conftest.$ac_ext
18522 ac_res=`eval echo '${'$as_ac_var'}'`
18523                { echo "$as_me:$LINENO: result: $ac_res" >&5
18524 echo "${ECHO_T}$ac_res" >&6; }
18525 if test `eval echo '${'$as_ac_var'}'` = yes; then
18526   cat >>confdefs.h <<_ACEOF
18527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18528 _ACEOF
18531 done
18534 SHLIBEXT=$llvm_shlib_ext
18537 if test "${prefix}" = "NONE" ; then
18538   prefix="/usr/local"
18540 eval LLVM_PREFIX="${prefix}";
18541 eval LLVM_BINDIR="${prefix}/bin";
18542 eval LLVM_DATADIR="${prefix}/share/llvm";
18543 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18544 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18545 eval LLVM_INCLUDEDIR="${prefix}/include";
18546 eval LLVM_INFODIR="${prefix}/info";
18547 eval LLVM_MANDIR="${prefix}/man";
18548 LLVM_CONFIGTIME=`date`
18559 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18560   LLVM_CONFIGTIME="(timestamp not enabled)"
18564 cat >>confdefs.h <<_ACEOF
18565 #define LLVM_PREFIX "$LLVM_PREFIX"
18566 _ACEOF
18569 cat >>confdefs.h <<_ACEOF
18570 #define LLVM_BINDIR "$LLVM_BINDIR"
18571 _ACEOF
18574 cat >>confdefs.h <<_ACEOF
18575 #define LLVM_DATADIR "$LLVM_DATADIR"
18576 _ACEOF
18579 cat >>confdefs.h <<_ACEOF
18580 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18581 _ACEOF
18584 cat >>confdefs.h <<_ACEOF
18585 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18586 _ACEOF
18589 cat >>confdefs.h <<_ACEOF
18590 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18591 _ACEOF
18594 cat >>confdefs.h <<_ACEOF
18595 #define LLVM_INFODIR "$LLVM_INFODIR"
18596 _ACEOF
18599 cat >>confdefs.h <<_ACEOF
18600 #define LLVM_MANDIR "$LLVM_MANDIR"
18601 _ACEOF
18604 cat >>confdefs.h <<_ACEOF
18605 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18606 _ACEOF
18609 cat >>confdefs.h <<_ACEOF
18610 #define LLVM_HOST_TRIPLE "$host"
18611 _ACEOF
18614 cat >>confdefs.h <<_ACEOF
18615 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18616 _ACEOF
18619 if test "$BINDINGS_TO_BUILD" = auto ; then
18620   BINDINGS_TO_BUILD=""
18621   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
18622     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18623   fi
18625 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18628 ALL_BINDINGS=ocaml
18631 binding_prereqs_failed=0
18632 for a_binding in $BINDINGS_TO_BUILD ; do
18633   case "$a_binding" in
18634   ocaml)
18635     if test "x$OCAMLC" = x ; then
18636       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
18637 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
18638       binding_prereqs_failed=1
18639     fi
18640     if test "x$OCAMLDEP" = x ; then
18641       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
18642 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
18643       binding_prereqs_failed=1
18644     fi
18645     if test "x$OCAMLOPT" = x ; then
18646       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
18647 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
18648           fi
18649     if test "x$with_ocaml_libdir" != xauto ; then
18650       OCAML_LIBDIR=$with_ocaml_libdir
18652     else
18653       ocaml_stdlib="`"$OCAMLC" -where`"
18654       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18655       then
18656         # ocaml stdlib is beneath our prefix; use stdlib
18657         OCAML_LIBDIR=$ocaml_stdlib
18659       else
18660         # ocaml stdlib is outside our prefix; use libdir/ocaml
18661         OCAML_LIBDIR=${prefix}/lib/ocaml
18663       fi
18664     fi
18665     ;;
18666   esac
18667 done
18668 if test "$binding_prereqs_failed" = 1 ; then
18669   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18670 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18671    { (exit 1); exit 1; }; }
18674 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18675 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18676 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18677   echo $ECHO_N "(cached) $ECHO_C" >&6
18678 else
18679    ac_ext=cpp
18680 ac_cpp='$CXXCPP $CPPFLAGS'
18681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18685   oldcxxflags="$CXXFLAGS"
18686   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18687   cat >conftest.$ac_ext <<_ACEOF
18688 /* confdefs.h.  */
18689 _ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h.  */
18693 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18694 int
18695 main ()
18697 X<int>().f();
18698   ;
18699   return 0;
18701 _ACEOF
18702 rm -f conftest.$ac_objext
18703 if { (ac_try="$ac_compile"
18704 case "(($ac_try" in
18705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706   *) ac_try_echo=$ac_try;;
18707 esac
18708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709   (eval "$ac_compile") 2>conftest.er1
18710   ac_status=$?
18711   grep -v '^ *+' conftest.er1 >conftest.err
18712   rm -f conftest.er1
18713   cat conftest.err >&5
18714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715   (exit $ac_status); } &&
18716          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18717   { (case "(($ac_try" in
18718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719   *) ac_try_echo=$ac_try;;
18720 esac
18721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722   (eval "$ac_try") 2>&5
18723   ac_status=$?
18724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); }; } &&
18726          { ac_try='test -s conftest.$ac_objext'
18727   { (case "(($ac_try" in
18728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729   *) ac_try_echo=$ac_try;;
18730 esac
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732   (eval "$ac_try") 2>&5
18733   ac_status=$?
18734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735   (exit $ac_status); }; }; then
18736   llvm_cv_cxx_visibility_inlines_hidden=yes
18737 else
18738   echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18741         llvm_cv_cxx_visibility_inlines_hidden=no
18744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18745   CXXFLAGS="$oldcxxflags"
18746   ac_ext=c
18747 ac_cpp='$CPP $CPPFLAGS'
18748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18754 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18755 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18756 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18757   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18759 else
18760   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18765 if test "$llvm_cv_link_use_r" = "yes" ; then
18766   RPATH="-Wl,-R"
18767 else
18768   RPATH="-Wl,-rpath"
18772 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18773   RDYNAMIC="-rdynamic"
18774 else
18775   RDYNAMIC=""
18780 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18787 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18789 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18791 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18793 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18795 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18798 ac_config_files="$ac_config_files Makefile.config"
18801 ac_config_files="$ac_config_files llvm.spec"
18804 ac_config_files="$ac_config_files docs/doxygen.cfg"
18807 if test "${clang_src_root}" = ""; then
18808   clang_src_root="$srcdir/tools/clang"
18810 if test -f ${clang_src_root}/README.txt; then
18811     configh="include/clang/Config/config.h"
18812   doxy="docs/doxygen.cfg"
18813   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18815   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18819 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18822 test "x$program_prefix" = "xNONE" && program_prefix=""
18826 ac_config_commands="$ac_config_commands setup"
18828 ac_config_commands="$ac_config_commands Makefile"
18831 ac_config_commands="$ac_config_commands Makefile.common"
18834 ac_config_commands="$ac_config_commands examples/Makefile"
18837 ac_config_commands="$ac_config_commands lib/Makefile"
18840 ac_config_commands="$ac_config_commands test/Makefile"
18843 ac_config_commands="$ac_config_commands test/Makefile.tests"
18846 ac_config_commands="$ac_config_commands unittests/Makefile"
18849 ac_config_commands="$ac_config_commands tools/Makefile"
18852 ac_config_commands="$ac_config_commands utils/Makefile"
18855 ac_config_commands="$ac_config_commands projects/Makefile"
18858 ac_config_commands="$ac_config_commands bindings/Makefile"
18861 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18865 cat >confcache <<\_ACEOF
18866 # This file is a shell script that caches the results of configure
18867 # tests run on this system so they can be shared between configure
18868 # scripts and configure runs, see configure's option --config-cache.
18869 # It is not useful on other systems.  If it contains results you don't
18870 # want to keep, you may remove or edit it.
18872 # config.status only pays attention to the cache file if you give it
18873 # the --recheck option to rerun configure.
18875 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18876 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18877 # following values.
18879 _ACEOF
18881 # The following way of writing the cache mishandles newlines in values,
18882 # but we know of no workaround that is simple, portable, and efficient.
18883 # So, we kill variables containing newlines.
18884 # Ultrix sh set writes to stderr and can't be redirected directly,
18885 # and sets the high bit in the cache file unless we assign to the vars.
18887   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18888     eval ac_val=\$$ac_var
18889     case $ac_val in #(
18890     *${as_nl}*)
18891       case $ac_var in #(
18892       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18893 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18894       esac
18895       case $ac_var in #(
18896       _ | IFS | as_nl) ;; #(
18897       *) $as_unset $ac_var ;;
18898       esac ;;
18899     esac
18900   done
18902   (set) 2>&1 |
18903     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18904     *${as_nl}ac_space=\ *)
18905       # `set' does not quote correctly, so add quotes (double-quote
18906       # substitution turns \\\\ into \\, and sed turns \\ into \).
18907       sed -n \
18908         "s/'/'\\\\''/g;
18909           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18910       ;; #(
18911     *)
18912       # `set' quotes correctly as required by POSIX, so do not add quotes.
18913       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18914       ;;
18915     esac |
18916     sort
18917 ) |
18918   sed '
18919      /^ac_cv_env_/b end
18920      t clear
18921      :clear
18922      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18923      t end
18924      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18925      :end' >>confcache
18926 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18927   if test -w "$cache_file"; then
18928     test "x$cache_file" != "x/dev/null" &&
18929       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18930 echo "$as_me: updating cache $cache_file" >&6;}
18931     cat confcache >$cache_file
18932   else
18933     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18934 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18935   fi
18937 rm -f confcache
18939 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18940 # Let make expand exec_prefix.
18941 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18943 DEFS=-DHAVE_CONFIG_H
18945 ac_libobjs=
18946 ac_ltlibobjs=
18947 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18948   # 1. Remove the extension, and $U if already installed.
18949   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18950   ac_i=`echo "$ac_i" | sed "$ac_script"`
18951   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18952   #    will be set to the directory where LIBOBJS objects are built.
18953   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18954   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18955 done
18956 LIBOBJS=$ac_libobjs
18958 LTLIBOBJS=$ac_ltlibobjs
18962 : ${CONFIG_STATUS=./config.status}
18963 ac_clean_files_save=$ac_clean_files
18964 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18965 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18966 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18967 cat >$CONFIG_STATUS <<_ACEOF
18968 #! $SHELL
18969 # Generated by $as_me.
18970 # Run this file to recreate the current configuration.
18971 # Compiler output produced by configure, useful for debugging
18972 # configure, is in config.log if it exists.
18974 debug=false
18975 ac_cs_recheck=false
18976 ac_cs_silent=false
18977 SHELL=\${CONFIG_SHELL-$SHELL}
18978 _ACEOF
18980 cat >>$CONFIG_STATUS <<\_ACEOF
18981 ## --------------------- ##
18982 ## M4sh Initialization.  ##
18983 ## --------------------- ##
18985 # Be Bourne compatible
18986 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18987   emulate sh
18988   NULLCMD=:
18989   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18990   # is contrary to our usage.  Disable this feature.
18991   alias -g '${1+"$@"}'='"$@"'
18992   setopt NO_GLOB_SUBST
18993 else
18994   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18996 BIN_SH=xpg4; export BIN_SH # for Tru64
18997 DUALCASE=1; export DUALCASE # for MKS sh
19000 # PATH needs CR
19001 # Avoid depending upon Character Ranges.
19002 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19003 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19004 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19005 as_cr_digits='0123456789'
19006 as_cr_alnum=$as_cr_Letters$as_cr_digits
19008 # The user is always right.
19009 if test "${PATH_SEPARATOR+set}" != set; then
19010   echo "#! /bin/sh" >conf$$.sh
19011   echo  "exit 0"   >>conf$$.sh
19012   chmod +x conf$$.sh
19013   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19014     PATH_SEPARATOR=';'
19015   else
19016     PATH_SEPARATOR=:
19017   fi
19018   rm -f conf$$.sh
19021 # Support unset when possible.
19022 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19023   as_unset=unset
19024 else
19025   as_unset=false
19029 # IFS
19030 # We need space, tab and new line, in precisely that order.  Quoting is
19031 # there to prevent editors from complaining about space-tab.
19032 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19033 # splitting by setting IFS to empty value.)
19034 as_nl='
19036 IFS=" ""        $as_nl"
19038 # Find who we are.  Look in the path if we contain no directory separator.
19039 case $0 in
19040   *[\\/]* ) as_myself=$0 ;;
19041   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19042 for as_dir in $PATH
19044   IFS=$as_save_IFS
19045   test -z "$as_dir" && as_dir=.
19046   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19047 done
19048 IFS=$as_save_IFS
19050      ;;
19051 esac
19052 # We did not find ourselves, most probably we were run as `sh COMMAND'
19053 # in which case we are not to be found in the path.
19054 if test "x$as_myself" = x; then
19055   as_myself=$0
19057 if test ! -f "$as_myself"; then
19058   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19059   { (exit 1); exit 1; }
19062 # Work around bugs in pre-3.0 UWIN ksh.
19063 for as_var in ENV MAIL MAILPATH
19064 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19065 done
19066 PS1='$ '
19067 PS2='> '
19068 PS4='+ '
19070 # NLS nuisances.
19071 for as_var in \
19072   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19073   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19074   LC_TELEPHONE LC_TIME
19076   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19077     eval $as_var=C; export $as_var
19078   else
19079     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19080   fi
19081 done
19083 # Required to use basename.
19084 if expr a : '\(a\)' >/dev/null 2>&1 &&
19085    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19086   as_expr=expr
19087 else
19088   as_expr=false
19091 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19092   as_basename=basename
19093 else
19094   as_basename=false
19098 # Name of the executable.
19099 as_me=`$as_basename -- "$0" ||
19100 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19101          X"$0" : 'X\(//\)$' \| \
19102          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19103 echo X/"$0" |
19104     sed '/^.*\/\([^/][^/]*\)\/*$/{
19105             s//\1/
19106             q
19107           }
19108           /^X\/\(\/\/\)$/{
19109             s//\1/
19110             q
19111           }
19112           /^X\/\(\/\).*/{
19113             s//\1/
19114             q
19115           }
19116           s/.*/./; q'`
19118 # CDPATH.
19119 $as_unset CDPATH
19123   as_lineno_1=$LINENO
19124   as_lineno_2=$LINENO
19125   test "x$as_lineno_1" != "x$as_lineno_2" &&
19126   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19128   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19129   # uniformly replaced by the line number.  The first 'sed' inserts a
19130   # line-number line after each line using $LINENO; the second 'sed'
19131   # does the real work.  The second script uses 'N' to pair each
19132   # line-number line with the line containing $LINENO, and appends
19133   # trailing '-' during substitution so that $LINENO is not a special
19134   # case at line end.
19135   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19136   # scripts with optimization help from Paolo Bonzini.  Blame Lee
19137   # E. McMahon (1931-1989) for sed's syntax.  :-)
19138   sed -n '
19139     p
19140     /[$]LINENO/=
19141   ' <$as_myself |
19142     sed '
19143       s/[$]LINENO.*/&-/
19144       t lineno
19145       b
19146       :lineno
19147       N
19148       :loop
19149       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19150       t loop
19151       s/-\n.*//
19152     ' >$as_me.lineno &&
19153   chmod +x "$as_me.lineno" ||
19154     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19155    { (exit 1); exit 1; }; }
19157   # Don't try to exec as it changes $[0], causing all sort of problems
19158   # (the dirname of $[0] is not the place where we might find the
19159   # original and so on.  Autoconf is especially sensitive to this).
19160   . "./$as_me.lineno"
19161   # Exit status is that of the last command.
19162   exit
19166 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19167   as_dirname=dirname
19168 else
19169   as_dirname=false
19172 ECHO_C= ECHO_N= ECHO_T=
19173 case `echo -n x` in
19174 -n*)
19175   case `echo 'x\c'` in
19176   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19177   *)   ECHO_C='\c';;
19178   esac;;
19180   ECHO_N='-n';;
19181 esac
19183 if expr a : '\(a\)' >/dev/null 2>&1 &&
19184    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19185   as_expr=expr
19186 else
19187   as_expr=false
19190 rm -f conf$$ conf$$.exe conf$$.file
19191 if test -d conf$$.dir; then
19192   rm -f conf$$.dir/conf$$.file
19193 else
19194   rm -f conf$$.dir
19195   mkdir conf$$.dir
19197 echo >conf$$.file
19198 if ln -s conf$$.file conf$$ 2>/dev/null; then
19199   as_ln_s='ln -s'
19200   # ... but there are two gotchas:
19201   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19202   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19203   # In both cases, we have to default to `cp -p'.
19204   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19205     as_ln_s='cp -p'
19206 elif ln conf$$.file conf$$ 2>/dev/null; then
19207   as_ln_s=ln
19208 else
19209   as_ln_s='cp -p'
19211 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19212 rmdir conf$$.dir 2>/dev/null
19214 if mkdir -p . 2>/dev/null; then
19215   as_mkdir_p=:
19216 else
19217   test -d ./-p && rmdir ./-p
19218   as_mkdir_p=false
19221 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
19222 # systems may use methods other than mode bits to determine executability.
19223 cat >conf$$.file <<_ASEOF
19224 #! /bin/sh
19225 exit 0
19226 _ASEOF
19227 chmod +x conf$$.file
19228 if test -x conf$$.file >/dev/null 2>&1; then
19229   as_executable_p="test -x"
19230 else
19231   as_executable_p=:
19233 rm -f conf$$.file
19235 # Sed expression to map a string onto a valid CPP name.
19236 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19238 # Sed expression to map a string onto a valid variable name.
19239 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19242 exec 6>&1
19244 # Save the log message, to keep $[0] and so on meaningful, and to
19245 # report actual input values of CONFIG_FILES etc. instead of their
19246 # values after options handling.
19247 ac_log="
19248 This file was extended by LLVM $as_me 3.6.0svn, which was
19249 generated by GNU Autoconf 2.60.  Invocation command line was
19251   CONFIG_FILES    = $CONFIG_FILES
19252   CONFIG_HEADERS  = $CONFIG_HEADERS
19253   CONFIG_LINKS    = $CONFIG_LINKS
19254   CONFIG_COMMANDS = $CONFIG_COMMANDS
19255   $ $0 $@
19257 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19260 _ACEOF
19262 cat >>$CONFIG_STATUS <<_ACEOF
19263 # Files that config.status was made for.
19264 config_files="$ac_config_files"
19265 config_headers="$ac_config_headers"
19266 config_commands="$ac_config_commands"
19268 _ACEOF
19270 cat >>$CONFIG_STATUS <<\_ACEOF
19271 ac_cs_usage="\
19272 \`$as_me' instantiates files from templates according to the
19273 current configuration.
19275 Usage: $0 [OPTIONS] [FILE]...
19277   -h, --help       print this help, then exit
19278   -V, --version    print version number, then exit
19279   -q, --quiet      do not print progress messages
19280   -d, --debug      don't remove temporary files
19281       --recheck    update $as_me by reconfiguring in the same conditions
19282   --file=FILE[:TEMPLATE]
19283                    instantiate the configuration file FILE
19284   --header=FILE[:TEMPLATE]
19285                    instantiate the configuration header FILE
19287 Configuration files:
19288 $config_files
19290 Configuration headers:
19291 $config_headers
19293 Configuration commands:
19294 $config_commands
19296 Report bugs to <bug-autoconf@gnu.org>."
19298 _ACEOF
19299 cat >>$CONFIG_STATUS <<_ACEOF
19300 ac_cs_version="\\
19301 LLVM config.status 3.6.0svn
19302 configured by $0, generated by GNU Autoconf 2.60,
19303   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19305 Copyright (C) 2006 Free Software Foundation, Inc.
19306 This config.status script is free software; the Free Software Foundation
19307 gives unlimited permission to copy, distribute and modify it."
19309 ac_pwd='$ac_pwd'
19310 srcdir='$srcdir'
19311 INSTALL='$INSTALL'
19312 _ACEOF
19314 cat >>$CONFIG_STATUS <<\_ACEOF
19315 # If no file are specified by the user, then we need to provide default
19316 # value.  By we need to know if files were specified by the user.
19317 ac_need_defaults=:
19318 while test $# != 0
19320   case $1 in
19321   --*=*)
19322     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19323     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19324     ac_shift=:
19325     ;;
19326   *)
19327     ac_option=$1
19328     ac_optarg=$2
19329     ac_shift=shift
19330     ;;
19331   esac
19333   case $ac_option in
19334   # Handling of the options.
19335   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19336     ac_cs_recheck=: ;;
19337   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19338     echo "$ac_cs_version"; exit ;;
19339   --debug | --debu | --deb | --de | --d | -d )
19340     debug=: ;;
19341   --file | --fil | --fi | --f )
19342     $ac_shift
19343     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19344     ac_need_defaults=false;;
19345   --header | --heade | --head | --hea )
19346     $ac_shift
19347     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19348     ac_need_defaults=false;;
19349   --he | --h)
19350     # Conflict between --help and --header
19351     { echo "$as_me: error: ambiguous option: $1
19352 Try \`$0 --help' for more information." >&2
19353    { (exit 1); exit 1; }; };;
19354   --help | --hel | -h )
19355     echo "$ac_cs_usage"; exit ;;
19356   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19357   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19358     ac_cs_silent=: ;;
19360   # This is an error.
19361   -*) { echo "$as_me: error: unrecognized option: $1
19362 Try \`$0 --help' for more information." >&2
19363    { (exit 1); exit 1; }; } ;;
19365   *) ac_config_targets="$ac_config_targets $1"
19366      ac_need_defaults=false ;;
19368   esac
19369   shift
19370 done
19372 ac_configure_extra_args=
19374 if $ac_cs_silent; then
19375   exec 6>/dev/null
19376   ac_configure_extra_args="$ac_configure_extra_args --silent"
19379 _ACEOF
19380 cat >>$CONFIG_STATUS <<_ACEOF
19381 if \$ac_cs_recheck; then
19382   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19383   CONFIG_SHELL=$SHELL
19384   export CONFIG_SHELL
19385   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19388 _ACEOF
19389 cat >>$CONFIG_STATUS <<\_ACEOF
19390 exec 5>>config.log
19392   echo
19393   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19394 ## Running $as_me. ##
19395 _ASBOX
19396   echo "$ac_log"
19397 } >&5
19399 _ACEOF
19400 cat >>$CONFIG_STATUS <<_ACEOF
19402 # INIT-COMMANDS
19404 llvm_src="${srcdir}"
19406 _ACEOF
19408 cat >>$CONFIG_STATUS <<\_ACEOF
19410 # Handling of arguments.
19411 for ac_config_target in $ac_config_targets
19413   case $ac_config_target in
19414     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19415     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19416     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19417     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19418     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19419     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19420     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19421     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19422     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19423     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19424     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19425     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19426     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19427     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19428     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19429     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19430     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19431     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19432     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19433     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19434     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19435     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19436     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19437     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19438     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19439     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19441   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19442 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19443    { (exit 1); exit 1; }; };;
19444   esac
19445 done
19448 # If the user did not use the arguments to specify the items to instantiate,
19449 # then the envvar interface is used.  Set only those that are not.
19450 # We use the long form for the default assignment because of an extremely
19451 # bizarre bug on SunOS 4.1.3.
19452 if $ac_need_defaults; then
19453   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19454   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19455   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19458 # Have a temporary directory for convenience.  Make it in the build tree
19459 # simply because there is no reason against having it here, and in addition,
19460 # creating and moving files from /tmp can sometimes cause problems.
19461 # Hook for its removal unless debugging.
19462 # Note that there is a small window in which the directory will not be cleaned:
19463 # after its creation but before its name has been assigned to `$tmp'.
19464 $debug ||
19466   tmp=
19467   trap 'exit_status=$?
19468   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19469 ' 0
19470   trap '{ (exit 1); exit 1; }' 1 2 13 15
19472 # Create a (secure) tmp directory for tmp files.
19475   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19476   test -n "$tmp" && test -d "$tmp"
19477 }  ||
19479   tmp=./conf$$-$RANDOM
19480   (umask 077 && mkdir "$tmp")
19481 } ||
19483    echo "$me: cannot create a temporary directory in ." >&2
19484    { (exit 1); exit 1; }
19488 # Set up the sed scripts for CONFIG_FILES section.
19491 # No need to generate the scripts if there are no CONFIG_FILES.
19492 # This happens for instance when ./config.status config.h
19493 if test -n "$CONFIG_FILES"; then
19495 _ACEOF
19499 ac_delim='%!_!# '
19500 for ac_last_try in false false false false false :; do
19501   cat >conf$$subs.sed <<_ACEOF
19502 SHELL!$SHELL$ac_delim
19503 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19504 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19505 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19506 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19507 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19508 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19509 exec_prefix!$exec_prefix$ac_delim
19510 prefix!$prefix$ac_delim
19511 program_transform_name!$program_transform_name$ac_delim
19512 bindir!$bindir$ac_delim
19513 sbindir!$sbindir$ac_delim
19514 libexecdir!$libexecdir$ac_delim
19515 datarootdir!$datarootdir$ac_delim
19516 datadir!$datadir$ac_delim
19517 sysconfdir!$sysconfdir$ac_delim
19518 sharedstatedir!$sharedstatedir$ac_delim
19519 localstatedir!$localstatedir$ac_delim
19520 includedir!$includedir$ac_delim
19521 oldincludedir!$oldincludedir$ac_delim
19522 docdir!$docdir$ac_delim
19523 infodir!$infodir$ac_delim
19524 htmldir!$htmldir$ac_delim
19525 dvidir!$dvidir$ac_delim
19526 pdfdir!$pdfdir$ac_delim
19527 psdir!$psdir$ac_delim
19528 libdir!$libdir$ac_delim
19529 localedir!$localedir$ac_delim
19530 mandir!$mandir$ac_delim
19531 DEFS!$DEFS$ac_delim
19532 ECHO_C!$ECHO_C$ac_delim
19533 ECHO_N!$ECHO_N$ac_delim
19534 ECHO_T!$ECHO_T$ac_delim
19535 LIBS!$LIBS$ac_delim
19536 build_alias!$build_alias$ac_delim
19537 host_alias!$host_alias$ac_delim
19538 target_alias!$target_alias$ac_delim
19539 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19540 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19541 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19542 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19543 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19544 CC!$CC$ac_delim
19545 CFLAGS!$CFLAGS$ac_delim
19546 LDFLAGS!$LDFLAGS$ac_delim
19547 CPPFLAGS!$CPPFLAGS$ac_delim
19548 ac_ct_CC!$ac_ct_CC$ac_delim
19549 EXEEXT!$EXEEXT$ac_delim
19550 OBJEXT!$OBJEXT$ac_delim
19551 CXX!$CXX$ac_delim
19552 CXXFLAGS!$CXXFLAGS$ac_delim
19553 ac_ct_CXX!$ac_ct_CXX$ac_delim
19554 CPP!$CPP$ac_delim
19555 subdirs!$subdirs$ac_delim
19556 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19557 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19558 build!$build$ac_delim
19559 build_cpu!$build_cpu$ac_delim
19560 build_vendor!$build_vendor$ac_delim
19561 build_os!$build_os$ac_delim
19562 host!$host$ac_delim
19563 host_cpu!$host_cpu$ac_delim
19564 host_vendor!$host_vendor$ac_delim
19565 host_os!$host_os$ac_delim
19566 target!$target$ac_delim
19567 target_cpu!$target_cpu$ac_delim
19568 target_vendor!$target_vendor$ac_delim
19569 target_os!$target_os$ac_delim
19570 OS!$OS$ac_delim
19571 HOST_OS!$HOST_OS$ac_delim
19572 TARGET_OS!$TARGET_OS$ac_delim
19573 LINKALL!$LINKALL$ac_delim
19574 NOLINKALL!$NOLINKALL$ac_delim
19575 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19576 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19577 ARCH!$ARCH$ac_delim
19578 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19579 HOST_ARCH!$HOST_ARCH$ac_delim
19580 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19581 BUILD_CC!$BUILD_CC$ac_delim
19582 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19583 BUILD_CXX!$BUILD_CXX$ac_delim
19584 CVSBUILD!$CVSBUILD$ac_delim
19585 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19586 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19587 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19588 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19589 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19590 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19591 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19592 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19593 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19594 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19595 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19596 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19597 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19598 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19599 _ACEOF
19601   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19602     break
19603   elif $ac_last_try; then
19604     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19605 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19606    { (exit 1); exit 1; }; }
19607   else
19608     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19609   fi
19610 done
19612 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19613 if test -n "$ac_eof"; then
19614   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19615   ac_eof=`expr $ac_eof + 1`
19618 cat >>$CONFIG_STATUS <<_ACEOF
19619 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19621 _ACEOF
19622 sed '
19623 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19624 s/^/s,@/; s/!/@,|#_!!_#|/
19626 t n
19627 s/'"$ac_delim"'$/,g/; t
19628 s/$/\\/; p
19629 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19630 ' >>$CONFIG_STATUS <conf$$subs.sed
19631 rm -f conf$$subs.sed
19632 cat >>$CONFIG_STATUS <<_ACEOF
19633 CEOF$ac_eof
19634 _ACEOF
19637 ac_delim='%!_!# '
19638 for ac_last_try in false false false false false :; do
19639   cat >conf$$subs.sed <<_ACEOF
19640 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19641 JIT!$JIT$ac_delim
19642 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19643 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19644 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19645 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19646 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19647 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19648 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19649 ENABLE_PIC!$ENABLE_PIC$ac_delim
19650 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19651 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19652 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19653 ALL_TARGETS!$ALL_TARGETS$ac_delim
19654 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19655 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19656 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19657 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19658 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19659 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19660 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19661 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19662 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19663 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19664 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19665 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19666 ifGNUmake!$ifGNUmake$ac_delim
19667 LN_S!$LN_S$ac_delim
19668 NM!$NM$ac_delim
19669 CMP!$CMP$ac_delim
19670 CP!$CP$ac_delim
19671 DATE!$DATE$ac_delim
19672 FIND!$FIND$ac_delim
19673 GREP!$GREP$ac_delim
19674 MKDIR!$MKDIR$ac_delim
19675 MV!$MV$ac_delim
19676 RANLIB!$RANLIB$ac_delim
19677 AR!$AR$ac_delim
19678 RM!$RM$ac_delim
19679 SED!$SED$ac_delim
19680 TAR!$TAR$ac_delim
19681 BINPWD!$BINPWD$ac_delim
19682 DOT!$DOT$ac_delim
19683 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19684 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19685 INSTALL_DATA!$INSTALL_DATA$ac_delim
19686 BZIP2!$BZIP2$ac_delim
19687 CAT!$CAT$ac_delim
19688 DOXYGEN!$DOXYGEN$ac_delim
19689 GROFF!$GROFF$ac_delim
19690 GZIPBIN!$GZIPBIN$ac_delim
19691 PDFROFF!$PDFROFF$ac_delim
19692 ZIP!$ZIP$ac_delim
19693 OCAMLC!$OCAMLC$ac_delim
19694 OCAMLOPT!$OCAMLOPT$ac_delim
19695 OCAMLDEP!$OCAMLDEP$ac_delim
19696 OCAMLDOC!$OCAMLDOC$ac_delim
19697 GAS!$GAS$ac_delim
19698 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19699 EGREP!$EGREP$ac_delim
19700 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19701 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19702 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19703 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19704 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19705 PYTHON!$PYTHON$ac_delim
19706 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19707 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19708 USE_OPROFILE!$USE_OPROFILE$ac_delim
19709 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19710 XML2CONFIG!$XML2CONFIG$ac_delim
19711 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19712 LIBXML2_INC!$LIBXML2_INC$ac_delim
19713 CXXCPP!$CXXCPP$ac_delim
19714 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19715 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19716 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19717 MMAP_FILE!$MMAP_FILE$ac_delim
19718 SHLIBEXT!$SHLIBEXT$ac_delim
19719 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19720 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19721 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19722 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19723 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19724 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19725 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19726 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19727 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19728 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19729 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
19730 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19731 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19732 RPATH!$RPATH$ac_delim
19733 RDYNAMIC!$RDYNAMIC$ac_delim
19734 program_prefix!$program_prefix$ac_delim
19735 LIBOBJS!$LIBOBJS$ac_delim
19736 LTLIBOBJS!$LTLIBOBJS$ac_delim
19737 _ACEOF
19739   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19740     break
19741   elif $ac_last_try; then
19742     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19743 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19744    { (exit 1); exit 1; }; }
19745   else
19746     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19747   fi
19748 done
19750 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19751 if test -n "$ac_eof"; then
19752   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19753   ac_eof=`expr $ac_eof + 1`
19756 cat >>$CONFIG_STATUS <<_ACEOF
19757 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19759 _ACEOF
19760 sed '
19761 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19762 s/^/s,@/; s/!/@,|#_!!_#|/
19764 t n
19765 s/'"$ac_delim"'$/,g/; t
19766 s/$/\\/; p
19767 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19768 ' >>$CONFIG_STATUS <conf$$subs.sed
19769 rm -f conf$$subs.sed
19770 cat >>$CONFIG_STATUS <<_ACEOF
19771 CEOF$ac_eof
19772 _ACEOF
19775 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19776 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19777 # trailing colons and then remove the whole line if VPATH becomes empty
19778 # (actually we leave an empty line to preserve line numbers).
19779 if test "x$srcdir" = x.; then
19780   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19781 s/:*\$(srcdir):*/:/
19782 s/:*\${srcdir}:*/:/
19783 s/:*@srcdir@:*/:/
19784 s/^\([^=]*=[     ]*\):*/\1/
19785 s/:*$//
19786 s/^[^=]*=[       ]*$//
19790 cat >>$CONFIG_STATUS <<\_ACEOF
19791 fi # test -n "$CONFIG_FILES"
19794 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19796   case $ac_tag in
19797   :[FHLC]) ac_mode=$ac_tag; continue;;
19798   esac
19799   case $ac_mode$ac_tag in
19800   :[FHL]*:*);;
19801   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19802 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19803    { (exit 1); exit 1; }; };;
19804   :[FH]-) ac_tag=-:-;;
19805   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19806   esac
19807   ac_save_IFS=$IFS
19808   IFS=:
19809   set x $ac_tag
19810   IFS=$ac_save_IFS
19811   shift
19812   ac_file=$1
19813   shift
19815   case $ac_mode in
19816   :L) ac_source=$1;;
19817   :[FH])
19818     ac_file_inputs=
19819     for ac_f
19820     do
19821       case $ac_f in
19822       -) ac_f="$tmp/stdin";;
19823       *) # Look for the file first in the build tree, then in the source tree
19824          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19825          # because $ac_f cannot contain `:'.
19826          test -f "$ac_f" ||
19827            case $ac_f in
19828            [\\/$]*) false;;
19829            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19830            esac ||
19831            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19832 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19833    { (exit 1); exit 1; }; };;
19834       esac
19835       ac_file_inputs="$ac_file_inputs $ac_f"
19836     done
19838     # Let's still pretend it is `configure' which instantiates (i.e., don't
19839     # use $as_me), people would be surprised to read:
19840     #    /* config.h.  Generated by config.status.  */
19841     configure_input="Generated from "`IFS=:
19842           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19843     if test x"$ac_file" != x-; then
19844       configure_input="$ac_file.  $configure_input"
19845       { echo "$as_me:$LINENO: creating $ac_file" >&5
19846 echo "$as_me: creating $ac_file" >&6;}
19847     fi
19849     case $ac_tag in
19850     *:-:* | *:-) cat >"$tmp/stdin";;
19851     esac
19852     ;;
19853   esac
19855   ac_dir=`$as_dirname -- "$ac_file" ||
19856 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19857          X"$ac_file" : 'X\(//\)[^/]' \| \
19858          X"$ac_file" : 'X\(//\)$' \| \
19859          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19860 echo X"$ac_file" |
19861     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19862             s//\1/
19863             q
19864           }
19865           /^X\(\/\/\)[^/].*/{
19866             s//\1/
19867             q
19868           }
19869           /^X\(\/\/\)$/{
19870             s//\1/
19871             q
19872           }
19873           /^X\(\/\).*/{
19874             s//\1/
19875             q
19876           }
19877           s/.*/./; q'`
19878   { as_dir="$ac_dir"
19879   case $as_dir in #(
19880   -*) as_dir=./$as_dir;;
19881   esac
19882   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19883     as_dirs=
19884     while :; do
19885       case $as_dir in #(
19886       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19887       *) as_qdir=$as_dir;;
19888       esac
19889       as_dirs="'$as_qdir' $as_dirs"
19890       as_dir=`$as_dirname -- "$as_dir" ||
19891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19892          X"$as_dir" : 'X\(//\)[^/]' \| \
19893          X"$as_dir" : 'X\(//\)$' \| \
19894          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19895 echo X"$as_dir" |
19896     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19897             s//\1/
19898             q
19899           }
19900           /^X\(\/\/\)[^/].*/{
19901             s//\1/
19902             q
19903           }
19904           /^X\(\/\/\)$/{
19905             s//\1/
19906             q
19907           }
19908           /^X\(\/\).*/{
19909             s//\1/
19910             q
19911           }
19912           s/.*/./; q'`
19913       test -d "$as_dir" && break
19914     done
19915     test -z "$as_dirs" || eval "mkdir $as_dirs"
19916   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19917 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19918    { (exit 1); exit 1; }; }; }
19919   ac_builddir=.
19921 case "$ac_dir" in
19922 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19924   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19925   # A ".." for each directory in $ac_dir_suffix.
19926   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19927   case $ac_top_builddir_sub in
19928   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19929   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19930   esac ;;
19931 esac
19932 ac_abs_top_builddir=$ac_pwd
19933 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19934 # for backward compatibility:
19935 ac_top_builddir=$ac_top_build_prefix
19937 case $srcdir in
19938   .)  # We are building in place.
19939     ac_srcdir=.
19940     ac_top_srcdir=$ac_top_builddir_sub
19941     ac_abs_top_srcdir=$ac_pwd ;;
19942   [\\/]* | ?:[\\/]* )  # Absolute name.
19943     ac_srcdir=$srcdir$ac_dir_suffix;
19944     ac_top_srcdir=$srcdir
19945     ac_abs_top_srcdir=$srcdir ;;
19946   *) # Relative name.
19947     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19948     ac_top_srcdir=$ac_top_build_prefix$srcdir
19949     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19950 esac
19951 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19954   case $ac_mode in
19955   :F)
19956   #
19957   # CONFIG_FILE
19958   #
19960   case $INSTALL in
19961   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19962   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19963   esac
19964 _ACEOF
19966 cat >>$CONFIG_STATUS <<\_ACEOF
19967 # If the template does not know about datarootdir, expand it.
19968 # FIXME: This hack should be removed a few years after 2.60.
19969 ac_datarootdir_hack=; ac_datarootdir_seen=
19971 case `sed -n '/datarootdir/ {
19972   p
19973   q
19975 /@datadir@/p
19976 /@docdir@/p
19977 /@infodir@/p
19978 /@localedir@/p
19979 /@mandir@/p
19980 ' $ac_file_inputs` in
19981 *datarootdir*) ac_datarootdir_seen=yes;;
19982 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19983   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19984 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19985 _ACEOF
19986 cat >>$CONFIG_STATUS <<_ACEOF
19987   ac_datarootdir_hack='
19988   s&@datadir@&$datadir&g
19989   s&@docdir@&$docdir&g
19990   s&@infodir@&$infodir&g
19991   s&@localedir@&$localedir&g
19992   s&@mandir@&$mandir&g
19993     s&\\\${datarootdir}&$datarootdir&g' ;;
19994 esac
19995 _ACEOF
19997 # Neutralize VPATH when `$srcdir' = `.'.
19998 # Shell code in configure.ac might set extrasub.
19999 # FIXME: do we really want to maintain this feature?
20000 cat >>$CONFIG_STATUS <<_ACEOF
20001   sed "$ac_vpsub
20002 $extrasub
20003 _ACEOF
20004 cat >>$CONFIG_STATUS <<\_ACEOF
20006 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20007 s&@configure_input@&$configure_input&;t t
20008 s&@top_builddir@&$ac_top_builddir_sub&;t t
20009 s&@srcdir@&$ac_srcdir&;t t
20010 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20011 s&@top_srcdir@&$ac_top_srcdir&;t t
20012 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20013 s&@builddir@&$ac_builddir&;t t
20014 s&@abs_builddir@&$ac_abs_builddir&;t t
20015 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20016 s&@INSTALL@&$ac_INSTALL&;t t
20017 $ac_datarootdir_hack
20018 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
20020 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20021   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20022   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20023   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20024 which seems to be undefined.  Please make sure it is defined." >&5
20025 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20026 which seems to be undefined.  Please make sure it is defined." >&2;}
20028   rm -f "$tmp/stdin"
20029   case $ac_file in
20030   -) cat "$tmp/out"; rm -f "$tmp/out";;
20031   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20032   esac
20033  ;;
20034   :H)
20035   #
20036   # CONFIG_HEADER
20037   #
20038 _ACEOF
20040 # Transform confdefs.h into a sed script `conftest.defines', that
20041 # substitutes the proper values into config.h.in to produce config.h.
20042 rm -f conftest.defines conftest.tail
20043 # First, append a space to every undef/define line, to ease matching.
20044 echo 's/$/ /' >conftest.defines
20045 # Then, protect against being on the right side of a sed subst, or in
20046 # an unquoted here document, in config.status.  If some macros were
20047 # called several times there might be several #defines for the same
20048 # symbol, which is useless.  But do not sort them, since the last
20049 # AC_DEFINE must be honored.
20050 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20051 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20052 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20053 # PARAMS is the parameter list in the macro definition--in most cases, it's
20054 # just an empty string.
20055 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
20056 ac_dB='\\)[      (].*,\\1define\\2'
20057 ac_dC=' '
20058 ac_dD=' ,'
20060 uniq confdefs.h |
20061   sed -n '
20062         t rset
20063         :rset
20064         s/^[     ]*#[    ]*define[       ][      ]*//
20065         t ok
20066         d
20067         :ok
20068         s/[\\&,]/\\&/g
20069         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20070         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20071   ' >>conftest.defines
20073 # Remove the space that was appended to ease matching.
20074 # Then replace #undef with comments.  This is necessary, for
20075 # example, in the case of _POSIX_SOURCE, which is predefined and required
20076 # on some systems where configure will not decide to define it.
20077 # (The regexp can be short, since the line contains either #define or #undef.)
20078 echo 's/ $//
20079 s,^[     #]*u.*,/* & */,' >>conftest.defines
20081 # Break up conftest.defines:
20082 ac_max_sed_lines=50
20084 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20085 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20086 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20087 # et cetera.
20088 ac_in='$ac_file_inputs'
20089 ac_out='"$tmp/out1"'
20090 ac_nxt='"$tmp/out2"'
20092 while :
20094   # Write a here document:
20095     cat >>$CONFIG_STATUS <<_ACEOF
20096     # First, check the format of the line:
20097     cat >"\$tmp/defines.sed" <<\\CEOF
20098 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
20099 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
20101 :def
20102 _ACEOF
20103   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20104   echo 'CEOF
20105     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20106   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20107   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20108   grep . conftest.tail >/dev/null || break
20109   rm -f conftest.defines
20110   mv conftest.tail conftest.defines
20111 done
20112 rm -f conftest.defines conftest.tail
20114 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20115 cat >>$CONFIG_STATUS <<\_ACEOF
20116   if test x"$ac_file" != x-; then
20117     echo "/* $configure_input  */" >"$tmp/config.h"
20118     cat "$ac_result" >>"$tmp/config.h"
20119     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20120       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20121 echo "$as_me: $ac_file is unchanged" >&6;}
20122     else
20123       rm -f $ac_file
20124       mv "$tmp/config.h" $ac_file
20125     fi
20126   else
20127     echo "/* $configure_input  */"
20128     cat "$ac_result"
20129   fi
20130   rm -f "$tmp/out12"
20131  ;;
20133   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20134 echo "$as_me: executing $ac_file commands" >&6;}
20135  ;;
20136   esac
20139   case $ac_file$ac_mode in
20140     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20141    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20142     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20143    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20144     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20145    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20146     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20147    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20148     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20149    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20150     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20151    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20152     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20153    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20154     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20155    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20156     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20157    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20158     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20159    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20160     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20161    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20162     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20163    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20165   esac
20166 done # for ac_tag
20169 { (exit 0); exit 0; }
20170 _ACEOF
20171 chmod +x $CONFIG_STATUS
20172 ac_clean_files=$ac_clean_files_save
20175 # configure is writing to config.log, and then calls config.status.
20176 # config.status does its own redirection, appending to config.log.
20177 # Unfortunately, on DOS this fails, as config.log is still kept open
20178 # by configure, so config.status won't be able to write to it; its
20179 # output is simply discarded.  So we exec the FD to /dev/null,
20180 # effectively closing config.log, so it can be properly (re)opened and
20181 # appended to by config.status.  When coming back to configure, we
20182 # need to make the FD available again.
20183 if test "$no_create" != yes; then
20184   ac_cs_success=:
20185   ac_config_status_args=
20186   test "$silent" = yes &&
20187     ac_config_status_args="$ac_config_status_args --quiet"
20188   exec 5>/dev/null
20189   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20190   exec 5>>config.log
20191   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20192   # would make configure fail if this is the last instruction.
20193   $ac_cs_success || { (exit 1); exit 1; }
20197 # CONFIG_SUBDIRS section.
20199 if test "$no_recursion" != yes; then
20201   # Remove --cache-file and --srcdir arguments so they do not pile up.
20202   ac_sub_configure_args=
20203   ac_prev=
20204   eval "set x $ac_configure_args"
20205   shift
20206   for ac_arg
20207   do
20208     if test -n "$ac_prev"; then
20209       ac_prev=
20210       continue
20211     fi
20212     case $ac_arg in
20213     -cache-file | --cache-file | --cache-fil | --cache-fi \
20214     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20215       ac_prev=cache_file ;;
20216     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20217     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20218     | --c=*)
20219       ;;
20220     --config-cache | -C)
20221       ;;
20222     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20223       ac_prev=srcdir ;;
20224     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20225       ;;
20226     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20227       ac_prev=prefix ;;
20228     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20229       ;;
20230     *)
20231       case $ac_arg in
20232       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20233       esac
20234       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20235     esac
20236   done
20238   # Always prepend --prefix to ensure using the same prefix
20239   # in subdir configurations.
20240   ac_arg="--prefix=$prefix"
20241   case $ac_arg in
20242   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20243   esac
20244   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20246   ac_popdir=`pwd`
20247   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20249     # Do not complain, so a configure script can configure whichever
20250     # parts of a large source tree are present.
20251     test -d "$srcdir/$ac_dir" || continue
20253     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20254     echo "$as_me:$LINENO: $ac_msg" >&5
20255     echo "$ac_msg" >&6
20256     { as_dir="$ac_dir"
20257   case $as_dir in #(
20258   -*) as_dir=./$as_dir;;
20259   esac
20260   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20261     as_dirs=
20262     while :; do
20263       case $as_dir in #(
20264       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20265       *) as_qdir=$as_dir;;
20266       esac
20267       as_dirs="'$as_qdir' $as_dirs"
20268       as_dir=`$as_dirname -- "$as_dir" ||
20269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20270          X"$as_dir" : 'X\(//\)[^/]' \| \
20271          X"$as_dir" : 'X\(//\)$' \| \
20272          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20273 echo X"$as_dir" |
20274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20275             s//\1/
20276             q
20277           }
20278           /^X\(\/\/\)[^/].*/{
20279             s//\1/
20280             q
20281           }
20282           /^X\(\/\/\)$/{
20283             s//\1/
20284             q
20285           }
20286           /^X\(\/\).*/{
20287             s//\1/
20288             q
20289           }
20290           s/.*/./; q'`
20291       test -d "$as_dir" && break
20292     done
20293     test -z "$as_dirs" || eval "mkdir $as_dirs"
20294   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20295 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20296    { (exit 1); exit 1; }; }; }
20297     ac_builddir=.
20299 case "$ac_dir" in
20300 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20302   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20303   # A ".." for each directory in $ac_dir_suffix.
20304   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20305   case $ac_top_builddir_sub in
20306   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20307   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20308   esac ;;
20309 esac
20310 ac_abs_top_builddir=$ac_pwd
20311 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20312 # for backward compatibility:
20313 ac_top_builddir=$ac_top_build_prefix
20315 case $srcdir in
20316   .)  # We are building in place.
20317     ac_srcdir=.
20318     ac_top_srcdir=$ac_top_builddir_sub
20319     ac_abs_top_srcdir=$ac_pwd ;;
20320   [\\/]* | ?:[\\/]* )  # Absolute name.
20321     ac_srcdir=$srcdir$ac_dir_suffix;
20322     ac_top_srcdir=$srcdir
20323     ac_abs_top_srcdir=$srcdir ;;
20324   *) # Relative name.
20325     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20326     ac_top_srcdir=$ac_top_build_prefix$srcdir
20327     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20328 esac
20329 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20332     cd "$ac_dir"
20334     # Check for guested configure; otherwise get Cygnus style configure.
20335     if test -f "$ac_srcdir/configure.gnu"; then
20336       ac_sub_configure=$ac_srcdir/configure.gnu
20337     elif test -f "$ac_srcdir/configure"; then
20338       ac_sub_configure=$ac_srcdir/configure
20339     elif test -f "$ac_srcdir/configure.in"; then
20340       # This should be Cygnus configure.
20341       ac_sub_configure=$ac_aux_dir/configure
20342     else
20343       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20344 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20345       ac_sub_configure=
20346     fi
20348     # The recursion is here.
20349     if test -n "$ac_sub_configure"; then
20350       # Make the cache file name correct relative to the subdirectory.
20351       case $cache_file in
20352       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20353       *) # Relative name.
20354         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20355       esac
20357       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20358 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20359       # The eval makes quoting arguments work.
20360       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20361            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20362         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20363 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20364    { (exit 1); exit 1; }; }
20365     fi
20367     cd "$ac_popdir"
20368   done