Discourage in-source autoconf builds (as we already do for the cmake build)
[oota-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.7.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 ## --------------------- ##
16
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
30
31
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
39
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
52
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
59
60
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"
69
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
81
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
93
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='+ '
101
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
114
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
122
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
128
129
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'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
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
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
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
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
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
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
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
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
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
347
348
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
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
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
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
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" || {
425
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; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
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
469
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
480
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
487
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
511
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
518
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
532
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'"
535
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'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
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`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
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"
604
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 GO
756 OCAMLFIND
757 GAS
758 HAVE_LINK_VERSION_SCRIPT
759 EGREP
760 NO_VARIADIC_MACROS
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
763 NO_MAYBE_UNINITIALIZED
764 NO_UNINITIALIZED
765 NO_COMMENT
766 PYTHON
767 HAVE_DLOPEN
768 HAVE_TERMINFO
769 USE_OPROFILE
770 USE_INTEL_JITEVENTS
771 XML2CONFIG
772 LIBXML2_LIBS
773 LIBXML2_INC
774 HAVE_PTHREAD
775 HAVE_LIBZ
776 HUGE_VAL_SANITY
777 MMAP_FILE
778 SHLIBEXT
779 LLVM_PREFIX
780 LLVM_BINDIR
781 LLVM_DATADIR
782 LLVM_DOCSDIR
783 LLVM_ETCDIR
784 LLVM_INCLUDEDIR
785 LLVM_INFODIR
786 LLVM_MANDIR
787 LLVM_CONFIGTIME
788 BINDINGS_TO_BUILD
789 HAVE_OCAMLOPT
790 HAVE_OCAML_OUNIT
791 OCAML_LIBDIR
792 ENABLE_VISIBILITY_INLINES_HIDDEN
793 RPATH
794 RDYNAMIC
795 program_prefix
796 LIBOBJS
797 LTLIBOBJS'
798 ac_subst_files=''
799       ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 CPPFLAGS
806 CXX
807 CXXFLAGS
808 CCC
809 CPP'
810 ac_subdirs_all='projects/test-suite
811 projects/llvm-test
812 projects/poolalloc
813 projects/llvm-poolalloc
814 projects/safecode
815 tools/polly'
816
817 # Initialize some variables set by options.
818 ac_init_help=
819 ac_init_version=false
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
836
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
862
863 ac_prev=
864 ac_dashdash=
865 for ac_option
866 do
867   # If the previous option needs an argument, assign it.
868   if test -n "$ac_prev"; then
869     eval $ac_prev=\$ac_option
870     ac_prev=
871     continue
872   fi
873
874   case $ac_option in
875   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876   *)    ac_optarg=yes ;;
877   esac
878
879   # Accept the important Cygnus configure options, so we can diagnose typos.
880
881   case $ac_dashdash$ac_option in
882   --)
883     ac_dashdash=yes ;;
884
885   -bindir | --bindir | --bindi | --bind | --bin | --bi)
886     ac_prev=bindir ;;
887   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888     bindir=$ac_optarg ;;
889
890   -build | --build | --buil | --bui | --bu)
891     ac_prev=build_alias ;;
892   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893     build_alias=$ac_optarg ;;
894
895   -cache-file | --cache-file | --cache-fil | --cache-fi \
896   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897     ac_prev=cache_file ;;
898   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900     cache_file=$ac_optarg ;;
901
902   --config-cache | -C)
903     cache_file=config.cache ;;
904
905   -datadir | --datadir | --datadi | --datad)
906     ac_prev=datadir ;;
907   -datadir=* | --datadir=* | --datadi=* | --datad=*)
908     datadir=$ac_optarg ;;
909
910   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911   | --dataroo | --dataro | --datar)
912     ac_prev=datarootdir ;;
913   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915     datarootdir=$ac_optarg ;;
916
917   -disable-* | --disable-*)
918     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919     # Reject names that are not valid shell variable names.
920     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922    { (exit 1); exit 1; }; }
923     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924     eval enable_$ac_feature=no ;;
925
926   -docdir | --docdir | --docdi | --doc | --do)
927     ac_prev=docdir ;;
928   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929     docdir=$ac_optarg ;;
930
931   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932     ac_prev=dvidir ;;
933   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934     dvidir=$ac_optarg ;;
935
936   -enable-* | --enable-*)
937     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938     # Reject names that are not valid shell variable names.
939     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941    { (exit 1); exit 1; }; }
942     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943     eval enable_$ac_feature=\$ac_optarg ;;
944
945   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947   | --exec | --exe | --ex)
948     ac_prev=exec_prefix ;;
949   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951   | --exec=* | --exe=* | --ex=*)
952     exec_prefix=$ac_optarg ;;
953
954   -gas | --gas | --ga | --g)
955     # Obsolete; use --with-gas.
956     with_gas=yes ;;
957
958   -help | --help | --hel | --he | -h)
959     ac_init_help=long ;;
960   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961     ac_init_help=recursive ;;
962   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963     ac_init_help=short ;;
964
965   -host | --host | --hos | --ho)
966     ac_prev=host_alias ;;
967   -host=* | --host=* | --hos=* | --ho=*)
968     host_alias=$ac_optarg ;;
969
970   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971     ac_prev=htmldir ;;
972   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973   | --ht=*)
974     htmldir=$ac_optarg ;;
975
976   -includedir | --includedir | --includedi | --included | --include \
977   | --includ | --inclu | --incl | --inc)
978     ac_prev=includedir ;;
979   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980   | --includ=* | --inclu=* | --incl=* | --inc=*)
981     includedir=$ac_optarg ;;
982
983   -infodir | --infodir | --infodi | --infod | --info | --inf)
984     ac_prev=infodir ;;
985   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986     infodir=$ac_optarg ;;
987
988   -libdir | --libdir | --libdi | --libd)
989     ac_prev=libdir ;;
990   -libdir=* | --libdir=* | --libdi=* | --libd=*)
991     libdir=$ac_optarg ;;
992
993   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994   | --libexe | --libex | --libe)
995     ac_prev=libexecdir ;;
996   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997   | --libexe=* | --libex=* | --libe=*)
998     libexecdir=$ac_optarg ;;
999
1000   -localedir | --localedir | --localedi | --localed | --locale)
1001     ac_prev=localedir ;;
1002   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003     localedir=$ac_optarg ;;
1004
1005   -localstatedir | --localstatedir | --localstatedi | --localstated \
1006   | --localstate | --localstat | --localsta | --localst | --locals)
1007     ac_prev=localstatedir ;;
1008   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010     localstatedir=$ac_optarg ;;
1011
1012   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013     ac_prev=mandir ;;
1014   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015     mandir=$ac_optarg ;;
1016
1017   -nfp | --nfp | --nf)
1018     # Obsolete; use --without-fp.
1019     with_fp=no ;;
1020
1021   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022   | --no-cr | --no-c | -n)
1023     no_create=yes ;;
1024
1025   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027     no_recursion=yes ;;
1028
1029   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031   | --oldin | --oldi | --old | --ol | --o)
1032     ac_prev=oldincludedir ;;
1033   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036     oldincludedir=$ac_optarg ;;
1037
1038   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039     ac_prev=prefix ;;
1040   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041     prefix=$ac_optarg ;;
1042
1043   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044   | --program-pre | --program-pr | --program-p)
1045     ac_prev=program_prefix ;;
1046   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048     program_prefix=$ac_optarg ;;
1049
1050   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051   | --program-suf | --program-su | --program-s)
1052     ac_prev=program_suffix ;;
1053   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055     program_suffix=$ac_optarg ;;
1056
1057   -program-transform-name | --program-transform-name \
1058   | --program-transform-nam | --program-transform-na \
1059   | --program-transform-n | --program-transform- \
1060   | --program-transform | --program-transfor \
1061   | --program-transfo | --program-transf \
1062   | --program-trans | --program-tran \
1063   | --progr-tra | --program-tr | --program-t)
1064     ac_prev=program_transform_name ;;
1065   -program-transform-name=* | --program-transform-name=* \
1066   | --program-transform-nam=* | --program-transform-na=* \
1067   | --program-transform-n=* | --program-transform-=* \
1068   | --program-transform=* | --program-transfor=* \
1069   | --program-transfo=* | --program-transf=* \
1070   | --program-trans=* | --program-tran=* \
1071   | --progr-tra=* | --program-tr=* | --program-t=*)
1072     program_transform_name=$ac_optarg ;;
1073
1074   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075     ac_prev=pdfdir ;;
1076   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077     pdfdir=$ac_optarg ;;
1078
1079   -psdir | --psdir | --psdi | --psd | --ps)
1080     ac_prev=psdir ;;
1081   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082     psdir=$ac_optarg ;;
1083
1084   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085   | -silent | --silent | --silen | --sile | --sil)
1086     silent=yes ;;
1087
1088   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089     ac_prev=sbindir ;;
1090   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091   | --sbi=* | --sb=*)
1092     sbindir=$ac_optarg ;;
1093
1094   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096   | --sharedst | --shareds | --shared | --share | --shar \
1097   | --sha | --sh)
1098     ac_prev=sharedstatedir ;;
1099   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102   | --sha=* | --sh=*)
1103     sharedstatedir=$ac_optarg ;;
1104
1105   -site | --site | --sit)
1106     ac_prev=site ;;
1107   -site=* | --site=* | --sit=*)
1108     site=$ac_optarg ;;
1109
1110   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111     ac_prev=srcdir ;;
1112   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113     srcdir=$ac_optarg ;;
1114
1115   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116   | --syscon | --sysco | --sysc | --sys | --sy)
1117     ac_prev=sysconfdir ;;
1118   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120     sysconfdir=$ac_optarg ;;
1121
1122   -target | --target | --targe | --targ | --tar | --ta | --t)
1123     ac_prev=target_alias ;;
1124   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125     target_alias=$ac_optarg ;;
1126
1127   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128     verbose=yes ;;
1129
1130   -version | --version | --versio | --versi | --vers | -V)
1131     ac_init_version=: ;;
1132
1133   -with-* | --with-*)
1134     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135     # Reject names that are not valid shell variable names.
1136     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137       { echo "$as_me: error: invalid package name: $ac_package" >&2
1138    { (exit 1); exit 1; }; }
1139     ac_package=`echo $ac_package| sed 's/-/_/g'`
1140     eval with_$ac_package=\$ac_optarg ;;
1141
1142   -without-* | --without-*)
1143     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146       { echo "$as_me: error: invalid package name: $ac_package" >&2
1147    { (exit 1); exit 1; }; }
1148     ac_package=`echo $ac_package | sed 's/-/_/g'`
1149     eval with_$ac_package=no ;;
1150
1151   --x)
1152     # Obsolete; use --with-x.
1153     with_x=yes ;;
1154
1155   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156   | --x-incl | --x-inc | --x-in | --x-i)
1157     ac_prev=x_includes ;;
1158   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160     x_includes=$ac_optarg ;;
1161
1162   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164     ac_prev=x_libraries ;;
1165   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167     x_libraries=$ac_optarg ;;
1168
1169   -*) { echo "$as_me: error: unrecognized option: $ac_option
1170 Try \`$0 --help' for more information." >&2
1171    { (exit 1); exit 1; }; }
1172     ;;
1173
1174   *=*)
1175     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179    { (exit 1); exit 1; }; }
1180     eval $ac_envvar=\$ac_optarg
1181     export $ac_envvar ;;
1182
1183   *)
1184     # FIXME: should be removed in autoconf 3.0.
1185     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189     ;;
1190
1191   esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196   { echo "$as_me: error: missing argument to $ac_option" >&2
1197    { (exit 1); exit 1; }; }
1198 fi
1199
1200 # Be sure to have absolute directory names.
1201 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202                 datadir sysconfdir sharedstatedir localstatedir includedir \
1203                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204                 libdir localedir mandir
1205 do
1206   eval ac_val=\$$ac_var
1207   case $ac_val in
1208     [\\/$]* | ?:[\\/]* )  continue;;
1209     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210   esac
1211   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212    { (exit 1); exit 1; }; }
1213 done
1214
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1218 build=$build_alias
1219 host=$host_alias
1220 target=$target_alias
1221
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224   if test "x$build_alias" = x; then
1225     cross_compiling=maybe
1226     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227     If a cross compiler is detected then cross compile mode will be used." >&2
1228   elif test "x$build_alias" != "x$host_alias"; then
1229     cross_compiling=yes
1230   fi
1231 fi
1232
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236 test "$silent" = yes && exec 6>/dev/null
1237
1238
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242   { echo "$as_me: error: Working directory cannot be determined" >&2
1243    { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245   { echo "$as_me: error: pwd does not report name of working directory" >&2
1246    { (exit 1); exit 1; }; }
1247
1248
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251   ac_srcdir_defaulted=yes
1252   # Try the directory containing this script, then the parent directory.
1253   ac_confdir=`$as_dirname -- "$0" ||
1254 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255          X"$0" : 'X\(//\)[^/]' \| \
1256          X"$0" : 'X\(//\)$' \| \
1257          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1258 echo X"$0" |
1259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\/\)[^/].*/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\).*/{
1272             s//\1/
1273             q
1274           }
1275           s/.*/./; q'`
1276   srcdir=$ac_confdir
1277   if test ! -r "$srcdir/$ac_unique_file"; then
1278     srcdir=..
1279   fi
1280 else
1281   ac_srcdir_defaulted=no
1282 fi
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286    { (exit 1); exit 1; }; }
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291    { (exit 1); exit 1; }; }
1292         pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295   srcdir=.
1296 fi
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305   eval ac_env_${ac_var}_value=\$${ac_var}
1306   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1309
1310 #
1311 # Report the --help message.
1312 #
1313 if test "$ac_init_help" = "long"; then
1314   # Omit some internal or obsolete options to make the list less imposing.
1315   # This message is too long to be a string in the A/UX 3.1 sh.
1316   cat <<_ACEOF
1317 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1318
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE.  See below for descriptions of some of the useful variables.
1323
1324 Defaults for the options are specified in brackets.
1325
1326 Configuration:
1327   -h, --help              display this help and exit
1328       --help=short        display options specific to this package
1329       --help=recursive    display the short help of all the included packages
1330   -V, --version           display version information and exit
1331   -q, --quiet, --silent   do not print \`checking...' messages
1332       --cache-file=FILE   cache test results in FILE [disabled]
1333   -C, --config-cache      alias for \`--cache-file=config.cache'
1334   -n, --no-create         do not create output files
1335       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1336
1337 Installation directories:
1338   --prefix=PREFIX         install architecture-independent files in PREFIX
1339                           [$ac_default_prefix]
1340   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341                           [PREFIX]
1342
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1347
1348 For better control, use the options below.
1349
1350 Fine tuning of the installation directories:
1351   --bindir=DIR           user executables [EPREFIX/bin]
1352   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1353   --libexecdir=DIR       program executables [EPREFIX/libexec]
1354   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1355   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1356   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1357   --libdir=DIR           object code libraries [EPREFIX/lib]
1358   --includedir=DIR       C header files [PREFIX/include]
1359   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1360   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1361   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1362   --infodir=DIR          info documentation [DATAROOTDIR/info]
1363   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1364   --mandir=DIR           man documentation [DATAROOTDIR/man]
1365   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1366   --htmldir=DIR          html documentation [DOCDIR]
1367   --dvidir=DIR           dvi documentation [DOCDIR]
1368   --pdfdir=DIR           pdf documentation [DOCDIR]
1369   --psdir=DIR            ps documentation [DOCDIR]
1370 _ACEOF
1371
1372   cat <<\_ACEOF
1373
1374 System types:
1375   --build=BUILD     configure for building on BUILD [guessed]
1376   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377   --target=TARGET   configure for building compilers for TARGET [HOST]
1378 _ACEOF
1379 fi
1380
1381 if test -n "$ac_init_help"; then
1382   case $ac_init_help in
1383      short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1384    esac
1385   cat <<\_ACEOF
1386
1387 Optional Features:
1388   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390   --enable-polly          Use polly if available (default is YES)
1391   --enable-libcpp         Use libc++ if available (default is NO)
1392   --enable-compiler-version-checks
1393                           Check the version of the host compiler (default is
1394                           YES)
1395   --enable-cxx1y          Use c++1y if available (default is NO)
1396   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1397   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1398   --enable-clang-plugin-support
1399                           Enable plugin support in clang (default is YES)
1400   --enable-clang-static-analyzer
1401                           Enable building of clang Static Analyzer (default is
1402                           YES)
1403   --enable-optimized      Compile with optimizations enabled (default is NO)
1404   --enable-profiling      Compile with profiling enabled (default is NO)
1405   --enable-assertions     Compile with assertion checks enabled (default is
1406                           YES)
1407   --enable-werror         Compile with -Werror enabled (default is NO)
1408   --enable-expensive-checks
1409                           Compile with expensive debug checks enabled (default
1410                           is NO)
1411   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1412                           NO)
1413   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1414                           optimization is on and YES if it's off)
1415   --enable-keep-symbols   Do not strip installed executables)
1416   --enable-jit            Enable Just In Time Compiling (default is YES)
1417   --enable-docs           Build documents (default is YES)
1418   --enable-doxygen        Build doxygen documentation (default is NO)
1419   --enable-threads        Use threads if available (default is YES)
1420   --enable-pthreads       Use pthreads if available (default is YES)
1421   --enable-zlib           Use zlib for compression/decompression if available
1422                           (default is YES)
1423   --enable-pic            Build LLVM with Position Independent Code (default
1424                           is YES)
1425   --enable-shared         Build a shared library and link tools against it
1426                           (default is NO)
1427   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1428                           Win32 DLL (default is NO)
1429   --enable-timestamps     Enable embedding timestamp information in build
1430                           (default is YES)
1431   --enable-backtraces     Enable embedding backtraces on crash (default is
1432                           YES)
1433   --enable-crash-overrides
1434                           Enable crash handling overrides (default is YES)
1435   --enable-targets        Build specific host targets: all or
1436                           target1,target2,... Valid targets are: host, x86,
1437                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1438                           hexagon, xcore, msp430, nvptx, systemz, r600, and
1439                           cpp (default=all)
1440   --enable-experimental-targets
1441                           Build experimental host targets: disable or
1442                           target1,target2,... (default=disable)
1443   --enable-bindings       Build specific language bindings:
1444                           all,auto,none,{binding-name} (default=auto)
1445   --enable-terminfo       Query the terminfo database if available (default is
1446                           YES)
1447   --enable-libedit        Use libedit if available (default is YES)
1448   --enable-libffi         Check for the presence of libffi (default is NO)
1449
1450 Optional Packages:
1451   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1452   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1453   --with-optimize-option  Select the compiler options to use for optimized
1454                           builds
1455   --with-extra-options    Specify additional options to compile LLVM with
1456   --with-extra-ld-options Specify additional options to link LLVM with
1457   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1458                           is stdlib)
1459   --with-clang-srcdir     Directory to the out-of-tree Clang source
1460   --with-clang-resource-dir
1461                           Relative directory from the Clang binary for
1462                           resource files
1463   --with-c-include-dirs   Colon separated list of directories clang will
1464                           search for headers
1465   --with-gcc-toolchain    Directory where gcc is installed.
1466   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1467   --with-binutils-include Specify path to binutils/include/ containing
1468                           plugin-api.h file for gold plugin.
1469   --with-bug-report-url   Specify the URL where bug reports should be
1470                           submitted (default=http://llvm.org/bugs/)
1471   --with-internal-prefix  Installation directory for internal files
1472   --with-python           path to python
1473   --with-oprofile=<prefix>
1474                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1475   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1476
1477
1478 Some influential environment variables:
1479   CC          C compiler command
1480   CFLAGS      C compiler flags
1481   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1482               nonstandard directory <lib dir>
1483   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484               you have headers in a nonstandard directory <include dir>
1485   CXX         C++ compiler command
1486   CXXFLAGS    C++ compiler flags
1487   CPP         C preprocessor
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to <http://llvm.org/bugs/>.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498   # If there are subdirs, report their specific --help.
1499   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500     test -d "$ac_dir" || continue
1501     ac_builddir=.
1502
1503 case "$ac_dir" in
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *)
1506   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1507   # A ".." for each directory in $ac_dir_suffix.
1508   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1509   case $ac_top_builddir_sub in
1510   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512   esac ;;
1513 esac
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1518
1519 case $srcdir in
1520   .)  # We are building in place.
1521     ac_srcdir=.
1522     ac_top_srcdir=$ac_top_builddir_sub
1523     ac_abs_top_srcdir=$ac_pwd ;;
1524   [\\/]* | ?:[\\/]* )  # Absolute name.
1525     ac_srcdir=$srcdir$ac_dir_suffix;
1526     ac_top_srcdir=$srcdir
1527     ac_abs_top_srcdir=$srcdir ;;
1528   *) # Relative name.
1529     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530     ac_top_srcdir=$ac_top_build_prefix$srcdir
1531     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 esac
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535     cd "$ac_dir" || { ac_status=$?; continue; }
1536     # Check for guested configure.
1537     if test -f "$ac_srcdir/configure.gnu"; then
1538       echo &&
1539       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540     elif test -f "$ac_srcdir/configure"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure" --help=recursive
1543     else
1544       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545     fi || ac_status=$?
1546     cd "$ac_pwd" || { ac_status=$?; break; }
1547   done
1548 fi
1549
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1552   cat <<\_ACEOF
1553 LLVM configure 3.7.0svn
1554 generated by GNU Autoconf 2.60
1555
1556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1557 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1560
1561 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1562 _ACEOF
1563   exit
1564 fi
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1568
1569 It was created by LLVM $as_me 3.7.0svn, which was
1570 generated by GNU Autoconf 2.60.  Invocation command line was
1571
1572   $ $0 $@
1573
1574 _ACEOF
1575 exec 5>>config.log
1576 {
1577 cat <<_ASUNAME
1578 ## --------- ##
1579 ## Platform. ##
1580 ## --------- ##
1581
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1590
1591 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1592 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1595 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1596 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1597 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1598
1599 _ASUNAME
1600
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604   IFS=$as_save_IFS
1605   test -z "$as_dir" && as_dir=.
1606   echo "PATH: $as_dir"
1607 done
1608 IFS=$as_save_IFS
1609
1610 } >&5
1611
1612 cat >&5 <<_ACEOF
1613
1614
1615 ## ----------- ##
1616 ## Core tests. ##
1617 ## ----------- ##
1618
1619 _ACEOF
1620
1621
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1627 ac_configure_args=
1628 ac_configure_args0=
1629 ac_configure_args1=
1630 ac_must_keep_next=false
1631 for ac_pass in 1 2
1632 do
1633   for ac_arg
1634   do
1635     case $ac_arg in
1636     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638     | -silent | --silent | --silen | --sile | --sil)
1639       continue ;;
1640     *\'*)
1641       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642     esac
1643     case $ac_pass in
1644     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645     2)
1646       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647       if test $ac_must_keep_next = true; then
1648         ac_must_keep_next=false # Got value, back to normal.
1649       else
1650         case $ac_arg in
1651           *=* | --config-cache | -C | -disable-* | --disable-* \
1652           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654           | -with-* | --with-* | -without-* | --without-* | --x)
1655             case "$ac_configure_args0 " in
1656               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657             esac
1658             ;;
1659           -* ) ac_must_keep_next=true ;;
1660         esac
1661       fi
1662       ac_configure_args="$ac_configure_args '$ac_arg'"
1663       ;;
1664     esac
1665   done
1666 done
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log.  We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676   # Save into config.log some information that might help in debugging.
1677   {
1678     echo
1679
1680     cat <<\_ASBOX
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1684 _ASBOX
1685     echo
1686     # The following way of writing the cache mishandles newlines in values,
1687 (
1688   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689     eval ac_val=\$$ac_var
1690     case $ac_val in #(
1691     *${as_nl}*)
1692       case $ac_var in #(
1693       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1695       esac
1696       case $ac_var in #(
1697       _ | IFS | as_nl) ;; #(
1698       *) $as_unset $ac_var ;;
1699       esac ;;
1700     esac
1701   done
1702   (set) 2>&1 |
1703     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704     *${as_nl}ac_space=\ *)
1705       sed -n \
1706         "s/'\''/'\''\\\\'\'''\''/g;
1707           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708       ;; #(
1709     *)
1710       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711       ;;
1712     esac |
1713     sort
1714 )
1715     echo
1716
1717     cat <<\_ASBOX
1718 ## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##
1721 _ASBOX
1722     echo
1723     for ac_var in $ac_subst_vars
1724     do
1725       eval ac_val=\$$ac_var
1726       case $ac_val in
1727       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728       esac
1729       echo "$ac_var='\''$ac_val'\''"
1730     done | sort
1731     echo
1732
1733     if test -n "$ac_subst_files"; then
1734       cat <<\_ASBOX
1735 ## ------------------- ##
1736 ## File substitutions. ##
1737 ## ------------------- ##
1738 _ASBOX
1739       echo
1740       for ac_var in $ac_subst_files
1741       do
1742         eval ac_val=\$$ac_var
1743         case $ac_val in
1744         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745         esac
1746         echo "$ac_var='\''$ac_val'\''"
1747       done | sort
1748       echo
1749     fi
1750
1751     if test -s confdefs.h; then
1752       cat <<\_ASBOX
1753 ## ----------- ##
1754 ## confdefs.h. ##
1755 ## ----------- ##
1756 _ASBOX
1757       echo
1758       cat confdefs.h
1759       echo
1760     fi
1761     test "$ac_signal" != 0 &&
1762       echo "$as_me: caught signal $ac_signal"
1763     echo "$as_me: exit $exit_status"
1764   } >&5
1765   rm -f core *.core core.conftest.* &&
1766     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1767     exit $exit_status
1768 ' 0
1769 for ac_signal in 1 2 13 15; do
1770   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1771 done
1772 ac_signal=0
1773
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1776
1777 # Predefined preprocessor variables.
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1781 _ACEOF
1782
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1801 _ACEOF
1802
1803
1804 # Let the site file select an alternate cache file if it wants to.
1805 # Prefer explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807   set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1810 else
1811   set x "$ac_default_prefix/share/config.site" \
1812         "$ac_default_prefix/etc/config.site"
1813 fi
1814 shift
1815 for ac_site_file
1816 do
1817   if test -r "$ac_site_file"; then
1818     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820     sed 's/^/| /' "$ac_site_file" >&5
1821     . "$ac_site_file"
1822   fi
1823 done
1824
1825 if test -r "$cache_file"; then
1826   # Some versions of bash will fail to source /dev/null (special
1827   # files actually), so we avoid doing that.
1828   if test -f "$cache_file"; then
1829     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 echo "$as_me: loading cache $cache_file" >&6;}
1831     case $cache_file in
1832       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833       *)                      . "./$cache_file";;
1834     esac
1835   fi
1836 else
1837   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1839   >$cache_file
1840 fi
1841
1842 # Check that the precious variables saved in the cache have kept the same
1843 # value.
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847   eval ac_new_set=\$ac_env_${ac_var}_set
1848   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849   eval ac_new_val=\$ac_env_${ac_var}_value
1850   case $ac_old_set,$ac_new_set in
1851     set,)
1852       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854       ac_cache_corrupted=: ;;
1855     ,set)
1856       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858       ac_cache_corrupted=: ;;
1859     ,);;
1860     *)
1861       if test "x$ac_old_val" != "x$ac_new_val"; then
1862         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1865 echo "$as_me:   former value:  $ac_old_val" >&2;}
1866         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1867 echo "$as_me:   current value: $ac_new_val" >&2;}
1868         ac_cache_corrupted=:
1869       fi;;
1870   esac
1871   # Pass precious variables to config.status.
1872   if test "$ac_new_set" = set; then
1873     case $ac_new_val in
1874     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875     *) ac_arg=$ac_var=$ac_new_val ;;
1876     esac
1877     case " $ac_configure_args " in
1878       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1879       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1880     esac
1881   fi
1882 done
1883 if $ac_cache_corrupted; then
1884   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888    { (exit 1); exit 1; }; }
1889 fi
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915 ac_ext=c
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920
1921
1922
1923 LLVM_VERSION_MAJOR=3
1924 LLVM_VERSION_MINOR=7
1925 LLVM_VERSION_PATCH=0
1926 LLVM_VERSION_SUFFIX=svn
1927
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1931 _ACEOF
1932
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<_ACEOF
1940 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1941 _ACEOF
1942
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1946 _ACEOF
1947
1948
1949
1950
1951
1952
1953
1954 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1955
1956
1957
1958
1959
1960
1961
1962 ac_aux_dir=
1963 for ac_dir in autoconf "$srcdir"/autoconf; do
1964   if test -f "$ac_dir/install-sh"; then
1965     ac_aux_dir=$ac_dir
1966     ac_install_sh="$ac_aux_dir/install-sh -c"
1967     break
1968   elif test -f "$ac_dir/install.sh"; then
1969     ac_aux_dir=$ac_dir
1970     ac_install_sh="$ac_aux_dir/install.sh -c"
1971     break
1972   elif test -f "$ac_dir/shtool"; then
1973     ac_aux_dir=$ac_dir
1974     ac_install_sh="$ac_aux_dir/shtool install -c"
1975     break
1976   fi
1977 done
1978 if test -z "$ac_aux_dir"; then
1979   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1980 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1981    { (exit 1); exit 1; }; }
1982 fi
1983
1984 # These three variables are undocumented and unsupported,
1985 # and are intended to be withdrawn in a future Autoconf release.
1986 # They can cause serious problems if a builder's source tree is in a directory
1987 # whose full name contains unusual characters.
1988 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1989 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1990 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1991
1992
1993
1994 if test ${srcdir} != "." ; then
1995   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1996     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1997 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1998    { (exit 1); exit 1; }; }
1999   fi
2000 fi
2001
2002 if test ${srcdir} == "." ; then
2003   { { echo "$as_me:$LINENO: error: In-source builds are discouraged. Configure from a separate build directory." >&5
2004 echo "$as_me: error: In-source builds are discouraged. Configure from a separate build directory." >&2;}
2005    { (exit 1); exit 1; }; }
2006 fi
2007
2008 : ${CFLAGS=}
2009 : ${CXXFLAGS=}
2010
2011 ac_ext=c
2012 ac_cpp='$CPP $CPPFLAGS'
2013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 if test -n "$ac_tool_prefix"; then
2017   for ac_prog in clang gcc
2018   do
2019     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2023 if test "${ac_cv_prog_CC+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   if test -n "$CC"; then
2027   ac_cv_prog_CC="$CC" # Let the user override the test.
2028 else
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 for as_dir in $PATH
2031 do
2032   IFS=$as_save_IFS
2033   test -z "$as_dir" && as_dir=.
2034   for ac_exec_ext in '' $ac_executable_extensions; do
2035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2036     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038     break 2
2039   fi
2040 done
2041 done
2042 IFS=$as_save_IFS
2043
2044 fi
2045 fi
2046 CC=$ac_cv_prog_CC
2047 if test -n "$CC"; then
2048   { echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6; }
2050 else
2051   { echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6; }
2053 fi
2054
2055
2056     test -n "$CC" && break
2057   done
2058 fi
2059 if test -z "$CC"; then
2060   ac_ct_CC=$CC
2061   for ac_prog in clang gcc
2062 do
2063   # Extract the first word of "$ac_prog", so it can be a program name with args.
2064 set dummy $ac_prog; ac_word=$2
2065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2068   echo $ECHO_N "(cached) $ECHO_C" >&6
2069 else
2070   if test -n "$ac_ct_CC"; then
2071   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2072 else
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2075 do
2076   IFS=$as_save_IFS
2077   test -z "$as_dir" && as_dir=.
2078   for ac_exec_ext in '' $ac_executable_extensions; do
2079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2080     ac_cv_prog_ac_ct_CC="$ac_prog"
2081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082     break 2
2083   fi
2084 done
2085 done
2086 IFS=$as_save_IFS
2087
2088 fi
2089 fi
2090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2091 if test -n "$ac_ct_CC"; then
2092   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2093 echo "${ECHO_T}$ac_ct_CC" >&6; }
2094 else
2095   { echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6; }
2097 fi
2098
2099
2100   test -n "$ac_ct_CC" && break
2101 done
2102
2103   if test "x$ac_ct_CC" = x; then
2104     CC=""
2105   else
2106     case $cross_compiling:$ac_tool_warned in
2107 yes:)
2108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2109 whose name does not start with the host triplet.  If you think this
2110 configuration is useful to you, please write to autoconf@gnu.org." >&5
2111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2112 whose name does not start with the host triplet.  If you think this
2113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2114 ac_tool_warned=yes ;;
2115 esac
2116     CC=$ac_ct_CC
2117   fi
2118 fi
2119
2120
2121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&2;}
2125    { (exit 1); exit 1; }; }
2126
2127 # Provide some information about the compiler.
2128 echo "$as_me:$LINENO: checking for C compiler version" >&5
2129 ac_compiler=`set X $ac_compile; echo $2`
2130 { (ac_try="$ac_compiler --version >&5"
2131 case "(($ac_try" in
2132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133   *) ac_try_echo=$ac_try;;
2134 esac
2135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136   (eval "$ac_compiler --version >&5") 2>&5
2137   ac_status=$?
2138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139   (exit $ac_status); }
2140 { (ac_try="$ac_compiler -v >&5"
2141 case "(($ac_try" in
2142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143   *) ac_try_echo=$ac_try;;
2144 esac
2145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2146   (eval "$ac_compiler -v >&5") 2>&5
2147   ac_status=$?
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); }
2150 { (ac_try="$ac_compiler -V >&5"
2151 case "(($ac_try" in
2152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153   *) ac_try_echo=$ac_try;;
2154 esac
2155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2156   (eval "$ac_compiler -V >&5") 2>&5
2157   ac_status=$?
2158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159   (exit $ac_status); }
2160
2161 cat >conftest.$ac_ext <<_ACEOF
2162 /* confdefs.h.  */
2163 _ACEOF
2164 cat confdefs.h >>conftest.$ac_ext
2165 cat >>conftest.$ac_ext <<_ACEOF
2166 /* end confdefs.h.  */
2167
2168 int
2169 main ()
2170 {
2171
2172   ;
2173   return 0;
2174 }
2175 _ACEOF
2176 ac_clean_files_save=$ac_clean_files
2177 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2178 # Try to create an executable without -o first, disregard a.out.
2179 # It will help us diagnose broken compilers, and finding out an intuition
2180 # of exeext.
2181 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2182 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2183 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2184 #
2185 # List of possible output files, starting from the most likely.
2186 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2187 # only as a last resort.  b.out is created by i960 compilers.
2188 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2189 #
2190 # The IRIX 6 linker writes into existing files which may not be
2191 # executable, retaining their permissions.  Remove them first so a
2192 # subsequent execution test works.
2193 ac_rmfiles=
2194 for ac_file in $ac_files
2195 do
2196   case $ac_file in
2197     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2198     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2199   esac
2200 done
2201 rm -f $ac_rmfiles
2202
2203 if { (ac_try="$ac_link_default"
2204 case "(($ac_try" in
2205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2206   *) ac_try_echo=$ac_try;;
2207 esac
2208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2209   (eval "$ac_link_default") 2>&5
2210   ac_status=$?
2211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212   (exit $ac_status); }; then
2213   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2214 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2215 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2216 # so that the user can short-circuit this test for compilers unknown to
2217 # Autoconf.
2218 for ac_file in $ac_files
2219 do
2220   test -f "$ac_file" || continue
2221   case $ac_file in
2222     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2223         ;;
2224     [ab].out )
2225         # We found the default executable, but exeext='' is most
2226         # certainly right.
2227         break;;
2228     *.* )
2229         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2230         then :; else
2231            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2232         fi
2233         # We set ac_cv_exeext here because the later test for it is not
2234         # safe: cross compilers may not add the suffix if given an `-o'
2235         # argument, so we may need to know it at that point already.
2236         # Even if this section looks crufty: it has the advantage of
2237         # actually working.
2238         break;;
2239     * )
2240         break;;
2241   esac
2242 done
2243 test "$ac_cv_exeext" = no && ac_cv_exeext=
2244
2245 else
2246   echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2248
2249 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: C compiler cannot create executables
2252 See \`config.log' for more details." >&2;}
2253    { (exit 77); exit 77; }; }
2254 fi
2255
2256 ac_exeext=$ac_cv_exeext
2257 { echo "$as_me:$LINENO: result: $ac_file" >&5
2258 echo "${ECHO_T}$ac_file" >&6; }
2259
2260 # Check that the compiler produces executables we can run.  If not, either
2261 # the compiler is broken, or we cross compile.
2262 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2263 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2264 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2265 # If not cross compiling, check that we can run a simple program.
2266 if test "$cross_compiling" != yes; then
2267   if { ac_try='./$ac_file'
2268   { (case "(($ac_try" in
2269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270   *) ac_try_echo=$ac_try;;
2271 esac
2272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2273   (eval "$ac_try") 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277     cross_compiling=no
2278   else
2279     if test "$cross_compiling" = maybe; then
2280         cross_compiling=yes
2281     else
2282         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2283 If you meant to cross compile, use \`--host'.
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot run C compiled programs.
2286 If you meant to cross compile, use \`--host'.
2287 See \`config.log' for more details." >&2;}
2288    { (exit 1); exit 1; }; }
2289     fi
2290   fi
2291 fi
2292 { echo "$as_me:$LINENO: result: yes" >&5
2293 echo "${ECHO_T}yes" >&6; }
2294
2295 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2296 ac_clean_files=$ac_clean_files_save
2297 # Check that the compiler produces executables we can run.  If not, either
2298 # the compiler is broken, or we cross compile.
2299 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2300 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2301 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2302 echo "${ECHO_T}$cross_compiling" >&6; }
2303
2304 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2305 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2306 if { (ac_try="$ac_link"
2307 case "(($ac_try" in
2308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309   *) ac_try_echo=$ac_try;;
2310 esac
2311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2312   (eval "$ac_link") 2>&5
2313   ac_status=$?
2314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315   (exit $ac_status); }; then
2316   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2317 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2318 # work properly (i.e., refer to `conftest.exe'), while it won't with
2319 # `rm'.
2320 for ac_file in conftest.exe conftest conftest.*; do
2321   test -f "$ac_file" || continue
2322   case $ac_file in
2323     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2324     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325           break;;
2326     * ) break;;
2327   esac
2328 done
2329 else
2330   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2333 See \`config.log' for more details." >&2;}
2334    { (exit 1); exit 1; }; }
2335 fi
2336
2337 rm -f conftest$ac_cv_exeext
2338 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2339 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2340
2341 rm -f conftest.$ac_ext
2342 EXEEXT=$ac_cv_exeext
2343 ac_exeext=$EXEEXT
2344 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2345 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2346 if test "${ac_cv_objext+set}" = set; then
2347   echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349   cat >conftest.$ac_ext <<_ACEOF
2350 /* confdefs.h.  */
2351 _ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h.  */
2355
2356 int
2357 main ()
2358 {
2359
2360   ;
2361   return 0;
2362 }
2363 _ACEOF
2364 rm -f conftest.o conftest.obj
2365 if { (ac_try="$ac_compile"
2366 case "(($ac_try" in
2367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368   *) ac_try_echo=$ac_try;;
2369 esac
2370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371   (eval "$ac_compile") 2>&5
2372   ac_status=$?
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); }; then
2375   for ac_file in conftest.o conftest.obj conftest.*; do
2376   test -f "$ac_file" || continue;
2377   case $ac_file in
2378     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2379     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2380        break;;
2381   esac
2382 done
2383 else
2384   echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2386
2387 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2388 See \`config.log' for more details." >&5
2389 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&2;}
2391    { (exit 1); exit 1; }; }
2392 fi
2393
2394 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2395 fi
2396 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2397 echo "${ECHO_T}$ac_cv_objext" >&6; }
2398 OBJEXT=$ac_cv_objext
2399 ac_objext=$OBJEXT
2400 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2401 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2402 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2403   echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405   cat >conftest.$ac_ext <<_ACEOF
2406 /* confdefs.h.  */
2407 _ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h.  */
2411
2412 int
2413 main ()
2414 {
2415 #ifndef __GNUC__
2416        choke me
2417 #endif
2418
2419   ;
2420   return 0;
2421 }
2422 _ACEOF
2423 rm -f conftest.$ac_objext
2424 if { (ac_try="$ac_compile"
2425 case "(($ac_try" in
2426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427   *) ac_try_echo=$ac_try;;
2428 esac
2429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430   (eval "$ac_compile") 2>conftest.er1
2431   ac_status=$?
2432   grep -v '^ *+' conftest.er1 >conftest.err
2433   rm -f conftest.er1
2434   cat conftest.err >&5
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); } &&
2437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2438   { (case "(($ac_try" in
2439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440   *) ac_try_echo=$ac_try;;
2441 esac
2442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2443   (eval "$ac_try") 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); }; } &&
2447          { ac_try='test -s conftest.$ac_objext'
2448   { (case "(($ac_try" in
2449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450   *) ac_try_echo=$ac_try;;
2451 esac
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453   (eval "$ac_try") 2>&5
2454   ac_status=$?
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); }; }; then
2457   ac_compiler_gnu=yes
2458 else
2459   echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462         ac_compiler_gnu=no
2463 fi
2464
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2467
2468 fi
2469 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2470 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2471 GCC=`test $ac_compiler_gnu = yes && echo yes`
2472 ac_test_CFLAGS=${CFLAGS+set}
2473 ac_save_CFLAGS=$CFLAGS
2474 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2475 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_cc_g+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   ac_save_c_werror_flag=$ac_c_werror_flag
2480    ac_c_werror_flag=yes
2481    ac_cv_prog_cc_g=no
2482    CFLAGS="-g"
2483    cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h.  */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h.  */
2489
2490 int
2491 main ()
2492 {
2493
2494   ;
2495   return 0;
2496 }
2497 _ACEOF
2498 rm -f conftest.$ac_objext
2499 if { (ac_try="$ac_compile"
2500 case "(($ac_try" in
2501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502   *) ac_try_echo=$ac_try;;
2503 esac
2504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2505   (eval "$ac_compile") 2>conftest.er1
2506   ac_status=$?
2507   grep -v '^ *+' conftest.er1 >conftest.err
2508   rm -f conftest.er1
2509   cat conftest.err >&5
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); } &&
2512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2513   { (case "(($ac_try" in
2514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515   *) ac_try_echo=$ac_try;;
2516 esac
2517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518   (eval "$ac_try") 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); }; } &&
2522          { ac_try='test -s conftest.$ac_objext'
2523   { (case "(($ac_try" in
2524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525   *) ac_try_echo=$ac_try;;
2526 esac
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528   (eval "$ac_try") 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }; }; then
2532   ac_cv_prog_cc_g=yes
2533 else
2534   echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2536
2537         CFLAGS=""
2538       cat >conftest.$ac_ext <<_ACEOF
2539 /* confdefs.h.  */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h.  */
2544
2545 int
2546 main ()
2547 {
2548
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (ac_try="$ac_compile"
2555 case "(($ac_try" in
2556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557   *) ac_try_echo=$ac_try;;
2558 esac
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560   (eval "$ac_compile") 2>conftest.er1
2561   ac_status=$?
2562   grep -v '^ *+' conftest.er1 >conftest.err
2563   rm -f conftest.er1
2564   cat conftest.err >&5
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); } &&
2567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2568   { (case "(($ac_try" in
2569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570   *) ac_try_echo=$ac_try;;
2571 esac
2572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2573   (eval "$ac_try") 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; } &&
2577          { ac_try='test -s conftest.$ac_objext'
2578   { (case "(($ac_try" in
2579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580   *) ac_try_echo=$ac_try;;
2581 esac
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583   (eval "$ac_try") 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; }; then
2587   :
2588 else
2589   echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592         ac_c_werror_flag=$ac_save_c_werror_flag
2593          CFLAGS="-g"
2594          cat >conftest.$ac_ext <<_ACEOF
2595 /* confdefs.h.  */
2596 _ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h.  */
2600
2601 int
2602 main ()
2603 {
2604
2605   ;
2606   return 0;
2607 }
2608 _ACEOF
2609 rm -f conftest.$ac_objext
2610 if { (ac_try="$ac_compile"
2611 case "(($ac_try" in
2612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613   *) ac_try_echo=$ac_try;;
2614 esac
2615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616   (eval "$ac_compile") 2>conftest.er1
2617   ac_status=$?
2618   grep -v '^ *+' conftest.er1 >conftest.err
2619   rm -f conftest.er1
2620   cat conftest.err >&5
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); } &&
2623          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2624   { (case "(($ac_try" in
2625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626   *) ac_try_echo=$ac_try;;
2627 esac
2628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2629   (eval "$ac_try") 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (case "(($ac_try" in
2635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636   *) ac_try_echo=$ac_try;;
2637 esac
2638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2639   (eval "$ac_try") 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; }; then
2643   ac_cv_prog_cc_g=yes
2644 else
2645   echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648
2649 fi
2650
2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652 fi
2653
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 fi
2656
2657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658    ac_c_werror_flag=$ac_save_c_werror_flag
2659 fi
2660 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2661 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2662 if test "$ac_test_CFLAGS" = set; then
2663   CFLAGS=$ac_save_CFLAGS
2664 elif test $ac_cv_prog_cc_g = yes; then
2665   if test "$GCC" = yes; then
2666     CFLAGS="-g -O2"
2667   else
2668     CFLAGS="-g"
2669   fi
2670 else
2671   if test "$GCC" = yes; then
2672     CFLAGS="-O2"
2673   else
2674     CFLAGS=
2675   fi
2676 fi
2677 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2678 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_cc_c89+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   ac_cv_prog_cc_c89=no
2683 ac_save_CC=$CC
2684 cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h.  */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h.  */
2690 #include <stdarg.h>
2691 #include <stdio.h>
2692 #include <sys/types.h>
2693 #include <sys/stat.h>
2694 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2695 struct buf { int x; };
2696 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2697 static char *e (p, i)
2698      char **p;
2699      int i;
2700 {
2701   return p[i];
2702 }
2703 static char *f (char * (*g) (char **, int), char **p, ...)
2704 {
2705   char *s;
2706   va_list v;
2707   va_start (v,p);
2708   s = g (p, va_arg (v,int));
2709   va_end (v);
2710   return s;
2711 }
2712
2713 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2714    function prototypes and stuff, but not '\xHH' hex character constants.
2715    These don't provoke an error unfortunately, instead are silently treated
2716    as 'x'.  The following induces an error, until -std is added to get
2717    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2718    array size at least.  It's necessary to write '\x00'==0 to get something
2719    that's true only with -std.  */
2720 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2721
2722 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2723    inside strings and character constants.  */
2724 #define FOO(x) 'x'
2725 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2726
2727 int test (int i, double x);
2728 struct s1 {int (*f) (int a);};
2729 struct s2 {int (*f) (double a);};
2730 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2731 int argc;
2732 char **argv;
2733 int
2734 main ()
2735 {
2736 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2737   ;
2738   return 0;
2739 }
2740 _ACEOF
2741 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2742         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2743 do
2744   CC="$ac_save_CC $ac_arg"
2745   rm -f conftest.$ac_objext
2746 if { (ac_try="$ac_compile"
2747 case "(($ac_try" in
2748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749   *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752   (eval "$ac_compile") 2>conftest.er1
2753   ac_status=$?
2754   grep -v '^ *+' conftest.er1 >conftest.err
2755   rm -f conftest.er1
2756   cat conftest.err >&5
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); } &&
2759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2760   { (case "(($ac_try" in
2761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762   *) ac_try_echo=$ac_try;;
2763 esac
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765   (eval "$ac_try") 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); }; } &&
2769          { ac_try='test -s conftest.$ac_objext'
2770   { (case "(($ac_try" in
2771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772   *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775   (eval "$ac_try") 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; }; then
2779   ac_cv_prog_cc_c89=$ac_arg
2780 else
2781   echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2783
2784
2785 fi
2786
2787 rm -f core conftest.err conftest.$ac_objext
2788   test "x$ac_cv_prog_cc_c89" != "xno" && break
2789 done
2790 rm -f conftest.$ac_ext
2791 CC=$ac_save_CC
2792
2793 fi
2794 # AC_CACHE_VAL
2795 case "x$ac_cv_prog_cc_c89" in
2796   x)
2797     { echo "$as_me:$LINENO: result: none needed" >&5
2798 echo "${ECHO_T}none needed" >&6; } ;;
2799   xno)
2800     { echo "$as_me:$LINENO: result: unsupported" >&5
2801 echo "${ECHO_T}unsupported" >&6; } ;;
2802   *)
2803     CC="$CC $ac_cv_prog_cc_c89"
2804     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2805 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2806 esac
2807
2808
2809 ac_ext=c
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814
2815 ac_ext=cpp
2816 ac_cpp='$CXXCPP $CPPFLAGS'
2817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2820 if test -z "$CXX"; then
2821   if test -n "$CCC"; then
2822     CXX=$CCC
2823   else
2824     if test -n "$ac_tool_prefix"; then
2825   for ac_prog in clang++ g++
2826   do
2827     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2831 if test "${ac_cv_prog_CXX+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834   if test -n "$CXX"; then
2835   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840   IFS=$as_save_IFS
2841   test -z "$as_dir" && as_dir=.
2842   for ac_exec_ext in '' $ac_executable_extensions; do
2843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2844     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846     break 2
2847   fi
2848 done
2849 done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 CXX=$ac_cv_prog_CXX
2855 if test -n "$CXX"; then
2856   { echo "$as_me:$LINENO: result: $CXX" >&5
2857 echo "${ECHO_T}$CXX" >&6; }
2858 else
2859   { echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6; }
2861 fi
2862
2863
2864     test -n "$CXX" && break
2865   done
2866 fi
2867 if test -z "$CXX"; then
2868   ac_ct_CXX=$CXX
2869   for ac_prog in clang++ g++
2870 do
2871   # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy $ac_prog; ac_word=$2
2873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2875 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2876   echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878   if test -n "$ac_ct_CXX"; then
2879   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884   IFS=$as_save_IFS
2885   test -z "$as_dir" && as_dir=.
2886   for ac_exec_ext in '' $ac_executable_extensions; do
2887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2888     ac_cv_prog_ac_ct_CXX="$ac_prog"
2889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890     break 2
2891   fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2899 if test -n "$ac_ct_CXX"; then
2900   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2901 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2902 else
2903   { echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6; }
2905 fi
2906
2907
2908   test -n "$ac_ct_CXX" && break
2909 done
2910
2911   if test "x$ac_ct_CXX" = x; then
2912     CXX="g++"
2913   else
2914     case $cross_compiling:$ac_tool_warned in
2915 yes:)
2916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2917 whose name does not start with the host triplet.  If you think this
2918 configuration is useful to you, please write to autoconf@gnu.org." >&5
2919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2920 whose name does not start with the host triplet.  If you think this
2921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2922 ac_tool_warned=yes ;;
2923 esac
2924     CXX=$ac_ct_CXX
2925   fi
2926 fi
2927
2928   fi
2929 fi
2930 # Provide some information about the compiler.
2931 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2932 ac_compiler=`set X $ac_compile; echo $2`
2933 { (ac_try="$ac_compiler --version >&5"
2934 case "(($ac_try" in
2935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936   *) ac_try_echo=$ac_try;;
2937 esac
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939   (eval "$ac_compiler --version >&5") 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }
2943 { (ac_try="$ac_compiler -v >&5"
2944 case "(($ac_try" in
2945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946   *) ac_try_echo=$ac_try;;
2947 esac
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949   (eval "$ac_compiler -v >&5") 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); }
2953 { (ac_try="$ac_compiler -V >&5"
2954 case "(($ac_try" in
2955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956   *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959   (eval "$ac_compiler -V >&5") 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); }
2963
2964 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2965 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2966 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2967   echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969   cat >conftest.$ac_ext <<_ACEOF
2970 /* confdefs.h.  */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h.  */
2975
2976 int
2977 main ()
2978 {
2979 #ifndef __GNUC__
2980        choke me
2981 #endif
2982
2983   ;
2984   return 0;
2985 }
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (ac_try="$ac_compile"
2989 case "(($ac_try" in
2990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991   *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994   (eval "$ac_compile") 2>conftest.er1
2995   ac_status=$?
2996   grep -v '^ *+' conftest.er1 >conftest.err
2997   rm -f conftest.er1
2998   cat conftest.err >&5
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); } &&
3001          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3002   { (case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_try") 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }; } &&
3011          { ac_try='test -s conftest.$ac_objext'
3012   { (case "(($ac_try" in
3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014   *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017   (eval "$ac_try") 2>&5
3018   ac_status=$?
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); }; }; then
3021   ac_compiler_gnu=yes
3022 else
3023   echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026         ac_compiler_gnu=no
3027 fi
3028
3029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3031
3032 fi
3033 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3034 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3035 GXX=`test $ac_compiler_gnu = yes && echo yes`
3036 ac_test_CXXFLAGS=${CXXFLAGS+set}
3037 ac_save_CXXFLAGS=$CXXFLAGS
3038 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3039 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3040 if test "${ac_cv_prog_cxx_g+set}" = set; then
3041   echo $ECHO_N "(cached) $ECHO_C" >&6
3042 else
3043   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3044    ac_cxx_werror_flag=yes
3045    ac_cv_prog_cxx_g=no
3046    CXXFLAGS="-g"
3047    cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053
3054 int
3055 main ()
3056 {
3057
3058   ;
3059   return 0;
3060 }
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (ac_try="$ac_compile"
3064 case "(($ac_try" in
3065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066   *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069   (eval "$ac_compile") 2>conftest.er1
3070   ac_status=$?
3071   grep -v '^ *+' conftest.er1 >conftest.err
3072   rm -f conftest.er1
3073   cat conftest.err >&5
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); } &&
3076          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3077   { (case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082   (eval "$ac_try") 2>&5
3083   ac_status=$?
3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); }; } &&
3086          { ac_try='test -s conftest.$ac_objext'
3087   { (case "(($ac_try" in
3088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089   *) ac_try_echo=$ac_try;;
3090 esac
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092   (eval "$ac_try") 2>&5
3093   ac_status=$?
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); }; }; then
3096   ac_cv_prog_cxx_g=yes
3097 else
3098   echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3100
3101         CXXFLAGS=""
3102       cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h.  */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h.  */
3108
3109 int
3110 main ()
3111 {
3112
3113   ;
3114   return 0;
3115 }
3116 _ACEOF
3117 rm -f conftest.$ac_objext
3118 if { (ac_try="$ac_compile"
3119 case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_compile") 2>conftest.er1
3125   ac_status=$?
3126   grep -v '^ *+' conftest.er1 >conftest.err
3127   rm -f conftest.er1
3128   cat conftest.err >&5
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); } &&
3131          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3132   { (case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137   (eval "$ac_try") 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); }; } &&
3141          { ac_try='test -s conftest.$ac_objext'
3142   { (case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147   (eval "$ac_try") 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }; }; then
3151   :
3152 else
3153   echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3157          CXXFLAGS="-g"
3158          cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h.  */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h.  */
3164
3165 int
3166 main ()
3167 {
3168
3169   ;
3170   return 0;
3171 }
3172 _ACEOF
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3175 case "(($ac_try" in
3176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177   *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180   (eval "$ac_compile") 2>conftest.er1
3181   ac_status=$?
3182   grep -v '^ *+' conftest.er1 >conftest.err
3183   rm -f conftest.er1
3184   cat conftest.err >&5
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); } &&
3187          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3188   { (case "(($ac_try" in
3189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190   *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193   (eval "$ac_try") 2>&5
3194   ac_status=$?
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); }; } &&
3197          { ac_try='test -s conftest.$ac_objext'
3198   { (case "(($ac_try" in
3199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200   *) ac_try_echo=$ac_try;;
3201 esac
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203   (eval "$ac_try") 2>&5
3204   ac_status=$?
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); }; }; then
3207   ac_cv_prog_cxx_g=yes
3208 else
3209   echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212
3213 fi
3214
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 fi
3217
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 fi
3220
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3223 fi
3224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3226 if test "$ac_test_CXXFLAGS" = set; then
3227   CXXFLAGS=$ac_save_CXXFLAGS
3228 elif test $ac_cv_prog_cxx_g = yes; then
3229   if test "$GXX" = yes; then
3230     CXXFLAGS="-g -O2"
3231   else
3232     CXXFLAGS="-g"
3233   fi
3234 else
3235   if test "$GXX" = yes; then
3236     CXXFLAGS="-O2"
3237   else
3238     CXXFLAGS=
3239   fi
3240 fi
3241 ac_ext=c
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246
3247 ac_ext=c
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3253 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3254 # On Suns, sometimes $CPP names a directory.
3255 if test -n "$CPP" && test -d "$CPP"; then
3256   CPP=
3257 fi
3258 if test -z "$CPP"; then
3259   if test "${ac_cv_prog_CPP+set}" = set; then
3260   echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262       # Double quotes because CPP needs to be expanded
3263     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3264     do
3265       ac_preproc_ok=false
3266 for ac_c_preproc_warn_flag in '' yes
3267 do
3268   # Use a header file that comes with gcc, so configuring glibc
3269   # with a fresh cross-compiler works.
3270   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3271   # <limits.h> exists even on freestanding compilers.
3272   # On the NeXT, cc -E runs the code through the compiler's parser,
3273   # not just through cpp. "Syntax error" is here to catch this case.
3274   cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280 #ifdef __STDC__
3281 # include <limits.h>
3282 #else
3283 # include <assert.h>
3284 #endif
3285                      Syntax error
3286 _ACEOF
3287 if { (ac_try="$ac_cpp conftest.$ac_ext"
3288 case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3294   ac_status=$?
3295   grep -v '^ *+' conftest.er1 >conftest.err
3296   rm -f conftest.er1
3297   cat conftest.err >&5
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } >/dev/null; then
3300   if test -s conftest.err; then
3301     ac_cpp_err=$ac_c_preproc_warn_flag
3302     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303   else
3304     ac_cpp_err=
3305   fi
3306 else
3307   ac_cpp_err=yes
3308 fi
3309 if test -z "$ac_cpp_err"; then
3310   :
3311 else
3312   echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315   # Broken: fails on valid input.
3316 continue
3317 fi
3318
3319 rm -f conftest.err conftest.$ac_ext
3320
3321   # OK, works on sane cases.  Now check whether nonexistent headers
3322   # can be detected and how.
3323   cat >conftest.$ac_ext <<_ACEOF
3324 /* confdefs.h.  */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h.  */
3329 #include <ac_nonexistent.h>
3330 _ACEOF
3331 if { (ac_try="$ac_cpp conftest.$ac_ext"
3332 case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3338   ac_status=$?
3339   grep -v '^ *+' conftest.er1 >conftest.err
3340   rm -f conftest.er1
3341   cat conftest.err >&5
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); } >/dev/null; then
3344   if test -s conftest.err; then
3345     ac_cpp_err=$ac_c_preproc_warn_flag
3346     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3347   else
3348     ac_cpp_err=
3349   fi
3350 else
3351   ac_cpp_err=yes
3352 fi
3353 if test -z "$ac_cpp_err"; then
3354   # Broken: success on invalid input.
3355 continue
3356 else
3357   echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360   # Passes both tests.
3361 ac_preproc_ok=:
3362 break
3363 fi
3364
3365 rm -f conftest.err conftest.$ac_ext
3366
3367 done
3368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3369 rm -f conftest.err conftest.$ac_ext
3370 if $ac_preproc_ok; then
3371   break
3372 fi
3373
3374     done
3375     ac_cv_prog_CPP=$CPP
3376
3377 fi
3378   CPP=$ac_cv_prog_CPP
3379 else
3380   ac_cv_prog_CPP=$CPP
3381 fi
3382 { echo "$as_me:$LINENO: result: $CPP" >&5
3383 echo "${ECHO_T}$CPP" >&6; }
3384 ac_preproc_ok=false
3385 for ac_c_preproc_warn_flag in '' yes
3386 do
3387   # Use a header file that comes with gcc, so configuring glibc
3388   # with a fresh cross-compiler works.
3389   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3390   # <limits.h> exists even on freestanding compilers.
3391   # On the NeXT, cc -E runs the code through the compiler's parser,
3392   # not just through cpp. "Syntax error" is here to catch this case.
3393   cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h.  */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h.  */
3399 #ifdef __STDC__
3400 # include <limits.h>
3401 #else
3402 # include <assert.h>
3403 #endif
3404                      Syntax error
3405 _ACEOF
3406 if { (ac_try="$ac_cpp conftest.$ac_ext"
3407 case "(($ac_try" in
3408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409   *) ac_try_echo=$ac_try;;
3410 esac
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } >/dev/null; then
3419   if test -s conftest.err; then
3420     ac_cpp_err=$ac_c_preproc_warn_flag
3421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422   else
3423     ac_cpp_err=
3424   fi
3425 else
3426   ac_cpp_err=yes
3427 fi
3428 if test -z "$ac_cpp_err"; then
3429   :
3430 else
3431   echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434   # Broken: fails on valid input.
3435 continue
3436 fi
3437
3438 rm -f conftest.err conftest.$ac_ext
3439
3440   # OK, works on sane cases.  Now check whether nonexistent headers
3441   # can be detected and how.
3442   cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h.  */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h.  */
3448 #include <ac_nonexistent.h>
3449 _ACEOF
3450 if { (ac_try="$ac_cpp conftest.$ac_ext"
3451 case "(($ac_try" in
3452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453   *) ac_try_echo=$ac_try;;
3454 esac
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3457   ac_status=$?
3458   grep -v '^ *+' conftest.er1 >conftest.err
3459   rm -f conftest.er1
3460   cat conftest.err >&5
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); } >/dev/null; then
3463   if test -s conftest.err; then
3464     ac_cpp_err=$ac_c_preproc_warn_flag
3465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3466   else
3467     ac_cpp_err=
3468   fi
3469 else
3470   ac_cpp_err=yes
3471 fi
3472 if test -z "$ac_cpp_err"; then
3473   # Broken: success on invalid input.
3474 continue
3475 else
3476   echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479   # Passes both tests.
3480 ac_preproc_ok=:
3481 break
3482 fi
3483
3484 rm -f conftest.err conftest.$ac_ext
3485
3486 done
3487 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3488 rm -f conftest.err conftest.$ac_ext
3489 if $ac_preproc_ok; then
3490   :
3491 else
3492   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3493 See \`config.log' for more details." >&5
3494 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3495 See \`config.log' for more details." >&2;}
3496    { (exit 1); exit 1; }; }
3497 fi
3498
3499 ac_ext=c
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504
3505
3506 if test "$CXX" = "clang++" ; then
3507   { echo "$as_me:$LINENO: checking whether clang works" >&5
3508 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3509   ac_ext=cpp
3510 ac_cpp='$CXXCPP $CPPFLAGS'
3511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3514
3515
3516 cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h.  */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h.  */
3522 #include <limits>
3523 #if __has_include (<cxxabi.h>)
3524 #include <cxxabi.h>
3525 #endif
3526 #if __has_include (<unwind.h>)
3527 #include <unwind.h>
3528 #endif
3529
3530 int
3531 main ()
3532 {
3533
3534   ;
3535   return 0;
3536 }
3537 _ACEOF
3538 rm -f conftest.$ac_objext
3539 if { (ac_try="$ac_compile"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545   (eval "$ac_compile") 2>conftest.er1
3546   ac_status=$?
3547   grep -v '^ *+' conftest.er1 >conftest.err
3548   rm -f conftest.er1
3549   cat conftest.err >&5
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); } &&
3552          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3553   { (case "(($ac_try" in
3554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555   *) ac_try_echo=$ac_try;;
3556 esac
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558   (eval "$ac_try") 2>&5
3559   ac_status=$?
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); }; } &&
3562          { ac_try='test -s conftest.$ac_objext'
3563   { (case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568   (eval "$ac_try") 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); }; }; then
3572
3573   { echo "$as_me:$LINENO: result: yes" >&5
3574 echo "${ECHO_T}yes" >&6; }
3575
3576 else
3577   echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580
3581   { echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6; }
3583   { { 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
3584 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;}
3585    { (exit 1); exit 1; }; }
3586
3587 fi
3588
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590   ac_ext=c
3591 ac_cpp='$CPP $CPPFLAGS'
3592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595
3596 fi
3597
3598 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3599 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3600 ac_ext=cpp
3601 ac_cpp='$CXXCPP $CPPFLAGS'
3602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3605
3606 llvm_cv_cxx_compiler=unknown
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h.  */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h.  */
3613 #if ! __clang__
3614                                     #error
3615                                     #endif
3616
3617 _ACEOF
3618 rm -f conftest.$ac_objext
3619 if { (ac_try="$ac_compile"
3620 case "(($ac_try" in
3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622   *) ac_try_echo=$ac_try;;
3623 esac
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625   (eval "$ac_compile") 2>conftest.er1
3626   ac_status=$?
3627   grep -v '^ *+' conftest.er1 >conftest.err
3628   rm -f conftest.er1
3629   cat conftest.err >&5
3630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); } &&
3632          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3633   { (case "(($ac_try" in
3634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635   *) ac_try_echo=$ac_try;;
3636 esac
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638   (eval "$ac_try") 2>&5
3639   ac_status=$?
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); }; } &&
3642          { ac_try='test -s conftest.$ac_objext'
3643   { (case "(($ac_try" in
3644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645   *) ac_try_echo=$ac_try;;
3646 esac
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648   (eval "$ac_try") 2>&5
3649   ac_status=$?
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); }; }; then
3652   llvm_cv_cxx_compiler=clang
3653 else
3654   echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3656
3657         cat >conftest.$ac_ext <<_ACEOF
3658 /* confdefs.h.  */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h.  */
3663 #if ! __GNUC__
3664                                                        #error
3665                                                        #endif
3666
3667 _ACEOF
3668 rm -f conftest.$ac_objext
3669 if { (ac_try="$ac_compile"
3670 case "(($ac_try" in
3671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672   *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675   (eval "$ac_compile") 2>conftest.er1
3676   ac_status=$?
3677   grep -v '^ *+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
3679   cat conftest.err >&5
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } &&
3682          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3683   { (case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688   (eval "$ac_try") 2>&5
3689   ac_status=$?
3690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691   (exit $ac_status); }; } &&
3692          { ac_try='test -s conftest.$ac_objext'
3693   { (case "(($ac_try" in
3694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695   *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698   (eval "$ac_try") 2>&5
3699   ac_status=$?
3700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701   (exit $ac_status); }; }; then
3702   llvm_cv_cxx_compiler=gcc
3703 else
3704   echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707
3708 fi
3709
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 fi
3712
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 ac_ext=c
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719
3720 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3721 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3722
3723
3724
3725 if test -d ${srcdir}/projects/test-suite ; then
3726   subdirs="$subdirs projects/test-suite"
3727
3728 fi
3729
3730 if test -d ${srcdir}/projects/llvm-test ; then
3731   subdirs="$subdirs projects/llvm-test"
3732
3733 fi
3734
3735 if test -d ${srcdir}/projects/poolalloc ; then
3736   subdirs="$subdirs projects/poolalloc"
3737
3738 fi
3739
3740 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3741   subdirs="$subdirs projects/llvm-poolalloc"
3742
3743 fi
3744
3745 for i in `ls ${srcdir}/projects`
3746 do
3747   if test -d ${srcdir}/projects/${i} ; then
3748     case ${i} in
3749       safecode)     subdirs="$subdirs projects/safecode"
3750  ;;
3751       compiler-rt)       ;;
3752       test-suite)     ;;
3753       llvm-test)      ;;
3754       poolalloc)      ;;
3755       llvm-poolalloc) ;;
3756       *)
3757         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3758 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3759         ;;
3760     esac
3761   fi
3762 done
3763
3764 # Check whether --enable-polly was given.
3765 if test "${enable_polly+set}" = set; then
3766   enableval=$enable_polly;
3767 else
3768   enableval=default
3769 fi
3770
3771 case "$enableval" in
3772   yes) ENABLE_POLLY=1
3773  ;;
3774   no)  ENABLE_POLLY=0
3775  ;;
3776   default) ENABLE_POLLY=1
3777  ;;
3778   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3779 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3780    { (exit 1); exit 1; }; } ;;
3781 esac
3782
3783
3784 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3785   LLVM_HAS_POLLY=1
3786
3787   subdirs="$subdirs tools/polly"
3788
3789 fi
3790
3791
3792 # Make sure we can run config.sub.
3793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3794   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3795 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3796    { (exit 1); exit 1; }; }
3797
3798 { echo "$as_me:$LINENO: checking build system type" >&5
3799 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3800 if test "${ac_cv_build+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   ac_build_alias=$build_alias
3804 test "x$ac_build_alias" = x &&
3805   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3806 test "x$ac_build_alias" = x &&
3807   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3808 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3809    { (exit 1); exit 1; }; }
3810 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3811   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3812 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3813    { (exit 1); exit 1; }; }
3814
3815 fi
3816 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3817 echo "${ECHO_T}$ac_cv_build" >&6; }
3818 case $ac_cv_build in
3819 *-*-*) ;;
3820 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3821 echo "$as_me: error: invalid value of canonical build" >&2;}
3822    { (exit 1); exit 1; }; };;
3823 esac
3824 build=$ac_cv_build
3825 ac_save_IFS=$IFS; IFS='-'
3826 set x $ac_cv_build
3827 shift
3828 build_cpu=$1
3829 build_vendor=$2
3830 shift; shift
3831 # Remember, the first character of IFS is used to create $*,
3832 # except with old shells:
3833 build_os=$*
3834 IFS=$ac_save_IFS
3835 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3836
3837
3838 { echo "$as_me:$LINENO: checking host system type" >&5
3839 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3840 if test "${ac_cv_host+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   if test "x$host_alias" = x; then
3844   ac_cv_host=$ac_cv_build
3845 else
3846   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3847     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3848 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3849    { (exit 1); exit 1; }; }
3850 fi
3851
3852 fi
3853 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3854 echo "${ECHO_T}$ac_cv_host" >&6; }
3855 case $ac_cv_host in
3856 *-*-*) ;;
3857 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3858 echo "$as_me: error: invalid value of canonical host" >&2;}
3859    { (exit 1); exit 1; }; };;
3860 esac
3861 host=$ac_cv_host
3862 ac_save_IFS=$IFS; IFS='-'
3863 set x $ac_cv_host
3864 shift
3865 host_cpu=$1
3866 host_vendor=$2
3867 shift; shift
3868 # Remember, the first character of IFS is used to create $*,
3869 # except with old shells:
3870 host_os=$*
3871 IFS=$ac_save_IFS
3872 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3873
3874
3875 { echo "$as_me:$LINENO: checking target system type" >&5
3876 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3877 if test "${ac_cv_target+set}" = set; then
3878   echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880   if test "x$target_alias" = x; then
3881   ac_cv_target=$ac_cv_host
3882 else
3883   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3884     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3885 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3886    { (exit 1); exit 1; }; }
3887 fi
3888
3889 fi
3890 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3891 echo "${ECHO_T}$ac_cv_target" >&6; }
3892 case $ac_cv_target in
3893 *-*-*) ;;
3894 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3895 echo "$as_me: error: invalid value of canonical target" >&2;}
3896    { (exit 1); exit 1; }; };;
3897 esac
3898 target=$ac_cv_target
3899 ac_save_IFS=$IFS; IFS='-'
3900 set x $ac_cv_target
3901 shift
3902 target_cpu=$1
3903 target_vendor=$2
3904 shift; shift
3905 # Remember, the first character of IFS is used to create $*,
3906 # except with old shells:
3907 target_os=$*
3908 IFS=$ac_save_IFS
3909 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3910
3911
3912 # The aliases save the names the user supplied, while $host etc.
3913 # will get canonicalized.
3914 test -n "$target_alias" &&
3915   test "$program_prefix$program_suffix$program_transform_name" = \
3916     NONENONEs,x,x, &&
3917   program_prefix=${target_alias}-
3918
3919 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3920 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3921 if test "${llvm_cv_os_type+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   case $host in
3925   *-*-aix*)
3926     llvm_cv_link_all_option="-Wl,--whole-archive"
3927     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3928     llvm_cv_os_type="AIX"
3929     llvm_cv_platform_type="Unix" ;;
3930   *-*-irix*)
3931     llvm_cv_link_all_option="-Wl,--whole-archive"
3932     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3933     llvm_cv_os_type="IRIX"
3934     llvm_cv_platform_type="Unix" ;;
3935   *-*-cygwin*)
3936     llvm_cv_link_all_option="-Wl,--whole-archive"
3937     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3938     llvm_cv_os_type="Cygwin"
3939     llvm_cv_platform_type="Unix" ;;
3940   *-*-darwin*)
3941     llvm_cv_link_all_option="-Wl,-all_load"
3942     llvm_cv_no_link_all_option="-Wl,-noall_load"
3943     llvm_cv_os_type="Darwin"
3944     llvm_cv_platform_type="Unix" ;;
3945   *-*-minix*)
3946     llvm_cv_link_all_option="-Wl,-all_load"
3947     llvm_cv_no_link_all_option="-Wl,-noall_load"
3948     llvm_cv_os_type="Minix"
3949     llvm_cv_platform_type="Unix" ;;
3950   *-*-freebsd*)
3951     llvm_cv_link_all_option="-Wl,--whole-archive"
3952     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3953     llvm_cv_os_type="FreeBSD"
3954     llvm_cv_platform_type="Unix" ;;
3955   *-*-kfreebsd-gnu)
3956     llvm_cv_link_all_option="-Wl,--whole-archive"
3957     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3958     llvm_cv_os_type="GNU/kFreeBSD"
3959     llvm_cv_platform_type="Unix" ;;
3960   *-*-openbsd*)
3961     llvm_cv_link_all_option="-Wl,--whole-archive"
3962     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3963     llvm_cv_os_type="OpenBSD"
3964     llvm_cv_platform_type="Unix" ;;
3965   *-*-netbsd*)
3966     llvm_cv_link_all_option="-Wl,--whole-archive"
3967     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3968     llvm_cv_os_type="NetBSD"
3969     llvm_cv_platform_type="Unix" ;;
3970   *-*-dragonfly*)
3971     llvm_cv_link_all_option="-Wl,--whole-archive"
3972     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3973     llvm_cv_os_type="DragonFly"
3974     llvm_cv_platform_type="Unix" ;;
3975   *-*-bitrig*)
3976     llvm_cv_link_all_option="-Wl,--whole-archive"
3977     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3978     llvm_cv_os_type="Bitrig"
3979     llvm_cv_platform_type="Unix" ;;
3980   *-*-hpux*)
3981     llvm_cv_link_all_option="-Wl,--whole-archive"
3982     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3983     llvm_cv_os_type="HP-UX"
3984     llvm_cv_platform_type="Unix" ;;
3985   *-*-interix*)
3986     llvm_cv_link_all_option="-Wl,--whole-archive"
3987     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3988     llvm_cv_os_type="Interix"
3989     llvm_cv_platform_type="Unix" ;;
3990   *-*-linux*)
3991     llvm_cv_link_all_option="-Wl,--whole-archive"
3992     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3993     llvm_cv_os_type="Linux"
3994     llvm_cv_platform_type="Unix" ;;
3995   *-*-gnu*)
3996     llvm_cv_link_all_option="-Wl,--whole-archive"
3997     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3998     llvm_cv_os_type="GNU"
3999     llvm_cv_platform_type="Unix" ;;
4000   *-*-solaris*)
4001     llvm_cv_link_all_option="-Wl,-z,allextract"
4002     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4003     llvm_cv_os_type="SunOS"
4004     llvm_cv_platform_type="Unix" ;;
4005   *-*-win32*)
4006     llvm_cv_link_all_option="-Wl,--whole-archive"
4007     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4008     llvm_cv_os_type="Win32"
4009     llvm_cv_platform_type="Win32" ;;
4010   *-*-mingw*)
4011     llvm_cv_link_all_option="-Wl,--whole-archive"
4012     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4013     llvm_cv_os_type="MingW"
4014     llvm_cv_platform_type="Win32" ;;
4015   *-*-haiku*)
4016     llvm_cv_link_all_option="-Wl,--whole-archive"
4017     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4018     llvm_cv_os_type="Haiku"
4019     llvm_cv_platform_type="Unix" ;;
4020   *-unknown-eabi*)
4021     llvm_cv_link_all_option="-Wl,--whole-archive"
4022     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4023     llvm_cv_os_type="Freestanding"
4024     llvm_cv_platform_type="Unix" ;;
4025   *-unknown-elf*)
4026     llvm_cv_link_all_option="-Wl,--whole-archive"
4027     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4028     llvm_cv_os_type="Freestanding"
4029     llvm_cv_platform_type="Unix" ;;
4030   *)
4031     llvm_cv_link_all_option=""
4032     llvm_cv_no_link_all_option=""
4033     llvm_cv_os_type="Unknown"
4034     llvm_cv_platform_type="Unknown" ;;
4035 esac
4036 fi
4037 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4038 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4039
4040 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4041 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4042 if test "${llvm_cv_target_os_type+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   case $target in
4046   *-*-aix*)
4047     llvm_cv_target_os_type="AIX" ;;
4048   *-*-irix*)
4049     llvm_cv_target_os_type="IRIX" ;;
4050   *-*-cygwin*)
4051     llvm_cv_target_os_type="Cygwin" ;;
4052   *-*-darwin*)
4053     llvm_cv_target_os_type="Darwin" ;;
4054   *-*-minix*)
4055     llvm_cv_target_os_type="Minix" ;;
4056   *-*-freebsd*)
4057     llvm_cv_target_os_type="FreeBSD" ;;
4058   *-*-kfreebsd-gnu)
4059     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4060   *-*-openbsd*)
4061     llvm_cv_target_os_type="OpenBSD" ;;
4062   *-*-netbsd*)
4063     llvm_cv_target_os_type="NetBSD" ;;
4064   *-*-dragonfly*)
4065     llvm_cv_target_os_type="DragonFly" ;;
4066   *-*-bitrig*)
4067     llvm_cv_target_os_type="Bitrig" ;;
4068   *-*-hpux*)
4069     llvm_cv_target_os_type="HP-UX" ;;
4070   *-*-interix*)
4071     llvm_cv_target_os_type="Interix" ;;
4072   *-*-linux*)
4073     llvm_cv_target_os_type="Linux" ;;
4074   *-*-gnu*)
4075     llvm_cv_target_os_type="GNU" ;;
4076   *-*-solaris*)
4077     llvm_cv_target_os_type="SunOS" ;;
4078   *-*-win32*)
4079     llvm_cv_target_os_type="Win32" ;;
4080   *-*-mingw*)
4081     llvm_cv_target_os_type="MingW" ;;
4082   *-*-haiku*)
4083     llvm_cv_target_os_type="Haiku" ;;
4084   *-*-rtems*)
4085     llvm_cv_target_os_type="RTEMS" ;;
4086   *-*-nacl*)
4087     llvm_cv_target_os_type="NativeClient" ;;
4088   *-unknown-eabi*)
4089     llvm_cv_target_os_type="Freestanding" ;;
4090   *-*-ps4)
4091     llvm_cv_target_os_type="PS4" ;;
4092   *)
4093     llvm_cv_target_os_type="Unknown" ;;
4094 esac
4095 fi
4096 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4097 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4098
4099 if test "$llvm_cv_os_type" = "Unknown" ; then
4100   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4101 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4102    { (exit 1); exit 1; }; }
4103 fi
4104
4105 OS=$llvm_cv_os_type
4106
4107 HOST_OS=$llvm_cv_os_type
4108
4109 TARGET_OS=$llvm_cv_target_os_type
4110
4111
4112 LINKALL=$llvm_cv_link_all_option
4113
4114 NOLINKALL=$llvm_cv_no_link_all_option
4115
4116
4117 case $llvm_cv_platform_type in
4118   Unix)
4119
4120 cat >>confdefs.h <<\_ACEOF
4121 #define LLVM_ON_UNIX 1
4122 _ACEOF
4123
4124     LLVM_ON_UNIX=1
4125
4126     LLVM_ON_WIN32=0
4127
4128     ;;
4129   Win32)
4130
4131 cat >>confdefs.h <<\_ACEOF
4132 #define LLVM_ON_WIN32 1
4133 _ACEOF
4134
4135     LLVM_ON_UNIX=0
4136
4137     LLVM_ON_WIN32=1
4138
4139     ;;
4140 esac
4141
4142 { echo "$as_me:$LINENO: checking target architecture" >&5
4143 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4144 if test "${llvm_cv_target_arch+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   case $target in
4148   i?86-*)                 llvm_cv_target_arch="x86" ;;
4149   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4150   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4151   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4152   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4153   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4154   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4155   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4156   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4157   xcore-*)                llvm_cv_target_arch="XCore" ;;
4158   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4159   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4160   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4161   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4162   *)                      llvm_cv_target_arch="Unknown" ;;
4163 esac
4164 fi
4165 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4166 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4167
4168 if test "$llvm_cv_target_arch" = "Unknown" ; then
4169   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4170 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4171 fi
4172
4173 case "$llvm_cv_target_arch" in
4174     x86)     LLVM_NATIVE_ARCH="X86" ;;
4175     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4176     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4177 esac
4178
4179 ARCH=$llvm_cv_target_arch
4180
4181 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4182
4183
4184 case $host in
4185   i?86-*)                 host_arch="x86" ;;
4186   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4187   sparc*-*)               host_arch="Sparc" ;;
4188   powerpc*-*)             host_arch="PowerPC" ;;
4189   arm64*-*)               host_arch="AArch64" ;;
4190   arm*-*)                 host_arch="ARM" ;;
4191   aarch64*-*)             host_arch="AArch64" ;;
4192   mips-* | mips64-*)      host_arch="Mips" ;;
4193   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4194   xcore-*)                host_arch="XCore" ;;
4195   msp430-*)               host_arch="MSP430" ;;
4196   hexagon-*)              host_arch="Hexagon" ;;
4197   s390x-*)                host_arch="SystemZ" ;;
4198   *)                      host_arch="Unknown" ;;
4199 esac
4200
4201 if test "$host_arch" = "Unknown" ; then
4202   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4203 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4204 fi
4205
4206 HOST_ARCH=$host_arch
4207
4208
4209 if test "$cross_compiling" = yes; then
4210   LLVM_CROSS_COMPILING=1
4211
4212
4213 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4214 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4215 if test "${ac_cv_build_exeext+set}" = set; then
4216   echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4219   ac_cv_build_exeext=.exe
4220 else
4221   ac_build_prefix=${build_alias}-
4222
4223   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4224 set dummy ${ac_build_prefix}gcc; ac_word=$2
4225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4227 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   if test -n "$BUILD_CC"; then
4231   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236   IFS=$as_save_IFS
4237   test -z "$as_dir" && as_dir=.
4238   for ac_exec_ext in '' $ac_executable_extensions; do
4239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4240     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242     break 2
4243   fi
4244 done
4245 done
4246 IFS=$as_save_IFS
4247
4248 fi
4249 fi
4250 BUILD_CC=$ac_cv_prog_BUILD_CC
4251 if test -n "$BUILD_CC"; then
4252   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4253 echo "${ECHO_T}$BUILD_CC" >&6; }
4254 else
4255   { echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6; }
4257 fi
4258
4259
4260   if test -z "$BUILD_CC"; then
4261      # Extract the first word of "gcc", so it can be a program name with args.
4262 set dummy gcc; ac_word=$2
4263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4265 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   if test -n "$BUILD_CC"; then
4269   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274   IFS=$as_save_IFS
4275   test -z "$as_dir" && as_dir=.
4276   for ac_exec_ext in '' $ac_executable_extensions; do
4277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4278     ac_cv_prog_BUILD_CC="gcc"
4279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280     break 2
4281   fi
4282 done
4283 done
4284 IFS=$as_save_IFS
4285
4286 fi
4287 fi
4288 BUILD_CC=$ac_cv_prog_BUILD_CC
4289 if test -n "$BUILD_CC"; then
4290   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4291 echo "${ECHO_T}$BUILD_CC" >&6; }
4292 else
4293   { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4295 fi
4296
4297
4298      if test -z "$BUILD_CC"; then
4299        # Extract the first word of "cc", so it can be a program name with args.
4300 set dummy cc; ac_word=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   if test -n "$BUILD_CC"; then
4307   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4308 else
4309   ac_prog_rejected=no
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313   IFS=$as_save_IFS
4314   test -z "$as_dir" && as_dir=.
4315   for ac_exec_ext in '' $ac_executable_extensions; do
4316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4317     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318        ac_prog_rejected=yes
4319        continue
4320      fi
4321     ac_cv_prog_BUILD_CC="cc"
4322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323     break 2
4324   fi
4325 done
4326 done
4327 IFS=$as_save_IFS
4328
4329 if test $ac_prog_rejected = yes; then
4330   # We found a bogon in the path, so make sure we never use it.
4331   set dummy $ac_cv_prog_BUILD_CC
4332   shift
4333   if test $# != 0; then
4334     # We chose a different compiler from the bogus one.
4335     # However, it has the same basename, so the bogon will be chosen
4336     # first if we set BUILD_CC to just the basename; use the full file name.
4337     shift
4338     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4339   fi
4340 fi
4341 fi
4342 fi
4343 BUILD_CC=$ac_cv_prog_BUILD_CC
4344 if test -n "$BUILD_CC"; then
4345   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4346 echo "${ECHO_T}$BUILD_CC" >&6; }
4347 else
4348   { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4350 fi
4351
4352
4353      fi
4354   fi
4355   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4356 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4357    { (exit 1); exit 1; }; }
4358   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4359   rm -f conftest*
4360   echo 'int main () { return 0; }' > conftest.$ac_ext
4361   ac_cv_build_exeext=
4362   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4363   (eval $ac_build_link) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; then
4367     for file in conftest.*; do
4368       case $file in
4369       *.c | *.o | *.obj | *.dSYM) ;;
4370       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4371       esac
4372     done
4373   else
4374     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4375 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4376    { (exit 1); exit 1; }; }
4377   fi
4378   rm -f conftest*
4379   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4380 fi
4381 fi
4382
4383 BUILD_EXEEXT=""
4384 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4385 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4386 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4387 ac_build_exeext=$BUILD_EXEEXT
4388
4389   ac_build_prefix=${build_alias}-
4390   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4391 set dummy ${ac_build_prefix}g++; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   if test -n "$BUILD_CXX"; then
4398   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4402 do
4403   IFS=$as_save_IFS
4404   test -z "$as_dir" && as_dir=.
4405   for ac_exec_ext in '' $ac_executable_extensions; do
4406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409     break 2
4410   fi
4411 done
4412 done
4413 IFS=$as_save_IFS
4414
4415 fi
4416 fi
4417 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4418 if test -n "$BUILD_CXX"; then
4419   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4420 echo "${ECHO_T}$BUILD_CXX" >&6; }
4421 else
4422   { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4424 fi
4425
4426
4427   if test -z "$BUILD_CXX"; then
4428      # Extract the first word of "g++", so it can be a program name with args.
4429 set dummy g++; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   if test -n "$BUILD_CXX"; then
4436   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441   IFS=$as_save_IFS
4442   test -z "$as_dir" && as_dir=.
4443   for ac_exec_ext in '' $ac_executable_extensions; do
4444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445     ac_cv_prog_BUILD_CXX="g++"
4446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447     break 2
4448   fi
4449 done
4450 done
4451 IFS=$as_save_IFS
4452
4453 fi
4454 fi
4455 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4456 if test -n "$BUILD_CXX"; then
4457   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4458 echo "${ECHO_T}$BUILD_CXX" >&6; }
4459 else
4460   { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4462 fi
4463
4464
4465      if test -z "$BUILD_CXX"; then
4466        # Extract the first word of "c++", so it can be a program name with args.
4467 set dummy c++; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   if test -n "$BUILD_CXX"; then
4474   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4475 else
4476   ac_prog_rejected=no
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482   for ac_exec_ext in '' $ac_executable_extensions; do
4483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4485        ac_prog_rejected=yes
4486        continue
4487      fi
4488     ac_cv_prog_BUILD_CXX="c++"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494 IFS=$as_save_IFS
4495
4496 if test $ac_prog_rejected = yes; then
4497   # We found a bogon in the path, so make sure we never use it.
4498   set dummy $ac_cv_prog_BUILD_CXX
4499   shift
4500   if test $# != 0; then
4501     # We chose a different compiler from the bogus one.
4502     # However, it has the same basename, so the bogon will be chosen
4503     # first if we set BUILD_CXX to just the basename; use the full file name.
4504     shift
4505     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4506   fi
4507 fi
4508 fi
4509 fi
4510 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4511 if test -n "$BUILD_CXX"; then
4512   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4513 echo "${ECHO_T}$BUILD_CXX" >&6; }
4514 else
4515   { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4517 fi
4518
4519
4520      fi
4521   fi
4522 else
4523   LLVM_CROSS_COMPILING=0
4524
4525 fi
4526
4527 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4528   cvsbuild="yes"
4529   optimize="no"
4530   CVSBUILD=CVSBUILD=1
4531
4532 else
4533   cvsbuild="no"
4534   optimize="yes"
4535 fi
4536
4537
4538 # Check whether --enable-libcpp was given.
4539 if test "${enable_libcpp+set}" = set; then
4540   enableval=$enable_libcpp;
4541 else
4542   enableval=default
4543 fi
4544
4545 case "$enableval" in
4546   yes) ENABLE_LIBCPP=1
4547  ;;
4548   no)  ENABLE_LIBCPP=0
4549  ;;
4550   default) ENABLE_LIBCPP=0
4551 ;;
4552   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4553 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4554    { (exit 1); exit 1; }; } ;;
4555 esac
4556
4557 # Check whether --enable-compiler-version-checks was given.
4558 if test "${enable_compiler_version_checks+set}" = set; then
4559   enableval=$enable_compiler_version_checks;
4560 else
4561   enableval=default
4562 fi
4563
4564 case "$enableval" in
4565   no)
4566     ;;
4567   yes|default)
4568     ac_ext=cpp
4569 ac_cpp='$CXXCPP $CPPFLAGS'
4570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4573
4574     case "$llvm_cv_cxx_compiler" in
4575     clang)
4576       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4577 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4578       cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h.  */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h.  */
4584
4585 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4586 #error This version of Clang is too old to build LLVM
4587 #endif
4588
4589 _ACEOF
4590 rm -f conftest.$ac_objext
4591 if { (ac_try="$ac_compile"
4592 case "(($ac_try" in
4593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594   *) ac_try_echo=$ac_try;;
4595 esac
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597   (eval "$ac_compile") 2>conftest.er1
4598   ac_status=$?
4599   grep -v '^ *+' conftest.er1 >conftest.err
4600   rm -f conftest.er1
4601   cat conftest.err >&5
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); } &&
4604          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
4614          { ac_try='test -s conftest.$ac_objext'
4615   { (case "(($ac_try" in
4616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617   *) ac_try_echo=$ac_try;;
4618 esac
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620   (eval "$ac_try") 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; }; then
4624   { echo "$as_me:$LINENO: result: yes" >&5
4625 echo "${ECHO_T}yes" >&6; }
4626 else
4627   echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630         { echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6; }
4632            { { echo "$as_me:$LINENO: error:
4633 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4634 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4635 bypass these sanity checks." >&5
4636 echo "$as_me: error:
4637 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4638 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4639 bypass these sanity checks." >&2;}
4640    { (exit 1); exit 1; }; }
4641 fi
4642
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644
4645                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4646         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4647 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4648         llvm_cv_old_cxxflags="$CXXFLAGS"
4649         CXXFLAGS="$CXXFLAGS -std=c++0x"
4650         cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656
4657 #include <atomic>
4658 std::atomic<float> x(0.0f);
4659 int main() { return (float)x; }
4660
4661 _ACEOF
4662 rm -f conftest.$ac_objext conftest$ac_exeext
4663 if { (ac_try="$ac_link"
4664 case "(($ac_try" in
4665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666   *) ac_try_echo=$ac_try;;
4667 esac
4668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4669   (eval "$ac_link") 2>conftest.er1
4670   ac_status=$?
4671   grep -v '^ *+' conftest.er1 >conftest.err
4672   rm -f conftest.er1
4673   cat conftest.err >&5
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); } &&
4676          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
4686          { ac_try='test -s conftest$ac_exeext'
4687   { (case "(($ac_try" in
4688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689   *) ac_try_echo=$ac_try;;
4690 esac
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692   (eval "$ac_try") 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); }; }; then
4696   { echo "$as_me:$LINENO: result: yes" >&5
4697 echo "${ECHO_T}yes" >&6; }
4698 else
4699   echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702         { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4704              { { echo "$as_me:$LINENO: error:
4705 We detected a missing feature in the standard C++ library that was known to be
4706 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4707 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4708 than 4.7. You will need to update your system and ensure Clang uses the newer
4709 standard library.
4710
4711 If this error is incorrect or you need to force things to work, you may pass
4712 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4713 echo "$as_me: error:
4714 We detected a missing feature in the standard C++ library that was known to be
4715 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4716 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4717 than 4.7. You will need to update your system and ensure Clang uses the newer
4718 standard library.
4719
4720 If this error is incorrect or you need to force things to work, you may pass
4721 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4722    { (exit 1); exit 1; }; }
4723 fi
4724
4725 rm -f core conftest.err conftest.$ac_objext \
4726       conftest$ac_exeext conftest.$ac_ext
4727         CXXFLAGS="$llvm_cv_old_cxxflags"
4728       fi
4729       ;;
4730     gcc)
4731       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4732 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4733       cat >conftest.$ac_ext <<_ACEOF
4734 /* confdefs.h.  */
4735 _ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h.  */
4739
4740 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4741 #error This version of GCC is too old to build LLVM
4742 #endif
4743
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (ac_try="$ac_compile"
4747 case "(($ac_try" in
4748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749   *) ac_try_echo=$ac_try;;
4750 esac
4751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4752   (eval "$ac_compile") 2>conftest.er1
4753   ac_status=$?
4754   grep -v '^ *+' conftest.er1 >conftest.err
4755   rm -f conftest.er1
4756   cat conftest.err >&5
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); } &&
4759          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
4769          { ac_try='test -s conftest.$ac_objext'
4770   { (case "(($ac_try" in
4771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772   *) ac_try_echo=$ac_try;;
4773 esac
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775   (eval "$ac_try") 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; }; then
4779   { echo "$as_me:$LINENO: result: yes" >&5
4780 echo "${ECHO_T}yes" >&6; }
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785         { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4787            { { echo "$as_me:$LINENO: error:
4788 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4789 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4790 bypass these sanity checks." >&5
4791 echo "$as_me: error:
4792 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4793 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4794 bypass these sanity checks." >&2;}
4795    { (exit 1); exit 1; }; }
4796 fi
4797
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799       ;;
4800     unknown)
4801       ;;
4802     esac
4803     ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809     ;;
4810   *)
4811     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4812 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4813    { (exit 1); exit 1; }; }
4814     ;;
4815 esac
4816
4817 # Check whether --enable-cxx1y was given.
4818 if test "${enable_cxx1y+set}" = set; then
4819   enableval=$enable_cxx1y;
4820 else
4821   enableval=default
4822 fi
4823
4824 case "$enableval" in
4825   yes) ENABLE_CXX1Y=1
4826  ;;
4827   no)  ENABLE_CXX1Y=0
4828  ;;
4829   default) ENABLE_CXX1Y=0
4830 ;;
4831   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4832 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4833    { (exit 1); exit 1; }; } ;;
4834 esac
4835
4836 # Check whether --enable-split-dwarf was given.
4837 if test "${enable_split_dwarf+set}" = set; then
4838   enableval=$enable_split_dwarf;
4839 else
4840   enableval=default
4841 fi
4842
4843 case "$enableval" in
4844   yes) ENABLE_SPLIT_DWARF=1
4845  ;;
4846   no)  ENABLE_SPLIT_DWARF=0
4847  ;;
4848   default) ENABLE_SPLIT_DWARF=0
4849 ;;
4850   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4852    { (exit 1); exit 1; }; } ;;
4853 esac
4854
4855 clang_arcmt="yes"
4856 # Check whether --enable-clang-arcmt was given.
4857 if test "${enable_clang_arcmt+set}" = set; then
4858   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4859 else
4860   enableval="yes"
4861 fi
4862
4863 case "$enableval" in
4864   yes) ENABLE_CLANG_ARCMT=1
4865  ;;
4866   no)  ENABLE_CLANG_ARCMT=0
4867  ;;
4868   default) ENABLE_CLANG_ARCMT=1
4869 ;;
4870   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4872    { (exit 1); exit 1; }; } ;;
4873 esac
4874
4875 clang_plugin_support="yes"
4876 # Check whether --enable-clang-plugin-support was given.
4877 if test "${enable_clang_plugin_support+set}" = set; then
4878   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4879 else
4880   enableval="yes"
4881 fi
4882
4883 case "$enableval" in
4884   yes) CLANG_PLUGIN_SUPPORT=1
4885  ;;
4886   no)  CLANG_PLUGIN_SUPPORT=0
4887  ;;
4888   default) CLANG_PLUGIN_SUPPORT=1
4889 ;;
4890   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4891 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4892    { (exit 1); exit 1; }; } ;;
4893 esac
4894
4895 clang_static_analyzer="yes"
4896 # Check whether --enable-clang-static-analyzer was given.
4897 if test "${enable_clang_static_analyzer+set}" = set; then
4898   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4899 else
4900   enableval="yes"
4901 fi
4902
4903 case "$enableval" in
4904   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4905  ;;
4906   no)
4907     if test ${clang_arcmt} != "no" ; then
4908       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4909 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4910    { (exit 1); exit 1; }; }
4911     fi
4912     ENABLE_CLANG_STATIC_ANALYZER=0
4913
4914     ;;
4915   default) ENABLE_CLANG_STATIC_ANALYZER=1
4916 ;;
4917   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4918 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4919    { (exit 1); exit 1; }; } ;;
4920 esac
4921
4922 # Check whether --enable-optimized was given.
4923 if test "${enable_optimized+set}" = set; then
4924   enableval=$enable_optimized;
4925 else
4926   enableval=$optimize
4927 fi
4928
4929 if test ${enableval} = "no" ; then
4930   ENABLE_OPTIMIZED=
4931
4932 else
4933   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4934
4935 fi
4936
4937 # Check whether --enable-profiling was given.
4938 if test "${enable_profiling+set}" = set; then
4939   enableval=$enable_profiling;
4940 else
4941   enableval="no"
4942 fi
4943
4944 if test ${enableval} = "no" ; then
4945   ENABLE_PROFILING=
4946
4947 else
4948   ENABLE_PROFILING=ENABLE_PROFILING=1
4949
4950 fi
4951
4952 # Check whether --enable-assertions was given.
4953 if test "${enable_assertions+set}" = set; then
4954   enableval=$enable_assertions;
4955 else
4956   enableval="yes"
4957 fi
4958
4959 if test ${enableval} = "yes" ; then
4960   DISABLE_ASSERTIONS=
4961
4962 else
4963   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4964
4965 fi
4966
4967 # Check whether --enable-werror was given.
4968 if test "${enable_werror+set}" = set; then
4969   enableval=$enable_werror;
4970 else
4971   enableval="no"
4972 fi
4973
4974 case "$enableval" in
4975   yes) ENABLE_WERROR=1
4976  ;;
4977   no)  ENABLE_WERROR=0
4978  ;;
4979   default) ENABLE_WERROR=0
4980 ;;
4981   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4982 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4983    { (exit 1); exit 1; }; } ;;
4984 esac
4985
4986 # Check whether --enable-expensive-checks was given.
4987 if test "${enable_expensive_checks+set}" = set; then
4988   enableval=$enable_expensive_checks;
4989 else
4990   enableval="no"
4991 fi
4992
4993 if test ${enableval} = "yes" ; then
4994   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4995
4996   EXPENSIVE_CHECKS=yes
4997
4998 else
4999   ENABLE_EXPENSIVE_CHECKS=
5000
5001   EXPENSIVE_CHECKS=no
5002
5003 fi
5004
5005 # Check whether --enable-debug-runtime was given.
5006 if test "${enable_debug_runtime+set}" = set; then
5007   enableval=$enable_debug_runtime;
5008 else
5009   enableval=no
5010 fi
5011
5012 if test ${enableval} = "no" ; then
5013   DEBUG_RUNTIME=
5014
5015 else
5016   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5017
5018 fi
5019
5020 # Check whether --enable-debug-symbols was given.
5021 if test "${enable_debug_symbols+set}" = set; then
5022   enableval=$enable_debug_symbols;
5023 else
5024   enableval=no
5025 fi
5026
5027 if test ${enableval} = "no" ; then
5028   DEBUG_SYMBOLS=
5029
5030 else
5031   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5032
5033 fi
5034
5035 # Check whether --enable-keep-symbols was given.
5036 if test "${enable_keep_symbols+set}" = set; then
5037   enableval=$enable_keep_symbols;
5038 else
5039   enableval=no
5040 fi
5041
5042 if test ${enableval} = "no" ; then
5043   KEEP_SYMBOLS=
5044
5045 else
5046   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5047
5048 fi
5049
5050 # Check whether --enable-jit was given.
5051 if test "${enable_jit+set}" = set; then
5052   enableval=$enable_jit;
5053 else
5054   enableval=default
5055 fi
5056
5057 if test ${enableval} = "no"
5058 then
5059   JIT=
5060
5061 else
5062   case "$llvm_cv_target_arch" in
5063     x86)         TARGET_HAS_JIT=1
5064  ;;
5065     Sparc)       TARGET_HAS_JIT=0
5066  ;;
5067     PowerPC)     TARGET_HAS_JIT=1
5068  ;;
5069     x86_64)      TARGET_HAS_JIT=1
5070  ;;
5071     ARM)         TARGET_HAS_JIT=1
5072  ;;
5073     Mips)        TARGET_HAS_JIT=1
5074  ;;
5075     XCore)       TARGET_HAS_JIT=0
5076  ;;
5077     MSP430)      TARGET_HAS_JIT=0
5078  ;;
5079     Hexagon)     TARGET_HAS_JIT=0
5080  ;;
5081     NVPTX)       TARGET_HAS_JIT=0
5082  ;;
5083     SystemZ)     TARGET_HAS_JIT=1
5084  ;;
5085     *)           TARGET_HAS_JIT=0
5086  ;;
5087   esac
5088 fi
5089
5090 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5091 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5092
5093
5094 # Check whether --enable-docs was given.
5095 if test "${enable_docs+set}" = set; then
5096   enableval=$enable_docs;
5097 else
5098   enableval=default
5099 fi
5100
5101 case "$enableval" in
5102   yes) ENABLE_DOCS=1
5103  ;;
5104   no)  ENABLE_DOCS=0
5105  ;;
5106   default) ENABLE_DOCS=1
5107  ;;
5108   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5109 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5110    { (exit 1); exit 1; }; } ;;
5111 esac
5112
5113 # Check whether --enable-doxygen was given.
5114 if test "${enable_doxygen+set}" = set; then
5115   enableval=$enable_doxygen;
5116 else
5117   enableval=default
5118 fi
5119
5120 case "$enableval" in
5121   yes) ENABLE_DOXYGEN=1
5122  ;;
5123   no)  ENABLE_DOXYGEN=0
5124  ;;
5125   default) ENABLE_DOXYGEN=0
5126  ;;
5127   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5128 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5129    { (exit 1); exit 1; }; } ;;
5130 esac
5131
5132 # Check whether --enable-threads was given.
5133 if test "${enable_threads+set}" = set; then
5134   enableval=$enable_threads;
5135 else
5136   enableval=default
5137 fi
5138
5139 case "$enableval" in
5140   yes) LLVM_ENABLE_THREADS=1
5141  ;;
5142   no)  LLVM_ENABLE_THREADS=0
5143  ;;
5144   default) LLVM_ENABLE_THREADS=1
5145  ;;
5146   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5147 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5148    { (exit 1); exit 1; }; } ;;
5149 esac
5150
5151 cat >>confdefs.h <<_ACEOF
5152 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5153 _ACEOF
5154
5155
5156 # Check whether --enable-pthreads was given.
5157 if test "${enable_pthreads+set}" = set; then
5158   enableval=$enable_pthreads;
5159 else
5160   enableval=default
5161 fi
5162
5163 case "$enableval" in
5164   yes) ENABLE_PTHREADS=1
5165  ;;
5166   no)  ENABLE_PTHREADS=0
5167  ;;
5168   default) ENABLE_PTHREADS=1
5169  ;;
5170   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5172    { (exit 1); exit 1; }; } ;;
5173 esac
5174
5175 # Check whether --enable-zlib was given.
5176 if test "${enable_zlib+set}" = set; then
5177   enableval=$enable_zlib;
5178 else
5179   enableval=default
5180 fi
5181
5182 case "$enableval" in
5183   yes) LLVM_ENABLE_ZLIB=1
5184  ;;
5185   no)  LLVM_ENABLE_ZLIB=0
5186  ;;
5187   default) LLVM_ENABLE_ZLIB=1
5188  ;;
5189   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5191    { (exit 1); exit 1; }; } ;;
5192 esac
5193
5194 cat >>confdefs.h <<_ACEOF
5195 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5196 _ACEOF
5197
5198
5199 # Check whether --enable-pic was given.
5200 if test "${enable_pic+set}" = set; then
5201   enableval=$enable_pic;
5202 else
5203   enableval=default
5204 fi
5205
5206 case "$enableval" in
5207   yes) ENABLE_PIC=1
5208  ;;
5209   no)  ENABLE_PIC=0
5210  ;;
5211   default) ENABLE_PIC=1
5212  ;;
5213   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5215    { (exit 1); exit 1; }; } ;;
5216 esac
5217
5218 cat >>confdefs.h <<_ACEOF
5219 #define ENABLE_PIC $ENABLE_PIC
5220 _ACEOF
5221
5222
5223 # Check whether --enable-shared was given.
5224 if test "${enable_shared+set}" = set; then
5225   enableval=$enable_shared;
5226 else
5227   enableval=default
5228 fi
5229
5230 case "$enableval" in
5231   yes) ENABLE_SHARED=1
5232  ;;
5233   no)  ENABLE_SHARED=0
5234  ;;
5235   default) ENABLE_SHARED=0
5236  ;;
5237   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5238 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5239    { (exit 1); exit 1; }; } ;;
5240 esac
5241
5242 # Check whether --enable-embed-stdcxx was given.
5243 if test "${enable_embed_stdcxx+set}" = set; then
5244   enableval=$enable_embed_stdcxx;
5245 else
5246   enableval=default
5247 fi
5248
5249 case "$enableval" in
5250   yes) ENABLE_EMBED_STDCXX=1
5251  ;;
5252   no)  ENABLE_EMBED_STDCXX=0
5253  ;;
5254   default) ENABLE_EMBED_STDCXX=0
5255  ;;
5256   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5257 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5258    { (exit 1); exit 1; }; } ;;
5259 esac
5260
5261 # Check whether --enable-timestamps was given.
5262 if test "${enable_timestamps+set}" = set; then
5263   enableval=$enable_timestamps;
5264 else
5265   enableval=default
5266 fi
5267
5268 case "$enableval" in
5269   yes) ENABLE_TIMESTAMPS=1
5270  ;;
5271   no)  ENABLE_TIMESTAMPS=0
5272  ;;
5273   default) ENABLE_TIMESTAMPS=1
5274  ;;
5275   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5277    { (exit 1); exit 1; }; } ;;
5278 esac
5279
5280 cat >>confdefs.h <<_ACEOF
5281 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5282 _ACEOF
5283
5284
5285 # Check whether --enable-backtraces was given.
5286 if test "${enable_backtraces+set}" = set; then
5287   enableval=$enable_backtraces; case "$enableval" in
5288     yes) llvm_cv_enable_backtraces="yes" ;;
5289     no)  llvm_cv_enable_backtraces="no"  ;;
5290     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5291 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5292    { (exit 1); exit 1; }; } ;;
5293   esac
5294 else
5295   llvm_cv_enable_backtraces="yes"
5296 fi
5297
5298 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5299
5300 cat >>confdefs.h <<\_ACEOF
5301 #define ENABLE_BACKTRACES 1
5302 _ACEOF
5303
5304 fi
5305
5306 # Check whether --enable-crash-overrides was given.
5307 if test "${enable_crash_overrides+set}" = set; then
5308   enableval=$enable_crash_overrides; case "$enableval" in
5309     yes) llvm_cv_enable_crash_overrides="yes" ;;
5310     no)  llvm_cv_enable_crash_overrides="no"  ;;
5311     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5312 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5313    { (exit 1); exit 1; }; } ;;
5314   esac
5315 else
5316   llvm_cv_enable_crash_overrides="yes"
5317 fi
5318
5319 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5320
5321 cat >>confdefs.h <<\_ACEOF
5322 #define ENABLE_CRASH_OVERRIDES 1
5323 _ACEOF
5324
5325 fi
5326
5327 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5328 ALL_TARGETS=$ALL_TARGETS
5329
5330
5331 TARGETS_TO_BUILD=""
5332 # Check whether --enable-targets was given.
5333 if test "${enable_targets+set}" = set; then
5334   enableval=$enable_targets;
5335 else
5336   enableval=all
5337 fi
5338
5339 if test "$enableval" = host-only ; then
5340   enableval=host
5341 fi
5342 case "$enableval" in
5343   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5344   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5345       case "$a_target" in
5346         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5347         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5348         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5349         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5350         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5351         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5352         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5353         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5354         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5355         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5356         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5357         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5358         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5359         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5360         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5361         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5362         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5363         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5364         host) case "$llvm_cv_target_arch" in
5365             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5366             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5367             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5368             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5369             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5370             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5371             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5372             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5373             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5374             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5375             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5376             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5377             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5378 echo "$as_me: error: Can not set target to build" >&2;}
5379    { (exit 1); exit 1; }; } ;;
5380           esac ;;
5381         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5382 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5383    { (exit 1); exit 1; }; } ;;
5384       esac
5385   done
5386   ;;
5387 esac
5388
5389 # Check whether --enable-experimental-targets was given.
5390 if test "${enable_experimental_targets+set}" = set; then
5391   enableval=$enable_experimental_targets;
5392 else
5393   enableval=disable
5394 fi
5395
5396
5397 if test ${enableval} != "disable"
5398 then
5399   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5400 fi
5401
5402 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5403
5404
5405 for a_target in $TARGETS_TO_BUILD; do
5406   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5407
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5410 _ACEOF
5411
5412     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5413     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5414     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5415     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5416     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5417       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5418     fi
5419     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5420       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5421     fi
5422
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5425 _ACEOF
5426
5427
5428 cat >>confdefs.h <<_ACEOF
5429 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5430 _ACEOF
5431
5432
5433 cat >>confdefs.h <<_ACEOF
5434 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5435 _ACEOF
5436
5437
5438 cat >>confdefs.h <<_ACEOF
5439 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5440 _ACEOF
5441
5442     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5443
5444 cat >>confdefs.h <<_ACEOF
5445 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5446 _ACEOF
5447
5448     fi
5449     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5450
5451 cat >>confdefs.h <<_ACEOF
5452 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5453 _ACEOF
5454
5455     fi
5456   fi
5457 done
5458
5459 LLVM_ENUM_TARGETS=""
5460 LLVM_ENUM_ASM_PRINTERS=""
5461 LLVM_ENUM_ASM_PARSERS=""
5462 LLVM_ENUM_DISASSEMBLERS=""
5463 for target_to_build in $TARGETS_TO_BUILD; do
5464   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5465   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5466     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5467   fi
5468   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5469     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5470   fi
5471   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5472     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5473   fi
5474 done
5475
5476
5477
5478
5479
5480
5481 # Check whether --with-optimize-option was given.
5482 if test "${with_optimize_option+set}" = set; then
5483   withval=$with_optimize_option;
5484 else
5485   withval=default
5486 fi
5487
5488 { echo "$as_me:$LINENO: checking optimization flags" >&5
5489 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5490 case "$withval" in
5491   default)
5492     case "$llvm_cv_os_type" in
5493     FreeBSD) optimize_option=-O2 ;;
5494     MingW) optimize_option=-O2 ;;
5495     *)     optimize_option=-O3 ;;
5496     esac ;;
5497   *) optimize_option="$withval" ;;
5498 esac
5499 OPTIMIZE_OPTION=$optimize_option
5500
5501 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5502 echo "${ECHO_T}$optimize_option" >&6; }
5503
5504
5505 # Check whether --with-extra-options was given.
5506 if test "${with_extra_options+set}" = set; then
5507   withval=$with_extra_options;
5508 else
5509   withval=default
5510 fi
5511
5512 case "$withval" in
5513   default) EXTRA_OPTIONS= ;;
5514   *) EXTRA_OPTIONS=$withval ;;
5515 esac
5516 EXTRA_OPTIONS=$EXTRA_OPTIONS
5517
5518
5519
5520 # Check whether --with-extra-ld-options was given.
5521 if test "${with_extra_ld_options+set}" = set; then
5522   withval=$with_extra_ld_options;
5523 else
5524   withval=default
5525 fi
5526
5527 case "$withval" in
5528   default) EXTRA_LD_OPTIONS= ;;
5529   *) EXTRA_LD_OPTIONS=$withval ;;
5530 esac
5531 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5532
5533
5534 # Check whether --enable-bindings was given.
5535 if test "${enable_bindings+set}" = set; then
5536   enableval=$enable_bindings;
5537 else
5538   enableval=default
5539 fi
5540
5541 BINDINGS_TO_BUILD=""
5542 case "$enableval" in
5543   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5544   all ) BINDINGS_TO_BUILD="ocaml" ;;
5545   none | no) BINDINGS_TO_BUILD="" ;;
5546   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5547       case "$a_binding" in
5548         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5549         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5550 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5551    { (exit 1); exit 1; }; } ;;
5552       esac
5553   done
5554   ;;
5555 esac
5556
5557
5558 # Check whether --with-ocaml-libdir was given.
5559 if test "${with_ocaml_libdir+set}" = set; then
5560   withval=$with_ocaml_libdir;
5561 else
5562   withval=auto
5563 fi
5564
5565 case "$withval" in
5566   auto) with_ocaml_libdir="$withval" ;;
5567   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5568   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5569 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5570    { (exit 1); exit 1; }; } ;;
5571 esac
5572
5573
5574 # Check whether --with-clang-srcdir was given.
5575 if test "${with_clang_srcdir+set}" = set; then
5576   withval=$with_clang_srcdir;
5577 else
5578   withval="-"
5579 fi
5580
5581 case "$withval" in
5582   -) clang_src_root="" ;;
5583   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5584   *) clang_src_root="$ac_pwd/$withval" ;;
5585 esac
5586 CLANG_SRC_ROOT=$clang_src_root
5587
5588
5589
5590 # Check whether --with-clang-resource-dir was given.
5591 if test "${with_clang_resource_dir+set}" = set; then
5592   withval=$with_clang_resource_dir;
5593 else
5594   withval=""
5595 fi
5596
5597
5598 cat >>confdefs.h <<_ACEOF
5599 #define CLANG_RESOURCE_DIR "$withval"
5600 _ACEOF
5601
5602
5603
5604 # Check whether --with-c-include-dirs was given.
5605 if test "${with_c_include_dirs+set}" = set; then
5606   withval=$with_c_include_dirs;
5607 else
5608   withval=""
5609 fi
5610
5611
5612 cat >>confdefs.h <<_ACEOF
5613 #define C_INCLUDE_DIRS "$withval"
5614 _ACEOF
5615
5616
5617 # Clang normally uses the system c++ headers and libraries. With this option,
5618 # clang will use the ones provided by a gcc installation instead. This option should
5619 # be passed the same value that was used with --prefix when configuring gcc.
5620
5621 # Check whether --with-gcc-toolchain was given.
5622 if test "${with_gcc_toolchain+set}" = set; then
5623   withval=$with_gcc_toolchain;
5624 else
5625   withval=""
5626 fi
5627
5628
5629 cat >>confdefs.h <<_ACEOF
5630 #define GCC_INSTALL_PREFIX "$withval"
5631 _ACEOF
5632
5633
5634
5635 # Check whether --with-default-sysroot was given.
5636 if test "${with_default_sysroot+set}" = set; then
5637   withval=$with_default_sysroot;
5638 else
5639   withval=""
5640 fi
5641
5642
5643 cat >>confdefs.h <<_ACEOF
5644 #define DEFAULT_SYSROOT "$withval"
5645 _ACEOF
5646
5647
5648
5649 # Check whether --with-binutils-include was given.
5650 if test "${with_binutils_include+set}" = set; then
5651   withval=$with_binutils_include;
5652 else
5653   withval=default
5654 fi
5655
5656 case "$withval" in
5657   default) WITH_BINUTILS_INCDIR=default ;;
5658   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5659   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5660 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5661    { (exit 1); exit 1; }; } ;;
5662 esac
5663 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5664   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5665
5666   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5667      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5668      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5669 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5670    { (exit 1); exit 1; }; };
5671   fi
5672 fi
5673
5674
5675 # Check whether --with-bug-report-url was given.
5676 if test "${with_bug_report_url+set}" = set; then
5677   withval=$with_bug_report_url;
5678 else
5679   withval="http://llvm.org/bugs/"
5680 fi
5681
5682
5683 cat >>confdefs.h <<_ACEOF
5684 #define BUG_REPORT_URL "$withval"
5685 _ACEOF
5686
5687
5688 # Check whether --enable-terminfo was given.
5689 if test "${enable_terminfo+set}" = set; then
5690   enableval=$enable_terminfo; case "$enableval" in
5691     yes) llvm_cv_enable_terminfo="yes" ;;
5692     no)  llvm_cv_enable_terminfo="no"  ;;
5693     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5694 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5695    { (exit 1); exit 1; }; } ;;
5696   esac
5697 else
5698   llvm_cv_enable_terminfo="yes"
5699 fi
5700
5701 case "$llvm_cv_enable_terminfo" in
5702   yes) ENABLE_TERMINFO=1
5703  ;;
5704   no)  ENABLE_TERMINFO=0
5705  ;;
5706 esac
5707
5708 # Check whether --enable-libedit was given.
5709 if test "${enable_libedit+set}" = set; then
5710   enableval=$enable_libedit; case "$enableval" in
5711     yes) llvm_cv_enable_libedit="yes" ;;
5712     no)  llvm_cv_enable_libedit="no"  ;;
5713     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5714 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5715    { (exit 1); exit 1; }; } ;;
5716   esac
5717 else
5718   llvm_cv_enable_libedit="yes"
5719 fi
5720
5721
5722 # Check whether --enable-libffi was given.
5723 if test "${enable_libffi+set}" = set; then
5724   enableval=$enable_libffi; case "$enableval" in
5725     yes) llvm_cv_enable_libffi="yes" ;;
5726     no)  llvm_cv_enable_libffi="no"  ;;
5727     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5728 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5729    { (exit 1); exit 1; }; } ;;
5730   esac
5731 else
5732   llvm_cv_enable_libffi=no
5733 fi
5734
5735
5736
5737 # Check whether --with-internal-prefix was given.
5738 if test "${with_internal_prefix+set}" = set; then
5739   withval=$with_internal_prefix;
5740 else
5741   withval=""
5742 fi
5743
5744 INTERNAL_PREFIX=$withval
5745
5746
5747
5748 { echo "$as_me:$LINENO: checking for GNU make" >&5
5749 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5750 if test "${llvm_cv_gnu_make_command+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   llvm_cv_gnu_make_command=''
5754  for a in "$MAKE" make gmake gnumake ; do
5755   if test -z "$a" ; then continue ; fi ;
5756   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5757   then
5758    llvm_cv_gnu_make_command=$a ;
5759    break;
5760   fi
5761  done
5762 fi
5763 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5764 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5765  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5766    ifGNUmake='' ;
5767  else
5768    ifGNUmake='#' ;
5769    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5770 echo "${ECHO_T}\"Not found\"" >&6; };
5771  fi
5772
5773
5774 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5775 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5776 LN_S=$as_ln_s
5777 if test "$LN_S" = "ln -s"; then
5778   { echo "$as_me:$LINENO: result: yes" >&5
5779 echo "${ECHO_T}yes" >&6; }
5780 else
5781   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5782 echo "${ECHO_T}no, using $LN_S" >&6; }
5783 fi
5784
5785 # Extract the first word of "nm", so it can be a program name with args.
5786 set dummy nm; ac_word=$2
5787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5789 if test "${ac_cv_path_NM+set}" = set; then
5790   echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792   case $NM in
5793   [\\/]* | ?:[\\/]*)
5794   ac_cv_path_NM="$NM" # Let the user override the test with a path.
5795   ;;
5796   *)
5797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800   IFS=$as_save_IFS
5801   test -z "$as_dir" && as_dir=.
5802   for ac_exec_ext in '' $ac_executable_extensions; do
5803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5804     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806     break 2
5807   fi
5808 done
5809 done
5810 IFS=$as_save_IFS
5811
5812   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5813   ;;
5814 esac
5815 fi
5816 NM=$ac_cv_path_NM
5817 if test -n "$NM"; then
5818   { echo "$as_me:$LINENO: result: $NM" >&5
5819 echo "${ECHO_T}$NM" >&6; }
5820 else
5821   { echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6; }
5823 fi
5824
5825
5826 # Extract the first word of "cmp", so it can be a program name with args.
5827 set dummy cmp; ac_word=$2
5828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5830 if test "${ac_cv_path_CMP+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   case $CMP in
5834   [\\/]* | ?:[\\/]*)
5835   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5836   ;;
5837   *)
5838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5840 do
5841   IFS=$as_save_IFS
5842   test -z "$as_dir" && as_dir=.
5843   for ac_exec_ext in '' $ac_executable_extensions; do
5844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5845     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847     break 2
5848   fi
5849 done
5850 done
5851 IFS=$as_save_IFS
5852
5853   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5854   ;;
5855 esac
5856 fi
5857 CMP=$ac_cv_path_CMP
5858 if test -n "$CMP"; then
5859   { echo "$as_me:$LINENO: result: $CMP" >&5
5860 echo "${ECHO_T}$CMP" >&6; }
5861 else
5862   { echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6; }
5864 fi
5865
5866
5867 # Extract the first word of "cp", so it can be a program name with args.
5868 set dummy cp; ac_word=$2
5869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5871 if test "${ac_cv_path_CP+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   case $CP in
5875   [\\/]* | ?:[\\/]*)
5876   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5877   ;;
5878   *)
5879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882   IFS=$as_save_IFS
5883   test -z "$as_dir" && as_dir=.
5884   for ac_exec_ext in '' $ac_executable_extensions; do
5885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5886     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888     break 2
5889   fi
5890 done
5891 done
5892 IFS=$as_save_IFS
5893
5894   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5895   ;;
5896 esac
5897 fi
5898 CP=$ac_cv_path_CP
5899 if test -n "$CP"; then
5900   { echo "$as_me:$LINENO: result: $CP" >&5
5901 echo "${ECHO_T}$CP" >&6; }
5902 else
5903   { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5905 fi
5906
5907
5908 # Extract the first word of "date", so it can be a program name with args.
5909 set dummy date; ac_word=$2
5910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5912 if test "${ac_cv_path_DATE+set}" = set; then
5913   echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915   case $DATE in
5916   [\\/]* | ?:[\\/]*)
5917   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5918   ;;
5919   *)
5920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925   for ac_exec_ext in '' $ac_executable_extensions; do
5926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5927     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932 done
5933 IFS=$as_save_IFS
5934
5935   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5936   ;;
5937 esac
5938 fi
5939 DATE=$ac_cv_path_DATE
5940 if test -n "$DATE"; then
5941   { echo "$as_me:$LINENO: result: $DATE" >&5
5942 echo "${ECHO_T}$DATE" >&6; }
5943 else
5944   { echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6; }
5946 fi
5947
5948
5949 # Extract the first word of "find", so it can be a program name with args.
5950 set dummy find; ac_word=$2
5951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5953 if test "${ac_cv_path_FIND+set}" = set; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   case $FIND in
5957   [\\/]* | ?:[\\/]*)
5958   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5959   ;;
5960   *)
5961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964   IFS=$as_save_IFS
5965   test -z "$as_dir" && as_dir=.
5966   for ac_exec_ext in '' $ac_executable_extensions; do
5967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5968     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970     break 2
5971   fi
5972 done
5973 done
5974 IFS=$as_save_IFS
5975
5976   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5977   ;;
5978 esac
5979 fi
5980 FIND=$ac_cv_path_FIND
5981 if test -n "$FIND"; then
5982   { echo "$as_me:$LINENO: result: $FIND" >&5
5983 echo "${ECHO_T}$FIND" >&6; }
5984 else
5985   { echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6; }
5987 fi
5988
5989
5990 # Extract the first word of "grep", so it can be a program name with args.
5991 set dummy grep; ac_word=$2
5992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5994 if test "${ac_cv_path_GREP+set}" = set; then
5995   echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997   case $GREP in
5998   [\\/]* | ?:[\\/]*)
5999   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6000   ;;
6001   *)
6002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005   IFS=$as_save_IFS
6006   test -z "$as_dir" && as_dir=.
6007   for ac_exec_ext in '' $ac_executable_extensions; do
6008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6009     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011     break 2
6012   fi
6013 done
6014 done
6015 IFS=$as_save_IFS
6016
6017   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6018   ;;
6019 esac
6020 fi
6021 GREP=$ac_cv_path_GREP
6022 if test -n "$GREP"; then
6023   { echo "$as_me:$LINENO: result: $GREP" >&5
6024 echo "${ECHO_T}$GREP" >&6; }
6025 else
6026   { echo "$as_me:$LINENO: result: no" >&5
6027 echo "${ECHO_T}no" >&6; }
6028 fi
6029
6030
6031 # Extract the first word of "mkdir", so it can be a program name with args.
6032 set dummy mkdir; ac_word=$2
6033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035 if test "${ac_cv_path_MKDIR+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038   case $MKDIR in
6039   [\\/]* | ?:[\\/]*)
6040   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6041   ;;
6042   *)
6043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046   IFS=$as_save_IFS
6047   test -z "$as_dir" && as_dir=.
6048   for ac_exec_ext in '' $ac_executable_extensions; do
6049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6050     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052     break 2
6053   fi
6054 done
6055 done
6056 IFS=$as_save_IFS
6057
6058   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6059   ;;
6060 esac
6061 fi
6062 MKDIR=$ac_cv_path_MKDIR
6063 if test -n "$MKDIR"; then
6064   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6065 echo "${ECHO_T}$MKDIR" >&6; }
6066 else
6067   { echo "$as_me:$LINENO: result: no" >&5
6068 echo "${ECHO_T}no" >&6; }
6069 fi
6070
6071
6072 # Extract the first word of "mv", so it can be a program name with args.
6073 set dummy mv; ac_word=$2
6074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6076 if test "${ac_cv_path_MV+set}" = set; then
6077   echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079   case $MV in
6080   [\\/]* | ?:[\\/]*)
6081   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6082   ;;
6083   *)
6084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087   IFS=$as_save_IFS
6088   test -z "$as_dir" && as_dir=.
6089   for ac_exec_ext in '' $ac_executable_extensions; do
6090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6091     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093     break 2
6094   fi
6095 done
6096 done
6097 IFS=$as_save_IFS
6098
6099   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6100   ;;
6101 esac
6102 fi
6103 MV=$ac_cv_path_MV
6104 if test -n "$MV"; then
6105   { echo "$as_me:$LINENO: result: $MV" >&5
6106 echo "${ECHO_T}$MV" >&6; }
6107 else
6108   { echo "$as_me:$LINENO: result: no" >&5
6109 echo "${ECHO_T}no" >&6; }
6110 fi
6111
6112
6113 if test -n "$ac_tool_prefix"; then
6114   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_RANLIB+set}" = set; then
6119   echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121   if test -n "$RANLIB"; then
6122   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127   IFS=$as_save_IFS
6128   test -z "$as_dir" && as_dir=.
6129   for ac_exec_ext in '' $ac_executable_extensions; do
6130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6131     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133     break 2
6134   fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 RANLIB=$ac_cv_prog_RANLIB
6142 if test -n "$RANLIB"; then
6143   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6144 echo "${ECHO_T}$RANLIB" >&6; }
6145 else
6146   { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6148 fi
6149
6150
6151 fi
6152 if test -z "$ac_cv_prog_RANLIB"; then
6153   ac_ct_RANLIB=$RANLIB
6154   # Extract the first word of "ranlib", so it can be a program name with args.
6155 set dummy ranlib; ac_word=$2
6156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   if test -n "$ac_ct_RANLIB"; then
6162   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167   IFS=$as_save_IFS
6168   test -z "$as_dir" && as_dir=.
6169   for ac_exec_ext in '' $ac_executable_extensions; do
6170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6171     ac_cv_prog_ac_ct_RANLIB="ranlib"
6172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173     break 2
6174   fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6178
6179 fi
6180 fi
6181 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6182 if test -n "$ac_ct_RANLIB"; then
6183   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6184 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6185 else
6186   { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6188 fi
6189
6190   if test "x$ac_ct_RANLIB" = x; then
6191     RANLIB=":"
6192   else
6193     case $cross_compiling:$ac_tool_warned in
6194 yes:)
6195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6196 whose name does not start with the host triplet.  If you think this
6197 configuration is useful to you, please write to autoconf@gnu.org." >&5
6198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6199 whose name does not start with the host triplet.  If you think this
6200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6201 ac_tool_warned=yes ;;
6202 esac
6203     RANLIB=$ac_ct_RANLIB
6204   fi
6205 else
6206   RANLIB="$ac_cv_prog_RANLIB"
6207 fi
6208
6209 if test -n "$ac_tool_prefix"; then
6210   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}ar; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_AR+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   if test -n "$AR"; then
6218   ac_cv_prog_AR="$AR" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225   for ac_exec_ext in '' $ac_executable_extensions; do
6226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6227     ac_cv_prog_AR="${ac_tool_prefix}ar"
6228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232 done
6233 IFS=$as_save_IFS
6234
6235 fi
6236 fi
6237 AR=$ac_cv_prog_AR
6238 if test -n "$AR"; then
6239   { echo "$as_me:$LINENO: result: $AR" >&5
6240 echo "${ECHO_T}$AR" >&6; }
6241 else
6242   { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6244 fi
6245
6246
6247 fi
6248 if test -z "$ac_cv_prog_AR"; then
6249   ac_ct_AR=$AR
6250   # Extract the first word of "ar", so it can be a program name with args.
6251 set dummy ar; ac_word=$2
6252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6254 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6255   echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257   if test -n "$ac_ct_AR"; then
6258   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263   IFS=$as_save_IFS
6264   test -z "$as_dir" && as_dir=.
6265   for ac_exec_ext in '' $ac_executable_extensions; do
6266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6267     ac_cv_prog_ac_ct_AR="ar"
6268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269     break 2
6270   fi
6271 done
6272 done
6273 IFS=$as_save_IFS
6274
6275 fi
6276 fi
6277 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6278 if test -n "$ac_ct_AR"; then
6279   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6280 echo "${ECHO_T}$ac_ct_AR" >&6; }
6281 else
6282   { echo "$as_me:$LINENO: result: no" >&5
6283 echo "${ECHO_T}no" >&6; }
6284 fi
6285
6286   if test "x$ac_ct_AR" = x; then
6287     AR="false"
6288   else
6289     case $cross_compiling:$ac_tool_warned in
6290 yes:)
6291 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6292 whose name does not start with the host triplet.  If you think this
6293 configuration is useful to you, please write to autoconf@gnu.org." >&5
6294 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6295 whose name does not start with the host triplet.  If you think this
6296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6297 ac_tool_warned=yes ;;
6298 esac
6299     AR=$ac_ct_AR
6300   fi
6301 else
6302   AR="$ac_cv_prog_AR"
6303 fi
6304
6305 # Extract the first word of "rm", so it can be a program name with args.
6306 set dummy rm; ac_word=$2
6307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309 if test "${ac_cv_path_RM+set}" = set; then
6310   echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312   case $RM in
6313   [\\/]* | ?:[\\/]*)
6314   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6315   ;;
6316   *)
6317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320   IFS=$as_save_IFS
6321   test -z "$as_dir" && as_dir=.
6322   for ac_exec_ext in '' $ac_executable_extensions; do
6323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6324     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326     break 2
6327   fi
6328 done
6329 done
6330 IFS=$as_save_IFS
6331
6332   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6333   ;;
6334 esac
6335 fi
6336 RM=$ac_cv_path_RM
6337 if test -n "$RM"; then
6338   { echo "$as_me:$LINENO: result: $RM" >&5
6339 echo "${ECHO_T}$RM" >&6; }
6340 else
6341   { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6343 fi
6344
6345
6346 # Extract the first word of "sed", so it can be a program name with args.
6347 set dummy sed; ac_word=$2
6348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6350 if test "${ac_cv_path_SED+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   case $SED in
6354   [\\/]* | ?:[\\/]*)
6355   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6356   ;;
6357   *)
6358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6360 do
6361   IFS=$as_save_IFS
6362   test -z "$as_dir" && as_dir=.
6363   for ac_exec_ext in '' $ac_executable_extensions; do
6364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6365     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367     break 2
6368   fi
6369 done
6370 done
6371 IFS=$as_save_IFS
6372
6373   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6374   ;;
6375 esac
6376 fi
6377 SED=$ac_cv_path_SED
6378 if test -n "$SED"; then
6379   { echo "$as_me:$LINENO: result: $SED" >&5
6380 echo "${ECHO_T}$SED" >&6; }
6381 else
6382   { echo "$as_me:$LINENO: result: no" >&5
6383 echo "${ECHO_T}no" >&6; }
6384 fi
6385
6386
6387 # Extract the first word of "tar", so it can be a program name with args.
6388 set dummy tar; ac_word=$2
6389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6391 if test "${ac_cv_path_TAR+set}" = set; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   case $TAR in
6395   [\\/]* | ?:[\\/]*)
6396   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6397   ;;
6398   *)
6399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402   IFS=$as_save_IFS
6403   test -z "$as_dir" && as_dir=.
6404   for ac_exec_ext in '' $ac_executable_extensions; do
6405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6406     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408     break 2
6409   fi
6410 done
6411 done
6412 IFS=$as_save_IFS
6413
6414   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6415   ;;
6416 esac
6417 fi
6418 TAR=$ac_cv_path_TAR
6419 if test -n "$TAR"; then
6420   { echo "$as_me:$LINENO: result: $TAR" >&5
6421 echo "${ECHO_T}$TAR" >&6; }
6422 else
6423   { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6425 fi
6426
6427
6428 # Extract the first word of "pwd", so it can be a program name with args.
6429 set dummy pwd; ac_word=$2
6430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432 if test "${ac_cv_path_BINPWD+set}" = set; then
6433   echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435   case $BINPWD in
6436   [\\/]* | ?:[\\/]*)
6437   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6438   ;;
6439   *)
6440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445   for ac_exec_ext in '' $ac_executable_extensions; do
6446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6447     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452 done
6453 IFS=$as_save_IFS
6454
6455   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6456   ;;
6457 esac
6458 fi
6459 BINPWD=$ac_cv_path_BINPWD
6460 if test -n "$BINPWD"; then
6461   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6462 echo "${ECHO_T}$BINPWD" >&6; }
6463 else
6464   { echo "$as_me:$LINENO: result: no" >&5
6465 echo "${ECHO_T}no" >&6; }
6466 fi
6467
6468
6469
6470 # Extract the first word of "dot", so it can be a program name with args.
6471 set dummy dot; ac_word=$2
6472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6474 if test "${ac_cv_path_DOT+set}" = set; then
6475   echo $ECHO_N "(cached) $ECHO_C" >&6
6476 else
6477   case $DOT in
6478   [\\/]* | ?:[\\/]*)
6479   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6480   ;;
6481   *)
6482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485   IFS=$as_save_IFS
6486   test -z "$as_dir" && as_dir=.
6487   for ac_exec_ext in '' $ac_executable_extensions; do
6488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6489     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491     break 2
6492   fi
6493 done
6494 done
6495 IFS=$as_save_IFS
6496
6497   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6498   ;;
6499 esac
6500 fi
6501 DOT=$ac_cv_path_DOT
6502 if test -n "$DOT"; then
6503   { echo "$as_me:$LINENO: result: $DOT" >&5
6504 echo "${ECHO_T}$DOT" >&6; }
6505 else
6506   { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6508 fi
6509
6510
6511 if test "$DOT" != "echo dot" ; then
6512
6513 cat >>confdefs.h <<\_ACEOF
6514 #define HAVE_DOT 1
6515 _ACEOF
6516
6517     if test "$llvm_cv_os_type" = "MingW" ; then
6518     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6519   fi
6520
6521 cat >>confdefs.h <<_ACEOF
6522 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6523 _ACEOF
6524
6525 fi
6526
6527 # Find a good install program.  We prefer a C program (faster),
6528 # so one script is as good as another.  But avoid the broken or
6529 # incompatible versions:
6530 # SysV /etc/install, /usr/sbin/install
6531 # SunOS /usr/etc/install
6532 # IRIX /sbin/install
6533 # AIX /bin/install
6534 # AmigaOS /C/install, which installs bootblocks on floppy discs
6535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6538 # OS/2's system install, which has a completely different semantic
6539 # ./install, which can be erroneously created by make from ./install.sh.
6540 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6541 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6542 if test -z "$INSTALL"; then
6543 if test "${ac_cv_path_install+set}" = set; then
6544   echo $ECHO_N "(cached) $ECHO_C" >&6
6545 else
6546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549   IFS=$as_save_IFS
6550   test -z "$as_dir" && as_dir=.
6551   # Account for people who put trailing slashes in PATH elements.
6552 case $as_dir/ in
6553   ./ | .// | /cC/* | \
6554   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6555   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6556   /usr/ucb/* ) ;;
6557   *)
6558     # OSF1 and SCO ODT 3.0 have their own names for install.
6559     # Don't use installbsd from OSF since it installs stuff as root
6560     # by default.
6561     for ac_prog in ginstall scoinst install; do
6562       for ac_exec_ext in '' $ac_executable_extensions; do
6563         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6564           if test $ac_prog = install &&
6565             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6566             # AIX install.  It has an incompatible calling convention.
6567             :
6568           elif test $ac_prog = install &&
6569             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6570             # program-specific install script used by HP pwplus--don't use.
6571             :
6572           else
6573             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6574             break 3
6575           fi
6576         fi
6577       done
6578     done
6579     ;;
6580 esac
6581 done
6582 IFS=$as_save_IFS
6583
6584
6585 fi
6586   if test "${ac_cv_path_install+set}" = set; then
6587     INSTALL=$ac_cv_path_install
6588   else
6589     # As a last resort, use the slow shell script.  Don't cache a
6590     # value for INSTALL within a source directory, because that will
6591     # break other packages using the cache if that directory is
6592     # removed, or if the value is a relative name.
6593     INSTALL=$ac_install_sh
6594   fi
6595 fi
6596 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6597 echo "${ECHO_T}$INSTALL" >&6; }
6598
6599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6600 # It thinks the first close brace ends the variable substitution.
6601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6602
6603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6604
6605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6606
6607 case "$INSTALL" in
6608  [\\/$]* | ?:[\\/]* ) ;;
6609  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6610 esac
6611
6612 # Extract the first word of "bzip2", so it can be a program name with args.
6613 set dummy bzip2; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_path_BZIP2+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619   case $BZIP2 in
6620   [\\/]* | ?:[\\/]*)
6621   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6622   ;;
6623   *)
6624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629   for ac_exec_ext in '' $ac_executable_extensions; do
6630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6631     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639   ;;
6640 esac
6641 fi
6642 BZIP2=$ac_cv_path_BZIP2
6643 if test -n "$BZIP2"; then
6644   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6645 echo "${ECHO_T}$BZIP2" >&6; }
6646 else
6647   { echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6; }
6649 fi
6650
6651
6652 # Extract the first word of "cat", so it can be a program name with args.
6653 set dummy cat; ac_word=$2
6654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6656 if test "${ac_cv_path_CAT+set}" = set; then
6657   echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659   case $CAT in
6660   [\\/]* | ?:[\\/]*)
6661   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6662   ;;
6663   *)
6664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667   IFS=$as_save_IFS
6668   test -z "$as_dir" && as_dir=.
6669   for ac_exec_ext in '' $ac_executable_extensions; do
6670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6671     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673     break 2
6674   fi
6675 done
6676 done
6677 IFS=$as_save_IFS
6678
6679   ;;
6680 esac
6681 fi
6682 CAT=$ac_cv_path_CAT
6683 if test -n "$CAT"; then
6684   { echo "$as_me:$LINENO: result: $CAT" >&5
6685 echo "${ECHO_T}$CAT" >&6; }
6686 else
6687   { echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6; }
6689 fi
6690
6691
6692 # Extract the first word of "doxygen", so it can be a program name with args.
6693 set dummy doxygen; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   case $DOXYGEN in
6700   [\\/]* | ?:[\\/]*)
6701   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6702   ;;
6703   *)
6704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709   for ac_exec_ext in '' $ac_executable_extensions; do
6710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716 done
6717 IFS=$as_save_IFS
6718
6719   ;;
6720 esac
6721 fi
6722 DOXYGEN=$ac_cv_path_DOXYGEN
6723 if test -n "$DOXYGEN"; then
6724   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6725 echo "${ECHO_T}$DOXYGEN" >&6; }
6726 else
6727   { echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6; }
6729 fi
6730
6731
6732 # Extract the first word of "groff", so it can be a program name with args.
6733 set dummy groff; ac_word=$2
6734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736 if test "${ac_cv_path_GROFF+set}" = set; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   case $GROFF in
6740   [\\/]* | ?:[\\/]*)
6741   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6742   ;;
6743   *)
6744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747   IFS=$as_save_IFS
6748   test -z "$as_dir" && as_dir=.
6749   for ac_exec_ext in '' $ac_executable_extensions; do
6750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6751     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753     break 2
6754   fi
6755 done
6756 done
6757 IFS=$as_save_IFS
6758
6759   ;;
6760 esac
6761 fi
6762 GROFF=$ac_cv_path_GROFF
6763 if test -n "$GROFF"; then
6764   { echo "$as_me:$LINENO: result: $GROFF" >&5
6765 echo "${ECHO_T}$GROFF" >&6; }
6766 else
6767   { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6769 fi
6770
6771
6772 # Extract the first word of "gzip", so it can be a program name with args.
6773 set dummy gzip; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6777   echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779   case $GZIPBIN in
6780   [\\/]* | ?:[\\/]*)
6781   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6782   ;;
6783   *)
6784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789   for ac_exec_ext in '' $ac_executable_extensions; do
6790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796 done
6797 IFS=$as_save_IFS
6798
6799   ;;
6800 esac
6801 fi
6802 GZIPBIN=$ac_cv_path_GZIPBIN
6803 if test -n "$GZIPBIN"; then
6804   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6805 echo "${ECHO_T}$GZIPBIN" >&6; }
6806 else
6807   { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6809 fi
6810
6811
6812 # Extract the first word of "pdfroff", so it can be a program name with args.
6813 set dummy pdfroff; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_PDFROFF+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   case $PDFROFF in
6820   [\\/]* | ?:[\\/]*)
6821   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6822   ;;
6823   *)
6824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829   for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839   ;;
6840 esac
6841 fi
6842 PDFROFF=$ac_cv_path_PDFROFF
6843 if test -n "$PDFROFF"; then
6844   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6845 echo "${ECHO_T}$PDFROFF" >&6; }
6846 else
6847   { echo "$as_me:$LINENO: result: no" >&5
6848 echo "${ECHO_T}no" >&6; }
6849 fi
6850
6851
6852 # Extract the first word of "zip", so it can be a program name with args.
6853 set dummy zip; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_path_ZIP+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   case $ZIP in
6860   [\\/]* | ?:[\\/]*)
6861   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6862   ;;
6863   *)
6864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869   for ac_exec_ext in '' $ac_executable_extensions; do
6870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6871     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879   ;;
6880 esac
6881 fi
6882 ZIP=$ac_cv_path_ZIP
6883 if test -n "$ZIP"; then
6884   { echo "$as_me:$LINENO: result: $ZIP" >&5
6885 echo "${ECHO_T}$ZIP" >&6; }
6886 else
6887   { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6889 fi
6890
6891
6892 # Extract the first word of "go", so it can be a program name with args.
6893 set dummy go; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_path_GO+set}" = set; then
6897   echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899   case $GO in
6900   [\\/]* | ?:[\\/]*)
6901   ac_cv_path_GO="$GO" # Let the user override the test with a path.
6902   ;;
6903   *)
6904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6906 do
6907   IFS=$as_save_IFS
6908   test -z "$as_dir" && as_dir=.
6909   for ac_exec_ext in '' $ac_executable_extensions; do
6910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913     break 2
6914   fi
6915 done
6916 done
6917 IFS=$as_save_IFS
6918
6919   ;;
6920 esac
6921 fi
6922 GO=$ac_cv_path_GO
6923 if test -n "$GO"; then
6924   { echo "$as_me:$LINENO: result: $GO" >&5
6925 echo "${ECHO_T}$GO" >&6; }
6926 else
6927   { echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6; }
6929 fi
6930
6931
6932 for ac_prog in ocamlfind
6933 do
6934   # Extract the first word of "$ac_prog", so it can be a program name with args.
6935 set dummy $ac_prog; ac_word=$2
6936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6938 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
6939   echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941   case $OCAMLFIND in
6942   [\\/]* | ?:[\\/]*)
6943   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
6944   ;;
6945   *)
6946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949   IFS=$as_save_IFS
6950   test -z "$as_dir" && as_dir=.
6951   for ac_exec_ext in '' $ac_executable_extensions; do
6952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6953     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
6954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955     break 2
6956   fi
6957 done
6958 done
6959 IFS=$as_save_IFS
6960
6961   ;;
6962 esac
6963 fi
6964 OCAMLFIND=$ac_cv_path_OCAMLFIND
6965 if test -n "$OCAMLFIND"; then
6966   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
6967 echo "${ECHO_T}$OCAMLFIND" >&6; }
6968 else
6969   { echo "$as_me:$LINENO: result: no" >&5
6970 echo "${ECHO_T}no" >&6; }
6971 fi
6972
6973
6974   test -n "$OCAMLFIND" && break
6975 done
6976
6977 for ac_prog in gas as
6978 do
6979   # Extract the first word of "$ac_prog", so it can be a program name with args.
6980 set dummy $ac_prog; ac_word=$2
6981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983 if test "${ac_cv_path_GAS+set}" = set; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   case $GAS in
6987   [\\/]* | ?:[\\/]*)
6988   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
6989   ;;
6990   *)
6991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994   IFS=$as_save_IFS
6995   test -z "$as_dir" && as_dir=.
6996   for ac_exec_ext in '' $ac_executable_extensions; do
6997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6998     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
6999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000     break 2
7001   fi
7002 done
7003 done
7004 IFS=$as_save_IFS
7005
7006   ;;
7007 esac
7008 fi
7009 GAS=$ac_cv_path_GAS
7010 if test -n "$GAS"; then
7011   { echo "$as_me:$LINENO: result: $GAS" >&5
7012 echo "${ECHO_T}$GAS" >&6; }
7013 else
7014   { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7016 fi
7017
7018
7019   test -n "$GAS" && break
7020 done
7021
7022
7023 { echo "$as_me:$LINENO: checking for linker version" >&5
7024 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7025 if test "${llvm_cv_link_version+set}" = set; then
7026   echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028
7029    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7030
7031    # Check for ld64.
7032    if (echo "$version_string" | grep -q "ld64"); then
7033      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7034    else
7035      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7036    fi
7037
7038 fi
7039 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7040 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7041
7042 cat >>confdefs.h <<_ACEOF
7043 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7044 _ACEOF
7045
7046
7047
7048
7049 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7050 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7051 if test "${llvm_cv_link_use_r+set}" = set; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054    ac_ext=c
7055 ac_cpp='$CPP $CPPFLAGS'
7056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7059
7060   oldcflags="$CFLAGS"
7061   CFLAGS="$CFLAGS -Wl,-R."
7062   cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h.  */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h.  */
7068
7069 int
7070 main ()
7071 {
7072
7073   ;
7074   return 0;
7075 }
7076 _ACEOF
7077 rm -f conftest.$ac_objext conftest$ac_exeext
7078 if { (ac_try="$ac_link"
7079 case "(($ac_try" in
7080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081   *) ac_try_echo=$ac_try;;
7082 esac
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084   (eval "$ac_link") 2>conftest.er1
7085   ac_status=$?
7086   grep -v '^ *+' conftest.er1 >conftest.err
7087   rm -f conftest.er1
7088   cat conftest.err >&5
7089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090   (exit $ac_status); } &&
7091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7092   { (case "(($ac_try" in
7093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094   *) ac_try_echo=$ac_try;;
7095 esac
7096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097   (eval "$ac_try") 2>&5
7098   ac_status=$?
7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100   (exit $ac_status); }; } &&
7101          { ac_try='test -s conftest$ac_exeext'
7102   { (case "(($ac_try" in
7103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7104   *) ac_try_echo=$ac_try;;
7105 esac
7106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107   (eval "$ac_try") 2>&5
7108   ac_status=$?
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); }; }; then
7111   llvm_cv_link_use_r=yes
7112 else
7113   echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7115
7116         llvm_cv_link_use_r=no
7117 fi
7118
7119 rm -f core conftest.err conftest.$ac_objext \
7120       conftest$ac_exeext conftest.$ac_ext
7121   CFLAGS="$oldcflags"
7122   ac_ext=c
7123 ac_cpp='$CPP $CPPFLAGS'
7124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7127
7128
7129 fi
7130 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7131 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7132 if test "$llvm_cv_link_use_r" = yes ; then
7133
7134 cat >>confdefs.h <<\_ACEOF
7135 #define HAVE_LINK_R 1
7136 _ACEOF
7137
7138   fi
7139
7140
7141 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7142 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7143 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7144   echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146    ac_ext=c
7147 ac_cpp='$CPP $CPPFLAGS'
7148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7151
7152   oldcflags="$CFLAGS"
7153   CFLAGS="$CFLAGS -rdynamic"
7154   cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h.  */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h.  */
7160
7161 int
7162 main ()
7163 {
7164
7165   ;
7166   return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest.$ac_objext conftest$ac_exeext
7170 if { (ac_try="$ac_link"
7171 case "(($ac_try" in
7172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173   *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176   (eval "$ac_link") 2>conftest.er1
7177   ac_status=$?
7178   grep -v '^ *+' conftest.er1 >conftest.err
7179   rm -f conftest.er1
7180   cat conftest.err >&5
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); } &&
7183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7184   { (case "(($ac_try" in
7185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186   *) ac_try_echo=$ac_try;;
7187 esac
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189   (eval "$ac_try") 2>&5
7190   ac_status=$?
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); }; } &&
7193          { ac_try='test -s conftest$ac_exeext'
7194   { (case "(($ac_try" in
7195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196   *) ac_try_echo=$ac_try;;
7197 esac
7198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7199   (eval "$ac_try") 2>&5
7200   ac_status=$?
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); }; }; then
7203   llvm_cv_link_use_export_dynamic=yes
7204 else
7205   echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7207
7208         llvm_cv_link_use_export_dynamic=no
7209 fi
7210
7211 rm -f core conftest.err conftest.$ac_objext \
7212       conftest$ac_exeext conftest.$ac_ext
7213   CFLAGS="$oldcflags"
7214   ac_ext=c
7215 ac_cpp='$CPP $CPPFLAGS'
7216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7219
7220
7221 fi
7222 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7223 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7224 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7225
7226 cat >>confdefs.h <<\_ACEOF
7227 #define HAVE_LINK_EXPORT_DYNAMIC 1
7228 _ACEOF
7229
7230   fi
7231
7232
7233 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7234 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7235 if test "${llvm_cv_link_use_version_script+set}" = set; then
7236   echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238    ac_ext=c
7239 ac_cpp='$CPP $CPPFLAGS'
7240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7243
7244   oldcflags="$CFLAGS"
7245
7246   # The following code is from the autoconf manual,
7247   # "11.13: Limitations of Usual Tools".
7248   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7249   # Use mktemp if possible; otherwise fall back on mkdir,
7250   # with $RANDOM to make collisions less likely.
7251   : ${TMPDIR=/tmp}
7252   {
7253     tmp=`
7254       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7255     ` &&
7256     test -n "$tmp" && test -d "$tmp"
7257   } || {
7258     tmp=$TMPDIR/foo$$-$RANDOM
7259     (umask 077 && mkdir "$tmp")
7260   } || exit $?
7261
7262   echo "{" > "$tmp/export.map"
7263   echo "  global: main;" >> "$tmp/export.map"
7264   echo "  local: *;" >> "$tmp/export.map"
7265   echo "};" >> "$tmp/export.map"
7266
7267   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7268   cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h.  */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h.  */
7274
7275 int
7276 main ()
7277 {
7278
7279   ;
7280   return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext conftest$ac_exeext
7284 if { (ac_try="$ac_link"
7285 case "(($ac_try" in
7286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287   *) ac_try_echo=$ac_try;;
7288 esac
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290   (eval "$ac_link") 2>conftest.er1
7291   ac_status=$?
7292   grep -v '^ *+' conftest.er1 >conftest.err
7293   rm -f conftest.er1
7294   cat conftest.err >&5
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } &&
7297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7298   { (case "(($ac_try" in
7299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300   *) ac_try_echo=$ac_try;;
7301 esac
7302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7303   (eval "$ac_try") 2>&5
7304   ac_status=$?
7305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306   (exit $ac_status); }; } &&
7307          { ac_try='test -s conftest$ac_exeext'
7308   { (case "(($ac_try" in
7309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7310   *) ac_try_echo=$ac_try;;
7311 esac
7312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7313   (eval "$ac_try") 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); }; }; then
7317   llvm_cv_link_use_version_script=yes
7318 else
7319   echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7321
7322         llvm_cv_link_use_version_script=no
7323 fi
7324
7325 rm -f core conftest.err conftest.$ac_objext \
7326       conftest$ac_exeext conftest.$ac_ext
7327   rm "$tmp/export.map"
7328   rmdir "$tmp"
7329   CFLAGS="$oldcflags"
7330   ac_ext=c
7331 ac_cpp='$CPP $CPPFLAGS'
7332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7335
7336
7337 fi
7338 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7339 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7340 if test "$llvm_cv_link_use_version_script" = yes ; then
7341   HAVE_LINK_VERSION_SCRIPT=1
7342
7343   fi
7344
7345
7346
7347 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7348 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7349 if test "${ac_cv_path_GREP+set}" = set; then
7350   echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352   # Extract the first word of "grep ggrep" to use in msg output
7353 if test -z "$GREP"; then
7354 set dummy grep ggrep; ac_prog_name=$2
7355 if test "${ac_cv_path_GREP+set}" = set; then
7356   echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358   ac_path_GREP_found=false
7359 # Loop through the user's path and test for each of PROGNAME-LIST
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365   for ac_prog in grep ggrep; do
7366   for ac_exec_ext in '' $ac_executable_extensions; do
7367     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7368     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7369     # Check for GNU ac_path_GREP and select it if it is found.
7370   # Check for GNU $ac_path_GREP
7371 case `"$ac_path_GREP" --version 2>&1` in
7372 *GNU*)
7373   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7374 *)
7375   ac_count=0
7376   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7377   while :
7378   do
7379     cat "conftest.in" "conftest.in" >"conftest.tmp"
7380     mv "conftest.tmp" "conftest.in"
7381     cp "conftest.in" "conftest.nl"
7382     echo 'GREP' >> "conftest.nl"
7383     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7384     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7385     ac_count=`expr $ac_count + 1`
7386     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7387       # Best one so far, save it but keep looking for a better one
7388       ac_cv_path_GREP="$ac_path_GREP"
7389       ac_path_GREP_max=$ac_count
7390     fi
7391     # 10*(2^10) chars as input seems more than enough
7392     test $ac_count -gt 10 && break
7393   done
7394   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7395 esac
7396
7397
7398     $ac_path_GREP_found && break 3
7399   done
7400 done
7401
7402 done
7403 IFS=$as_save_IFS
7404
7405
7406 fi
7407
7408 GREP="$ac_cv_path_GREP"
7409 if test -z "$GREP"; then
7410   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7411 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7412    { (exit 1); exit 1; }; }
7413 fi
7414
7415 else
7416   ac_cv_path_GREP=$GREP
7417 fi
7418
7419
7420 fi
7421 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7422 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7423  GREP="$ac_cv_path_GREP"
7424
7425
7426 { echo "$as_me:$LINENO: checking for egrep" >&5
7427 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_EGREP+set}" = set; then
7429   echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7432    then ac_cv_path_EGREP="$GREP -E"
7433    else
7434      # Extract the first word of "egrep" to use in msg output
7435 if test -z "$EGREP"; then
7436 set dummy egrep; ac_prog_name=$2
7437 if test "${ac_cv_path_EGREP+set}" = set; then
7438   echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440   ac_path_EGREP_found=false
7441 # Loop through the user's path and test for each of PROGNAME-LIST
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447   for ac_prog in egrep; do
7448   for ac_exec_ext in '' $ac_executable_extensions; do
7449     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7450     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7451     # Check for GNU ac_path_EGREP and select it if it is found.
7452   # Check for GNU $ac_path_EGREP
7453 case `"$ac_path_EGREP" --version 2>&1` in
7454 *GNU*)
7455   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7456 *)
7457   ac_count=0
7458   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7459   while :
7460   do
7461     cat "conftest.in" "conftest.in" >"conftest.tmp"
7462     mv "conftest.tmp" "conftest.in"
7463     cp "conftest.in" "conftest.nl"
7464     echo 'EGREP' >> "conftest.nl"
7465     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7466     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7467     ac_count=`expr $ac_count + 1`
7468     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7469       # Best one so far, save it but keep looking for a better one
7470       ac_cv_path_EGREP="$ac_path_EGREP"
7471       ac_path_EGREP_max=$ac_count
7472     fi
7473     # 10*(2^10) chars as input seems more than enough
7474     test $ac_count -gt 10 && break
7475   done
7476   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7477 esac
7478
7479
7480     $ac_path_EGREP_found && break 3
7481   done
7482 done
7483
7484 done
7485 IFS=$as_save_IFS
7486
7487
7488 fi
7489
7490 EGREP="$ac_cv_path_EGREP"
7491 if test -z "$EGREP"; then
7492   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7493 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7494    { (exit 1); exit 1; }; }
7495 fi
7496
7497 else
7498   ac_cv_path_EGREP=$EGREP
7499 fi
7500
7501
7502    fi
7503 fi
7504 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7505 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7506  EGREP="$ac_cv_path_EGREP"
7507
7508
7509 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7510 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7511 if test "${ac_cv_header_stdc+set}" = set; then
7512   echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514   cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h.  */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h.  */
7520 #include <stdlib.h>
7521 #include <stdarg.h>
7522 #include <string.h>
7523 #include <float.h>
7524
7525 int
7526 main ()
7527 {
7528
7529   ;
7530   return 0;
7531 }
7532 _ACEOF
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7535 case "(($ac_try" in
7536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537   *) ac_try_echo=$ac_try;;
7538 esac
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540   (eval "$ac_compile") 2>conftest.er1
7541   ac_status=$?
7542   grep -v '^ *+' conftest.er1 >conftest.err
7543   rm -f conftest.er1
7544   cat conftest.err >&5
7545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546   (exit $ac_status); } &&
7547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7548   { (case "(($ac_try" in
7549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550   *) ac_try_echo=$ac_try;;
7551 esac
7552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7553   (eval "$ac_try") 2>&5
7554   ac_status=$?
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); }; } &&
7557          { ac_try='test -s conftest.$ac_objext'
7558   { (case "(($ac_try" in
7559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560   *) ac_try_echo=$ac_try;;
7561 esac
7562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7563   (eval "$ac_try") 2>&5
7564   ac_status=$?
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); }; }; then
7567   ac_cv_header_stdc=yes
7568 else
7569   echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7571
7572         ac_cv_header_stdc=no
7573 fi
7574
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576
7577 if test $ac_cv_header_stdc = yes; then
7578   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7579   cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h.  */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h.  */
7585 #include <string.h>
7586
7587 _ACEOF
7588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7589   $EGREP "memchr" >/dev/null 2>&1; then
7590   :
7591 else
7592   ac_cv_header_stdc=no
7593 fi
7594 rm -f conftest*
7595
7596 fi
7597
7598 if test $ac_cv_header_stdc = yes; then
7599   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7600   cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h.  */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h.  */
7606 #include <stdlib.h>
7607
7608 _ACEOF
7609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7610   $EGREP "free" >/dev/null 2>&1; then
7611   :
7612 else
7613   ac_cv_header_stdc=no
7614 fi
7615 rm -f conftest*
7616
7617 fi
7618
7619 if test $ac_cv_header_stdc = yes; then
7620   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7621   if test "$cross_compiling" = yes; then
7622   :
7623 else
7624   cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h.  */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h.  */
7630 #include <ctype.h>
7631 #include <stdlib.h>
7632 #if ((' ' & 0x0FF) == 0x020)
7633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7635 #else
7636 # define ISLOWER(c) \
7637                    (('a' <= (c) && (c) <= 'i') \
7638                      || ('j' <= (c) && (c) <= 'r') \
7639                      || ('s' <= (c) && (c) <= 'z'))
7640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7641 #endif
7642
7643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7644 int
7645 main ()
7646 {
7647   int i;
7648   for (i = 0; i < 256; i++)
7649     if (XOR (islower (i), ISLOWER (i))
7650         || toupper (i) != TOUPPER (i))
7651       return 2;
7652   return 0;
7653 }
7654 _ACEOF
7655 rm -f conftest$ac_exeext
7656 if { (ac_try="$ac_link"
7657 case "(($ac_try" in
7658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659   *) ac_try_echo=$ac_try;;
7660 esac
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662   (eval "$ac_link") 2>&5
7663   ac_status=$?
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7666   { (case "(($ac_try" in
7667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668   *) ac_try_echo=$ac_try;;
7669 esac
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671   (eval "$ac_try") 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); }; }; then
7675   :
7676 else
7677   echo "$as_me: program exited with status $ac_status" >&5
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7680
7681 ( exit $ac_status )
7682 ac_cv_header_stdc=no
7683 fi
7684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7685 fi
7686
7687
7688 fi
7689 fi
7690 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7691 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7692 if test $ac_cv_header_stdc = yes; then
7693
7694 cat >>confdefs.h <<\_ACEOF
7695 #define STDC_HEADERS 1
7696 _ACEOF
7697
7698 fi
7699
7700 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7711                   inttypes.h stdint.h unistd.h
7712 do
7713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7717   echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719   cat >conftest.$ac_ext <<_ACEOF
7720 /* confdefs.h.  */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h.  */
7725 $ac_includes_default
7726
7727 #include <$ac_header>
7728 _ACEOF
7729 rm -f conftest.$ac_objext
7730 if { (ac_try="$ac_compile"
7731 case "(($ac_try" in
7732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733   *) ac_try_echo=$ac_try;;
7734 esac
7735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736   (eval "$ac_compile") 2>conftest.er1
7737   ac_status=$?
7738   grep -v '^ *+' conftest.er1 >conftest.err
7739   rm -f conftest.er1
7740   cat conftest.err >&5
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); } &&
7743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7744   { (case "(($ac_try" in
7745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746   *) ac_try_echo=$ac_try;;
7747 esac
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749   (eval "$ac_try") 2>&5
7750   ac_status=$?
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); }; } &&
7753          { ac_try='test -s conftest.$ac_objext'
7754   { (case "(($ac_try" in
7755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756   *) ac_try_echo=$ac_try;;
7757 esac
7758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759   (eval "$ac_try") 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; }; then
7763   eval "$as_ac_Header=yes"
7764 else
7765   echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768         eval "$as_ac_Header=no"
7769 fi
7770
7771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 fi
7773 ac_res=`eval echo '${'$as_ac_Header'}'`
7774                { echo "$as_me:$LINENO: result: $ac_res" >&5
7775 echo "${ECHO_T}$ac_res" >&6; }
7776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7777   cat >>confdefs.h <<_ACEOF
7778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7779 _ACEOF
7780
7781 fi
7782
7783 done
7784
7785
7786
7787 for ac_header in errno.h
7788 do
7789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7791   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 fi
7796 ac_res=`eval echo '${'$as_ac_Header'}'`
7797                { echo "$as_me:$LINENO: result: $ac_res" >&5
7798 echo "${ECHO_T}$ac_res" >&6; }
7799 else
7800   # Is the header compilable?
7801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7803 cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h.  */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h.  */
7809 $ac_includes_default
7810 #include <$ac_header>
7811 _ACEOF
7812 rm -f conftest.$ac_objext
7813 if { (ac_try="$ac_compile"
7814 case "(($ac_try" in
7815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816   *) ac_try_echo=$ac_try;;
7817 esac
7818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819   (eval "$ac_compile") 2>conftest.er1
7820   ac_status=$?
7821   grep -v '^ *+' conftest.er1 >conftest.err
7822   rm -f conftest.er1
7823   cat conftest.err >&5
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); } &&
7826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7827   { (case "(($ac_try" in
7828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829   *) ac_try_echo=$ac_try;;
7830 esac
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832   (eval "$ac_try") 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; } &&
7836          { ac_try='test -s conftest.$ac_objext'
7837   { (case "(($ac_try" in
7838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839   *) ac_try_echo=$ac_try;;
7840 esac
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842   (eval "$ac_try") 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); }; }; then
7846   ac_header_compiler=yes
7847 else
7848   echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7850
7851         ac_header_compiler=no
7852 fi
7853
7854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7856 echo "${ECHO_T}$ac_header_compiler" >&6; }
7857
7858 # Is the header present?
7859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h.  */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h.  */
7867 #include <$ac_header>
7868 _ACEOF
7869 if { (ac_try="$ac_cpp conftest.$ac_ext"
7870 case "(($ac_try" in
7871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872   *) ac_try_echo=$ac_try;;
7873 esac
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7876   ac_status=$?
7877   grep -v '^ *+' conftest.er1 >conftest.err
7878   rm -f conftest.er1
7879   cat conftest.err >&5
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); } >/dev/null; then
7882   if test -s conftest.err; then
7883     ac_cpp_err=$ac_c_preproc_warn_flag
7884     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7885   else
7886     ac_cpp_err=
7887   fi
7888 else
7889   ac_cpp_err=yes
7890 fi
7891 if test -z "$ac_cpp_err"; then
7892   ac_header_preproc=yes
7893 else
7894   echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7896
7897   ac_header_preproc=no
7898 fi
7899
7900 rm -f conftest.err conftest.$ac_ext
7901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7902 echo "${ECHO_T}$ac_header_preproc" >&6; }
7903
7904 # So?  What about this header?
7905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7906   yes:no: )
7907     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7911     ac_header_preproc=yes
7912     ;;
7913   no:yes:* )
7914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7916     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7917 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7918     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7920     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7921 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7924     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7926     ( cat <<\_ASBOX
7927 ## ------------------------------------ ##
7928 ## Report this to http://llvm.org/bugs/ ##
7929 ## ------------------------------------ ##
7930 _ASBOX
7931      ) | sed "s/^/$as_me: WARNING:     /" >&2
7932     ;;
7933 esac
7934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7937   echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939   eval "$as_ac_Header=\$ac_header_preproc"
7940 fi
7941 ac_res=`eval echo '${'$as_ac_Header'}'`
7942                { echo "$as_me:$LINENO: result: $ac_res" >&5
7943 echo "${ECHO_T}$ac_res" >&6; }
7944
7945 fi
7946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7947   cat >>confdefs.h <<_ACEOF
7948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7949 _ACEOF
7950
7951 fi
7952
7953 done
7954
7955
7956 case "$llvm_cv_os_type" in
7957   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7958   Darwin) llvm_shlib_ext=.dylib ;;
7959   *) llvm_shlib_ext=.so ;;
7960 esac
7961
7962
7963 cat >>confdefs.h <<_ACEOF
7964 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
7965 _ACEOF
7966
7967
7968 { echo "$as_me:$LINENO: checking tool compatibility" >&5
7969 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
7970
7971 ICC=no
7972 IXX=no
7973 case $CC in
7974   icc*|icpc*)
7975     ICC=yes
7976     IXX=yes
7977     ;;
7978    *)
7979     ;;
7980 esac
7981
7982 if test "$GCC" != "yes" && test "$ICC" != "yes"
7983 then
7984   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
7985 echo "$as_me: error: gcc|icc required but not found" >&2;}
7986    { (exit 1); exit 1; }; }
7987 fi
7988
7989 if test "$GXX" != "yes" && test "$IXX" != "yes"
7990 then
7991   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
7992 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
7993    { (exit 1); exit 1; }; }
7994 fi
7995
7996 if test "$GCC" = "yes"
7997 then
7998   cat >conftest.$ac_ext <<_ACEOF
7999
8000   /* confdefs.h.  */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h.  */
8005
8006     #if !defined(__GNUC__) || __GNUC__ < 3
8007     #error Unsupported GCC version
8008     #endif
8009
8010
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8014 case "(($ac_try" in
8015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016   *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019   (eval "$ac_compile") 2>conftest.er1
8020   ac_status=$?
8021   grep -v '^ *+' conftest.er1 >conftest.err
8022   rm -f conftest.er1
8023   cat conftest.err >&5
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); } &&
8026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8027   { (case "(($ac_try" in
8028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029   *) ac_try_echo=$ac_try;;
8030 esac
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032   (eval "$ac_try") 2>&5
8033   ac_status=$?
8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035   (exit $ac_status); }; } &&
8036          { ac_try='test -s conftest.$ac_objext'
8037   { (case "(($ac_try" in
8038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039   *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042   (eval "$ac_try") 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); }; }; then
8046   :
8047 else
8048   echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8050
8051         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8052 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8053    { (exit 1); exit 1; }; }
8054 fi
8055
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057 fi
8058
8059 if test -z "$llvm_cv_gnu_make_command"
8060 then
8061   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8062 echo "$as_me: error: GNU Make required but not found" >&2;}
8063    { (exit 1); exit 1; }; }
8064 fi
8065
8066 { echo "$as_me:$LINENO: result: ok" >&5
8067 echo "${ECHO_T}ok" >&6; }
8068
8069 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8070 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8071 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8072
8073 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8074
8075 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8076
8077
8078 NO_UNINITIALIZED=
8079 NO_MAYBE_UNINITIALIZED=
8080 if test "$GXX" = "yes"
8081 then
8082   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8083
8084         if test -z "$NO_MAYBE_UNINITIALIZED"
8085   then
8086     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8087
8088   fi
8089 fi
8090
8091 no_comment=
8092 llvm_cv_old_cxxflags="$CXXFLAGS"
8093 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8094 cat >conftest.$ac_ext <<_ACEOF
8095
8096   /* confdefs.h.  */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h.  */
8101 // Comment \o\
8102 // Another comment
8103 int main() { return 0; }
8104
8105
8106 _ACEOF
8107 rm -f conftest.$ac_objext
8108 if { (ac_try="$ac_compile"
8109 case "(($ac_try" in
8110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111   *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114   (eval "$ac_compile") 2>conftest.er1
8115   ac_status=$?
8116   grep -v '^ *+' conftest.er1 >conftest.err
8117   rm -f conftest.er1
8118   cat conftest.err >&5
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); } &&
8121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8131          { ac_try='test -s conftest.$ac_objext'
8132   { (case "(($ac_try" in
8133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134   *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137   (eval "$ac_try") 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; }; then
8141
8142   no_comment=-Wno-comment
8143
8144 else
8145   echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.$ac_ext >&5
8147
8148
8149 fi
8150
8151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152 NO_COMMENT=$no_comment
8153
8154 CXXFLAGS="$llvm_cv_old_cxxflags"
8155
8156 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8157 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8158
8159
8160 # Check whether --with-python was given.
8161 if test "${with_python+set}" = set; then
8162   withval=$with_python; PYTHON="$withval"
8163 fi
8164
8165
8166 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8167   { echo "$as_me:$LINENO: checking for python" >&5
8168 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8169   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8170 echo "${ECHO_T}user defined: $with_python" >&6; }
8171 else
8172   if test -n "$PYTHON" ; then
8173     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8174 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8175   fi
8176
8177   # Extract the first word of "python python2 python27", so it can be a program name with args.
8178 set dummy python python2 python27; ac_word=$2
8179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8181 if test "${ac_cv_path_PYTHON+set}" = set; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184   case $PYTHON in
8185   [\\/]* | ?:[\\/]*)
8186   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8187   ;;
8188   *)
8189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192   IFS=$as_save_IFS
8193   test -z "$as_dir" && as_dir=.
8194   for ac_exec_ext in '' $ac_executable_extensions; do
8195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8196     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8198     break 2
8199   fi
8200 done
8201 done
8202 IFS=$as_save_IFS
8203
8204   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8205 echo "${ECHO_T}not found" >&6; }
8206                 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8207 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8208    { (exit 1); exit 1; }; }"
8209   ;;
8210 esac
8211 fi
8212 PYTHON=$ac_cv_path_PYTHON
8213 if test -n "$PYTHON"; then
8214   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8215 echo "${ECHO_T}$PYTHON" >&6; }
8216 else
8217   { echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6; }
8219 fi
8220
8221
8222 fi
8223
8224 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8225 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8226 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8227 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8228 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8229 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8230 if test "$ac_python_version_major" -gt "2" || \
8231    (test "$ac_python_version_major" -eq "2" && \
8232     test "$ac_python_version_minor" -ge "7") ; then
8233   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8234 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8235 else
8236   { echo "$as_me:$LINENO: result: not found" >&5
8237 echo "${ECHO_T}not found" >&6; }
8238   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8239 See \`config.log' for more details." >&5
8240 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8241 See \`config.log' for more details." >&2;}
8242    { (exit 1); exit 1; }; }
8243 fi
8244
8245
8246
8247 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8248 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8249 if test "${ac_cv_lib_m_sin+set}" = set; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252   ac_check_lib_save_LIBS=$LIBS
8253 LIBS="-lm  $LIBS"
8254 cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260
8261 /* Override any GCC internal prototype to avoid an error.
8262    Use char because int might match the return type of a GCC
8263    builtin and then its argument prototype would still apply.  */
8264 #ifdef __cplusplus
8265 extern "C"
8266 #endif
8267 char sin ();
8268 int
8269 main ()
8270 {
8271 return sin ();
8272   ;
8273   return 0;
8274 }
8275 _ACEOF
8276 rm -f conftest.$ac_objext conftest$ac_exeext
8277 if { (ac_try="$ac_link"
8278 case "(($ac_try" in
8279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280   *) ac_try_echo=$ac_try;;
8281 esac
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283   (eval "$ac_link") 2>conftest.er1
8284   ac_status=$?
8285   grep -v '^ *+' conftest.er1 >conftest.err
8286   rm -f conftest.er1
8287   cat conftest.err >&5
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); } &&
8290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8291   { (case "(($ac_try" in
8292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293   *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296   (eval "$ac_try") 2>&5
8297   ac_status=$?
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); }; } &&
8300          { ac_try='test -s conftest$ac_exeext'
8301   { (case "(($ac_try" in
8302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303   *) ac_try_echo=$ac_try;;
8304 esac
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306   (eval "$ac_try") 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); }; }; then
8310   ac_cv_lib_m_sin=yes
8311 else
8312   echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8314
8315         ac_cv_lib_m_sin=no
8316 fi
8317
8318 rm -f core conftest.err conftest.$ac_objext \
8319       conftest$ac_exeext conftest.$ac_ext
8320 LIBS=$ac_check_lib_save_LIBS
8321 fi
8322 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8323 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8324 if test $ac_cv_lib_m_sin = yes; then
8325   cat >>confdefs.h <<_ACEOF
8326 #define HAVE_LIBM 1
8327 _ACEOF
8328
8329   LIBS="-lm $LIBS"
8330
8331 fi
8332
8333 if test "$llvm_cv_os_type" = "MingW" ; then
8334
8335 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8336 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8337 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8338   echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340   ac_check_lib_save_LIBS=$LIBS
8341 LIBS="-limagehlp  $LIBS"
8342 cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h.  */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h.  */
8348
8349
8350 int
8351 main ()
8352 {
8353 return main ();
8354   ;
8355   return 0;
8356 }
8357 _ACEOF
8358 rm -f conftest.$ac_objext conftest$ac_exeext
8359 if { (ac_try="$ac_link"
8360 case "(($ac_try" in
8361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362   *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365   (eval "$ac_link") 2>conftest.er1
8366   ac_status=$?
8367   grep -v '^ *+' conftest.er1 >conftest.err
8368   rm -f conftest.er1
8369   cat conftest.err >&5
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } &&
8372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8373   { (case "(($ac_try" in
8374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375   *) ac_try_echo=$ac_try;;
8376 esac
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378   (eval "$ac_try") 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); }; } &&
8382          { ac_try='test -s conftest$ac_exeext'
8383   { (case "(($ac_try" in
8384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385   *) ac_try_echo=$ac_try;;
8386 esac
8387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388   (eval "$ac_try") 2>&5
8389   ac_status=$?
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); }; }; then
8392   ac_cv_lib_imagehlp_main=yes
8393 else
8394   echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8396
8397         ac_cv_lib_imagehlp_main=no
8398 fi
8399
8400 rm -f core conftest.err conftest.$ac_objext \
8401       conftest$ac_exeext conftest.$ac_ext
8402 LIBS=$ac_check_lib_save_LIBS
8403 fi
8404 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8405 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8406 if test $ac_cv_lib_imagehlp_main = yes; then
8407   cat >>confdefs.h <<_ACEOF
8408 #define HAVE_LIBIMAGEHLP 1
8409 _ACEOF
8410
8411   LIBS="-limagehlp $LIBS"
8412
8413 fi
8414
8415
8416 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8417 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8418 if test "${ac_cv_lib_psapi_main+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421   ac_check_lib_save_LIBS=$LIBS
8422 LIBS="-lpsapi  $LIBS"
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h.  */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h.  */
8429
8430
8431 int
8432 main ()
8433 {
8434 return main ();
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (ac_try="$ac_link"
8441 case "(($ac_try" in
8442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443   *) ac_try_echo=$ac_try;;
8444 esac
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446   (eval "$ac_link") 2>conftest.er1
8447   ac_status=$?
8448   grep -v '^ *+' conftest.er1 >conftest.err
8449   rm -f conftest.er1
8450   cat conftest.err >&5
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); } &&
8453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8454   { (case "(($ac_try" in
8455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456   *) ac_try_echo=$ac_try;;
8457 esac
8458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459   (eval "$ac_try") 2>&5
8460   ac_status=$?
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); }; } &&
8463          { ac_try='test -s conftest$ac_exeext'
8464   { (case "(($ac_try" in
8465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466   *) ac_try_echo=$ac_try;;
8467 esac
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469   (eval "$ac_try") 2>&5
8470   ac_status=$?
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); }; }; then
8473   ac_cv_lib_psapi_main=yes
8474 else
8475   echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8477
8478         ac_cv_lib_psapi_main=no
8479 fi
8480
8481 rm -f core conftest.err conftest.$ac_objext \
8482       conftest$ac_exeext conftest.$ac_ext
8483 LIBS=$ac_check_lib_save_LIBS
8484 fi
8485 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8486 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8487 if test $ac_cv_lib_psapi_main = yes; then
8488   cat >>confdefs.h <<_ACEOF
8489 #define HAVE_LIBPSAPI 1
8490 _ACEOF
8491
8492   LIBS="-lpsapi $LIBS"
8493
8494 fi
8495
8496
8497 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8498 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8499 if test "${ac_cv_lib_shell32_main+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   ac_check_lib_save_LIBS=$LIBS
8503 LIBS="-lshell32  $LIBS"
8504 cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h.  */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h.  */
8510
8511
8512 int
8513 main ()
8514 {
8515 return main ();
8516   ;
8517   return 0;
8518 }
8519 _ACEOF
8520 rm -f conftest.$ac_objext conftest$ac_exeext
8521 if { (ac_try="$ac_link"
8522 case "(($ac_try" in
8523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524   *) ac_try_echo=$ac_try;;
8525 esac
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527   (eval "$ac_link") 2>conftest.er1
8528   ac_status=$?
8529   grep -v '^ *+' conftest.er1 >conftest.err
8530   rm -f conftest.er1
8531   cat conftest.err >&5
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } &&
8534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8535   { (case "(($ac_try" in
8536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537   *) ac_try_echo=$ac_try;;
8538 esac
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540   (eval "$ac_try") 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); }; } &&
8544          { ac_try='test -s conftest$ac_exeext'
8545   { (case "(($ac_try" in
8546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547   *) ac_try_echo=$ac_try;;
8548 esac
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550   (eval "$ac_try") 2>&5
8551   ac_status=$?
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); }; }; then
8554   ac_cv_lib_shell32_main=yes
8555 else
8556   echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8558
8559         ac_cv_lib_shell32_main=no
8560 fi
8561
8562 rm -f core conftest.err conftest.$ac_objext \
8563       conftest$ac_exeext conftest.$ac_ext
8564 LIBS=$ac_check_lib_save_LIBS
8565 fi
8566 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8567 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8568 if test $ac_cv_lib_shell32_main = yes; then
8569   cat >>confdefs.h <<_ACEOF
8570 #define HAVE_LIBSHELL32 1
8571 _ACEOF
8572
8573   LIBS="-lshell32 $LIBS"
8574
8575 fi
8576
8577 fi
8578
8579 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8580 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8581 if test "${ac_cv_search_dlopen+set}" = set; then
8582   echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584   ac_func_search_save_LIBS=$LIBS
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h.  */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h.  */
8591
8592 /* Override any GCC internal prototype to avoid an error.
8593    Use char because int might match the return type of a GCC
8594    builtin and then its argument prototype would still apply.  */
8595 #ifdef __cplusplus
8596 extern "C"
8597 #endif
8598 char dlopen ();
8599 int
8600 main ()
8601 {
8602 return dlopen ();
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 for ac_lib in '' dl; do
8608   if test -z "$ac_lib"; then
8609     ac_res="none required"
8610   else
8611     ac_res=-l$ac_lib
8612     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8613   fi
8614   rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (ac_try="$ac_link"
8616 case "(($ac_try" in
8617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618   *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621   (eval "$ac_link") 2>conftest.er1
8622   ac_status=$?
8623   grep -v '^ *+' conftest.er1 >conftest.err
8624   rm -f conftest.er1
8625   cat conftest.err >&5
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } &&
8628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8629   { (case "(($ac_try" in
8630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631   *) ac_try_echo=$ac_try;;
8632 esac
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634   (eval "$ac_try") 2>&5
8635   ac_status=$?
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); }; } &&
8638          { ac_try='test -s conftest$ac_exeext'
8639   { (case "(($ac_try" in
8640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641   *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644   (eval "$ac_try") 2>&5
8645   ac_status=$?
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); }; }; then
8648   ac_cv_search_dlopen=$ac_res
8649 else
8650   echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8652
8653
8654 fi
8655
8656 rm -f core conftest.err conftest.$ac_objext \
8657       conftest$ac_exeext
8658   if test "${ac_cv_search_dlopen+set}" = set; then
8659   break
8660 fi
8661 done
8662 if test "${ac_cv_search_dlopen+set}" = set; then
8663   :
8664 else
8665   ac_cv_search_dlopen=no
8666 fi
8667 rm conftest.$ac_ext
8668 LIBS=$ac_func_search_save_LIBS
8669 fi
8670 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8671 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8672 ac_res=$ac_cv_search_dlopen
8673 if test "$ac_res" != no; then
8674   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8675
8676
8677 cat >>confdefs.h <<\_ACEOF
8678 #define HAVE_DLOPEN 1
8679 _ACEOF
8680
8681 HAVE_DLOPEN='1'
8682
8683
8684 else
8685   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8686 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8687 fi
8688
8689
8690 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8691 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8692 if test "${ac_cv_search_clock_gettime+set}" = set; then
8693   echo $ECHO_N "(cached) $ECHO_C" >&6
8694 else
8695   ac_func_search_save_LIBS=$LIBS
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h.  */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h.  */
8702
8703 /* Override any GCC internal prototype to avoid an error.
8704    Use char because int might match the return type of a GCC
8705    builtin and then its argument prototype would still apply.  */
8706 #ifdef __cplusplus
8707 extern "C"
8708 #endif
8709 char clock_gettime ();
8710 int
8711 main ()
8712 {
8713 return clock_gettime ();
8714   ;
8715   return 0;
8716 }
8717 _ACEOF
8718 for ac_lib in '' rt; do
8719   if test -z "$ac_lib"; then
8720     ac_res="none required"
8721   else
8722     ac_res=-l$ac_lib
8723     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8724   fi
8725   rm -f conftest.$ac_objext conftest$ac_exeext
8726 if { (ac_try="$ac_link"
8727 case "(($ac_try" in
8728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729   *) ac_try_echo=$ac_try;;
8730 esac
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732   (eval "$ac_link") 2>conftest.er1
8733   ac_status=$?
8734   grep -v '^ *+' conftest.er1 >conftest.err
8735   rm -f conftest.er1
8736   cat conftest.err >&5
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); } &&
8739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8740   { (case "(($ac_try" in
8741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742   *) ac_try_echo=$ac_try;;
8743 esac
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745   (eval "$ac_try") 2>&5
8746   ac_status=$?
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); }; } &&
8749          { ac_try='test -s conftest$ac_exeext'
8750   { (case "(($ac_try" in
8751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752   *) ac_try_echo=$ac_try;;
8753 esac
8754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755   (eval "$ac_try") 2>&5
8756   ac_status=$?
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); }; }; then
8759   ac_cv_search_clock_gettime=$ac_res
8760 else
8761   echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8763
8764
8765 fi
8766
8767 rm -f core conftest.err conftest.$ac_objext \
8768       conftest$ac_exeext
8769   if test "${ac_cv_search_clock_gettime+set}" = set; then
8770   break
8771 fi
8772 done
8773 if test "${ac_cv_search_clock_gettime+set}" = set; then
8774   :
8775 else
8776   ac_cv_search_clock_gettime=no
8777 fi
8778 rm conftest.$ac_ext
8779 LIBS=$ac_func_search_save_LIBS
8780 fi
8781 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8782 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8783 ac_res=$ac_cv_search_clock_gettime
8784 if test "$ac_res" != no; then
8785   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8786
8787 fi
8788
8789
8790 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8791     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8792 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8793 if test "${ac_cv_search_setupterm+set}" = set; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796   ac_func_search_save_LIBS=$LIBS
8797 cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h.  */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h.  */
8803
8804 /* Override any GCC internal prototype to avoid an error.
8805    Use char because int might match the return type of a GCC
8806    builtin and then its argument prototype would still apply.  */
8807 #ifdef __cplusplus
8808 extern "C"
8809 #endif
8810 char setupterm ();
8811 int
8812 main ()
8813 {
8814 return setupterm ();
8815   ;
8816   return 0;
8817 }
8818 _ACEOF
8819 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8820   if test -z "$ac_lib"; then
8821     ac_res="none required"
8822   else
8823     ac_res=-l$ac_lib
8824     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8825   fi
8826   rm -f conftest.$ac_objext conftest$ac_exeext
8827 if { (ac_try="$ac_link"
8828 case "(($ac_try" in
8829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830   *) ac_try_echo=$ac_try;;
8831 esac
8832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833   (eval "$ac_link") 2>conftest.er1
8834   ac_status=$?
8835   grep -v '^ *+' conftest.er1 >conftest.err
8836   rm -f conftest.er1
8837   cat conftest.err >&5
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); } &&
8840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8841   { (case "(($ac_try" in
8842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843   *) ac_try_echo=$ac_try;;
8844 esac
8845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846   (eval "$ac_try") 2>&5
8847   ac_status=$?
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); }; } &&
8850          { ac_try='test -s conftest$ac_exeext'
8851   { (case "(($ac_try" in
8852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853   *) ac_try_echo=$ac_try;;
8854 esac
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856   (eval "$ac_try") 2>&5
8857   ac_status=$?
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); }; }; then
8860   ac_cv_search_setupterm=$ac_res
8861 else
8862   echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865
8866 fi
8867
8868 rm -f core conftest.err conftest.$ac_objext \
8869       conftest$ac_exeext
8870   if test "${ac_cv_search_setupterm+set}" = set; then
8871   break
8872 fi
8873 done
8874 if test "${ac_cv_search_setupterm+set}" = set; then
8875   :
8876 else
8877   ac_cv_search_setupterm=no
8878 fi
8879 rm conftest.$ac_ext
8880 LIBS=$ac_func_search_save_LIBS
8881 fi
8882 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8883 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8884 ac_res=$ac_cv_search_setupterm
8885 if test "$ac_res" != no; then
8886   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8887
8888
8889 cat >>confdefs.h <<\_ACEOF
8890 #define HAVE_TERMINFO 1
8891 _ACEOF
8892
8893 HAVE_TERMINFO='1'
8894
8895
8896 fi
8897
8898 fi
8899
8900 if test "$llvm_cv_enable_libedit" = "yes" ; then
8901   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8902 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8903 if test "${ac_cv_search_el_init+set}" = set; then
8904   echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906   ac_func_search_save_LIBS=$LIBS
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h.  */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h.  */
8913
8914 /* Override any GCC internal prototype to avoid an error.
8915    Use char because int might match the return type of a GCC
8916    builtin and then its argument prototype would still apply.  */
8917 #ifdef __cplusplus
8918 extern "C"
8919 #endif
8920 char el_init ();
8921 int
8922 main ()
8923 {
8924 return el_init ();
8925   ;
8926   return 0;
8927 }
8928 _ACEOF
8929 for ac_lib in '' edit; do
8930   if test -z "$ac_lib"; then
8931     ac_res="none required"
8932   else
8933     ac_res=-l$ac_lib
8934     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8935   fi
8936   rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (ac_try="$ac_link"
8938 case "(($ac_try" in
8939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940   *) ac_try_echo=$ac_try;;
8941 esac
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943   (eval "$ac_link") 2>conftest.er1
8944   ac_status=$?
8945   grep -v '^ *+' conftest.er1 >conftest.err
8946   rm -f conftest.er1
8947   cat conftest.err >&5
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); } &&
8950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8951   { (case "(($ac_try" in
8952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953   *) ac_try_echo=$ac_try;;
8954 esac
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956   (eval "$ac_try") 2>&5
8957   ac_status=$?
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); }; } &&
8960          { ac_try='test -s conftest$ac_exeext'
8961   { (case "(($ac_try" in
8962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963   *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966   (eval "$ac_try") 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); }; }; then
8970   ac_cv_search_el_init=$ac_res
8971 else
8972   echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8974
8975
8976 fi
8977
8978 rm -f core conftest.err conftest.$ac_objext \
8979       conftest$ac_exeext
8980   if test "${ac_cv_search_el_init+set}" = set; then
8981   break
8982 fi
8983 done
8984 if test "${ac_cv_search_el_init+set}" = set; then
8985   :
8986 else
8987   ac_cv_search_el_init=no
8988 fi
8989 rm conftest.$ac_ext
8990 LIBS=$ac_func_search_save_LIBS
8991 fi
8992 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
8993 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
8994 ac_res=$ac_cv_search_el_init
8995 if test "$ac_res" != no; then
8996   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8997
8998 cat >>confdefs.h <<\_ACEOF
8999 #define HAVE_LIBEDIT 1
9000 _ACEOF
9001
9002 fi
9003
9004 fi
9005
9006 if test "$llvm_cv_enable_libffi" = "yes" ; then
9007   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9008 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9009 if test "${ac_cv_search_ffi_call+set}" = set; then
9010   echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012   ac_func_search_save_LIBS=$LIBS
9013 cat >conftest.$ac_ext <<_ACEOF
9014 /* confdefs.h.  */
9015 _ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h.  */
9019
9020 /* Override any GCC internal prototype to avoid an error.
9021    Use char because int might match the return type of a GCC
9022    builtin and then its argument prototype would still apply.  */
9023 #ifdef __cplusplus
9024 extern "C"
9025 #endif
9026 char ffi_call ();
9027 int
9028 main ()
9029 {
9030 return ffi_call ();
9031   ;
9032   return 0;
9033 }
9034 _ACEOF
9035 for ac_lib in '' ffi; do
9036   if test -z "$ac_lib"; then
9037     ac_res="none required"
9038   else
9039     ac_res=-l$ac_lib
9040     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9041   fi
9042   rm -f conftest.$ac_objext conftest$ac_exeext
9043 if { (ac_try="$ac_link"
9044 case "(($ac_try" in
9045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046   *) ac_try_echo=$ac_try;;
9047 esac
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049   (eval "$ac_link") 2>conftest.er1
9050   ac_status=$?
9051   grep -v '^ *+' conftest.er1 >conftest.err
9052   rm -f conftest.er1
9053   cat conftest.err >&5
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); } &&
9056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9057   { (case "(($ac_try" in
9058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059   *) ac_try_echo=$ac_try;;
9060 esac
9061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062   (eval "$ac_try") 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); }; } &&
9066          { ac_try='test -s conftest$ac_exeext'
9067   { (case "(($ac_try" in
9068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9069   *) ac_try_echo=$ac_try;;
9070 esac
9071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9072   (eval "$ac_try") 2>&5
9073   ac_status=$?
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); }; }; then
9076   ac_cv_search_ffi_call=$ac_res
9077 else
9078   echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9080
9081
9082 fi
9083
9084 rm -f core conftest.err conftest.$ac_objext \
9085       conftest$ac_exeext
9086   if test "${ac_cv_search_ffi_call+set}" = set; then
9087   break
9088 fi
9089 done
9090 if test "${ac_cv_search_ffi_call+set}" = set; then
9091   :
9092 else
9093   ac_cv_search_ffi_call=no
9094 fi
9095 rm conftest.$ac_ext
9096 LIBS=$ac_func_search_save_LIBS
9097 fi
9098 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9099 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9100 ac_res=$ac_cv_search_ffi_call
9101 if test "$ac_res" != no; then
9102   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9103
9104 cat >>confdefs.h <<\_ACEOF
9105 #define HAVE_FFI_CALL 1
9106 _ACEOF
9107
9108 else
9109   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9110 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9111    { (exit 1); exit 1; }; }
9112 fi
9113
9114 fi
9115
9116 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9117 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9118 if test "${ac_cv_search_mallinfo+set}" = set; then
9119   echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121   ac_func_search_save_LIBS=$LIBS
9122 cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h.  */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h.  */
9128
9129 /* Override any GCC internal prototype to avoid an error.
9130    Use char because int might match the return type of a GCC
9131    builtin and then its argument prototype would still apply.  */
9132 #ifdef __cplusplus
9133 extern "C"
9134 #endif
9135 char mallinfo ();
9136 int
9137 main ()
9138 {
9139 return mallinfo ();
9140   ;
9141   return 0;
9142 }
9143 _ACEOF
9144 for ac_lib in '' malloc; do
9145   if test -z "$ac_lib"; then
9146     ac_res="none required"
9147   else
9148     ac_res=-l$ac_lib
9149     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9150   fi
9151   rm -f conftest.$ac_objext conftest$ac_exeext
9152 if { (ac_try="$ac_link"
9153 case "(($ac_try" in
9154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155   *) ac_try_echo=$ac_try;;
9156 esac
9157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158   (eval "$ac_link") 2>conftest.er1
9159   ac_status=$?
9160   grep -v '^ *+' conftest.er1 >conftest.err
9161   rm -f conftest.er1
9162   cat conftest.err >&5
9163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164   (exit $ac_status); } &&
9165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9166   { (case "(($ac_try" in
9167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168   *) ac_try_echo=$ac_try;;
9169 esac
9170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9171   (eval "$ac_try") 2>&5
9172   ac_status=$?
9173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174   (exit $ac_status); }; } &&
9175          { ac_try='test -s conftest$ac_exeext'
9176   { (case "(($ac_try" in
9177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178   *) ac_try_echo=$ac_try;;
9179 esac
9180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181   (eval "$ac_try") 2>&5
9182   ac_status=$?
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); }; }; then
9185   ac_cv_search_mallinfo=$ac_res
9186 else
9187   echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9189
9190
9191 fi
9192
9193 rm -f core conftest.err conftest.$ac_objext \
9194       conftest$ac_exeext
9195   if test "${ac_cv_search_mallinfo+set}" = set; then
9196   break
9197 fi
9198 done
9199 if test "${ac_cv_search_mallinfo+set}" = set; then
9200   :
9201 else
9202   ac_cv_search_mallinfo=no
9203 fi
9204 rm conftest.$ac_ext
9205 LIBS=$ac_func_search_save_LIBS
9206 fi
9207 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9208 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9209 ac_res=$ac_cv_search_mallinfo
9210 if test "$ac_res" != no; then
9211   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9212
9213 cat >>confdefs.h <<\_ACEOF
9214 #define HAVE_MALLINFO 1
9215 _ACEOF
9216
9217 fi
9218
9219
9220 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9221
9222 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9223 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9224 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9225   echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227   ac_check_lib_save_LIBS=$LIBS
9228 LIBS="-lpthread  $LIBS"
9229 cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h.  */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h.  */
9235
9236 /* Override any GCC internal prototype to avoid an error.
9237    Use char because int might match the return type of a GCC
9238    builtin and then its argument prototype would still apply.  */
9239 #ifdef __cplusplus
9240 extern "C"
9241 #endif
9242 char pthread_mutex_init ();
9243 int
9244 main ()
9245 {
9246 return pthread_mutex_init ();
9247   ;
9248   return 0;
9249 }
9250 _ACEOF
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (ac_try="$ac_link"
9253 case "(($ac_try" in
9254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255   *) ac_try_echo=$ac_try;;
9256 esac
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258   (eval "$ac_link") 2>conftest.er1
9259   ac_status=$?
9260   grep -v '^ *+' conftest.er1 >conftest.err
9261   rm -f conftest.er1
9262   cat conftest.err >&5
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); } &&
9265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9266   { (case "(($ac_try" in
9267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268   *) ac_try_echo=$ac_try;;
9269 esac
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271   (eval "$ac_try") 2>&5
9272   ac_status=$?
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   (exit $ac_status); }; } &&
9275          { ac_try='test -s conftest$ac_exeext'
9276   { (case "(($ac_try" in
9277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278   *) ac_try_echo=$ac_try;;
9279 esac
9280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281   (eval "$ac_try") 2>&5
9282   ac_status=$?
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); }; }; then
9285   ac_cv_lib_pthread_pthread_mutex_init=yes
9286 else
9287   echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9289
9290         ac_cv_lib_pthread_pthread_mutex_init=no
9291 fi
9292
9293 rm -f core conftest.err conftest.$ac_objext \
9294       conftest$ac_exeext conftest.$ac_ext
9295 LIBS=$ac_check_lib_save_LIBS
9296 fi
9297 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9298 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9299 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9300   cat >>confdefs.h <<_ACEOF
9301 #define HAVE_LIBPTHREAD 1
9302 _ACEOF
9303
9304   LIBS="-lpthread $LIBS"
9305
9306 fi
9307
9308   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9309 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9310 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9311   echo $ECHO_N "(cached) $ECHO_C" >&6
9312 else
9313   ac_func_search_save_LIBS=$LIBS
9314 cat >conftest.$ac_ext <<_ACEOF
9315 /* confdefs.h.  */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h.  */
9320
9321 /* Override any GCC internal prototype to avoid an error.
9322    Use char because int might match the return type of a GCC
9323    builtin and then its argument prototype would still apply.  */
9324 #ifdef __cplusplus
9325 extern "C"
9326 #endif
9327 char pthread_mutex_lock ();
9328 int
9329 main ()
9330 {
9331 return pthread_mutex_lock ();
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 for ac_lib in '' pthread; do
9337   if test -z "$ac_lib"; then
9338     ac_res="none required"
9339   else
9340     ac_res=-l$ac_lib
9341     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9342   fi
9343   rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (ac_try="$ac_link"
9345 case "(($ac_try" in
9346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347   *) ac_try_echo=$ac_try;;
9348 esac
9349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350   (eval "$ac_link") 2>conftest.er1
9351   ac_status=$?
9352   grep -v '^ *+' conftest.er1 >conftest.err
9353   rm -f conftest.er1
9354   cat conftest.err >&5
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); } &&
9357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9358   { (case "(($ac_try" in
9359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360   *) ac_try_echo=$ac_try;;
9361 esac
9362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9363   (eval "$ac_try") 2>&5
9364   ac_status=$?
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); }; } &&
9367          { ac_try='test -s conftest$ac_exeext'
9368   { (case "(($ac_try" in
9369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9370   *) ac_try_echo=$ac_try;;
9371 esac
9372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9373   (eval "$ac_try") 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); }; }; then
9377   ac_cv_search_pthread_mutex_lock=$ac_res
9378 else
9379   echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9381
9382
9383 fi
9384
9385 rm -f core conftest.err conftest.$ac_objext \
9386       conftest$ac_exeext
9387   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9388   break
9389 fi
9390 done
9391 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9392   :
9393 else
9394   ac_cv_search_pthread_mutex_lock=no
9395 fi
9396 rm conftest.$ac_ext
9397 LIBS=$ac_func_search_save_LIBS
9398 fi
9399 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9400 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9401 ac_res=$ac_cv_search_pthread_mutex_lock
9402 if test "$ac_res" != no; then
9403   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9404
9405 cat >>confdefs.h <<\_ACEOF
9406 #define HAVE_PTHREAD_MUTEX_LOCK 1
9407 _ACEOF
9408
9409 fi
9410
9411   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9412 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9413 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9414   echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416   ac_func_search_save_LIBS=$LIBS
9417 cat >conftest.$ac_ext <<_ACEOF
9418 /* confdefs.h.  */
9419 _ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h.  */
9423
9424 /* Override any GCC internal prototype to avoid an error.
9425    Use char because int might match the return type of a GCC
9426    builtin and then its argument prototype would still apply.  */
9427 #ifdef __cplusplus
9428 extern "C"
9429 #endif
9430 char pthread_rwlock_init ();
9431 int
9432 main ()
9433 {
9434 return pthread_rwlock_init ();
9435   ;
9436   return 0;
9437 }
9438 _ACEOF
9439 for ac_lib in '' pthread; do
9440   if test -z "$ac_lib"; then
9441     ac_res="none required"
9442   else
9443     ac_res=-l$ac_lib
9444     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9445   fi
9446   rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (ac_try="$ac_link"
9448 case "(($ac_try" in
9449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450   *) ac_try_echo=$ac_try;;
9451 esac
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453   (eval "$ac_link") 2>conftest.er1
9454   ac_status=$?
9455   grep -v '^ *+' conftest.er1 >conftest.err
9456   rm -f conftest.er1
9457   cat conftest.err >&5
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); } &&
9460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9461   { (case "(($ac_try" in
9462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463   *) ac_try_echo=$ac_try;;
9464 esac
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466   (eval "$ac_try") 2>&5
9467   ac_status=$?
9468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); }; } &&
9470          { ac_try='test -s conftest$ac_exeext'
9471   { (case "(($ac_try" in
9472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473   *) ac_try_echo=$ac_try;;
9474 esac
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476   (eval "$ac_try") 2>&5
9477   ac_status=$?
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); }; }; then
9480   ac_cv_search_pthread_rwlock_init=$ac_res
9481 else
9482   echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9484
9485
9486 fi
9487
9488 rm -f core conftest.err conftest.$ac_objext \
9489       conftest$ac_exeext
9490   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9491   break
9492 fi
9493 done
9494 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9495   :
9496 else
9497   ac_cv_search_pthread_rwlock_init=no
9498 fi
9499 rm conftest.$ac_ext
9500 LIBS=$ac_func_search_save_LIBS
9501 fi
9502 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9503 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9504 ac_res=$ac_cv_search_pthread_rwlock_init
9505 if test "$ac_res" != no; then
9506   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9507
9508 cat >>confdefs.h <<\_ACEOF
9509 #define HAVE_PTHREAD_RWLOCK_INIT 1
9510 _ACEOF
9511
9512 fi
9513
9514   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9515 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9516 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9517   echo $ECHO_N "(cached) $ECHO_C" >&6
9518 else
9519   ac_func_search_save_LIBS=$LIBS
9520 cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h.  */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h.  */
9526
9527 /* Override any GCC internal prototype to avoid an error.
9528    Use char because int might match the return type of a GCC
9529    builtin and then its argument prototype would still apply.  */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 char pthread_getspecific ();
9534 int
9535 main ()
9536 {
9537 return pthread_getspecific ();
9538   ;
9539   return 0;
9540 }
9541 _ACEOF
9542 for ac_lib in '' pthread; do
9543   if test -z "$ac_lib"; then
9544     ac_res="none required"
9545   else
9546     ac_res=-l$ac_lib
9547     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9548   fi
9549   rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9551 case "(($ac_try" in
9552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553   *) ac_try_echo=$ac_try;;
9554 esac
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556   (eval "$ac_link") 2>conftest.er1
9557   ac_status=$?
9558   grep -v '^ *+' conftest.er1 >conftest.err
9559   rm -f conftest.er1
9560   cat conftest.err >&5
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } &&
9563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9564   { (case "(($ac_try" in
9565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566   *) ac_try_echo=$ac_try;;
9567 esac
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569   (eval "$ac_try") 2>&5
9570   ac_status=$?
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); }; } &&
9573          { ac_try='test -s conftest$ac_exeext'
9574   { (case "(($ac_try" in
9575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576   *) ac_try_echo=$ac_try;;
9577 esac
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579   (eval "$ac_try") 2>&5
9580   ac_status=$?
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); }; }; then
9583   ac_cv_search_pthread_getspecific=$ac_res
9584 else
9585   echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588
9589 fi
9590
9591 rm -f core conftest.err conftest.$ac_objext \
9592       conftest$ac_exeext
9593   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9594   break
9595 fi
9596 done
9597 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9598   :
9599 else
9600   ac_cv_search_pthread_getspecific=no
9601 fi
9602 rm conftest.$ac_ext
9603 LIBS=$ac_func_search_save_LIBS
9604 fi
9605 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9606 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9607 ac_res=$ac_cv_search_pthread_getspecific
9608 if test "$ac_res" != no; then
9609   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9610
9611 cat >>confdefs.h <<\_ACEOF
9612 #define HAVE_PTHREAD_GETSPECIFIC 1
9613 _ACEOF
9614
9615 fi
9616
9617 fi
9618
9619 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9620
9621 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9622 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9623 if test "${ac_cv_lib_z_compress2+set}" = set; then
9624   echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626   ac_check_lib_save_LIBS=$LIBS
9627 LIBS="-lz  $LIBS"
9628 cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h.  */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h.  */
9634
9635 /* Override any GCC internal prototype to avoid an error.
9636    Use char because int might match the return type of a GCC
9637    builtin and then its argument prototype would still apply.  */
9638 #ifdef __cplusplus
9639 extern "C"
9640 #endif
9641 char compress2 ();
9642 int
9643 main ()
9644 {
9645 return compress2 ();
9646   ;
9647   return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (ac_try="$ac_link"
9652 case "(($ac_try" in
9653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654   *) ac_try_echo=$ac_try;;
9655 esac
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657   (eval "$ac_link") 2>conftest.er1
9658   ac_status=$?
9659   grep -v '^ *+' conftest.er1 >conftest.err
9660   rm -f conftest.er1
9661   cat conftest.err >&5
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } &&
9664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9665   { (case "(($ac_try" in
9666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667   *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670   (eval "$ac_try") 2>&5
9671   ac_status=$?
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); }; } &&
9674          { ac_try='test -s conftest$ac_exeext'
9675   { (case "(($ac_try" in
9676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677   *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680   (eval "$ac_try") 2>&5
9681   ac_status=$?
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); }; }; then
9684   ac_cv_lib_z_compress2=yes
9685 else
9686   echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689         ac_cv_lib_z_compress2=no
9690 fi
9691
9692 rm -f core conftest.err conftest.$ac_objext \
9693       conftest$ac_exeext conftest.$ac_ext
9694 LIBS=$ac_check_lib_save_LIBS
9695 fi
9696 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9697 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9698 if test $ac_cv_lib_z_compress2 = yes; then
9699   cat >>confdefs.h <<_ACEOF
9700 #define HAVE_LIBZ 1
9701 _ACEOF
9702
9703   LIBS="-lz $LIBS"
9704
9705 fi
9706
9707 fi
9708
9709
9710 # Check whether --with-oprofile was given.
9711 if test "${with_oprofile+set}" = set; then
9712   withval=$with_oprofile;
9713       USE_OPROFILE=1
9714
9715       case "$withval" in
9716         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9717         no) llvm_cv_oppath=
9718             USE_OPROFILE=0
9719  ;;
9720         *) llvm_cv_oppath="${withval}/lib/oprofile"
9721            CPPFLAGS="-I${withval}/include";;
9722       esac
9723       case $llvm_cv_os_type in
9724         Linux)
9725           if test -n "$llvm_cv_oppath" ; then
9726             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9727                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9728 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9729 if test "${ac_cv_search_bfd_init+set}" = set; then
9730   echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732   ac_func_search_save_LIBS=$LIBS
9733 cat >conftest.$ac_ext <<_ACEOF
9734 /* confdefs.h.  */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h.  */
9739
9740 /* Override any GCC internal prototype to avoid an error.
9741    Use char because int might match the return type of a GCC
9742    builtin and then its argument prototype would still apply.  */
9743 #ifdef __cplusplus
9744 extern "C"
9745 #endif
9746 char bfd_init ();
9747 int
9748 main ()
9749 {
9750 return bfd_init ();
9751   ;
9752   return 0;
9753 }
9754 _ACEOF
9755 for ac_lib in '' bfd; do
9756   if test -z "$ac_lib"; then
9757     ac_res="none required"
9758   else
9759     ac_res=-l$ac_lib
9760     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9761   fi
9762   rm -f conftest.$ac_objext conftest$ac_exeext
9763 if { (ac_try="$ac_link"
9764 case "(($ac_try" in
9765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766   *) ac_try_echo=$ac_try;;
9767 esac
9768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769   (eval "$ac_link") 2>conftest.er1
9770   ac_status=$?
9771   grep -v '^ *+' conftest.er1 >conftest.err
9772   rm -f conftest.er1
9773   cat conftest.err >&5
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); } &&
9776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9777   { (case "(($ac_try" in
9778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779   *) ac_try_echo=$ac_try;;
9780 esac
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782   (eval "$ac_try") 2>&5
9783   ac_status=$?
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); }; } &&
9786          { ac_try='test -s conftest$ac_exeext'
9787   { (case "(($ac_try" in
9788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789   *) ac_try_echo=$ac_try;;
9790 esac
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792   (eval "$ac_try") 2>&5
9793   ac_status=$?
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); }; }; then
9796   ac_cv_search_bfd_init=$ac_res
9797 else
9798   echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9800
9801
9802 fi
9803
9804 rm -f core conftest.err conftest.$ac_objext \
9805       conftest$ac_exeext
9806   if test "${ac_cv_search_bfd_init+set}" = set; then
9807   break
9808 fi
9809 done
9810 if test "${ac_cv_search_bfd_init+set}" = set; then
9811   :
9812 else
9813   ac_cv_search_bfd_init=no
9814 fi
9815 rm conftest.$ac_ext
9816 LIBS=$ac_func_search_save_LIBS
9817 fi
9818 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9819 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9820 ac_res=$ac_cv_search_bfd_init
9821 if test "$ac_res" != no; then
9822   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9823
9824 fi
9825
9826             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9827 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9828 if test "${ac_cv_search_op_open_agent+set}" = set; then
9829   echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831   ac_func_search_save_LIBS=$LIBS
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h.  */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h.  */
9838
9839 /* Override any GCC internal prototype to avoid an error.
9840    Use char because int might match the return type of a GCC
9841    builtin and then its argument prototype would still apply.  */
9842 #ifdef __cplusplus
9843 extern "C"
9844 #endif
9845 char op_open_agent ();
9846 int
9847 main ()
9848 {
9849 return op_open_agent ();
9850   ;
9851   return 0;
9852 }
9853 _ACEOF
9854 for ac_lib in '' opagent; do
9855   if test -z "$ac_lib"; then
9856     ac_res="none required"
9857   else
9858     ac_res=-l$ac_lib
9859     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9860   fi
9861   rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9863 case "(($ac_try" in
9864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865   *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868   (eval "$ac_link") 2>conftest.er1
9869   ac_status=$?
9870   grep -v '^ *+' conftest.er1 >conftest.err
9871   rm -f conftest.er1
9872   cat conftest.err >&5
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); } &&
9875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876   { (case "(($ac_try" in
9877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878   *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881   (eval "$ac_try") 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; } &&
9885          { ac_try='test -s conftest$ac_exeext'
9886   { (case "(($ac_try" in
9887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888   *) ac_try_echo=$ac_try;;
9889 esac
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891   (eval "$ac_try") 2>&5
9892   ac_status=$?
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); }; }; then
9895   ac_cv_search_op_open_agent=$ac_res
9896 else
9897   echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9899
9900
9901 fi
9902
9903 rm -f core conftest.err conftest.$ac_objext \
9904       conftest$ac_exeext
9905   if test "${ac_cv_search_op_open_agent+set}" = set; then
9906   break
9907 fi
9908 done
9909 if test "${ac_cv_search_op_open_agent+set}" = set; then
9910   :
9911 else
9912   ac_cv_search_op_open_agent=no
9913 fi
9914 rm conftest.$ac_ext
9915 LIBS=$ac_func_search_save_LIBS
9916 fi
9917 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9918 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9919 ac_res=$ac_cv_search_op_open_agent
9920 if test "$ac_res" != no; then
9921   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9922
9923 else
9924
9925               echo "Error! You need to have libopagent around."
9926               exit 1
9927
9928 fi
9929
9930             if test "${ac_cv_header_opagent_h+set}" = set; then
9931   { echo "$as_me:$LINENO: checking for opagent.h" >&5
9932 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9933 if test "${ac_cv_header_opagent_h+set}" = set; then
9934   echo $ECHO_N "(cached) $ECHO_C" >&6
9935 fi
9936 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9937 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9938 else
9939   # Is the header compilable?
9940 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9941 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9942 cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h.  */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h.  */
9948 $ac_includes_default
9949 #include <opagent.h>
9950 _ACEOF
9951 rm -f conftest.$ac_objext
9952 if { (ac_try="$ac_compile"
9953 case "(($ac_try" in
9954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955   *) ac_try_echo=$ac_try;;
9956 esac
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958   (eval "$ac_compile") 2>conftest.er1
9959   ac_status=$?
9960   grep -v '^ *+' conftest.er1 >conftest.err
9961   rm -f conftest.er1
9962   cat conftest.err >&5
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } &&
9965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966   { (case "(($ac_try" in
9967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968   *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971   (eval "$ac_try") 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); }; } &&
9975          { ac_try='test -s conftest.$ac_objext'
9976   { (case "(($ac_try" in
9977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978   *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981   (eval "$ac_try") 2>&5
9982   ac_status=$?
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); }; }; then
9985   ac_header_compiler=yes
9986 else
9987   echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990         ac_header_compiler=no
9991 fi
9992
9993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9995 echo "${ECHO_T}$ac_header_compiler" >&6; }
9996
9997 # Is the header present?
9998 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
9999 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10000 cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h.  */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h.  */
10006 #include <opagent.h>
10007 _ACEOF
10008 if { (ac_try="$ac_cpp conftest.$ac_ext"
10009 case "(($ac_try" in
10010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011   *) ac_try_echo=$ac_try;;
10012 esac
10013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10015   ac_status=$?
10016   grep -v '^ *+' conftest.er1 >conftest.err
10017   rm -f conftest.er1
10018   cat conftest.err >&5
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); } >/dev/null; then
10021   if test -s conftest.err; then
10022     ac_cpp_err=$ac_c_preproc_warn_flag
10023     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10024   else
10025     ac_cpp_err=
10026   fi
10027 else
10028   ac_cpp_err=yes
10029 fi
10030 if test -z "$ac_cpp_err"; then
10031   ac_header_preproc=yes
10032 else
10033   echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036   ac_header_preproc=no
10037 fi
10038
10039 rm -f conftest.err conftest.$ac_ext
10040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10041 echo "${ECHO_T}$ac_header_preproc" >&6; }
10042
10043 # So?  What about this header?
10044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10045   yes:no: )
10046     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10047 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10048     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10049 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10050     ac_header_preproc=yes
10051     ;;
10052   no:yes:* )
10053     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10054 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10055     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10056 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10057     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10058 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10059     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10060 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10061     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10062 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10063     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10064 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10065     ( cat <<\_ASBOX
10066 ## ------------------------------------ ##
10067 ## Report this to http://llvm.org/bugs/ ##
10068 ## ------------------------------------ ##
10069 _ASBOX
10070      ) | sed "s/^/$as_me: WARNING:     /" >&2
10071     ;;
10072 esac
10073 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10074 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10075 if test "${ac_cv_header_opagent_h+set}" = set; then
10076   echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078   ac_cv_header_opagent_h=$ac_header_preproc
10079 fi
10080 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10081 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10082
10083 fi
10084 if test $ac_cv_header_opagent_h = yes; then
10085   :
10086 else
10087
10088               echo "Error! You need to have opagent.h around."
10089               exit 1
10090
10091 fi
10092
10093
10094           fi ;;
10095         *)
10096           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10097 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10098    { (exit 1); exit 1; }; } ;;
10099       esac
10100
10101 else
10102
10103       USE_OPROFILE=0
10104
10105
10106 fi
10107
10108
10109 cat >>confdefs.h <<_ACEOF
10110 #define LLVM_USE_OPROFILE $USE_OPROFILE
10111 _ACEOF
10112
10113
10114
10115 # Check whether --with-intel-jitevents was given.
10116 if test "${with_intel_jitevents+set}" = set; then
10117   withval=$with_intel_jitevents;
10118        case "$withval" in
10119           yes) USE_INTEL_JITEVENTS=1
10120 ;;
10121           no)  USE_INTEL_JITEVENTS=0
10122 ;;
10123           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10124 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10125    { (exit 1); exit 1; }; };;
10126        esac
10127
10128       case $llvm_cv_os_type in
10129         Linux|Win32|Cygwin|MingW) ;;
10130         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10131 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10132    { (exit 1); exit 1; }; };;
10133       esac
10134
10135       case "$llvm_cv_target_arch" in
10136         x86|x86_64) ;;
10137         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10138 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10139    { (exit 1); exit 1; }; };;
10140       esac
10141
10142 else
10143
10144       USE_INTEL_JITEVENTS=0
10145
10146
10147 fi
10148
10149
10150 cat >>confdefs.h <<_ACEOF
10151 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10152 _ACEOF
10153
10154
10155 for ac_prog in xml2-config
10156 do
10157   # Extract the first word of "$ac_prog", so it can be a program name with args.
10158 set dummy $ac_prog; ac_word=$2
10159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10161 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10162   echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164   if test -n "$XML2CONFIG"; then
10165   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10166 else
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10169 do
10170   IFS=$as_save_IFS
10171   test -z "$as_dir" && as_dir=.
10172   for ac_exec_ext in '' $ac_executable_extensions; do
10173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10174     ac_cv_prog_XML2CONFIG="$ac_prog"
10175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10176     break 2
10177   fi
10178 done
10179 done
10180 IFS=$as_save_IFS
10181
10182 fi
10183 fi
10184 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10185 if test -n "$XML2CONFIG"; then
10186   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10187 echo "${ECHO_T}$XML2CONFIG" >&6; }
10188 else
10189   { echo "$as_me:$LINENO: result: no" >&5
10190 echo "${ECHO_T}no" >&6; }
10191 fi
10192
10193
10194   test -n "$XML2CONFIG" && break
10195 done
10196
10197
10198 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10199 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10200 if test "x$XML2CONFIG" = "x"; then
10201  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10202 echo "${ECHO_T}xml2-config not found" >&6; }
10203 else
10204  LIBXML2_INC=`$XML2CONFIG --cflags`
10205  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10206 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10207  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10208 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10209 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10210   echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212   ac_check_lib_save_LIBS=$LIBS
10213 LIBS="-lxml2  $LIBS"
10214 cat >conftest.$ac_ext <<_ACEOF
10215 /* confdefs.h.  */
10216 _ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h.  */
10220
10221 /* Override any GCC internal prototype to avoid an error.
10222    Use char because int might match the return type of a GCC
10223    builtin and then its argument prototype would still apply.  */
10224 #ifdef __cplusplus
10225 extern "C"
10226 #endif
10227 char xmlReadFile ();
10228 int
10229 main ()
10230 {
10231 return xmlReadFile ();
10232   ;
10233   return 0;
10234 }
10235 _ACEOF
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240   *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243   (eval "$ac_link") 2>conftest.er1
10244   ac_status=$?
10245   grep -v '^ *+' conftest.er1 >conftest.err
10246   rm -f conftest.er1
10247   cat conftest.err >&5
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); } &&
10250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10251   { (case "(($ac_try" in
10252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253   *) ac_try_echo=$ac_try;;
10254 esac
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256   (eval "$ac_try") 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); }; } &&
10260          { ac_try='test -s conftest$ac_exeext'
10261   { (case "(($ac_try" in
10262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263   *) ac_try_echo=$ac_try;;
10264 esac
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266   (eval "$ac_try") 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); }; }; then
10270   ac_cv_lib_xml2_xmlReadFile=yes
10271 else
10272   echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10274
10275         ac_cv_lib_xml2_xmlReadFile=no
10276 fi
10277
10278 rm -f core conftest.err conftest.$ac_objext \
10279       conftest$ac_exeext conftest.$ac_ext
10280 LIBS=$ac_check_lib_save_LIBS
10281 fi
10282 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10283 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10284 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10285
10286 cat >>confdefs.h <<\_ACEOF
10287 #define CLANG_HAVE_LIBXML 1
10288 _ACEOF
10289
10290                                 LIBXML2_LIBS="-lxml2"
10291 fi
10292
10293 fi
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303 ac_header_dirent=no
10304 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10305   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10306 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10307 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10309   echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311   cat >conftest.$ac_ext <<_ACEOF
10312 /* confdefs.h.  */
10313 _ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h.  */
10317 #include <sys/types.h>
10318 #include <$ac_hdr>
10319
10320 int
10321 main ()
10322 {
10323 if ((DIR *) 0)
10324 return 0;
10325   ;
10326   return 0;
10327 }
10328 _ACEOF
10329 rm -f conftest.$ac_objext
10330 if { (ac_try="$ac_compile"
10331 case "(($ac_try" in
10332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333   *) ac_try_echo=$ac_try;;
10334 esac
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336   (eval "$ac_compile") 2>conftest.er1
10337   ac_status=$?
10338   grep -v '^ *+' conftest.er1 >conftest.err
10339   rm -f conftest.er1
10340   cat conftest.err >&5
10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342   (exit $ac_status); } &&
10343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10344   { (case "(($ac_try" in
10345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346   *) ac_try_echo=$ac_try;;
10347 esac
10348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10349   (eval "$ac_try") 2>&5
10350   ac_status=$?
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); }; } &&
10353          { ac_try='test -s conftest.$ac_objext'
10354   { (case "(($ac_try" in
10355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356   *) ac_try_echo=$ac_try;;
10357 esac
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359   (eval "$ac_try") 2>&5
10360   ac_status=$?
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); }; }; then
10363   eval "$as_ac_Header=yes"
10364 else
10365   echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10367
10368         eval "$as_ac_Header=no"
10369 fi
10370
10371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372 fi
10373 ac_res=`eval echo '${'$as_ac_Header'}'`
10374                { echo "$as_me:$LINENO: result: $ac_res" >&5
10375 echo "${ECHO_T}$ac_res" >&6; }
10376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10377   cat >>confdefs.h <<_ACEOF
10378 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10379 _ACEOF
10380
10381 ac_header_dirent=$ac_hdr; break
10382 fi
10383
10384 done
10385 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10386 if test $ac_header_dirent = dirent.h; then
10387   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10388 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10389 if test "${ac_cv_search_opendir+set}" = set; then
10390   echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392   ac_func_search_save_LIBS=$LIBS
10393 cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h.  */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h.  */
10399
10400 /* Override any GCC internal prototype to avoid an error.
10401    Use char because int might match the return type of a GCC
10402    builtin and then its argument prototype would still apply.  */
10403 #ifdef __cplusplus
10404 extern "C"
10405 #endif
10406 char opendir ();
10407 int
10408 main ()
10409 {
10410 return opendir ();
10411   ;
10412   return 0;
10413 }
10414 _ACEOF
10415 for ac_lib in '' dir; do
10416   if test -z "$ac_lib"; then
10417     ac_res="none required"
10418   else
10419     ac_res=-l$ac_lib
10420     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10421   fi
10422   rm -f conftest.$ac_objext conftest$ac_exeext
10423 if { (ac_try="$ac_link"
10424 case "(($ac_try" in
10425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426   *) ac_try_echo=$ac_try;;
10427 esac
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429   (eval "$ac_link") 2>conftest.er1
10430   ac_status=$?
10431   grep -v '^ *+' conftest.er1 >conftest.err
10432   rm -f conftest.er1
10433   cat conftest.err >&5
10434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435   (exit $ac_status); } &&
10436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10437   { (case "(($ac_try" in
10438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439   *) ac_try_echo=$ac_try;;
10440 esac
10441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442   (eval "$ac_try") 2>&5
10443   ac_status=$?
10444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445   (exit $ac_status); }; } &&
10446          { ac_try='test -s conftest$ac_exeext'
10447   { (case "(($ac_try" in
10448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449   *) ac_try_echo=$ac_try;;
10450 esac
10451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452   (eval "$ac_try") 2>&5
10453   ac_status=$?
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); }; }; then
10456   ac_cv_search_opendir=$ac_res
10457 else
10458   echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10460
10461
10462 fi
10463
10464 rm -f core conftest.err conftest.$ac_objext \
10465       conftest$ac_exeext
10466   if test "${ac_cv_search_opendir+set}" = set; then
10467   break
10468 fi
10469 done
10470 if test "${ac_cv_search_opendir+set}" = set; then
10471   :
10472 else
10473   ac_cv_search_opendir=no
10474 fi
10475 rm conftest.$ac_ext
10476 LIBS=$ac_func_search_save_LIBS
10477 fi
10478 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10479 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10480 ac_res=$ac_cv_search_opendir
10481 if test "$ac_res" != no; then
10482   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10483
10484 fi
10485
10486 else
10487   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10488 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10489 if test "${ac_cv_search_opendir+set}" = set; then
10490   echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492   ac_func_search_save_LIBS=$LIBS
10493 cat >conftest.$ac_ext <<_ACEOF
10494 /* confdefs.h.  */
10495 _ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h.  */
10499
10500 /* Override any GCC internal prototype to avoid an error.
10501    Use char because int might match the return type of a GCC
10502    builtin and then its argument prototype would still apply.  */
10503 #ifdef __cplusplus
10504 extern "C"
10505 #endif
10506 char opendir ();
10507 int
10508 main ()
10509 {
10510 return opendir ();
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 for ac_lib in '' x; do
10516   if test -z "$ac_lib"; then
10517     ac_res="none required"
10518   else
10519     ac_res=-l$ac_lib
10520     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10521   fi
10522   rm -f conftest.$ac_objext conftest$ac_exeext
10523 if { (ac_try="$ac_link"
10524 case "(($ac_try" in
10525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526   *) ac_try_echo=$ac_try;;
10527 esac
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529   (eval "$ac_link") 2>conftest.er1
10530   ac_status=$?
10531   grep -v '^ *+' conftest.er1 >conftest.err
10532   rm -f conftest.er1
10533   cat conftest.err >&5
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); } &&
10536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10537   { (case "(($ac_try" in
10538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539   *) ac_try_echo=$ac_try;;
10540 esac
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542   (eval "$ac_try") 2>&5
10543   ac_status=$?
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); }; } &&
10546          { ac_try='test -s conftest$ac_exeext'
10547   { (case "(($ac_try" in
10548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549   *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552   (eval "$ac_try") 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; }; then
10556   ac_cv_search_opendir=$ac_res
10557 else
10558   echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561
10562 fi
10563
10564 rm -f core conftest.err conftest.$ac_objext \
10565       conftest$ac_exeext
10566   if test "${ac_cv_search_opendir+set}" = set; then
10567   break
10568 fi
10569 done
10570 if test "${ac_cv_search_opendir+set}" = set; then
10571   :
10572 else
10573   ac_cv_search_opendir=no
10574 fi
10575 rm conftest.$ac_ext
10576 LIBS=$ac_func_search_save_LIBS
10577 fi
10578 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10579 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10580 ac_res=$ac_cv_search_opendir
10581 if test "$ac_res" != no; then
10582   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10583
10584 fi
10585
10586 fi
10587
10588 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10589 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10590 if test "${ac_cv_header_mmap_anon+set}" = set; then
10591   echo $ECHO_N "(cached) $ECHO_C" >&6
10592 else
10593    ac_ext=c
10594 ac_cpp='$CPP $CPPFLAGS'
10595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10598
10599   cat >conftest.$ac_ext <<_ACEOF
10600 /* confdefs.h.  */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h.  */
10605 #include <sys/mman.h>
10606 #include <unistd.h>
10607 #include <fcntl.h>
10608 int
10609 main ()
10610 {
10611 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10612   ;
10613   return 0;
10614 }
10615 _ACEOF
10616 rm -f conftest.$ac_objext
10617 if { (ac_try="$ac_compile"
10618 case "(($ac_try" in
10619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620   *) ac_try_echo=$ac_try;;
10621 esac
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623   (eval "$ac_compile") 2>conftest.er1
10624   ac_status=$?
10625   grep -v '^ *+' conftest.er1 >conftest.err
10626   rm -f conftest.er1
10627   cat conftest.err >&5
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); } &&
10630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10631   { (case "(($ac_try" in
10632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633   *) ac_try_echo=$ac_try;;
10634 esac
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636   (eval "$ac_try") 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); }; } &&
10640          { ac_try='test -s conftest.$ac_objext'
10641   { (case "(($ac_try" in
10642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643   *) ac_try_echo=$ac_try;;
10644 esac
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646   (eval "$ac_try") 2>&5
10647   ac_status=$?
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   (exit $ac_status); }; }; then
10650   ac_cv_header_mmap_anon=yes
10651 else
10652   echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10654
10655         ac_cv_header_mmap_anon=no
10656 fi
10657
10658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10659   ac_ext=c
10660 ac_cpp='$CPP $CPPFLAGS'
10661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10664
10665
10666 fi
10667 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10668 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10669 if test "$ac_cv_header_mmap_anon" = yes; then
10670
10671 cat >>confdefs.h <<\_ACEOF
10672 #define HAVE_MMAP_ANONYMOUS 1
10673 _ACEOF
10674
10675 fi
10676
10677 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10678 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10679 if test "${ac_cv_header_stat_broken+set}" = set; then
10680   echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682   cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h.  */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h.  */
10688 #include <sys/types.h>
10689 #include <sys/stat.h>
10690
10691 #if defined S_ISBLK && defined S_IFDIR
10692 # if S_ISBLK (S_IFDIR)
10693 You lose.
10694 # endif
10695 #endif
10696
10697 #if defined S_ISBLK && defined S_IFCHR
10698 # if S_ISBLK (S_IFCHR)
10699 You lose.
10700 # endif
10701 #endif
10702
10703 #if defined S_ISLNK && defined S_IFREG
10704 # if S_ISLNK (S_IFREG)
10705 You lose.
10706 # endif
10707 #endif
10708
10709 #if defined S_ISSOCK && defined S_IFREG
10710 # if S_ISSOCK (S_IFREG)
10711 You lose.
10712 # endif
10713 #endif
10714
10715 _ACEOF
10716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10717   $EGREP "You lose" >/dev/null 2>&1; then
10718   ac_cv_header_stat_broken=yes
10719 else
10720   ac_cv_header_stat_broken=no
10721 fi
10722 rm -f conftest*
10723
10724 fi
10725 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10726 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10727 if test $ac_cv_header_stat_broken = yes; then
10728
10729 cat >>confdefs.h <<\_ACEOF
10730 #define STAT_MACROS_BROKEN 1
10731 _ACEOF
10732
10733 fi
10734
10735 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10736 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10737 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10738   echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740   cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h.  */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h.  */
10746 #include <sys/types.h>
10747 #include <sys/wait.h>
10748 #ifndef WEXITSTATUS
10749 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10750 #endif
10751 #ifndef WIFEXITED
10752 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10753 #endif
10754
10755 int
10756 main ()
10757 {
10758   int s;
10759   wait (&s);
10760   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10761   ;
10762   return 0;
10763 }
10764 _ACEOF
10765 rm -f conftest.$ac_objext
10766 if { (ac_try="$ac_compile"
10767 case "(($ac_try" in
10768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769   *) ac_try_echo=$ac_try;;
10770 esac
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772   (eval "$ac_compile") 2>conftest.er1
10773   ac_status=$?
10774   grep -v '^ *+' conftest.er1 >conftest.err
10775   rm -f conftest.er1
10776   cat conftest.err >&5
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); } &&
10779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10780   { (case "(($ac_try" in
10781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782   *) ac_try_echo=$ac_try;;
10783 esac
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785   (eval "$ac_try") 2>&5
10786   ac_status=$?
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); }; } &&
10789          { ac_try='test -s conftest.$ac_objext'
10790   { (case "(($ac_try" in
10791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792   *) ac_try_echo=$ac_try;;
10793 esac
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795   (eval "$ac_try") 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); }; }; then
10799   ac_cv_header_sys_wait_h=yes
10800 else
10801   echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10803
10804         ac_cv_header_sys_wait_h=no
10805 fi
10806
10807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808 fi
10809 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10810 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10811 if test $ac_cv_header_sys_wait_h = yes; then
10812
10813 cat >>confdefs.h <<\_ACEOF
10814 #define HAVE_SYS_WAIT_H 1
10815 _ACEOF
10816
10817 fi
10818
10819 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10820 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10821 if test "${ac_cv_header_time+set}" = set; then
10822   echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824   cat >conftest.$ac_ext <<_ACEOF
10825 /* confdefs.h.  */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h.  */
10830 #include <sys/types.h>
10831 #include <sys/time.h>
10832 #include <time.h>
10833
10834 int
10835 main ()
10836 {
10837 if ((struct tm *) 0)
10838 return 0;
10839   ;
10840   return 0;
10841 }
10842 _ACEOF
10843 rm -f conftest.$ac_objext
10844 if { (ac_try="$ac_compile"
10845 case "(($ac_try" in
10846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847   *) ac_try_echo=$ac_try;;
10848 esac
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850   (eval "$ac_compile") 2>conftest.er1
10851   ac_status=$?
10852   grep -v '^ *+' conftest.er1 >conftest.err
10853   rm -f conftest.er1
10854   cat conftest.err >&5
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); } &&
10857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10858   { (case "(($ac_try" in
10859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860   *) ac_try_echo=$ac_try;;
10861 esac
10862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863   (eval "$ac_try") 2>&5
10864   ac_status=$?
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); }; } &&
10867          { ac_try='test -s conftest.$ac_objext'
10868   { (case "(($ac_try" in
10869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870   *) ac_try_echo=$ac_try;;
10871 esac
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873   (eval "$ac_try") 2>&5
10874   ac_status=$?
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); }; }; then
10877   ac_cv_header_time=yes
10878 else
10879   echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10881
10882         ac_cv_header_time=no
10883 fi
10884
10885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10886 fi
10887 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10888 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10889 if test $ac_cv_header_time = yes; then
10890
10891 cat >>confdefs.h <<\_ACEOF
10892 #define TIME_WITH_SYS_TIME 1
10893 _ACEOF
10894
10895 fi
10896
10897
10898 ac_ext=cpp
10899 ac_cpp='$CXXCPP $CPPFLAGS'
10900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10903
10904
10905 for ac_header in cxxabi.h
10906 do
10907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911   echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913   cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h.  */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h.  */
10919 #include <stddef.h>
10920
10921
10922 #include <$ac_header>
10923 _ACEOF
10924 rm -f conftest.$ac_objext
10925 if { (ac_try="$ac_compile"
10926 case "(($ac_try" in
10927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928   *) ac_try_echo=$ac_try;;
10929 esac
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931   (eval "$ac_compile") 2>conftest.er1
10932   ac_status=$?
10933   grep -v '^ *+' conftest.er1 >conftest.err
10934   rm -f conftest.er1
10935   cat conftest.err >&5
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); } &&
10938          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10939   { (case "(($ac_try" in
10940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941   *) ac_try_echo=$ac_try;;
10942 esac
10943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944   (eval "$ac_try") 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); }; } &&
10948          { ac_try='test -s conftest.$ac_objext'
10949   { (case "(($ac_try" in
10950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951   *) ac_try_echo=$ac_try;;
10952 esac
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954   (eval "$ac_try") 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; }; then
10958   eval "$as_ac_Header=yes"
10959 else
10960   echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10962
10963         eval "$as_ac_Header=no"
10964 fi
10965
10966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10967 fi
10968 ac_res=`eval echo '${'$as_ac_Header'}'`
10969                { echo "$as_me:$LINENO: result: $ac_res" >&5
10970 echo "${ECHO_T}$ac_res" >&6; }
10971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10972   cat >>confdefs.h <<_ACEOF
10973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10974 _ACEOF
10975
10976 fi
10977
10978 done
10979
10980 ac_ext=c
10981 ac_cpp='$CPP $CPPFLAGS'
10982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10985
10986
10987
10988
10989
10990
10991
10992 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
10993 do
10994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10996   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10999   echo $ECHO_N "(cached) $ECHO_C" >&6
11000 fi
11001 ac_res=`eval echo '${'$as_ac_Header'}'`
11002                { echo "$as_me:$LINENO: result: $ac_res" >&5
11003 echo "${ECHO_T}$ac_res" >&6; }
11004 else
11005   # Is the header compilable?
11006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11008 cat >conftest.$ac_ext <<_ACEOF
11009 /* confdefs.h.  */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h.  */
11014 $ac_includes_default
11015 #include <$ac_header>
11016 _ACEOF
11017 rm -f conftest.$ac_objext
11018 if { (ac_try="$ac_compile"
11019 case "(($ac_try" in
11020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021   *) ac_try_echo=$ac_try;;
11022 esac
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024   (eval "$ac_compile") 2>conftest.er1
11025   ac_status=$?
11026   grep -v '^ *+' conftest.er1 >conftest.err
11027   rm -f conftest.er1
11028   cat conftest.err >&5
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); } &&
11031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11032   { (case "(($ac_try" in
11033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034   *) ac_try_echo=$ac_try;;
11035 esac
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037   (eval "$ac_try") 2>&5
11038   ac_status=$?
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); }; } &&
11041          { ac_try='test -s conftest.$ac_objext'
11042   { (case "(($ac_try" in
11043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044   *) ac_try_echo=$ac_try;;
11045 esac
11046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047   (eval "$ac_try") 2>&5
11048   ac_status=$?
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); }; }; then
11051   ac_header_compiler=yes
11052 else
11053   echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11055
11056         ac_header_compiler=no
11057 fi
11058
11059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11061 echo "${ECHO_T}$ac_header_compiler" >&6; }
11062
11063 # Is the header present?
11064 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11066 cat >conftest.$ac_ext <<_ACEOF
11067 /* confdefs.h.  */
11068 _ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h.  */
11072 #include <$ac_header>
11073 _ACEOF
11074 if { (ac_try="$ac_cpp conftest.$ac_ext"
11075 case "(($ac_try" in
11076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077   *) ac_try_echo=$ac_try;;
11078 esac
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11081   ac_status=$?
11082   grep -v '^ *+' conftest.er1 >conftest.err
11083   rm -f conftest.er1
11084   cat conftest.err >&5
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); } >/dev/null; then
11087   if test -s conftest.err; then
11088     ac_cpp_err=$ac_c_preproc_warn_flag
11089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11090   else
11091     ac_cpp_err=
11092   fi
11093 else
11094   ac_cpp_err=yes
11095 fi
11096 if test -z "$ac_cpp_err"; then
11097   ac_header_preproc=yes
11098 else
11099   echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102   ac_header_preproc=no
11103 fi
11104
11105 rm -f conftest.err conftest.$ac_ext
11106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11107 echo "${ECHO_T}$ac_header_preproc" >&6; }
11108
11109 # So?  What about this header?
11110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11111   yes:no: )
11112     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11116     ac_header_preproc=yes
11117     ;;
11118   no:yes:* )
11119     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11121     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11122 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11123     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11125     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11126 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11129     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11131     ( cat <<\_ASBOX
11132 ## ------------------------------------ ##
11133 ## Report this to http://llvm.org/bugs/ ##
11134 ## ------------------------------------ ##
11135 _ASBOX
11136      ) | sed "s/^/$as_me: WARNING:     /" >&2
11137     ;;
11138 esac
11139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11142   echo $ECHO_N "(cached) $ECHO_C" >&6
11143 else
11144   eval "$as_ac_Header=\$ac_header_preproc"
11145 fi
11146 ac_res=`eval echo '${'$as_ac_Header'}'`
11147                { echo "$as_me:$LINENO: result: $ac_res" >&5
11148 echo "${ECHO_T}$ac_res" >&6; }
11149
11150 fi
11151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11152   cat >>confdefs.h <<_ACEOF
11153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11154 _ACEOF
11155
11156 fi
11157
11158 done
11159
11160
11161
11162
11163
11164
11165
11166 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11167 do
11168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11170   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11173   echo $ECHO_N "(cached) $ECHO_C" >&6
11174 fi
11175 ac_res=`eval echo '${'$as_ac_Header'}'`
11176                { echo "$as_me:$LINENO: result: $ac_res" >&5
11177 echo "${ECHO_T}$ac_res" >&6; }
11178 else
11179   # Is the header compilable?
11180 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11182 cat >conftest.$ac_ext <<_ACEOF
11183 /* confdefs.h.  */
11184 _ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h.  */
11188 $ac_includes_default
11189 #include <$ac_header>
11190 _ACEOF
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195   *) ac_try_echo=$ac_try;;
11196 esac
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198   (eval "$ac_compile") 2>conftest.er1
11199   ac_status=$?
11200   grep -v '^ *+' conftest.er1 >conftest.err
11201   rm -f conftest.er1
11202   cat conftest.err >&5
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   (exit $ac_status); } &&
11205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11212   ac_status=$?
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); }; } &&
11215          { ac_try='test -s conftest.$ac_objext'
11216   { (case "(($ac_try" in
11217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218   *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221   (eval "$ac_try") 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); }; }; then
11225   ac_header_compiler=yes
11226 else
11227   echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11229
11230         ac_header_compiler=no
11231 fi
11232
11233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11235 echo "${ECHO_T}$ac_header_compiler" >&6; }
11236
11237 # Is the header present?
11238 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h.  */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h.  */
11246 #include <$ac_header>
11247 _ACEOF
11248 if { (ac_try="$ac_cpp conftest.$ac_ext"
11249 case "(($ac_try" in
11250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251   *) ac_try_echo=$ac_try;;
11252 esac
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11255   ac_status=$?
11256   grep -v '^ *+' conftest.er1 >conftest.err
11257   rm -f conftest.er1
11258   cat conftest.err >&5
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); } >/dev/null; then
11261   if test -s conftest.err; then
11262     ac_cpp_err=$ac_c_preproc_warn_flag
11263     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11264   else
11265     ac_cpp_err=
11266   fi
11267 else
11268   ac_cpp_err=yes
11269 fi
11270 if test -z "$ac_cpp_err"; then
11271   ac_header_preproc=yes
11272 else
11273   echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11275
11276   ac_header_preproc=no
11277 fi
11278
11279 rm -f conftest.err conftest.$ac_ext
11280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11281 echo "${ECHO_T}$ac_header_preproc" >&6; }
11282
11283 # So?  What about this header?
11284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11285   yes:no: )
11286     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11290     ac_header_preproc=yes
11291     ;;
11292   no:yes:* )
11293     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11295     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11296 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11297     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11299     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11300 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11303     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11305     ( cat <<\_ASBOX
11306 ## ------------------------------------ ##
11307 ## Report this to http://llvm.org/bugs/ ##
11308 ## ------------------------------------ ##
11309 _ASBOX
11310      ) | sed "s/^/$as_me: WARNING:     /" >&2
11311     ;;
11312 esac
11313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11316   echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318   eval "$as_ac_Header=\$ac_header_preproc"
11319 fi
11320 ac_res=`eval echo '${'$as_ac_Header'}'`
11321                { echo "$as_me:$LINENO: result: $ac_res" >&5
11322 echo "${ECHO_T}$ac_res" >&6; }
11323
11324 fi
11325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11326   cat >>confdefs.h <<_ACEOF
11327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11328 _ACEOF
11329
11330 fi
11331
11332 done
11333
11334
11335 for ac_header in utime.h
11336 do
11337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11339   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11342   echo $ECHO_N "(cached) $ECHO_C" >&6
11343 fi
11344 ac_res=`eval echo '${'$as_ac_Header'}'`
11345                { echo "$as_me:$LINENO: result: $ac_res" >&5
11346 echo "${ECHO_T}$ac_res" >&6; }
11347 else
11348   # Is the header compilable?
11349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11351 cat >conftest.$ac_ext <<_ACEOF
11352 /* confdefs.h.  */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h.  */
11357 $ac_includes_default
11358 #include <$ac_header>
11359 _ACEOF
11360 rm -f conftest.$ac_objext
11361 if { (ac_try="$ac_compile"
11362 case "(($ac_try" in
11363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364   *) ac_try_echo=$ac_try;;
11365 esac
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367   (eval "$ac_compile") 2>conftest.er1
11368   ac_status=$?
11369   grep -v '^ *+' conftest.er1 >conftest.err
11370   rm -f conftest.er1
11371   cat conftest.err >&5
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); } &&
11374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11375   { (case "(($ac_try" in
11376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377   *) ac_try_echo=$ac_try;;
11378 esac
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380   (eval "$ac_try") 2>&5
11381   ac_status=$?
11382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); }; } &&
11384          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); }; }; then
11394   ac_header_compiler=yes
11395 else
11396   echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11398
11399         ac_header_compiler=no
11400 fi
11401
11402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11404 echo "${ECHO_T}$ac_header_compiler" >&6; }
11405
11406 # Is the header present?
11407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11409 cat >conftest.$ac_ext <<_ACEOF
11410 /* confdefs.h.  */
11411 _ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h.  */
11415 #include <$ac_header>
11416 _ACEOF
11417 if { (ac_try="$ac_cpp conftest.$ac_ext"
11418 case "(($ac_try" in
11419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420   *) ac_try_echo=$ac_try;;
11421 esac
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11424   ac_status=$?
11425   grep -v '^ *+' conftest.er1 >conftest.err
11426   rm -f conftest.er1
11427   cat conftest.err >&5
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); } >/dev/null; then
11430   if test -s conftest.err; then
11431     ac_cpp_err=$ac_c_preproc_warn_flag
11432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11433   else
11434     ac_cpp_err=
11435   fi
11436 else
11437   ac_cpp_err=yes
11438 fi
11439 if test -z "$ac_cpp_err"; then
11440   ac_header_preproc=yes
11441 else
11442   echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11444
11445   ac_header_preproc=no
11446 fi
11447
11448 rm -f conftest.err conftest.$ac_ext
11449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11450 echo "${ECHO_T}$ac_header_preproc" >&6; }
11451
11452 # So?  What about this header?
11453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11454   yes:no: )
11455     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11459     ac_header_preproc=yes
11460     ;;
11461   no:yes:* )
11462     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11464     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11465 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11466     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11468     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11469 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11472     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11474     ( cat <<\_ASBOX
11475 ## ------------------------------------ ##
11476 ## Report this to http://llvm.org/bugs/ ##
11477 ## ------------------------------------ ##
11478 _ASBOX
11479      ) | sed "s/^/$as_me: WARNING:     /" >&2
11480     ;;
11481 esac
11482 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485   echo $ECHO_N "(cached) $ECHO_C" >&6
11486 else
11487   eval "$as_ac_Header=\$ac_header_preproc"
11488 fi
11489 ac_res=`eval echo '${'$as_ac_Header'}'`
11490                { echo "$as_me:$LINENO: result: $ac_res" >&5
11491 echo "${ECHO_T}$ac_res" >&6; }
11492
11493 fi
11494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11495   cat >>confdefs.h <<_ACEOF
11496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11497 _ACEOF
11498
11499 fi
11500
11501 done
11502
11503
11504
11505
11506
11507
11508 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11509 do
11510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11512   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11515   echo $ECHO_N "(cached) $ECHO_C" >&6
11516 fi
11517 ac_res=`eval echo '${'$as_ac_Header'}'`
11518                { echo "$as_me:$LINENO: result: $ac_res" >&5
11519 echo "${ECHO_T}$ac_res" >&6; }
11520 else
11521   # Is the header compilable?
11522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11524 cat >conftest.$ac_ext <<_ACEOF
11525 /* confdefs.h.  */
11526 _ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h.  */
11530 $ac_includes_default
11531 #include <$ac_header>
11532 _ACEOF
11533 rm -f conftest.$ac_objext
11534 if { (ac_try="$ac_compile"
11535 case "(($ac_try" in
11536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537   *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540   (eval "$ac_compile") 2>conftest.er1
11541   ac_status=$?
11542   grep -v '^ *+' conftest.er1 >conftest.err
11543   rm -f conftest.er1
11544   cat conftest.err >&5
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); } &&
11547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11548   { (case "(($ac_try" in
11549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550   *) ac_try_echo=$ac_try;;
11551 esac
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553   (eval "$ac_try") 2>&5
11554   ac_status=$?
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); }; } &&
11557          { ac_try='test -s conftest.$ac_objext'
11558   { (case "(($ac_try" in
11559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560   *) ac_try_echo=$ac_try;;
11561 esac
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563   (eval "$ac_try") 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); }; }; then
11567   ac_header_compiler=yes
11568 else
11569   echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572         ac_header_compiler=no
11573 fi
11574
11575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11577 echo "${ECHO_T}$ac_header_compiler" >&6; }
11578
11579 # Is the header present?
11580 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11582 cat >conftest.$ac_ext <<_ACEOF
11583 /* confdefs.h.  */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h.  */
11588 #include <$ac_header>
11589 _ACEOF
11590 if { (ac_try="$ac_cpp conftest.$ac_ext"
11591 case "(($ac_try" in
11592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593   *) ac_try_echo=$ac_try;;
11594 esac
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11597   ac_status=$?
11598   grep -v '^ *+' conftest.er1 >conftest.err
11599   rm -f conftest.er1
11600   cat conftest.err >&5
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); } >/dev/null; then
11603   if test -s conftest.err; then
11604     ac_cpp_err=$ac_c_preproc_warn_flag
11605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11606   else
11607     ac_cpp_err=
11608   fi
11609 else
11610   ac_cpp_err=yes
11611 fi
11612 if test -z "$ac_cpp_err"; then
11613   ac_header_preproc=yes
11614 else
11615   echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11617
11618   ac_header_preproc=no
11619 fi
11620
11621 rm -f conftest.err conftest.$ac_ext
11622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11623 echo "${ECHO_T}$ac_header_preproc" >&6; }
11624
11625 # So?  What about this header?
11626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11627   yes:no: )
11628     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11632     ac_header_preproc=yes
11633     ;;
11634   no:yes:* )
11635     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11637     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11638 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11639     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11641     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11642 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11645     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11647     ( cat <<\_ASBOX
11648 ## ------------------------------------ ##
11649 ## Report this to http://llvm.org/bugs/ ##
11650 ## ------------------------------------ ##
11651 _ASBOX
11652      ) | sed "s/^/$as_me: WARNING:     /" >&2
11653     ;;
11654 esac
11655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658   echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660   eval "$as_ac_Header=\$ac_header_preproc"
11661 fi
11662 ac_res=`eval echo '${'$as_ac_Header'}'`
11663                { echo "$as_me:$LINENO: result: $ac_res" >&5
11664 echo "${ECHO_T}$ac_res" >&6; }
11665
11666 fi
11667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11668   cat >>confdefs.h <<_ACEOF
11669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11670 _ACEOF
11671
11672 fi
11673
11674 done
11675
11676
11677
11678
11679 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11680 do
11681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11683   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11686   echo $ECHO_N "(cached) $ECHO_C" >&6
11687 fi
11688 ac_res=`eval echo '${'$as_ac_Header'}'`
11689                { echo "$as_me:$LINENO: result: $ac_res" >&5
11690 echo "${ECHO_T}$ac_res" >&6; }
11691 else
11692   # Is the header compilable?
11693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11695 cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h.  */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h.  */
11701 $ac_includes_default
11702 #include <$ac_header>
11703 _ACEOF
11704 rm -f conftest.$ac_objext
11705 if { (ac_try="$ac_compile"
11706 case "(($ac_try" in
11707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708   *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711   (eval "$ac_compile") 2>conftest.er1
11712   ac_status=$?
11713   grep -v '^ *+' conftest.er1 >conftest.err
11714   rm -f conftest.er1
11715   cat conftest.err >&5
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); } &&
11718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719   { (case "(($ac_try" in
11720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721   *) ac_try_echo=$ac_try;;
11722 esac
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724   (eval "$ac_try") 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); }; } &&
11728          { ac_try='test -s conftest.$ac_objext'
11729   { (case "(($ac_try" in
11730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731   *) ac_try_echo=$ac_try;;
11732 esac
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734   (eval "$ac_try") 2>&5
11735   ac_status=$?
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); }; }; then
11738   ac_header_compiler=yes
11739 else
11740   echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11742
11743         ac_header_compiler=no
11744 fi
11745
11746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11748 echo "${ECHO_T}$ac_header_compiler" >&6; }
11749
11750 # Is the header present?
11751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11753 cat >conftest.$ac_ext <<_ACEOF
11754 /* confdefs.h.  */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h.  */
11759 #include <$ac_header>
11760 _ACEOF
11761 if { (ac_try="$ac_cpp conftest.$ac_ext"
11762 case "(($ac_try" in
11763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764   *) ac_try_echo=$ac_try;;
11765 esac
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11768   ac_status=$?
11769   grep -v '^ *+' conftest.er1 >conftest.err
11770   rm -f conftest.er1
11771   cat conftest.err >&5
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); } >/dev/null; then
11774   if test -s conftest.err; then
11775     ac_cpp_err=$ac_c_preproc_warn_flag
11776     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11777   else
11778     ac_cpp_err=
11779   fi
11780 else
11781   ac_cpp_err=yes
11782 fi
11783 if test -z "$ac_cpp_err"; then
11784   ac_header_preproc=yes
11785 else
11786   echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11788
11789   ac_header_preproc=no
11790 fi
11791
11792 rm -f conftest.err conftest.$ac_ext
11793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11794 echo "${ECHO_T}$ac_header_preproc" >&6; }
11795
11796 # So?  What about this header?
11797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11798   yes:no: )
11799     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11803     ac_header_preproc=yes
11804     ;;
11805   no:yes:* )
11806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11808     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11809 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11810     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11812     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11813 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11816     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11818     ( cat <<\_ASBOX
11819 ## ------------------------------------ ##
11820 ## Report this to http://llvm.org/bugs/ ##
11821 ## ------------------------------------ ##
11822 _ASBOX
11823      ) | sed "s/^/$as_me: WARNING:     /" >&2
11824     ;;
11825 esac
11826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11829   echo $ECHO_N "(cached) $ECHO_C" >&6
11830 else
11831   eval "$as_ac_Header=\$ac_header_preproc"
11832 fi
11833 ac_res=`eval echo '${'$as_ac_Header'}'`
11834                { echo "$as_me:$LINENO: result: $ac_res" >&5
11835 echo "${ECHO_T}$ac_res" >&6; }
11836
11837 fi
11838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11839   cat >>confdefs.h <<_ACEOF
11840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11841 _ACEOF
11842
11843 fi
11844
11845 done
11846
11847
11848 for ac_header in valgrind/valgrind.h
11849 do
11850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11852   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11855   echo $ECHO_N "(cached) $ECHO_C" >&6
11856 fi
11857 ac_res=`eval echo '${'$as_ac_Header'}'`
11858                { echo "$as_me:$LINENO: result: $ac_res" >&5
11859 echo "${ECHO_T}$ac_res" >&6; }
11860 else
11861   # Is the header compilable?
11862 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11864 cat >conftest.$ac_ext <<_ACEOF
11865 /* confdefs.h.  */
11866 _ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h.  */
11870 $ac_includes_default
11871 #include <$ac_header>
11872 _ACEOF
11873 rm -f conftest.$ac_objext
11874 if { (ac_try="$ac_compile"
11875 case "(($ac_try" in
11876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877   *) ac_try_echo=$ac_try;;
11878 esac
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880   (eval "$ac_compile") 2>conftest.er1
11881   ac_status=$?
11882   grep -v '^ *+' conftest.er1 >conftest.err
11883   rm -f conftest.er1
11884   cat conftest.err >&5
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); } &&
11887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11888   { (case "(($ac_try" in
11889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890   *) ac_try_echo=$ac_try;;
11891 esac
11892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893   (eval "$ac_try") 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); }; } &&
11897          { ac_try='test -s conftest.$ac_objext'
11898   { (case "(($ac_try" in
11899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900   *) ac_try_echo=$ac_try;;
11901 esac
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903   (eval "$ac_try") 2>&5
11904   ac_status=$?
11905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); }; }; then
11907   ac_header_compiler=yes
11908 else
11909   echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11911
11912         ac_header_compiler=no
11913 fi
11914
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11917 echo "${ECHO_T}$ac_header_compiler" >&6; }
11918
11919 # Is the header present?
11920 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11922 cat >conftest.$ac_ext <<_ACEOF
11923 /* confdefs.h.  */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h.  */
11928 #include <$ac_header>
11929 _ACEOF
11930 if { (ac_try="$ac_cpp conftest.$ac_ext"
11931 case "(($ac_try" in
11932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11933   *) ac_try_echo=$ac_try;;
11934 esac
11935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11936   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11937   ac_status=$?
11938   grep -v '^ *+' conftest.er1 >conftest.err
11939   rm -f conftest.er1
11940   cat conftest.err >&5
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); } >/dev/null; then
11943   if test -s conftest.err; then
11944     ac_cpp_err=$ac_c_preproc_warn_flag
11945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11946   else
11947     ac_cpp_err=
11948   fi
11949 else
11950   ac_cpp_err=yes
11951 fi
11952 if test -z "$ac_cpp_err"; then
11953   ac_header_preproc=yes
11954 else
11955   echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11957
11958   ac_header_preproc=no
11959 fi
11960
11961 rm -f conftest.err conftest.$ac_ext
11962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11963 echo "${ECHO_T}$ac_header_preproc" >&6; }
11964
11965 # So?  What about this header?
11966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11967   yes:no: )
11968     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11972     ac_header_preproc=yes
11973     ;;
11974   no:yes:* )
11975     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11977     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11978 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11979     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11981     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11982 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11985     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11987     ( cat <<\_ASBOX
11988 ## ------------------------------------ ##
11989 ## Report this to http://llvm.org/bugs/ ##
11990 ## ------------------------------------ ##
11991 _ASBOX
11992      ) | sed "s/^/$as_me: WARNING:     /" >&2
11993     ;;
11994 esac
11995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11998   echo $ECHO_N "(cached) $ECHO_C" >&6
11999 else
12000   eval "$as_ac_Header=\$ac_header_preproc"
12001 fi
12002 ac_res=`eval echo '${'$as_ac_Header'}'`
12003                { echo "$as_me:$LINENO: result: $ac_res" >&5
12004 echo "${ECHO_T}$ac_res" >&6; }
12005
12006 fi
12007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12008   cat >>confdefs.h <<_ACEOF
12009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12010 _ACEOF
12011
12012 fi
12013
12014 done
12015
12016
12017 for ac_header in fenv.h
12018 do
12019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
12026 ac_res=`eval echo '${'$as_ac_Header'}'`
12027                { echo "$as_me:$LINENO: result: $ac_res" >&5
12028 echo "${ECHO_T}$ac_res" >&6; }
12029 else
12030   # Is the header compilable?
12031 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12033 cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h.  */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h.  */
12039 $ac_includes_default
12040 #include <$ac_header>
12041 _ACEOF
12042 rm -f conftest.$ac_objext
12043 if { (ac_try="$ac_compile"
12044 case "(($ac_try" in
12045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046   *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049   (eval "$ac_compile") 2>conftest.er1
12050   ac_status=$?
12051   grep -v '^ *+' conftest.er1 >conftest.err
12052   rm -f conftest.er1
12053   cat conftest.err >&5
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } &&
12056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12057   { (case "(($ac_try" in
12058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059   *) ac_try_echo=$ac_try;;
12060 esac
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062   (eval "$ac_try") 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); }; } &&
12066          { ac_try='test -s conftest.$ac_objext'
12067   { (case "(($ac_try" in
12068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069   *) ac_try_echo=$ac_try;;
12070 esac
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072   (eval "$ac_try") 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; }; then
12076   ac_header_compiler=yes
12077 else
12078   echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081         ac_header_compiler=no
12082 fi
12083
12084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12086 echo "${ECHO_T}$ac_header_compiler" >&6; }
12087
12088 # Is the header present?
12089 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12091 cat >conftest.$ac_ext <<_ACEOF
12092 /* confdefs.h.  */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h.  */
12097 #include <$ac_header>
12098 _ACEOF
12099 if { (ac_try="$ac_cpp conftest.$ac_ext"
12100 case "(($ac_try" in
12101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102   *) ac_try_echo=$ac_try;;
12103 esac
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12106   ac_status=$?
12107   grep -v '^ *+' conftest.er1 >conftest.err
12108   rm -f conftest.er1
12109   cat conftest.err >&5
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); } >/dev/null; then
12112   if test -s conftest.err; then
12113     ac_cpp_err=$ac_c_preproc_warn_flag
12114     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12115   else
12116     ac_cpp_err=
12117   fi
12118 else
12119   ac_cpp_err=yes
12120 fi
12121 if test -z "$ac_cpp_err"; then
12122   ac_header_preproc=yes
12123 else
12124   echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127   ac_header_preproc=no
12128 fi
12129
12130 rm -f conftest.err conftest.$ac_ext
12131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12132 echo "${ECHO_T}$ac_header_preproc" >&6; }
12133
12134 # So?  What about this header?
12135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12136   yes:no: )
12137     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12141     ac_header_preproc=yes
12142     ;;
12143   no:yes:* )
12144     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12146     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12147 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12148     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12150     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12151 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12154     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12156     ( cat <<\_ASBOX
12157 ## ------------------------------------ ##
12158 ## Report this to http://llvm.org/bugs/ ##
12159 ## ------------------------------------ ##
12160 _ASBOX
12161      ) | sed "s/^/$as_me: WARNING:     /" >&2
12162     ;;
12163 esac
12164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169   eval "$as_ac_Header=\$ac_header_preproc"
12170 fi
12171 ac_res=`eval echo '${'$as_ac_Header'}'`
12172                { echo "$as_me:$LINENO: result: $ac_res" >&5
12173 echo "${ECHO_T}$ac_res" >&6; }
12174
12175 fi
12176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12177   cat >>confdefs.h <<_ACEOF
12178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12179 _ACEOF
12180
12181 fi
12182
12183 done
12184
12185 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12186 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12187 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12188   echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190   cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h.  */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h.  */
12196 #include <fenv.h>
12197
12198 int
12199 main ()
12200 {
12201 #ifndef FE_ALL_EXCEPT
12202   char *p = (char *) FE_ALL_EXCEPT;
12203   return !p;
12204 #endif
12205
12206   ;
12207   return 0;
12208 }
12209 _ACEOF
12210 rm -f conftest.$ac_objext
12211 if { (ac_try="$ac_compile"
12212 case "(($ac_try" in
12213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214   *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217   (eval "$ac_compile") 2>conftest.er1
12218   ac_status=$?
12219   grep -v '^ *+' conftest.er1 >conftest.err
12220   rm -f conftest.er1
12221   cat conftest.err >&5
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); } &&
12224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12225   { (case "(($ac_try" in
12226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227   *) ac_try_echo=$ac_try;;
12228 esac
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230   (eval "$ac_try") 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); }; } &&
12234          { ac_try='test -s conftest.$ac_objext'
12235   { (case "(($ac_try" in
12236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237   *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240   (eval "$ac_try") 2>&5
12241   ac_status=$?
12242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243   (exit $ac_status); }; }; then
12244   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12245 else
12246   echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12248
12249         ac_cv_have_decl_FE_ALL_EXCEPT=no
12250 fi
12251
12252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12253 fi
12254 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12255 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12256 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12257
12258 cat >>confdefs.h <<_ACEOF
12259 #define HAVE_DECL_FE_ALL_EXCEPT 1
12260 _ACEOF
12261
12262
12263 else
12264   cat >>confdefs.h <<_ACEOF
12265 #define HAVE_DECL_FE_ALL_EXCEPT 0
12266 _ACEOF
12267
12268
12269 fi
12270 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12271 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12272 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12273   echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275   cat >conftest.$ac_ext <<_ACEOF
12276 /* confdefs.h.  */
12277 _ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h.  */
12281 #include <fenv.h>
12282
12283 int
12284 main ()
12285 {
12286 #ifndef FE_INEXACT
12287   char *p = (char *) FE_INEXACT;
12288   return !p;
12289 #endif
12290
12291   ;
12292   return 0;
12293 }
12294 _ACEOF
12295 rm -f conftest.$ac_objext
12296 if { (ac_try="$ac_compile"
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_compile") 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); } &&
12309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12310   { (case "(($ac_try" in
12311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312   *) ac_try_echo=$ac_try;;
12313 esac
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315   (eval "$ac_try") 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }; } &&
12319          { ac_try='test -s conftest.$ac_objext'
12320   { (case "(($ac_try" in
12321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322   *) ac_try_echo=$ac_try;;
12323 esac
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325   (eval "$ac_try") 2>&5
12326   ac_status=$?
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); }; }; then
12329   ac_cv_have_decl_FE_INEXACT=yes
12330 else
12331   echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12333
12334         ac_cv_have_decl_FE_INEXACT=no
12335 fi
12336
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 fi
12339 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12340 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12341 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12342
12343 cat >>confdefs.h <<_ACEOF
12344 #define HAVE_DECL_FE_INEXACT 1
12345 _ACEOF
12346
12347
12348 else
12349   cat >>confdefs.h <<_ACEOF
12350 #define HAVE_DECL_FE_INEXACT 0
12351 _ACEOF
12352
12353
12354 fi
12355
12356
12357 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12358
12359 for ac_header in pthread.h
12360 do
12361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12363   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12366   echo $ECHO_N "(cached) $ECHO_C" >&6
12367 fi
12368 ac_res=`eval echo '${'$as_ac_Header'}'`
12369                { echo "$as_me:$LINENO: result: $ac_res" >&5
12370 echo "${ECHO_T}$ac_res" >&6; }
12371 else
12372   # Is the header compilable?
12373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h.  */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h.  */
12381 $ac_includes_default
12382 #include <$ac_header>
12383 _ACEOF
12384 rm -f conftest.$ac_objext
12385 if { (ac_try="$ac_compile"
12386 case "(($ac_try" in
12387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388   *) ac_try_echo=$ac_try;;
12389 esac
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391   (eval "$ac_compile") 2>conftest.er1
12392   ac_status=$?
12393   grep -v '^ *+' conftest.er1 >conftest.err
12394   rm -f conftest.er1
12395   cat conftest.err >&5
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); } &&
12398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12399   { (case "(($ac_try" in
12400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401   *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404   (eval "$ac_try") 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); }; } &&
12408          { ac_try='test -s conftest.$ac_objext'
12409   { (case "(($ac_try" in
12410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411   *) ac_try_echo=$ac_try;;
12412 esac
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414   (eval "$ac_try") 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); }; }; then
12418   ac_header_compiler=yes
12419 else
12420   echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12422
12423         ac_header_compiler=no
12424 fi
12425
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12428 echo "${ECHO_T}$ac_header_compiler" >&6; }
12429
12430 # Is the header present?
12431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12433 cat >conftest.$ac_ext <<_ACEOF
12434 /* confdefs.h.  */
12435 _ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h.  */
12439 #include <$ac_header>
12440 _ACEOF
12441 if { (ac_try="$ac_cpp conftest.$ac_ext"
12442 case "(($ac_try" in
12443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444   *) ac_try_echo=$ac_try;;
12445 esac
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12448   ac_status=$?
12449   grep -v '^ *+' conftest.er1 >conftest.err
12450   rm -f conftest.er1
12451   cat conftest.err >&5
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); } >/dev/null; then
12454   if test -s conftest.err; then
12455     ac_cpp_err=$ac_c_preproc_warn_flag
12456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12457   else
12458     ac_cpp_err=
12459   fi
12460 else
12461   ac_cpp_err=yes
12462 fi
12463 if test -z "$ac_cpp_err"; then
12464   ac_header_preproc=yes
12465 else
12466   echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12468
12469   ac_header_preproc=no
12470 fi
12471
12472 rm -f conftest.err conftest.$ac_ext
12473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12474 echo "${ECHO_T}$ac_header_preproc" >&6; }
12475
12476 # So?  What about this header?
12477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12478   yes:no: )
12479     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12483     ac_header_preproc=yes
12484     ;;
12485   no:yes:* )
12486     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12488     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12489 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12490     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12492     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12493 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12496     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12498     ( cat <<\_ASBOX
12499 ## ------------------------------------ ##
12500 ## Report this to http://llvm.org/bugs/ ##
12501 ## ------------------------------------ ##
12502 _ASBOX
12503      ) | sed "s/^/$as_me: WARNING:     /" >&2
12504     ;;
12505 esac
12506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12509   echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511   eval "$as_ac_Header=\$ac_header_preproc"
12512 fi
12513 ac_res=`eval echo '${'$as_ac_Header'}'`
12514                { echo "$as_me:$LINENO: result: $ac_res" >&5
12515 echo "${ECHO_T}$ac_res" >&6; }
12516
12517 fi
12518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12519   cat >>confdefs.h <<_ACEOF
12520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12521 _ACEOF
12522  HAVE_PTHREAD=1
12523
12524 else
12525   HAVE_PTHREAD=0
12526
12527 fi
12528
12529 done
12530
12531 else
12532   HAVE_PTHREAD=0
12533
12534 fi
12535 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12536
12537 for ac_header in zlib.h
12538 do
12539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12541   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12544   echo $ECHO_N "(cached) $ECHO_C" >&6
12545 fi
12546 ac_res=`eval echo '${'$as_ac_Header'}'`
12547                { echo "$as_me:$LINENO: result: $ac_res" >&5
12548 echo "${ECHO_T}$ac_res" >&6; }
12549 else
12550   # Is the header compilable?
12551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h.  */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h.  */
12559 $ac_includes_default
12560 #include <$ac_header>
12561 _ACEOF
12562 rm -f conftest.$ac_objext
12563 if { (ac_try="$ac_compile"
12564 case "(($ac_try" in
12565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566   *) ac_try_echo=$ac_try;;
12567 esac
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569   (eval "$ac_compile") 2>conftest.er1
12570   ac_status=$?
12571   grep -v '^ *+' conftest.er1 >conftest.err
12572   rm -f conftest.er1
12573   cat conftest.err >&5
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); } &&
12576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12577   { (case "(($ac_try" in
12578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579   *) ac_try_echo=$ac_try;;
12580 esac
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582   (eval "$ac_try") 2>&5
12583   ac_status=$?
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); }; } &&
12586          { ac_try='test -s conftest.$ac_objext'
12587   { (case "(($ac_try" in
12588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589   *) ac_try_echo=$ac_try;;
12590 esac
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592   (eval "$ac_try") 2>&5
12593   ac_status=$?
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); }; }; then
12596   ac_header_compiler=yes
12597 else
12598   echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12600
12601         ac_header_compiler=no
12602 fi
12603
12604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12606 echo "${ECHO_T}$ac_header_compiler" >&6; }
12607
12608 # Is the header present?
12609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12611 cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h.  */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h.  */
12617 #include <$ac_header>
12618 _ACEOF
12619 if { (ac_try="$ac_cpp conftest.$ac_ext"
12620 case "(($ac_try" in
12621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622   *) ac_try_echo=$ac_try;;
12623 esac
12624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12625   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12626   ac_status=$?
12627   grep -v '^ *+' conftest.er1 >conftest.err
12628   rm -f conftest.er1
12629   cat conftest.err >&5
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); } >/dev/null; then
12632   if test -s conftest.err; then
12633     ac_cpp_err=$ac_c_preproc_warn_flag
12634     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12635   else
12636     ac_cpp_err=
12637   fi
12638 else
12639   ac_cpp_err=yes
12640 fi
12641 if test -z "$ac_cpp_err"; then
12642   ac_header_preproc=yes
12643 else
12644   echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12646
12647   ac_header_preproc=no
12648 fi
12649
12650 rm -f conftest.err conftest.$ac_ext
12651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12652 echo "${ECHO_T}$ac_header_preproc" >&6; }
12653
12654 # So?  What about this header?
12655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12656   yes:no: )
12657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12661     ac_header_preproc=yes
12662     ;;
12663   no:yes:* )
12664     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12666     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12667 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12668     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12670     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12671 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12674     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12676     ( cat <<\_ASBOX
12677 ## ------------------------------------ ##
12678 ## Report this to http://llvm.org/bugs/ ##
12679 ## ------------------------------------ ##
12680 _ASBOX
12681      ) | sed "s/^/$as_me: WARNING:     /" >&2
12682     ;;
12683 esac
12684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12687   echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689   eval "$as_ac_Header=\$ac_header_preproc"
12690 fi
12691 ac_res=`eval echo '${'$as_ac_Header'}'`
12692                { echo "$as_me:$LINENO: result: $ac_res" >&5
12693 echo "${ECHO_T}$ac_res" >&6; }
12694
12695 fi
12696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12697   cat >>confdefs.h <<_ACEOF
12698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12699 _ACEOF
12700  HAVE_LIBZ=1
12701
12702 else
12703   HAVE_LIBZ=0
12704
12705 fi
12706
12707 done
12708
12709 else
12710   HAVE_LIBZ=0
12711
12712 fi
12713
12714 if test "$llvm_cv_enable_libffi" = "yes" ; then
12715
12716
12717 for ac_header in ffi.h ffi/ffi.h
12718 do
12719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12721   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12724   echo $ECHO_N "(cached) $ECHO_C" >&6
12725 fi
12726 ac_res=`eval echo '${'$as_ac_Header'}'`
12727                { echo "$as_me:$LINENO: result: $ac_res" >&5
12728 echo "${ECHO_T}$ac_res" >&6; }
12729 else
12730   # Is the header compilable?
12731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12733 cat >conftest.$ac_ext <<_ACEOF
12734 /* confdefs.h.  */
12735 _ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h.  */
12739 $ac_includes_default
12740 #include <$ac_header>
12741 _ACEOF
12742 rm -f conftest.$ac_objext
12743 if { (ac_try="$ac_compile"
12744 case "(($ac_try" in
12745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746   *) ac_try_echo=$ac_try;;
12747 esac
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749   (eval "$ac_compile") 2>conftest.er1
12750   ac_status=$?
12751   grep -v '^ *+' conftest.er1 >conftest.err
12752   rm -f conftest.er1
12753   cat conftest.err >&5
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } &&
12756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12757   { (case "(($ac_try" in
12758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759   *) ac_try_echo=$ac_try;;
12760 esac
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762   (eval "$ac_try") 2>&5
12763   ac_status=$?
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); }; } &&
12766          { ac_try='test -s conftest.$ac_objext'
12767   { (case "(($ac_try" in
12768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769   *) ac_try_echo=$ac_try;;
12770 esac
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772   (eval "$ac_try") 2>&5
12773   ac_status=$?
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); }; }; then
12776   ac_header_compiler=yes
12777 else
12778   echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12780
12781         ac_header_compiler=no
12782 fi
12783
12784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12786 echo "${ECHO_T}$ac_header_compiler" >&6; }
12787
12788 # Is the header present?
12789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12791 cat >conftest.$ac_ext <<_ACEOF
12792 /* confdefs.h.  */
12793 _ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h.  */
12797 #include <$ac_header>
12798 _ACEOF
12799 if { (ac_try="$ac_cpp conftest.$ac_ext"
12800 case "(($ac_try" in
12801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802   *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12806   ac_status=$?
12807   grep -v '^ *+' conftest.er1 >conftest.err
12808   rm -f conftest.er1
12809   cat conftest.err >&5
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); } >/dev/null; then
12812   if test -s conftest.err; then
12813     ac_cpp_err=$ac_c_preproc_warn_flag
12814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12815   else
12816     ac_cpp_err=
12817   fi
12818 else
12819   ac_cpp_err=yes
12820 fi
12821 if test -z "$ac_cpp_err"; then
12822   ac_header_preproc=yes
12823 else
12824   echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12826
12827   ac_header_preproc=no
12828 fi
12829
12830 rm -f conftest.err conftest.$ac_ext
12831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12832 echo "${ECHO_T}$ac_header_preproc" >&6; }
12833
12834 # So?  What about this header?
12835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12836   yes:no: )
12837     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12841     ac_header_preproc=yes
12842     ;;
12843   no:yes:* )
12844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12846     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12847 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12848     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12850     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12851 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12854     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12856     ( cat <<\_ASBOX
12857 ## ------------------------------------ ##
12858 ## Report this to http://llvm.org/bugs/ ##
12859 ## ------------------------------------ ##
12860 _ASBOX
12861      ) | sed "s/^/$as_me: WARNING:     /" >&2
12862     ;;
12863 esac
12864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12867   echo $ECHO_N "(cached) $ECHO_C" >&6
12868 else
12869   eval "$as_ac_Header=\$ac_header_preproc"
12870 fi
12871 ac_res=`eval echo '${'$as_ac_Header'}'`
12872                { echo "$as_me:$LINENO: result: $ac_res" >&5
12873 echo "${ECHO_T}$ac_res" >&6; }
12874
12875 fi
12876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12877   cat >>confdefs.h <<_ACEOF
12878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12879 _ACEOF
12880
12881 fi
12882
12883 done
12884
12885 fi
12886
12887
12888 for ac_header in CrashReporterClient.h
12889 do
12890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12892   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12895   echo $ECHO_N "(cached) $ECHO_C" >&6
12896 fi
12897 ac_res=`eval echo '${'$as_ac_Header'}'`
12898                { echo "$as_me:$LINENO: result: $ac_res" >&5
12899 echo "${ECHO_T}$ac_res" >&6; }
12900 else
12901   # Is the header compilable?
12902 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h.  */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h.  */
12910 $ac_includes_default
12911 #include <$ac_header>
12912 _ACEOF
12913 rm -f conftest.$ac_objext
12914 if { (ac_try="$ac_compile"
12915 case "(($ac_try" in
12916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917   *) ac_try_echo=$ac_try;;
12918 esac
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920   (eval "$ac_compile") 2>conftest.er1
12921   ac_status=$?
12922   grep -v '^ *+' conftest.er1 >conftest.err
12923   rm -f conftest.er1
12924   cat conftest.err >&5
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); } &&
12927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12928   { (case "(($ac_try" in
12929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930   *) ac_try_echo=$ac_try;;
12931 esac
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933   (eval "$ac_try") 2>&5
12934   ac_status=$?
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); }; } &&
12937          { ac_try='test -s conftest.$ac_objext'
12938   { (case "(($ac_try" in
12939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940   *) ac_try_echo=$ac_try;;
12941 esac
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943   (eval "$ac_try") 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); }; }; then
12947   ac_header_compiler=yes
12948 else
12949   echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12951
12952         ac_header_compiler=no
12953 fi
12954
12955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12957 echo "${ECHO_T}$ac_header_compiler" >&6; }
12958
12959 # Is the header present?
12960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12962 cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h.  */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h.  */
12968 #include <$ac_header>
12969 _ACEOF
12970 if { (ac_try="$ac_cpp conftest.$ac_ext"
12971 case "(($ac_try" in
12972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973   *) ac_try_echo=$ac_try;;
12974 esac
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12977   ac_status=$?
12978   grep -v '^ *+' conftest.er1 >conftest.err
12979   rm -f conftest.er1
12980   cat conftest.err >&5
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); } >/dev/null; then
12983   if test -s conftest.err; then
12984     ac_cpp_err=$ac_c_preproc_warn_flag
12985     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12986   else
12987     ac_cpp_err=
12988   fi
12989 else
12990   ac_cpp_err=yes
12991 fi
12992 if test -z "$ac_cpp_err"; then
12993   ac_header_preproc=yes
12994 else
12995   echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12997
12998   ac_header_preproc=no
12999 fi
13000
13001 rm -f conftest.err conftest.$ac_ext
13002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13003 echo "${ECHO_T}$ac_header_preproc" >&6; }
13004
13005 # So?  What about this header?
13006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13007   yes:no: )
13008     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13012     ac_header_preproc=yes
13013     ;;
13014   no:yes:* )
13015     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13017     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13018 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13019     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13021     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13022 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13025     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13027     ( cat <<\_ASBOX
13028 ## ------------------------------------ ##
13029 ## Report this to http://llvm.org/bugs/ ##
13030 ## ------------------------------------ ##
13031 _ASBOX
13032      ) | sed "s/^/$as_me: WARNING:     /" >&2
13033     ;;
13034 esac
13035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13038   echo $ECHO_N "(cached) $ECHO_C" >&6
13039 else
13040   eval "$as_ac_Header=\$ac_header_preproc"
13041 fi
13042 ac_res=`eval echo '${'$as_ac_Header'}'`
13043                { echo "$as_me:$LINENO: result: $ac_res" >&5
13044 echo "${ECHO_T}$ac_res" >&6; }
13045
13046 fi
13047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13048   cat >>confdefs.h <<_ACEOF
13049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13050 _ACEOF
13051
13052 fi
13053
13054 done
13055
13056
13057 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13058 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13059 cat >conftest.$ac_ext <<_ACEOF
13060
13061   /* confdefs.h.  */
13062 _ACEOF
13063 cat confdefs.h >>conftest.$ac_ext
13064 cat >>conftest.$ac_ext <<_ACEOF
13065 /* end confdefs.h.  */
13066
13067     extern const char *__crashreporter_info__;
13068     int main() {
13069       __crashreporter_info__ = "test";
13070       return 0;
13071     }
13072
13073
13074 _ACEOF
13075 rm -f conftest.$ac_objext conftest$ac_exeext
13076 if { (ac_try="$ac_link"
13077 case "(($ac_try" in
13078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079   *) ac_try_echo=$ac_try;;
13080 esac
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082   (eval "$ac_link") 2>conftest.er1
13083   ac_status=$?
13084   grep -v '^ *+' conftest.er1 >conftest.err
13085   rm -f conftest.er1
13086   cat conftest.err >&5
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); } &&
13089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13090   { (case "(($ac_try" in
13091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092   *) ac_try_echo=$ac_try;;
13093 esac
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095   (eval "$ac_try") 2>&5
13096   ac_status=$?
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); }; } &&
13099          { ac_try='test -s conftest$ac_exeext'
13100   { (case "(($ac_try" in
13101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102   *) ac_try_echo=$ac_try;;
13103 esac
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105   (eval "$ac_try") 2>&5
13106   ac_status=$?
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); }; }; then
13109
13110   { echo "$as_me:$LINENO: result: yes" >&5
13111 echo "${ECHO_T}yes" >&6; }
13112
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_CRASHREPORTER_INFO 1
13115 _ACEOF
13116
13117
13118 else
13119   echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122
13123   { echo "$as_me:$LINENO: result: no" >&5
13124 echo "${ECHO_T}no" >&6; }
13125
13126 cat >>confdefs.h <<\_ACEOF
13127 #define HAVE_CRASHREPORTER_INFO 0
13128 _ACEOF
13129
13130
13131 fi
13132
13133 rm -f core conftest.err conftest.$ac_objext \
13134       conftest$ac_exeext conftest.$ac_ext
13135
13136
13137
13138   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13139 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13140 if test "${ac_cv_huge_val_sanity+set}" = set; then
13141   echo $ECHO_N "(cached) $ECHO_C" >&6
13142 else
13143
13144     ac_ext=cpp
13145 ac_cpp='$CXXCPP $CPPFLAGS'
13146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13149
13150     ac_save_CXXFLAGS=$CXXFLAGS
13151     CXXFLAGS="$CXXFLAGS -pedantic"
13152     if test "$cross_compiling" = yes; then
13153   ac_cv_huge_val_sanity=yes
13154 else
13155   cat >conftest.$ac_ext <<_ACEOF
13156 /* confdefs.h.  */
13157 _ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h.  */
13161 #include <math.h>
13162 int
13163 main ()
13164 {
13165 double x = HUGE_VAL; return x != x;
13166   ;
13167   return 0;
13168 }
13169 _ACEOF
13170 rm -f conftest$ac_exeext
13171 if { (ac_try="$ac_link"
13172 case "(($ac_try" in
13173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174   *) ac_try_echo=$ac_try;;
13175 esac
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177   (eval "$ac_link") 2>&5
13178   ac_status=$?
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13181   { (case "(($ac_try" in
13182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183   *) ac_try_echo=$ac_try;;
13184 esac
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186   (eval "$ac_try") 2>&5
13187   ac_status=$?
13188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); }; }; then
13190   ac_cv_huge_val_sanity=yes
13191 else
13192   echo "$as_me: program exited with status $ac_status" >&5
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13195
13196 ( exit $ac_status )
13197 ac_cv_huge_val_sanity=no
13198 fi
13199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13200 fi
13201
13202
13203     CXXFLAGS=$ac_save_CXXFLAGS
13204     ac_ext=c
13205 ac_cpp='$CPP $CPPFLAGS'
13206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13209
13210
13211 fi
13212 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13213 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13214   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13215
13216
13217 { echo "$as_me:$LINENO: checking for pid_t" >&5
13218 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13219 if test "${ac_cv_type_pid_t+set}" = set; then
13220   echo $ECHO_N "(cached) $ECHO_C" >&6
13221 else
13222   cat >conftest.$ac_ext <<_ACEOF
13223 /* confdefs.h.  */
13224 _ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h.  */
13228 $ac_includes_default
13229 typedef pid_t ac__type_new_;
13230 int
13231 main ()
13232 {
13233 if ((ac__type_new_ *) 0)
13234   return 0;
13235 if (sizeof (ac__type_new_))
13236   return 0;
13237   ;
13238   return 0;
13239 }
13240 _ACEOF
13241 rm -f conftest.$ac_objext
13242 if { (ac_try="$ac_compile"
13243 case "(($ac_try" in
13244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245   *) ac_try_echo=$ac_try;;
13246 esac
13247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248   (eval "$ac_compile") 2>conftest.er1
13249   ac_status=$?
13250   grep -v '^ *+' conftest.er1 >conftest.err
13251   rm -f conftest.er1
13252   cat conftest.err >&5
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); } &&
13255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13256   { (case "(($ac_try" in
13257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258   *) ac_try_echo=$ac_try;;
13259 esac
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261   (eval "$ac_try") 2>&5
13262   ac_status=$?
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); }; } &&
13265          { ac_try='test -s conftest.$ac_objext'
13266   { (case "(($ac_try" in
13267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268   *) ac_try_echo=$ac_try;;
13269 esac
13270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271   (eval "$ac_try") 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); }; }; then
13275   ac_cv_type_pid_t=yes
13276 else
13277   echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13279
13280         ac_cv_type_pid_t=no
13281 fi
13282
13283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284 fi
13285 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13286 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13287 if test $ac_cv_type_pid_t = yes; then
13288   :
13289 else
13290
13291 cat >>confdefs.h <<_ACEOF
13292 #define pid_t int
13293 _ACEOF
13294
13295 fi
13296
13297 { echo "$as_me:$LINENO: checking for size_t" >&5
13298 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13299 if test "${ac_cv_type_size_t+set}" = set; then
13300   echo $ECHO_N "(cached) $ECHO_C" >&6
13301 else
13302   cat >conftest.$ac_ext <<_ACEOF
13303 /* confdefs.h.  */
13304 _ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h.  */
13308 $ac_includes_default
13309 typedef size_t ac__type_new_;
13310 int
13311 main ()
13312 {
13313 if ((ac__type_new_ *) 0)
13314   return 0;
13315 if (sizeof (ac__type_new_))
13316   return 0;
13317   ;
13318   return 0;
13319 }
13320 _ACEOF
13321 rm -f conftest.$ac_objext
13322 if { (ac_try="$ac_compile"
13323 case "(($ac_try" in
13324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325   *) ac_try_echo=$ac_try;;
13326 esac
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328   (eval "$ac_compile") 2>conftest.er1
13329   ac_status=$?
13330   grep -v '^ *+' conftest.er1 >conftest.err
13331   rm -f conftest.er1
13332   cat conftest.err >&5
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); } &&
13335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13336   { (case "(($ac_try" in
13337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338   *) ac_try_echo=$ac_try;;
13339 esac
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341   (eval "$ac_try") 2>&5
13342   ac_status=$?
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); }; } &&
13345          { ac_try='test -s conftest.$ac_objext'
13346   { (case "(($ac_try" in
13347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348   *) ac_try_echo=$ac_try;;
13349 esac
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351   (eval "$ac_try") 2>&5
13352   ac_status=$?
13353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354   (exit $ac_status); }; }; then
13355   ac_cv_type_size_t=yes
13356 else
13357   echo "$as_me: failed program was:" >&5
13358 sed 's/^/| /' conftest.$ac_ext >&5
13359
13360         ac_cv_type_size_t=no
13361 fi
13362
13363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364 fi
13365 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13366 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13367 if test $ac_cv_type_size_t = yes; then
13368   :
13369 else
13370
13371 cat >>confdefs.h <<_ACEOF
13372 #define size_t unsigned int
13373 _ACEOF
13374
13375 fi
13376
13377
13378 cat >>confdefs.h <<_ACEOF
13379 #define RETSIGTYPE void
13380 _ACEOF
13381
13382 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13383 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13384 if test "${ac_cv_struct_tm+set}" = set; then
13385   echo $ECHO_N "(cached) $ECHO_C" >&6
13386 else
13387   cat >conftest.$ac_ext <<_ACEOF
13388 /* confdefs.h.  */
13389 _ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h.  */
13393 #include <sys/types.h>
13394 #include <time.h>
13395
13396 int
13397 main ()
13398 {
13399 struct tm *tp; tp->tm_sec;
13400   ;
13401   return 0;
13402 }
13403 _ACEOF
13404 rm -f conftest.$ac_objext
13405 if { (ac_try="$ac_compile"
13406 case "(($ac_try" in
13407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408   *) ac_try_echo=$ac_try;;
13409 esac
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411   (eval "$ac_compile") 2>conftest.er1
13412   ac_status=$?
13413   grep -v '^ *+' conftest.er1 >conftest.err
13414   rm -f conftest.er1
13415   cat conftest.err >&5
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); } &&
13418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13419   { (case "(($ac_try" in
13420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421   *) ac_try_echo=$ac_try;;
13422 esac
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424   (eval "$ac_try") 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); }; } &&
13428          { ac_try='test -s conftest.$ac_objext'
13429   { (case "(($ac_try" in
13430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431   *) ac_try_echo=$ac_try;;
13432 esac
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434   (eval "$ac_try") 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); }; }; then
13438   ac_cv_struct_tm=time.h
13439 else
13440   echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13442
13443         ac_cv_struct_tm=sys/time.h
13444 fi
13445
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 fi
13448 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13449 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13450 if test $ac_cv_struct_tm = sys/time.h; then
13451
13452 cat >>confdefs.h <<\_ACEOF
13453 #define TM_IN_SYS_TIME 1
13454 _ACEOF
13455
13456 fi
13457
13458 { echo "$as_me:$LINENO: checking for int64_t" >&5
13459 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13460 if test "${ac_cv_type_int64_t+set}" = set; then
13461   echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463   cat >conftest.$ac_ext <<_ACEOF
13464 /* confdefs.h.  */
13465 _ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h.  */
13469 $ac_includes_default
13470 typedef int64_t ac__type_new_;
13471 int
13472 main ()
13473 {
13474 if ((ac__type_new_ *) 0)
13475   return 0;
13476 if (sizeof (ac__type_new_))
13477   return 0;
13478   ;
13479   return 0;
13480 }
13481 _ACEOF
13482 rm -f conftest.$ac_objext
13483 if { (ac_try="$ac_compile"
13484 case "(($ac_try" in
13485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486   *) ac_try_echo=$ac_try;;
13487 esac
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489   (eval "$ac_compile") 2>conftest.er1
13490   ac_status=$?
13491   grep -v '^ *+' conftest.er1 >conftest.err
13492   rm -f conftest.er1
13493   cat conftest.err >&5
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } &&
13496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13497   { (case "(($ac_try" in
13498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499   *) ac_try_echo=$ac_try;;
13500 esac
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502   (eval "$ac_try") 2>&5
13503   ac_status=$?
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); }; } &&
13506          { ac_try='test -s conftest.$ac_objext'
13507   { (case "(($ac_try" in
13508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509   *) ac_try_echo=$ac_try;;
13510 esac
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512   (eval "$ac_try") 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); }; }; then
13516   ac_cv_type_int64_t=yes
13517 else
13518   echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521         ac_cv_type_int64_t=no
13522 fi
13523
13524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525 fi
13526 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13527 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13528 if test $ac_cv_type_int64_t = yes; then
13529
13530 cat >>confdefs.h <<_ACEOF
13531 #define HAVE_INT64_T 1
13532 _ACEOF
13533
13534
13535 else
13536   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13537 echo "$as_me: error: Type int64_t required but not found" >&2;}
13538    { (exit 1); exit 1; }; }
13539 fi
13540
13541 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13542 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13543 if test "${ac_cv_type_uint64_t+set}" = set; then
13544   echo $ECHO_N "(cached) $ECHO_C" >&6
13545 else
13546   cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h.  */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h.  */
13552 $ac_includes_default
13553 typedef uint64_t ac__type_new_;
13554 int
13555 main ()
13556 {
13557 if ((ac__type_new_ *) 0)
13558   return 0;
13559 if (sizeof (ac__type_new_))
13560   return 0;
13561   ;
13562   return 0;
13563 }
13564 _ACEOF
13565 rm -f conftest.$ac_objext
13566 if { (ac_try="$ac_compile"
13567 case "(($ac_try" in
13568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569   *) ac_try_echo=$ac_try;;
13570 esac
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572   (eval "$ac_compile") 2>conftest.er1
13573   ac_status=$?
13574   grep -v '^ *+' conftest.er1 >conftest.err
13575   rm -f conftest.er1
13576   cat conftest.err >&5
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); } &&
13579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13580   { (case "(($ac_try" in
13581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582   *) ac_try_echo=$ac_try;;
13583 esac
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585   (eval "$ac_try") 2>&5
13586   ac_status=$?
13587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588   (exit $ac_status); }; } &&
13589          { ac_try='test -s conftest.$ac_objext'
13590   { (case "(($ac_try" in
13591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592   *) ac_try_echo=$ac_try;;
13593 esac
13594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13595   (eval "$ac_try") 2>&5
13596   ac_status=$?
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); }; }; then
13599   ac_cv_type_uint64_t=yes
13600 else
13601   echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13603
13604         ac_cv_type_uint64_t=no
13605 fi
13606
13607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13608 fi
13609 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13610 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13611 if test $ac_cv_type_uint64_t = yes; then
13612
13613 cat >>confdefs.h <<_ACEOF
13614 #define HAVE_UINT64_T 1
13615 _ACEOF
13616
13617
13618 else
13619   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13620 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13621 if test "${ac_cv_type_u_int64_t+set}" = set; then
13622   echo $ECHO_N "(cached) $ECHO_C" >&6
13623 else
13624   cat >conftest.$ac_ext <<_ACEOF
13625 /* confdefs.h.  */
13626 _ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h.  */
13630 $ac_includes_default
13631 typedef u_int64_t ac__type_new_;
13632 int
13633 main ()
13634 {
13635 if ((ac__type_new_ *) 0)
13636   return 0;
13637 if (sizeof (ac__type_new_))
13638   return 0;
13639   ;
13640   return 0;
13641 }
13642 _ACEOF
13643 rm -f conftest.$ac_objext
13644 if { (ac_try="$ac_compile"
13645 case "(($ac_try" in
13646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647   *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650   (eval "$ac_compile") 2>conftest.er1
13651   ac_status=$?
13652   grep -v '^ *+' conftest.er1 >conftest.err
13653   rm -f conftest.er1
13654   cat conftest.err >&5
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); } &&
13657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13658   { (case "(($ac_try" in
13659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660   *) ac_try_echo=$ac_try;;
13661 esac
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663   (eval "$ac_try") 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); }; } &&
13667          { ac_try='test -s conftest.$ac_objext'
13668   { (case "(($ac_try" in
13669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670   *) ac_try_echo=$ac_try;;
13671 esac
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673   (eval "$ac_try") 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; }; then
13677   ac_cv_type_u_int64_t=yes
13678 else
13679   echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13681
13682         ac_cv_type_u_int64_t=no
13683 fi
13684
13685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13686 fi
13687 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13688 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13689 if test $ac_cv_type_u_int64_t = yes; then
13690
13691 cat >>confdefs.h <<_ACEOF
13692 #define HAVE_U_INT64_T 1
13693 _ACEOF
13694
13695
13696 else
13697   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13698 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13699    { (exit 1); exit 1; }; }
13700 fi
13701
13702 fi
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13714 do
13715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13719   echo $ECHO_N "(cached) $ECHO_C" >&6
13720 else
13721   cat >conftest.$ac_ext <<_ACEOF
13722 /* confdefs.h.  */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h.  */
13727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13729 #define $ac_func innocuous_$ac_func
13730
13731 /* System header to define __stub macros and hopefully few prototypes,
13732     which can conflict with char $ac_func (); below.
13733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13734     <limits.h> exists even on freestanding compilers.  */
13735
13736 #ifdef __STDC__
13737 # include <limits.h>
13738 #else
13739 # include <assert.h>
13740 #endif
13741
13742 #undef $ac_func
13743
13744 /* Override any GCC internal prototype to avoid an error.
13745    Use char because int might match the return type of a GCC
13746    builtin and then its argument prototype would still apply.  */
13747 #ifdef __cplusplus
13748 extern "C"
13749 #endif
13750 char $ac_func ();
13751 /* The GNU C library defines this for functions which it implements
13752     to always fail with ENOSYS.  Some functions are actually named
13753     something starting with __ and the normal name is an alias.  */
13754 #if defined __stub_$ac_func || defined __stub___$ac_func
13755 choke me
13756 #endif
13757
13758 int
13759 main ()
13760 {
13761 return $ac_func ();
13762   ;
13763   return 0;
13764 }
13765 _ACEOF
13766 rm -f conftest.$ac_objext conftest$ac_exeext
13767 if { (ac_try="$ac_link"
13768 case "(($ac_try" in
13769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770   *) ac_try_echo=$ac_try;;
13771 esac
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773   (eval "$ac_link") 2>conftest.er1
13774   ac_status=$?
13775   grep -v '^ *+' conftest.er1 >conftest.err
13776   rm -f conftest.er1
13777   cat conftest.err >&5
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); } &&
13780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13781   { (case "(($ac_try" in
13782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783   *) ac_try_echo=$ac_try;;
13784 esac
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786   (eval "$ac_try") 2>&5
13787   ac_status=$?
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); }; } &&
13790          { ac_try='test -s conftest$ac_exeext'
13791   { (case "(($ac_try" in
13792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793   *) ac_try_echo=$ac_try;;
13794 esac
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796   (eval "$ac_try") 2>&5
13797   ac_status=$?
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); }; }; then
13800   eval "$as_ac_var=yes"
13801 else
13802   echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13804
13805         eval "$as_ac_var=no"
13806 fi
13807
13808 rm -f core conftest.err conftest.$ac_objext \
13809       conftest$ac_exeext conftest.$ac_ext
13810 fi
13811 ac_res=`eval echo '${'$as_ac_var'}'`
13812                { echo "$as_me:$LINENO: result: $ac_res" >&5
13813 echo "${ECHO_T}$ac_res" >&6; }
13814 if test `eval echo '${'$as_ac_var'}'` = yes; then
13815   cat >>confdefs.h <<_ACEOF
13816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13817 _ACEOF
13818
13819 fi
13820 done
13821
13822
13823
13824
13825
13826 for ac_func in powf fmodf strtof round
13827 do
13828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13832   echo $ECHO_N "(cached) $ECHO_C" >&6
13833 else
13834   cat >conftest.$ac_ext <<_ACEOF
13835 /* confdefs.h.  */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h.  */
13840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13842 #define $ac_func innocuous_$ac_func
13843
13844 /* System header to define __stub macros and hopefully few prototypes,
13845     which can conflict with char $ac_func (); below.
13846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13847     <limits.h> exists even on freestanding compilers.  */
13848
13849 #ifdef __STDC__
13850 # include <limits.h>
13851 #else
13852 # include <assert.h>
13853 #endif
13854
13855 #undef $ac_func
13856
13857 /* Override any GCC internal prototype to avoid an error.
13858    Use char because int might match the return type of a GCC
13859    builtin and then its argument prototype would still apply.  */
13860 #ifdef __cplusplus
13861 extern "C"
13862 #endif
13863 char $ac_func ();
13864 /* The GNU C library defines this for functions which it implements
13865     to always fail with ENOSYS.  Some functions are actually named
13866     something starting with __ and the normal name is an alias.  */
13867 #if defined __stub_$ac_func || defined __stub___$ac_func
13868 choke me
13869 #endif
13870
13871 int
13872 main ()
13873 {
13874 return $ac_func ();
13875   ;
13876   return 0;
13877 }
13878 _ACEOF
13879 rm -f conftest.$ac_objext conftest$ac_exeext
13880 if { (ac_try="$ac_link"
13881 case "(($ac_try" in
13882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883   *) ac_try_echo=$ac_try;;
13884 esac
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886   (eval "$ac_link") 2>conftest.er1
13887   ac_status=$?
13888   grep -v '^ *+' conftest.er1 >conftest.err
13889   rm -f conftest.er1
13890   cat conftest.err >&5
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); } &&
13893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13894   { (case "(($ac_try" in
13895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896   *) ac_try_echo=$ac_try;;
13897 esac
13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899   (eval "$ac_try") 2>&5
13900   ac_status=$?
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); }; } &&
13903          { ac_try='test -s conftest$ac_exeext'
13904   { (case "(($ac_try" in
13905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906   *) ac_try_echo=$ac_try;;
13907 esac
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909   (eval "$ac_try") 2>&5
13910   ac_status=$?
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); }; }; then
13913   eval "$as_ac_var=yes"
13914 else
13915   echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918         eval "$as_ac_var=no"
13919 fi
13920
13921 rm -f core conftest.err conftest.$ac_objext \
13922       conftest$ac_exeext conftest.$ac_ext
13923 fi
13924 ac_res=`eval echo '${'$as_ac_var'}'`
13925                { echo "$as_me:$LINENO: result: $ac_res" >&5
13926 echo "${ECHO_T}$ac_res" >&6; }
13927 if test `eval echo '${'$as_ac_var'}'` = yes; then
13928   cat >>confdefs.h <<_ACEOF
13929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13930 _ACEOF
13931
13932 fi
13933 done
13934
13935
13936
13937
13938
13939
13940 for ac_func in log log2 log10 exp exp2
13941 do
13942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13946   echo $ECHO_N "(cached) $ECHO_C" >&6
13947 else
13948   cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h.  */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h.  */
13954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13956 #define $ac_func innocuous_$ac_func
13957
13958 /* System header to define __stub macros and hopefully few prototypes,
13959     which can conflict with char $ac_func (); below.
13960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13961     <limits.h> exists even on freestanding compilers.  */
13962
13963 #ifdef __STDC__
13964 # include <limits.h>
13965 #else
13966 # include <assert.h>
13967 #endif
13968
13969 #undef $ac_func
13970
13971 /* Override any GCC internal prototype to avoid an error.
13972    Use char because int might match the return type of a GCC
13973    builtin and then its argument prototype would still apply.  */
13974 #ifdef __cplusplus
13975 extern "C"
13976 #endif
13977 char $ac_func ();
13978 /* The GNU C library defines this for functions which it implements
13979     to always fail with ENOSYS.  Some functions are actually named
13980     something starting with __ and the normal name is an alias.  */
13981 #if defined __stub_$ac_func || defined __stub___$ac_func
13982 choke me
13983 #endif
13984
13985 int
13986 main ()
13987 {
13988 return $ac_func ();
13989   ;
13990   return 0;
13991 }
13992 _ACEOF
13993 rm -f conftest.$ac_objext conftest$ac_exeext
13994 if { (ac_try="$ac_link"
13995 case "(($ac_try" in
13996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997   *) ac_try_echo=$ac_try;;
13998 esac
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000   (eval "$ac_link") 2>conftest.er1
14001   ac_status=$?
14002   grep -v '^ *+' conftest.er1 >conftest.err
14003   rm -f conftest.er1
14004   cat conftest.err >&5
14005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); } &&
14007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14008   { (case "(($ac_try" in
14009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010   *) ac_try_echo=$ac_try;;
14011 esac
14012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013   (eval "$ac_try") 2>&5
14014   ac_status=$?
14015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); }; } &&
14017          { ac_try='test -s conftest$ac_exeext'
14018   { (case "(($ac_try" in
14019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020   *) ac_try_echo=$ac_try;;
14021 esac
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023   (eval "$ac_try") 2>&5
14024   ac_status=$?
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); }; }; then
14027   eval "$as_ac_var=yes"
14028 else
14029   echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14031
14032         eval "$as_ac_var=no"
14033 fi
14034
14035 rm -f core conftest.err conftest.$ac_objext \
14036       conftest$ac_exeext conftest.$ac_ext
14037 fi
14038 ac_res=`eval echo '${'$as_ac_var'}'`
14039                { echo "$as_me:$LINENO: result: $ac_res" >&5
14040 echo "${ECHO_T}$ac_res" >&6; }
14041 if test `eval echo '${'$as_ac_var'}'` = yes; then
14042   cat >>confdefs.h <<_ACEOF
14043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14044 _ACEOF
14045
14046 fi
14047 done
14048
14049
14050
14051
14052
14053
14054 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14055 do
14056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14060   echo $ECHO_N "(cached) $ECHO_C" >&6
14061 else
14062   cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h.  */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h.  */
14068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14070 #define $ac_func innocuous_$ac_func
14071
14072 /* System header to define __stub macros and hopefully few prototypes,
14073     which can conflict with char $ac_func (); below.
14074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14075     <limits.h> exists even on freestanding compilers.  */
14076
14077 #ifdef __STDC__
14078 # include <limits.h>
14079 #else
14080 # include <assert.h>
14081 #endif
14082
14083 #undef $ac_func
14084
14085 /* Override any GCC internal prototype to avoid an error.
14086    Use char because int might match the return type of a GCC
14087    builtin and then its argument prototype would still apply.  */
14088 #ifdef __cplusplus
14089 extern "C"
14090 #endif
14091 char $ac_func ();
14092 /* The GNU C library defines this for functions which it implements
14093     to always fail with ENOSYS.  Some functions are actually named
14094     something starting with __ and the normal name is an alias.  */
14095 #if defined __stub_$ac_func || defined __stub___$ac_func
14096 choke me
14097 #endif
14098
14099 int
14100 main ()
14101 {
14102 return $ac_func ();
14103   ;
14104   return 0;
14105 }
14106 _ACEOF
14107 rm -f conftest.$ac_objext conftest$ac_exeext
14108 if { (ac_try="$ac_link"
14109 case "(($ac_try" in
14110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111   *) ac_try_echo=$ac_try;;
14112 esac
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114   (eval "$ac_link") 2>conftest.er1
14115   ac_status=$?
14116   grep -v '^ *+' conftest.er1 >conftest.err
14117   rm -f conftest.er1
14118   cat conftest.err >&5
14119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120   (exit $ac_status); } &&
14121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14122   { (case "(($ac_try" in
14123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124   *) ac_try_echo=$ac_try;;
14125 esac
14126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127   (eval "$ac_try") 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); }; } &&
14131          { ac_try='test -s conftest$ac_exeext'
14132   { (case "(($ac_try" in
14133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134   *) ac_try_echo=$ac_try;;
14135 esac
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137   (eval "$ac_try") 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); }; }; then
14141   eval "$as_ac_var=yes"
14142 else
14143   echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14145
14146         eval "$as_ac_var=no"
14147 fi
14148
14149 rm -f core conftest.err conftest.$ac_objext \
14150       conftest$ac_exeext conftest.$ac_ext
14151 fi
14152 ac_res=`eval echo '${'$as_ac_var'}'`
14153                { echo "$as_me:$LINENO: result: $ac_res" >&5
14154 echo "${ECHO_T}$ac_res" >&6; }
14155 if test `eval echo '${'$as_ac_var'}'` = yes; then
14156   cat >>confdefs.h <<_ACEOF
14157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14158 _ACEOF
14159
14160 fi
14161 done
14162
14163
14164
14165
14166 for ac_func in isatty mkdtemp mkstemp
14167 do
14168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14172   echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174   cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h.  */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h.  */
14180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14182 #define $ac_func innocuous_$ac_func
14183
14184 /* System header to define __stub macros and hopefully few prototypes,
14185     which can conflict with char $ac_func (); below.
14186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14187     <limits.h> exists even on freestanding compilers.  */
14188
14189 #ifdef __STDC__
14190 # include <limits.h>
14191 #else
14192 # include <assert.h>
14193 #endif
14194
14195 #undef $ac_func
14196
14197 /* Override any GCC internal prototype to avoid an error.
14198    Use char because int might match the return type of a GCC
14199    builtin and then its argument prototype would still apply.  */
14200 #ifdef __cplusplus
14201 extern "C"
14202 #endif
14203 char $ac_func ();
14204 /* The GNU C library defines this for functions which it implements
14205     to always fail with ENOSYS.  Some functions are actually named
14206     something starting with __ and the normal name is an alias.  */
14207 #if defined __stub_$ac_func || defined __stub___$ac_func
14208 choke me
14209 #endif
14210
14211 int
14212 main ()
14213 {
14214 return $ac_func ();
14215   ;
14216   return 0;
14217 }
14218 _ACEOF
14219 rm -f conftest.$ac_objext conftest$ac_exeext
14220 if { (ac_try="$ac_link"
14221 case "(($ac_try" in
14222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223   *) ac_try_echo=$ac_try;;
14224 esac
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226   (eval "$ac_link") 2>conftest.er1
14227   ac_status=$?
14228   grep -v '^ *+' conftest.er1 >conftest.err
14229   rm -f conftest.er1
14230   cat conftest.err >&5
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); } &&
14233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14234   { (case "(($ac_try" in
14235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14236   *) ac_try_echo=$ac_try;;
14237 esac
14238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14239   (eval "$ac_try") 2>&5
14240   ac_status=$?
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   (exit $ac_status); }; } &&
14243          { ac_try='test -s conftest$ac_exeext'
14244   { (case "(($ac_try" in
14245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246   *) ac_try_echo=$ac_try;;
14247 esac
14248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14249   (eval "$ac_try") 2>&5
14250   ac_status=$?
14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); }; }; then
14253   eval "$as_ac_var=yes"
14254 else
14255   echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14257
14258         eval "$as_ac_var=no"
14259 fi
14260
14261 rm -f core conftest.err conftest.$ac_objext \
14262       conftest$ac_exeext conftest.$ac_ext
14263 fi
14264 ac_res=`eval echo '${'$as_ac_var'}'`
14265                { echo "$as_me:$LINENO: result: $ac_res" >&5
14266 echo "${ECHO_T}$ac_res" >&6; }
14267 if test `eval echo '${'$as_ac_var'}'` = yes; then
14268   cat >>confdefs.h <<_ACEOF
14269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14270 _ACEOF
14271
14272 fi
14273 done
14274
14275
14276
14277
14278
14279
14280
14281 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14282 do
14283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14287   echo $ECHO_N "(cached) $ECHO_C" >&6
14288 else
14289   cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h.  */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h.  */
14295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14297 #define $ac_func innocuous_$ac_func
14298
14299 /* System header to define __stub macros and hopefully few prototypes,
14300     which can conflict with char $ac_func (); below.
14301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14302     <limits.h> exists even on freestanding compilers.  */
14303
14304 #ifdef __STDC__
14305 # include <limits.h>
14306 #else
14307 # include <assert.h>
14308 #endif
14309
14310 #undef $ac_func
14311
14312 /* Override any GCC internal prototype to avoid an error.
14313    Use char because int might match the return type of a GCC
14314    builtin and then its argument prototype would still apply.  */
14315 #ifdef __cplusplus
14316 extern "C"
14317 #endif
14318 char $ac_func ();
14319 /* The GNU C library defines this for functions which it implements
14320     to always fail with ENOSYS.  Some functions are actually named
14321     something starting with __ and the normal name is an alias.  */
14322 #if defined __stub_$ac_func || defined __stub___$ac_func
14323 choke me
14324 #endif
14325
14326 int
14327 main ()
14328 {
14329 return $ac_func ();
14330   ;
14331   return 0;
14332 }
14333 _ACEOF
14334 rm -f conftest.$ac_objext conftest$ac_exeext
14335 if { (ac_try="$ac_link"
14336 case "(($ac_try" in
14337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338   *) ac_try_echo=$ac_try;;
14339 esac
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341   (eval "$ac_link") 2>conftest.er1
14342   ac_status=$?
14343   grep -v '^ *+' conftest.er1 >conftest.err
14344   rm -f conftest.er1
14345   cat conftest.err >&5
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } &&
14348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14349   { (case "(($ac_try" in
14350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351   *) ac_try_echo=$ac_try;;
14352 esac
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354   (eval "$ac_try") 2>&5
14355   ac_status=$?
14356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); }; } &&
14358          { ac_try='test -s conftest$ac_exeext'
14359   { (case "(($ac_try" in
14360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361   *) ac_try_echo=$ac_try;;
14362 esac
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364   (eval "$ac_try") 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); }; }; then
14368   eval "$as_ac_var=yes"
14369 else
14370   echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14372
14373         eval "$as_ac_var=no"
14374 fi
14375
14376 rm -f core conftest.err conftest.$ac_objext \
14377       conftest$ac_exeext conftest.$ac_ext
14378 fi
14379 ac_res=`eval echo '${'$as_ac_var'}'`
14380                { echo "$as_me:$LINENO: result: $ac_res" >&5
14381 echo "${ECHO_T}$ac_res" >&6; }
14382 if test `eval echo '${'$as_ac_var'}'` = yes; then
14383   cat >>confdefs.h <<_ACEOF
14384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14385 _ACEOF
14386
14387 fi
14388 done
14389
14390
14391
14392
14393 for ac_func in strerror strerror_r setenv
14394 do
14395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14399   echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401   cat >conftest.$ac_ext <<_ACEOF
14402 /* confdefs.h.  */
14403 _ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h.  */
14407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14409 #define $ac_func innocuous_$ac_func
14410
14411 /* System header to define __stub macros and hopefully few prototypes,
14412     which can conflict with char $ac_func (); below.
14413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14414     <limits.h> exists even on freestanding compilers.  */
14415
14416 #ifdef __STDC__
14417 # include <limits.h>
14418 #else
14419 # include <assert.h>
14420 #endif
14421
14422 #undef $ac_func
14423
14424 /* Override any GCC internal prototype to avoid an error.
14425    Use char because int might match the return type of a GCC
14426    builtin and then its argument prototype would still apply.  */
14427 #ifdef __cplusplus
14428 extern "C"
14429 #endif
14430 char $ac_func ();
14431 /* The GNU C library defines this for functions which it implements
14432     to always fail with ENOSYS.  Some functions are actually named
14433     something starting with __ and the normal name is an alias.  */
14434 #if defined __stub_$ac_func || defined __stub___$ac_func
14435 choke me
14436 #endif
14437
14438 int
14439 main ()
14440 {
14441 return $ac_func ();
14442   ;
14443   return 0;
14444 }
14445 _ACEOF
14446 rm -f conftest.$ac_objext conftest$ac_exeext
14447 if { (ac_try="$ac_link"
14448 case "(($ac_try" in
14449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450   *) ac_try_echo=$ac_try;;
14451 esac
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453   (eval "$ac_link") 2>conftest.er1
14454   ac_status=$?
14455   grep -v '^ *+' conftest.er1 >conftest.err
14456   rm -f conftest.er1
14457   cat conftest.err >&5
14458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459   (exit $ac_status); } &&
14460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14461   { (case "(($ac_try" in
14462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463   *) ac_try_echo=$ac_try;;
14464 esac
14465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14466   (eval "$ac_try") 2>&5
14467   ac_status=$?
14468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469   (exit $ac_status); }; } &&
14470          { ac_try='test -s conftest$ac_exeext'
14471   { (case "(($ac_try" in
14472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473   *) ac_try_echo=$ac_try;;
14474 esac
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476   (eval "$ac_try") 2>&5
14477   ac_status=$?
14478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479   (exit $ac_status); }; }; then
14480   eval "$as_ac_var=yes"
14481 else
14482   echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.$ac_ext >&5
14484
14485         eval "$as_ac_var=no"
14486 fi
14487
14488 rm -f core conftest.err conftest.$ac_objext \
14489       conftest$ac_exeext conftest.$ac_ext
14490 fi
14491 ac_res=`eval echo '${'$as_ac_var'}'`
14492                { echo "$as_me:$LINENO: result: $ac_res" >&5
14493 echo "${ECHO_T}$ac_res" >&6; }
14494 if test `eval echo '${'$as_ac_var'}'` = yes; then
14495   cat >>confdefs.h <<_ACEOF
14496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14497 _ACEOF
14498
14499 fi
14500 done
14501
14502
14503
14504
14505
14506 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14507 do
14508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14512   echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14514   cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h.  */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h.  */
14520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14522 #define $ac_func innocuous_$ac_func
14523
14524 /* System header to define __stub macros and hopefully few prototypes,
14525     which can conflict with char $ac_func (); below.
14526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14527     <limits.h> exists even on freestanding compilers.  */
14528
14529 #ifdef __STDC__
14530 # include <limits.h>
14531 #else
14532 # include <assert.h>
14533 #endif
14534
14535 #undef $ac_func
14536
14537 /* Override any GCC internal prototype to avoid an error.
14538    Use char because int might match the return type of a GCC
14539    builtin and then its argument prototype would still apply.  */
14540 #ifdef __cplusplus
14541 extern "C"
14542 #endif
14543 char $ac_func ();
14544 /* The GNU C library defines this for functions which it implements
14545     to always fail with ENOSYS.  Some functions are actually named
14546     something starting with __ and the normal name is an alias.  */
14547 #if defined __stub_$ac_func || defined __stub___$ac_func
14548 choke me
14549 #endif
14550
14551 int
14552 main ()
14553 {
14554 return $ac_func ();
14555   ;
14556   return 0;
14557 }
14558 _ACEOF
14559 rm -f conftest.$ac_objext conftest$ac_exeext
14560 if { (ac_try="$ac_link"
14561 case "(($ac_try" in
14562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563   *) ac_try_echo=$ac_try;;
14564 esac
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566   (eval "$ac_link") 2>conftest.er1
14567   ac_status=$?
14568   grep -v '^ *+' conftest.er1 >conftest.err
14569   rm -f conftest.er1
14570   cat conftest.err >&5
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); } &&
14573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14574   { (case "(($ac_try" in
14575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576   *) ac_try_echo=$ac_try;;
14577 esac
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579   (eval "$ac_try") 2>&5
14580   ac_status=$?
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); }; } &&
14583          { ac_try='test -s conftest$ac_exeext'
14584   { (case "(($ac_try" in
14585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586   *) ac_try_echo=$ac_try;;
14587 esac
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589   (eval "$ac_try") 2>&5
14590   ac_status=$?
14591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592   (exit $ac_status); }; }; then
14593   eval "$as_ac_var=yes"
14594 else
14595   echo "$as_me: failed program was:" >&5
14596 sed 's/^/| /' conftest.$ac_ext >&5
14597
14598         eval "$as_ac_var=no"
14599 fi
14600
14601 rm -f core conftest.err conftest.$ac_objext \
14602       conftest$ac_exeext conftest.$ac_ext
14603 fi
14604 ac_res=`eval echo '${'$as_ac_var'}'`
14605                { echo "$as_me:$LINENO: result: $ac_res" >&5
14606 echo "${ECHO_T}$ac_res" >&6; }
14607 if test `eval echo '${'$as_ac_var'}'` = yes; then
14608   cat >>confdefs.h <<_ACEOF
14609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14610 _ACEOF
14611
14612 fi
14613 done
14614
14615
14616
14617
14618
14619
14620 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14621 do
14622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14626   echo $ECHO_N "(cached) $ECHO_C" >&6
14627 else
14628   cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h.  */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h.  */
14634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14635    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14636 #define $ac_func innocuous_$ac_func
14637
14638 /* System header to define __stub macros and hopefully few prototypes,
14639     which can conflict with char $ac_func (); below.
14640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14641     <limits.h> exists even on freestanding compilers.  */
14642
14643 #ifdef __STDC__
14644 # include <limits.h>
14645 #else
14646 # include <assert.h>
14647 #endif
14648
14649 #undef $ac_func
14650
14651 /* Override any GCC internal prototype to avoid an error.
14652    Use char because int might match the return type of a GCC
14653    builtin and then its argument prototype would still apply.  */
14654 #ifdef __cplusplus
14655 extern "C"
14656 #endif
14657 char $ac_func ();
14658 /* The GNU C library defines this for functions which it implements
14659     to always fail with ENOSYS.  Some functions are actually named
14660     something starting with __ and the normal name is an alias.  */
14661 #if defined __stub_$ac_func || defined __stub___$ac_func
14662 choke me
14663 #endif
14664
14665 int
14666 main ()
14667 {
14668 return $ac_func ();
14669   ;
14670   return 0;
14671 }
14672 _ACEOF
14673 rm -f conftest.$ac_objext conftest$ac_exeext
14674 if { (ac_try="$ac_link"
14675 case "(($ac_try" in
14676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677   *) ac_try_echo=$ac_try;;
14678 esac
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680   (eval "$ac_link") 2>conftest.er1
14681   ac_status=$?
14682   grep -v '^ *+' conftest.er1 >conftest.err
14683   rm -f conftest.er1
14684   cat conftest.err >&5
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); } &&
14687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14688   { (case "(($ac_try" in
14689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690   *) ac_try_echo=$ac_try;;
14691 esac
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693   (eval "$ac_try") 2>&5
14694   ac_status=$?
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); }; } &&
14697          { ac_try='test -s conftest$ac_exeext'
14698   { (case "(($ac_try" in
14699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700   *) ac_try_echo=$ac_try;;
14701 esac
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703   (eval "$ac_try") 2>&5
14704   ac_status=$?
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); }; }; then
14707   eval "$as_ac_var=yes"
14708 else
14709   echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14711
14712         eval "$as_ac_var=no"
14713 fi
14714
14715 rm -f core conftest.err conftest.$ac_objext \
14716       conftest$ac_exeext conftest.$ac_ext
14717 fi
14718 ac_res=`eval echo '${'$as_ac_var'}'`
14719                { echo "$as_me:$LINENO: result: $ac_res" >&5
14720 echo "${ECHO_T}$ac_res" >&6; }
14721 if test `eval echo '${'$as_ac_var'}'` = yes; then
14722   cat >>confdefs.h <<_ACEOF
14723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14724 _ACEOF
14725
14726 fi
14727 done
14728
14729
14730
14731 for ac_func in futimes futimens
14732 do
14733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14737   echo $ECHO_N "(cached) $ECHO_C" >&6
14738 else
14739   cat >conftest.$ac_ext <<_ACEOF
14740 /* confdefs.h.  */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h.  */
14745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14747 #define $ac_func innocuous_$ac_func
14748
14749 /* System header to define __stub macros and hopefully few prototypes,
14750     which can conflict with char $ac_func (); below.
14751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14752     <limits.h> exists even on freestanding compilers.  */
14753
14754 #ifdef __STDC__
14755 # include <limits.h>
14756 #else
14757 # include <assert.h>
14758 #endif
14759
14760 #undef $ac_func
14761
14762 /* Override any GCC internal prototype to avoid an error.
14763    Use char because int might match the return type of a GCC
14764    builtin and then its argument prototype would still apply.  */
14765 #ifdef __cplusplus
14766 extern "C"
14767 #endif
14768 char $ac_func ();
14769 /* The GNU C library defines this for functions which it implements
14770     to always fail with ENOSYS.  Some functions are actually named
14771     something starting with __ and the normal name is an alias.  */
14772 #if defined __stub_$ac_func || defined __stub___$ac_func
14773 choke me
14774 #endif
14775
14776 int
14777 main ()
14778 {
14779 return $ac_func ();
14780   ;
14781   return 0;
14782 }
14783 _ACEOF
14784 rm -f conftest.$ac_objext conftest$ac_exeext
14785 if { (ac_try="$ac_link"
14786 case "(($ac_try" in
14787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788   *) ac_try_echo=$ac_try;;
14789 esac
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791   (eval "$ac_link") 2>conftest.er1
14792   ac_status=$?
14793   grep -v '^ *+' conftest.er1 >conftest.err
14794   rm -f conftest.er1
14795   cat conftest.err >&5
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); } &&
14798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14799   { (case "(($ac_try" in
14800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801   *) ac_try_echo=$ac_try;;
14802 esac
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804   (eval "$ac_try") 2>&5
14805   ac_status=$?
14806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); }; } &&
14808          { ac_try='test -s conftest$ac_exeext'
14809   { (case "(($ac_try" in
14810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14811   *) ac_try_echo=$ac_try;;
14812 esac
14813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14814   (eval "$ac_try") 2>&5
14815   ac_status=$?
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); }; }; then
14818   eval "$as_ac_var=yes"
14819 else
14820   echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14822
14823         eval "$as_ac_var=no"
14824 fi
14825
14826 rm -f core conftest.err conftest.$ac_objext \
14827       conftest$ac_exeext conftest.$ac_ext
14828 fi
14829 ac_res=`eval echo '${'$as_ac_var'}'`
14830                { echo "$as_me:$LINENO: result: $ac_res" >&5
14831 echo "${ECHO_T}$ac_res" >&6; }
14832 if test `eval echo '${'$as_ac_var'}'` = yes; then
14833   cat >>confdefs.h <<_ACEOF
14834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14835 _ACEOF
14836
14837 fi
14838 done
14839
14840 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14841 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14842 if test "${llvm_cv_c_printf_a+set}" = set; then
14843   echo $ECHO_N "(cached) $ECHO_C" >&6
14844 else
14845   ac_ext=c
14846 ac_cpp='$CPP $CPPFLAGS'
14847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14850
14851  if test "$cross_compiling" = yes; then
14852   llvmac_cv_c_printf_a=no
14853 else
14854   cat >conftest.$ac_ext <<_ACEOF
14855
14856   /* confdefs.h.  */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h.  */
14861
14862 #include <stdio.h>
14863 #include <stdlib.h>
14864
14865 int
14866 main ()
14867 {
14868
14869 volatile double A, B;
14870 char Buffer[100];
14871 A = 1;
14872 A /= 10.0;
14873 sprintf(Buffer, "%a", A);
14874 B = atof(Buffer);
14875 if (A != B)
14876   return (1);
14877 if (A != 0x1.999999999999ap-4)
14878   return (1);
14879 return (0);
14880   ;
14881   return 0;
14882 }
14883 _ACEOF
14884 rm -f conftest$ac_exeext
14885 if { (ac_try="$ac_link"
14886 case "(($ac_try" in
14887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14888   *) ac_try_echo=$ac_try;;
14889 esac
14890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14891   (eval "$ac_link") 2>&5
14892   ac_status=$?
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14895   { (case "(($ac_try" in
14896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897   *) ac_try_echo=$ac_try;;
14898 esac
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900   (eval "$ac_try") 2>&5
14901   ac_status=$?
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); }; }; then
14904   llvm_cv_c_printf_a=yes
14905 else
14906   echo "$as_me: program exited with status $ac_status" >&5
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14909
14910 ( exit $ac_status )
14911 llvmac_cv_c_printf_a=no
14912 fi
14913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14914 fi
14915
14916
14917  ac_ext=c
14918 ac_cpp='$CPP $CPPFLAGS'
14919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14922
14923 fi
14924 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14925 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14926  if test "$llvm_cv_c_printf_a" = "yes"; then
14927
14928 cat >>confdefs.h <<\_ACEOF
14929 #define HAVE_PRINTF_A 1
14930 _ACEOF
14931
14932  fi
14933
14934
14935
14936   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14937 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14938 if test "${ac_cv_func_rand48+set}" = set; then
14939   echo $ECHO_N "(cached) $ECHO_C" >&6
14940 else
14941
14942     ac_ext=cpp
14943 ac_cpp='$CXXCPP $CPPFLAGS'
14944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14947
14948     cat >conftest.$ac_ext <<_ACEOF
14949 /* confdefs.h.  */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h.  */
14954 #include <stdlib.h>
14955 int
14956 main ()
14957 {
14958 srand48(0);lrand48();drand48();
14959   ;
14960   return 0;
14961 }
14962 _ACEOF
14963 rm -f conftest.$ac_objext
14964 if { (ac_try="$ac_compile"
14965 case "(($ac_try" in
14966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967   *) ac_try_echo=$ac_try;;
14968 esac
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970   (eval "$ac_compile") 2>conftest.er1
14971   ac_status=$?
14972   grep -v '^ *+' conftest.er1 >conftest.err
14973   rm -f conftest.er1
14974   cat conftest.err >&5
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); } &&
14977          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14978   { (case "(($ac_try" in
14979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980   *) ac_try_echo=$ac_try;;
14981 esac
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983   (eval "$ac_try") 2>&5
14984   ac_status=$?
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   (exit $ac_status); }; } &&
14987          { ac_try='test -s conftest.$ac_objext'
14988   { (case "(($ac_try" in
14989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990   *) ac_try_echo=$ac_try;;
14991 esac
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993   (eval "$ac_try") 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); }; }; then
14997   ac_cv_func_rand48=yes
14998 else
14999   echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002         ac_cv_func_rand48=no
15003 fi
15004
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15006     ac_ext=c
15007 ac_cpp='$CPP $CPPFLAGS'
15008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15011
15012
15013 fi
15014 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15015 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15016
15017 if test "$ac_cv_func_rand48" = "yes" ; then
15018
15019 cat >>confdefs.h <<\_ACEOF
15020 #define HAVE_RAND48 1
15021 _ACEOF
15022
15023 fi
15024
15025
15026 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15027 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15028 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15029   echo $ECHO_N "(cached) $ECHO_C" >&6
15030 else
15031   cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h.  */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h.  */
15037 $ac_includes_default
15038 int
15039 main ()
15040 {
15041 #ifndef arc4random
15042   char *p = (char *) arc4random;
15043   return !p;
15044 #endif
15045
15046   ;
15047   return 0;
15048 }
15049 _ACEOF
15050 rm -f conftest.$ac_objext
15051 if { (ac_try="$ac_compile"
15052 case "(($ac_try" in
15053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054   *) ac_try_echo=$ac_try;;
15055 esac
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057   (eval "$ac_compile") 2>conftest.er1
15058   ac_status=$?
15059   grep -v '^ *+' conftest.er1 >conftest.err
15060   rm -f conftest.er1
15061   cat conftest.err >&5
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); } &&
15064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15065   { (case "(($ac_try" in
15066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067   *) ac_try_echo=$ac_try;;
15068 esac
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070   (eval "$ac_try") 2>&5
15071   ac_status=$?
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); }; } &&
15074          { ac_try='test -s conftest.$ac_objext'
15075   { (case "(($ac_try" in
15076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077   *) ac_try_echo=$ac_try;;
15078 esac
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080   (eval "$ac_try") 2>&5
15081   ac_status=$?
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); }; }; then
15084   ac_cv_have_decl_arc4random=yes
15085 else
15086   echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15088
15089         ac_cv_have_decl_arc4random=no
15090 fi
15091
15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15093 fi
15094 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15095 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15096 if test $ac_cv_have_decl_arc4random = yes; then
15097
15098 cat >>confdefs.h <<_ACEOF
15099 #define HAVE_DECL_ARC4RANDOM 1
15100 _ACEOF
15101
15102
15103 else
15104   cat >>confdefs.h <<_ACEOF
15105 #define HAVE_DECL_ARC4RANDOM 0
15106 _ACEOF
15107
15108
15109 fi
15110
15111
15112
15113 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15114 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15115 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15116   echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118   cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h.  */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h.  */
15124 $ac_includes_default
15125 int
15126 main ()
15127 {
15128 #ifndef strerror_s
15129   char *p = (char *) strerror_s;
15130   return !p;
15131 #endif
15132
15133   ;
15134   return 0;
15135 }
15136 _ACEOF
15137 rm -f conftest.$ac_objext
15138 if { (ac_try="$ac_compile"
15139 case "(($ac_try" in
15140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141   *) ac_try_echo=$ac_try;;
15142 esac
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144   (eval "$ac_compile") 2>conftest.er1
15145   ac_status=$?
15146   grep -v '^ *+' conftest.er1 >conftest.err
15147   rm -f conftest.er1
15148   cat conftest.err >&5
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); } &&
15151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15158   ac_status=$?
15159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); }; } &&
15161          { ac_try='test -s conftest.$ac_objext'
15162   { (case "(($ac_try" in
15163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164   *) ac_try_echo=$ac_try;;
15165 esac
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167   (eval "$ac_try") 2>&5
15168   ac_status=$?
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); }; }; then
15171   ac_cv_have_decl_strerror_s=yes
15172 else
15173   echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176         ac_cv_have_decl_strerror_s=no
15177 fi
15178
15179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180 fi
15181 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15182 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15183 if test $ac_cv_have_decl_strerror_s = yes; then
15184
15185 cat >>confdefs.h <<_ACEOF
15186 #define HAVE_DECL_STRERROR_S 1
15187 _ACEOF
15188
15189
15190 else
15191   cat >>confdefs.h <<_ACEOF
15192 #define HAVE_DECL_STRERROR_S 0
15193 _ACEOF
15194
15195
15196 fi
15197
15198
15199
15200 if test "$llvm_cv_os_type" = "MingW" ; then
15201   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15202 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15203 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15204   echo $ECHO_N "(cached) $ECHO_C" >&6
15205 else
15206   ac_check_lib_save_LIBS=$LIBS
15207 LIBS="-lgcc  $LIBS"
15208 cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h.  */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h.  */
15214
15215 /* Override any GCC internal prototype to avoid an error.
15216    Use char because int might match the return type of a GCC
15217    builtin and then its argument prototype would still apply.  */
15218 #ifdef __cplusplus
15219 extern "C"
15220 #endif
15221 char _alloca ();
15222 int
15223 main ()
15224 {
15225 return _alloca ();
15226   ;
15227   return 0;
15228 }
15229 _ACEOF
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234   *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237   (eval "$ac_link") 2>conftest.er1
15238   ac_status=$?
15239   grep -v '^ *+' conftest.er1 >conftest.err
15240   rm -f conftest.er1
15241   cat conftest.err >&5
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); } &&
15244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245   { (case "(($ac_try" in
15246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247   *) ac_try_echo=$ac_try;;
15248 esac
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250   (eval "$ac_try") 2>&5
15251   ac_status=$?
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); }; } &&
15254          { ac_try='test -s conftest$ac_exeext'
15255   { (case "(($ac_try" in
15256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257   *) ac_try_echo=$ac_try;;
15258 esac
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260   (eval "$ac_try") 2>&5
15261   ac_status=$?
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); }; }; then
15264   ac_cv_lib_gcc__alloca=yes
15265 else
15266   echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15268
15269         ac_cv_lib_gcc__alloca=no
15270 fi
15271
15272 rm -f core conftest.err conftest.$ac_objext \
15273       conftest$ac_exeext conftest.$ac_ext
15274 LIBS=$ac_check_lib_save_LIBS
15275 fi
15276 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15277 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15278 if test $ac_cv_lib_gcc__alloca = yes; then
15279
15280 cat >>confdefs.h <<\_ACEOF
15281 #define HAVE__ALLOCA 1
15282 _ACEOF
15283
15284 fi
15285
15286   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15287 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15288 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15289   echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291   ac_check_lib_save_LIBS=$LIBS
15292 LIBS="-lgcc  $LIBS"
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h.  */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h.  */
15299
15300 /* Override any GCC internal prototype to avoid an error.
15301    Use char because int might match the return type of a GCC
15302    builtin and then its argument prototype would still apply.  */
15303 #ifdef __cplusplus
15304 extern "C"
15305 #endif
15306 char __alloca ();
15307 int
15308 main ()
15309 {
15310 return __alloca ();
15311   ;
15312   return 0;
15313 }
15314 _ACEOF
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (ac_try="$ac_link"
15317 case "(($ac_try" in
15318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319   *) ac_try_echo=$ac_try;;
15320 esac
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322   (eval "$ac_link") 2>conftest.er1
15323   ac_status=$?
15324   grep -v '^ *+' conftest.er1 >conftest.err
15325   rm -f conftest.er1
15326   cat conftest.err >&5
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); } &&
15329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15330   { (case "(($ac_try" in
15331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332   *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335   (eval "$ac_try") 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; } &&
15339          { ac_try='test -s conftest$ac_exeext'
15340   { (case "(($ac_try" in
15341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342   *) ac_try_echo=$ac_try;;
15343 esac
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345   (eval "$ac_try") 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); }; }; then
15349   ac_cv_lib_gcc___alloca=yes
15350 else
15351   echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15353
15354         ac_cv_lib_gcc___alloca=no
15355 fi
15356
15357 rm -f core conftest.err conftest.$ac_objext \
15358       conftest$ac_exeext conftest.$ac_ext
15359 LIBS=$ac_check_lib_save_LIBS
15360 fi
15361 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15362 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15363 if test $ac_cv_lib_gcc___alloca = yes; then
15364
15365 cat >>confdefs.h <<\_ACEOF
15366 #define HAVE___ALLOCA 1
15367 _ACEOF
15368
15369 fi
15370
15371   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15372 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15373 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15374   echo $ECHO_N "(cached) $ECHO_C" >&6
15375 else
15376   ac_check_lib_save_LIBS=$LIBS
15377 LIBS="-lgcc  $LIBS"
15378 cat >conftest.$ac_ext <<_ACEOF
15379 /* confdefs.h.  */
15380 _ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h.  */
15384
15385 /* Override any GCC internal prototype to avoid an error.
15386    Use char because int might match the return type of a GCC
15387    builtin and then its argument prototype would still apply.  */
15388 #ifdef __cplusplus
15389 extern "C"
15390 #endif
15391 char __chkstk ();
15392 int
15393 main ()
15394 {
15395 return __chkstk ();
15396   ;
15397   return 0;
15398 }
15399 _ACEOF
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404   *) ac_try_echo=$ac_try;;
15405 esac
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407   (eval "$ac_link") 2>conftest.er1
15408   ac_status=$?
15409   grep -v '^ *+' conftest.er1 >conftest.err
15410   rm -f conftest.er1
15411   cat conftest.err >&5
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } &&
15414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15415   { (case "(($ac_try" in
15416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417   *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420   (eval "$ac_try") 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); }; } &&
15424          { ac_try='test -s conftest$ac_exeext'
15425   { (case "(($ac_try" in
15426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427   *) ac_try_echo=$ac_try;;
15428 esac
15429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430   (eval "$ac_try") 2>&5
15431   ac_status=$?
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); }; }; then
15434   ac_cv_lib_gcc___chkstk=yes
15435 else
15436   echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15438
15439         ac_cv_lib_gcc___chkstk=no
15440 fi
15441
15442 rm -f core conftest.err conftest.$ac_objext \
15443       conftest$ac_exeext conftest.$ac_ext
15444 LIBS=$ac_check_lib_save_LIBS
15445 fi
15446 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15447 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15448 if test $ac_cv_lib_gcc___chkstk = yes; then
15449
15450 cat >>confdefs.h <<\_ACEOF
15451 #define HAVE___CHKSTK 1
15452 _ACEOF
15453
15454 fi
15455
15456   { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15457 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15458 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15459   echo $ECHO_N "(cached) $ECHO_C" >&6
15460 else
15461   ac_check_lib_save_LIBS=$LIBS
15462 LIBS="-lgcc  $LIBS"
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h.  */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h.  */
15469
15470 /* Override any GCC internal prototype to avoid an error.
15471    Use char because int might match the return type of a GCC
15472    builtin and then its argument prototype would still apply.  */
15473 #ifdef __cplusplus
15474 extern "C"
15475 #endif
15476 char __chkstk_ms ();
15477 int
15478 main ()
15479 {
15480 return __chkstk_ms ();
15481   ;
15482   return 0;
15483 }
15484 _ACEOF
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (ac_try="$ac_link"
15487 case "(($ac_try" in
15488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489   *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492   (eval "$ac_link") 2>conftest.er1
15493   ac_status=$?
15494   grep -v '^ *+' conftest.er1 >conftest.err
15495   rm -f conftest.er1
15496   cat conftest.err >&5
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); } &&
15499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15500   { (case "(($ac_try" in
15501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502   *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505   (eval "$ac_try") 2>&5
15506   ac_status=$?
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); }; } &&
15509          { ac_try='test -s conftest$ac_exeext'
15510   { (case "(($ac_try" in
15511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512   *) ac_try_echo=$ac_try;;
15513 esac
15514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515   (eval "$ac_try") 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; }; then
15519   ac_cv_lib_gcc___chkstk_ms=yes
15520 else
15521   echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524         ac_cv_lib_gcc___chkstk_ms=no
15525 fi
15526
15527 rm -f core conftest.err conftest.$ac_objext \
15528       conftest$ac_exeext conftest.$ac_ext
15529 LIBS=$ac_check_lib_save_LIBS
15530 fi
15531 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15532 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15533 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15534
15535 cat >>confdefs.h <<\_ACEOF
15536 #define HAVE___CHKSTK_MS 1
15537 _ACEOF
15538
15539 fi
15540
15541   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15542 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15543 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15544   echo $ECHO_N "(cached) $ECHO_C" >&6
15545 else
15546   ac_check_lib_save_LIBS=$LIBS
15547 LIBS="-lgcc  $LIBS"
15548 cat >conftest.$ac_ext <<_ACEOF
15549 /* confdefs.h.  */
15550 _ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h.  */
15554
15555 /* Override any GCC internal prototype to avoid an error.
15556    Use char because int might match the return type of a GCC
15557    builtin and then its argument prototype would still apply.  */
15558 #ifdef __cplusplus
15559 extern "C"
15560 #endif
15561 char ___chkstk ();
15562 int
15563 main ()
15564 {
15565 return ___chkstk ();
15566   ;
15567   return 0;
15568 }
15569 _ACEOF
15570 rm -f conftest.$ac_objext conftest$ac_exeext
15571 if { (ac_try="$ac_link"
15572 case "(($ac_try" in
15573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574   *) ac_try_echo=$ac_try;;
15575 esac
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577   (eval "$ac_link") 2>conftest.er1
15578   ac_status=$?
15579   grep -v '^ *+' conftest.er1 >conftest.err
15580   rm -f conftest.er1
15581   cat conftest.err >&5
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } &&
15584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15585   { (case "(($ac_try" in
15586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587   *) ac_try_echo=$ac_try;;
15588 esac
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590   (eval "$ac_try") 2>&5
15591   ac_status=$?
15592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); }; } &&
15594          { ac_try='test -s conftest$ac_exeext'
15595   { (case "(($ac_try" in
15596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597   *) ac_try_echo=$ac_try;;
15598 esac
15599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600   (eval "$ac_try") 2>&5
15601   ac_status=$?
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); }; }; then
15604   ac_cv_lib_gcc____chkstk=yes
15605 else
15606   echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15608
15609         ac_cv_lib_gcc____chkstk=no
15610 fi
15611
15612 rm -f core conftest.err conftest.$ac_objext \
15613       conftest$ac_exeext conftest.$ac_ext
15614 LIBS=$ac_check_lib_save_LIBS
15615 fi
15616 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15617 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15618 if test $ac_cv_lib_gcc____chkstk = yes; then
15619
15620 cat >>confdefs.h <<\_ACEOF
15621 #define HAVE____CHKSTK 1
15622 _ACEOF
15623
15624 fi
15625
15626   { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15627 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15628 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15629   echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631   ac_check_lib_save_LIBS=$LIBS
15632 LIBS="-lgcc  $LIBS"
15633 cat >conftest.$ac_ext <<_ACEOF
15634 /* confdefs.h.  */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h.  */
15639
15640 /* Override any GCC internal prototype to avoid an error.
15641    Use char because int might match the return type of a GCC
15642    builtin and then its argument prototype would still apply.  */
15643 #ifdef __cplusplus
15644 extern "C"
15645 #endif
15646 char ___chkstk_ms ();
15647 int
15648 main ()
15649 {
15650 return ___chkstk_ms ();
15651   ;
15652   return 0;
15653 }
15654 _ACEOF
15655 rm -f conftest.$ac_objext conftest$ac_exeext
15656 if { (ac_try="$ac_link"
15657 case "(($ac_try" in
15658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659   *) ac_try_echo=$ac_try;;
15660 esac
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662   (eval "$ac_link") 2>conftest.er1
15663   ac_status=$?
15664   grep -v '^ *+' conftest.er1 >conftest.err
15665   rm -f conftest.er1
15666   cat conftest.err >&5
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); } &&
15669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15670   { (case "(($ac_try" in
15671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672   *) ac_try_echo=$ac_try;;
15673 esac
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675   (eval "$ac_try") 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; } &&
15679          { ac_try='test -s conftest$ac_exeext'
15680   { (case "(($ac_try" in
15681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682   *) ac_try_echo=$ac_try;;
15683 esac
15684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15685   (eval "$ac_try") 2>&5
15686   ac_status=$?
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); }; }; then
15689   ac_cv_lib_gcc____chkstk_ms=yes
15690 else
15691   echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15693
15694         ac_cv_lib_gcc____chkstk_ms=no
15695 fi
15696
15697 rm -f core conftest.err conftest.$ac_objext \
15698       conftest$ac_exeext conftest.$ac_ext
15699 LIBS=$ac_check_lib_save_LIBS
15700 fi
15701 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15702 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15703 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15704
15705 cat >>confdefs.h <<\_ACEOF
15706 #define HAVE____CHKSTK_MS 1
15707 _ACEOF
15708
15709 fi
15710
15711
15712   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15713 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15714 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15715   echo $ECHO_N "(cached) $ECHO_C" >&6
15716 else
15717   ac_check_lib_save_LIBS=$LIBS
15718 LIBS="-lgcc  $LIBS"
15719 cat >conftest.$ac_ext <<_ACEOF
15720 /* confdefs.h.  */
15721 _ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h.  */
15725
15726 /* Override any GCC internal prototype to avoid an error.
15727    Use char because int might match the return type of a GCC
15728    builtin and then its argument prototype would still apply.  */
15729 #ifdef __cplusplus
15730 extern "C"
15731 #endif
15732 char __ashldi3 ();
15733 int
15734 main ()
15735 {
15736 return __ashldi3 ();
15737   ;
15738   return 0;
15739 }
15740 _ACEOF
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (ac_try="$ac_link"
15743 case "(($ac_try" in
15744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745   *) ac_try_echo=$ac_try;;
15746 esac
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748   (eval "$ac_link") 2>conftest.er1
15749   ac_status=$?
15750   grep -v '^ *+' conftest.er1 >conftest.err
15751   rm -f conftest.er1
15752   cat conftest.err >&5
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); } &&
15755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15756   { (case "(($ac_try" in
15757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758   *) ac_try_echo=$ac_try;;
15759 esac
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761   (eval "$ac_try") 2>&5
15762   ac_status=$?
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); }; } &&
15765          { ac_try='test -s conftest$ac_exeext'
15766   { (case "(($ac_try" in
15767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768   *) ac_try_echo=$ac_try;;
15769 esac
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771   (eval "$ac_try") 2>&5
15772   ac_status=$?
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); }; }; then
15775   ac_cv_lib_gcc___ashldi3=yes
15776 else
15777   echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780         ac_cv_lib_gcc___ashldi3=no
15781 fi
15782
15783 rm -f core conftest.err conftest.$ac_objext \
15784       conftest$ac_exeext conftest.$ac_ext
15785 LIBS=$ac_check_lib_save_LIBS
15786 fi
15787 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15788 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15789 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15790
15791 cat >>confdefs.h <<\_ACEOF
15792 #define HAVE___ASHLDI3 1
15793 _ACEOF
15794
15795 fi
15796
15797   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15798 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15799 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15800   echo $ECHO_N "(cached) $ECHO_C" >&6
15801 else
15802   ac_check_lib_save_LIBS=$LIBS
15803 LIBS="-lgcc  $LIBS"
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h.  */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h.  */
15810
15811 /* Override any GCC internal prototype to avoid an error.
15812    Use char because int might match the return type of a GCC
15813    builtin and then its argument prototype would still apply.  */
15814 #ifdef __cplusplus
15815 extern "C"
15816 #endif
15817 char __ashrdi3 ();
15818 int
15819 main ()
15820 {
15821 return __ashrdi3 ();
15822   ;
15823   return 0;
15824 }
15825 _ACEOF
15826 rm -f conftest.$ac_objext conftest$ac_exeext
15827 if { (ac_try="$ac_link"
15828 case "(($ac_try" in
15829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830   *) ac_try_echo=$ac_try;;
15831 esac
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833   (eval "$ac_link") 2>conftest.er1
15834   ac_status=$?
15835   grep -v '^ *+' conftest.er1 >conftest.err
15836   rm -f conftest.er1
15837   cat conftest.err >&5
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); } &&
15840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15841   { (case "(($ac_try" in
15842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843   *) ac_try_echo=$ac_try;;
15844 esac
15845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846   (eval "$ac_try") 2>&5
15847   ac_status=$?
15848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849   (exit $ac_status); }; } &&
15850          { ac_try='test -s conftest$ac_exeext'
15851   { (case "(($ac_try" in
15852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853   *) ac_try_echo=$ac_try;;
15854 esac
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856   (eval "$ac_try") 2>&5
15857   ac_status=$?
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); }; }; then
15860   ac_cv_lib_gcc___ashrdi3=yes
15861 else
15862   echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15864
15865         ac_cv_lib_gcc___ashrdi3=no
15866 fi
15867
15868 rm -f core conftest.err conftest.$ac_objext \
15869       conftest$ac_exeext conftest.$ac_ext
15870 LIBS=$ac_check_lib_save_LIBS
15871 fi
15872 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15873 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15874 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15875
15876 cat >>confdefs.h <<\_ACEOF
15877 #define HAVE___ASHRDI3 1
15878 _ACEOF
15879
15880 fi
15881
15882   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15883 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15884 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15885   echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887   ac_check_lib_save_LIBS=$LIBS
15888 LIBS="-lgcc  $LIBS"
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h.  */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h.  */
15895
15896 /* Override any GCC internal prototype to avoid an error.
15897    Use char because int might match the return type of a GCC
15898    builtin and then its argument prototype would still apply.  */
15899 #ifdef __cplusplus
15900 extern "C"
15901 #endif
15902 char __divdi3 ();
15903 int
15904 main ()
15905 {
15906 return __divdi3 ();
15907   ;
15908   return 0;
15909 }
15910 _ACEOF
15911 rm -f conftest.$ac_objext conftest$ac_exeext
15912 if { (ac_try="$ac_link"
15913 case "(($ac_try" in
15914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915   *) ac_try_echo=$ac_try;;
15916 esac
15917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918   (eval "$ac_link") 2>conftest.er1
15919   ac_status=$?
15920   grep -v '^ *+' conftest.er1 >conftest.err
15921   rm -f conftest.er1
15922   cat conftest.err >&5
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); } &&
15925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15926   { (case "(($ac_try" in
15927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928   *) ac_try_echo=$ac_try;;
15929 esac
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931   (eval "$ac_try") 2>&5
15932   ac_status=$?
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); }; } &&
15935          { ac_try='test -s conftest$ac_exeext'
15936   { (case "(($ac_try" in
15937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938   *) ac_try_echo=$ac_try;;
15939 esac
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941   (eval "$ac_try") 2>&5
15942   ac_status=$?
15943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944   (exit $ac_status); }; }; then
15945   ac_cv_lib_gcc___divdi3=yes
15946 else
15947   echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15949
15950         ac_cv_lib_gcc___divdi3=no
15951 fi
15952
15953 rm -f core conftest.err conftest.$ac_objext \
15954       conftest$ac_exeext conftest.$ac_ext
15955 LIBS=$ac_check_lib_save_LIBS
15956 fi
15957 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15958 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15959 if test $ac_cv_lib_gcc___divdi3 = yes; then
15960
15961 cat >>confdefs.h <<\_ACEOF
15962 #define HAVE___DIVDI3 1
15963 _ACEOF
15964
15965 fi
15966
15967   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15968 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15969 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15970   echo $ECHO_N "(cached) $ECHO_C" >&6
15971 else
15972   ac_check_lib_save_LIBS=$LIBS
15973 LIBS="-lgcc  $LIBS"
15974 cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980
15981 /* Override any GCC internal prototype to avoid an error.
15982    Use char because int might match the return type of a GCC
15983    builtin and then its argument prototype would still apply.  */
15984 #ifdef __cplusplus
15985 extern "C"
15986 #endif
15987 char __fixdfdi ();
15988 int
15989 main ()
15990 {
15991 return __fixdfdi ();
15992   ;
15993   return 0;
15994 }
15995 _ACEOF
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000   *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003   (eval "$ac_link") 2>conftest.er1
16004   ac_status=$?
16005   grep -v '^ *+' conftest.er1 >conftest.err
16006   rm -f conftest.er1
16007   cat conftest.err >&5
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); } &&
16010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16011   { (case "(($ac_try" in
16012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013   *) ac_try_echo=$ac_try;;
16014 esac
16015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16016   (eval "$ac_try") 2>&5
16017   ac_status=$?
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); }; } &&
16020          { ac_try='test -s conftest$ac_exeext'
16021   { (case "(($ac_try" in
16022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023   *) ac_try_echo=$ac_try;;
16024 esac
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026   (eval "$ac_try") 2>&5
16027   ac_status=$?
16028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029   (exit $ac_status); }; }; then
16030   ac_cv_lib_gcc___fixdfdi=yes
16031 else
16032   echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16034
16035         ac_cv_lib_gcc___fixdfdi=no
16036 fi
16037
16038 rm -f core conftest.err conftest.$ac_objext \
16039       conftest$ac_exeext conftest.$ac_ext
16040 LIBS=$ac_check_lib_save_LIBS
16041 fi
16042 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16043 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16044 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16045
16046 cat >>confdefs.h <<\_ACEOF
16047 #define HAVE___FIXDFDI 1
16048 _ACEOF
16049
16050 fi
16051
16052   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16053 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16054 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16055   echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16057   ac_check_lib_save_LIBS=$LIBS
16058 LIBS="-lgcc  $LIBS"
16059 cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h.  */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h.  */
16065
16066 /* Override any GCC internal prototype to avoid an error.
16067    Use char because int might match the return type of a GCC
16068    builtin and then its argument prototype would still apply.  */
16069 #ifdef __cplusplus
16070 extern "C"
16071 #endif
16072 char __fixsfdi ();
16073 int
16074 main ()
16075 {
16076 return __fixsfdi ();
16077   ;
16078   return 0;
16079 }
16080 _ACEOF
16081 rm -f conftest.$ac_objext conftest$ac_exeext
16082 if { (ac_try="$ac_link"
16083 case "(($ac_try" in
16084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085   *) ac_try_echo=$ac_try;;
16086 esac
16087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088   (eval "$ac_link") 2>conftest.er1
16089   ac_status=$?
16090   grep -v '^ *+' conftest.er1 >conftest.err
16091   rm -f conftest.er1
16092   cat conftest.err >&5
16093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094   (exit $ac_status); } &&
16095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16096   { (case "(($ac_try" in
16097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098   *) ac_try_echo=$ac_try;;
16099 esac
16100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101   (eval "$ac_try") 2>&5
16102   ac_status=$?
16103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104   (exit $ac_status); }; } &&
16105          { ac_try='test -s conftest$ac_exeext'
16106   { (case "(($ac_try" in
16107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108   *) ac_try_echo=$ac_try;;
16109 esac
16110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111   (eval "$ac_try") 2>&5
16112   ac_status=$?
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); }; }; then
16115   ac_cv_lib_gcc___fixsfdi=yes
16116 else
16117   echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.$ac_ext >&5
16119
16120         ac_cv_lib_gcc___fixsfdi=no
16121 fi
16122
16123 rm -f core conftest.err conftest.$ac_objext \
16124       conftest$ac_exeext conftest.$ac_ext
16125 LIBS=$ac_check_lib_save_LIBS
16126 fi
16127 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16128 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16129 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16130
16131 cat >>confdefs.h <<\_ACEOF
16132 #define HAVE___FIXSFDI 1
16133 _ACEOF
16134
16135 fi
16136
16137   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16138 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16139 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16140   echo $ECHO_N "(cached) $ECHO_C" >&6
16141 else
16142   ac_check_lib_save_LIBS=$LIBS
16143 LIBS="-lgcc  $LIBS"
16144 cat >conftest.$ac_ext <<_ACEOF
16145 /* confdefs.h.  */
16146 _ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h.  */
16150
16151 /* Override any GCC internal prototype to avoid an error.
16152    Use char because int might match the return type of a GCC
16153    builtin and then its argument prototype would still apply.  */
16154 #ifdef __cplusplus
16155 extern "C"
16156 #endif
16157 char __floatdidf ();
16158 int
16159 main ()
16160 {
16161 return __floatdidf ();
16162   ;
16163   return 0;
16164 }
16165 _ACEOF
16166 rm -f conftest.$ac_objext conftest$ac_exeext
16167 if { (ac_try="$ac_link"
16168 case "(($ac_try" in
16169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170   *) ac_try_echo=$ac_try;;
16171 esac
16172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173   (eval "$ac_link") 2>conftest.er1
16174   ac_status=$?
16175   grep -v '^ *+' conftest.er1 >conftest.err
16176   rm -f conftest.er1
16177   cat conftest.err >&5
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); } &&
16180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16181   { (case "(($ac_try" in
16182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183   *) ac_try_echo=$ac_try;;
16184 esac
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186   (eval "$ac_try") 2>&5
16187   ac_status=$?
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); }; } &&
16190          { ac_try='test -s conftest$ac_exeext'
16191   { (case "(($ac_try" in
16192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193   *) ac_try_echo=$ac_try;;
16194 esac
16195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196   (eval "$ac_try") 2>&5
16197   ac_status=$?
16198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); }; }; then
16200   ac_cv_lib_gcc___floatdidf=yes
16201 else
16202   echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16204
16205         ac_cv_lib_gcc___floatdidf=no
16206 fi
16207
16208 rm -f core conftest.err conftest.$ac_objext \
16209       conftest$ac_exeext conftest.$ac_ext
16210 LIBS=$ac_check_lib_save_LIBS
16211 fi
16212 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16213 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16214 if test $ac_cv_lib_gcc___floatdidf = yes; then
16215
16216 cat >>confdefs.h <<\_ACEOF
16217 #define HAVE___FLOATDIDF 1
16218 _ACEOF
16219
16220 fi
16221
16222   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16223 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16224 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16225   echo $ECHO_N "(cached) $ECHO_C" >&6
16226 else
16227   ac_check_lib_save_LIBS=$LIBS
16228 LIBS="-lgcc  $LIBS"
16229 cat >conftest.$ac_ext <<_ACEOF
16230 /* confdefs.h.  */
16231 _ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h.  */
16235
16236 /* Override any GCC internal prototype to avoid an error.
16237    Use char because int might match the return type of a GCC
16238    builtin and then its argument prototype would still apply.  */
16239 #ifdef __cplusplus
16240 extern "C"
16241 #endif
16242 char __lshrdi3 ();
16243 int
16244 main ()
16245 {
16246 return __lshrdi3 ();
16247   ;
16248   return 0;
16249 }
16250 _ACEOF
16251 rm -f conftest.$ac_objext conftest$ac_exeext
16252 if { (ac_try="$ac_link"
16253 case "(($ac_try" in
16254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255   *) ac_try_echo=$ac_try;;
16256 esac
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258   (eval "$ac_link") 2>conftest.er1
16259   ac_status=$?
16260   grep -v '^ *+' conftest.er1 >conftest.err
16261   rm -f conftest.er1
16262   cat conftest.err >&5
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); } &&
16265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16266   { (case "(($ac_try" in
16267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268   *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271   (eval "$ac_try") 2>&5
16272   ac_status=$?
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); }; } &&
16275          { ac_try='test -s conftest$ac_exeext'
16276   { (case "(($ac_try" in
16277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278   *) ac_try_echo=$ac_try;;
16279 esac
16280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281   (eval "$ac_try") 2>&5
16282   ac_status=$?
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); }; }; then
16285   ac_cv_lib_gcc___lshrdi3=yes
16286 else
16287   echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16289
16290         ac_cv_lib_gcc___lshrdi3=no
16291 fi
16292
16293 rm -f core conftest.err conftest.$ac_objext \
16294       conftest$ac_exeext conftest.$ac_ext
16295 LIBS=$ac_check_lib_save_LIBS
16296 fi
16297 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16298 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16299 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16300
16301 cat >>confdefs.h <<\_ACEOF
16302 #define HAVE___LSHRDI3 1
16303 _ACEOF
16304
16305 fi
16306
16307   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16308 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16309 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16310   echo $ECHO_N "(cached) $ECHO_C" >&6
16311 else
16312   ac_check_lib_save_LIBS=$LIBS
16313 LIBS="-lgcc  $LIBS"
16314 cat >conftest.$ac_ext <<_ACEOF
16315 /* confdefs.h.  */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h.  */
16320
16321 /* Override any GCC internal prototype to avoid an error.
16322    Use char because int might match the return type of a GCC
16323    builtin and then its argument prototype would still apply.  */
16324 #ifdef __cplusplus
16325 extern "C"
16326 #endif
16327 char __moddi3 ();
16328 int
16329 main ()
16330 {
16331 return __moddi3 ();
16332   ;
16333   return 0;
16334 }
16335 _ACEOF
16336 rm -f conftest.$ac_objext conftest$ac_exeext
16337 if { (ac_try="$ac_link"
16338 case "(($ac_try" in
16339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340   *) ac_try_echo=$ac_try;;
16341 esac
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343   (eval "$ac_link") 2>conftest.er1
16344   ac_status=$?
16345   grep -v '^ *+' conftest.er1 >conftest.err
16346   rm -f conftest.er1
16347   cat conftest.err >&5
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); } &&
16350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16351   { (case "(($ac_try" in
16352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353   *) ac_try_echo=$ac_try;;
16354 esac
16355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356   (eval "$ac_try") 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }; } &&
16360          { ac_try='test -s conftest$ac_exeext'
16361   { (case "(($ac_try" in
16362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363   *) ac_try_echo=$ac_try;;
16364 esac
16365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366   (eval "$ac_try") 2>&5
16367   ac_status=$?
16368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369   (exit $ac_status); }; }; then
16370   ac_cv_lib_gcc___moddi3=yes
16371 else
16372   echo "$as_me: failed program was:" >&5
16373 sed 's/^/| /' conftest.$ac_ext >&5
16374
16375         ac_cv_lib_gcc___moddi3=no
16376 fi
16377
16378 rm -f core conftest.err conftest.$ac_objext \
16379       conftest$ac_exeext conftest.$ac_ext
16380 LIBS=$ac_check_lib_save_LIBS
16381 fi
16382 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16383 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16384 if test $ac_cv_lib_gcc___moddi3 = yes; then
16385
16386 cat >>confdefs.h <<\_ACEOF
16387 #define HAVE___MODDI3 1
16388 _ACEOF
16389
16390 fi
16391
16392   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16393 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16394 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16395   echo $ECHO_N "(cached) $ECHO_C" >&6
16396 else
16397   ac_check_lib_save_LIBS=$LIBS
16398 LIBS="-lgcc  $LIBS"
16399 cat >conftest.$ac_ext <<_ACEOF
16400 /* confdefs.h.  */
16401 _ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h.  */
16405
16406 /* Override any GCC internal prototype to avoid an error.
16407    Use char because int might match the return type of a GCC
16408    builtin and then its argument prototype would still apply.  */
16409 #ifdef __cplusplus
16410 extern "C"
16411 #endif
16412 char __udivdi3 ();
16413 int
16414 main ()
16415 {
16416 return __udivdi3 ();
16417   ;
16418   return 0;
16419 }
16420 _ACEOF
16421 rm -f conftest.$ac_objext conftest$ac_exeext
16422 if { (ac_try="$ac_link"
16423 case "(($ac_try" in
16424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425   *) ac_try_echo=$ac_try;;
16426 esac
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428   (eval "$ac_link") 2>conftest.er1
16429   ac_status=$?
16430   grep -v '^ *+' conftest.er1 >conftest.err
16431   rm -f conftest.er1
16432   cat conftest.err >&5
16433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); } &&
16435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16436   { (case "(($ac_try" in
16437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438   *) ac_try_echo=$ac_try;;
16439 esac
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441   (eval "$ac_try") 2>&5
16442   ac_status=$?
16443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444   (exit $ac_status); }; } &&
16445          { ac_try='test -s conftest$ac_exeext'
16446   { (case "(($ac_try" in
16447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448   *) ac_try_echo=$ac_try;;
16449 esac
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451   (eval "$ac_try") 2>&5
16452   ac_status=$?
16453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454   (exit $ac_status); }; }; then
16455   ac_cv_lib_gcc___udivdi3=yes
16456 else
16457   echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16459
16460         ac_cv_lib_gcc___udivdi3=no
16461 fi
16462
16463 rm -f core conftest.err conftest.$ac_objext \
16464       conftest$ac_exeext conftest.$ac_ext
16465 LIBS=$ac_check_lib_save_LIBS
16466 fi
16467 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16468 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16469 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16470
16471 cat >>confdefs.h <<\_ACEOF
16472 #define HAVE___UDIVDI3 1
16473 _ACEOF
16474
16475 fi
16476
16477   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16478 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16479 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16480   echo $ECHO_N "(cached) $ECHO_C" >&6
16481 else
16482   ac_check_lib_save_LIBS=$LIBS
16483 LIBS="-lgcc  $LIBS"
16484 cat >conftest.$ac_ext <<_ACEOF
16485 /* confdefs.h.  */
16486 _ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h.  */
16490
16491 /* Override any GCC internal prototype to avoid an error.
16492    Use char because int might match the return type of a GCC
16493    builtin and then its argument prototype would still apply.  */
16494 #ifdef __cplusplus
16495 extern "C"
16496 #endif
16497 char __umoddi3 ();
16498 int
16499 main ()
16500 {
16501 return __umoddi3 ();
16502   ;
16503   return 0;
16504 }
16505 _ACEOF
16506 rm -f conftest.$ac_objext conftest$ac_exeext
16507 if { (ac_try="$ac_link"
16508 case "(($ac_try" in
16509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510   *) ac_try_echo=$ac_try;;
16511 esac
16512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513   (eval "$ac_link") 2>conftest.er1
16514   ac_status=$?
16515   grep -v '^ *+' conftest.er1 >conftest.err
16516   rm -f conftest.er1
16517   cat conftest.err >&5
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); } &&
16520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16521   { (case "(($ac_try" in
16522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523   *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526   (eval "$ac_try") 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; } &&
16530          { ac_try='test -s conftest$ac_exeext'
16531   { (case "(($ac_try" in
16532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533   *) ac_try_echo=$ac_try;;
16534 esac
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536   (eval "$ac_try") 2>&5
16537   ac_status=$?
16538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); }; }; then
16540   ac_cv_lib_gcc___umoddi3=yes
16541 else
16542   echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16544
16545         ac_cv_lib_gcc___umoddi3=no
16546 fi
16547
16548 rm -f core conftest.err conftest.$ac_objext \
16549       conftest$ac_exeext conftest.$ac_ext
16550 LIBS=$ac_check_lib_save_LIBS
16551 fi
16552 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16553 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16554 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16555
16556 cat >>confdefs.h <<\_ACEOF
16557 #define HAVE___UMODDI3 1
16558 _ACEOF
16559
16560 fi
16561
16562
16563   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16564 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16565 if test "${ac_cv_lib_gcc___main+set}" = set; then
16566   echo $ECHO_N "(cached) $ECHO_C" >&6
16567 else
16568   ac_check_lib_save_LIBS=$LIBS
16569 LIBS="-lgcc  $LIBS"
16570 cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h.  */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h.  */
16576
16577 /* Override any GCC internal prototype to avoid an error.
16578    Use char because int might match the return type of a GCC
16579    builtin and then its argument prototype would still apply.  */
16580 #ifdef __cplusplus
16581 extern "C"
16582 #endif
16583 char __main ();
16584 int
16585 main ()
16586 {
16587 return __main ();
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (ac_try="$ac_link"
16594 case "(($ac_try" in
16595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596   *) ac_try_echo=$ac_try;;
16597 esac
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599   (eval "$ac_link") 2>conftest.er1
16600   ac_status=$?
16601   grep -v '^ *+' conftest.er1 >conftest.err
16602   rm -f conftest.er1
16603   cat conftest.err >&5
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); } &&
16606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16607   { (case "(($ac_try" in
16608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609   *) ac_try_echo=$ac_try;;
16610 esac
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612   (eval "$ac_try") 2>&5
16613   ac_status=$?
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); }; } &&
16616          { ac_try='test -s conftest$ac_exeext'
16617   { (case "(($ac_try" in
16618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619   *) ac_try_echo=$ac_try;;
16620 esac
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622   (eval "$ac_try") 2>&5
16623   ac_status=$?
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); }; }; then
16626   ac_cv_lib_gcc___main=yes
16627 else
16628   echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631         ac_cv_lib_gcc___main=no
16632 fi
16633
16634 rm -f core conftest.err conftest.$ac_objext \
16635       conftest$ac_exeext conftest.$ac_ext
16636 LIBS=$ac_check_lib_save_LIBS
16637 fi
16638 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16639 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16640 if test $ac_cv_lib_gcc___main = yes; then
16641
16642 cat >>confdefs.h <<\_ACEOF
16643 #define HAVE___MAIN 1
16644 _ACEOF
16645
16646 fi
16647
16648   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16649 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16650 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16651   echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653   ac_check_lib_save_LIBS=$LIBS
16654 LIBS="-lgcc  $LIBS"
16655 cat >conftest.$ac_ext <<_ACEOF
16656 /* confdefs.h.  */
16657 _ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h.  */
16661
16662 /* Override any GCC internal prototype to avoid an error.
16663    Use char because int might match the return type of a GCC
16664    builtin and then its argument prototype would still apply.  */
16665 #ifdef __cplusplus
16666 extern "C"
16667 #endif
16668 char __cmpdi2 ();
16669 int
16670 main ()
16671 {
16672 return __cmpdi2 ();
16673   ;
16674   return 0;
16675 }
16676 _ACEOF
16677 rm -f conftest.$ac_objext conftest$ac_exeext
16678 if { (ac_try="$ac_link"
16679 case "(($ac_try" in
16680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681   *) ac_try_echo=$ac_try;;
16682 esac
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684   (eval "$ac_link") 2>conftest.er1
16685   ac_status=$?
16686   grep -v '^ *+' conftest.er1 >conftest.err
16687   rm -f conftest.er1
16688   cat conftest.err >&5
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); } &&
16691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16692   { (case "(($ac_try" in
16693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694   *) ac_try_echo=$ac_try;;
16695 esac
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697   (eval "$ac_try") 2>&5
16698   ac_status=$?
16699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); }; } &&
16701          { ac_try='test -s conftest$ac_exeext'
16702   { (case "(($ac_try" in
16703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704   *) ac_try_echo=$ac_try;;
16705 esac
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707   (eval "$ac_try") 2>&5
16708   ac_status=$?
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); }; }; then
16711   ac_cv_lib_gcc___cmpdi2=yes
16712 else
16713   echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16715
16716         ac_cv_lib_gcc___cmpdi2=no
16717 fi
16718
16719 rm -f core conftest.err conftest.$ac_objext \
16720       conftest$ac_exeext conftest.$ac_ext
16721 LIBS=$ac_check_lib_save_LIBS
16722 fi
16723 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16724 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16725 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16726
16727 cat >>confdefs.h <<\_ACEOF
16728 #define HAVE___CMPDI2 1
16729 _ACEOF
16730
16731 fi
16732
16733 fi
16734
16735 if test "$llvm_cv_os_type" = "MingW" ; then
16736   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16737 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16738   cat >conftest.$ac_ext <<_ACEOF
16739
16740   /* confdefs.h.  */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h.  */
16745
16746     #include <windows.h>
16747     #include <imagehlp.h>
16748     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16749     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16750
16751
16752 _ACEOF
16753 rm -f conftest.$ac_objext
16754 if { (ac_try="$ac_compile"
16755 case "(($ac_try" in
16756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757   *) ac_try_echo=$ac_try;;
16758 esac
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760   (eval "$ac_compile") 2>conftest.er1
16761   ac_status=$?
16762   grep -v '^ *+' conftest.er1 >conftest.err
16763   rm -f conftest.er1
16764   cat conftest.err >&5
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); } &&
16767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16768   { (case "(($ac_try" in
16769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770   *) ac_try_echo=$ac_try;;
16771 esac
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773   (eval "$ac_try") 2>&5
16774   ac_status=$?
16775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); }; } &&
16777          { ac_try='test -s conftest.$ac_objext'
16778   { (case "(($ac_try" in
16779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780   *) ac_try_echo=$ac_try;;
16781 esac
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783   (eval "$ac_try") 2>&5
16784   ac_status=$?
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); }; }; then
16787
16788   { echo "$as_me:$LINENO: result: yes" >&5
16789 echo "${ECHO_T}yes" >&6; }
16790   llvm_cv_win32_elmcb_pcstr="PCSTR"
16791
16792 else
16793   echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16795
16796
16797   { echo "$as_me:$LINENO: result: no" >&5
16798 echo "${ECHO_T}no" >&6; }
16799   llvm_cv_win32_elmcb_pcstr="PSTR"
16800
16801 fi
16802
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804
16805 cat >>confdefs.h <<_ACEOF
16806 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16807 _ACEOF
16808
16809 fi
16810
16811
16812
16813   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16814 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16815 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16816   echo $ECHO_N "(cached) $ECHO_C" >&6
16817 else
16818
16819     ac_ext=cpp
16820 ac_cpp='$CXXCPP $CPPFLAGS'
16821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16824
16825     cat >conftest.$ac_ext <<_ACEOF
16826 /* confdefs.h.  */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h.  */
16831 #include <math.h>
16832 int
16833 main ()
16834 {
16835 float f; isnan(f);
16836   ;
16837   return 0;
16838 }
16839 _ACEOF
16840 rm -f conftest.$ac_objext
16841 if { (ac_try="$ac_compile"
16842 case "(($ac_try" in
16843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844   *) ac_try_echo=$ac_try;;
16845 esac
16846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847   (eval "$ac_compile") 2>conftest.er1
16848   ac_status=$?
16849   grep -v '^ *+' conftest.er1 >conftest.err
16850   rm -f conftest.er1
16851   cat conftest.err >&5
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); } &&
16854          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16855   { (case "(($ac_try" in
16856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857   *) ac_try_echo=$ac_try;;
16858 esac
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860   (eval "$ac_try") 2>&5
16861   ac_status=$?
16862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863   (exit $ac_status); }; } &&
16864          { ac_try='test -s conftest.$ac_objext'
16865   { (case "(($ac_try" in
16866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867   *) ac_try_echo=$ac_try;;
16868 esac
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870   (eval "$ac_try") 2>&5
16871   ac_status=$?
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); }; }; then
16874   ac_cv_func_isnan_in_math_h=yes
16875 else
16876   echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16878
16879         ac_cv_func_isnan_in_math_h=no
16880 fi
16881
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883     ac_ext=c
16884 ac_cpp='$CPP $CPPFLAGS'
16885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16888
16889
16890 fi
16891 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16892 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16893
16894
16895 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16896
16897 cat >>confdefs.h <<\_ACEOF
16898 #define HAVE_ISNAN_IN_MATH_H 1
16899 _ACEOF
16900
16901 fi
16902
16903
16904   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16905 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16906 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16907   echo $ECHO_N "(cached) $ECHO_C" >&6
16908 else
16909
16910     ac_ext=cpp
16911 ac_cpp='$CXXCPP $CPPFLAGS'
16912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16915
16916     cat >conftest.$ac_ext <<_ACEOF
16917 /* confdefs.h.  */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h.  */
16922 #include <cmath>
16923 int
16924 main ()
16925 {
16926 float f; isnan(f);
16927   ;
16928   return 0;
16929 }
16930 _ACEOF
16931 rm -f conftest.$ac_objext
16932 if { (ac_try="$ac_compile"
16933 case "(($ac_try" in
16934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935   *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938   (eval "$ac_compile") 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } &&
16945          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16946   { (case "(($ac_try" in
16947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948   *) ac_try_echo=$ac_try;;
16949 esac
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951   (eval "$ac_try") 2>&5
16952   ac_status=$?
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); }; } &&
16955          { ac_try='test -s conftest.$ac_objext'
16956   { (case "(($ac_try" in
16957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958   *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961   (eval "$ac_try") 2>&5
16962   ac_status=$?
16963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964   (exit $ac_status); }; }; then
16965   ac_cv_func_isnan_in_cmath=yes
16966 else
16967   echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16969
16970         ac_cv_func_isnan_in_cmath=no
16971 fi
16972
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974     ac_ext=c
16975 ac_cpp='$CPP $CPPFLAGS'
16976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16979
16980
16981 fi
16982 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16983 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16984
16985 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16986
16987 cat >>confdefs.h <<\_ACEOF
16988 #define HAVE_ISNAN_IN_CMATH 1
16989 _ACEOF
16990
16991 fi
16992
16993
16994   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16995 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16996 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16997   echo $ECHO_N "(cached) $ECHO_C" >&6
16998 else
16999
17000     ac_ext=cpp
17001 ac_cpp='$CXXCPP $CPPFLAGS'
17002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17005
17006     cat >conftest.$ac_ext <<_ACEOF
17007 /* confdefs.h.  */
17008 _ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h.  */
17012 #include <cmath>
17013 int
17014 main ()
17015 {
17016 float f; std::isnan(f);
17017   ;
17018   return 0;
17019 }
17020 _ACEOF
17021 rm -f conftest.$ac_objext
17022 if { (ac_try="$ac_compile"
17023 case "(($ac_try" in
17024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025   *) ac_try_echo=$ac_try;;
17026 esac
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028   (eval "$ac_compile") 2>conftest.er1
17029   ac_status=$?
17030   grep -v '^ *+' conftest.er1 >conftest.err
17031   rm -f conftest.er1
17032   cat conftest.err >&5
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); } &&
17035          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17036   { (case "(($ac_try" in
17037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038   *) ac_try_echo=$ac_try;;
17039 esac
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041   (eval "$ac_try") 2>&5
17042   ac_status=$?
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); }; } &&
17045          { ac_try='test -s conftest.$ac_objext'
17046   { (case "(($ac_try" in
17047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048   *) ac_try_echo=$ac_try;;
17049 esac
17050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051   (eval "$ac_try") 2>&5
17052   ac_status=$?
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); }; }; then
17055   ac_cv_func_std_isnan_in_cmath=yes
17056 else
17057   echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17059
17060         ac_cv_func_std_isnan_in_cmath=no
17061 fi
17062
17063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17064     ac_ext=c
17065 ac_cpp='$CPP $CPPFLAGS'
17066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17069
17070
17071 fi
17072 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17073 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17074
17075 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17076
17077 cat >>confdefs.h <<\_ACEOF
17078 #define HAVE_STD_ISNAN_IN_CMATH 1
17079 _ACEOF
17080
17081 fi
17082
17083
17084
17085
17086   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17087 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17088 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17089   echo $ECHO_N "(cached) $ECHO_C" >&6
17090 else
17091
17092     ac_ext=cpp
17093 ac_cpp='$CXXCPP $CPPFLAGS'
17094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17097
17098     cat >conftest.$ac_ext <<_ACEOF
17099 /* confdefs.h.  */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h.  */
17104 #include <math.h>
17105 int
17106 main ()
17107 {
17108 float f; isinf(f);
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 rm -f conftest.$ac_objext
17114 if { (ac_try="$ac_compile"
17115 case "(($ac_try" in
17116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117   *) ac_try_echo=$ac_try;;
17118 esac
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120   (eval "$ac_compile") 2>conftest.er1
17121   ac_status=$?
17122   grep -v '^ *+' conftest.er1 >conftest.err
17123   rm -f conftest.er1
17124   cat conftest.err >&5
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); } &&
17127          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17128   { (case "(($ac_try" in
17129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130   *) ac_try_echo=$ac_try;;
17131 esac
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133   (eval "$ac_try") 2>&5
17134   ac_status=$?
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); }; } &&
17137          { ac_try='test -s conftest.$ac_objext'
17138   { (case "(($ac_try" in
17139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140   *) ac_try_echo=$ac_try;;
17141 esac
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143   (eval "$ac_try") 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; }; then
17147   ac_cv_func_isinf_in_math_h=yes
17148 else
17149   echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17151
17152         ac_cv_func_isinf_in_math_h=no
17153 fi
17154
17155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17156     ac_ext=c
17157 ac_cpp='$CPP $CPPFLAGS'
17158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17161
17162
17163 fi
17164 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17165 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17166
17167 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17168
17169 cat >>confdefs.h <<\_ACEOF
17170 #define HAVE_ISINF_IN_MATH_H 1
17171 _ACEOF
17172
17173 fi
17174
17175
17176   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17177 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17178 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17179   echo $ECHO_N "(cached) $ECHO_C" >&6
17180 else
17181
17182     ac_ext=cpp
17183 ac_cpp='$CXXCPP $CPPFLAGS'
17184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17187
17188     cat >conftest.$ac_ext <<_ACEOF
17189 /* confdefs.h.  */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h.  */
17194 #include <cmath>
17195 int
17196 main ()
17197 {
17198 float f; isinf(f);
17199   ;
17200   return 0;
17201 }
17202 _ACEOF
17203 rm -f conftest.$ac_objext
17204 if { (ac_try="$ac_compile"
17205 case "(($ac_try" in
17206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207   *) ac_try_echo=$ac_try;;
17208 esac
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210   (eval "$ac_compile") 2>conftest.er1
17211   ac_status=$?
17212   grep -v '^ *+' conftest.er1 >conftest.err
17213   rm -f conftest.er1
17214   cat conftest.err >&5
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); } &&
17217          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17218   { (case "(($ac_try" in
17219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220   *) ac_try_echo=$ac_try;;
17221 esac
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223   (eval "$ac_try") 2>&5
17224   ac_status=$?
17225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226   (exit $ac_status); }; } &&
17227          { ac_try='test -s conftest.$ac_objext'
17228   { (case "(($ac_try" in
17229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230   *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233   (eval "$ac_try") 2>&5
17234   ac_status=$?
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); }; }; then
17237   ac_cv_func_isinf_in_cmath=yes
17238 else
17239   echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17241
17242         ac_cv_func_isinf_in_cmath=no
17243 fi
17244
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246     ac_ext=c
17247 ac_cpp='$CPP $CPPFLAGS'
17248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17251
17252
17253 fi
17254 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17255 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17256
17257 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17258
17259 cat >>confdefs.h <<\_ACEOF
17260 #define HAVE_ISINF_IN_CMATH 1
17261 _ACEOF
17262
17263 fi
17264
17265
17266   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17267 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17268 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17269   echo $ECHO_N "(cached) $ECHO_C" >&6
17270 else
17271
17272     ac_ext=cpp
17273 ac_cpp='$CXXCPP $CPPFLAGS'
17274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17277
17278     cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h.  */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h.  */
17284 #include <cmath>
17285 int
17286 main ()
17287 {
17288 float f; std::isinf(f);
17289   ;
17290   return 0;
17291 }
17292 _ACEOF
17293 rm -f conftest.$ac_objext
17294 if { (ac_try="$ac_compile"
17295 case "(($ac_try" in
17296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297   *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300   (eval "$ac_compile") 2>conftest.er1
17301   ac_status=$?
17302   grep -v '^ *+' conftest.er1 >conftest.err
17303   rm -f conftest.er1
17304   cat conftest.err >&5
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); } &&
17307          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17308   { (case "(($ac_try" in
17309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310   *) ac_try_echo=$ac_try;;
17311 esac
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313   (eval "$ac_try") 2>&5
17314   ac_status=$?
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); }; } &&
17317          { ac_try='test -s conftest.$ac_objext'
17318   { (case "(($ac_try" in
17319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320   *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323   (eval "$ac_try") 2>&5
17324   ac_status=$?
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); }; }; then
17327   ac_cv_func_std_isinf_in_cmath=yes
17328 else
17329   echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17331
17332         ac_cv_func_std_isinf_in_cmath=no
17333 fi
17334
17335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17336     ac_ext=c
17337 ac_cpp='$CPP $CPPFLAGS'
17338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17341
17342
17343 fi
17344 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17345 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17346
17347 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17348
17349 cat >>confdefs.h <<\_ACEOF
17350 #define HAVE_STD_ISINF_IN_CMATH 1
17351 _ACEOF
17352
17353 fi
17354
17355
17356   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17357 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17358 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17359   echo $ECHO_N "(cached) $ECHO_C" >&6
17360 else
17361
17362     ac_ext=cpp
17363 ac_cpp='$CXXCPP $CPPFLAGS'
17364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17367
17368     cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h.  */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h.  */
17374 #include <ieeefp.h>
17375 int
17376 main ()
17377 {
17378 float f; finite(f);
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext
17384 if { (ac_try="$ac_compile"
17385 case "(($ac_try" in
17386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387   *) ac_try_echo=$ac_try;;
17388 esac
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390   (eval "$ac_compile") 2>conftest.er1
17391   ac_status=$?
17392   grep -v '^ *+' conftest.er1 >conftest.err
17393   rm -f conftest.er1
17394   cat conftest.err >&5
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); } &&
17397          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17398   { (case "(($ac_try" in
17399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400   *) ac_try_echo=$ac_try;;
17401 esac
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403   (eval "$ac_try") 2>&5
17404   ac_status=$?
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); }; } &&
17407          { ac_try='test -s conftest.$ac_objext'
17408   { (case "(($ac_try" in
17409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410   *) ac_try_echo=$ac_try;;
17411 esac
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413   (eval "$ac_try") 2>&5
17414   ac_status=$?
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); }; }; then
17417   ac_cv_func_finite_in_ieeefp_h=yes
17418 else
17419   echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17421
17422         ac_cv_func_finite_in_ieeefp_h=no
17423 fi
17424
17425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17426     ac_ext=c
17427 ac_cpp='$CPP $CPPFLAGS'
17428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17431
17432
17433 fi
17434 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17435 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17436
17437 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17438
17439 cat >>confdefs.h <<\_ACEOF
17440 #define HAVE_FINITE_IN_IEEEFP_H 1
17441 _ACEOF
17442
17443 fi
17444
17445
17446
17447 if test "$llvm_cv_platform_type" = "Unix" ; then
17448
17449
17450 for ac_header in stdlib.h unistd.h
17451 do
17452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17454   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17457   echo $ECHO_N "(cached) $ECHO_C" >&6
17458 fi
17459 ac_res=`eval echo '${'$as_ac_Header'}'`
17460                { echo "$as_me:$LINENO: result: $ac_res" >&5
17461 echo "${ECHO_T}$ac_res" >&6; }
17462 else
17463   # Is the header compilable?
17464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17466 cat >conftest.$ac_ext <<_ACEOF
17467 /* confdefs.h.  */
17468 _ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h.  */
17472 $ac_includes_default
17473 #include <$ac_header>
17474 _ACEOF
17475 rm -f conftest.$ac_objext
17476 if { (ac_try="$ac_compile"
17477 case "(($ac_try" in
17478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479   *) ac_try_echo=$ac_try;;
17480 esac
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482   (eval "$ac_compile") 2>conftest.er1
17483   ac_status=$?
17484   grep -v '^ *+' conftest.er1 >conftest.err
17485   rm -f conftest.er1
17486   cat conftest.err >&5
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); } &&
17489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17490   { (case "(($ac_try" in
17491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492   *) ac_try_echo=$ac_try;;
17493 esac
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495   (eval "$ac_try") 2>&5
17496   ac_status=$?
17497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498   (exit $ac_status); }; } &&
17499          { ac_try='test -s conftest.$ac_objext'
17500   { (case "(($ac_try" in
17501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502   *) ac_try_echo=$ac_try;;
17503 esac
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505   (eval "$ac_try") 2>&5
17506   ac_status=$?
17507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508   (exit $ac_status); }; }; then
17509   ac_header_compiler=yes
17510 else
17511   echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17513
17514         ac_header_compiler=no
17515 fi
17516
17517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17519 echo "${ECHO_T}$ac_header_compiler" >&6; }
17520
17521 # Is the header present?
17522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17524 cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h.  */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h.  */
17530 #include <$ac_header>
17531 _ACEOF
17532 if { (ac_try="$ac_cpp conftest.$ac_ext"
17533 case "(($ac_try" in
17534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535   *) ac_try_echo=$ac_try;;
17536 esac
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17539   ac_status=$?
17540   grep -v '^ *+' conftest.er1 >conftest.err
17541   rm -f conftest.er1
17542   cat conftest.err >&5
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); } >/dev/null; then
17545   if test -s conftest.err; then
17546     ac_cpp_err=$ac_c_preproc_warn_flag
17547     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17548   else
17549     ac_cpp_err=
17550   fi
17551 else
17552   ac_cpp_err=yes
17553 fi
17554 if test -z "$ac_cpp_err"; then
17555   ac_header_preproc=yes
17556 else
17557   echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17559
17560   ac_header_preproc=no
17561 fi
17562
17563 rm -f conftest.err conftest.$ac_ext
17564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17565 echo "${ECHO_T}$ac_header_preproc" >&6; }
17566
17567 # So?  What about this header?
17568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17569   yes:no: )
17570     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17574     ac_header_preproc=yes
17575     ;;
17576   no:yes:* )
17577     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17579     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17580 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17581     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17583     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17584 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17587     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17589     ( cat <<\_ASBOX
17590 ## ------------------------------------ ##
17591 ## Report this to http://llvm.org/bugs/ ##
17592 ## ------------------------------------ ##
17593 _ASBOX
17594      ) | sed "s/^/$as_me: WARNING:     /" >&2
17595     ;;
17596 esac
17597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17600   echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602   eval "$as_ac_Header=\$ac_header_preproc"
17603 fi
17604 ac_res=`eval echo '${'$as_ac_Header'}'`
17605                { echo "$as_me:$LINENO: result: $ac_res" >&5
17606 echo "${ECHO_T}$ac_res" >&6; }
17607
17608 fi
17609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17610   cat >>confdefs.h <<_ACEOF
17611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17612 _ACEOF
17613
17614 fi
17615
17616 done
17617
17618
17619 for ac_func in getpagesize
17620 do
17621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17625   echo $ECHO_N "(cached) $ECHO_C" >&6
17626 else
17627   cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h.  */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h.  */
17633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17635 #define $ac_func innocuous_$ac_func
17636
17637 /* System header to define __stub macros and hopefully few prototypes,
17638     which can conflict with char $ac_func (); below.
17639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17640     <limits.h> exists even on freestanding compilers.  */
17641
17642 #ifdef __STDC__
17643 # include <limits.h>
17644 #else
17645 # include <assert.h>
17646 #endif
17647
17648 #undef $ac_func
17649
17650 /* Override any GCC internal prototype to avoid an error.
17651    Use char because int might match the return type of a GCC
17652    builtin and then its argument prototype would still apply.  */
17653 #ifdef __cplusplus
17654 extern "C"
17655 #endif
17656 char $ac_func ();
17657 /* The GNU C library defines this for functions which it implements
17658     to always fail with ENOSYS.  Some functions are actually named
17659     something starting with __ and the normal name is an alias.  */
17660 #if defined __stub_$ac_func || defined __stub___$ac_func
17661 choke me
17662 #endif
17663
17664 int
17665 main ()
17666 {
17667 return $ac_func ();
17668   ;
17669   return 0;
17670 }
17671 _ACEOF
17672 rm -f conftest.$ac_objext conftest$ac_exeext
17673 if { (ac_try="$ac_link"
17674 case "(($ac_try" in
17675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676   *) ac_try_echo=$ac_try;;
17677 esac
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679   (eval "$ac_link") 2>conftest.er1
17680   ac_status=$?
17681   grep -v '^ *+' conftest.er1 >conftest.err
17682   rm -f conftest.er1
17683   cat conftest.err >&5
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); } &&
17686          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17687   { (case "(($ac_try" in
17688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689   *) ac_try_echo=$ac_try;;
17690 esac
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692   (eval "$ac_try") 2>&5
17693   ac_status=$?
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); }; } &&
17696          { ac_try='test -s conftest$ac_exeext'
17697   { (case "(($ac_try" in
17698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699   *) ac_try_echo=$ac_try;;
17700 esac
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702   (eval "$ac_try") 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); }; }; then
17706   eval "$as_ac_var=yes"
17707 else
17708   echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17710
17711         eval "$as_ac_var=no"
17712 fi
17713
17714 rm -f core conftest.err conftest.$ac_objext \
17715       conftest$ac_exeext conftest.$ac_ext
17716 fi
17717 ac_res=`eval echo '${'$as_ac_var'}'`
17718                { echo "$as_me:$LINENO: result: $ac_res" >&5
17719 echo "${ECHO_T}$ac_res" >&6; }
17720 if test `eval echo '${'$as_ac_var'}'` = yes; then
17721   cat >>confdefs.h <<_ACEOF
17722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17723 _ACEOF
17724
17725 fi
17726 done
17727
17728 { echo "$as_me:$LINENO: checking for working mmap" >&5
17729 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17730 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17731   echo $ECHO_N "(cached) $ECHO_C" >&6
17732 else
17733   if test "$cross_compiling" = yes; then
17734   ac_cv_func_mmap_fixed_mapped=no
17735 else
17736   cat >conftest.$ac_ext <<_ACEOF
17737 /* confdefs.h.  */
17738 _ACEOF
17739 cat confdefs.h >>conftest.$ac_ext
17740 cat >>conftest.$ac_ext <<_ACEOF
17741 /* end confdefs.h.  */
17742 $ac_includes_default
17743 /* malloc might have been renamed as rpl_malloc. */
17744 #undef malloc
17745
17746 /* Thanks to Mike Haertel and Jim Avera for this test.
17747    Here is a matrix of mmap possibilities:
17748         mmap private not fixed
17749         mmap private fixed at somewhere currently unmapped
17750         mmap private fixed at somewhere already mapped
17751         mmap shared not fixed
17752         mmap shared fixed at somewhere currently unmapped
17753         mmap shared fixed at somewhere already mapped
17754    For private mappings, we should verify that changes cannot be read()
17755    back from the file, nor mmap's back from the file at a different
17756    address.  (There have been systems where private was not correctly
17757    implemented like the infamous i386 svr4.0, and systems where the
17758    VM page cache was not coherent with the file system buffer cache
17759    like early versions of FreeBSD and possibly contemporary NetBSD.)
17760    For shared mappings, we should conversely verify that changes get
17761    propagated back to all the places they're supposed to be.
17762
17763    Grep wants private fixed already mapped.
17764    The main things grep needs to know about mmap are:
17765    * does it exist and is it safe to write into the mmap'd area
17766    * how to use it (BSD variants)  */
17767
17768 #include <fcntl.h>
17769 #include <sys/mman.h>
17770
17771 #if !STDC_HEADERS && !HAVE_STDLIB_H
17772 char *malloc ();
17773 #endif
17774
17775 /* This mess was copied from the GNU getpagesize.h.  */
17776 #if !HAVE_GETPAGESIZE
17777 /* Assume that all systems that can run configure have sys/param.h.  */
17778 # if !HAVE_SYS_PARAM_H
17779 #  define HAVE_SYS_PARAM_H 1
17780 # endif
17781
17782 # ifdef _SC_PAGESIZE
17783 #  define getpagesize() sysconf(_SC_PAGESIZE)
17784 # else /* no _SC_PAGESIZE */
17785 #  if HAVE_SYS_PARAM_H
17786 #   include <sys/param.h>
17787 #   ifdef EXEC_PAGESIZE
17788 #    define getpagesize() EXEC_PAGESIZE
17789 #   else /* no EXEC_PAGESIZE */
17790 #    ifdef NBPG
17791 #     define getpagesize() NBPG * CLSIZE
17792 #     ifndef CLSIZE
17793 #      define CLSIZE 1
17794 #     endif /* no CLSIZE */
17795 #    else /* no NBPG */
17796 #     ifdef NBPC
17797 #      define getpagesize() NBPC
17798 #     else /* no NBPC */
17799 #      ifdef PAGESIZE
17800 #       define getpagesize() PAGESIZE
17801 #      endif /* PAGESIZE */
17802 #     endif /* no NBPC */
17803 #    endif /* no NBPG */
17804 #   endif /* no EXEC_PAGESIZE */
17805 #  else /* no HAVE_SYS_PARAM_H */
17806 #   define getpagesize() 8192   /* punt totally */
17807 #  endif /* no HAVE_SYS_PARAM_H */
17808 # endif /* no _SC_PAGESIZE */
17809
17810 #endif /* no HAVE_GETPAGESIZE */
17811
17812 int
17813 main ()
17814 {
17815   char *data, *data2, *data3;
17816   int i, pagesize;
17817   int fd;
17818
17819   pagesize = getpagesize ();
17820
17821   /* First, make a file with some known garbage in it. */
17822   data = (char *) malloc (pagesize);
17823   if (!data)
17824     return 1;
17825   for (i = 0; i < pagesize; ++i)
17826     *(data + i) = rand ();
17827   umask (0);
17828   fd = creat ("conftest.mmap", 0600);
17829   if (fd < 0)
17830     return 1;
17831   if (write (fd, data, pagesize) != pagesize)
17832     return 1;
17833   close (fd);
17834
17835   /* Next, try to mmap the file at a fixed address which already has
17836      something else allocated at it.  If we can, also make sure that
17837      we see the same garbage.  */
17838   fd = open ("conftest.mmap", O_RDWR);
17839   if (fd < 0)
17840     return 1;
17841   data2 = (char *) malloc (2 * pagesize);
17842   if (!data2)
17843     return 1;
17844   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17845   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17846                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17847     return 1;
17848   for (i = 0; i < pagesize; ++i)
17849     if (*(data + i) != *(data2 + i))
17850       return 1;
17851
17852   /* Finally, make sure that changes to the mapped area do not
17853      percolate back to the file as seen by read().  (This is a bug on
17854      some variants of i386 svr4.0.)  */
17855   for (i = 0; i < pagesize; ++i)
17856     *(data2 + i) = *(data2 + i) + 1;
17857   data3 = (char *) malloc (pagesize);
17858   if (!data3)
17859     return 1;
17860   if (read (fd, data3, pagesize) != pagesize)
17861     return 1;
17862   for (i = 0; i < pagesize; ++i)
17863     if (*(data + i) != *(data3 + i))
17864       return 1;
17865   close (fd);
17866   return 0;
17867 }
17868 _ACEOF
17869 rm -f conftest$ac_exeext
17870 if { (ac_try="$ac_link"
17871 case "(($ac_try" in
17872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873   *) ac_try_echo=$ac_try;;
17874 esac
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876   (eval "$ac_link") 2>&5
17877   ac_status=$?
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17880   { (case "(($ac_try" in
17881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17882   *) ac_try_echo=$ac_try;;
17883 esac
17884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17885   (eval "$ac_try") 2>&5
17886   ac_status=$?
17887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); }; }; then
17889   ac_cv_func_mmap_fixed_mapped=yes
17890 else
17891   echo "$as_me: program exited with status $ac_status" >&5
17892 echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17894
17895 ( exit $ac_status )
17896 ac_cv_func_mmap_fixed_mapped=no
17897 fi
17898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17899 fi
17900
17901
17902 fi
17903 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17904 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17905 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17906
17907 cat >>confdefs.h <<\_ACEOF
17908 #define HAVE_MMAP 1
17909 _ACEOF
17910
17911 fi
17912 rm -f conftest.mmap
17913
17914   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17915 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17916 if test "${ac_cv_func_mmap_file+set}" = set; then
17917   echo $ECHO_N "(cached) $ECHO_C" >&6
17918 else
17919    ac_ext=c
17920 ac_cpp='$CPP $CPPFLAGS'
17921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17924
17925   if test "$cross_compiling" = yes; then
17926   ac_cv_func_mmap_file=no
17927 else
17928   cat >conftest.$ac_ext <<_ACEOF
17929
17930     /* confdefs.h.  */
17931 _ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h.  */
17935
17936 #include <sys/types.h>
17937 #include <sys/mman.h>
17938 #include <fcntl.h>
17939
17940 int
17941 main ()
17942 {
17943
17944   int fd;
17945   fd = creat ("foo",0777);
17946   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17947   unlink ("foo");
17948   return (fd != (int) MAP_FAILED);
17949   ;
17950   return 0;
17951 }
17952 _ACEOF
17953 rm -f conftest$ac_exeext
17954 if { (ac_try="$ac_link"
17955 case "(($ac_try" in
17956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957   *) ac_try_echo=$ac_try;;
17958 esac
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960   (eval "$ac_link") 2>&5
17961   ac_status=$?
17962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17964   { (case "(($ac_try" in
17965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966   *) ac_try_echo=$ac_try;;
17967 esac
17968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969   (eval "$ac_try") 2>&5
17970   ac_status=$?
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); }; }; then
17973   ac_cv_func_mmap_file=yes
17974 else
17975   echo "$as_me: program exited with status $ac_status" >&5
17976 echo "$as_me: failed program was:" >&5
17977 sed 's/^/| /' conftest.$ac_ext >&5
17978
17979 ( exit $ac_status )
17980 ac_cv_func_mmap_file=no
17981 fi
17982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17983 fi
17984
17985
17986   ac_ext=c
17987 ac_cpp='$CPP $CPPFLAGS'
17988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17991
17992
17993 fi
17994 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17995 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17996 if test "$ac_cv_func_mmap_file" = yes; then
17997
17998 cat >>confdefs.h <<\_ACEOF
17999 #define HAVE_MMAP_FILE
18000 _ACEOF
18001
18002    MMAP_FILE=yes
18003
18004 fi
18005
18006   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18007 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18008 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18009   echo $ECHO_N "(cached) $ECHO_C" >&6
18010 else
18011   if test "$llvm_cv_os_type" = "Interix" ; then
18012    ac_cv_need_dev_zero_for_mmap=yes
18013  else
18014    ac_cv_need_dev_zero_for_mmap=no
18015  fi
18016
18017 fi
18018 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18019 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18020 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18021
18022 cat >>confdefs.h <<\_ACEOF
18023 #define NEED_DEV_ZERO_FOR_MMAP 1
18024 _ACEOF
18025
18026 fi
18027
18028   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18029   then
18030     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18031 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18032   fi
18033   if test "$ac_cv_func_mmap_file" = "no"
18034   then
18035     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18036 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18037   fi
18038 fi
18039
18040 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18041 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18042 ac_ext=cpp
18043 ac_cpp='$CXXCPP $CPPFLAGS'
18044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18047
18048 cat >conftest.$ac_ext <<_ACEOF
18049
18050   /* confdefs.h.  */
18051 _ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h.  */
18055
18056     int main() {
18057       volatile unsigned long val = 1;
18058       __sync_synchronize();
18059       __sync_val_compare_and_swap(&val, 1, 0);
18060       __sync_add_and_fetch(&val, 1);
18061       __sync_sub_and_fetch(&val, 1);
18062       return 0;
18063     }
18064
18065
18066 _ACEOF
18067 rm -f conftest.$ac_objext conftest$ac_exeext
18068 if { (ac_try="$ac_link"
18069 case "(($ac_try" in
18070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071   *) ac_try_echo=$ac_try;;
18072 esac
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074   (eval "$ac_link") 2>conftest.er1
18075   ac_status=$?
18076   grep -v '^ *+' conftest.er1 >conftest.err
18077   rm -f conftest.er1
18078   cat conftest.err >&5
18079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080   (exit $ac_status); } &&
18081          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18082   { (case "(($ac_try" in
18083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084   *) ac_try_echo=$ac_try;;
18085 esac
18086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087   (eval "$ac_try") 2>&5
18088   ac_status=$?
18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090   (exit $ac_status); }; } &&
18091          { ac_try='test -s conftest$ac_exeext'
18092   { (case "(($ac_try" in
18093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094   *) ac_try_echo=$ac_try;;
18095 esac
18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097   (eval "$ac_try") 2>&5
18098   ac_status=$?
18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100   (exit $ac_status); }; }; then
18101
18102   { echo "$as_me:$LINENO: result: yes" >&5
18103 echo "${ECHO_T}yes" >&6; }
18104
18105 cat >>confdefs.h <<\_ACEOF
18106 #define LLVM_HAS_ATOMICS 1
18107 _ACEOF
18108
18109
18110 else
18111   echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18113
18114
18115   { echo "$as_me:$LINENO: result: no" >&5
18116 echo "${ECHO_T}no" >&6; }
18117
18118 cat >>confdefs.h <<\_ACEOF
18119 #define LLVM_HAS_ATOMICS 0
18120 _ACEOF
18121
18122   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18123 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18124
18125 fi
18126
18127 rm -f core conftest.err conftest.$ac_objext \
18128       conftest$ac_exeext conftest.$ac_ext
18129 ac_ext=c
18130 ac_cpp='$CPP $CPPFLAGS'
18131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18134
18135
18136
18137 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18138   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18139 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18140 if test "${llvm_cv_linux_mixed+set}" = set; then
18141   echo $ECHO_N "(cached) $ECHO_C" >&6
18142 else
18143    ac_ext=c
18144 ac_cpp='$CPP $CPPFLAGS'
18145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18148
18149   cat >conftest.$ac_ext <<_ACEOF
18150 /* confdefs.h.  */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h.  */
18155 #ifndef __x86_64__
18156        error: Not x86-64 even if uname says so!
18157       #endif
18158
18159 int
18160 main ()
18161 {
18162
18163   ;
18164   return 0;
18165 }
18166 _ACEOF
18167 rm -f conftest.$ac_objext
18168 if { (ac_try="$ac_compile"
18169 case "(($ac_try" in
18170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171   *) ac_try_echo=$ac_try;;
18172 esac
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174   (eval "$ac_compile") 2>conftest.er1
18175   ac_status=$?
18176   grep -v '^ *+' conftest.er1 >conftest.err
18177   rm -f conftest.er1
18178   cat conftest.err >&5
18179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180   (exit $ac_status); } &&
18181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18182   { (case "(($ac_try" in
18183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184   *) ac_try_echo=$ac_try;;
18185 esac
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187   (eval "$ac_try") 2>&5
18188   ac_status=$?
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); }; } &&
18191          { ac_try='test -s conftest.$ac_objext'
18192   { (case "(($ac_try" in
18193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194   *) ac_try_echo=$ac_try;;
18195 esac
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197   (eval "$ac_try") 2>&5
18198   ac_status=$?
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); }; }; then
18201   llvm_cv_linux_mixed=no
18202 else
18203   echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18205
18206         llvm_cv_linux_mixed=yes
18207 fi
18208
18209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18210   ac_ext=c
18211 ac_cpp='$CPP $CPPFLAGS'
18212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18215
18216
18217 fi
18218 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18219 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18220
18221   if test "$llvm_cv_linux_mixed" = "yes"; then
18222     llvm_cv_target_arch="x86"
18223     ARCH="x86"
18224   fi
18225 fi
18226
18227
18228 for ac_func in __dso_handle
18229 do
18230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18234   echo $ECHO_N "(cached) $ECHO_C" >&6
18235 else
18236   cat >conftest.$ac_ext <<_ACEOF
18237 /* confdefs.h.  */
18238 _ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h.  */
18242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18244 #define $ac_func innocuous_$ac_func
18245
18246 /* System header to define __stub macros and hopefully few prototypes,
18247     which can conflict with char $ac_func (); below.
18248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18249     <limits.h> exists even on freestanding compilers.  */
18250
18251 #ifdef __STDC__
18252 # include <limits.h>
18253 #else
18254 # include <assert.h>
18255 #endif
18256
18257 #undef $ac_func
18258
18259 /* Override any GCC internal prototype to avoid an error.
18260    Use char because int might match the return type of a GCC
18261    builtin and then its argument prototype would still apply.  */
18262 #ifdef __cplusplus
18263 extern "C"
18264 #endif
18265 char $ac_func ();
18266 /* The GNU C library defines this for functions which it implements
18267     to always fail with ENOSYS.  Some functions are actually named
18268     something starting with __ and the normal name is an alias.  */
18269 #if defined __stub_$ac_func || defined __stub___$ac_func
18270 choke me
18271 #endif
18272
18273 int
18274 main ()
18275 {
18276 return $ac_func ();
18277   ;
18278   return 0;
18279 }
18280 _ACEOF
18281 rm -f conftest.$ac_objext conftest$ac_exeext
18282 if { (ac_try="$ac_link"
18283 case "(($ac_try" in
18284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285   *) ac_try_echo=$ac_try;;
18286 esac
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288   (eval "$ac_link") 2>conftest.er1
18289   ac_status=$?
18290   grep -v '^ *+' conftest.er1 >conftest.err
18291   rm -f conftest.er1
18292   cat conftest.err >&5
18293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294   (exit $ac_status); } &&
18295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18296   { (case "(($ac_try" in
18297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18298   *) ac_try_echo=$ac_try;;
18299 esac
18300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18301   (eval "$ac_try") 2>&5
18302   ac_status=$?
18303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304   (exit $ac_status); }; } &&
18305          { ac_try='test -s conftest$ac_exeext'
18306   { (case "(($ac_try" in
18307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308   *) ac_try_echo=$ac_try;;
18309 esac
18310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311   (eval "$ac_try") 2>&5
18312   ac_status=$?
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); }; }; then
18315   eval "$as_ac_var=yes"
18316 else
18317   echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18319
18320         eval "$as_ac_var=no"
18321 fi
18322
18323 rm -f core conftest.err conftest.$ac_objext \
18324       conftest$ac_exeext conftest.$ac_ext
18325 fi
18326 ac_res=`eval echo '${'$as_ac_var'}'`
18327                { echo "$as_me:$LINENO: result: $ac_res" >&5
18328 echo "${ECHO_T}$ac_res" >&6; }
18329 if test `eval echo '${'$as_ac_var'}'` = yes; then
18330   cat >>confdefs.h <<_ACEOF
18331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18332 _ACEOF
18333
18334 fi
18335 done
18336
18337
18338 SHLIBEXT=$llvm_shlib_ext
18339
18340
18341 if test "${prefix}" = "NONE" ; then
18342   prefix="/usr/local"
18343 fi
18344 eval LLVM_PREFIX="${prefix}";
18345 eval LLVM_BINDIR="${prefix}/bin";
18346 eval LLVM_DATADIR="${prefix}/share/llvm";
18347 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18348 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18349 eval LLVM_INCLUDEDIR="${prefix}/include";
18350 eval LLVM_INFODIR="${prefix}/info";
18351 eval LLVM_MANDIR="${prefix}/man";
18352 LLVM_CONFIGTIME=`date`
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18364   LLVM_CONFIGTIME="(timestamp not enabled)"
18365 fi
18366
18367
18368 cat >>confdefs.h <<_ACEOF
18369 #define LLVM_PREFIX "$LLVM_PREFIX"
18370 _ACEOF
18371
18372
18373 cat >>confdefs.h <<_ACEOF
18374 #define LLVM_BINDIR "$LLVM_BINDIR"
18375 _ACEOF
18376
18377
18378 cat >>confdefs.h <<_ACEOF
18379 #define LLVM_DATADIR "$LLVM_DATADIR"
18380 _ACEOF
18381
18382
18383 cat >>confdefs.h <<_ACEOF
18384 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18385 _ACEOF
18386
18387
18388 cat >>confdefs.h <<_ACEOF
18389 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18390 _ACEOF
18391
18392
18393 cat >>confdefs.h <<_ACEOF
18394 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18395 _ACEOF
18396
18397
18398 cat >>confdefs.h <<_ACEOF
18399 #define LLVM_INFODIR "$LLVM_INFODIR"
18400 _ACEOF
18401
18402
18403 cat >>confdefs.h <<_ACEOF
18404 #define LLVM_MANDIR "$LLVM_MANDIR"
18405 _ACEOF
18406
18407
18408 cat >>confdefs.h <<_ACEOF
18409 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18410 _ACEOF
18411
18412
18413 cat >>confdefs.h <<_ACEOF
18414 #define LLVM_HOST_TRIPLE "$host"
18415 _ACEOF
18416
18417
18418 cat >>confdefs.h <<_ACEOF
18419 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18420 _ACEOF
18421
18422
18423 if test "$BINDINGS_TO_BUILD" = auto ; then
18424   BINDINGS_TO_BUILD=""
18425   if test "x$OCAMLFIND" != x ; then
18426     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18427   fi
18428   if test "x$GO" != x ; then
18429     if $GO run ${srcdir}/bindings/go/conftest.go ; then
18430       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18431     fi
18432   fi
18433 fi
18434 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18435
18436
18437 binding_prereqs_failed=0
18438 for a_binding in $BINDINGS_TO_BUILD ; do
18439   case "$a_binding" in
18440   ocaml)
18441     if test "x$OCAMLFIND" = x ; then
18442       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
18443 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
18444       binding_prereqs_failed=1
18445     fi
18446
18447     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
18448       HAVE_OCAMLOPT=1
18449     else
18450       HAVE_OCAMLOPT=0
18451     fi
18452
18453
18454     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
18455       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
18456 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
18457       binding_prereqs_failed=1
18458     fi
18459
18460     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18461       HAVE_OCAML_OUNIT=1
18462     else
18463       HAVE_OCAML_OUNIT=0
18464       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18465 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18466           fi
18467
18468
18469     if test "x$with_ocaml_libdir" != xauto ; then
18470       OCAML_LIBDIR=$with_ocaml_libdir
18471
18472     else
18473       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18474       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18475       then
18476         # ocaml stdlib is beneath our prefix; use stdlib
18477         OCAML_LIBDIR=$ocaml_stdlib
18478
18479       else
18480         # ocaml stdlib is outside our prefix; use libdir/ocaml
18481         OCAML_LIBDIR=${prefix}/lib/ocaml
18482
18483       fi
18484     fi
18485     ;;
18486   go)
18487     if test "x$GO" = x ; then
18488       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18489 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18490       binding_prereqs_failed=1
18491     else
18492       if $GO run ${srcdir}/bindings/go/conftest.go ; then
18493         :
18494       else
18495         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18496 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18497         binding_prereqs_failed=1
18498       fi
18499     fi
18500     ;;
18501   esac
18502 done
18503 if test "$binding_prereqs_failed" = 1 ; then
18504   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18505 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18506    { (exit 1); exit 1; }; }
18507 fi
18508
18509 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18510 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18511 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18512   echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514    ac_ext=cpp
18515 ac_cpp='$CXXCPP $CPPFLAGS'
18516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18519
18520   oldcxxflags="$CXXFLAGS"
18521   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18522   cat >conftest.$ac_ext <<_ACEOF
18523 /* confdefs.h.  */
18524 _ACEOF
18525 cat confdefs.h >>conftest.$ac_ext
18526 cat >>conftest.$ac_ext <<_ACEOF
18527 /* end confdefs.h.  */
18528 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18529 int
18530 main ()
18531 {
18532 X<int>().f();
18533   ;
18534   return 0;
18535 }
18536 _ACEOF
18537 rm -f conftest.$ac_objext
18538 if { (ac_try="$ac_compile"
18539 case "(($ac_try" in
18540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541   *) ac_try_echo=$ac_try;;
18542 esac
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544   (eval "$ac_compile") 2>conftest.er1
18545   ac_status=$?
18546   grep -v '^ *+' conftest.er1 >conftest.err
18547   rm -f conftest.er1
18548   cat conftest.err >&5
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); } &&
18551          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18552   { (case "(($ac_try" in
18553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554   *) ac_try_echo=$ac_try;;
18555 esac
18556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557   (eval "$ac_try") 2>&5
18558   ac_status=$?
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); }; } &&
18561          { ac_try='test -s conftest.$ac_objext'
18562   { (case "(($ac_try" in
18563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564   *) ac_try_echo=$ac_try;;
18565 esac
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567   (eval "$ac_try") 2>&5
18568   ac_status=$?
18569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570   (exit $ac_status); }; }; then
18571   llvm_cv_cxx_visibility_inlines_hidden=yes
18572 else
18573   echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18575
18576         llvm_cv_cxx_visibility_inlines_hidden=no
18577 fi
18578
18579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18580   CXXFLAGS="$oldcxxflags"
18581   ac_ext=c
18582 ac_cpp='$CPP $CPPFLAGS'
18583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18586
18587
18588 fi
18589 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18590 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18591 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18592   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18593
18594 else
18595   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18596
18597 fi
18598
18599
18600 if test "$llvm_cv_link_use_r" = "yes" ; then
18601   RPATH="-Wl,-R"
18602 else
18603   RPATH="-Wl,-rpath"
18604 fi
18605
18606
18607 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18608   RDYNAMIC="-rdynamic"
18609 else
18610   RDYNAMIC=""
18611 fi
18612
18613
18614
18615 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18616
18617
18618
18619
18620
18621
18622 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18623
18624 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18625
18626 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18627
18628 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18629
18630 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18631
18632
18633 ac_config_files="$ac_config_files Makefile.config"
18634
18635
18636 ac_config_files="$ac_config_files llvm.spec"
18637
18638
18639 ac_config_files="$ac_config_files docs/doxygen.cfg"
18640
18641
18642 if test "${clang_src_root}" = ""; then
18643   clang_src_root="$srcdir/tools/clang"
18644 fi
18645 if test -f ${clang_src_root}/README.txt; then
18646
18647 cat >>confdefs.h <<_ACEOF
18648 #define CLANG_LIBDIR_SUFFIX ""
18649 _ACEOF
18650
18651
18652     configh="include/clang/Config/config.h"
18653   doxy="docs/doxygen.cfg"
18654   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18655
18656   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18657
18658 fi
18659
18660 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18661
18662
18663 test "x$program_prefix" = "xNONE" && program_prefix=""
18664
18665
18666
18667 ac_config_commands="$ac_config_commands setup"
18668
18669 ac_config_commands="$ac_config_commands Makefile"
18670
18671
18672 ac_config_commands="$ac_config_commands Makefile.common"
18673
18674
18675 ac_config_commands="$ac_config_commands examples/Makefile"
18676
18677
18678 ac_config_commands="$ac_config_commands lib/Makefile"
18679
18680
18681 ac_config_commands="$ac_config_commands test/Makefile"
18682
18683
18684 ac_config_commands="$ac_config_commands test/Makefile.tests"
18685
18686
18687 ac_config_commands="$ac_config_commands unittests/Makefile"
18688
18689
18690 ac_config_commands="$ac_config_commands tools/Makefile"
18691
18692
18693 ac_config_commands="$ac_config_commands utils/Makefile"
18694
18695
18696 ac_config_commands="$ac_config_commands projects/Makefile"
18697
18698
18699 ac_config_commands="$ac_config_commands bindings/Makefile"
18700
18701
18702 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18703
18704
18705
18706 cat >confcache <<\_ACEOF
18707 # This file is a shell script that caches the results of configure
18708 # tests run on this system so they can be shared between configure
18709 # scripts and configure runs, see configure's option --config-cache.
18710 # It is not useful on other systems.  If it contains results you don't
18711 # want to keep, you may remove or edit it.
18712 #
18713 # config.status only pays attention to the cache file if you give it
18714 # the --recheck option to rerun configure.
18715 #
18716 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18717 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18718 # following values.
18719
18720 _ACEOF
18721
18722 # The following way of writing the cache mishandles newlines in values,
18723 # but we know of no workaround that is simple, portable, and efficient.
18724 # So, we kill variables containing newlines.
18725 # Ultrix sh set writes to stderr and can't be redirected directly,
18726 # and sets the high bit in the cache file unless we assign to the vars.
18727 (
18728   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18729     eval ac_val=\$$ac_var
18730     case $ac_val in #(
18731     *${as_nl}*)
18732       case $ac_var in #(
18733       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18734 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18735       esac
18736       case $ac_var in #(
18737       _ | IFS | as_nl) ;; #(
18738       *) $as_unset $ac_var ;;
18739       esac ;;
18740     esac
18741   done
18742
18743   (set) 2>&1 |
18744     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18745     *${as_nl}ac_space=\ *)
18746       # `set' does not quote correctly, so add quotes (double-quote
18747       # substitution turns \\\\ into \\, and sed turns \\ into \).
18748       sed -n \
18749         "s/'/'\\\\''/g;
18750           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18751       ;; #(
18752     *)
18753       # `set' quotes correctly as required by POSIX, so do not add quotes.
18754       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18755       ;;
18756     esac |
18757     sort
18758 ) |
18759   sed '
18760      /^ac_cv_env_/b end
18761      t clear
18762      :clear
18763      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18764      t end
18765      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18766      :end' >>confcache
18767 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18768   if test -w "$cache_file"; then
18769     test "x$cache_file" != "x/dev/null" &&
18770       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18771 echo "$as_me: updating cache $cache_file" >&6;}
18772     cat confcache >$cache_file
18773   else
18774     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18775 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18776   fi
18777 fi
18778 rm -f confcache
18779
18780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18781 # Let make expand exec_prefix.
18782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18783
18784 DEFS=-DHAVE_CONFIG_H
18785
18786 ac_libobjs=
18787 ac_ltlibobjs=
18788 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18789   # 1. Remove the extension, and $U if already installed.
18790   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18791   ac_i=`echo "$ac_i" | sed "$ac_script"`
18792   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18793   #    will be set to the directory where LIBOBJS objects are built.
18794   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18795   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18796 done
18797 LIBOBJS=$ac_libobjs
18798
18799 LTLIBOBJS=$ac_ltlibobjs
18800
18801
18802
18803 : ${CONFIG_STATUS=./config.status}
18804 ac_clean_files_save=$ac_clean_files
18805 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18806 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18807 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18808 cat >$CONFIG_STATUS <<_ACEOF
18809 #! $SHELL
18810 # Generated by $as_me.
18811 # Run this file to recreate the current configuration.
18812 # Compiler output produced by configure, useful for debugging
18813 # configure, is in config.log if it exists.
18814
18815 debug=false
18816 ac_cs_recheck=false
18817 ac_cs_silent=false
18818 SHELL=\${CONFIG_SHELL-$SHELL}
18819 _ACEOF
18820
18821 cat >>$CONFIG_STATUS <<\_ACEOF
18822 ## --------------------- ##
18823 ## M4sh Initialization.  ##
18824 ## --------------------- ##
18825
18826 # Be Bourne compatible
18827 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18828   emulate sh
18829   NULLCMD=:
18830   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18831   # is contrary to our usage.  Disable this feature.
18832   alias -g '${1+"$@"}'='"$@"'
18833   setopt NO_GLOB_SUBST
18834 else
18835   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18836 fi
18837 BIN_SH=xpg4; export BIN_SH # for Tru64
18838 DUALCASE=1; export DUALCASE # for MKS sh
18839
18840
18841 # PATH needs CR
18842 # Avoid depending upon Character Ranges.
18843 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18844 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18845 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18846 as_cr_digits='0123456789'
18847 as_cr_alnum=$as_cr_Letters$as_cr_digits
18848
18849 # The user is always right.
18850 if test "${PATH_SEPARATOR+set}" != set; then
18851   echo "#! /bin/sh" >conf$$.sh
18852   echo  "exit 0"   >>conf$$.sh
18853   chmod +x conf$$.sh
18854   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18855     PATH_SEPARATOR=';'
18856   else
18857     PATH_SEPARATOR=:
18858   fi
18859   rm -f conf$$.sh
18860 fi
18861
18862 # Support unset when possible.
18863 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18864   as_unset=unset
18865 else
18866   as_unset=false
18867 fi
18868
18869
18870 # IFS
18871 # We need space, tab and new line, in precisely that order.  Quoting is
18872 # there to prevent editors from complaining about space-tab.
18873 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18874 # splitting by setting IFS to empty value.)
18875 as_nl='
18876 '
18877 IFS=" ""        $as_nl"
18878
18879 # Find who we are.  Look in the path if we contain no directory separator.
18880 case $0 in
18881   *[\\/]* ) as_myself=$0 ;;
18882   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18883 for as_dir in $PATH
18884 do
18885   IFS=$as_save_IFS
18886   test -z "$as_dir" && as_dir=.
18887   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18888 done
18889 IFS=$as_save_IFS
18890
18891      ;;
18892 esac
18893 # We did not find ourselves, most probably we were run as `sh COMMAND'
18894 # in which case we are not to be found in the path.
18895 if test "x$as_myself" = x; then
18896   as_myself=$0
18897 fi
18898 if test ! -f "$as_myself"; then
18899   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18900   { (exit 1); exit 1; }
18901 fi
18902
18903 # Work around bugs in pre-3.0 UWIN ksh.
18904 for as_var in ENV MAIL MAILPATH
18905 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18906 done
18907 PS1='$ '
18908 PS2='> '
18909 PS4='+ '
18910
18911 # NLS nuisances.
18912 for as_var in \
18913   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18914   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18915   LC_TELEPHONE LC_TIME
18916 do
18917   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18918     eval $as_var=C; export $as_var
18919   else
18920     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18921   fi
18922 done
18923
18924 # Required to use basename.
18925 if expr a : '\(a\)' >/dev/null 2>&1 &&
18926    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18927   as_expr=expr
18928 else
18929   as_expr=false
18930 fi
18931
18932 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18933   as_basename=basename
18934 else
18935   as_basename=false
18936 fi
18937
18938
18939 # Name of the executable.
18940 as_me=`$as_basename -- "$0" ||
18941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18942          X"$0" : 'X\(//\)$' \| \
18943          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18944 echo X/"$0" |
18945     sed '/^.*\/\([^/][^/]*\)\/*$/{
18946             s//\1/
18947             q
18948           }
18949           /^X\/\(\/\/\)$/{
18950             s//\1/
18951             q
18952           }
18953           /^X\/\(\/\).*/{
18954             s//\1/
18955             q
18956           }
18957           s/.*/./; q'`
18958
18959 # CDPATH.
18960 $as_unset CDPATH
18961
18962
18963
18964   as_lineno_1=$LINENO
18965   as_lineno_2=$LINENO
18966   test "x$as_lineno_1" != "x$as_lineno_2" &&
18967   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18968
18969   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18970   # uniformly replaced by the line number.  The first 'sed' inserts a
18971   # line-number line after each line using $LINENO; the second 'sed'
18972   # does the real work.  The second script uses 'N' to pair each
18973   # line-number line with the line containing $LINENO, and appends
18974   # trailing '-' during substitution so that $LINENO is not a special
18975   # case at line end.
18976   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18977   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18978   # E. McMahon (1931-1989) for sed's syntax.  :-)
18979   sed -n '
18980     p
18981     /[$]LINENO/=
18982   ' <$as_myself |
18983     sed '
18984       s/[$]LINENO.*/&-/
18985       t lineno
18986       b
18987       :lineno
18988       N
18989       :loop
18990       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18991       t loop
18992       s/-\n.*//
18993     ' >$as_me.lineno &&
18994   chmod +x "$as_me.lineno" ||
18995     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18996    { (exit 1); exit 1; }; }
18997
18998   # Don't try to exec as it changes $[0], causing all sort of problems
18999   # (the dirname of $[0] is not the place where we might find the
19000   # original and so on.  Autoconf is especially sensitive to this).
19001   . "./$as_me.lineno"
19002   # Exit status is that of the last command.
19003   exit
19004 }
19005
19006
19007 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19008   as_dirname=dirname
19009 else
19010   as_dirname=false
19011 fi
19012
19013 ECHO_C= ECHO_N= ECHO_T=
19014 case `echo -n x` in
19015 -n*)
19016   case `echo 'x\c'` in
19017   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19018   *)   ECHO_C='\c';;
19019   esac;;
19020 *)
19021   ECHO_N='-n';;
19022 esac
19023
19024 if expr a : '\(a\)' >/dev/null 2>&1 &&
19025    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19026   as_expr=expr
19027 else
19028   as_expr=false
19029 fi
19030
19031 rm -f conf$$ conf$$.exe conf$$.file
19032 if test -d conf$$.dir; then
19033   rm -f conf$$.dir/conf$$.file
19034 else
19035   rm -f conf$$.dir
19036   mkdir conf$$.dir
19037 fi
19038 echo >conf$$.file
19039 if ln -s conf$$.file conf$$ 2>/dev/null; then
19040   as_ln_s='ln -s'
19041   # ... but there are two gotchas:
19042   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19043   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19044   # In both cases, we have to default to `cp -p'.
19045   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19046     as_ln_s='cp -p'
19047 elif ln conf$$.file conf$$ 2>/dev/null; then
19048   as_ln_s=ln
19049 else
19050   as_ln_s='cp -p'
19051 fi
19052 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19053 rmdir conf$$.dir 2>/dev/null
19054
19055 if mkdir -p . 2>/dev/null; then
19056   as_mkdir_p=:
19057 else
19058   test -d ./-p && rmdir ./-p
19059   as_mkdir_p=false
19060 fi
19061
19062 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
19063 # systems may use methods other than mode bits to determine executability.
19064 cat >conf$$.file <<_ASEOF
19065 #! /bin/sh
19066 exit 0
19067 _ASEOF
19068 chmod +x conf$$.file
19069 if test -x conf$$.file >/dev/null 2>&1; then
19070   as_executable_p="test -x"
19071 else
19072   as_executable_p=:
19073 fi
19074 rm -f conf$$.file
19075
19076 # Sed expression to map a string onto a valid CPP name.
19077 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19078
19079 # Sed expression to map a string onto a valid variable name.
19080 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19081
19082
19083 exec 6>&1
19084
19085 # Save the log message, to keep $[0] and so on meaningful, and to
19086 # report actual input values of CONFIG_FILES etc. instead of their
19087 # values after options handling.
19088 ac_log="
19089 This file was extended by LLVM $as_me 3.7.0svn, which was
19090 generated by GNU Autoconf 2.60.  Invocation command line was
19091
19092   CONFIG_FILES    = $CONFIG_FILES
19093   CONFIG_HEADERS  = $CONFIG_HEADERS
19094   CONFIG_LINKS    = $CONFIG_LINKS
19095   CONFIG_COMMANDS = $CONFIG_COMMANDS
19096   $ $0 $@
19097
19098 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19099 "
19100
19101 _ACEOF
19102
19103 cat >>$CONFIG_STATUS <<_ACEOF
19104 # Files that config.status was made for.
19105 config_files="$ac_config_files"
19106 config_headers="$ac_config_headers"
19107 config_commands="$ac_config_commands"
19108
19109 _ACEOF
19110
19111 cat >>$CONFIG_STATUS <<\_ACEOF
19112 ac_cs_usage="\
19113 \`$as_me' instantiates files from templates according to the
19114 current configuration.
19115
19116 Usage: $0 [OPTIONS] [FILE]...
19117
19118   -h, --help       print this help, then exit
19119   -V, --version    print version number, then exit
19120   -q, --quiet      do not print progress messages
19121   -d, --debug      don't remove temporary files
19122       --recheck    update $as_me by reconfiguring in the same conditions
19123   --file=FILE[:TEMPLATE]
19124                    instantiate the configuration file FILE
19125   --header=FILE[:TEMPLATE]
19126                    instantiate the configuration header FILE
19127
19128 Configuration files:
19129 $config_files
19130
19131 Configuration headers:
19132 $config_headers
19133
19134 Configuration commands:
19135 $config_commands
19136
19137 Report bugs to <bug-autoconf@gnu.org>."
19138
19139 _ACEOF
19140 cat >>$CONFIG_STATUS <<_ACEOF
19141 ac_cs_version="\\
19142 LLVM config.status 3.7.0svn
19143 configured by $0, generated by GNU Autoconf 2.60,
19144   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19145
19146 Copyright (C) 2006 Free Software Foundation, Inc.
19147 This config.status script is free software; the Free Software Foundation
19148 gives unlimited permission to copy, distribute and modify it."
19149
19150 ac_pwd='$ac_pwd'
19151 srcdir='$srcdir'
19152 INSTALL='$INSTALL'
19153 _ACEOF
19154
19155 cat >>$CONFIG_STATUS <<\_ACEOF
19156 # If no file are specified by the user, then we need to provide default
19157 # value.  By we need to know if files were specified by the user.
19158 ac_need_defaults=:
19159 while test $# != 0
19160 do
19161   case $1 in
19162   --*=*)
19163     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19164     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19165     ac_shift=:
19166     ;;
19167   *)
19168     ac_option=$1
19169     ac_optarg=$2
19170     ac_shift=shift
19171     ;;
19172   esac
19173
19174   case $ac_option in
19175   # Handling of the options.
19176   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19177     ac_cs_recheck=: ;;
19178   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19179     echo "$ac_cs_version"; exit ;;
19180   --debug | --debu | --deb | --de | --d | -d )
19181     debug=: ;;
19182   --file | --fil | --fi | --f )
19183     $ac_shift
19184     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19185     ac_need_defaults=false;;
19186   --header | --heade | --head | --hea )
19187     $ac_shift
19188     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19189     ac_need_defaults=false;;
19190   --he | --h)
19191     # Conflict between --help and --header
19192     { echo "$as_me: error: ambiguous option: $1
19193 Try \`$0 --help' for more information." >&2
19194    { (exit 1); exit 1; }; };;
19195   --help | --hel | -h )
19196     echo "$ac_cs_usage"; exit ;;
19197   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19198   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19199     ac_cs_silent=: ;;
19200
19201   # This is an error.
19202   -*) { echo "$as_me: error: unrecognized option: $1
19203 Try \`$0 --help' for more information." >&2
19204    { (exit 1); exit 1; }; } ;;
19205
19206   *) ac_config_targets="$ac_config_targets $1"
19207      ac_need_defaults=false ;;
19208
19209   esac
19210   shift
19211 done
19212
19213 ac_configure_extra_args=
19214
19215 if $ac_cs_silent; then
19216   exec 6>/dev/null
19217   ac_configure_extra_args="$ac_configure_extra_args --silent"
19218 fi
19219
19220 _ACEOF
19221 cat >>$CONFIG_STATUS <<_ACEOF
19222 if \$ac_cs_recheck; then
19223   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19224   CONFIG_SHELL=$SHELL
19225   export CONFIG_SHELL
19226   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19227 fi
19228
19229 _ACEOF
19230 cat >>$CONFIG_STATUS <<\_ACEOF
19231 exec 5>>config.log
19232 {
19233   echo
19234   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19235 ## Running $as_me. ##
19236 _ASBOX
19237   echo "$ac_log"
19238 } >&5
19239
19240 _ACEOF
19241 cat >>$CONFIG_STATUS <<_ACEOF
19242 #
19243 # INIT-COMMANDS
19244 #
19245 llvm_src="${srcdir}"
19246
19247 _ACEOF
19248
19249 cat >>$CONFIG_STATUS <<\_ACEOF
19250
19251 # Handling of arguments.
19252 for ac_config_target in $ac_config_targets
19253 do
19254   case $ac_config_target in
19255     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19256     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19257     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19258     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19259     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19260     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19261     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19262     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19263     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19264     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19265     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19266     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19267     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19268     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19269     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19270     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19271     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19272     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19273     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19274     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19275     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19276     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19277     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19278     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19279     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19280     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19281
19282   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19283 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19284    { (exit 1); exit 1; }; };;
19285   esac
19286 done
19287
19288
19289 # If the user did not use the arguments to specify the items to instantiate,
19290 # then the envvar interface is used.  Set only those that are not.
19291 # We use the long form for the default assignment because of an extremely
19292 # bizarre bug on SunOS 4.1.3.
19293 if $ac_need_defaults; then
19294   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19295   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19296   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19297 fi
19298
19299 # Have a temporary directory for convenience.  Make it in the build tree
19300 # simply because there is no reason against having it here, and in addition,
19301 # creating and moving files from /tmp can sometimes cause problems.
19302 # Hook for its removal unless debugging.
19303 # Note that there is a small window in which the directory will not be cleaned:
19304 # after its creation but before its name has been assigned to `$tmp'.
19305 $debug ||
19306 {
19307   tmp=
19308   trap 'exit_status=$?
19309   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19310 ' 0
19311   trap '{ (exit 1); exit 1; }' 1 2 13 15
19312 }
19313 # Create a (secure) tmp directory for tmp files.
19314
19315 {
19316   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19317   test -n "$tmp" && test -d "$tmp"
19318 }  ||
19319 {
19320   tmp=./conf$$-$RANDOM
19321   (umask 077 && mkdir "$tmp")
19322 } ||
19323 {
19324    echo "$me: cannot create a temporary directory in ." >&2
19325    { (exit 1); exit 1; }
19326 }
19327
19328 #
19329 # Set up the sed scripts for CONFIG_FILES section.
19330 #
19331
19332 # No need to generate the scripts if there are no CONFIG_FILES.
19333 # This happens for instance when ./config.status config.h
19334 if test -n "$CONFIG_FILES"; then
19335
19336 _ACEOF
19337
19338
19339
19340 ac_delim='%!_!# '
19341 for ac_last_try in false false false false false :; do
19342   cat >conf$$subs.sed <<_ACEOF
19343 SHELL!$SHELL$ac_delim
19344 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19345 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19346 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19347 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19348 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19349 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19350 exec_prefix!$exec_prefix$ac_delim
19351 prefix!$prefix$ac_delim
19352 program_transform_name!$program_transform_name$ac_delim
19353 bindir!$bindir$ac_delim
19354 sbindir!$sbindir$ac_delim
19355 libexecdir!$libexecdir$ac_delim
19356 datarootdir!$datarootdir$ac_delim
19357 datadir!$datadir$ac_delim
19358 sysconfdir!$sysconfdir$ac_delim
19359 sharedstatedir!$sharedstatedir$ac_delim
19360 localstatedir!$localstatedir$ac_delim
19361 includedir!$includedir$ac_delim
19362 oldincludedir!$oldincludedir$ac_delim
19363 docdir!$docdir$ac_delim
19364 infodir!$infodir$ac_delim
19365 htmldir!$htmldir$ac_delim
19366 dvidir!$dvidir$ac_delim
19367 pdfdir!$pdfdir$ac_delim
19368 psdir!$psdir$ac_delim
19369 libdir!$libdir$ac_delim
19370 localedir!$localedir$ac_delim
19371 mandir!$mandir$ac_delim
19372 DEFS!$DEFS$ac_delim
19373 ECHO_C!$ECHO_C$ac_delim
19374 ECHO_N!$ECHO_N$ac_delim
19375 ECHO_T!$ECHO_T$ac_delim
19376 LIBS!$LIBS$ac_delim
19377 build_alias!$build_alias$ac_delim
19378 host_alias!$host_alias$ac_delim
19379 target_alias!$target_alias$ac_delim
19380 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19381 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19382 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19383 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19384 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19385 CC!$CC$ac_delim
19386 CFLAGS!$CFLAGS$ac_delim
19387 LDFLAGS!$LDFLAGS$ac_delim
19388 CPPFLAGS!$CPPFLAGS$ac_delim
19389 ac_ct_CC!$ac_ct_CC$ac_delim
19390 EXEEXT!$EXEEXT$ac_delim
19391 OBJEXT!$OBJEXT$ac_delim
19392 CXX!$CXX$ac_delim
19393 CXXFLAGS!$CXXFLAGS$ac_delim
19394 ac_ct_CXX!$ac_ct_CXX$ac_delim
19395 CPP!$CPP$ac_delim
19396 subdirs!$subdirs$ac_delim
19397 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19398 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19399 build!$build$ac_delim
19400 build_cpu!$build_cpu$ac_delim
19401 build_vendor!$build_vendor$ac_delim
19402 build_os!$build_os$ac_delim
19403 host!$host$ac_delim
19404 host_cpu!$host_cpu$ac_delim
19405 host_vendor!$host_vendor$ac_delim
19406 host_os!$host_os$ac_delim
19407 target!$target$ac_delim
19408 target_cpu!$target_cpu$ac_delim
19409 target_vendor!$target_vendor$ac_delim
19410 target_os!$target_os$ac_delim
19411 OS!$OS$ac_delim
19412 HOST_OS!$HOST_OS$ac_delim
19413 TARGET_OS!$TARGET_OS$ac_delim
19414 LINKALL!$LINKALL$ac_delim
19415 NOLINKALL!$NOLINKALL$ac_delim
19416 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19417 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19418 ARCH!$ARCH$ac_delim
19419 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19420 HOST_ARCH!$HOST_ARCH$ac_delim
19421 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19422 BUILD_CC!$BUILD_CC$ac_delim
19423 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19424 BUILD_CXX!$BUILD_CXX$ac_delim
19425 CVSBUILD!$CVSBUILD$ac_delim
19426 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19427 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19428 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19429 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19430 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19431 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19432 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19433 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19434 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19435 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19436 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19437 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19438 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19439 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19440 _ACEOF
19441
19442   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19443     break
19444   elif $ac_last_try; then
19445     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19446 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19447    { (exit 1); exit 1; }; }
19448   else
19449     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19450   fi
19451 done
19452
19453 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19454 if test -n "$ac_eof"; then
19455   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19456   ac_eof=`expr $ac_eof + 1`
19457 fi
19458
19459 cat >>$CONFIG_STATUS <<_ACEOF
19460 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19461 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19462 _ACEOF
19463 sed '
19464 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19465 s/^/s,@/; s/!/@,|#_!!_#|/
19466 :n
19467 t n
19468 s/'"$ac_delim"'$/,g/; t
19469 s/$/\\/; p
19470 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19471 ' >>$CONFIG_STATUS <conf$$subs.sed
19472 rm -f conf$$subs.sed
19473 cat >>$CONFIG_STATUS <<_ACEOF
19474 CEOF$ac_eof
19475 _ACEOF
19476
19477
19478 ac_delim='%!_!# '
19479 for ac_last_try in false false false false false :; do
19480   cat >conf$$subs.sed <<_ACEOF
19481 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19482 JIT!$JIT$ac_delim
19483 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19484 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19485 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19486 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19487 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19488 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19489 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19490 ENABLE_PIC!$ENABLE_PIC$ac_delim
19491 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19492 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19493 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19494 ALL_TARGETS!$ALL_TARGETS$ac_delim
19495 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19496 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19497 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19498 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19499 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19500 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19501 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19502 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19503 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19504 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19505 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19506 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19507 ifGNUmake!$ifGNUmake$ac_delim
19508 LN_S!$LN_S$ac_delim
19509 NM!$NM$ac_delim
19510 CMP!$CMP$ac_delim
19511 CP!$CP$ac_delim
19512 DATE!$DATE$ac_delim
19513 FIND!$FIND$ac_delim
19514 GREP!$GREP$ac_delim
19515 MKDIR!$MKDIR$ac_delim
19516 MV!$MV$ac_delim
19517 RANLIB!$RANLIB$ac_delim
19518 AR!$AR$ac_delim
19519 RM!$RM$ac_delim
19520 SED!$SED$ac_delim
19521 TAR!$TAR$ac_delim
19522 BINPWD!$BINPWD$ac_delim
19523 DOT!$DOT$ac_delim
19524 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19525 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19526 INSTALL_DATA!$INSTALL_DATA$ac_delim
19527 BZIP2!$BZIP2$ac_delim
19528 CAT!$CAT$ac_delim
19529 DOXYGEN!$DOXYGEN$ac_delim
19530 GROFF!$GROFF$ac_delim
19531 GZIPBIN!$GZIPBIN$ac_delim
19532 PDFROFF!$PDFROFF$ac_delim
19533 ZIP!$ZIP$ac_delim
19534 GO!$GO$ac_delim
19535 OCAMLFIND!$OCAMLFIND$ac_delim
19536 GAS!$GAS$ac_delim
19537 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19538 EGREP!$EGREP$ac_delim
19539 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19540 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19541 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19542 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19543 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19544 NO_COMMENT!$NO_COMMENT$ac_delim
19545 PYTHON!$PYTHON$ac_delim
19546 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19547 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19548 USE_OPROFILE!$USE_OPROFILE$ac_delim
19549 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19550 XML2CONFIG!$XML2CONFIG$ac_delim
19551 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19552 LIBXML2_INC!$LIBXML2_INC$ac_delim
19553 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19554 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19555 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19556 MMAP_FILE!$MMAP_FILE$ac_delim
19557 SHLIBEXT!$SHLIBEXT$ac_delim
19558 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19559 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19560 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19561 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19562 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19563 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19564 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19565 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19566 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19567 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19568 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19569 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19570 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19571 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19572 RPATH!$RPATH$ac_delim
19573 RDYNAMIC!$RDYNAMIC$ac_delim
19574 program_prefix!$program_prefix$ac_delim
19575 LIBOBJS!$LIBOBJS$ac_delim
19576 LTLIBOBJS!$LTLIBOBJS$ac_delim
19577 _ACEOF
19578
19579   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19580     break
19581   elif $ac_last_try; then
19582     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19583 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19584    { (exit 1); exit 1; }; }
19585   else
19586     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19587   fi
19588 done
19589
19590 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19591 if test -n "$ac_eof"; then
19592   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19593   ac_eof=`expr $ac_eof + 1`
19594 fi
19595
19596 cat >>$CONFIG_STATUS <<_ACEOF
19597 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19598 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19599 _ACEOF
19600 sed '
19601 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19602 s/^/s,@/; s/!/@,|#_!!_#|/
19603 :n
19604 t n
19605 s/'"$ac_delim"'$/,g/; t
19606 s/$/\\/; p
19607 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19608 ' >>$CONFIG_STATUS <conf$$subs.sed
19609 rm -f conf$$subs.sed
19610 cat >>$CONFIG_STATUS <<_ACEOF
19611 CEOF$ac_eof
19612 _ACEOF
19613
19614
19615 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19616 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19617 # trailing colons and then remove the whole line if VPATH becomes empty
19618 # (actually we leave an empty line to preserve line numbers).
19619 if test "x$srcdir" = x.; then
19620   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19621 s/:*\$(srcdir):*/:/
19622 s/:*\${srcdir}:*/:/
19623 s/:*@srcdir@:*/:/
19624 s/^\([^=]*=[     ]*\):*/\1/
19625 s/:*$//
19626 s/^[^=]*=[       ]*$//
19627 }'
19628 fi
19629
19630 cat >>$CONFIG_STATUS <<\_ACEOF
19631 fi # test -n "$CONFIG_FILES"
19632
19633
19634 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19635 do
19636   case $ac_tag in
19637   :[FHLC]) ac_mode=$ac_tag; continue;;
19638   esac
19639   case $ac_mode$ac_tag in
19640   :[FHL]*:*);;
19641   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19642 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19643    { (exit 1); exit 1; }; };;
19644   :[FH]-) ac_tag=-:-;;
19645   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19646   esac
19647   ac_save_IFS=$IFS
19648   IFS=:
19649   set x $ac_tag
19650   IFS=$ac_save_IFS
19651   shift
19652   ac_file=$1
19653   shift
19654
19655   case $ac_mode in
19656   :L) ac_source=$1;;
19657   :[FH])
19658     ac_file_inputs=
19659     for ac_f
19660     do
19661       case $ac_f in
19662       -) ac_f="$tmp/stdin";;
19663       *) # Look for the file first in the build tree, then in the source tree
19664          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19665          # because $ac_f cannot contain `:'.
19666          test -f "$ac_f" ||
19667            case $ac_f in
19668            [\\/$]*) false;;
19669            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19670            esac ||
19671            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19672 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19673    { (exit 1); exit 1; }; };;
19674       esac
19675       ac_file_inputs="$ac_file_inputs $ac_f"
19676     done
19677
19678     # Let's still pretend it is `configure' which instantiates (i.e., don't
19679     # use $as_me), people would be surprised to read:
19680     #    /* config.h.  Generated by config.status.  */
19681     configure_input="Generated from "`IFS=:
19682           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19683     if test x"$ac_file" != x-; then
19684       configure_input="$ac_file.  $configure_input"
19685       { echo "$as_me:$LINENO: creating $ac_file" >&5
19686 echo "$as_me: creating $ac_file" >&6;}
19687     fi
19688
19689     case $ac_tag in
19690     *:-:* | *:-) cat >"$tmp/stdin";;
19691     esac
19692     ;;
19693   esac
19694
19695   ac_dir=`$as_dirname -- "$ac_file" ||
19696 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19697          X"$ac_file" : 'X\(//\)[^/]' \| \
19698          X"$ac_file" : 'X\(//\)$' \| \
19699          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19700 echo X"$ac_file" |
19701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19702             s//\1/
19703             q
19704           }
19705           /^X\(\/\/\)[^/].*/{
19706             s//\1/
19707             q
19708           }
19709           /^X\(\/\/\)$/{
19710             s//\1/
19711             q
19712           }
19713           /^X\(\/\).*/{
19714             s//\1/
19715             q
19716           }
19717           s/.*/./; q'`
19718   { as_dir="$ac_dir"
19719   case $as_dir in #(
19720   -*) as_dir=./$as_dir;;
19721   esac
19722   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19723     as_dirs=
19724     while :; do
19725       case $as_dir in #(
19726       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19727       *) as_qdir=$as_dir;;
19728       esac
19729       as_dirs="'$as_qdir' $as_dirs"
19730       as_dir=`$as_dirname -- "$as_dir" ||
19731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19732          X"$as_dir" : 'X\(//\)[^/]' \| \
19733          X"$as_dir" : 'X\(//\)$' \| \
19734          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19735 echo X"$as_dir" |
19736     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19737             s//\1/
19738             q
19739           }
19740           /^X\(\/\/\)[^/].*/{
19741             s//\1/
19742             q
19743           }
19744           /^X\(\/\/\)$/{
19745             s//\1/
19746             q
19747           }
19748           /^X\(\/\).*/{
19749             s//\1/
19750             q
19751           }
19752           s/.*/./; q'`
19753       test -d "$as_dir" && break
19754     done
19755     test -z "$as_dirs" || eval "mkdir $as_dirs"
19756   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19757 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19758    { (exit 1); exit 1; }; }; }
19759   ac_builddir=.
19760
19761 case "$ac_dir" in
19762 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19763 *)
19764   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19765   # A ".." for each directory in $ac_dir_suffix.
19766   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19767   case $ac_top_builddir_sub in
19768   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19769   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19770   esac ;;
19771 esac
19772 ac_abs_top_builddir=$ac_pwd
19773 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19774 # for backward compatibility:
19775 ac_top_builddir=$ac_top_build_prefix
19776
19777 case $srcdir in
19778   .)  # We are building in place.
19779     ac_srcdir=.
19780     ac_top_srcdir=$ac_top_builddir_sub
19781     ac_abs_top_srcdir=$ac_pwd ;;
19782   [\\/]* | ?:[\\/]* )  # Absolute name.
19783     ac_srcdir=$srcdir$ac_dir_suffix;
19784     ac_top_srcdir=$srcdir
19785     ac_abs_top_srcdir=$srcdir ;;
19786   *) # Relative name.
19787     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19788     ac_top_srcdir=$ac_top_build_prefix$srcdir
19789     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19790 esac
19791 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19792
19793
19794   case $ac_mode in
19795   :F)
19796   #
19797   # CONFIG_FILE
19798   #
19799
19800   case $INSTALL in
19801   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19802   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19803   esac
19804 _ACEOF
19805
19806 cat >>$CONFIG_STATUS <<\_ACEOF
19807 # If the template does not know about datarootdir, expand it.
19808 # FIXME: This hack should be removed a few years after 2.60.
19809 ac_datarootdir_hack=; ac_datarootdir_seen=
19810
19811 case `sed -n '/datarootdir/ {
19812   p
19813   q
19814 }
19815 /@datadir@/p
19816 /@docdir@/p
19817 /@infodir@/p
19818 /@localedir@/p
19819 /@mandir@/p
19820 ' $ac_file_inputs` in
19821 *datarootdir*) ac_datarootdir_seen=yes;;
19822 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19823   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19824 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19825 _ACEOF
19826 cat >>$CONFIG_STATUS <<_ACEOF
19827   ac_datarootdir_hack='
19828   s&@datadir@&$datadir&g
19829   s&@docdir@&$docdir&g
19830   s&@infodir@&$infodir&g
19831   s&@localedir@&$localedir&g
19832   s&@mandir@&$mandir&g
19833     s&\\\${datarootdir}&$datarootdir&g' ;;
19834 esac
19835 _ACEOF
19836
19837 # Neutralize VPATH when `$srcdir' = `.'.
19838 # Shell code in configure.ac might set extrasub.
19839 # FIXME: do we really want to maintain this feature?
19840 cat >>$CONFIG_STATUS <<_ACEOF
19841   sed "$ac_vpsub
19842 $extrasub
19843 _ACEOF
19844 cat >>$CONFIG_STATUS <<\_ACEOF
19845 :t
19846 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19847 s&@configure_input@&$configure_input&;t t
19848 s&@top_builddir@&$ac_top_builddir_sub&;t t
19849 s&@srcdir@&$ac_srcdir&;t t
19850 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19851 s&@top_srcdir@&$ac_top_srcdir&;t t
19852 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19853 s&@builddir@&$ac_builddir&;t t
19854 s&@abs_builddir@&$ac_abs_builddir&;t t
19855 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19856 s&@INSTALL@&$ac_INSTALL&;t t
19857 $ac_datarootdir_hack
19858 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
19859
19860 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19861   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19862   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19863   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19864 which seems to be undefined.  Please make sure it is defined." >&5
19865 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19866 which seems to be undefined.  Please make sure it is defined." >&2;}
19867
19868   rm -f "$tmp/stdin"
19869   case $ac_file in
19870   -) cat "$tmp/out"; rm -f "$tmp/out";;
19871   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19872   esac
19873  ;;
19874   :H)
19875   #
19876   # CONFIG_HEADER
19877   #
19878 _ACEOF
19879
19880 # Transform confdefs.h into a sed script `conftest.defines', that
19881 # substitutes the proper values into config.h.in to produce config.h.
19882 rm -f conftest.defines conftest.tail
19883 # First, append a space to every undef/define line, to ease matching.
19884 echo 's/$/ /' >conftest.defines
19885 # Then, protect against being on the right side of a sed subst, or in
19886 # an unquoted here document, in config.status.  If some macros were
19887 # called several times there might be several #defines for the same
19888 # symbol, which is useless.  But do not sort them, since the last
19889 # AC_DEFINE must be honored.
19890 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19891 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19892 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19893 # PARAMS is the parameter list in the macro definition--in most cases, it's
19894 # just an empty string.
19895 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19896 ac_dB='\\)[      (].*,\\1define\\2'
19897 ac_dC=' '
19898 ac_dD=' ,'
19899
19900 uniq confdefs.h |
19901   sed -n '
19902         t rset
19903         :rset
19904         s/^[     ]*#[    ]*define[       ][      ]*//
19905         t ok
19906         d
19907         :ok
19908         s/[\\&,]/\\&/g
19909         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19910         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19911   ' >>conftest.defines
19912
19913 # Remove the space that was appended to ease matching.
19914 # Then replace #undef with comments.  This is necessary, for
19915 # example, in the case of _POSIX_SOURCE, which is predefined and required
19916 # on some systems where configure will not decide to define it.
19917 # (The regexp can be short, since the line contains either #define or #undef.)
19918 echo 's/ $//
19919 s,^[     #]*u.*,/* & */,' >>conftest.defines
19920
19921 # Break up conftest.defines:
19922 ac_max_sed_lines=50
19923
19924 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19925 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19926 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19927 # et cetera.
19928 ac_in='$ac_file_inputs'
19929 ac_out='"$tmp/out1"'
19930 ac_nxt='"$tmp/out2"'
19931
19932 while :
19933 do
19934   # Write a here document:
19935     cat >>$CONFIG_STATUS <<_ACEOF
19936     # First, check the format of the line:
19937     cat >"\$tmp/defines.sed" <<\\CEOF
19938 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19939 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19940 b
19941 :def
19942 _ACEOF
19943   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19944   echo 'CEOF
19945     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19946   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19947   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19948   grep . conftest.tail >/dev/null || break
19949   rm -f conftest.defines
19950   mv conftest.tail conftest.defines
19951 done
19952 rm -f conftest.defines conftest.tail
19953
19954 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19955 cat >>$CONFIG_STATUS <<\_ACEOF
19956   if test x"$ac_file" != x-; then
19957     echo "/* $configure_input  */" >"$tmp/config.h"
19958     cat "$ac_result" >>"$tmp/config.h"
19959     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19960       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19961 echo "$as_me: $ac_file is unchanged" >&6;}
19962     else
19963       rm -f $ac_file
19964       mv "$tmp/config.h" $ac_file
19965     fi
19966   else
19967     echo "/* $configure_input  */"
19968     cat "$ac_result"
19969   fi
19970   rm -f "$tmp/out12"
19971  ;;
19972
19973   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19974 echo "$as_me: executing $ac_file commands" >&6;}
19975  ;;
19976   esac
19977
19978
19979   case $ac_file$ac_mode in
19980     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19981    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19982     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19983    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19984     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19985    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19986     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19987    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19988     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19989    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19990     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19991    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19992     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19993    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19994     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19995    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19996     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19997    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19998     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19999    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20000     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20001    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20002     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20003    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20004
20005   esac
20006 done # for ac_tag
20007
20008
20009 { (exit 0); exit 0; }
20010 _ACEOF
20011 chmod +x $CONFIG_STATUS
20012 ac_clean_files=$ac_clean_files_save
20013
20014
20015 # configure is writing to config.log, and then calls config.status.
20016 # config.status does its own redirection, appending to config.log.
20017 # Unfortunately, on DOS this fails, as config.log is still kept open
20018 # by configure, so config.status won't be able to write to it; its
20019 # output is simply discarded.  So we exec the FD to /dev/null,
20020 # effectively closing config.log, so it can be properly (re)opened and
20021 # appended to by config.status.  When coming back to configure, we
20022 # need to make the FD available again.
20023 if test "$no_create" != yes; then
20024   ac_cs_success=:
20025   ac_config_status_args=
20026   test "$silent" = yes &&
20027     ac_config_status_args="$ac_config_status_args --quiet"
20028   exec 5>/dev/null
20029   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20030   exec 5>>config.log
20031   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20032   # would make configure fail if this is the last instruction.
20033   $ac_cs_success || { (exit 1); exit 1; }
20034 fi
20035
20036 #
20037 # CONFIG_SUBDIRS section.
20038 #
20039 if test "$no_recursion" != yes; then
20040
20041   # Remove --cache-file and --srcdir arguments so they do not pile up.
20042   ac_sub_configure_args=
20043   ac_prev=
20044   eval "set x $ac_configure_args"
20045   shift
20046   for ac_arg
20047   do
20048     if test -n "$ac_prev"; then
20049       ac_prev=
20050       continue
20051     fi
20052     case $ac_arg in
20053     -cache-file | --cache-file | --cache-fil | --cache-fi \
20054     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20055       ac_prev=cache_file ;;
20056     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20057     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20058     | --c=*)
20059       ;;
20060     --config-cache | -C)
20061       ;;
20062     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20063       ac_prev=srcdir ;;
20064     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20065       ;;
20066     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20067       ac_prev=prefix ;;
20068     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20069       ;;
20070     *)
20071       case $ac_arg in
20072       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20073       esac
20074       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20075     esac
20076   done
20077
20078   # Always prepend --prefix to ensure using the same prefix
20079   # in subdir configurations.
20080   ac_arg="--prefix=$prefix"
20081   case $ac_arg in
20082   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20083   esac
20084   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20085
20086   ac_popdir=`pwd`
20087   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20088
20089     # Do not complain, so a configure script can configure whichever
20090     # parts of a large source tree are present.
20091     test -d "$srcdir/$ac_dir" || continue
20092
20093     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20094     echo "$as_me:$LINENO: $ac_msg" >&5
20095     echo "$ac_msg" >&6
20096     { as_dir="$ac_dir"
20097   case $as_dir in #(
20098   -*) as_dir=./$as_dir;;
20099   esac
20100   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20101     as_dirs=
20102     while :; do
20103       case $as_dir in #(
20104       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20105       *) as_qdir=$as_dir;;
20106       esac
20107       as_dirs="'$as_qdir' $as_dirs"
20108       as_dir=`$as_dirname -- "$as_dir" ||
20109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20110          X"$as_dir" : 'X\(//\)[^/]' \| \
20111          X"$as_dir" : 'X\(//\)$' \| \
20112          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20113 echo X"$as_dir" |
20114     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20115             s//\1/
20116             q
20117           }
20118           /^X\(\/\/\)[^/].*/{
20119             s//\1/
20120             q
20121           }
20122           /^X\(\/\/\)$/{
20123             s//\1/
20124             q
20125           }
20126           /^X\(\/\).*/{
20127             s//\1/
20128             q
20129           }
20130           s/.*/./; q'`
20131       test -d "$as_dir" && break
20132     done
20133     test -z "$as_dirs" || eval "mkdir $as_dirs"
20134   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20135 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20136    { (exit 1); exit 1; }; }; }
20137     ac_builddir=.
20138
20139 case "$ac_dir" in
20140 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20141 *)
20142   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20143   # A ".." for each directory in $ac_dir_suffix.
20144   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20145   case $ac_top_builddir_sub in
20146   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20147   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20148   esac ;;
20149 esac
20150 ac_abs_top_builddir=$ac_pwd
20151 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20152 # for backward compatibility:
20153 ac_top_builddir=$ac_top_build_prefix
20154
20155 case $srcdir in
20156   .)  # We are building in place.
20157     ac_srcdir=.
20158     ac_top_srcdir=$ac_top_builddir_sub
20159     ac_abs_top_srcdir=$ac_pwd ;;
20160   [\\/]* | ?:[\\/]* )  # Absolute name.
20161     ac_srcdir=$srcdir$ac_dir_suffix;
20162     ac_top_srcdir=$srcdir
20163     ac_abs_top_srcdir=$srcdir ;;
20164   *) # Relative name.
20165     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20166     ac_top_srcdir=$ac_top_build_prefix$srcdir
20167     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20168 esac
20169 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20170
20171
20172     cd "$ac_dir"
20173
20174     # Check for guested configure; otherwise get Cygnus style configure.
20175     if test -f "$ac_srcdir/configure.gnu"; then
20176       ac_sub_configure=$ac_srcdir/configure.gnu
20177     elif test -f "$ac_srcdir/configure"; then
20178       ac_sub_configure=$ac_srcdir/configure
20179     elif test -f "$ac_srcdir/configure.in"; then
20180       # This should be Cygnus configure.
20181       ac_sub_configure=$ac_aux_dir/configure
20182     else
20183       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20184 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20185       ac_sub_configure=
20186     fi
20187
20188     # The recursion is here.
20189     if test -n "$ac_sub_configure"; then
20190       # Make the cache file name correct relative to the subdirectory.
20191       case $cache_file in
20192       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20193       *) # Relative name.
20194         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20195       esac
20196
20197       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20198 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20199       # The eval makes quoting arguments work.
20200       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20201            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20202         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20203 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20204    { (exit 1); exit 1; }; }
20205     fi
20206
20207     cd "$ac_popdir"
20208   done
20209 fi
20210