CMake: stop setting (well, #undef'ing) HOST_LINK_VERSION; it's used in Clang, not...
[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.6.0svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
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.6.0svn'
565 PACKAGE_STRING='LLVM 3.6.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.6.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.6.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.6.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.6.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=6
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
1945
1946
1947
1948
1949 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1950
1951
1952
1953
1954
1955
1956
1957 ac_aux_dir=
1958 for ac_dir in autoconf "$srcdir"/autoconf; do
1959   if test -f "$ac_dir/install-sh"; then
1960     ac_aux_dir=$ac_dir
1961     ac_install_sh="$ac_aux_dir/install-sh -c"
1962     break
1963   elif test -f "$ac_dir/install.sh"; then
1964     ac_aux_dir=$ac_dir
1965     ac_install_sh="$ac_aux_dir/install.sh -c"
1966     break
1967   elif test -f "$ac_dir/shtool"; then
1968     ac_aux_dir=$ac_dir
1969     ac_install_sh="$ac_aux_dir/shtool install -c"
1970     break
1971   fi
1972 done
1973 if test -z "$ac_aux_dir"; then
1974   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1975 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1976    { (exit 1); exit 1; }; }
1977 fi
1978
1979 # These three variables are undocumented and unsupported,
1980 # and are intended to be withdrawn in a future Autoconf release.
1981 # They can cause serious problems if a builder's source tree is in a directory
1982 # whose full name contains unusual characters.
1983 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1984 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1985 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1986
1987
1988
1989 if test ${srcdir} != "." ; then
1990   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1991     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1992 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1993    { (exit 1); exit 1; }; }
1994   fi
1995 fi
1996
1997 : ${CFLAGS=}
1998 : ${CXXFLAGS=}
1999
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006   for ac_prog in clang gcc
2007   do
2008     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   if test -n "$CC"; then
2016   ac_cv_prog_CC="$CC" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
2022   test -z "$as_dir" && as_dir=.
2023   for ac_exec_ext in '' $ac_executable_extensions; do
2024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2025     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027     break 2
2028   fi
2029 done
2030 done
2031 IFS=$as_save_IFS
2032
2033 fi
2034 fi
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037   { echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6; }
2039 else
2040   { echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6; }
2042 fi
2043
2044
2045     test -n "$CC" && break
2046   done
2047 fi
2048 if test -z "$CC"; then
2049   ac_ct_CC=$CC
2050   for ac_prog in clang gcc
2051 do
2052   # Extract the first word of "$ac_prog", so it can be a program name with args.
2053 set dummy $ac_prog; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test -n "$ac_ct_CC"; then
2060   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2069     ac_cv_prog_ac_ct_CC="$ac_prog"
2070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071     break 2
2072   fi
2073 done
2074 done
2075 IFS=$as_save_IFS
2076
2077 fi
2078 fi
2079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2080 if test -n "$ac_ct_CC"; then
2081   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2082 echo "${ECHO_T}$ac_ct_CC" >&6; }
2083 else
2084   { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2086 fi
2087
2088
2089   test -n "$ac_ct_CC" && break
2090 done
2091
2092   if test "x$ac_ct_CC" = x; then
2093     CC=""
2094   else
2095     case $cross_compiling:$ac_tool_warned in
2096 yes:)
2097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2098 whose name does not start with the host triplet.  If you think this
2099 configuration is useful to you, please write to autoconf@gnu.org." >&5
2100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2101 whose name does not start with the host triplet.  If you think this
2102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2103 ac_tool_warned=yes ;;
2104 esac
2105     CC=$ac_ct_CC
2106   fi
2107 fi
2108
2109
2110 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&2;}
2114    { (exit 1); exit 1; }; }
2115
2116 # Provide some information about the compiler.
2117 echo "$as_me:$LINENO: checking for C compiler version" >&5
2118 ac_compiler=`set X $ac_compile; echo $2`
2119 { (ac_try="$ac_compiler --version >&5"
2120 case "(($ac_try" in
2121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122   *) ac_try_echo=$ac_try;;
2123 esac
2124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2125   (eval "$ac_compiler --version >&5") 2>&5
2126   ac_status=$?
2127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128   (exit $ac_status); }
2129 { (ac_try="$ac_compiler -v >&5"
2130 case "(($ac_try" in
2131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132   *) ac_try_echo=$ac_try;;
2133 esac
2134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135   (eval "$ac_compiler -v >&5") 2>&5
2136   ac_status=$?
2137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138   (exit $ac_status); }
2139 { (ac_try="$ac_compiler -V >&5"
2140 case "(($ac_try" in
2141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142   *) ac_try_echo=$ac_try;;
2143 esac
2144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2145   (eval "$ac_compiler -V >&5") 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }
2149
2150 cat >conftest.$ac_ext <<_ACEOF
2151 /* confdefs.h.  */
2152 _ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h.  */
2156
2157 int
2158 main ()
2159 {
2160
2161   ;
2162   return 0;
2163 }
2164 _ACEOF
2165 ac_clean_files_save=$ac_clean_files
2166 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2167 # Try to create an executable without -o first, disregard a.out.
2168 # It will help us diagnose broken compilers, and finding out an intuition
2169 # of exeext.
2170 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2171 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2172 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2173 #
2174 # List of possible output files, starting from the most likely.
2175 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2176 # only as a last resort.  b.out is created by i960 compilers.
2177 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2178 #
2179 # The IRIX 6 linker writes into existing files which may not be
2180 # executable, retaining their permissions.  Remove them first so a
2181 # subsequent execution test works.
2182 ac_rmfiles=
2183 for ac_file in $ac_files
2184 do
2185   case $ac_file in
2186     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2187     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2188   esac
2189 done
2190 rm -f $ac_rmfiles
2191
2192 if { (ac_try="$ac_link_default"
2193 case "(($ac_try" in
2194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195   *) ac_try_echo=$ac_try;;
2196 esac
2197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2198   (eval "$ac_link_default") 2>&5
2199   ac_status=$?
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); }; then
2202   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2203 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2204 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2205 # so that the user can short-circuit this test for compilers unknown to
2206 # Autoconf.
2207 for ac_file in $ac_files
2208 do
2209   test -f "$ac_file" || continue
2210   case $ac_file in
2211     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2212         ;;
2213     [ab].out )
2214         # We found the default executable, but exeext='' is most
2215         # certainly right.
2216         break;;
2217     *.* )
2218         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2219         then :; else
2220            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2221         fi
2222         # We set ac_cv_exeext here because the later test for it is not
2223         # safe: cross compilers may not add the suffix if given an `-o'
2224         # argument, so we may need to know it at that point already.
2225         # Even if this section looks crufty: it has the advantage of
2226         # actually working.
2227         break;;
2228     * )
2229         break;;
2230   esac
2231 done
2232 test "$ac_cv_exeext" = no && ac_cv_exeext=
2233
2234 else
2235   echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2237
2238 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&2;}
2242    { (exit 77); exit 77; }; }
2243 fi
2244
2245 ac_exeext=$ac_cv_exeext
2246 { echo "$as_me:$LINENO: result: $ac_file" >&5
2247 echo "${ECHO_T}$ac_file" >&6; }
2248
2249 # Check that the compiler produces executables we can run.  If not, either
2250 # the compiler is broken, or we cross compile.
2251 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2252 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2253 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2254 # If not cross compiling, check that we can run a simple program.
2255 if test "$cross_compiling" != yes; then
2256   if { ac_try='./$ac_file'
2257   { (case "(($ac_try" in
2258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259   *) ac_try_echo=$ac_try;;
2260 esac
2261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2262   (eval "$ac_try") 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; }; then
2266     cross_compiling=no
2267   else
2268     if test "$cross_compiling" = maybe; then
2269         cross_compiling=yes
2270     else
2271         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2272 If you meant to cross compile, use \`--host'.
2273 See \`config.log' for more details." >&5
2274 echo "$as_me: error: cannot run C compiled programs.
2275 If you meant to cross compile, use \`--host'.
2276 See \`config.log' for more details." >&2;}
2277    { (exit 1); exit 1; }; }
2278     fi
2279   fi
2280 fi
2281 { echo "$as_me:$LINENO: result: yes" >&5
2282 echo "${ECHO_T}yes" >&6; }
2283
2284 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2285 ac_clean_files=$ac_clean_files_save
2286 # Check that the compiler produces executables we can run.  If not, either
2287 # the compiler is broken, or we cross compile.
2288 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2289 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2290 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2291 echo "${ECHO_T}$cross_compiling" >&6; }
2292
2293 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2294 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2295 if { (ac_try="$ac_link"
2296 case "(($ac_try" in
2297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298   *) ac_try_echo=$ac_try;;
2299 esac
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301   (eval "$ac_link") 2>&5
2302   ac_status=$?
2303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304   (exit $ac_status); }; then
2305   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2306 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2307 # work properly (i.e., refer to `conftest.exe'), while it won't with
2308 # `rm'.
2309 for ac_file in conftest.exe conftest conftest.*; do
2310   test -f "$ac_file" || continue
2311   case $ac_file in
2312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2313     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2314           break;;
2315     * ) break;;
2316   esac
2317 done
2318 else
2319   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2320 See \`config.log' for more details." >&5
2321 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2322 See \`config.log' for more details." >&2;}
2323    { (exit 1); exit 1; }; }
2324 fi
2325
2326 rm -f conftest$ac_cv_exeext
2327 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2328 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2329
2330 rm -f conftest.$ac_ext
2331 EXEEXT=$ac_cv_exeext
2332 ac_exeext=$EXEEXT
2333 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2334 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2335 if test "${ac_cv_objext+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   cat >conftest.$ac_ext <<_ACEOF
2339 /* confdefs.h.  */
2340 _ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h.  */
2344
2345 int
2346 main ()
2347 {
2348
2349   ;
2350   return 0;
2351 }
2352 _ACEOF
2353 rm -f conftest.o conftest.obj
2354 if { (ac_try="$ac_compile"
2355 case "(($ac_try" in
2356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357   *) ac_try_echo=$ac_try;;
2358 esac
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360   (eval "$ac_compile") 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; then
2364   for ac_file in conftest.o conftest.obj conftest.*; do
2365   test -f "$ac_file" || continue;
2366   case $ac_file in
2367     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2368     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2369        break;;
2370   esac
2371 done
2372 else
2373   echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2377 See \`config.log' for more details." >&5
2378 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2379 See \`config.log' for more details." >&2;}
2380    { (exit 1); exit 1; }; }
2381 fi
2382
2383 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2384 fi
2385 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2386 echo "${ECHO_T}$ac_cv_objext" >&6; }
2387 OBJEXT=$ac_cv_objext
2388 ac_objext=$OBJEXT
2389 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2390 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2391 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   cat >conftest.$ac_ext <<_ACEOF
2395 /* confdefs.h.  */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h.  */
2400
2401 int
2402 main ()
2403 {
2404 #ifndef __GNUC__
2405        choke me
2406 #endif
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (ac_try="$ac_compile"
2414 case "(($ac_try" in
2415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416   *) ac_try_echo=$ac_try;;
2417 esac
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419   (eval "$ac_compile") 2>conftest.er1
2420   ac_status=$?
2421   grep -v '^ *+' conftest.er1 >conftest.err
2422   rm -f conftest.er1
2423   cat conftest.err >&5
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); } &&
2426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2427   { (case "(($ac_try" in
2428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429   *) ac_try_echo=$ac_try;;
2430 esac
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432   (eval "$ac_try") 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }; } &&
2436          { ac_try='test -s conftest.$ac_objext'
2437   { (case "(($ac_try" in
2438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439   *) ac_try_echo=$ac_try;;
2440 esac
2441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2442   (eval "$ac_try") 2>&5
2443   ac_status=$?
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); }; }; then
2446   ac_compiler_gnu=yes
2447 else
2448   echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2450
2451         ac_compiler_gnu=no
2452 fi
2453
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2456
2457 fi
2458 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2460 GCC=`test $ac_compiler_gnu = yes && echo yes`
2461 ac_test_CFLAGS=${CFLAGS+set}
2462 ac_save_CFLAGS=$CFLAGS
2463 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2464 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_cc_g+set}" = set; then
2466   echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468   ac_save_c_werror_flag=$ac_c_werror_flag
2469    ac_c_werror_flag=yes
2470    ac_cv_prog_cc_g=no
2471    CFLAGS="-g"
2472    cat >conftest.$ac_ext <<_ACEOF
2473 /* confdefs.h.  */
2474 _ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h.  */
2478
2479 int
2480 main ()
2481 {
2482
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 rm -f conftest.$ac_objext
2488 if { (ac_try="$ac_compile"
2489 case "(($ac_try" in
2490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491   *) ac_try_echo=$ac_try;;
2492 esac
2493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2494   (eval "$ac_compile") 2>conftest.er1
2495   ac_status=$?
2496   grep -v '^ *+' conftest.er1 >conftest.err
2497   rm -f conftest.er1
2498   cat conftest.err >&5
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); } &&
2501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2502   { (case "(($ac_try" in
2503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504   *) ac_try_echo=$ac_try;;
2505 esac
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507   (eval "$ac_try") 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; } &&
2511          { ac_try='test -s conftest.$ac_objext'
2512   { (case "(($ac_try" in
2513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514   *) ac_try_echo=$ac_try;;
2515 esac
2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517   (eval "$ac_try") 2>&5
2518   ac_status=$?
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); }; }; then
2521   ac_cv_prog_cc_g=yes
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526         CFLAGS=""
2527       cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h.  */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h.  */
2533
2534 int
2535 main ()
2536 {
2537
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 rm -f conftest.$ac_objext
2543 if { (ac_try="$ac_compile"
2544 case "(($ac_try" in
2545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546   *) ac_try_echo=$ac_try;;
2547 esac
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549   (eval "$ac_compile") 2>conftest.er1
2550   ac_status=$?
2551   grep -v '^ *+' conftest.er1 >conftest.err
2552   rm -f conftest.er1
2553   cat conftest.err >&5
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); } &&
2556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2557   { (case "(($ac_try" in
2558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559   *) ac_try_echo=$ac_try;;
2560 esac
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562   (eval "$ac_try") 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; } &&
2566          { ac_try='test -s conftest.$ac_objext'
2567   { (case "(($ac_try" in
2568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569   *) ac_try_echo=$ac_try;;
2570 esac
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572   (eval "$ac_try") 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; }; then
2576   :
2577 else
2578   echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581         ac_c_werror_flag=$ac_save_c_werror_flag
2582          CFLAGS="-g"
2583          cat >conftest.$ac_ext <<_ACEOF
2584 /* confdefs.h.  */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h.  */
2589
2590 int
2591 main ()
2592 {
2593
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (ac_try="$ac_compile"
2600 case "(($ac_try" in
2601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602   *) ac_try_echo=$ac_try;;
2603 esac
2604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2605   (eval "$ac_compile") 2>conftest.er1
2606   ac_status=$?
2607   grep -v '^ *+' conftest.er1 >conftest.err
2608   rm -f conftest.er1
2609   cat conftest.err >&5
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); } &&
2612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2613   { (case "(($ac_try" in
2614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615   *) ac_try_echo=$ac_try;;
2616 esac
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618   (eval "$ac_try") 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; } &&
2622          { ac_try='test -s conftest.$ac_objext'
2623   { (case "(($ac_try" in
2624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625   *) ac_try_echo=$ac_try;;
2626 esac
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628   (eval "$ac_try") 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   ac_cv_prog_cc_g=yes
2633 else
2634   echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637
2638 fi
2639
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 fi
2642
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 fi
2645
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647    ac_c_werror_flag=$ac_save_c_werror_flag
2648 fi
2649 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2650 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2651 if test "$ac_test_CFLAGS" = set; then
2652   CFLAGS=$ac_save_CFLAGS
2653 elif test $ac_cv_prog_cc_g = yes; then
2654   if test "$GCC" = yes; then
2655     CFLAGS="-g -O2"
2656   else
2657     CFLAGS="-g"
2658   fi
2659 else
2660   if test "$GCC" = yes; then
2661     CFLAGS="-O2"
2662   else
2663     CFLAGS=
2664   fi
2665 fi
2666 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2667 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2668 if test "${ac_cv_prog_cc_c89+set}" = set; then
2669   echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671   ac_cv_prog_cc_c89=no
2672 ac_save_CC=$CC
2673 cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679 #include <stdarg.h>
2680 #include <stdio.h>
2681 #include <sys/types.h>
2682 #include <sys/stat.h>
2683 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2684 struct buf { int x; };
2685 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2686 static char *e (p, i)
2687      char **p;
2688      int i;
2689 {
2690   return p[i];
2691 }
2692 static char *f (char * (*g) (char **, int), char **p, ...)
2693 {
2694   char *s;
2695   va_list v;
2696   va_start (v,p);
2697   s = g (p, va_arg (v,int));
2698   va_end (v);
2699   return s;
2700 }
2701
2702 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2703    function prototypes and stuff, but not '\xHH' hex character constants.
2704    These don't provoke an error unfortunately, instead are silently treated
2705    as 'x'.  The following induces an error, until -std is added to get
2706    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2707    array size at least.  It's necessary to write '\x00'==0 to get something
2708    that's true only with -std.  */
2709 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2710
2711 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2712    inside strings and character constants.  */
2713 #define FOO(x) 'x'
2714 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2715
2716 int test (int i, double x);
2717 struct s1 {int (*f) (int a);};
2718 struct s2 {int (*f) (double a);};
2719 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2720 int argc;
2721 char **argv;
2722 int
2723 main ()
2724 {
2725 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2731         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2732 do
2733   CC="$ac_save_CC $ac_arg"
2734   rm -f conftest.$ac_objext
2735 if { (ac_try="$ac_compile"
2736 case "(($ac_try" in
2737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738   *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741   (eval "$ac_compile") 2>conftest.er1
2742   ac_status=$?
2743   grep -v '^ *+' conftest.er1 >conftest.err
2744   rm -f conftest.er1
2745   cat conftest.err >&5
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); } &&
2748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2749   { (case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754   (eval "$ac_try") 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; } &&
2758          { ac_try='test -s conftest.$ac_objext'
2759   { (case "(($ac_try" in
2760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761   *) ac_try_echo=$ac_try;;
2762 esac
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764   (eval "$ac_try") 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }; }; then
2768   ac_cv_prog_cc_c89=$ac_arg
2769 else
2770   echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2772
2773
2774 fi
2775
2776 rm -f core conftest.err conftest.$ac_objext
2777   test "x$ac_cv_prog_cc_c89" != "xno" && break
2778 done
2779 rm -f conftest.$ac_ext
2780 CC=$ac_save_CC
2781
2782 fi
2783 # AC_CACHE_VAL
2784 case "x$ac_cv_prog_cc_c89" in
2785   x)
2786     { echo "$as_me:$LINENO: result: none needed" >&5
2787 echo "${ECHO_T}none needed" >&6; } ;;
2788   xno)
2789     { echo "$as_me:$LINENO: result: unsupported" >&5
2790 echo "${ECHO_T}unsupported" >&6; } ;;
2791   *)
2792     CC="$CC $ac_cv_prog_cc_c89"
2793     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2794 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2795 esac
2796
2797
2798 ac_ext=c
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803
2804 ac_ext=cpp
2805 ac_cpp='$CXXCPP $CPPFLAGS'
2806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2809 if test -z "$CXX"; then
2810   if test -n "$CCC"; then
2811     CXX=$CCC
2812   else
2813     if test -n "$ac_tool_prefix"; then
2814   for ac_prog in clang++ g++
2815   do
2816     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2820 if test "${ac_cv_prog_CXX+set}" = set; then
2821   echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823   if test -n "$CXX"; then
2824   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829   IFS=$as_save_IFS
2830   test -z "$as_dir" && as_dir=.
2831   for ac_exec_ext in '' $ac_executable_extensions; do
2832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2833     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835     break 2
2836   fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 CXX=$ac_cv_prog_CXX
2844 if test -n "$CXX"; then
2845   { echo "$as_me:$LINENO: result: $CXX" >&5
2846 echo "${ECHO_T}$CXX" >&6; }
2847 else
2848   { echo "$as_me:$LINENO: result: no" >&5
2849 echo "${ECHO_T}no" >&6; }
2850 fi
2851
2852
2853     test -n "$CXX" && break
2854   done
2855 fi
2856 if test -z "$CXX"; then
2857   ac_ct_CXX=$CXX
2858   for ac_prog in clang++ g++
2859 do
2860   # Extract the first word of "$ac_prog", so it can be a program name with args.
2861 set dummy $ac_prog; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2865   echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867   if test -n "$ac_ct_CXX"; then
2868   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873   IFS=$as_save_IFS
2874   test -z "$as_dir" && as_dir=.
2875   for ac_exec_ext in '' $ac_executable_extensions; do
2876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2877     ac_cv_prog_ac_ct_CXX="$ac_prog"
2878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879     break 2
2880   fi
2881 done
2882 done
2883 IFS=$as_save_IFS
2884
2885 fi
2886 fi
2887 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2888 if test -n "$ac_ct_CXX"; then
2889   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2890 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2891 else
2892   { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2894 fi
2895
2896
2897   test -n "$ac_ct_CXX" && break
2898 done
2899
2900   if test "x$ac_ct_CXX" = x; then
2901     CXX="g++"
2902   else
2903     case $cross_compiling:$ac_tool_warned in
2904 yes:)
2905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2906 whose name does not start with the host triplet.  If you think this
2907 configuration is useful to you, please write to autoconf@gnu.org." >&5
2908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2909 whose name does not start with the host triplet.  If you think this
2910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2911 ac_tool_warned=yes ;;
2912 esac
2913     CXX=$ac_ct_CXX
2914   fi
2915 fi
2916
2917   fi
2918 fi
2919 # Provide some information about the compiler.
2920 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2921 ac_compiler=`set X $ac_compile; echo $2`
2922 { (ac_try="$ac_compiler --version >&5"
2923 case "(($ac_try" in
2924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925   *) ac_try_echo=$ac_try;;
2926 esac
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928   (eval "$ac_compiler --version >&5") 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }
2932 { (ac_try="$ac_compiler -v >&5"
2933 case "(($ac_try" in
2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935   *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938   (eval "$ac_compiler -v >&5") 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }
2942 { (ac_try="$ac_compiler -V >&5"
2943 case "(($ac_try" in
2944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945   *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948   (eval "$ac_compiler -V >&5") 2>&5
2949   ac_status=$?
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }
2952
2953 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2954 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2955 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2956   echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958   cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h.  */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h.  */
2964
2965 int
2966 main ()
2967 {
2968 #ifndef __GNUC__
2969        choke me
2970 #endif
2971
2972   ;
2973   return 0;
2974 }
2975 _ACEOF
2976 rm -f conftest.$ac_objext
2977 if { (ac_try="$ac_compile"
2978 case "(($ac_try" in
2979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980   *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983   (eval "$ac_compile") 2>conftest.er1
2984   ac_status=$?
2985   grep -v '^ *+' conftest.er1 >conftest.err
2986   rm -f conftest.er1
2987   cat conftest.err >&5
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); } &&
2990          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2991   { (case "(($ac_try" in
2992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993   *) ac_try_echo=$ac_try;;
2994 esac
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996   (eval "$ac_try") 2>&5
2997   ac_status=$?
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); }; } &&
3000          { ac_try='test -s conftest.$ac_objext'
3001   { (case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006   (eval "$ac_try") 2>&5
3007   ac_status=$?
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); }; }; then
3010   ac_compiler_gnu=yes
3011 else
3012   echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015         ac_compiler_gnu=no
3016 fi
3017
3018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3019 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3020
3021 fi
3022 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3023 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3024 GXX=`test $ac_compiler_gnu = yes && echo yes`
3025 ac_test_CXXFLAGS=${CXXFLAGS+set}
3026 ac_save_CXXFLAGS=$CXXFLAGS
3027 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3028 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3029 if test "${ac_cv_prog_cxx_g+set}" = set; then
3030   echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3033    ac_cxx_werror_flag=yes
3034    ac_cv_prog_cxx_g=no
3035    CXXFLAGS="-g"
3036    cat >conftest.$ac_ext <<_ACEOF
3037 /* confdefs.h.  */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h.  */
3042
3043 int
3044 main ()
3045 {
3046
3047   ;
3048   return 0;
3049 }
3050 _ACEOF
3051 rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3053 case "(($ac_try" in
3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055   *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058   (eval "$ac_compile") 2>conftest.er1
3059   ac_status=$?
3060   grep -v '^ *+' conftest.er1 >conftest.err
3061   rm -f conftest.er1
3062   cat conftest.err >&5
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); } &&
3065          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3066   { (case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_try") 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }; } &&
3075          { ac_try='test -s conftest.$ac_objext'
3076   { (case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081   (eval "$ac_try") 2>&5
3082   ac_status=$?
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); }; }; then
3085   ac_cv_prog_cxx_g=yes
3086 else
3087   echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3089
3090         CXXFLAGS=""
3091       cat >conftest.$ac_ext <<_ACEOF
3092 /* confdefs.h.  */
3093 _ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h.  */
3097
3098 int
3099 main ()
3100 {
3101
3102   ;
3103   return 0;
3104 }
3105 _ACEOF
3106 rm -f conftest.$ac_objext
3107 if { (ac_try="$ac_compile"
3108 case "(($ac_try" in
3109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110   *) ac_try_echo=$ac_try;;
3111 esac
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113   (eval "$ac_compile") 2>conftest.er1
3114   ac_status=$?
3115   grep -v '^ *+' conftest.er1 >conftest.err
3116   rm -f conftest.er1
3117   cat conftest.err >&5
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); } &&
3120          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3121   { (case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_try") 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; } &&
3130          { ac_try='test -s conftest.$ac_objext'
3131   { (case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_try") 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }; }; then
3140   :
3141 else
3142   echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3144
3145         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3146          CXXFLAGS="-g"
3147          cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h.  */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h.  */
3153
3154 int
3155 main ()
3156 {
3157
3158   ;
3159   return 0;
3160 }
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3164 case "(($ac_try" in
3165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166   *) ac_try_echo=$ac_try;;
3167 esac
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169   (eval "$ac_compile") 2>conftest.er1
3170   ac_status=$?
3171   grep -v '^ *+' conftest.er1 >conftest.err
3172   rm -f conftest.er1
3173   cat conftest.err >&5
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); } &&
3176          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3177   { (case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_try") 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }; } &&
3186          { ac_try='test -s conftest.$ac_objext'
3187   { (case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192   (eval "$ac_try") 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); }; }; then
3196   ac_cv_prog_cxx_g=yes
3197 else
3198   echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201
3202 fi
3203
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 fi
3209
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3212 fi
3213 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3214 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3215 if test "$ac_test_CXXFLAGS" = set; then
3216   CXXFLAGS=$ac_save_CXXFLAGS
3217 elif test $ac_cv_prog_cxx_g = yes; then
3218   if test "$GXX" = yes; then
3219     CXXFLAGS="-g -O2"
3220   else
3221     CXXFLAGS="-g"
3222   fi
3223 else
3224   if test "$GXX" = yes; then
3225     CXXFLAGS="-O2"
3226   else
3227     CXXFLAGS=
3228   fi
3229 fi
3230 ac_ext=c
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3242 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3243 # On Suns, sometimes $CPP names a directory.
3244 if test -n "$CPP" && test -d "$CPP"; then
3245   CPP=
3246 fi
3247 if test -z "$CPP"; then
3248   if test "${ac_cv_prog_CPP+set}" = set; then
3249   echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251       # Double quotes because CPP needs to be expanded
3252     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3253     do
3254       ac_preproc_ok=false
3255 for ac_c_preproc_warn_flag in '' yes
3256 do
3257   # Use a header file that comes with gcc, so configuring glibc
3258   # with a fresh cross-compiler works.
3259   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3260   # <limits.h> exists even on freestanding compilers.
3261   # On the NeXT, cc -E runs the code through the compiler's parser,
3262   # not just through cpp. "Syntax error" is here to catch this case.
3263   cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h.  */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h.  */
3269 #ifdef __STDC__
3270 # include <limits.h>
3271 #else
3272 # include <assert.h>
3273 #endif
3274                      Syntax error
3275 _ACEOF
3276 if { (ac_try="$ac_cpp conftest.$ac_ext"
3277 case "(($ac_try" in
3278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279   *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3283   ac_status=$?
3284   grep -v '^ *+' conftest.er1 >conftest.err
3285   rm -f conftest.er1
3286   cat conftest.err >&5
3287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288   (exit $ac_status); } >/dev/null; then
3289   if test -s conftest.err; then
3290     ac_cpp_err=$ac_c_preproc_warn_flag
3291     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3292   else
3293     ac_cpp_err=
3294   fi
3295 else
3296   ac_cpp_err=yes
3297 fi
3298 if test -z "$ac_cpp_err"; then
3299   :
3300 else
3301   echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304   # Broken: fails on valid input.
3305 continue
3306 fi
3307
3308 rm -f conftest.err conftest.$ac_ext
3309
3310   # OK, works on sane cases.  Now check whether nonexistent headers
3311   # can be detected and how.
3312   cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h.  */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h.  */
3318 #include <ac_nonexistent.h>
3319 _ACEOF
3320 if { (ac_try="$ac_cpp conftest.$ac_ext"
3321 case "(($ac_try" in
3322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323   *) ac_try_echo=$ac_try;;
3324 esac
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3327   ac_status=$?
3328   grep -v '^ *+' conftest.er1 >conftest.err
3329   rm -f conftest.er1
3330   cat conftest.err >&5
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); } >/dev/null; then
3333   if test -s conftest.err; then
3334     ac_cpp_err=$ac_c_preproc_warn_flag
3335     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3336   else
3337     ac_cpp_err=
3338   fi
3339 else
3340   ac_cpp_err=yes
3341 fi
3342 if test -z "$ac_cpp_err"; then
3343   # Broken: success on invalid input.
3344 continue
3345 else
3346   echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3348
3349   # Passes both tests.
3350 ac_preproc_ok=:
3351 break
3352 fi
3353
3354 rm -f conftest.err conftest.$ac_ext
3355
3356 done
3357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3358 rm -f conftest.err conftest.$ac_ext
3359 if $ac_preproc_ok; then
3360   break
3361 fi
3362
3363     done
3364     ac_cv_prog_CPP=$CPP
3365
3366 fi
3367   CPP=$ac_cv_prog_CPP
3368 else
3369   ac_cv_prog_CPP=$CPP
3370 fi
3371 { echo "$as_me:$LINENO: result: $CPP" >&5
3372 echo "${ECHO_T}$CPP" >&6; }
3373 ac_preproc_ok=false
3374 for ac_c_preproc_warn_flag in '' yes
3375 do
3376   # Use a header file that comes with gcc, so configuring glibc
3377   # with a fresh cross-compiler works.
3378   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3379   # <limits.h> exists even on freestanding compilers.
3380   # On the NeXT, cc -E runs the code through the compiler's parser,
3381   # not just through cpp. "Syntax error" is here to catch this case.
3382   cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388 #ifdef __STDC__
3389 # include <limits.h>
3390 #else
3391 # include <assert.h>
3392 #endif
3393                      Syntax error
3394 _ACEOF
3395 if { (ac_try="$ac_cpp conftest.$ac_ext"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3402   ac_status=$?
3403   grep -v '^ *+' conftest.er1 >conftest.err
3404   rm -f conftest.er1
3405   cat conftest.err >&5
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); } >/dev/null; then
3408   if test -s conftest.err; then
3409     ac_cpp_err=$ac_c_preproc_warn_flag
3410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411   else
3412     ac_cpp_err=
3413   fi
3414 else
3415   ac_cpp_err=yes
3416 fi
3417 if test -z "$ac_cpp_err"; then
3418   :
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423   # Broken: fails on valid input.
3424 continue
3425 fi
3426
3427 rm -f conftest.err conftest.$ac_ext
3428
3429   # OK, works on sane cases.  Now check whether nonexistent headers
3430   # can be detected and how.
3431   cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h.  */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h.  */
3437 #include <ac_nonexistent.h>
3438 _ACEOF
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } >/dev/null; then
3452   if test -s conftest.err; then
3453     ac_cpp_err=$ac_c_preproc_warn_flag
3454     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455   else
3456     ac_cpp_err=
3457   fi
3458 else
3459   ac_cpp_err=yes
3460 fi
3461 if test -z "$ac_cpp_err"; then
3462   # Broken: success on invalid input.
3463 continue
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468   # Passes both tests.
3469 ac_preproc_ok=:
3470 break
3471 fi
3472
3473 rm -f conftest.err conftest.$ac_ext
3474
3475 done
3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477 rm -f conftest.err conftest.$ac_ext
3478 if $ac_preproc_ok; then
3479   :
3480 else
3481   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3482 See \`config.log' for more details." >&5
3483 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3484 See \`config.log' for more details." >&2;}
3485    { (exit 1); exit 1; }; }
3486 fi
3487
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493
3494
3495 if test "$CXX" = "clang++" ; then
3496   { echo "$as_me:$LINENO: checking whether clang works" >&5
3497 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3498   ac_ext=cpp
3499 ac_cpp='$CXXCPP $CPPFLAGS'
3500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3503
3504
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h.  */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h.  */
3511 #include <limits>
3512 #if __has_include (<cxxabi.h>)
3513 #include <cxxabi.h>
3514 #endif
3515 #if __has_include (<unwind.h>)
3516 #include <unwind.h>
3517 #endif
3518
3519 int
3520 main ()
3521 {
3522
3523   ;
3524   return 0;
3525 }
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (ac_try="$ac_compile"
3529 case "(($ac_try" in
3530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531   *) ac_try_echo=$ac_try;;
3532 esac
3533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534   (eval "$ac_compile") 2>conftest.er1
3535   ac_status=$?
3536   grep -v '^ *+' conftest.er1 >conftest.err
3537   rm -f conftest.er1
3538   cat conftest.err >&5
3539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); } &&
3541          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3542   { (case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547   (eval "$ac_try") 2>&5
3548   ac_status=$?
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); }; } &&
3551          { ac_try='test -s conftest.$ac_objext'
3552   { (case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557   (eval "$ac_try") 2>&5
3558   ac_status=$?
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); }; }; then
3561
3562   { echo "$as_me:$LINENO: result: yes" >&5
3563 echo "${ECHO_T}yes" >&6; }
3564
3565 else
3566   echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3568
3569
3570   { echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6; }
3572   { { 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
3573 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;}
3574    { (exit 1); exit 1; }; }
3575
3576 fi
3577
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579   ac_ext=c
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584
3585 fi
3586
3587 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3588 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3589 ac_ext=cpp
3590 ac_cpp='$CXXCPP $CPPFLAGS'
3591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3594
3595 llvm_cv_cxx_compiler=unknown
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h.  */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h.  */
3602 #if ! __clang__
3603                                     #error
3604                                     #endif
3605
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3609 case "(($ac_try" in
3610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611   *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614   (eval "$ac_compile") 2>conftest.er1
3615   ac_status=$?
3616   grep -v '^ *+' conftest.er1 >conftest.err
3617   rm -f conftest.er1
3618   cat conftest.err >&5
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } &&
3621          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3622   { (case "(($ac_try" in
3623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624   *) ac_try_echo=$ac_try;;
3625 esac
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627   (eval "$ac_try") 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; } &&
3631          { ac_try='test -s conftest.$ac_objext'
3632   { (case "(($ac_try" in
3633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634   *) ac_try_echo=$ac_try;;
3635 esac
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637   (eval "$ac_try") 2>&5
3638   ac_status=$?
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); }; }; then
3641   llvm_cv_cxx_compiler=clang
3642 else
3643   echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646         cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h.  */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h.  */
3652 #if ! __GNUC__
3653                                                        #error
3654                                                        #endif
3655
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (ac_try="$ac_compile"
3659 case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664   (eval "$ac_compile") 2>conftest.er1
3665   ac_status=$?
3666   grep -v '^ *+' conftest.er1 >conftest.err
3667   rm -f conftest.er1
3668   cat conftest.err >&5
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } &&
3671          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3672   { (case "(($ac_try" in
3673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674   *) ac_try_echo=$ac_try;;
3675 esac
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677   (eval "$ac_try") 2>&5
3678   ac_status=$?
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); }; } &&
3681          { ac_try='test -s conftest.$ac_objext'
3682   { (case "(($ac_try" in
3683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684   *) ac_try_echo=$ac_try;;
3685 esac
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687   (eval "$ac_try") 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); }; }; then
3691   llvm_cv_cxx_compiler=gcc
3692 else
3693   echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3695
3696
3697 fi
3698
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 fi
3701
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 ac_ext=c
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708
3709 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3710 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3711
3712
3713
3714 if test -d ${srcdir}/projects/test-suite ; then
3715   subdirs="$subdirs projects/test-suite"
3716
3717 fi
3718
3719 if test -d ${srcdir}/projects/llvm-test ; then
3720   subdirs="$subdirs projects/llvm-test"
3721
3722 fi
3723
3724 if test -d ${srcdir}/projects/poolalloc ; then
3725   subdirs="$subdirs projects/poolalloc"
3726
3727 fi
3728
3729 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3730   subdirs="$subdirs projects/llvm-poolalloc"
3731
3732 fi
3733
3734 for i in `ls ${srcdir}/projects`
3735 do
3736   if test -d ${srcdir}/projects/${i} ; then
3737     case ${i} in
3738       safecode)     subdirs="$subdirs projects/safecode"
3739  ;;
3740       compiler-rt)       ;;
3741       test-suite)     ;;
3742       llvm-test)      ;;
3743       poolalloc)      ;;
3744       llvm-poolalloc) ;;
3745       *)
3746         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3747 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3748         ;;
3749     esac
3750   fi
3751 done
3752
3753 # Check whether --enable-polly was given.
3754 if test "${enable_polly+set}" = set; then
3755   enableval=$enable_polly;
3756 else
3757   enableval=default
3758 fi
3759
3760 case "$enableval" in
3761   yes) ENABLE_POLLY=1
3762  ;;
3763   no)  ENABLE_POLLY=0
3764  ;;
3765   default) ENABLE_POLLY=1
3766  ;;
3767   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3768 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3769    { (exit 1); exit 1; }; } ;;
3770 esac
3771
3772
3773 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3774   LLVM_HAS_POLLY=1
3775
3776   subdirs="$subdirs tools/polly"
3777
3778 fi
3779
3780
3781 # Make sure we can run config.sub.
3782 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3783   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3784 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3785    { (exit 1); exit 1; }; }
3786
3787 { echo "$as_me:$LINENO: checking build system type" >&5
3788 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3789 if test "${ac_cv_build+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   ac_build_alias=$build_alias
3793 test "x$ac_build_alias" = x &&
3794   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3795 test "x$ac_build_alias" = x &&
3796   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3797 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3798    { (exit 1); exit 1; }; }
3799 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3800   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3801 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3802    { (exit 1); exit 1; }; }
3803
3804 fi
3805 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3806 echo "${ECHO_T}$ac_cv_build" >&6; }
3807 case $ac_cv_build in
3808 *-*-*) ;;
3809 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3810 echo "$as_me: error: invalid value of canonical build" >&2;}
3811    { (exit 1); exit 1; }; };;
3812 esac
3813 build=$ac_cv_build
3814 ac_save_IFS=$IFS; IFS='-'
3815 set x $ac_cv_build
3816 shift
3817 build_cpu=$1
3818 build_vendor=$2
3819 shift; shift
3820 # Remember, the first character of IFS is used to create $*,
3821 # except with old shells:
3822 build_os=$*
3823 IFS=$ac_save_IFS
3824 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3825
3826
3827 { echo "$as_me:$LINENO: checking host system type" >&5
3828 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3829 if test "${ac_cv_host+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   if test "x$host_alias" = x; then
3833   ac_cv_host=$ac_cv_build
3834 else
3835   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3836     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3837 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3838    { (exit 1); exit 1; }; }
3839 fi
3840
3841 fi
3842 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3843 echo "${ECHO_T}$ac_cv_host" >&6; }
3844 case $ac_cv_host in
3845 *-*-*) ;;
3846 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3847 echo "$as_me: error: invalid value of canonical host" >&2;}
3848    { (exit 1); exit 1; }; };;
3849 esac
3850 host=$ac_cv_host
3851 ac_save_IFS=$IFS; IFS='-'
3852 set x $ac_cv_host
3853 shift
3854 host_cpu=$1
3855 host_vendor=$2
3856 shift; shift
3857 # Remember, the first character of IFS is used to create $*,
3858 # except with old shells:
3859 host_os=$*
3860 IFS=$ac_save_IFS
3861 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3862
3863
3864 { echo "$as_me:$LINENO: checking target system type" >&5
3865 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3866 if test "${ac_cv_target+set}" = set; then
3867   echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869   if test "x$target_alias" = x; then
3870   ac_cv_target=$ac_cv_host
3871 else
3872   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3873     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3874 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3875    { (exit 1); exit 1; }; }
3876 fi
3877
3878 fi
3879 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3880 echo "${ECHO_T}$ac_cv_target" >&6; }
3881 case $ac_cv_target in
3882 *-*-*) ;;
3883 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3884 echo "$as_me: error: invalid value of canonical target" >&2;}
3885    { (exit 1); exit 1; }; };;
3886 esac
3887 target=$ac_cv_target
3888 ac_save_IFS=$IFS; IFS='-'
3889 set x $ac_cv_target
3890 shift
3891 target_cpu=$1
3892 target_vendor=$2
3893 shift; shift
3894 # Remember, the first character of IFS is used to create $*,
3895 # except with old shells:
3896 target_os=$*
3897 IFS=$ac_save_IFS
3898 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3899
3900
3901 # The aliases save the names the user supplied, while $host etc.
3902 # will get canonicalized.
3903 test -n "$target_alias" &&
3904   test "$program_prefix$program_suffix$program_transform_name" = \
3905     NONENONEs,x,x, &&
3906   program_prefix=${target_alias}-
3907
3908 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3909 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3910 if test "${llvm_cv_os_type+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   case $host in
3914   *-*-aix*)
3915     llvm_cv_link_all_option="-Wl,--whole-archive"
3916     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3917     llvm_cv_os_type="AIX"
3918     llvm_cv_platform_type="Unix" ;;
3919   *-*-irix*)
3920     llvm_cv_link_all_option="-Wl,--whole-archive"
3921     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3922     llvm_cv_os_type="IRIX"
3923     llvm_cv_platform_type="Unix" ;;
3924   *-*-cygwin*)
3925     llvm_cv_link_all_option="-Wl,--whole-archive"
3926     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3927     llvm_cv_os_type="Cygwin"
3928     llvm_cv_platform_type="Unix" ;;
3929   *-*-darwin*)
3930     llvm_cv_link_all_option="-Wl,-all_load"
3931     llvm_cv_no_link_all_option="-Wl,-noall_load"
3932     llvm_cv_os_type="Darwin"
3933     llvm_cv_platform_type="Unix" ;;
3934   *-*-minix*)
3935     llvm_cv_link_all_option="-Wl,-all_load"
3936     llvm_cv_no_link_all_option="-Wl,-noall_load"
3937     llvm_cv_os_type="Minix"
3938     llvm_cv_platform_type="Unix" ;;
3939   *-*-freebsd*)
3940     llvm_cv_link_all_option="-Wl,--whole-archive"
3941     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3942     llvm_cv_os_type="FreeBSD"
3943     llvm_cv_platform_type="Unix" ;;
3944   *-*-kfreebsd-gnu)
3945     llvm_cv_link_all_option="-Wl,--whole-archive"
3946     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3947     llvm_cv_os_type="GNU/kFreeBSD"
3948     llvm_cv_platform_type="Unix" ;;
3949   *-*-openbsd*)
3950     llvm_cv_link_all_option="-Wl,--whole-archive"
3951     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952     llvm_cv_os_type="OpenBSD"
3953     llvm_cv_platform_type="Unix" ;;
3954   *-*-netbsd*)
3955     llvm_cv_link_all_option="-Wl,--whole-archive"
3956     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957     llvm_cv_os_type="NetBSD"
3958     llvm_cv_platform_type="Unix" ;;
3959   *-*-dragonfly*)
3960     llvm_cv_link_all_option="-Wl,--whole-archive"
3961     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962     llvm_cv_os_type="DragonFly"
3963     llvm_cv_platform_type="Unix" ;;
3964   *-*-hpux*)
3965     llvm_cv_link_all_option="-Wl,--whole-archive"
3966     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967     llvm_cv_os_type="HP-UX"
3968     llvm_cv_platform_type="Unix" ;;
3969   *-*-interix*)
3970     llvm_cv_link_all_option="-Wl,--whole-archive"
3971     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972     llvm_cv_os_type="Interix"
3973     llvm_cv_platform_type="Unix" ;;
3974   *-*-linux*)
3975     llvm_cv_link_all_option="-Wl,--whole-archive"
3976     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977     llvm_cv_os_type="Linux"
3978     llvm_cv_platform_type="Unix" ;;
3979   *-*-gnu*)
3980     llvm_cv_link_all_option="-Wl,--whole-archive"
3981     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982     llvm_cv_os_type="GNU"
3983     llvm_cv_platform_type="Unix" ;;
3984   *-*-solaris*)
3985     llvm_cv_link_all_option="-Wl,-z,allextract"
3986     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3987     llvm_cv_os_type="SunOS"
3988     llvm_cv_platform_type="Unix" ;;
3989   *-*-win32*)
3990     llvm_cv_link_all_option="-Wl,--whole-archive"
3991     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992     llvm_cv_os_type="Win32"
3993     llvm_cv_platform_type="Win32" ;;
3994   *-*-mingw*)
3995     llvm_cv_link_all_option="-Wl,--whole-archive"
3996     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997     llvm_cv_os_type="MingW"
3998     llvm_cv_platform_type="Win32" ;;
3999   *-*-haiku*)
4000     llvm_cv_link_all_option="-Wl,--whole-archive"
4001     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002     llvm_cv_os_type="Haiku"
4003     llvm_cv_platform_type="Unix" ;;
4004   *-unknown-eabi*)
4005     llvm_cv_link_all_option="-Wl,--whole-archive"
4006     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007     llvm_cv_os_type="Freestanding"
4008     llvm_cv_platform_type="Unix" ;;
4009   *-unknown-elf*)
4010     llvm_cv_link_all_option="-Wl,--whole-archive"
4011     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012     llvm_cv_os_type="Freestanding"
4013     llvm_cv_platform_type="Unix" ;;
4014   *)
4015     llvm_cv_link_all_option=""
4016     llvm_cv_no_link_all_option=""
4017     llvm_cv_os_type="Unknown"
4018     llvm_cv_platform_type="Unknown" ;;
4019 esac
4020 fi
4021 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4022 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4023
4024 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4025 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4026 if test "${llvm_cv_target_os_type+set}" = set; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   case $target in
4030   *-*-aix*)
4031     llvm_cv_target_os_type="AIX" ;;
4032   *-*-irix*)
4033     llvm_cv_target_os_type="IRIX" ;;
4034   *-*-cygwin*)
4035     llvm_cv_target_os_type="Cygwin" ;;
4036   *-*-darwin*)
4037     llvm_cv_target_os_type="Darwin" ;;
4038   *-*-minix*)
4039     llvm_cv_target_os_type="Minix" ;;
4040   *-*-freebsd*)
4041     llvm_cv_target_os_type="FreeBSD" ;;
4042   *-*-kfreebsd-gnu)
4043     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4044   *-*-openbsd*)
4045     llvm_cv_target_os_type="OpenBSD" ;;
4046   *-*-netbsd*)
4047     llvm_cv_target_os_type="NetBSD" ;;
4048   *-*-dragonfly*)
4049     llvm_cv_target_os_type="DragonFly" ;;
4050   *-*-hpux*)
4051     llvm_cv_target_os_type="HP-UX" ;;
4052   *-*-interix*)
4053     llvm_cv_target_os_type="Interix" ;;
4054   *-*-linux*)
4055     llvm_cv_target_os_type="Linux" ;;
4056   *-*-gnu*)
4057     llvm_cv_target_os_type="GNU" ;;
4058   *-*-solaris*)
4059     llvm_cv_target_os_type="SunOS" ;;
4060   *-*-win32*)
4061     llvm_cv_target_os_type="Win32" ;;
4062   *-*-mingw*)
4063     llvm_cv_target_os_type="MingW" ;;
4064   *-*-haiku*)
4065     llvm_cv_target_os_type="Haiku" ;;
4066   *-*-rtems*)
4067     llvm_cv_target_os_type="RTEMS" ;;
4068   *-*-nacl*)
4069     llvm_cv_target_os_type="NativeClient" ;;
4070   *-unknown-eabi*)
4071     llvm_cv_target_os_type="Freestanding" ;;
4072   *)
4073     llvm_cv_target_os_type="Unknown" ;;
4074 esac
4075 fi
4076 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4077 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4078
4079 if test "$llvm_cv_os_type" = "Unknown" ; then
4080   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4081 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4082    { (exit 1); exit 1; }; }
4083 fi
4084
4085 OS=$llvm_cv_os_type
4086
4087 HOST_OS=$llvm_cv_os_type
4088
4089 TARGET_OS=$llvm_cv_target_os_type
4090
4091
4092 LINKALL=$llvm_cv_link_all_option
4093
4094 NOLINKALL=$llvm_cv_no_link_all_option
4095
4096
4097 case $llvm_cv_platform_type in
4098   Unix)
4099
4100 cat >>confdefs.h <<\_ACEOF
4101 #define LLVM_ON_UNIX 1
4102 _ACEOF
4103
4104     LLVM_ON_UNIX=1
4105
4106     LLVM_ON_WIN32=0
4107
4108     ;;
4109   Win32)
4110
4111 cat >>confdefs.h <<\_ACEOF
4112 #define LLVM_ON_WIN32 1
4113 _ACEOF
4114
4115     LLVM_ON_UNIX=0
4116
4117     LLVM_ON_WIN32=1
4118
4119     ;;
4120 esac
4121
4122 { echo "$as_me:$LINENO: checking target architecture" >&5
4123 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4124 if test "${llvm_cv_target_arch+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   case $target in
4128   i?86-*)                 llvm_cv_target_arch="x86" ;;
4129   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4130   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4131   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4132   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4133   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4134   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4135   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4136   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4137   xcore-*)                llvm_cv_target_arch="XCore" ;;
4138   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4139   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4140   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4141   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4142   *)                      llvm_cv_target_arch="Unknown" ;;
4143 esac
4144 fi
4145 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4146 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4147
4148 if test "$llvm_cv_target_arch" = "Unknown" ; then
4149   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4150 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4151 fi
4152
4153 case "$llvm_cv_target_arch" in
4154     x86)     LLVM_NATIVE_ARCH="X86" ;;
4155     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4156     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4157 esac
4158
4159 ARCH=$llvm_cv_target_arch
4160
4161 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4162
4163
4164 case $host in
4165   i?86-*)                 host_arch="x86" ;;
4166   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4167   sparc*-*)               host_arch="Sparc" ;;
4168   powerpc*-*)             host_arch="PowerPC" ;;
4169   arm64*-*)               host_arch="AArch64" ;;
4170   arm*-*)                 host_arch="ARM" ;;
4171   aarch64*-*)             host_arch="AArch64" ;;
4172   mips-* | mips64-*)      host_arch="Mips" ;;
4173   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4174   xcore-*)                host_arch="XCore" ;;
4175   msp430-*)               host_arch="MSP430" ;;
4176   hexagon-*)              host_arch="Hexagon" ;;
4177   s390x-*)                host_arch="SystemZ" ;;
4178   *)                      host_arch="Unknown" ;;
4179 esac
4180
4181 if test "$host_arch" = "Unknown" ; then
4182   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4183 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4184 fi
4185
4186 HOST_ARCH=$host_arch
4187
4188
4189 if test "$cross_compiling" = yes; then
4190   LLVM_CROSS_COMPILING=1
4191
4192
4193 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4194 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4195 if test "${ac_cv_build_exeext+set}" = set; then
4196   echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4199   ac_cv_build_exeext=.exe
4200 else
4201   ac_build_prefix=${build_alias}-
4202
4203   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4204 set dummy ${ac_build_prefix}gcc; ac_word=$2
4205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4207 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4208   echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210   if test -n "$BUILD_CC"; then
4211   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218   for ac_exec_ext in '' $ac_executable_extensions; do
4219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4220     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222     break 2
4223   fi
4224 done
4225 done
4226 IFS=$as_save_IFS
4227
4228 fi
4229 fi
4230 BUILD_CC=$ac_cv_prog_BUILD_CC
4231 if test -n "$BUILD_CC"; then
4232   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4233 echo "${ECHO_T}$BUILD_CC" >&6; }
4234 else
4235   { echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6; }
4237 fi
4238
4239
4240   if test -z "$BUILD_CC"; then
4241      # Extract the first word of "gcc", so it can be a program name with args.
4242 set dummy gcc; ac_word=$2
4243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4245 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   if test -n "$BUILD_CC"; then
4249   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256   for ac_exec_ext in '' $ac_executable_extensions; do
4257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4258     ac_cv_prog_BUILD_CC="gcc"
4259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263 done
4264 IFS=$as_save_IFS
4265
4266 fi
4267 fi
4268 BUILD_CC=$ac_cv_prog_BUILD_CC
4269 if test -n "$BUILD_CC"; then
4270   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4271 echo "${ECHO_T}$BUILD_CC" >&6; }
4272 else
4273   { echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6; }
4275 fi
4276
4277
4278      if test -z "$BUILD_CC"; then
4279        # Extract the first word of "cc", so it can be a program name with args.
4280 set dummy cc; ac_word=$2
4281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4283 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4284   echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286   if test -n "$BUILD_CC"; then
4287   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4288 else
4289   ac_prog_rejected=no
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4292 do
4293   IFS=$as_save_IFS
4294   test -z "$as_dir" && as_dir=.
4295   for ac_exec_ext in '' $ac_executable_extensions; do
4296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4297     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4298        ac_prog_rejected=yes
4299        continue
4300      fi
4301     ac_cv_prog_BUILD_CC="cc"
4302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303     break 2
4304   fi
4305 done
4306 done
4307 IFS=$as_save_IFS
4308
4309 if test $ac_prog_rejected = yes; then
4310   # We found a bogon in the path, so make sure we never use it.
4311   set dummy $ac_cv_prog_BUILD_CC
4312   shift
4313   if test $# != 0; then
4314     # We chose a different compiler from the bogus one.
4315     # However, it has the same basename, so the bogon will be chosen
4316     # first if we set BUILD_CC to just the basename; use the full file name.
4317     shift
4318     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4319   fi
4320 fi
4321 fi
4322 fi
4323 BUILD_CC=$ac_cv_prog_BUILD_CC
4324 if test -n "$BUILD_CC"; then
4325   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4326 echo "${ECHO_T}$BUILD_CC" >&6; }
4327 else
4328   { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4330 fi
4331
4332
4333      fi
4334   fi
4335   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4336 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4337    { (exit 1); exit 1; }; }
4338   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4339   rm -f conftest*
4340   echo 'int main () { return 0; }' > conftest.$ac_ext
4341   ac_cv_build_exeext=
4342   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4343   (eval $ac_build_link) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; then
4347     for file in conftest.*; do
4348       case $file in
4349       *.c | *.o | *.obj | *.dSYM) ;;
4350       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4351       esac
4352     done
4353   else
4354     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4355 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4356    { (exit 1); exit 1; }; }
4357   fi
4358   rm -f conftest*
4359   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4360 fi
4361 fi
4362
4363 BUILD_EXEEXT=""
4364 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4365 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4366 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4367 ac_build_exeext=$BUILD_EXEEXT
4368
4369   ac_build_prefix=${build_alias}-
4370   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4371 set dummy ${ac_build_prefix}g++; ac_word=$2
4372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4374 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4375   echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377   if test -n "$BUILD_CXX"; then
4378   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385   for ac_exec_ext in '' $ac_executable_extensions; do
4386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4387     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389     break 2
4390   fi
4391 done
4392 done
4393 IFS=$as_save_IFS
4394
4395 fi
4396 fi
4397 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4398 if test -n "$BUILD_CXX"; then
4399   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4400 echo "${ECHO_T}$BUILD_CXX" >&6; }
4401 else
4402   { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }
4404 fi
4405
4406
4407   if test -z "$BUILD_CXX"; then
4408      # Extract the first word of "g++", so it can be a program name with args.
4409 set dummy g++; ac_word=$2
4410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4412 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   if test -n "$BUILD_CXX"; then
4416   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for ac_exec_ext in '' $ac_executable_extensions; do
4424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4425     ac_cv_prog_BUILD_CXX="g++"
4426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430 done
4431 IFS=$as_save_IFS
4432
4433 fi
4434 fi
4435 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4436 if test -n "$BUILD_CXX"; then
4437   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4438 echo "${ECHO_T}$BUILD_CXX" >&6; }
4439 else
4440   { echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6; }
4442 fi
4443
4444
4445      if test -z "$BUILD_CXX"; then
4446        # Extract the first word of "c++", so it can be a program name with args.
4447 set dummy c++; ac_word=$2
4448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4450 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4451   echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453   if test -n "$BUILD_CXX"; then
4454   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4455 else
4456   ac_prog_rejected=no
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460   IFS=$as_save_IFS
4461   test -z "$as_dir" && as_dir=.
4462   for ac_exec_ext in '' $ac_executable_extensions; do
4463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4464     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4465        ac_prog_rejected=yes
4466        continue
4467      fi
4468     ac_cv_prog_BUILD_CXX="c++"
4469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473 done
4474 IFS=$as_save_IFS
4475
4476 if test $ac_prog_rejected = yes; then
4477   # We found a bogon in the path, so make sure we never use it.
4478   set dummy $ac_cv_prog_BUILD_CXX
4479   shift
4480   if test $# != 0; then
4481     # We chose a different compiler from the bogus one.
4482     # However, it has the same basename, so the bogon will be chosen
4483     # first if we set BUILD_CXX to just the basename; use the full file name.
4484     shift
4485     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4486   fi
4487 fi
4488 fi
4489 fi
4490 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4491 if test -n "$BUILD_CXX"; then
4492   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4493 echo "${ECHO_T}$BUILD_CXX" >&6; }
4494 else
4495   { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4497 fi
4498
4499
4500      fi
4501   fi
4502 else
4503   LLVM_CROSS_COMPILING=0
4504
4505 fi
4506
4507 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4508   cvsbuild="yes"
4509   optimize="no"
4510   CVSBUILD=CVSBUILD=1
4511
4512 else
4513   cvsbuild="no"
4514   optimize="yes"
4515 fi
4516
4517
4518 # Check whether --enable-libcpp was given.
4519 if test "${enable_libcpp+set}" = set; then
4520   enableval=$enable_libcpp;
4521 else
4522   enableval=default
4523 fi
4524
4525 case "$enableval" in
4526   yes) ENABLE_LIBCPP=1
4527  ;;
4528   no)  ENABLE_LIBCPP=0
4529  ;;
4530   default) ENABLE_LIBCPP=0
4531 ;;
4532   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4533 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4534    { (exit 1); exit 1; }; } ;;
4535 esac
4536
4537 # Check whether --enable-compiler-version-checks was given.
4538 if test "${enable_compiler_version_checks+set}" = set; then
4539   enableval=$enable_compiler_version_checks;
4540 else
4541   enableval=default
4542 fi
4543
4544 case "$enableval" in
4545   no)
4546     ;;
4547   yes|default)
4548     ac_ext=cpp
4549 ac_cpp='$CXXCPP $CPPFLAGS'
4550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4553
4554     case "$llvm_cv_cxx_compiler" in
4555     clang)
4556       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4557 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4558       cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h.  */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h.  */
4564
4565 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4566 #error This version of Clang is too old to build LLVM
4567 #endif
4568
4569 _ACEOF
4570 rm -f conftest.$ac_objext
4571 if { (ac_try="$ac_compile"
4572 case "(($ac_try" in
4573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574   *) ac_try_echo=$ac_try;;
4575 esac
4576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4577   (eval "$ac_compile") 2>conftest.er1
4578   ac_status=$?
4579   grep -v '^ *+' conftest.er1 >conftest.err
4580   rm -f conftest.er1
4581   cat conftest.err >&5
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); } &&
4584          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4585   { (case "(($ac_try" in
4586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587   *) ac_try_echo=$ac_try;;
4588 esac
4589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4590   (eval "$ac_try") 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); }; } &&
4594          { ac_try='test -s conftest.$ac_objext'
4595   { (case "(($ac_try" in
4596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597   *) ac_try_echo=$ac_try;;
4598 esac
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600   (eval "$ac_try") 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; }; then
4604   { echo "$as_me:$LINENO: result: yes" >&5
4605 echo "${ECHO_T}yes" >&6; }
4606 else
4607   echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610         { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4612            { { echo "$as_me:$LINENO: error:
4613 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4614 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4615 bypass these sanity checks." >&5
4616 echo "$as_me: error:
4617 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4618 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4619 bypass these sanity checks." >&2;}
4620    { (exit 1); exit 1; }; }
4621 fi
4622
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624
4625                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4626         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4627 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4628         llvm_cv_old_cxxflags="$CXXFLAGS"
4629         CXXFLAGS="$CXXFLAGS -std=c++0x"
4630         cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4636
4637 #include <atomic>
4638 std::atomic<float> x(0.0f);
4639 int main() { return (float)x; }
4640
4641 _ACEOF
4642 rm -f conftest.$ac_objext conftest$ac_exeext
4643 if { (ac_try="$ac_link"
4644 case "(($ac_try" in
4645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646   *) ac_try_echo=$ac_try;;
4647 esac
4648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649   (eval "$ac_link") 2>conftest.er1
4650   ac_status=$?
4651   grep -v '^ *+' conftest.er1 >conftest.err
4652   rm -f conftest.er1
4653   cat conftest.err >&5
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); } &&
4656          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4657   { (case "(($ac_try" in
4658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659   *) ac_try_echo=$ac_try;;
4660 esac
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662   (eval "$ac_try") 2>&5
4663   ac_status=$?
4664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); }; } &&
4666          { ac_try='test -s conftest$ac_exeext'
4667   { (case "(($ac_try" in
4668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669   *) ac_try_echo=$ac_try;;
4670 esac
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672   (eval "$ac_try") 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; }; then
4676   { echo "$as_me:$LINENO: result: yes" >&5
4677 echo "${ECHO_T}yes" >&6; }
4678 else
4679   echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682         { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4684              { { echo "$as_me:$LINENO: error:
4685 We detected a missing feature in the standard C++ library that was known to be
4686 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4687 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4688 than 4.7. You will need to update your system and ensure Clang uses the newer
4689 standard library.
4690
4691 If this error is incorrect or you need to force things to work, you may pass
4692 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4693 echo "$as_me: error:
4694 We detected a missing feature in the standard C++ library that was known to be
4695 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4696 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4697 than 4.7. You will need to update your system and ensure Clang uses the newer
4698 standard library.
4699
4700 If this error is incorrect or you need to force things to work, you may pass
4701 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4702    { (exit 1); exit 1; }; }
4703 fi
4704
4705 rm -f core conftest.err conftest.$ac_objext \
4706       conftest$ac_exeext conftest.$ac_ext
4707         CXXFLAGS="$llvm_cv_old_cxxflags"
4708       fi
4709       ;;
4710     gcc)
4711       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4712 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4713       cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h.  */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h.  */
4719
4720 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4721 #error This version of GCC is too old to build LLVM
4722 #endif
4723
4724 _ACEOF
4725 rm -f conftest.$ac_objext
4726 if { (ac_try="$ac_compile"
4727 case "(($ac_try" in
4728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729   *) ac_try_echo=$ac_try;;
4730 esac
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732   (eval "$ac_compile") 2>conftest.er1
4733   ac_status=$?
4734   grep -v '^ *+' conftest.er1 >conftest.err
4735   rm -f conftest.er1
4736   cat conftest.err >&5
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); } &&
4739          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4740   { (case "(($ac_try" in
4741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742   *) ac_try_echo=$ac_try;;
4743 esac
4744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745   (eval "$ac_try") 2>&5
4746   ac_status=$?
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); }; } &&
4749          { ac_try='test -s conftest.$ac_objext'
4750   { (case "(($ac_try" in
4751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752   *) ac_try_echo=$ac_try;;
4753 esac
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755   (eval "$ac_try") 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; }; then
4759   { echo "$as_me:$LINENO: result: yes" >&5
4760 echo "${ECHO_T}yes" >&6; }
4761 else
4762   echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765         { echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6; }
4767            { { echo "$as_me:$LINENO: error:
4768 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4769 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4770 bypass these sanity checks." >&5
4771 echo "$as_me: error:
4772 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4773 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4774 bypass these sanity checks." >&2;}
4775    { (exit 1); exit 1; }; }
4776 fi
4777
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779       ;;
4780     unknown)
4781       ;;
4782     esac
4783     ac_ext=c
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788
4789     ;;
4790   *)
4791     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4792 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4793    { (exit 1); exit 1; }; }
4794     ;;
4795 esac
4796
4797 # Check whether --enable-cxx1y was given.
4798 if test "${enable_cxx1y+set}" = set; then
4799   enableval=$enable_cxx1y;
4800 else
4801   enableval=default
4802 fi
4803
4804 case "$enableval" in
4805   yes) ENABLE_CXX1Y=1
4806  ;;
4807   no)  ENABLE_CXX1Y=0
4808  ;;
4809   default) ENABLE_CXX1Y=0
4810 ;;
4811   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4812 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4813    { (exit 1); exit 1; }; } ;;
4814 esac
4815
4816 # Check whether --enable-split-dwarf was given.
4817 if test "${enable_split_dwarf+set}" = set; then
4818   enableval=$enable_split_dwarf;
4819 else
4820   enableval=default
4821 fi
4822
4823 case "$enableval" in
4824   yes) ENABLE_SPLIT_DWARF=1
4825  ;;
4826   no)  ENABLE_SPLIT_DWARF=0
4827  ;;
4828   default) ENABLE_SPLIT_DWARF=0
4829 ;;
4830   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4831 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4832    { (exit 1); exit 1; }; } ;;
4833 esac
4834
4835 clang_arcmt="yes"
4836 # Check whether --enable-clang-arcmt was given.
4837 if test "${enable_clang_arcmt+set}" = set; then
4838   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4839 else
4840   enableval="yes"
4841 fi
4842
4843 case "$enableval" in
4844   yes) ENABLE_CLANG_ARCMT=1
4845  ;;
4846   no)  ENABLE_CLANG_ARCMT=0
4847  ;;
4848   default) ENABLE_CLANG_ARCMT=1
4849 ;;
4850   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4852    { (exit 1); exit 1; }; } ;;
4853 esac
4854
4855 clang_plugin_support="yes"
4856 # Check whether --enable-clang-plugin-support was given.
4857 if test "${enable_clang_plugin_support+set}" = set; then
4858   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4859 else
4860   enableval="yes"
4861 fi
4862
4863 case "$enableval" in
4864   yes) CLANG_PLUGIN_SUPPORT=1
4865  ;;
4866   no)  CLANG_PLUGIN_SUPPORT=0
4867  ;;
4868   default) CLANG_PLUGIN_SUPPORT=1
4869 ;;
4870   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4872    { (exit 1); exit 1; }; } ;;
4873 esac
4874
4875 clang_static_analyzer="yes"
4876 # Check whether --enable-clang-static-analyzer was given.
4877 if test "${enable_clang_static_analyzer+set}" = set; then
4878   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4879 else
4880   enableval="yes"
4881 fi
4882
4883 case "$enableval" in
4884   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4885  ;;
4886   no)
4887     if test ${clang_arcmt} != "no" ; then
4888       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4889 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4890    { (exit 1); exit 1; }; }
4891     fi
4892     ENABLE_CLANG_STATIC_ANALYZER=0
4893
4894     ;;
4895   default) ENABLE_CLANG_STATIC_ANALYZER=1
4896 ;;
4897   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4899    { (exit 1); exit 1; }; } ;;
4900 esac
4901
4902 # Check whether --enable-optimized was given.
4903 if test "${enable_optimized+set}" = set; then
4904   enableval=$enable_optimized;
4905 else
4906   enableval=$optimize
4907 fi
4908
4909 if test ${enableval} = "no" ; then
4910   ENABLE_OPTIMIZED=
4911
4912 else
4913   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4914
4915 fi
4916
4917 # Check whether --enable-profiling was given.
4918 if test "${enable_profiling+set}" = set; then
4919   enableval=$enable_profiling;
4920 else
4921   enableval="no"
4922 fi
4923
4924 if test ${enableval} = "no" ; then
4925   ENABLE_PROFILING=
4926
4927 else
4928   ENABLE_PROFILING=ENABLE_PROFILING=1
4929
4930 fi
4931
4932 # Check whether --enable-assertions was given.
4933 if test "${enable_assertions+set}" = set; then
4934   enableval=$enable_assertions;
4935 else
4936   enableval="yes"
4937 fi
4938
4939 if test ${enableval} = "yes" ; then
4940   DISABLE_ASSERTIONS=
4941
4942 else
4943   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4944
4945 fi
4946
4947 # Check whether --enable-werror was given.
4948 if test "${enable_werror+set}" = set; then
4949   enableval=$enable_werror;
4950 else
4951   enableval="no"
4952 fi
4953
4954 case "$enableval" in
4955   yes) ENABLE_WERROR=1
4956  ;;
4957   no)  ENABLE_WERROR=0
4958  ;;
4959   default) ENABLE_WERROR=0
4960 ;;
4961   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4962 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4963    { (exit 1); exit 1; }; } ;;
4964 esac
4965
4966 # Check whether --enable-expensive-checks was given.
4967 if test "${enable_expensive_checks+set}" = set; then
4968   enableval=$enable_expensive_checks;
4969 else
4970   enableval="no"
4971 fi
4972
4973 if test ${enableval} = "yes" ; then
4974   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4975
4976   EXPENSIVE_CHECKS=yes
4977
4978 else
4979   ENABLE_EXPENSIVE_CHECKS=
4980
4981   EXPENSIVE_CHECKS=no
4982
4983 fi
4984
4985 # Check whether --enable-debug-runtime was given.
4986 if test "${enable_debug_runtime+set}" = set; then
4987   enableval=$enable_debug_runtime;
4988 else
4989   enableval=no
4990 fi
4991
4992 if test ${enableval} = "no" ; then
4993   DEBUG_RUNTIME=
4994
4995 else
4996   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4997
4998 fi
4999
5000 # Check whether --enable-debug-symbols was given.
5001 if test "${enable_debug_symbols+set}" = set; then
5002   enableval=$enable_debug_symbols;
5003 else
5004   enableval=no
5005 fi
5006
5007 if test ${enableval} = "no" ; then
5008   DEBUG_SYMBOLS=
5009
5010 else
5011   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5012
5013 fi
5014
5015 # Check whether --enable-keep-symbols was given.
5016 if test "${enable_keep_symbols+set}" = set; then
5017   enableval=$enable_keep_symbols;
5018 else
5019   enableval=no
5020 fi
5021
5022 if test ${enableval} = "no" ; then
5023   KEEP_SYMBOLS=
5024
5025 else
5026   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5027
5028 fi
5029
5030 # Check whether --enable-jit was given.
5031 if test "${enable_jit+set}" = set; then
5032   enableval=$enable_jit;
5033 else
5034   enableval=default
5035 fi
5036
5037 if test ${enableval} = "no"
5038 then
5039   JIT=
5040
5041 else
5042   case "$llvm_cv_target_arch" in
5043     x86)         TARGET_HAS_JIT=1
5044  ;;
5045     Sparc)       TARGET_HAS_JIT=0
5046  ;;
5047     PowerPC)     TARGET_HAS_JIT=1
5048  ;;
5049     x86_64)      TARGET_HAS_JIT=1
5050  ;;
5051     ARM)         TARGET_HAS_JIT=1
5052  ;;
5053     Mips)        TARGET_HAS_JIT=1
5054  ;;
5055     XCore)       TARGET_HAS_JIT=0
5056  ;;
5057     MSP430)      TARGET_HAS_JIT=0
5058  ;;
5059     Hexagon)     TARGET_HAS_JIT=0
5060  ;;
5061     NVPTX)       TARGET_HAS_JIT=0
5062  ;;
5063     SystemZ)     TARGET_HAS_JIT=1
5064  ;;
5065     *)           TARGET_HAS_JIT=0
5066  ;;
5067   esac
5068 fi
5069
5070 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5071 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5072
5073
5074 # Check whether --enable-docs was given.
5075 if test "${enable_docs+set}" = set; then
5076   enableval=$enable_docs;
5077 else
5078   enableval=default
5079 fi
5080
5081 case "$enableval" in
5082   yes) ENABLE_DOCS=1
5083  ;;
5084   no)  ENABLE_DOCS=0
5085  ;;
5086   default) ENABLE_DOCS=1
5087  ;;
5088   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5089 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5090    { (exit 1); exit 1; }; } ;;
5091 esac
5092
5093 # Check whether --enable-doxygen was given.
5094 if test "${enable_doxygen+set}" = set; then
5095   enableval=$enable_doxygen;
5096 else
5097   enableval=default
5098 fi
5099
5100 case "$enableval" in
5101   yes) ENABLE_DOXYGEN=1
5102  ;;
5103   no)  ENABLE_DOXYGEN=0
5104  ;;
5105   default) ENABLE_DOXYGEN=0
5106  ;;
5107   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5108 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5109    { (exit 1); exit 1; }; } ;;
5110 esac
5111
5112 # Check whether --enable-threads was given.
5113 if test "${enable_threads+set}" = set; then
5114   enableval=$enable_threads;
5115 else
5116   enableval=default
5117 fi
5118
5119 case "$enableval" in
5120   yes) LLVM_ENABLE_THREADS=1
5121  ;;
5122   no)  LLVM_ENABLE_THREADS=0
5123  ;;
5124   default) LLVM_ENABLE_THREADS=1
5125  ;;
5126   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5127 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5128    { (exit 1); exit 1; }; } ;;
5129 esac
5130
5131 cat >>confdefs.h <<_ACEOF
5132 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5133 _ACEOF
5134
5135
5136 # Check whether --enable-pthreads was given.
5137 if test "${enable_pthreads+set}" = set; then
5138   enableval=$enable_pthreads;
5139 else
5140   enableval=default
5141 fi
5142
5143 case "$enableval" in
5144   yes) ENABLE_PTHREADS=1
5145  ;;
5146   no)  ENABLE_PTHREADS=0
5147  ;;
5148   default) ENABLE_PTHREADS=1
5149  ;;
5150   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5151 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5152    { (exit 1); exit 1; }; } ;;
5153 esac
5154
5155 # Check whether --enable-zlib was given.
5156 if test "${enable_zlib+set}" = set; then
5157   enableval=$enable_zlib;
5158 else
5159   enableval=default
5160 fi
5161
5162 case "$enableval" in
5163   yes) LLVM_ENABLE_ZLIB=1
5164  ;;
5165   no)  LLVM_ENABLE_ZLIB=0
5166  ;;
5167   default) LLVM_ENABLE_ZLIB=1
5168  ;;
5169   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5170 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5171    { (exit 1); exit 1; }; } ;;
5172 esac
5173
5174 cat >>confdefs.h <<_ACEOF
5175 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5176 _ACEOF
5177
5178
5179 # Check whether --enable-pic was given.
5180 if test "${enable_pic+set}" = set; then
5181   enableval=$enable_pic;
5182 else
5183   enableval=default
5184 fi
5185
5186 case "$enableval" in
5187   yes) ENABLE_PIC=1
5188  ;;
5189   no)  ENABLE_PIC=0
5190  ;;
5191   default) ENABLE_PIC=1
5192  ;;
5193   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5194 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5195    { (exit 1); exit 1; }; } ;;
5196 esac
5197
5198 cat >>confdefs.h <<_ACEOF
5199 #define ENABLE_PIC $ENABLE_PIC
5200 _ACEOF
5201
5202
5203 # Check whether --enable-shared was given.
5204 if test "${enable_shared+set}" = set; then
5205   enableval=$enable_shared;
5206 else
5207   enableval=default
5208 fi
5209
5210 case "$enableval" in
5211   yes) ENABLE_SHARED=1
5212  ;;
5213   no)  ENABLE_SHARED=0
5214  ;;
5215   default) ENABLE_SHARED=0
5216  ;;
5217   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5218 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5219    { (exit 1); exit 1; }; } ;;
5220 esac
5221
5222 # Check whether --enable-embed-stdcxx was given.
5223 if test "${enable_embed_stdcxx+set}" = set; then
5224   enableval=$enable_embed_stdcxx;
5225 else
5226   enableval=default
5227 fi
5228
5229 case "$enableval" in
5230   yes) ENABLE_EMBED_STDCXX=1
5231  ;;
5232   no)  ENABLE_EMBED_STDCXX=0
5233  ;;
5234   default) ENABLE_EMBED_STDCXX=0
5235  ;;
5236   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5237 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5238    { (exit 1); exit 1; }; } ;;
5239 esac
5240
5241 # Check whether --enable-timestamps was given.
5242 if test "${enable_timestamps+set}" = set; then
5243   enableval=$enable_timestamps;
5244 else
5245   enableval=default
5246 fi
5247
5248 case "$enableval" in
5249   yes) ENABLE_TIMESTAMPS=1
5250  ;;
5251   no)  ENABLE_TIMESTAMPS=0
5252  ;;
5253   default) ENABLE_TIMESTAMPS=1
5254  ;;
5255   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5256 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5257    { (exit 1); exit 1; }; } ;;
5258 esac
5259
5260 cat >>confdefs.h <<_ACEOF
5261 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5262 _ACEOF
5263
5264
5265 # Check whether --enable-backtraces was given.
5266 if test "${enable_backtraces+set}" = set; then
5267   enableval=$enable_backtraces; case "$enableval" in
5268     yes) llvm_cv_enable_backtraces="yes" ;;
5269     no)  llvm_cv_enable_backtraces="no"  ;;
5270     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5271 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5272    { (exit 1); exit 1; }; } ;;
5273   esac
5274 else
5275   llvm_cv_enable_backtraces="yes"
5276 fi
5277
5278 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5279
5280 cat >>confdefs.h <<\_ACEOF
5281 #define ENABLE_BACKTRACES 1
5282 _ACEOF
5283
5284 fi
5285
5286 # Check whether --enable-crash-overrides was given.
5287 if test "${enable_crash_overrides+set}" = set; then
5288   enableval=$enable_crash_overrides; case "$enableval" in
5289     yes) llvm_cv_enable_crash_overrides="yes" ;;
5290     no)  llvm_cv_enable_crash_overrides="no"  ;;
5291     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5292 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5293    { (exit 1); exit 1; }; } ;;
5294   esac
5295 else
5296   llvm_cv_enable_crash_overrides="yes"
5297 fi
5298
5299 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5300
5301 cat >>confdefs.h <<\_ACEOF
5302 #define ENABLE_CRASH_OVERRIDES 1
5303 _ACEOF
5304
5305 fi
5306
5307 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5308 ALL_TARGETS=$ALL_TARGETS
5309
5310
5311 TARGETS_TO_BUILD=""
5312 # Check whether --enable-targets was given.
5313 if test "${enable_targets+set}" = set; then
5314   enableval=$enable_targets;
5315 else
5316   enableval=all
5317 fi
5318
5319 if test "$enableval" = host-only ; then
5320   enableval=host
5321 fi
5322 case "$enableval" in
5323   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5324   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5325       case "$a_target" in
5326         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5329         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5330         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5331         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5332         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5333         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5334         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5338         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5339         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5340         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5341         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5342         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5343         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5344         host) case "$llvm_cv_target_arch" in
5345             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5346             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5347             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5348             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5349             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5350             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5351             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5352             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5353             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5354             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5355             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5356             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5357             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5358 echo "$as_me: error: Can not set target to build" >&2;}
5359    { (exit 1); exit 1; }; } ;;
5360           esac ;;
5361         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5362 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5363    { (exit 1); exit 1; }; } ;;
5364       esac
5365   done
5366   ;;
5367 esac
5368
5369 # Check whether --enable-experimental-targets was given.
5370 if test "${enable_experimental_targets+set}" = set; then
5371   enableval=$enable_experimental_targets;
5372 else
5373   enableval=disable
5374 fi
5375
5376
5377 if test ${enableval} != "disable"
5378 then
5379   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5380 fi
5381
5382 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5383
5384
5385 for a_target in $TARGETS_TO_BUILD; do
5386   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5387
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5390 _ACEOF
5391
5392     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5393     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5394     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5395     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5396     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5397       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5398     fi
5399     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5400       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5401     fi
5402
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5405 _ACEOF
5406
5407
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5410 _ACEOF
5411
5412
5413 cat >>confdefs.h <<_ACEOF
5414 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5415 _ACEOF
5416
5417
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5420 _ACEOF
5421
5422     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5423
5424 cat >>confdefs.h <<_ACEOF
5425 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5426 _ACEOF
5427
5428     fi
5429     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5430
5431 cat >>confdefs.h <<_ACEOF
5432 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5433 _ACEOF
5434
5435     fi
5436   fi
5437 done
5438
5439 LLVM_ENUM_TARGETS=""
5440 LLVM_ENUM_ASM_PRINTERS=""
5441 LLVM_ENUM_ASM_PARSERS=""
5442 LLVM_ENUM_DISASSEMBLERS=""
5443 for target_to_build in $TARGETS_TO_BUILD; do
5444   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5445   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5446     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5447   fi
5448   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5449     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5450   fi
5451   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5452     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5453   fi
5454 done
5455
5456
5457
5458
5459
5460
5461 # Check whether --with-optimize-option was given.
5462 if test "${with_optimize_option+set}" = set; then
5463   withval=$with_optimize_option;
5464 else
5465   withval=default
5466 fi
5467
5468 { echo "$as_me:$LINENO: checking optimization flags" >&5
5469 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5470 case "$withval" in
5471   default)
5472     case "$llvm_cv_os_type" in
5473     FreeBSD) optimize_option=-O2 ;;
5474     MingW) optimize_option=-O2 ;;
5475     *)     optimize_option=-O3 ;;
5476     esac ;;
5477   *) optimize_option="$withval" ;;
5478 esac
5479 OPTIMIZE_OPTION=$optimize_option
5480
5481 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5482 echo "${ECHO_T}$optimize_option" >&6; }
5483
5484
5485 # Check whether --with-extra-options was given.
5486 if test "${with_extra_options+set}" = set; then
5487   withval=$with_extra_options;
5488 else
5489   withval=default
5490 fi
5491
5492 case "$withval" in
5493   default) EXTRA_OPTIONS= ;;
5494   *) EXTRA_OPTIONS=$withval ;;
5495 esac
5496 EXTRA_OPTIONS=$EXTRA_OPTIONS
5497
5498
5499
5500 # Check whether --with-extra-ld-options was given.
5501 if test "${with_extra_ld_options+set}" = set; then
5502   withval=$with_extra_ld_options;
5503 else
5504   withval=default
5505 fi
5506
5507 case "$withval" in
5508   default) EXTRA_LD_OPTIONS= ;;
5509   *) EXTRA_LD_OPTIONS=$withval ;;
5510 esac
5511 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5512
5513
5514 # Check whether --enable-bindings was given.
5515 if test "${enable_bindings+set}" = set; then
5516   enableval=$enable_bindings;
5517 else
5518   enableval=default
5519 fi
5520
5521 BINDINGS_TO_BUILD=""
5522 case "$enableval" in
5523   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5524   all ) BINDINGS_TO_BUILD="ocaml" ;;
5525   none | no) BINDINGS_TO_BUILD="" ;;
5526   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5527       case "$a_binding" in
5528         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5529         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5530 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5531    { (exit 1); exit 1; }; } ;;
5532       esac
5533   done
5534   ;;
5535 esac
5536
5537
5538 # Check whether --with-ocaml-libdir was given.
5539 if test "${with_ocaml_libdir+set}" = set; then
5540   withval=$with_ocaml_libdir;
5541 else
5542   withval=auto
5543 fi
5544
5545 case "$withval" in
5546   auto) with_ocaml_libdir="$withval" ;;
5547   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5548   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5549 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5550    { (exit 1); exit 1; }; } ;;
5551 esac
5552
5553
5554 # Check whether --with-clang-srcdir was given.
5555 if test "${with_clang_srcdir+set}" = set; then
5556   withval=$with_clang_srcdir;
5557 else
5558   withval="-"
5559 fi
5560
5561 case "$withval" in
5562   -) clang_src_root="" ;;
5563   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5564   *) clang_src_root="$ac_pwd/$withval" ;;
5565 esac
5566 CLANG_SRC_ROOT=$clang_src_root
5567
5568
5569
5570 # Check whether --with-clang-resource-dir was given.
5571 if test "${with_clang_resource_dir+set}" = set; then
5572   withval=$with_clang_resource_dir;
5573 else
5574   withval=""
5575 fi
5576
5577
5578 cat >>confdefs.h <<_ACEOF
5579 #define CLANG_RESOURCE_DIR "$withval"
5580 _ACEOF
5581
5582
5583
5584 # Check whether --with-c-include-dirs was given.
5585 if test "${with_c_include_dirs+set}" = set; then
5586   withval=$with_c_include_dirs;
5587 else
5588   withval=""
5589 fi
5590
5591
5592 cat >>confdefs.h <<_ACEOF
5593 #define C_INCLUDE_DIRS "$withval"
5594 _ACEOF
5595
5596
5597 # Clang normally uses the system c++ headers and libraries. With this option,
5598 # clang will use the ones provided by a gcc installation instead. This option should
5599 # be passed the same value that was used with --prefix when configuring gcc.
5600
5601 # Check whether --with-gcc-toolchain was given.
5602 if test "${with_gcc_toolchain+set}" = set; then
5603   withval=$with_gcc_toolchain;
5604 else
5605   withval=""
5606 fi
5607
5608
5609 cat >>confdefs.h <<_ACEOF
5610 #define GCC_INSTALL_PREFIX "$withval"
5611 _ACEOF
5612
5613
5614
5615 # Check whether --with-default-sysroot was given.
5616 if test "${with_default_sysroot+set}" = set; then
5617   withval=$with_default_sysroot;
5618 else
5619   withval=""
5620 fi
5621
5622
5623 cat >>confdefs.h <<_ACEOF
5624 #define DEFAULT_SYSROOT "$withval"
5625 _ACEOF
5626
5627
5628
5629 # Check whether --with-binutils-include was given.
5630 if test "${with_binutils_include+set}" = set; then
5631   withval=$with_binutils_include;
5632 else
5633   withval=default
5634 fi
5635
5636 case "$withval" in
5637   default) WITH_BINUTILS_INCDIR=default ;;
5638   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5639   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5640 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5641    { (exit 1); exit 1; }; } ;;
5642 esac
5643 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5644   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5645
5646   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5647      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5648      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5649 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5650    { (exit 1); exit 1; }; };
5651   fi
5652 fi
5653
5654
5655 # Check whether --with-bug-report-url was given.
5656 if test "${with_bug_report_url+set}" = set; then
5657   withval=$with_bug_report_url;
5658 else
5659   withval="http://llvm.org/bugs/"
5660 fi
5661
5662
5663 cat >>confdefs.h <<_ACEOF
5664 #define BUG_REPORT_URL "$withval"
5665 _ACEOF
5666
5667
5668 # Check whether --enable-terminfo was given.
5669 if test "${enable_terminfo+set}" = set; then
5670   enableval=$enable_terminfo; case "$enableval" in
5671     yes) llvm_cv_enable_terminfo="yes" ;;
5672     no)  llvm_cv_enable_terminfo="no"  ;;
5673     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5674 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5675    { (exit 1); exit 1; }; } ;;
5676   esac
5677 else
5678   llvm_cv_enable_terminfo="yes"
5679 fi
5680
5681 case "$llvm_cv_enable_terminfo" in
5682   yes) ENABLE_TERMINFO=1
5683  ;;
5684   no)  ENABLE_TERMINFO=0
5685  ;;
5686 esac
5687
5688 # Check whether --enable-libedit was given.
5689 if test "${enable_libedit+set}" = set; then
5690   enableval=$enable_libedit; case "$enableval" in
5691     yes) llvm_cv_enable_libedit="yes" ;;
5692     no)  llvm_cv_enable_libedit="no"  ;;
5693     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5694 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5695    { (exit 1); exit 1; }; } ;;
5696   esac
5697 else
5698   llvm_cv_enable_libedit="yes"
5699 fi
5700
5701
5702 # Check whether --enable-libffi was given.
5703 if test "${enable_libffi+set}" = set; then
5704   enableval=$enable_libffi; case "$enableval" in
5705     yes) llvm_cv_enable_libffi="yes" ;;
5706     no)  llvm_cv_enable_libffi="no"  ;;
5707     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5708 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5709    { (exit 1); exit 1; }; } ;;
5710   esac
5711 else
5712   llvm_cv_enable_libffi=no
5713 fi
5714
5715
5716
5717 # Check whether --with-internal-prefix was given.
5718 if test "${with_internal_prefix+set}" = set; then
5719   withval=$with_internal_prefix;
5720 else
5721   withval=""
5722 fi
5723
5724 INTERNAL_PREFIX=$withval
5725
5726
5727
5728 { echo "$as_me:$LINENO: checking for GNU make" >&5
5729 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5730 if test "${llvm_cv_gnu_make_command+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   llvm_cv_gnu_make_command=''
5734  for a in "$MAKE" make gmake gnumake ; do
5735   if test -z "$a" ; then continue ; fi ;
5736   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5737   then
5738    llvm_cv_gnu_make_command=$a ;
5739    break;
5740   fi
5741  done
5742 fi
5743 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5744 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5745  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5746    ifGNUmake='' ;
5747  else
5748    ifGNUmake='#' ;
5749    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5750 echo "${ECHO_T}\"Not found\"" >&6; };
5751  fi
5752
5753
5754 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5755 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5756 LN_S=$as_ln_s
5757 if test "$LN_S" = "ln -s"; then
5758   { echo "$as_me:$LINENO: result: yes" >&5
5759 echo "${ECHO_T}yes" >&6; }
5760 else
5761   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5762 echo "${ECHO_T}no, using $LN_S" >&6; }
5763 fi
5764
5765 # Extract the first word of "nm", so it can be a program name with args.
5766 set dummy nm; ac_word=$2
5767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5769 if test "${ac_cv_path_NM+set}" = set; then
5770   echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772   case $NM in
5773   [\\/]* | ?:[\\/]*)
5774   ac_cv_path_NM="$NM" # Let the user override the test with a path.
5775   ;;
5776   *)
5777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782   for ac_exec_ext in '' $ac_executable_extensions; do
5783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5784     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786     break 2
5787   fi
5788 done
5789 done
5790 IFS=$as_save_IFS
5791
5792   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5793   ;;
5794 esac
5795 fi
5796 NM=$ac_cv_path_NM
5797 if test -n "$NM"; then
5798   { echo "$as_me:$LINENO: result: $NM" >&5
5799 echo "${ECHO_T}$NM" >&6; }
5800 else
5801   { echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6; }
5803 fi
5804
5805
5806 # Extract the first word of "cmp", so it can be a program name with args.
5807 set dummy cmp; ac_word=$2
5808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5810 if test "${ac_cv_path_CMP+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   case $CMP in
5814   [\\/]* | ?:[\\/]*)
5815   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5816   ;;
5817   *)
5818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823   for ac_exec_ext in '' $ac_executable_extensions; do
5824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5825     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830 done
5831 IFS=$as_save_IFS
5832
5833   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5834   ;;
5835 esac
5836 fi
5837 CMP=$ac_cv_path_CMP
5838 if test -n "$CMP"; then
5839   { echo "$as_me:$LINENO: result: $CMP" >&5
5840 echo "${ECHO_T}$CMP" >&6; }
5841 else
5842   { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5844 fi
5845
5846
5847 # Extract the first word of "cp", so it can be a program name with args.
5848 set dummy cp; ac_word=$2
5849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5851 if test "${ac_cv_path_CP+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   case $CP in
5855   [\\/]* | ?:[\\/]*)
5856   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5857   ;;
5858   *)
5859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864   for ac_exec_ext in '' $ac_executable_extensions; do
5865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5866     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871 done
5872 IFS=$as_save_IFS
5873
5874   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5875   ;;
5876 esac
5877 fi
5878 CP=$ac_cv_path_CP
5879 if test -n "$CP"; then
5880   { echo "$as_me:$LINENO: result: $CP" >&5
5881 echo "${ECHO_T}$CP" >&6; }
5882 else
5883   { echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6; }
5885 fi
5886
5887
5888 # Extract the first word of "date", so it can be a program name with args.
5889 set dummy date; ac_word=$2
5890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5892 if test "${ac_cv_path_DATE+set}" = set; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   case $DATE in
5896   [\\/]* | ?:[\\/]*)
5897   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5898   ;;
5899   *)
5900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905   for ac_exec_ext in '' $ac_executable_extensions; do
5906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5907     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909     break 2
5910   fi
5911 done
5912 done
5913 IFS=$as_save_IFS
5914
5915   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5916   ;;
5917 esac
5918 fi
5919 DATE=$ac_cv_path_DATE
5920 if test -n "$DATE"; then
5921   { echo "$as_me:$LINENO: result: $DATE" >&5
5922 echo "${ECHO_T}$DATE" >&6; }
5923 else
5924   { echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6; }
5926 fi
5927
5928
5929 # Extract the first word of "find", so it can be a program name with args.
5930 set dummy find; ac_word=$2
5931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5933 if test "${ac_cv_path_FIND+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   case $FIND in
5937   [\\/]* | ?:[\\/]*)
5938   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5939   ;;
5940   *)
5941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946   for ac_exec_ext in '' $ac_executable_extensions; do
5947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5948     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953 done
5954 IFS=$as_save_IFS
5955
5956   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5957   ;;
5958 esac
5959 fi
5960 FIND=$ac_cv_path_FIND
5961 if test -n "$FIND"; then
5962   { echo "$as_me:$LINENO: result: $FIND" >&5
5963 echo "${ECHO_T}$FIND" >&6; }
5964 else
5965   { echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6; }
5967 fi
5968
5969
5970 # Extract the first word of "grep", so it can be a program name with args.
5971 set dummy grep; ac_word=$2
5972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5974 if test "${ac_cv_path_GREP+set}" = set; then
5975   echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977   case $GREP in
5978   [\\/]* | ?:[\\/]*)
5979   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5980   ;;
5981   *)
5982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH
5984 do
5985   IFS=$as_save_IFS
5986   test -z "$as_dir" && as_dir=.
5987   for ac_exec_ext in '' $ac_executable_extensions; do
5988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5989     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991     break 2
5992   fi
5993 done
5994 done
5995 IFS=$as_save_IFS
5996
5997   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5998   ;;
5999 esac
6000 fi
6001 GREP=$ac_cv_path_GREP
6002 if test -n "$GREP"; then
6003   { echo "$as_me:$LINENO: result: $GREP" >&5
6004 echo "${ECHO_T}$GREP" >&6; }
6005 else
6006   { echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6; }
6008 fi
6009
6010
6011 # Extract the first word of "mkdir", so it can be a program name with args.
6012 set dummy mkdir; ac_word=$2
6013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6015 if test "${ac_cv_path_MKDIR+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   case $MKDIR in
6019   [\\/]* | ?:[\\/]*)
6020   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6021   ;;
6022   *)
6023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026   IFS=$as_save_IFS
6027   test -z "$as_dir" && as_dir=.
6028   for ac_exec_ext in '' $ac_executable_extensions; do
6029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6030     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032     break 2
6033   fi
6034 done
6035 done
6036 IFS=$as_save_IFS
6037
6038   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6039   ;;
6040 esac
6041 fi
6042 MKDIR=$ac_cv_path_MKDIR
6043 if test -n "$MKDIR"; then
6044   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6045 echo "${ECHO_T}$MKDIR" >&6; }
6046 else
6047   { echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6; }
6049 fi
6050
6051
6052 # Extract the first word of "mv", so it can be a program name with args.
6053 set dummy mv; ac_word=$2
6054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6056 if test "${ac_cv_path_MV+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   case $MV in
6060   [\\/]* | ?:[\\/]*)
6061   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6062   ;;
6063   *)
6064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067   IFS=$as_save_IFS
6068   test -z "$as_dir" && as_dir=.
6069   for ac_exec_ext in '' $ac_executable_extensions; do
6070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6071     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073     break 2
6074   fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6080   ;;
6081 esac
6082 fi
6083 MV=$ac_cv_path_MV
6084 if test -n "$MV"; then
6085   { echo "$as_me:$LINENO: result: $MV" >&5
6086 echo "${ECHO_T}$MV" >&6; }
6087 else
6088   { echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6; }
6090 fi
6091
6092
6093 if test -n "$ac_tool_prefix"; then
6094   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_prog_RANLIB+set}" = set; then
6099   echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101   if test -n "$RANLIB"; then
6102   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107   IFS=$as_save_IFS
6108   test -z "$as_dir" && as_dir=.
6109   for ac_exec_ext in '' $ac_executable_extensions; do
6110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113     break 2
6114   fi
6115 done
6116 done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 RANLIB=$ac_cv_prog_RANLIB
6122 if test -n "$RANLIB"; then
6123   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6124 echo "${ECHO_T}$RANLIB" >&6; }
6125 else
6126   { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6128 fi
6129
6130
6131 fi
6132 if test -z "$ac_cv_prog_RANLIB"; then
6133   ac_ct_RANLIB=$RANLIB
6134   # Extract the first word of "ranlib", so it can be a program name with args.
6135 set dummy ranlib; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   if test -n "$ac_ct_RANLIB"; then
6142   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149   for ac_exec_ext in '' $ac_executable_extensions; do
6150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6151     ac_cv_prog_ac_ct_RANLIB="ranlib"
6152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156 done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6162 if test -n "$ac_ct_RANLIB"; then
6163   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6165 else
6166   { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6168 fi
6169
6170   if test "x$ac_ct_RANLIB" = x; then
6171     RANLIB=":"
6172   else
6173     case $cross_compiling:$ac_tool_warned in
6174 yes:)
6175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6176 whose name does not start with the host triplet.  If you think this
6177 configuration is useful to you, please write to autoconf@gnu.org." >&5
6178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6179 whose name does not start with the host triplet.  If you think this
6180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183     RANLIB=$ac_ct_RANLIB
6184   fi
6185 else
6186   RANLIB="$ac_cv_prog_RANLIB"
6187 fi
6188
6189 if test -n "$ac_tool_prefix"; then
6190   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6191 set dummy ${ac_tool_prefix}ar; ac_word=$2
6192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194 if test "${ac_cv_prog_AR+set}" = set; then
6195   echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197   if test -n "$AR"; then
6198   ac_cv_prog_AR="$AR" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203   IFS=$as_save_IFS
6204   test -z "$as_dir" && as_dir=.
6205   for ac_exec_ext in '' $ac_executable_extensions; do
6206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6207     ac_cv_prog_AR="${ac_tool_prefix}ar"
6208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209     break 2
6210   fi
6211 done
6212 done
6213 IFS=$as_save_IFS
6214
6215 fi
6216 fi
6217 AR=$ac_cv_prog_AR
6218 if test -n "$AR"; then
6219   { echo "$as_me:$LINENO: result: $AR" >&5
6220 echo "${ECHO_T}$AR" >&6; }
6221 else
6222   { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6224 fi
6225
6226
6227 fi
6228 if test -z "$ac_cv_prog_AR"; then
6229   ac_ct_AR=$AR
6230   # Extract the first word of "ar", so it can be a program name with args.
6231 set dummy ar; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   if test -n "$ac_ct_AR"; then
6238   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245   for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_prog_ac_ct_AR="ar"
6248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6258 if test -n "$ac_ct_AR"; then
6259   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6260 echo "${ECHO_T}$ac_ct_AR" >&6; }
6261 else
6262   { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6264 fi
6265
6266   if test "x$ac_ct_AR" = x; then
6267     AR="false"
6268   else
6269     case $cross_compiling:$ac_tool_warned in
6270 yes:)
6271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6272 whose name does not start with the host triplet.  If you think this
6273 configuration is useful to you, please write to autoconf@gnu.org." >&5
6274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6275 whose name does not start with the host triplet.  If you think this
6276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6277 ac_tool_warned=yes ;;
6278 esac
6279     AR=$ac_ct_AR
6280   fi
6281 else
6282   AR="$ac_cv_prog_AR"
6283 fi
6284
6285 # Extract the first word of "rm", so it can be a program name with args.
6286 set dummy rm; ac_word=$2
6287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6289 if test "${ac_cv_path_RM+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   case $RM in
6293   [\\/]* | ?:[\\/]*)
6294   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6295   ;;
6296   *)
6297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300   IFS=$as_save_IFS
6301   test -z "$as_dir" && as_dir=.
6302   for ac_exec_ext in '' $ac_executable_extensions; do
6303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6304     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306     break 2
6307   fi
6308 done
6309 done
6310 IFS=$as_save_IFS
6311
6312   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6313   ;;
6314 esac
6315 fi
6316 RM=$ac_cv_path_RM
6317 if test -n "$RM"; then
6318   { echo "$as_me:$LINENO: result: $RM" >&5
6319 echo "${ECHO_T}$RM" >&6; }
6320 else
6321   { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6323 fi
6324
6325
6326 # Extract the first word of "sed", so it can be a program name with args.
6327 set dummy sed; ac_word=$2
6328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6330 if test "${ac_cv_path_SED+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333   case $SED in
6334   [\\/]* | ?:[\\/]*)
6335   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6336   ;;
6337   *)
6338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343   for ac_exec_ext in '' $ac_executable_extensions; do
6344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6345     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347     break 2
6348   fi
6349 done
6350 done
6351 IFS=$as_save_IFS
6352
6353   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6354   ;;
6355 esac
6356 fi
6357 SED=$ac_cv_path_SED
6358 if test -n "$SED"; then
6359   { echo "$as_me:$LINENO: result: $SED" >&5
6360 echo "${ECHO_T}$SED" >&6; }
6361 else
6362   { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6364 fi
6365
6366
6367 # Extract the first word of "tar", so it can be a program name with args.
6368 set dummy tar; ac_word=$2
6369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371 if test "${ac_cv_path_TAR+set}" = set; then
6372   echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374   case $TAR in
6375   [\\/]* | ?:[\\/]*)
6376   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6377   ;;
6378   *)
6379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382   IFS=$as_save_IFS
6383   test -z "$as_dir" && as_dir=.
6384   for ac_exec_ext in '' $ac_executable_extensions; do
6385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6386     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388     break 2
6389   fi
6390 done
6391 done
6392 IFS=$as_save_IFS
6393
6394   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6395   ;;
6396 esac
6397 fi
6398 TAR=$ac_cv_path_TAR
6399 if test -n "$TAR"; then
6400   { echo "$as_me:$LINENO: result: $TAR" >&5
6401 echo "${ECHO_T}$TAR" >&6; }
6402 else
6403   { echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6; }
6405 fi
6406
6407
6408 # Extract the first word of "pwd", so it can be a program name with args.
6409 set dummy pwd; ac_word=$2
6410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6412 if test "${ac_cv_path_BINPWD+set}" = set; then
6413   echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415   case $BINPWD in
6416   [\\/]* | ?:[\\/]*)
6417   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6418   ;;
6419   *)
6420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423   IFS=$as_save_IFS
6424   test -z "$as_dir" && as_dir=.
6425   for ac_exec_ext in '' $ac_executable_extensions; do
6426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6427     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429     break 2
6430   fi
6431 done
6432 done
6433 IFS=$as_save_IFS
6434
6435   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6436   ;;
6437 esac
6438 fi
6439 BINPWD=$ac_cv_path_BINPWD
6440 if test -n "$BINPWD"; then
6441   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6442 echo "${ECHO_T}$BINPWD" >&6; }
6443 else
6444   { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6446 fi
6447
6448
6449
6450 # Extract the first word of "dot", so it can be a program name with args.
6451 set dummy dot; ac_word=$2
6452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6454 if test "${ac_cv_path_DOT+set}" = set; then
6455   echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457   case $DOT in
6458   [\\/]* | ?:[\\/]*)
6459   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6460   ;;
6461   *)
6462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465   IFS=$as_save_IFS
6466   test -z "$as_dir" && as_dir=.
6467   for ac_exec_ext in '' $ac_executable_extensions; do
6468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6469     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471     break 2
6472   fi
6473 done
6474 done
6475 IFS=$as_save_IFS
6476
6477   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6478   ;;
6479 esac
6480 fi
6481 DOT=$ac_cv_path_DOT
6482 if test -n "$DOT"; then
6483   { echo "$as_me:$LINENO: result: $DOT" >&5
6484 echo "${ECHO_T}$DOT" >&6; }
6485 else
6486   { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6488 fi
6489
6490
6491 if test "$DOT" != "echo dot" ; then
6492
6493 cat >>confdefs.h <<\_ACEOF
6494 #define HAVE_DOT 1
6495 _ACEOF
6496
6497     if test "$llvm_cv_os_type" = "MingW" ; then
6498     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6499   fi
6500
6501 cat >>confdefs.h <<_ACEOF
6502 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6503 _ACEOF
6504
6505 fi
6506
6507 # Find a good install program.  We prefer a C program (faster),
6508 # so one script is as good as another.  But avoid the broken or
6509 # incompatible versions:
6510 # SysV /etc/install, /usr/sbin/install
6511 # SunOS /usr/etc/install
6512 # IRIX /sbin/install
6513 # AIX /bin/install
6514 # AmigaOS /C/install, which installs bootblocks on floppy discs
6515 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6516 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6517 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6518 # OS/2's system install, which has a completely different semantic
6519 # ./install, which can be erroneously created by make from ./install.sh.
6520 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6521 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6522 if test -z "$INSTALL"; then
6523 if test "${ac_cv_path_install+set}" = set; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529   IFS=$as_save_IFS
6530   test -z "$as_dir" && as_dir=.
6531   # Account for people who put trailing slashes in PATH elements.
6532 case $as_dir/ in
6533   ./ | .// | /cC/* | \
6534   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6535   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6536   /usr/ucb/* ) ;;
6537   *)
6538     # OSF1 and SCO ODT 3.0 have their own names for install.
6539     # Don't use installbsd from OSF since it installs stuff as root
6540     # by default.
6541     for ac_prog in ginstall scoinst install; do
6542       for ac_exec_ext in '' $ac_executable_extensions; do
6543         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6544           if test $ac_prog = install &&
6545             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6546             # AIX install.  It has an incompatible calling convention.
6547             :
6548           elif test $ac_prog = install &&
6549             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6550             # program-specific install script used by HP pwplus--don't use.
6551             :
6552           else
6553             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6554             break 3
6555           fi
6556         fi
6557       done
6558     done
6559     ;;
6560 esac
6561 done
6562 IFS=$as_save_IFS
6563
6564
6565 fi
6566   if test "${ac_cv_path_install+set}" = set; then
6567     INSTALL=$ac_cv_path_install
6568   else
6569     # As a last resort, use the slow shell script.  Don't cache a
6570     # value for INSTALL within a source directory, because that will
6571     # break other packages using the cache if that directory is
6572     # removed, or if the value is a relative name.
6573     INSTALL=$ac_install_sh
6574   fi
6575 fi
6576 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6577 echo "${ECHO_T}$INSTALL" >&6; }
6578
6579 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6580 # It thinks the first close brace ends the variable substitution.
6581 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6582
6583 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6584
6585 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6586
6587 case "$INSTALL" in
6588  [\\/$]* | ?:[\\/]* ) ;;
6589  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6590 esac
6591
6592 # Extract the first word of "bzip2", so it can be a program name with args.
6593 set dummy bzip2; ac_word=$2
6594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596 if test "${ac_cv_path_BZIP2+set}" = set; then
6597   echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599   case $BZIP2 in
6600   [\\/]* | ?:[\\/]*)
6601   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6602   ;;
6603   *)
6604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607   IFS=$as_save_IFS
6608   test -z "$as_dir" && as_dir=.
6609   for ac_exec_ext in '' $ac_executable_extensions; do
6610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6611     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613     break 2
6614   fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619   ;;
6620 esac
6621 fi
6622 BZIP2=$ac_cv_path_BZIP2
6623 if test -n "$BZIP2"; then
6624   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6625 echo "${ECHO_T}$BZIP2" >&6; }
6626 else
6627   { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6629 fi
6630
6631
6632 # Extract the first word of "cat", so it can be a program name with args.
6633 set dummy cat; ac_word=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_path_CAT+set}" = set; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639   case $CAT in
6640   [\\/]* | ?:[\\/]*)
6641   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6642   ;;
6643   *)
6644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647   IFS=$as_save_IFS
6648   test -z "$as_dir" && as_dir=.
6649   for ac_exec_ext in '' $ac_executable_extensions; do
6650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6651     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653     break 2
6654   fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659   ;;
6660 esac
6661 fi
6662 CAT=$ac_cv_path_CAT
6663 if test -n "$CAT"; then
6664   { echo "$as_me:$LINENO: result: $CAT" >&5
6665 echo "${ECHO_T}$CAT" >&6; }
6666 else
6667   { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6669 fi
6670
6671
6672 # Extract the first word of "doxygen", so it can be a program name with args.
6673 set dummy doxygen; ac_word=$2
6674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6677   echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679   case $DOXYGEN in
6680   [\\/]* | ?:[\\/]*)
6681   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6682   ;;
6683   *)
6684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687   IFS=$as_save_IFS
6688   test -z "$as_dir" && as_dir=.
6689   for ac_exec_ext in '' $ac_executable_extensions; do
6690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6691     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693     break 2
6694   fi
6695 done
6696 done
6697 IFS=$as_save_IFS
6698
6699   ;;
6700 esac
6701 fi
6702 DOXYGEN=$ac_cv_path_DOXYGEN
6703 if test -n "$DOXYGEN"; then
6704   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6705 echo "${ECHO_T}$DOXYGEN" >&6; }
6706 else
6707   { echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6; }
6709 fi
6710
6711
6712 # Extract the first word of "groff", so it can be a program name with args.
6713 set dummy groff; ac_word=$2
6714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6716 if test "${ac_cv_path_GROFF+set}" = set; then
6717   echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719   case $GROFF in
6720   [\\/]* | ?:[\\/]*)
6721   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6722   ;;
6723   *)
6724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729   for ac_exec_ext in '' $ac_executable_extensions; do
6730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6731     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736 done
6737 IFS=$as_save_IFS
6738
6739   ;;
6740 esac
6741 fi
6742 GROFF=$ac_cv_path_GROFF
6743 if test -n "$GROFF"; then
6744   { echo "$as_me:$LINENO: result: $GROFF" >&5
6745 echo "${ECHO_T}$GROFF" >&6; }
6746 else
6747   { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6749 fi
6750
6751
6752 # Extract the first word of "gzip", so it can be a program name with args.
6753 set dummy gzip; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6757   echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759   case $GZIPBIN in
6760   [\\/]* | ?:[\\/]*)
6761   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6762   ;;
6763   *)
6764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769   for ac_exec_ext in '' $ac_executable_extensions; do
6770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6771     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779   ;;
6780 esac
6781 fi
6782 GZIPBIN=$ac_cv_path_GZIPBIN
6783 if test -n "$GZIPBIN"; then
6784   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6785 echo "${ECHO_T}$GZIPBIN" >&6; }
6786 else
6787   { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6789 fi
6790
6791
6792 # Extract the first word of "pdfroff", so it can be a program name with args.
6793 set dummy pdfroff; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_path_PDFROFF+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   case $PDFROFF in
6800   [\\/]* | ?:[\\/]*)
6801   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6802   ;;
6803   *)
6804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807   IFS=$as_save_IFS
6808   test -z "$as_dir" && as_dir=.
6809   for ac_exec_ext in '' $ac_executable_extensions; do
6810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6811     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813     break 2
6814   fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819   ;;
6820 esac
6821 fi
6822 PDFROFF=$ac_cv_path_PDFROFF
6823 if test -n "$PDFROFF"; then
6824   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6825 echo "${ECHO_T}$PDFROFF" >&6; }
6826 else
6827   { echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6; }
6829 fi
6830
6831
6832 # Extract the first word of "zip", so it can be a program name with args.
6833 set dummy zip; ac_word=$2
6834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6836 if test "${ac_cv_path_ZIP+set}" = set; then
6837   echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839   case $ZIP in
6840   [\\/]* | ?:[\\/]*)
6841   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6842   ;;
6843   *)
6844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847   IFS=$as_save_IFS
6848   test -z "$as_dir" && as_dir=.
6849   for ac_exec_ext in '' $ac_executable_extensions; do
6850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6851     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853     break 2
6854   fi
6855 done
6856 done
6857 IFS=$as_save_IFS
6858
6859   ;;
6860 esac
6861 fi
6862 ZIP=$ac_cv_path_ZIP
6863 if test -n "$ZIP"; then
6864   { echo "$as_me:$LINENO: result: $ZIP" >&5
6865 echo "${ECHO_T}$ZIP" >&6; }
6866 else
6867   { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6869 fi
6870
6871
6872 # Extract the first word of "go", so it can be a program name with args.
6873 set dummy go; ac_word=$2
6874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876 if test "${ac_cv_path_GO+set}" = set; then
6877   echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879   case $GO in
6880   [\\/]* | ?:[\\/]*)
6881   ac_cv_path_GO="$GO" # Let the user override the test with a path.
6882   ;;
6883   *)
6884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887   IFS=$as_save_IFS
6888   test -z "$as_dir" && as_dir=.
6889   for ac_exec_ext in '' $ac_executable_extensions; do
6890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6891     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893     break 2
6894   fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899   ;;
6900 esac
6901 fi
6902 GO=$ac_cv_path_GO
6903 if test -n "$GO"; then
6904   { echo "$as_me:$LINENO: result: $GO" >&5
6905 echo "${ECHO_T}$GO" >&6; }
6906 else
6907   { echo "$as_me:$LINENO: result: no" >&5
6908 echo "${ECHO_T}no" >&6; }
6909 fi
6910
6911
6912 for ac_prog in ocamlfind
6913 do
6914   # Extract the first word of "$ac_prog", so it can be a program name with args.
6915 set dummy $ac_prog; ac_word=$2
6916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6918 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
6919   echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921   case $OCAMLFIND in
6922   [\\/]* | ?:[\\/]*)
6923   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
6924   ;;
6925   *)
6926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929   IFS=$as_save_IFS
6930   test -z "$as_dir" && as_dir=.
6931   for ac_exec_ext in '' $ac_executable_extensions; do
6932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6933     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
6934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935     break 2
6936   fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6940
6941   ;;
6942 esac
6943 fi
6944 OCAMLFIND=$ac_cv_path_OCAMLFIND
6945 if test -n "$OCAMLFIND"; then
6946   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
6947 echo "${ECHO_T}$OCAMLFIND" >&6; }
6948 else
6949   { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6951 fi
6952
6953
6954   test -n "$OCAMLFIND" && break
6955 done
6956
6957 for ac_prog in gas as
6958 do
6959   # Extract the first word of "$ac_prog", so it can be a program name with args.
6960 set dummy $ac_prog; ac_word=$2
6961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6963 if test "${ac_cv_path_GAS+set}" = set; then
6964   echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966   case $GAS in
6967   [\\/]* | ?:[\\/]*)
6968   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
6969   ;;
6970   *)
6971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6973 do
6974   IFS=$as_save_IFS
6975   test -z "$as_dir" && as_dir=.
6976   for ac_exec_ext in '' $ac_executable_extensions; do
6977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6978     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
6979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980     break 2
6981   fi
6982 done
6983 done
6984 IFS=$as_save_IFS
6985
6986   ;;
6987 esac
6988 fi
6989 GAS=$ac_cv_path_GAS
6990 if test -n "$GAS"; then
6991   { echo "$as_me:$LINENO: result: $GAS" >&5
6992 echo "${ECHO_T}$GAS" >&6; }
6993 else
6994   { echo "$as_me:$LINENO: result: no" >&5
6995 echo "${ECHO_T}no" >&6; }
6996 fi
6997
6998
6999   test -n "$GAS" && break
7000 done
7001
7002
7003 { echo "$as_me:$LINENO: checking for linker version" >&5
7004 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7005 if test "${llvm_cv_link_version+set}" = set; then
7006   echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008
7009    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7010
7011    # Check for ld64.
7012    if (echo "$version_string" | grep -q "ld64"); then
7013      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7014    else
7015      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7016    fi
7017
7018 fi
7019 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7020 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7021
7022 cat >>confdefs.h <<_ACEOF
7023 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7024 _ACEOF
7025
7026
7027
7028
7029 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7030 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7031 if test "${llvm_cv_link_use_r+set}" = set; then
7032   echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034    ac_ext=c
7035 ac_cpp='$CPP $CPPFLAGS'
7036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7039
7040   oldcflags="$CFLAGS"
7041   CFLAGS="$CFLAGS -Wl,-R."
7042   cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h.  */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h.  */
7048
7049 int
7050 main ()
7051 {
7052
7053   ;
7054   return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (ac_try="$ac_link"
7059 case "(($ac_try" in
7060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061   *) ac_try_echo=$ac_try;;
7062 esac
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064   (eval "$ac_link") 2>conftest.er1
7065   ac_status=$?
7066   grep -v '^ *+' conftest.er1 >conftest.err
7067   rm -f conftest.er1
7068   cat conftest.err >&5
7069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070   (exit $ac_status); } &&
7071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7072   { (case "(($ac_try" in
7073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074   *) ac_try_echo=$ac_try;;
7075 esac
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077   (eval "$ac_try") 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); }; } &&
7081          { ac_try='test -s conftest$ac_exeext'
7082   { (case "(($ac_try" in
7083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084   *) ac_try_echo=$ac_try;;
7085 esac
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087   (eval "$ac_try") 2>&5
7088   ac_status=$?
7089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090   (exit $ac_status); }; }; then
7091   llvm_cv_link_use_r=yes
7092 else
7093   echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7095
7096         llvm_cv_link_use_r=no
7097 fi
7098
7099 rm -f core conftest.err conftest.$ac_objext \
7100       conftest$ac_exeext conftest.$ac_ext
7101   CFLAGS="$oldcflags"
7102   ac_ext=c
7103 ac_cpp='$CPP $CPPFLAGS'
7104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7107
7108
7109 fi
7110 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7111 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7112 if test "$llvm_cv_link_use_r" = yes ; then
7113
7114 cat >>confdefs.h <<\_ACEOF
7115 #define HAVE_LINK_R 1
7116 _ACEOF
7117
7118   fi
7119
7120
7121 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7122 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7123 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126    ac_ext=c
7127 ac_cpp='$CPP $CPPFLAGS'
7128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7131
7132   oldcflags="$CFLAGS"
7133   CFLAGS="$CFLAGS -rdynamic"
7134   cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h.  */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h.  */
7140
7141 int
7142 main ()
7143 {
7144
7145   ;
7146   return 0;
7147 }
7148 _ACEOF
7149 rm -f conftest.$ac_objext conftest$ac_exeext
7150 if { (ac_try="$ac_link"
7151 case "(($ac_try" in
7152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7153   *) ac_try_echo=$ac_try;;
7154 esac
7155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7156   (eval "$ac_link") 2>conftest.er1
7157   ac_status=$?
7158   grep -v '^ *+' conftest.er1 >conftest.err
7159   rm -f conftest.er1
7160   cat conftest.err >&5
7161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162   (exit $ac_status); } &&
7163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7164   { (case "(($ac_try" in
7165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166   *) ac_try_echo=$ac_try;;
7167 esac
7168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169   (eval "$ac_try") 2>&5
7170   ac_status=$?
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); }; } &&
7173          { ac_try='test -s conftest$ac_exeext'
7174   { (case "(($ac_try" in
7175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176   *) ac_try_echo=$ac_try;;
7177 esac
7178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179   (eval "$ac_try") 2>&5
7180   ac_status=$?
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); }; }; then
7183   llvm_cv_link_use_export_dynamic=yes
7184 else
7185   echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7187
7188         llvm_cv_link_use_export_dynamic=no
7189 fi
7190
7191 rm -f core conftest.err conftest.$ac_objext \
7192       conftest$ac_exeext conftest.$ac_ext
7193   CFLAGS="$oldcflags"
7194   ac_ext=c
7195 ac_cpp='$CPP $CPPFLAGS'
7196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7199
7200
7201 fi
7202 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7203 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7204 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7205
7206 cat >>confdefs.h <<\_ACEOF
7207 #define HAVE_LINK_EXPORT_DYNAMIC 1
7208 _ACEOF
7209
7210   fi
7211
7212
7213 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7214 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7215 if test "${llvm_cv_link_use_version_script+set}" = set; then
7216   echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218    ac_ext=c
7219 ac_cpp='$CPP $CPPFLAGS'
7220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7223
7224   oldcflags="$CFLAGS"
7225
7226   # The following code is from the autoconf manual,
7227   # "11.13: Limitations of Usual Tools".
7228   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7229   # Use mktemp if possible; otherwise fall back on mkdir,
7230   # with $RANDOM to make collisions less likely.
7231   : ${TMPDIR=/tmp}
7232   {
7233     tmp=`
7234       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7235     ` &&
7236     test -n "$tmp" && test -d "$tmp"
7237   } || {
7238     tmp=$TMPDIR/foo$$-$RANDOM
7239     (umask 077 && mkdir "$tmp")
7240   } || exit $?
7241
7242   echo "{" > "$tmp/export.map"
7243   echo "  global: main;" >> "$tmp/export.map"
7244   echo "  local: *;" >> "$tmp/export.map"
7245   echo "};" >> "$tmp/export.map"
7246
7247   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7248   cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h.  */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h.  */
7254
7255 int
7256 main ()
7257 {
7258
7259   ;
7260   return 0;
7261 }
7262 _ACEOF
7263 rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (ac_try="$ac_link"
7265 case "(($ac_try" in
7266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7267   *) ac_try_echo=$ac_try;;
7268 esac
7269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7270   (eval "$ac_link") 2>conftest.er1
7271   ac_status=$?
7272   grep -v '^ *+' conftest.er1 >conftest.err
7273   rm -f conftest.er1
7274   cat conftest.err >&5
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); } &&
7277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7278   { (case "(($ac_try" in
7279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280   *) ac_try_echo=$ac_try;;
7281 esac
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283   (eval "$ac_try") 2>&5
7284   ac_status=$?
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); }; } &&
7287          { ac_try='test -s conftest$ac_exeext'
7288   { (case "(($ac_try" in
7289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290   *) ac_try_echo=$ac_try;;
7291 esac
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293   (eval "$ac_try") 2>&5
7294   ac_status=$?
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); }; }; then
7297   llvm_cv_link_use_version_script=yes
7298 else
7299   echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7301
7302         llvm_cv_link_use_version_script=no
7303 fi
7304
7305 rm -f core conftest.err conftest.$ac_objext \
7306       conftest$ac_exeext conftest.$ac_ext
7307   rm "$tmp/export.map"
7308   rmdir "$tmp"
7309   CFLAGS="$oldcflags"
7310   ac_ext=c
7311 ac_cpp='$CPP $CPPFLAGS'
7312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7315
7316
7317 fi
7318 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7319 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7320 if test "$llvm_cv_link_use_version_script" = yes ; then
7321   HAVE_LINK_VERSION_SCRIPT=1
7322
7323   fi
7324
7325
7326
7327 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7328 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7329 if test "${ac_cv_path_GREP+set}" = set; then
7330   echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332   # Extract the first word of "grep ggrep" to use in msg output
7333 if test -z "$GREP"; then
7334 set dummy grep ggrep; ac_prog_name=$2
7335 if test "${ac_cv_path_GREP+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   ac_path_GREP_found=false
7339 # Loop through the user's path and test for each of PROGNAME-LIST
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345   for ac_prog in grep ggrep; do
7346   for ac_exec_ext in '' $ac_executable_extensions; do
7347     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7348     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7349     # Check for GNU ac_path_GREP and select it if it is found.
7350   # Check for GNU $ac_path_GREP
7351 case `"$ac_path_GREP" --version 2>&1` in
7352 *GNU*)
7353   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7354 *)
7355   ac_count=0
7356   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7357   while :
7358   do
7359     cat "conftest.in" "conftest.in" >"conftest.tmp"
7360     mv "conftest.tmp" "conftest.in"
7361     cp "conftest.in" "conftest.nl"
7362     echo 'GREP' >> "conftest.nl"
7363     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7364     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7365     ac_count=`expr $ac_count + 1`
7366     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7367       # Best one so far, save it but keep looking for a better one
7368       ac_cv_path_GREP="$ac_path_GREP"
7369       ac_path_GREP_max=$ac_count
7370     fi
7371     # 10*(2^10) chars as input seems more than enough
7372     test $ac_count -gt 10 && break
7373   done
7374   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7375 esac
7376
7377
7378     $ac_path_GREP_found && break 3
7379   done
7380 done
7381
7382 done
7383 IFS=$as_save_IFS
7384
7385
7386 fi
7387
7388 GREP="$ac_cv_path_GREP"
7389 if test -z "$GREP"; then
7390   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7391 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7392    { (exit 1); exit 1; }; }
7393 fi
7394
7395 else
7396   ac_cv_path_GREP=$GREP
7397 fi
7398
7399
7400 fi
7401 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7402 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7403  GREP="$ac_cv_path_GREP"
7404
7405
7406 { echo "$as_me:$LINENO: checking for egrep" >&5
7407 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7408 if test "${ac_cv_path_EGREP+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7412    then ac_cv_path_EGREP="$GREP -E"
7413    else
7414      # Extract the first word of "egrep" to use in msg output
7415 if test -z "$EGREP"; then
7416 set dummy egrep; ac_prog_name=$2
7417 if test "${ac_cv_path_EGREP+set}" = set; then
7418   echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420   ac_path_EGREP_found=false
7421 # Loop through the user's path and test for each of PROGNAME-LIST
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427   for ac_prog in egrep; do
7428   for ac_exec_ext in '' $ac_executable_extensions; do
7429     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7430     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7431     # Check for GNU ac_path_EGREP and select it if it is found.
7432   # Check for GNU $ac_path_EGREP
7433 case `"$ac_path_EGREP" --version 2>&1` in
7434 *GNU*)
7435   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7436 *)
7437   ac_count=0
7438   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7439   while :
7440   do
7441     cat "conftest.in" "conftest.in" >"conftest.tmp"
7442     mv "conftest.tmp" "conftest.in"
7443     cp "conftest.in" "conftest.nl"
7444     echo 'EGREP' >> "conftest.nl"
7445     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7446     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7447     ac_count=`expr $ac_count + 1`
7448     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7449       # Best one so far, save it but keep looking for a better one
7450       ac_cv_path_EGREP="$ac_path_EGREP"
7451       ac_path_EGREP_max=$ac_count
7452     fi
7453     # 10*(2^10) chars as input seems more than enough
7454     test $ac_count -gt 10 && break
7455   done
7456   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7457 esac
7458
7459
7460     $ac_path_EGREP_found && break 3
7461   done
7462 done
7463
7464 done
7465 IFS=$as_save_IFS
7466
7467
7468 fi
7469
7470 EGREP="$ac_cv_path_EGREP"
7471 if test -z "$EGREP"; then
7472   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7473 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7474    { (exit 1); exit 1; }; }
7475 fi
7476
7477 else
7478   ac_cv_path_EGREP=$EGREP
7479 fi
7480
7481
7482    fi
7483 fi
7484 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7485 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7486  EGREP="$ac_cv_path_EGREP"
7487
7488
7489 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7490 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7491 if test "${ac_cv_header_stdc+set}" = set; then
7492   echo $ECHO_N "(cached) $ECHO_C" >&6
7493 else
7494   cat >conftest.$ac_ext <<_ACEOF
7495 /* confdefs.h.  */
7496 _ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h.  */
7500 #include <stdlib.h>
7501 #include <stdarg.h>
7502 #include <string.h>
7503 #include <float.h>
7504
7505 int
7506 main ()
7507 {
7508
7509   ;
7510   return 0;
7511 }
7512 _ACEOF
7513 rm -f conftest.$ac_objext
7514 if { (ac_try="$ac_compile"
7515 case "(($ac_try" in
7516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517   *) ac_try_echo=$ac_try;;
7518 esac
7519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7520   (eval "$ac_compile") 2>conftest.er1
7521   ac_status=$?
7522   grep -v '^ *+' conftest.er1 >conftest.err
7523   rm -f conftest.er1
7524   cat conftest.err >&5
7525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); } &&
7527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7528   { (case "(($ac_try" in
7529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530   *) ac_try_echo=$ac_try;;
7531 esac
7532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533   (eval "$ac_try") 2>&5
7534   ac_status=$?
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); }; } &&
7537          { ac_try='test -s conftest.$ac_objext'
7538   { (case "(($ac_try" in
7539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540   *) ac_try_echo=$ac_try;;
7541 esac
7542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543   (eval "$ac_try") 2>&5
7544   ac_status=$?
7545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546   (exit $ac_status); }; }; then
7547   ac_cv_header_stdc=yes
7548 else
7549   echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7551
7552         ac_cv_header_stdc=no
7553 fi
7554
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556
7557 if test $ac_cv_header_stdc = yes; then
7558   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7559   cat >conftest.$ac_ext <<_ACEOF
7560 /* confdefs.h.  */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h.  */
7565 #include <string.h>
7566
7567 _ACEOF
7568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7569   $EGREP "memchr" >/dev/null 2>&1; then
7570   :
7571 else
7572   ac_cv_header_stdc=no
7573 fi
7574 rm -f conftest*
7575
7576 fi
7577
7578 if test $ac_cv_header_stdc = yes; then
7579   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7580   cat >conftest.$ac_ext <<_ACEOF
7581 /* confdefs.h.  */
7582 _ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h.  */
7586 #include <stdlib.h>
7587
7588 _ACEOF
7589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7590   $EGREP "free" >/dev/null 2>&1; then
7591   :
7592 else
7593   ac_cv_header_stdc=no
7594 fi
7595 rm -f conftest*
7596
7597 fi
7598
7599 if test $ac_cv_header_stdc = yes; then
7600   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7601   if test "$cross_compiling" = yes; then
7602   :
7603 else
7604   cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h.  */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h.  */
7610 #include <ctype.h>
7611 #include <stdlib.h>
7612 #if ((' ' & 0x0FF) == 0x020)
7613 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7614 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7615 #else
7616 # define ISLOWER(c) \
7617                    (('a' <= (c) && (c) <= 'i') \
7618                      || ('j' <= (c) && (c) <= 'r') \
7619                      || ('s' <= (c) && (c) <= 'z'))
7620 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7621 #endif
7622
7623 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7624 int
7625 main ()
7626 {
7627   int i;
7628   for (i = 0; i < 256; i++)
7629     if (XOR (islower (i), ISLOWER (i))
7630         || toupper (i) != TOUPPER (i))
7631       return 2;
7632   return 0;
7633 }
7634 _ACEOF
7635 rm -f conftest$ac_exeext
7636 if { (ac_try="$ac_link"
7637 case "(($ac_try" in
7638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639   *) ac_try_echo=$ac_try;;
7640 esac
7641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7642   (eval "$ac_link") 2>&5
7643   ac_status=$?
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7646   { (case "(($ac_try" in
7647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648   *) ac_try_echo=$ac_try;;
7649 esac
7650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651   (eval "$ac_try") 2>&5
7652   ac_status=$?
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); }; }; then
7655   :
7656 else
7657   echo "$as_me: program exited with status $ac_status" >&5
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7660
7661 ( exit $ac_status )
7662 ac_cv_header_stdc=no
7663 fi
7664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7665 fi
7666
7667
7668 fi
7669 fi
7670 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7671 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7672 if test $ac_cv_header_stdc = yes; then
7673
7674 cat >>confdefs.h <<\_ACEOF
7675 #define STDC_HEADERS 1
7676 _ACEOF
7677
7678 fi
7679
7680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7691                   inttypes.h stdint.h unistd.h
7692 do
7693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   cat >conftest.$ac_ext <<_ACEOF
7700 /* confdefs.h.  */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h.  */
7705 $ac_includes_default
7706
7707 #include <$ac_header>
7708 _ACEOF
7709 rm -f conftest.$ac_objext
7710 if { (ac_try="$ac_compile"
7711 case "(($ac_try" in
7712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713   *) ac_try_echo=$ac_try;;
7714 esac
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716   (eval "$ac_compile") 2>conftest.er1
7717   ac_status=$?
7718   grep -v '^ *+' conftest.er1 >conftest.err
7719   rm -f conftest.er1
7720   cat conftest.err >&5
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); } &&
7723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7724   { (case "(($ac_try" in
7725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726   *) ac_try_echo=$ac_try;;
7727 esac
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729   (eval "$ac_try") 2>&5
7730   ac_status=$?
7731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); }; } &&
7733          { ac_try='test -s conftest.$ac_objext'
7734   { (case "(($ac_try" in
7735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736   *) ac_try_echo=$ac_try;;
7737 esac
7738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7739   (eval "$ac_try") 2>&5
7740   ac_status=$?
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); }; }; then
7743   eval "$as_ac_Header=yes"
7744 else
7745   echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7747
7748         eval "$as_ac_Header=no"
7749 fi
7750
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 fi
7753 ac_res=`eval echo '${'$as_ac_Header'}'`
7754                { echo "$as_me:$LINENO: result: $ac_res" >&5
7755 echo "${ECHO_T}$ac_res" >&6; }
7756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7757   cat >>confdefs.h <<_ACEOF
7758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7759 _ACEOF
7760
7761 fi
7762
7763 done
7764
7765
7766
7767 for ac_header in errno.h
7768 do
7769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7771   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7774   echo $ECHO_N "(cached) $ECHO_C" >&6
7775 fi
7776 ac_res=`eval echo '${'$as_ac_Header'}'`
7777                { echo "$as_me:$LINENO: result: $ac_res" >&5
7778 echo "${ECHO_T}$ac_res" >&6; }
7779 else
7780   # Is the header compilable?
7781 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7783 cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h.  */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h.  */
7789 $ac_includes_default
7790 #include <$ac_header>
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7794 case "(($ac_try" in
7795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796   *) ac_try_echo=$ac_try;;
7797 esac
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799   (eval "$ac_compile") 2>conftest.er1
7800   ac_status=$?
7801   grep -v '^ *+' conftest.er1 >conftest.err
7802   rm -f conftest.er1
7803   cat conftest.err >&5
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); } &&
7806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7807   { (case "(($ac_try" in
7808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809   *) ac_try_echo=$ac_try;;
7810 esac
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812   (eval "$ac_try") 2>&5
7813   ac_status=$?
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); }; } &&
7816          { ac_try='test -s conftest.$ac_objext'
7817   { (case "(($ac_try" in
7818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819   *) ac_try_echo=$ac_try;;
7820 esac
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822   (eval "$ac_try") 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); }; }; then
7826   ac_header_compiler=yes
7827 else
7828   echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7830
7831         ac_header_compiler=no
7832 fi
7833
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7836 echo "${ECHO_T}$ac_header_compiler" >&6; }
7837
7838 # Is the header present?
7839 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7841 cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h.  */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h.  */
7847 #include <$ac_header>
7848 _ACEOF
7849 if { (ac_try="$ac_cpp conftest.$ac_ext"
7850 case "(($ac_try" in
7851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852   *) ac_try_echo=$ac_try;;
7853 esac
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7856   ac_status=$?
7857   grep -v '^ *+' conftest.er1 >conftest.err
7858   rm -f conftest.er1
7859   cat conftest.err >&5
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); } >/dev/null; then
7862   if test -s conftest.err; then
7863     ac_cpp_err=$ac_c_preproc_warn_flag
7864     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7865   else
7866     ac_cpp_err=
7867   fi
7868 else
7869   ac_cpp_err=yes
7870 fi
7871 if test -z "$ac_cpp_err"; then
7872   ac_header_preproc=yes
7873 else
7874   echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7876
7877   ac_header_preproc=no
7878 fi
7879
7880 rm -f conftest.err conftest.$ac_ext
7881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7882 echo "${ECHO_T}$ac_header_preproc" >&6; }
7883
7884 # So?  What about this header?
7885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7886   yes:no: )
7887     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7891     ac_header_preproc=yes
7892     ;;
7893   no:yes:* )
7894     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7896     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7897 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7898     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7900     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7901 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7904     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7906     ( cat <<\_ASBOX
7907 ## ------------------------------------ ##
7908 ## Report this to http://llvm.org/bugs/ ##
7909 ## ------------------------------------ ##
7910 _ASBOX
7911      ) | sed "s/^/$as_me: WARNING:     /" >&2
7912     ;;
7913 esac
7914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7917   echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919   eval "$as_ac_Header=\$ac_header_preproc"
7920 fi
7921 ac_res=`eval echo '${'$as_ac_Header'}'`
7922                { echo "$as_me:$LINENO: result: $ac_res" >&5
7923 echo "${ECHO_T}$ac_res" >&6; }
7924
7925 fi
7926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7927   cat >>confdefs.h <<_ACEOF
7928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7929 _ACEOF
7930
7931 fi
7932
7933 done
7934
7935
7936 case "$llvm_cv_os_type" in
7937   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7938   Darwin) llvm_shlib_ext=.dylib ;;
7939   *) llvm_shlib_ext=.so ;;
7940 esac
7941
7942
7943 cat >>confdefs.h <<_ACEOF
7944 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
7945 _ACEOF
7946
7947
7948 { echo "$as_me:$LINENO: checking tool compatibility" >&5
7949 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
7950
7951 ICC=no
7952 IXX=no
7953 case $CC in
7954   icc*|icpc*)
7955     ICC=yes
7956     IXX=yes
7957     ;;
7958    *)
7959     ;;
7960 esac
7961
7962 if test "$GCC" != "yes" && test "$ICC" != "yes"
7963 then
7964   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
7965 echo "$as_me: error: gcc|icc required but not found" >&2;}
7966    { (exit 1); exit 1; }; }
7967 fi
7968
7969 if test "$GXX" != "yes" && test "$IXX" != "yes"
7970 then
7971   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
7972 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
7973    { (exit 1); exit 1; }; }
7974 fi
7975
7976 if test "$GCC" = "yes"
7977 then
7978   cat >conftest.$ac_ext <<_ACEOF
7979
7980   /* confdefs.h.  */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h.  */
7985
7986     #if !defined(__GNUC__) || __GNUC__ < 3
7987     #error Unsupported GCC version
7988     #endif
7989
7990
7991 _ACEOF
7992 rm -f conftest.$ac_objext
7993 if { (ac_try="$ac_compile"
7994 case "(($ac_try" in
7995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996   *) ac_try_echo=$ac_try;;
7997 esac
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999   (eval "$ac_compile") 2>conftest.er1
8000   ac_status=$?
8001   grep -v '^ *+' conftest.er1 >conftest.err
8002   rm -f conftest.er1
8003   cat conftest.err >&5
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); } &&
8006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8007   { (case "(($ac_try" in
8008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009   *) ac_try_echo=$ac_try;;
8010 esac
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012   (eval "$ac_try") 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); }; } &&
8016          { ac_try='test -s conftest.$ac_objext'
8017   { (case "(($ac_try" in
8018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019   *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022   (eval "$ac_try") 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; }; then
8026   :
8027 else
8028   echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8030
8031         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8032 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8033    { (exit 1); exit 1; }; }
8034 fi
8035
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037 fi
8038
8039 if test -z "$llvm_cv_gnu_make_command"
8040 then
8041   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8042 echo "$as_me: error: GNU Make required but not found" >&2;}
8043    { (exit 1); exit 1; }; }
8044 fi
8045
8046 { echo "$as_me:$LINENO: result: ok" >&5
8047 echo "${ECHO_T}ok" >&6; }
8048
8049 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8050 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8051 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8052
8053 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8054
8055 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8056
8057
8058 NO_UNINITIALIZED=
8059 NO_MAYBE_UNINITIALIZED=
8060 if test "$GXX" = "yes"
8061 then
8062   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8063
8064         if test -z "$NO_MAYBE_UNINITIALIZED"
8065   then
8066     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8067
8068   fi
8069 fi
8070
8071 no_comment=
8072 llvm_cv_old_cxxflags="$CXXFLAGS"
8073 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8074 cat >conftest.$ac_ext <<_ACEOF
8075
8076   /* confdefs.h.  */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h.  */
8081 // Comment \o\
8082 // Another comment
8083 int main() { return 0; }
8084
8085
8086 _ACEOF
8087 rm -f conftest.$ac_objext
8088 if { (ac_try="$ac_compile"
8089 case "(($ac_try" in
8090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091   *) ac_try_echo=$ac_try;;
8092 esac
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094   (eval "$ac_compile") 2>conftest.er1
8095   ac_status=$?
8096   grep -v '^ *+' conftest.er1 >conftest.err
8097   rm -f conftest.er1
8098   cat conftest.err >&5
8099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); } &&
8101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8102   { (case "(($ac_try" in
8103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104   *) ac_try_echo=$ac_try;;
8105 esac
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107   (eval "$ac_try") 2>&5
8108   ac_status=$?
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); }; } &&
8111          { ac_try='test -s conftest.$ac_objext'
8112   { (case "(($ac_try" in
8113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114   *) ac_try_echo=$ac_try;;
8115 esac
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117   (eval "$ac_try") 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; }; then
8121
8122   no_comment=-Wno-comment
8123
8124 else
8125   echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128
8129 fi
8130
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 NO_COMMENT=$no_comment
8133
8134 CXXFLAGS="$llvm_cv_old_cxxflags"
8135
8136 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8137 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8138
8139
8140 # Check whether --with-python was given.
8141 if test "${with_python+set}" = set; then
8142   withval=$with_python; PYTHON="$withval"
8143 fi
8144
8145
8146 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8147   { echo "$as_me:$LINENO: checking for python" >&5
8148 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8149   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8150 echo "${ECHO_T}user defined: $with_python" >&6; }
8151 else
8152   if test -n "$PYTHON" ; then
8153     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8154 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8155   fi
8156
8157   # Extract the first word of "python python2 python26", so it can be a program name with args.
8158 set dummy python python2 python26; ac_word=$2
8159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8161 if test "${ac_cv_path_PYTHON+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   case $PYTHON in
8165   [\\/]* | ?:[\\/]*)
8166   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8167   ;;
8168   *)
8169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8171 do
8172   IFS=$as_save_IFS
8173   test -z "$as_dir" && as_dir=.
8174   for ac_exec_ext in '' $ac_executable_extensions; do
8175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8176     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8178     break 2
8179   fi
8180 done
8181 done
8182 IFS=$as_save_IFS
8183
8184   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8185 echo "${ECHO_T}not found" >&6; }
8186                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8187 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8188    { (exit 1); exit 1; }; }"
8189   ;;
8190 esac
8191 fi
8192 PYTHON=$ac_cv_path_PYTHON
8193 if test -n "$PYTHON"; then
8194   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8195 echo "${ECHO_T}$PYTHON" >&6; }
8196 else
8197   { echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6; }
8199 fi
8200
8201
8202 fi
8203
8204 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8205 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8206 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8207 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8208 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8209 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8210 if test "$ac_python_version_major" -gt "2" || \
8211    (test "$ac_python_version_major" -eq "2" && \
8212     test "$ac_python_version_minor" -ge "5") ; then
8213   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8214 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8215 else
8216   { echo "$as_me:$LINENO: result: not found" >&5
8217 echo "${ECHO_T}not found" >&6; }
8218   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8219 See \`config.log' for more details." >&5
8220 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8221 See \`config.log' for more details." >&2;}
8222    { (exit 1); exit 1; }; }
8223 fi
8224
8225
8226
8227 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8228 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8229 if test "${ac_cv_lib_m_sin+set}" = set; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   ac_check_lib_save_LIBS=$LIBS
8233 LIBS="-lm  $LIBS"
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h.  */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h.  */
8240
8241 /* Override any GCC internal prototype to avoid an error.
8242    Use char because int might match the return type of a GCC
8243    builtin and then its argument prototype would still apply.  */
8244 #ifdef __cplusplus
8245 extern "C"
8246 #endif
8247 char sin ();
8248 int
8249 main ()
8250 {
8251 return sin ();
8252   ;
8253   return 0;
8254 }
8255 _ACEOF
8256 rm -f conftest.$ac_objext conftest$ac_exeext
8257 if { (ac_try="$ac_link"
8258 case "(($ac_try" in
8259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260   *) ac_try_echo=$ac_try;;
8261 esac
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263   (eval "$ac_link") 2>conftest.er1
8264   ac_status=$?
8265   grep -v '^ *+' conftest.er1 >conftest.err
8266   rm -f conftest.er1
8267   cat conftest.err >&5
8268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269   (exit $ac_status); } &&
8270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8271   { (case "(($ac_try" in
8272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273   *) ac_try_echo=$ac_try;;
8274 esac
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276   (eval "$ac_try") 2>&5
8277   ac_status=$?
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); }; } &&
8280          { ac_try='test -s conftest$ac_exeext'
8281   { (case "(($ac_try" in
8282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283   *) ac_try_echo=$ac_try;;
8284 esac
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286   (eval "$ac_try") 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); }; }; then
8290   ac_cv_lib_m_sin=yes
8291 else
8292   echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295         ac_cv_lib_m_sin=no
8296 fi
8297
8298 rm -f core conftest.err conftest.$ac_objext \
8299       conftest$ac_exeext conftest.$ac_ext
8300 LIBS=$ac_check_lib_save_LIBS
8301 fi
8302 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8303 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8304 if test $ac_cv_lib_m_sin = yes; then
8305   cat >>confdefs.h <<_ACEOF
8306 #define HAVE_LIBM 1
8307 _ACEOF
8308
8309   LIBS="-lm $LIBS"
8310
8311 fi
8312
8313 if test "$llvm_cv_os_type" = "MingW" ; then
8314
8315 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8316 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8317 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8318   echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320   ac_check_lib_save_LIBS=$LIBS
8321 LIBS="-limagehlp  $LIBS"
8322 cat >conftest.$ac_ext <<_ACEOF
8323 /* confdefs.h.  */
8324 _ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h.  */
8328
8329
8330 int
8331 main ()
8332 {
8333 return main ();
8334   ;
8335   return 0;
8336 }
8337 _ACEOF
8338 rm -f conftest.$ac_objext conftest$ac_exeext
8339 if { (ac_try="$ac_link"
8340 case "(($ac_try" in
8341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342   *) ac_try_echo=$ac_try;;
8343 esac
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345   (eval "$ac_link") 2>conftest.er1
8346   ac_status=$?
8347   grep -v '^ *+' conftest.er1 >conftest.err
8348   rm -f conftest.er1
8349   cat conftest.err >&5
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } &&
8352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353   { (case "(($ac_try" in
8354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355   *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358   (eval "$ac_try") 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; } &&
8362          { ac_try='test -s conftest$ac_exeext'
8363   { (case "(($ac_try" in
8364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365   *) ac_try_echo=$ac_try;;
8366 esac
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368   (eval "$ac_try") 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; }; then
8372   ac_cv_lib_imagehlp_main=yes
8373 else
8374   echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8376
8377         ac_cv_lib_imagehlp_main=no
8378 fi
8379
8380 rm -f core conftest.err conftest.$ac_objext \
8381       conftest$ac_exeext conftest.$ac_ext
8382 LIBS=$ac_check_lib_save_LIBS
8383 fi
8384 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8385 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8386 if test $ac_cv_lib_imagehlp_main = yes; then
8387   cat >>confdefs.h <<_ACEOF
8388 #define HAVE_LIBIMAGEHLP 1
8389 _ACEOF
8390
8391   LIBS="-limagehlp $LIBS"
8392
8393 fi
8394
8395
8396 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8397 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8398 if test "${ac_cv_lib_psapi_main+set}" = set; then
8399   echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401   ac_check_lib_save_LIBS=$LIBS
8402 LIBS="-lpsapi  $LIBS"
8403 cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h.  */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h.  */
8409
8410
8411 int
8412 main ()
8413 {
8414 return main ();
8415   ;
8416   return 0;
8417 }
8418 _ACEOF
8419 rm -f conftest.$ac_objext conftest$ac_exeext
8420 if { (ac_try="$ac_link"
8421 case "(($ac_try" in
8422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423   *) ac_try_echo=$ac_try;;
8424 esac
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426   (eval "$ac_link") 2>conftest.er1
8427   ac_status=$?
8428   grep -v '^ *+' conftest.er1 >conftest.err
8429   rm -f conftest.er1
8430   cat conftest.err >&5
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); } &&
8433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8434   { (case "(($ac_try" in
8435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436   *) ac_try_echo=$ac_try;;
8437 esac
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439   (eval "$ac_try") 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; } &&
8443          { ac_try='test -s conftest$ac_exeext'
8444   { (case "(($ac_try" in
8445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446   *) ac_try_echo=$ac_try;;
8447 esac
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449   (eval "$ac_try") 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); }; }; then
8453   ac_cv_lib_psapi_main=yes
8454 else
8455   echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8457
8458         ac_cv_lib_psapi_main=no
8459 fi
8460
8461 rm -f core conftest.err conftest.$ac_objext \
8462       conftest$ac_exeext conftest.$ac_ext
8463 LIBS=$ac_check_lib_save_LIBS
8464 fi
8465 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8466 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8467 if test $ac_cv_lib_psapi_main = yes; then
8468   cat >>confdefs.h <<_ACEOF
8469 #define HAVE_LIBPSAPI 1
8470 _ACEOF
8471
8472   LIBS="-lpsapi $LIBS"
8473
8474 fi
8475
8476
8477 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8478 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8479 if test "${ac_cv_lib_shell32_main+set}" = set; then
8480   echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8482   ac_check_lib_save_LIBS=$LIBS
8483 LIBS="-lshell32  $LIBS"
8484 cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h.  */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h.  */
8490
8491
8492 int
8493 main ()
8494 {
8495 return main ();
8496   ;
8497   return 0;
8498 }
8499 _ACEOF
8500 rm -f conftest.$ac_objext conftest$ac_exeext
8501 if { (ac_try="$ac_link"
8502 case "(($ac_try" in
8503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504   *) ac_try_echo=$ac_try;;
8505 esac
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507   (eval "$ac_link") 2>conftest.er1
8508   ac_status=$?
8509   grep -v '^ *+' conftest.er1 >conftest.err
8510   rm -f conftest.er1
8511   cat conftest.err >&5
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); } &&
8514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8515   { (case "(($ac_try" in
8516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517   *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520   (eval "$ac_try") 2>&5
8521   ac_status=$?
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); }; } &&
8524          { ac_try='test -s conftest$ac_exeext'
8525   { (case "(($ac_try" in
8526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527   *) ac_try_echo=$ac_try;;
8528 esac
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530   (eval "$ac_try") 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); }; }; then
8534   ac_cv_lib_shell32_main=yes
8535 else
8536   echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8538
8539         ac_cv_lib_shell32_main=no
8540 fi
8541
8542 rm -f core conftest.err conftest.$ac_objext \
8543       conftest$ac_exeext conftest.$ac_ext
8544 LIBS=$ac_check_lib_save_LIBS
8545 fi
8546 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8547 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8548 if test $ac_cv_lib_shell32_main = yes; then
8549   cat >>confdefs.h <<_ACEOF
8550 #define HAVE_LIBSHELL32 1
8551 _ACEOF
8552
8553   LIBS="-lshell32 $LIBS"
8554
8555 fi
8556
8557 fi
8558
8559 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8560 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8561 if test "${ac_cv_search_dlopen+set}" = set; then
8562   echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564   ac_func_search_save_LIBS=$LIBS
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h.  */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h.  */
8571
8572 /* Override any GCC internal prototype to avoid an error.
8573    Use char because int might match the return type of a GCC
8574    builtin and then its argument prototype would still apply.  */
8575 #ifdef __cplusplus
8576 extern "C"
8577 #endif
8578 char dlopen ();
8579 int
8580 main ()
8581 {
8582 return dlopen ();
8583   ;
8584   return 0;
8585 }
8586 _ACEOF
8587 for ac_lib in '' dl; do
8588   if test -z "$ac_lib"; then
8589     ac_res="none required"
8590   else
8591     ac_res=-l$ac_lib
8592     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8593   fi
8594   rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (ac_try="$ac_link"
8596 case "(($ac_try" in
8597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598   *) ac_try_echo=$ac_try;;
8599 esac
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601   (eval "$ac_link") 2>conftest.er1
8602   ac_status=$?
8603   grep -v '^ *+' conftest.er1 >conftest.err
8604   rm -f conftest.er1
8605   cat conftest.err >&5
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); } &&
8608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8609   { (case "(($ac_try" in
8610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611   *) ac_try_echo=$ac_try;;
8612 esac
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614   (eval "$ac_try") 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); }; } &&
8618          { ac_try='test -s conftest$ac_exeext'
8619   { (case "(($ac_try" in
8620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621   *) ac_try_echo=$ac_try;;
8622 esac
8623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624   (eval "$ac_try") 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); }; }; then
8628   ac_cv_search_dlopen=$ac_res
8629 else
8630   echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8632
8633
8634 fi
8635
8636 rm -f core conftest.err conftest.$ac_objext \
8637       conftest$ac_exeext
8638   if test "${ac_cv_search_dlopen+set}" = set; then
8639   break
8640 fi
8641 done
8642 if test "${ac_cv_search_dlopen+set}" = set; then
8643   :
8644 else
8645   ac_cv_search_dlopen=no
8646 fi
8647 rm conftest.$ac_ext
8648 LIBS=$ac_func_search_save_LIBS
8649 fi
8650 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8651 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8652 ac_res=$ac_cv_search_dlopen
8653 if test "$ac_res" != no; then
8654   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8655
8656
8657 cat >>confdefs.h <<\_ACEOF
8658 #define HAVE_DLOPEN 1
8659 _ACEOF
8660
8661 HAVE_DLOPEN='1'
8662
8663
8664 else
8665   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8666 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8667 fi
8668
8669
8670 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8671 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8672 if test "${ac_cv_search_clock_gettime+set}" = set; then
8673   echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675   ac_func_search_save_LIBS=$LIBS
8676 cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h.  */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h.  */
8682
8683 /* Override any GCC internal prototype to avoid an error.
8684    Use char because int might match the return type of a GCC
8685    builtin and then its argument prototype would still apply.  */
8686 #ifdef __cplusplus
8687 extern "C"
8688 #endif
8689 char clock_gettime ();
8690 int
8691 main ()
8692 {
8693 return clock_gettime ();
8694   ;
8695   return 0;
8696 }
8697 _ACEOF
8698 for ac_lib in '' rt; do
8699   if test -z "$ac_lib"; then
8700     ac_res="none required"
8701   else
8702     ac_res=-l$ac_lib
8703     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8704   fi
8705   rm -f conftest.$ac_objext conftest$ac_exeext
8706 if { (ac_try="$ac_link"
8707 case "(($ac_try" in
8708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709   *) ac_try_echo=$ac_try;;
8710 esac
8711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712   (eval "$ac_link") 2>conftest.er1
8713   ac_status=$?
8714   grep -v '^ *+' conftest.er1 >conftest.err
8715   rm -f conftest.er1
8716   cat conftest.err >&5
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); } &&
8719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8720   { (case "(($ac_try" in
8721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8722   *) ac_try_echo=$ac_try;;
8723 esac
8724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8725   (eval "$ac_try") 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; } &&
8729          { ac_try='test -s conftest$ac_exeext'
8730   { (case "(($ac_try" in
8731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732   *) ac_try_echo=$ac_try;;
8733 esac
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735   (eval "$ac_try") 2>&5
8736   ac_status=$?
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); }; }; then
8739   ac_cv_search_clock_gettime=$ac_res
8740 else
8741   echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8743
8744
8745 fi
8746
8747 rm -f core conftest.err conftest.$ac_objext \
8748       conftest$ac_exeext
8749   if test "${ac_cv_search_clock_gettime+set}" = set; then
8750   break
8751 fi
8752 done
8753 if test "${ac_cv_search_clock_gettime+set}" = set; then
8754   :
8755 else
8756   ac_cv_search_clock_gettime=no
8757 fi
8758 rm conftest.$ac_ext
8759 LIBS=$ac_func_search_save_LIBS
8760 fi
8761 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8762 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8763 ac_res=$ac_cv_search_clock_gettime
8764 if test "$ac_res" != no; then
8765   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8766
8767 fi
8768
8769
8770 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8771     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8772 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8773 if test "${ac_cv_search_setupterm+set}" = set; then
8774   echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776   ac_func_search_save_LIBS=$LIBS
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h.  */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h.  */
8783
8784 /* Override any GCC internal prototype to avoid an error.
8785    Use char because int might match the return type of a GCC
8786    builtin and then its argument prototype would still apply.  */
8787 #ifdef __cplusplus
8788 extern "C"
8789 #endif
8790 char setupterm ();
8791 int
8792 main ()
8793 {
8794 return setupterm ();
8795   ;
8796   return 0;
8797 }
8798 _ACEOF
8799 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8800   if test -z "$ac_lib"; then
8801     ac_res="none required"
8802   else
8803     ac_res=-l$ac_lib
8804     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8805   fi
8806   rm -f conftest.$ac_objext conftest$ac_exeext
8807 if { (ac_try="$ac_link"
8808 case "(($ac_try" in
8809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810   *) ac_try_echo=$ac_try;;
8811 esac
8812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8813   (eval "$ac_link") 2>conftest.er1
8814   ac_status=$?
8815   grep -v '^ *+' conftest.er1 >conftest.err
8816   rm -f conftest.er1
8817   cat conftest.err >&5
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } &&
8820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8821   { (case "(($ac_try" in
8822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823   *) ac_try_echo=$ac_try;;
8824 esac
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826   (eval "$ac_try") 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; } &&
8830          { ac_try='test -s conftest$ac_exeext'
8831   { (case "(($ac_try" in
8832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833   *) ac_try_echo=$ac_try;;
8834 esac
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836   (eval "$ac_try") 2>&5
8837   ac_status=$?
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); }; }; then
8840   ac_cv_search_setupterm=$ac_res
8841 else
8842   echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8844
8845
8846 fi
8847
8848 rm -f core conftest.err conftest.$ac_objext \
8849       conftest$ac_exeext
8850   if test "${ac_cv_search_setupterm+set}" = set; then
8851   break
8852 fi
8853 done
8854 if test "${ac_cv_search_setupterm+set}" = set; then
8855   :
8856 else
8857   ac_cv_search_setupterm=no
8858 fi
8859 rm conftest.$ac_ext
8860 LIBS=$ac_func_search_save_LIBS
8861 fi
8862 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8863 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8864 ac_res=$ac_cv_search_setupterm
8865 if test "$ac_res" != no; then
8866   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8867
8868
8869 cat >>confdefs.h <<\_ACEOF
8870 #define HAVE_TERMINFO 1
8871 _ACEOF
8872
8873 HAVE_TERMINFO='1'
8874
8875
8876 fi
8877
8878 fi
8879
8880 if test "$llvm_cv_enable_libedit" = "yes" ; then
8881   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8882 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8883 if test "${ac_cv_search_el_init+set}" = set; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886   ac_func_search_save_LIBS=$LIBS
8887 cat >conftest.$ac_ext <<_ACEOF
8888 /* confdefs.h.  */
8889 _ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h.  */
8893
8894 /* Override any GCC internal prototype to avoid an error.
8895    Use char because int might match the return type of a GCC
8896    builtin and then its argument prototype would still apply.  */
8897 #ifdef __cplusplus
8898 extern "C"
8899 #endif
8900 char el_init ();
8901 int
8902 main ()
8903 {
8904 return el_init ();
8905   ;
8906   return 0;
8907 }
8908 _ACEOF
8909 for ac_lib in '' edit; do
8910   if test -z "$ac_lib"; then
8911     ac_res="none required"
8912   else
8913     ac_res=-l$ac_lib
8914     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8915   fi
8916   rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8918 case "(($ac_try" in
8919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920   *) ac_try_echo=$ac_try;;
8921 esac
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923   (eval "$ac_link") 2>conftest.er1
8924   ac_status=$?
8925   grep -v '^ *+' conftest.er1 >conftest.err
8926   rm -f conftest.er1
8927   cat conftest.err >&5
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } &&
8930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8931   { (case "(($ac_try" in
8932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933   *) ac_try_echo=$ac_try;;
8934 esac
8935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936   (eval "$ac_try") 2>&5
8937   ac_status=$?
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); }; } &&
8940          { ac_try='test -s conftest$ac_exeext'
8941   { (case "(($ac_try" in
8942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943   *) ac_try_echo=$ac_try;;
8944 esac
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946   (eval "$ac_try") 2>&5
8947   ac_status=$?
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); }; }; then
8950   ac_cv_search_el_init=$ac_res
8951 else
8952   echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8954
8955
8956 fi
8957
8958 rm -f core conftest.err conftest.$ac_objext \
8959       conftest$ac_exeext
8960   if test "${ac_cv_search_el_init+set}" = set; then
8961   break
8962 fi
8963 done
8964 if test "${ac_cv_search_el_init+set}" = set; then
8965   :
8966 else
8967   ac_cv_search_el_init=no
8968 fi
8969 rm conftest.$ac_ext
8970 LIBS=$ac_func_search_save_LIBS
8971 fi
8972 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
8973 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
8974 ac_res=$ac_cv_search_el_init
8975 if test "$ac_res" != no; then
8976   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8977
8978 cat >>confdefs.h <<\_ACEOF
8979 #define HAVE_LIBEDIT 1
8980 _ACEOF
8981
8982 fi
8983
8984 fi
8985
8986 if test "$llvm_cv_enable_libffi" = "yes" ; then
8987   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
8988 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
8989 if test "${ac_cv_search_ffi_call+set}" = set; then
8990   echo $ECHO_N "(cached) $ECHO_C" >&6
8991 else
8992   ac_func_search_save_LIBS=$LIBS
8993 cat >conftest.$ac_ext <<_ACEOF
8994 /* confdefs.h.  */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h.  */
8999
9000 /* Override any GCC internal prototype to avoid an error.
9001    Use char because int might match the return type of a GCC
9002    builtin and then its argument prototype would still apply.  */
9003 #ifdef __cplusplus
9004 extern "C"
9005 #endif
9006 char ffi_call ();
9007 int
9008 main ()
9009 {
9010 return ffi_call ();
9011   ;
9012   return 0;
9013 }
9014 _ACEOF
9015 for ac_lib in '' ffi; do
9016   if test -z "$ac_lib"; then
9017     ac_res="none required"
9018   else
9019     ac_res=-l$ac_lib
9020     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9021   fi
9022   rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (ac_try="$ac_link"
9024 case "(($ac_try" in
9025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026   *) ac_try_echo=$ac_try;;
9027 esac
9028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9029   (eval "$ac_link") 2>conftest.er1
9030   ac_status=$?
9031   grep -v '^ *+' conftest.er1 >conftest.err
9032   rm -f conftest.er1
9033   cat conftest.err >&5
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); } &&
9036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9037   { (case "(($ac_try" in
9038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039   *) ac_try_echo=$ac_try;;
9040 esac
9041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042   (eval "$ac_try") 2>&5
9043   ac_status=$?
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); }; } &&
9046          { ac_try='test -s conftest$ac_exeext'
9047   { (case "(($ac_try" in
9048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049   *) ac_try_echo=$ac_try;;
9050 esac
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052   (eval "$ac_try") 2>&5
9053   ac_status=$?
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); }; }; then
9056   ac_cv_search_ffi_call=$ac_res
9057 else
9058   echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9060
9061
9062 fi
9063
9064 rm -f core conftest.err conftest.$ac_objext \
9065       conftest$ac_exeext
9066   if test "${ac_cv_search_ffi_call+set}" = set; then
9067   break
9068 fi
9069 done
9070 if test "${ac_cv_search_ffi_call+set}" = set; then
9071   :
9072 else
9073   ac_cv_search_ffi_call=no
9074 fi
9075 rm conftest.$ac_ext
9076 LIBS=$ac_func_search_save_LIBS
9077 fi
9078 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9079 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9080 ac_res=$ac_cv_search_ffi_call
9081 if test "$ac_res" != no; then
9082   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9083
9084 cat >>confdefs.h <<\_ACEOF
9085 #define HAVE_FFI_CALL 1
9086 _ACEOF
9087
9088 else
9089   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9090 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9091    { (exit 1); exit 1; }; }
9092 fi
9093
9094 fi
9095
9096 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9097 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9098 if test "${ac_cv_search_mallinfo+set}" = set; then
9099   echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101   ac_func_search_save_LIBS=$LIBS
9102 cat >conftest.$ac_ext <<_ACEOF
9103 /* confdefs.h.  */
9104 _ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h.  */
9108
9109 /* Override any GCC internal prototype to avoid an error.
9110    Use char because int might match the return type of a GCC
9111    builtin and then its argument prototype would still apply.  */
9112 #ifdef __cplusplus
9113 extern "C"
9114 #endif
9115 char mallinfo ();
9116 int
9117 main ()
9118 {
9119 return mallinfo ();
9120   ;
9121   return 0;
9122 }
9123 _ACEOF
9124 for ac_lib in '' malloc; do
9125   if test -z "$ac_lib"; then
9126     ac_res="none required"
9127   else
9128     ac_res=-l$ac_lib
9129     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9130   fi
9131   rm -f conftest.$ac_objext conftest$ac_exeext
9132 if { (ac_try="$ac_link"
9133 case "(($ac_try" in
9134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135   *) ac_try_echo=$ac_try;;
9136 esac
9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138   (eval "$ac_link") 2>conftest.er1
9139   ac_status=$?
9140   grep -v '^ *+' conftest.er1 >conftest.err
9141   rm -f conftest.er1
9142   cat conftest.err >&5
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); } &&
9145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9146   { (case "(($ac_try" in
9147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9148   *) ac_try_echo=$ac_try;;
9149 esac
9150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9151   (eval "$ac_try") 2>&5
9152   ac_status=$?
9153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154   (exit $ac_status); }; } &&
9155          { ac_try='test -s conftest$ac_exeext'
9156   { (case "(($ac_try" in
9157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158   *) ac_try_echo=$ac_try;;
9159 esac
9160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9161   (eval "$ac_try") 2>&5
9162   ac_status=$?
9163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164   (exit $ac_status); }; }; then
9165   ac_cv_search_mallinfo=$ac_res
9166 else
9167   echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9169
9170
9171 fi
9172
9173 rm -f core conftest.err conftest.$ac_objext \
9174       conftest$ac_exeext
9175   if test "${ac_cv_search_mallinfo+set}" = set; then
9176   break
9177 fi
9178 done
9179 if test "${ac_cv_search_mallinfo+set}" = set; then
9180   :
9181 else
9182   ac_cv_search_mallinfo=no
9183 fi
9184 rm conftest.$ac_ext
9185 LIBS=$ac_func_search_save_LIBS
9186 fi
9187 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9188 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9189 ac_res=$ac_cv_search_mallinfo
9190 if test "$ac_res" != no; then
9191   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9192
9193 cat >>confdefs.h <<\_ACEOF
9194 #define HAVE_MALLINFO 1
9195 _ACEOF
9196
9197 fi
9198
9199
9200 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9201
9202 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9203 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9204 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9205   echo $ECHO_N "(cached) $ECHO_C" >&6
9206 else
9207   ac_check_lib_save_LIBS=$LIBS
9208 LIBS="-lpthread  $LIBS"
9209 cat >conftest.$ac_ext <<_ACEOF
9210 /* confdefs.h.  */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h.  */
9215
9216 /* Override any GCC internal prototype to avoid an error.
9217    Use char because int might match the return type of a GCC
9218    builtin and then its argument prototype would still apply.  */
9219 #ifdef __cplusplus
9220 extern "C"
9221 #endif
9222 char pthread_mutex_init ();
9223 int
9224 main ()
9225 {
9226 return pthread_mutex_init ();
9227   ;
9228   return 0;
9229 }
9230 _ACEOF
9231 rm -f conftest.$ac_objext conftest$ac_exeext
9232 if { (ac_try="$ac_link"
9233 case "(($ac_try" in
9234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235   *) ac_try_echo=$ac_try;;
9236 esac
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238   (eval "$ac_link") 2>conftest.er1
9239   ac_status=$?
9240   grep -v '^ *+' conftest.er1 >conftest.err
9241   rm -f conftest.er1
9242   cat conftest.err >&5
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); } &&
9245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9246   { (case "(($ac_try" in
9247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248   *) ac_try_echo=$ac_try;;
9249 esac
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251   (eval "$ac_try") 2>&5
9252   ac_status=$?
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); }; } &&
9255          { ac_try='test -s conftest$ac_exeext'
9256   { (case "(($ac_try" in
9257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258   *) ac_try_echo=$ac_try;;
9259 esac
9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261   (eval "$ac_try") 2>&5
9262   ac_status=$?
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); }; }; then
9265   ac_cv_lib_pthread_pthread_mutex_init=yes
9266 else
9267   echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9269
9270         ac_cv_lib_pthread_pthread_mutex_init=no
9271 fi
9272
9273 rm -f core conftest.err conftest.$ac_objext \
9274       conftest$ac_exeext conftest.$ac_ext
9275 LIBS=$ac_check_lib_save_LIBS
9276 fi
9277 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9278 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9279 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9280   cat >>confdefs.h <<_ACEOF
9281 #define HAVE_LIBPTHREAD 1
9282 _ACEOF
9283
9284   LIBS="-lpthread $LIBS"
9285
9286 fi
9287
9288   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9289 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9290 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293   ac_func_search_save_LIBS=$LIBS
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h.  */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h.  */
9300
9301 /* Override any GCC internal prototype to avoid an error.
9302    Use char because int might match the return type of a GCC
9303    builtin and then its argument prototype would still apply.  */
9304 #ifdef __cplusplus
9305 extern "C"
9306 #endif
9307 char pthread_mutex_lock ();
9308 int
9309 main ()
9310 {
9311 return pthread_mutex_lock ();
9312   ;
9313   return 0;
9314 }
9315 _ACEOF
9316 for ac_lib in '' pthread; do
9317   if test -z "$ac_lib"; then
9318     ac_res="none required"
9319   else
9320     ac_res=-l$ac_lib
9321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9322   fi
9323   rm -f conftest.$ac_objext conftest$ac_exeext
9324 if { (ac_try="$ac_link"
9325 case "(($ac_try" in
9326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327   *) ac_try_echo=$ac_try;;
9328 esac
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330   (eval "$ac_link") 2>conftest.er1
9331   ac_status=$?
9332   grep -v '^ *+' conftest.er1 >conftest.err
9333   rm -f conftest.er1
9334   cat conftest.err >&5
9335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336   (exit $ac_status); } &&
9337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9338   { (case "(($ac_try" in
9339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340   *) ac_try_echo=$ac_try;;
9341 esac
9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343   (eval "$ac_try") 2>&5
9344   ac_status=$?
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); }; } &&
9347          { ac_try='test -s conftest$ac_exeext'
9348   { (case "(($ac_try" in
9349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350   *) ac_try_echo=$ac_try;;
9351 esac
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353   (eval "$ac_try") 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); }; }; then
9357   ac_cv_search_pthread_mutex_lock=$ac_res
9358 else
9359   echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9361
9362
9363 fi
9364
9365 rm -f core conftest.err conftest.$ac_objext \
9366       conftest$ac_exeext
9367   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9368   break
9369 fi
9370 done
9371 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9372   :
9373 else
9374   ac_cv_search_pthread_mutex_lock=no
9375 fi
9376 rm conftest.$ac_ext
9377 LIBS=$ac_func_search_save_LIBS
9378 fi
9379 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9380 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9381 ac_res=$ac_cv_search_pthread_mutex_lock
9382 if test "$ac_res" != no; then
9383   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9384
9385 cat >>confdefs.h <<\_ACEOF
9386 #define HAVE_PTHREAD_MUTEX_LOCK 1
9387 _ACEOF
9388
9389 fi
9390
9391   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9392 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9393 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9394   echo $ECHO_N "(cached) $ECHO_C" >&6
9395 else
9396   ac_func_search_save_LIBS=$LIBS
9397 cat >conftest.$ac_ext <<_ACEOF
9398 /* confdefs.h.  */
9399 _ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h.  */
9403
9404 /* Override any GCC internal prototype to avoid an error.
9405    Use char because int might match the return type of a GCC
9406    builtin and then its argument prototype would still apply.  */
9407 #ifdef __cplusplus
9408 extern "C"
9409 #endif
9410 char pthread_rwlock_init ();
9411 int
9412 main ()
9413 {
9414 return pthread_rwlock_init ();
9415   ;
9416   return 0;
9417 }
9418 _ACEOF
9419 for ac_lib in '' pthread; do
9420   if test -z "$ac_lib"; then
9421     ac_res="none required"
9422   else
9423     ac_res=-l$ac_lib
9424     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9425   fi
9426   rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (ac_try="$ac_link"
9428 case "(($ac_try" in
9429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430   *) ac_try_echo=$ac_try;;
9431 esac
9432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433   (eval "$ac_link") 2>conftest.er1
9434   ac_status=$?
9435   grep -v '^ *+' conftest.er1 >conftest.err
9436   rm -f conftest.er1
9437   cat conftest.err >&5
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); } &&
9440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9441   { (case "(($ac_try" in
9442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9443   *) ac_try_echo=$ac_try;;
9444 esac
9445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9446   (eval "$ac_try") 2>&5
9447   ac_status=$?
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); }; } &&
9450          { ac_try='test -s conftest$ac_exeext'
9451   { (case "(($ac_try" in
9452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453   *) ac_try_echo=$ac_try;;
9454 esac
9455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9456   (eval "$ac_try") 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); }; }; then
9460   ac_cv_search_pthread_rwlock_init=$ac_res
9461 else
9462   echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9464
9465
9466 fi
9467
9468 rm -f core conftest.err conftest.$ac_objext \
9469       conftest$ac_exeext
9470   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9471   break
9472 fi
9473 done
9474 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9475   :
9476 else
9477   ac_cv_search_pthread_rwlock_init=no
9478 fi
9479 rm conftest.$ac_ext
9480 LIBS=$ac_func_search_save_LIBS
9481 fi
9482 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9483 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9484 ac_res=$ac_cv_search_pthread_rwlock_init
9485 if test "$ac_res" != no; then
9486   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9487
9488 cat >>confdefs.h <<\_ACEOF
9489 #define HAVE_PTHREAD_RWLOCK_INIT 1
9490 _ACEOF
9491
9492 fi
9493
9494   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9495 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9496 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9497   echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499   ac_func_search_save_LIBS=$LIBS
9500 cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h.  */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h.  */
9506
9507 /* Override any GCC internal prototype to avoid an error.
9508    Use char because int might match the return type of a GCC
9509    builtin and then its argument prototype would still apply.  */
9510 #ifdef __cplusplus
9511 extern "C"
9512 #endif
9513 char pthread_getspecific ();
9514 int
9515 main ()
9516 {
9517 return pthread_getspecific ();
9518   ;
9519   return 0;
9520 }
9521 _ACEOF
9522 for ac_lib in '' pthread; do
9523   if test -z "$ac_lib"; then
9524     ac_res="none required"
9525   else
9526     ac_res=-l$ac_lib
9527     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9528   fi
9529   rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (ac_try="$ac_link"
9531 case "(($ac_try" in
9532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533   *) ac_try_echo=$ac_try;;
9534 esac
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536   (eval "$ac_link") 2>conftest.er1
9537   ac_status=$?
9538   grep -v '^ *+' conftest.er1 >conftest.err
9539   rm -f conftest.er1
9540   cat conftest.err >&5
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); } &&
9543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9544   { (case "(($ac_try" in
9545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546   *) ac_try_echo=$ac_try;;
9547 esac
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549   (eval "$ac_try") 2>&5
9550   ac_status=$?
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); }; } &&
9553          { ac_try='test -s conftest$ac_exeext'
9554   { (case "(($ac_try" in
9555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556   *) ac_try_echo=$ac_try;;
9557 esac
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559   (eval "$ac_try") 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; }; then
9563   ac_cv_search_pthread_getspecific=$ac_res
9564 else
9565   echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9567
9568
9569 fi
9570
9571 rm -f core conftest.err conftest.$ac_objext \
9572       conftest$ac_exeext
9573   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9574   break
9575 fi
9576 done
9577 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9578   :
9579 else
9580   ac_cv_search_pthread_getspecific=no
9581 fi
9582 rm conftest.$ac_ext
9583 LIBS=$ac_func_search_save_LIBS
9584 fi
9585 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9586 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9587 ac_res=$ac_cv_search_pthread_getspecific
9588 if test "$ac_res" != no; then
9589   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9590
9591 cat >>confdefs.h <<\_ACEOF
9592 #define HAVE_PTHREAD_GETSPECIFIC 1
9593 _ACEOF
9594
9595 fi
9596
9597 fi
9598
9599 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9600
9601 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9602 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9603 if test "${ac_cv_lib_z_compress2+set}" = set; then
9604   echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606   ac_check_lib_save_LIBS=$LIBS
9607 LIBS="-lz  $LIBS"
9608 cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h.  */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h.  */
9614
9615 /* Override any GCC internal prototype to avoid an error.
9616    Use char because int might match the return type of a GCC
9617    builtin and then its argument prototype would still apply.  */
9618 #ifdef __cplusplus
9619 extern "C"
9620 #endif
9621 char compress2 ();
9622 int
9623 main ()
9624 {
9625 return compress2 ();
9626   ;
9627   return 0;
9628 }
9629 _ACEOF
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (ac_try="$ac_link"
9632 case "(($ac_try" in
9633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634   *) ac_try_echo=$ac_try;;
9635 esac
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637   (eval "$ac_link") 2>conftest.er1
9638   ac_status=$?
9639   grep -v '^ *+' conftest.er1 >conftest.err
9640   rm -f conftest.er1
9641   cat conftest.err >&5
9642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643   (exit $ac_status); } &&
9644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9645   { (case "(($ac_try" in
9646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647   *) ac_try_echo=$ac_try;;
9648 esac
9649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650   (eval "$ac_try") 2>&5
9651   ac_status=$?
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); }; } &&
9654          { ac_try='test -s conftest$ac_exeext'
9655   { (case "(($ac_try" in
9656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657   *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660   (eval "$ac_try") 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; }; then
9664   ac_cv_lib_z_compress2=yes
9665 else
9666   echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669         ac_cv_lib_z_compress2=no
9670 fi
9671
9672 rm -f core conftest.err conftest.$ac_objext \
9673       conftest$ac_exeext conftest.$ac_ext
9674 LIBS=$ac_check_lib_save_LIBS
9675 fi
9676 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9677 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9678 if test $ac_cv_lib_z_compress2 = yes; then
9679   cat >>confdefs.h <<_ACEOF
9680 #define HAVE_LIBZ 1
9681 _ACEOF
9682
9683   LIBS="-lz $LIBS"
9684
9685 fi
9686
9687 fi
9688
9689
9690 # Check whether --with-oprofile was given.
9691 if test "${with_oprofile+set}" = set; then
9692   withval=$with_oprofile;
9693       USE_OPROFILE=1
9694
9695       case "$withval" in
9696         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9697         no) llvm_cv_oppath=
9698             USE_OPROFILE=0
9699  ;;
9700         *) llvm_cv_oppath="${withval}/lib/oprofile"
9701            CPPFLAGS="-I${withval}/include";;
9702       esac
9703       case $llvm_cv_os_type in
9704         Linux)
9705           if test -n "$llvm_cv_oppath" ; then
9706             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9707                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9708 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9709 if test "${ac_cv_search_bfd_init+set}" = set; then
9710   echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712   ac_func_search_save_LIBS=$LIBS
9713 cat >conftest.$ac_ext <<_ACEOF
9714 /* confdefs.h.  */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h.  */
9719
9720 /* Override any GCC internal prototype to avoid an error.
9721    Use char because int might match the return type of a GCC
9722    builtin and then its argument prototype would still apply.  */
9723 #ifdef __cplusplus
9724 extern "C"
9725 #endif
9726 char bfd_init ();
9727 int
9728 main ()
9729 {
9730 return bfd_init ();
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 for ac_lib in '' bfd; do
9736   if test -z "$ac_lib"; then
9737     ac_res="none required"
9738   else
9739     ac_res=-l$ac_lib
9740     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9741   fi
9742   rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (ac_try="$ac_link"
9744 case "(($ac_try" in
9745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746   *) ac_try_echo=$ac_try;;
9747 esac
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749   (eval "$ac_link") 2>conftest.er1
9750   ac_status=$?
9751   grep -v '^ *+' conftest.er1 >conftest.err
9752   rm -f conftest.er1
9753   cat conftest.err >&5
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); } &&
9756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9757   { (case "(($ac_try" in
9758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759   *) ac_try_echo=$ac_try;;
9760 esac
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762   (eval "$ac_try") 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; } &&
9766          { ac_try='test -s conftest$ac_exeext'
9767   { (case "(($ac_try" in
9768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769   *) ac_try_echo=$ac_try;;
9770 esac
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772   (eval "$ac_try") 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; }; then
9776   ac_cv_search_bfd_init=$ac_res
9777 else
9778   echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9780
9781
9782 fi
9783
9784 rm -f core conftest.err conftest.$ac_objext \
9785       conftest$ac_exeext
9786   if test "${ac_cv_search_bfd_init+set}" = set; then
9787   break
9788 fi
9789 done
9790 if test "${ac_cv_search_bfd_init+set}" = set; then
9791   :
9792 else
9793   ac_cv_search_bfd_init=no
9794 fi
9795 rm conftest.$ac_ext
9796 LIBS=$ac_func_search_save_LIBS
9797 fi
9798 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9799 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9800 ac_res=$ac_cv_search_bfd_init
9801 if test "$ac_res" != no; then
9802   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9803
9804 fi
9805
9806             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9807 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9808 if test "${ac_cv_search_op_open_agent+set}" = set; then
9809   echo $ECHO_N "(cached) $ECHO_C" >&6
9810 else
9811   ac_func_search_save_LIBS=$LIBS
9812 cat >conftest.$ac_ext <<_ACEOF
9813 /* confdefs.h.  */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h.  */
9818
9819 /* Override any GCC internal prototype to avoid an error.
9820    Use char because int might match the return type of a GCC
9821    builtin and then its argument prototype would still apply.  */
9822 #ifdef __cplusplus
9823 extern "C"
9824 #endif
9825 char op_open_agent ();
9826 int
9827 main ()
9828 {
9829 return op_open_agent ();
9830   ;
9831   return 0;
9832 }
9833 _ACEOF
9834 for ac_lib in '' opagent; do
9835   if test -z "$ac_lib"; then
9836     ac_res="none required"
9837   else
9838     ac_res=-l$ac_lib
9839     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9840   fi
9841   rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (ac_try="$ac_link"
9843 case "(($ac_try" in
9844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845   *) ac_try_echo=$ac_try;;
9846 esac
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848   (eval "$ac_link") 2>conftest.er1
9849   ac_status=$?
9850   grep -v '^ *+' conftest.er1 >conftest.err
9851   rm -f conftest.er1
9852   cat conftest.err >&5
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); } &&
9855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9856   { (case "(($ac_try" in
9857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858   *) ac_try_echo=$ac_try;;
9859 esac
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861   (eval "$ac_try") 2>&5
9862   ac_status=$?
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); }; } &&
9865          { ac_try='test -s conftest$ac_exeext'
9866   { (case "(($ac_try" in
9867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868   *) ac_try_echo=$ac_try;;
9869 esac
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871   (eval "$ac_try") 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; }; then
9875   ac_cv_search_op_open_agent=$ac_res
9876 else
9877   echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880
9881 fi
9882
9883 rm -f core conftest.err conftest.$ac_objext \
9884       conftest$ac_exeext
9885   if test "${ac_cv_search_op_open_agent+set}" = set; then
9886   break
9887 fi
9888 done
9889 if test "${ac_cv_search_op_open_agent+set}" = set; then
9890   :
9891 else
9892   ac_cv_search_op_open_agent=no
9893 fi
9894 rm conftest.$ac_ext
9895 LIBS=$ac_func_search_save_LIBS
9896 fi
9897 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9898 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9899 ac_res=$ac_cv_search_op_open_agent
9900 if test "$ac_res" != no; then
9901   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9902
9903 else
9904
9905               echo "Error! You need to have libopagent around."
9906               exit -1
9907
9908 fi
9909
9910             if test "${ac_cv_header_opagent_h+set}" = set; then
9911   { echo "$as_me:$LINENO: checking for opagent.h" >&5
9912 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9913 if test "${ac_cv_header_opagent_h+set}" = set; then
9914   echo $ECHO_N "(cached) $ECHO_C" >&6
9915 fi
9916 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9917 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9918 else
9919   # Is the header compilable?
9920 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9921 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9922 cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h.  */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h.  */
9928 $ac_includes_default
9929 #include <opagent.h>
9930 _ACEOF
9931 rm -f conftest.$ac_objext
9932 if { (ac_try="$ac_compile"
9933 case "(($ac_try" in
9934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935   *) ac_try_echo=$ac_try;;
9936 esac
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938   (eval "$ac_compile") 2>conftest.er1
9939   ac_status=$?
9940   grep -v '^ *+' conftest.er1 >conftest.err
9941   rm -f conftest.er1
9942   cat conftest.err >&5
9943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   (exit $ac_status); } &&
9945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9946   { (case "(($ac_try" in
9947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948   *) ac_try_echo=$ac_try;;
9949 esac
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951   (eval "$ac_try") 2>&5
9952   ac_status=$?
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); }; } &&
9955          { ac_try='test -s conftest.$ac_objext'
9956   { (case "(($ac_try" in
9957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958   *) ac_try_echo=$ac_try;;
9959 esac
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961   (eval "$ac_try") 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); }; }; then
9965   ac_header_compiler=yes
9966 else
9967   echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9969
9970         ac_header_compiler=no
9971 fi
9972
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9975 echo "${ECHO_T}$ac_header_compiler" >&6; }
9976
9977 # Is the header present?
9978 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
9979 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h.  */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h.  */
9986 #include <opagent.h>
9987 _ACEOF
9988 if { (ac_try="$ac_cpp conftest.$ac_ext"
9989 case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9995   ac_status=$?
9996   grep -v '^ *+' conftest.er1 >conftest.err
9997   rm -f conftest.er1
9998   cat conftest.err >&5
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); } >/dev/null; then
10001   if test -s conftest.err; then
10002     ac_cpp_err=$ac_c_preproc_warn_flag
10003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10004   else
10005     ac_cpp_err=
10006   fi
10007 else
10008   ac_cpp_err=yes
10009 fi
10010 if test -z "$ac_cpp_err"; then
10011   ac_header_preproc=yes
10012 else
10013   echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10015
10016   ac_header_preproc=no
10017 fi
10018
10019 rm -f conftest.err conftest.$ac_ext
10020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10021 echo "${ECHO_T}$ac_header_preproc" >&6; }
10022
10023 # So?  What about this header?
10024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10025   yes:no: )
10026     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10027 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10028     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10029 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10030     ac_header_preproc=yes
10031     ;;
10032   no:yes:* )
10033     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10034 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10035     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10036 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10037     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10038 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10039     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10040 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10041     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10042 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10043     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10044 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10045     ( cat <<\_ASBOX
10046 ## ------------------------------------ ##
10047 ## Report this to http://llvm.org/bugs/ ##
10048 ## ------------------------------------ ##
10049 _ASBOX
10050      ) | sed "s/^/$as_me: WARNING:     /" >&2
10051     ;;
10052 esac
10053 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10054 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10055 if test "${ac_cv_header_opagent_h+set}" = set; then
10056   echo $ECHO_N "(cached) $ECHO_C" >&6
10057 else
10058   ac_cv_header_opagent_h=$ac_header_preproc
10059 fi
10060 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10061 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10062
10063 fi
10064 if test $ac_cv_header_opagent_h = yes; then
10065   :
10066 else
10067
10068               echo "Error! You need to have opagent.h around."
10069               exit -1
10070
10071 fi
10072
10073
10074           fi ;;
10075         *)
10076           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10077 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10078    { (exit 1); exit 1; }; } ;;
10079       esac
10080
10081 else
10082
10083       USE_OPROFILE=0
10084
10085
10086 fi
10087
10088
10089 cat >>confdefs.h <<_ACEOF
10090 #define LLVM_USE_OPROFILE $USE_OPROFILE
10091 _ACEOF
10092
10093
10094
10095 # Check whether --with-intel-jitevents was given.
10096 if test "${with_intel_jitevents+set}" = set; then
10097   withval=$with_intel_jitevents;
10098        case "$withval" in
10099           yes) USE_INTEL_JITEVENTS=1
10100 ;;
10101           no)  USE_INTEL_JITEVENTS=0
10102 ;;
10103           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10104 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10105    { (exit 1); exit 1; }; };;
10106        esac
10107
10108       case $llvm_cv_os_type in
10109         Linux|Win32|Cygwin|MingW) ;;
10110         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10111 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10112    { (exit 1); exit 1; }; };;
10113       esac
10114
10115       case "$llvm_cv_target_arch" in
10116         x86|x86_64) ;;
10117         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10118 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10119    { (exit 1); exit 1; }; };;
10120       esac
10121
10122 else
10123
10124       USE_INTEL_JITEVENTS=0
10125
10126
10127 fi
10128
10129
10130 cat >>confdefs.h <<_ACEOF
10131 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10132 _ACEOF
10133
10134
10135 for ac_prog in xml2-config
10136 do
10137   # Extract the first word of "$ac_prog", so it can be a program name with args.
10138 set dummy $ac_prog; ac_word=$2
10139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10141 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10142   echo $ECHO_N "(cached) $ECHO_C" >&6
10143 else
10144   if test -n "$XML2CONFIG"; then
10145   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10146 else
10147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148 for as_dir in $PATH
10149 do
10150   IFS=$as_save_IFS
10151   test -z "$as_dir" && as_dir=.
10152   for ac_exec_ext in '' $ac_executable_extensions; do
10153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10154     ac_cv_prog_XML2CONFIG="$ac_prog"
10155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10156     break 2
10157   fi
10158 done
10159 done
10160 IFS=$as_save_IFS
10161
10162 fi
10163 fi
10164 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10165 if test -n "$XML2CONFIG"; then
10166   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10167 echo "${ECHO_T}$XML2CONFIG" >&6; }
10168 else
10169   { echo "$as_me:$LINENO: result: no" >&5
10170 echo "${ECHO_T}no" >&6; }
10171 fi
10172
10173
10174   test -n "$XML2CONFIG" && break
10175 done
10176
10177
10178 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10179 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10180 if test "x$XML2CONFIG" = "x"; then
10181  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10182 echo "${ECHO_T}xml2-config not found" >&6; }
10183 else
10184  LIBXML2_INC=`$XML2CONFIG --cflags`
10185  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10186 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10187  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10188 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10189 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10190   echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192   ac_check_lib_save_LIBS=$LIBS
10193 LIBS="-lxml2  $LIBS"
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h.  */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h.  */
10200
10201 /* Override any GCC internal prototype to avoid an error.
10202    Use char because int might match the return type of a GCC
10203    builtin and then its argument prototype would still apply.  */
10204 #ifdef __cplusplus
10205 extern "C"
10206 #endif
10207 char xmlReadFile ();
10208 int
10209 main ()
10210 {
10211 return xmlReadFile ();
10212   ;
10213   return 0;
10214 }
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (ac_try="$ac_link"
10218 case "(($ac_try" in
10219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220   *) ac_try_echo=$ac_try;;
10221 esac
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223   (eval "$ac_link") 2>conftest.er1
10224   ac_status=$?
10225   grep -v '^ *+' conftest.er1 >conftest.err
10226   rm -f conftest.er1
10227   cat conftest.err >&5
10228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229   (exit $ac_status); } &&
10230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10231   { (case "(($ac_try" in
10232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233   *) ac_try_echo=$ac_try;;
10234 esac
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236   (eval "$ac_try") 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); }; } &&
10240          { ac_try='test -s conftest$ac_exeext'
10241   { (case "(($ac_try" in
10242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243   *) ac_try_echo=$ac_try;;
10244 esac
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246   (eval "$ac_try") 2>&5
10247   ac_status=$?
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); }; }; then
10250   ac_cv_lib_xml2_xmlReadFile=yes
10251 else
10252   echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10254
10255         ac_cv_lib_xml2_xmlReadFile=no
10256 fi
10257
10258 rm -f core conftest.err conftest.$ac_objext \
10259       conftest$ac_exeext conftest.$ac_ext
10260 LIBS=$ac_check_lib_save_LIBS
10261 fi
10262 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10263 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10264 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10265
10266 cat >>confdefs.h <<\_ACEOF
10267 #define CLANG_HAVE_LIBXML 1
10268 _ACEOF
10269
10270                                 LIBXML2_LIBS="-lxml2"
10271 fi
10272
10273 fi
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283 ac_header_dirent=no
10284 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10285   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10286 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10287 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10289   echo $ECHO_N "(cached) $ECHO_C" >&6
10290 else
10291   cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h.  */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h.  */
10297 #include <sys/types.h>
10298 #include <$ac_hdr>
10299
10300 int
10301 main ()
10302 {
10303 if ((DIR *) 0)
10304 return 0;
10305   ;
10306   return 0;
10307 }
10308 _ACEOF
10309 rm -f conftest.$ac_objext
10310 if { (ac_try="$ac_compile"
10311 case "(($ac_try" in
10312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313   *) ac_try_echo=$ac_try;;
10314 esac
10315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316   (eval "$ac_compile") 2>conftest.er1
10317   ac_status=$?
10318   grep -v '^ *+' conftest.er1 >conftest.err
10319   rm -f conftest.er1
10320   cat conftest.err >&5
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); } &&
10323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10324   { (case "(($ac_try" in
10325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326   *) ac_try_echo=$ac_try;;
10327 esac
10328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329   (eval "$ac_try") 2>&5
10330   ac_status=$?
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); }; } &&
10333          { ac_try='test -s conftest.$ac_objext'
10334   { (case "(($ac_try" in
10335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336   *) ac_try_echo=$ac_try;;
10337 esac
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339   (eval "$ac_try") 2>&5
10340   ac_status=$?
10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342   (exit $ac_status); }; }; then
10343   eval "$as_ac_Header=yes"
10344 else
10345   echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10347
10348         eval "$as_ac_Header=no"
10349 fi
10350
10351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10352 fi
10353 ac_res=`eval echo '${'$as_ac_Header'}'`
10354                { echo "$as_me:$LINENO: result: $ac_res" >&5
10355 echo "${ECHO_T}$ac_res" >&6; }
10356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10357   cat >>confdefs.h <<_ACEOF
10358 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10359 _ACEOF
10360
10361 ac_header_dirent=$ac_hdr; break
10362 fi
10363
10364 done
10365 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10366 if test $ac_header_dirent = dirent.h; then
10367   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10368 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10369 if test "${ac_cv_search_opendir+set}" = set; then
10370   echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
10372   ac_func_search_save_LIBS=$LIBS
10373 cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h.  */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h.  */
10379
10380 /* Override any GCC internal prototype to avoid an error.
10381    Use char because int might match the return type of a GCC
10382    builtin and then its argument prototype would still apply.  */
10383 #ifdef __cplusplus
10384 extern "C"
10385 #endif
10386 char opendir ();
10387 int
10388 main ()
10389 {
10390 return opendir ();
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 for ac_lib in '' dir; do
10396   if test -z "$ac_lib"; then
10397     ac_res="none required"
10398   else
10399     ac_res=-l$ac_lib
10400     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10401   fi
10402   rm -f conftest.$ac_objext conftest$ac_exeext
10403 if { (ac_try="$ac_link"
10404 case "(($ac_try" in
10405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406   *) ac_try_echo=$ac_try;;
10407 esac
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409   (eval "$ac_link") 2>conftest.er1
10410   ac_status=$?
10411   grep -v '^ *+' conftest.er1 >conftest.err
10412   rm -f conftest.er1
10413   cat conftest.err >&5
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); } &&
10416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10417   { (case "(($ac_try" in
10418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419   *) ac_try_echo=$ac_try;;
10420 esac
10421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422   (eval "$ac_try") 2>&5
10423   ac_status=$?
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); }; } &&
10426          { ac_try='test -s conftest$ac_exeext'
10427   { (case "(($ac_try" in
10428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429   *) ac_try_echo=$ac_try;;
10430 esac
10431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10432   (eval "$ac_try") 2>&5
10433   ac_status=$?
10434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435   (exit $ac_status); }; }; then
10436   ac_cv_search_opendir=$ac_res
10437 else
10438   echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10440
10441
10442 fi
10443
10444 rm -f core conftest.err conftest.$ac_objext \
10445       conftest$ac_exeext
10446   if test "${ac_cv_search_opendir+set}" = set; then
10447   break
10448 fi
10449 done
10450 if test "${ac_cv_search_opendir+set}" = set; then
10451   :
10452 else
10453   ac_cv_search_opendir=no
10454 fi
10455 rm conftest.$ac_ext
10456 LIBS=$ac_func_search_save_LIBS
10457 fi
10458 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10459 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10460 ac_res=$ac_cv_search_opendir
10461 if test "$ac_res" != no; then
10462   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10463
10464 fi
10465
10466 else
10467   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10468 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10469 if test "${ac_cv_search_opendir+set}" = set; then
10470   echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472   ac_func_search_save_LIBS=$LIBS
10473 cat >conftest.$ac_ext <<_ACEOF
10474 /* confdefs.h.  */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h.  */
10479
10480 /* Override any GCC internal prototype to avoid an error.
10481    Use char because int might match the return type of a GCC
10482    builtin and then its argument prototype would still apply.  */
10483 #ifdef __cplusplus
10484 extern "C"
10485 #endif
10486 char opendir ();
10487 int
10488 main ()
10489 {
10490 return opendir ();
10491   ;
10492   return 0;
10493 }
10494 _ACEOF
10495 for ac_lib in '' x; do
10496   if test -z "$ac_lib"; then
10497     ac_res="none required"
10498   else
10499     ac_res=-l$ac_lib
10500     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10501   fi
10502   rm -f conftest.$ac_objext conftest$ac_exeext
10503 if { (ac_try="$ac_link"
10504 case "(($ac_try" in
10505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10506   *) ac_try_echo=$ac_try;;
10507 esac
10508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10509   (eval "$ac_link") 2>conftest.er1
10510   ac_status=$?
10511   grep -v '^ *+' conftest.er1 >conftest.err
10512   rm -f conftest.er1
10513   cat conftest.err >&5
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); } &&
10516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10517   { (case "(($ac_try" in
10518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519   *) ac_try_echo=$ac_try;;
10520 esac
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522   (eval "$ac_try") 2>&5
10523   ac_status=$?
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); }; } &&
10526          { ac_try='test -s conftest$ac_exeext'
10527   { (case "(($ac_try" in
10528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529   *) ac_try_echo=$ac_try;;
10530 esac
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532   (eval "$ac_try") 2>&5
10533   ac_status=$?
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); }; }; then
10536   ac_cv_search_opendir=$ac_res
10537 else
10538   echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10540
10541
10542 fi
10543
10544 rm -f core conftest.err conftest.$ac_objext \
10545       conftest$ac_exeext
10546   if test "${ac_cv_search_opendir+set}" = set; then
10547   break
10548 fi
10549 done
10550 if test "${ac_cv_search_opendir+set}" = set; then
10551   :
10552 else
10553   ac_cv_search_opendir=no
10554 fi
10555 rm conftest.$ac_ext
10556 LIBS=$ac_func_search_save_LIBS
10557 fi
10558 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10559 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10560 ac_res=$ac_cv_search_opendir
10561 if test "$ac_res" != no; then
10562   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10563
10564 fi
10565
10566 fi
10567
10568 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10569 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10570 if test "${ac_cv_header_mmap_anon+set}" = set; then
10571   echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573    ac_ext=c
10574 ac_cpp='$CPP $CPPFLAGS'
10575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10578
10579   cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h.  */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h.  */
10585 #include <sys/mman.h>
10586 #include <unistd.h>
10587 #include <fcntl.h>
10588 int
10589 main ()
10590 {
10591 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10592   ;
10593   return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.$ac_objext
10597 if { (ac_try="$ac_compile"
10598 case "(($ac_try" in
10599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600   *) ac_try_echo=$ac_try;;
10601 esac
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603   (eval "$ac_compile") 2>conftest.er1
10604   ac_status=$?
10605   grep -v '^ *+' conftest.er1 >conftest.err
10606   rm -f conftest.er1
10607   cat conftest.err >&5
10608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); } &&
10610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10611   { (case "(($ac_try" in
10612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613   *) ac_try_echo=$ac_try;;
10614 esac
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616   (eval "$ac_try") 2>&5
10617   ac_status=$?
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); }; } &&
10620          { ac_try='test -s conftest.$ac_objext'
10621   { (case "(($ac_try" in
10622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623   *) ac_try_echo=$ac_try;;
10624 esac
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626   (eval "$ac_try") 2>&5
10627   ac_status=$?
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); }; }; then
10630   ac_cv_header_mmap_anon=yes
10631 else
10632   echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10634
10635         ac_cv_header_mmap_anon=no
10636 fi
10637
10638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10639   ac_ext=c
10640 ac_cpp='$CPP $CPPFLAGS'
10641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10644
10645
10646 fi
10647 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10648 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10649 if test "$ac_cv_header_mmap_anon" = yes; then
10650
10651 cat >>confdefs.h <<\_ACEOF
10652 #define HAVE_MMAP_ANONYMOUS 1
10653 _ACEOF
10654
10655 fi
10656
10657 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10658 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10659 if test "${ac_cv_header_stat_broken+set}" = set; then
10660   echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662   cat >conftest.$ac_ext <<_ACEOF
10663 /* confdefs.h.  */
10664 _ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h.  */
10668 #include <sys/types.h>
10669 #include <sys/stat.h>
10670
10671 #if defined S_ISBLK && defined S_IFDIR
10672 # if S_ISBLK (S_IFDIR)
10673 You lose.
10674 # endif
10675 #endif
10676
10677 #if defined S_ISBLK && defined S_IFCHR
10678 # if S_ISBLK (S_IFCHR)
10679 You lose.
10680 # endif
10681 #endif
10682
10683 #if defined S_ISLNK && defined S_IFREG
10684 # if S_ISLNK (S_IFREG)
10685 You lose.
10686 # endif
10687 #endif
10688
10689 #if defined S_ISSOCK && defined S_IFREG
10690 # if S_ISSOCK (S_IFREG)
10691 You lose.
10692 # endif
10693 #endif
10694
10695 _ACEOF
10696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10697   $EGREP "You lose" >/dev/null 2>&1; then
10698   ac_cv_header_stat_broken=yes
10699 else
10700   ac_cv_header_stat_broken=no
10701 fi
10702 rm -f conftest*
10703
10704 fi
10705 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10706 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10707 if test $ac_cv_header_stat_broken = yes; then
10708
10709 cat >>confdefs.h <<\_ACEOF
10710 #define STAT_MACROS_BROKEN 1
10711 _ACEOF
10712
10713 fi
10714
10715 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10716 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10717 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10718   echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720   cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h.  */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h.  */
10726 #include <sys/types.h>
10727 #include <sys/wait.h>
10728 #ifndef WEXITSTATUS
10729 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10730 #endif
10731 #ifndef WIFEXITED
10732 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10733 #endif
10734
10735 int
10736 main ()
10737 {
10738   int s;
10739   wait (&s);
10740   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749   *) ac_try_echo=$ac_try;;
10750 esac
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752   (eval "$ac_compile") 2>conftest.er1
10753   ac_status=$?
10754   grep -v '^ *+' conftest.er1 >conftest.err
10755   rm -f conftest.er1
10756   cat conftest.err >&5
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); } &&
10759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10760   { (case "(($ac_try" in
10761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762   *) ac_try_echo=$ac_try;;
10763 esac
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765   (eval "$ac_try") 2>&5
10766   ac_status=$?
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); }; } &&
10769          { ac_try='test -s conftest.$ac_objext'
10770   { (case "(($ac_try" in
10771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772   *) ac_try_echo=$ac_try;;
10773 esac
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775   (eval "$ac_try") 2>&5
10776   ac_status=$?
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); }; }; then
10779   ac_cv_header_sys_wait_h=yes
10780 else
10781   echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10783
10784         ac_cv_header_sys_wait_h=no
10785 fi
10786
10787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788 fi
10789 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10790 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10791 if test $ac_cv_header_sys_wait_h = yes; then
10792
10793 cat >>confdefs.h <<\_ACEOF
10794 #define HAVE_SYS_WAIT_H 1
10795 _ACEOF
10796
10797 fi
10798
10799 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10800 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10801 if test "${ac_cv_header_time+set}" = set; then
10802   echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804   cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h.  */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h.  */
10810 #include <sys/types.h>
10811 #include <sys/time.h>
10812 #include <time.h>
10813
10814 int
10815 main ()
10816 {
10817 if ((struct tm *) 0)
10818 return 0;
10819   ;
10820   return 0;
10821 }
10822 _ACEOF
10823 rm -f conftest.$ac_objext
10824 if { (ac_try="$ac_compile"
10825 case "(($ac_try" in
10826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827   *) ac_try_echo=$ac_try;;
10828 esac
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830   (eval "$ac_compile") 2>conftest.er1
10831   ac_status=$?
10832   grep -v '^ *+' conftest.er1 >conftest.err
10833   rm -f conftest.er1
10834   cat conftest.err >&5
10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836   (exit $ac_status); } &&
10837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838   { (case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843   (eval "$ac_try") 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; } &&
10847          { ac_try='test -s conftest.$ac_objext'
10848   { (case "(($ac_try" in
10849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850   *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853   (eval "$ac_try") 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); }; }; then
10857   ac_cv_header_time=yes
10858 else
10859   echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862         ac_cv_header_time=no
10863 fi
10864
10865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10866 fi
10867 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10868 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10869 if test $ac_cv_header_time = yes; then
10870
10871 cat >>confdefs.h <<\_ACEOF
10872 #define TIME_WITH_SYS_TIME 1
10873 _ACEOF
10874
10875 fi
10876
10877
10878 ac_ext=cpp
10879 ac_cpp='$CXXCPP $CPPFLAGS'
10880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10883
10884
10885 for ac_header in cxxabi.h
10886 do
10887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10891   echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893   cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h.  */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h.  */
10899 #include <stddef.h>
10900
10901
10902 #include <$ac_header>
10903 _ACEOF
10904 rm -f conftest.$ac_objext
10905 if { (ac_try="$ac_compile"
10906 case "(($ac_try" in
10907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908   *) ac_try_echo=$ac_try;;
10909 esac
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911   (eval "$ac_compile") 2>conftest.er1
10912   ac_status=$?
10913   grep -v '^ *+' conftest.er1 >conftest.err
10914   rm -f conftest.er1
10915   cat conftest.err >&5
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); } &&
10918          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10919   { (case "(($ac_try" in
10920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921   *) ac_try_echo=$ac_try;;
10922 esac
10923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924   (eval "$ac_try") 2>&5
10925   ac_status=$?
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); }; } &&
10928          { ac_try='test -s conftest.$ac_objext'
10929   { (case "(($ac_try" in
10930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931   *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934   (eval "$ac_try") 2>&5
10935   ac_status=$?
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); }; }; then
10938   eval "$as_ac_Header=yes"
10939 else
10940   echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10942
10943         eval "$as_ac_Header=no"
10944 fi
10945
10946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10947 fi
10948 ac_res=`eval echo '${'$as_ac_Header'}'`
10949                { echo "$as_me:$LINENO: result: $ac_res" >&5
10950 echo "${ECHO_T}$ac_res" >&6; }
10951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10952   cat >>confdefs.h <<_ACEOF
10953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10954 _ACEOF
10955
10956 fi
10957
10958 done
10959
10960 ac_ext=c
10961 ac_cpp='$CPP $CPPFLAGS'
10962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10965
10966
10967
10968
10969
10970
10971
10972 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
10973 do
10974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10976   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10979   echo $ECHO_N "(cached) $ECHO_C" >&6
10980 fi
10981 ac_res=`eval echo '${'$as_ac_Header'}'`
10982                { echo "$as_me:$LINENO: result: $ac_res" >&5
10983 echo "${ECHO_T}$ac_res" >&6; }
10984 else
10985   # Is the header compilable?
10986 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10988 cat >conftest.$ac_ext <<_ACEOF
10989 /* confdefs.h.  */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h.  */
10994 $ac_includes_default
10995 #include <$ac_header>
10996 _ACEOF
10997 rm -f conftest.$ac_objext
10998 if { (ac_try="$ac_compile"
10999 case "(($ac_try" in
11000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001   *) ac_try_echo=$ac_try;;
11002 esac
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004   (eval "$ac_compile") 2>conftest.er1
11005   ac_status=$?
11006   grep -v '^ *+' conftest.er1 >conftest.err
11007   rm -f conftest.er1
11008   cat conftest.err >&5
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); } &&
11011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11012   { (case "(($ac_try" in
11013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014   *) ac_try_echo=$ac_try;;
11015 esac
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017   (eval "$ac_try") 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); }; } &&
11021          { ac_try='test -s conftest.$ac_objext'
11022   { (case "(($ac_try" in
11023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024   *) ac_try_echo=$ac_try;;
11025 esac
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027   (eval "$ac_try") 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); }; }; then
11031   ac_header_compiler=yes
11032 else
11033   echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11035
11036         ac_header_compiler=no
11037 fi
11038
11039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11041 echo "${ECHO_T}$ac_header_compiler" >&6; }
11042
11043 # Is the header present?
11044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11046 cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h.  */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h.  */
11052 #include <$ac_header>
11053 _ACEOF
11054 if { (ac_try="$ac_cpp conftest.$ac_ext"
11055 case "(($ac_try" in
11056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057   *) ac_try_echo=$ac_try;;
11058 esac
11059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11061   ac_status=$?
11062   grep -v '^ *+' conftest.er1 >conftest.err
11063   rm -f conftest.er1
11064   cat conftest.err >&5
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); } >/dev/null; then
11067   if test -s conftest.err; then
11068     ac_cpp_err=$ac_c_preproc_warn_flag
11069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11070   else
11071     ac_cpp_err=
11072   fi
11073 else
11074   ac_cpp_err=yes
11075 fi
11076 if test -z "$ac_cpp_err"; then
11077   ac_header_preproc=yes
11078 else
11079   echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11081
11082   ac_header_preproc=no
11083 fi
11084
11085 rm -f conftest.err conftest.$ac_ext
11086 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11087 echo "${ECHO_T}$ac_header_preproc" >&6; }
11088
11089 # So?  What about this header?
11090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11091   yes:no: )
11092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11096     ac_header_preproc=yes
11097     ;;
11098   no:yes:* )
11099     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11101     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11102 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11103     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11105     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11106 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11109     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11111     ( cat <<\_ASBOX
11112 ## ------------------------------------ ##
11113 ## Report this to http://llvm.org/bugs/ ##
11114 ## ------------------------------------ ##
11115 _ASBOX
11116      ) | sed "s/^/$as_me: WARNING:     /" >&2
11117     ;;
11118 esac
11119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11122   echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11124   eval "$as_ac_Header=\$ac_header_preproc"
11125 fi
11126 ac_res=`eval echo '${'$as_ac_Header'}'`
11127                { echo "$as_me:$LINENO: result: $ac_res" >&5
11128 echo "${ECHO_T}$ac_res" >&6; }
11129
11130 fi
11131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11132   cat >>confdefs.h <<_ACEOF
11133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11134 _ACEOF
11135
11136 fi
11137
11138 done
11139
11140
11141
11142
11143
11144
11145
11146 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11147 do
11148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153   echo $ECHO_N "(cached) $ECHO_C" >&6
11154 fi
11155 ac_res=`eval echo '${'$as_ac_Header'}'`
11156                { echo "$as_me:$LINENO: result: $ac_res" >&5
11157 echo "${ECHO_T}$ac_res" >&6; }
11158 else
11159   # Is the header compilable?
11160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11162 cat >conftest.$ac_ext <<_ACEOF
11163 /* confdefs.h.  */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h.  */
11168 $ac_includes_default
11169 #include <$ac_header>
11170 _ACEOF
11171 rm -f conftest.$ac_objext
11172 if { (ac_try="$ac_compile"
11173 case "(($ac_try" in
11174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175   *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178   (eval "$ac_compile") 2>conftest.er1
11179   ac_status=$?
11180   grep -v '^ *+' conftest.er1 >conftest.err
11181   rm -f conftest.er1
11182   cat conftest.err >&5
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); } &&
11185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11186   { (case "(($ac_try" in
11187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188   *) ac_try_echo=$ac_try;;
11189 esac
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191   (eval "$ac_try") 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); }; } &&
11195          { ac_try='test -s conftest.$ac_objext'
11196   { (case "(($ac_try" in
11197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198   *) ac_try_echo=$ac_try;;
11199 esac
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201   (eval "$ac_try") 2>&5
11202   ac_status=$?
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   (exit $ac_status); }; }; then
11205   ac_header_compiler=yes
11206 else
11207   echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11209
11210         ac_header_compiler=no
11211 fi
11212
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11215 echo "${ECHO_T}$ac_header_compiler" >&6; }
11216
11217 # Is the header present?
11218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11220 cat >conftest.$ac_ext <<_ACEOF
11221 /* confdefs.h.  */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h.  */
11226 #include <$ac_header>
11227 _ACEOF
11228 if { (ac_try="$ac_cpp conftest.$ac_ext"
11229 case "(($ac_try" in
11230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231   *) ac_try_echo=$ac_try;;
11232 esac
11233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11235   ac_status=$?
11236   grep -v '^ *+' conftest.er1 >conftest.err
11237   rm -f conftest.er1
11238   cat conftest.err >&5
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); } >/dev/null; then
11241   if test -s conftest.err; then
11242     ac_cpp_err=$ac_c_preproc_warn_flag
11243     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11244   else
11245     ac_cpp_err=
11246   fi
11247 else
11248   ac_cpp_err=yes
11249 fi
11250 if test -z "$ac_cpp_err"; then
11251   ac_header_preproc=yes
11252 else
11253   echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11255
11256   ac_header_preproc=no
11257 fi
11258
11259 rm -f conftest.err conftest.$ac_ext
11260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11261 echo "${ECHO_T}$ac_header_preproc" >&6; }
11262
11263 # So?  What about this header?
11264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11265   yes:no: )
11266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11270     ac_header_preproc=yes
11271     ;;
11272   no:yes:* )
11273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11285     ( cat <<\_ASBOX
11286 ## ------------------------------------ ##
11287 ## Report this to http://llvm.org/bugs/ ##
11288 ## ------------------------------------ ##
11289 _ASBOX
11290      ) | sed "s/^/$as_me: WARNING:     /" >&2
11291     ;;
11292 esac
11293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296   echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298   eval "$as_ac_Header=\$ac_header_preproc"
11299 fi
11300 ac_res=`eval echo '${'$as_ac_Header'}'`
11301                { echo "$as_me:$LINENO: result: $ac_res" >&5
11302 echo "${ECHO_T}$ac_res" >&6; }
11303
11304 fi
11305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11306   cat >>confdefs.h <<_ACEOF
11307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11308 _ACEOF
11309
11310 fi
11311
11312 done
11313
11314
11315 for ac_header in utime.h
11316 do
11317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11319   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322   echo $ECHO_N "(cached) $ECHO_C" >&6
11323 fi
11324 ac_res=`eval echo '${'$as_ac_Header'}'`
11325                { echo "$as_me:$LINENO: result: $ac_res" >&5
11326 echo "${ECHO_T}$ac_res" >&6; }
11327 else
11328   # Is the header compilable?
11329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11331 cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h.  */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h.  */
11337 $ac_includes_default
11338 #include <$ac_header>
11339 _ACEOF
11340 rm -f conftest.$ac_objext
11341 if { (ac_try="$ac_compile"
11342 case "(($ac_try" in
11343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344   *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347   (eval "$ac_compile") 2>conftest.er1
11348   ac_status=$?
11349   grep -v '^ *+' conftest.er1 >conftest.err
11350   rm -f conftest.er1
11351   cat conftest.err >&5
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); } &&
11354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11355   { (case "(($ac_try" in
11356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357   *) ac_try_echo=$ac_try;;
11358 esac
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360   (eval "$ac_try") 2>&5
11361   ac_status=$?
11362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363   (exit $ac_status); }; } &&
11364          { ac_try='test -s conftest.$ac_objext'
11365   { (case "(($ac_try" in
11366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367   *) ac_try_echo=$ac_try;;
11368 esac
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370   (eval "$ac_try") 2>&5
11371   ac_status=$?
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); }; }; then
11374   ac_header_compiler=yes
11375 else
11376   echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11378
11379         ac_header_compiler=no
11380 fi
11381
11382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11384 echo "${ECHO_T}$ac_header_compiler" >&6; }
11385
11386 # Is the header present?
11387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11389 cat >conftest.$ac_ext <<_ACEOF
11390 /* confdefs.h.  */
11391 _ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h.  */
11395 #include <$ac_header>
11396 _ACEOF
11397 if { (ac_try="$ac_cpp conftest.$ac_ext"
11398 case "(($ac_try" in
11399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400   *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11404   ac_status=$?
11405   grep -v '^ *+' conftest.er1 >conftest.err
11406   rm -f conftest.er1
11407   cat conftest.err >&5
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); } >/dev/null; then
11410   if test -s conftest.err; then
11411     ac_cpp_err=$ac_c_preproc_warn_flag
11412     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11413   else
11414     ac_cpp_err=
11415   fi
11416 else
11417   ac_cpp_err=yes
11418 fi
11419 if test -z "$ac_cpp_err"; then
11420   ac_header_preproc=yes
11421 else
11422   echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11424
11425   ac_header_preproc=no
11426 fi
11427
11428 rm -f conftest.err conftest.$ac_ext
11429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11430 echo "${ECHO_T}$ac_header_preproc" >&6; }
11431
11432 # So?  What about this header?
11433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11434   yes:no: )
11435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11439     ac_header_preproc=yes
11440     ;;
11441   no:yes:* )
11442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11454     ( cat <<\_ASBOX
11455 ## ------------------------------------ ##
11456 ## Report this to http://llvm.org/bugs/ ##
11457 ## ------------------------------------ ##
11458 _ASBOX
11459      ) | sed "s/^/$as_me: WARNING:     /" >&2
11460     ;;
11461 esac
11462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11465   echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467   eval "$as_ac_Header=\$ac_header_preproc"
11468 fi
11469 ac_res=`eval echo '${'$as_ac_Header'}'`
11470                { echo "$as_me:$LINENO: result: $ac_res" >&5
11471 echo "${ECHO_T}$ac_res" >&6; }
11472
11473 fi
11474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11475   cat >>confdefs.h <<_ACEOF
11476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11477 _ACEOF
11478
11479 fi
11480
11481 done
11482
11483
11484
11485
11486
11487
11488 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11489 do
11490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495   echo $ECHO_N "(cached) $ECHO_C" >&6
11496 fi
11497 ac_res=`eval echo '${'$as_ac_Header'}'`
11498                { echo "$as_me:$LINENO: result: $ac_res" >&5
11499 echo "${ECHO_T}$ac_res" >&6; }
11500 else
11501   # Is the header compilable?
11502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h.  */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h.  */
11510 $ac_includes_default
11511 #include <$ac_header>
11512 _ACEOF
11513 rm -f conftest.$ac_objext
11514 if { (ac_try="$ac_compile"
11515 case "(($ac_try" in
11516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517   *) ac_try_echo=$ac_try;;
11518 esac
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520   (eval "$ac_compile") 2>conftest.er1
11521   ac_status=$?
11522   grep -v '^ *+' conftest.er1 >conftest.err
11523   rm -f conftest.er1
11524   cat conftest.err >&5
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); } &&
11527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11528   { (case "(($ac_try" in
11529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530   *) ac_try_echo=$ac_try;;
11531 esac
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533   (eval "$ac_try") 2>&5
11534   ac_status=$?
11535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); }; } &&
11537          { ac_try='test -s conftest.$ac_objext'
11538   { (case "(($ac_try" in
11539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540   *) ac_try_echo=$ac_try;;
11541 esac
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543   (eval "$ac_try") 2>&5
11544   ac_status=$?
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); }; }; then
11547   ac_header_compiler=yes
11548 else
11549   echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11551
11552         ac_header_compiler=no
11553 fi
11554
11555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11557 echo "${ECHO_T}$ac_header_compiler" >&6; }
11558
11559 # Is the header present?
11560 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11562 cat >conftest.$ac_ext <<_ACEOF
11563 /* confdefs.h.  */
11564 _ACEOF
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h.  */
11568 #include <$ac_header>
11569 _ACEOF
11570 if { (ac_try="$ac_cpp conftest.$ac_ext"
11571 case "(($ac_try" in
11572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573   *) ac_try_echo=$ac_try;;
11574 esac
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11577   ac_status=$?
11578   grep -v '^ *+' conftest.er1 >conftest.err
11579   rm -f conftest.er1
11580   cat conftest.err >&5
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); } >/dev/null; then
11583   if test -s conftest.err; then
11584     ac_cpp_err=$ac_c_preproc_warn_flag
11585     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11586   else
11587     ac_cpp_err=
11588   fi
11589 else
11590   ac_cpp_err=yes
11591 fi
11592 if test -z "$ac_cpp_err"; then
11593   ac_header_preproc=yes
11594 else
11595   echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11597
11598   ac_header_preproc=no
11599 fi
11600
11601 rm -f conftest.err conftest.$ac_ext
11602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11603 echo "${ECHO_T}$ac_header_preproc" >&6; }
11604
11605 # So?  What about this header?
11606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11607   yes:no: )
11608     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11612     ac_header_preproc=yes
11613     ;;
11614   no:yes:* )
11615     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11617     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11618 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11619     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11621     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11622 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11625     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11627     ( cat <<\_ASBOX
11628 ## ------------------------------------ ##
11629 ## Report this to http://llvm.org/bugs/ ##
11630 ## ------------------------------------ ##
11631 _ASBOX
11632      ) | sed "s/^/$as_me: WARNING:     /" >&2
11633     ;;
11634 esac
11635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11638   echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640   eval "$as_ac_Header=\$ac_header_preproc"
11641 fi
11642 ac_res=`eval echo '${'$as_ac_Header'}'`
11643                { echo "$as_me:$LINENO: result: $ac_res" >&5
11644 echo "${ECHO_T}$ac_res" >&6; }
11645
11646 fi
11647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11648   cat >>confdefs.h <<_ACEOF
11649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11650 _ACEOF
11651
11652 fi
11653
11654 done
11655
11656
11657
11658
11659 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11660 do
11661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11663   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11666   echo $ECHO_N "(cached) $ECHO_C" >&6
11667 fi
11668 ac_res=`eval echo '${'$as_ac_Header'}'`
11669                { echo "$as_me:$LINENO: result: $ac_res" >&5
11670 echo "${ECHO_T}$ac_res" >&6; }
11671 else
11672   # Is the header compilable?
11673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11675 cat >conftest.$ac_ext <<_ACEOF
11676 /* confdefs.h.  */
11677 _ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h.  */
11681 $ac_includes_default
11682 #include <$ac_header>
11683 _ACEOF
11684 rm -f conftest.$ac_objext
11685 if { (ac_try="$ac_compile"
11686 case "(($ac_try" in
11687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688   *) ac_try_echo=$ac_try;;
11689 esac
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691   (eval "$ac_compile") 2>conftest.er1
11692   ac_status=$?
11693   grep -v '^ *+' conftest.er1 >conftest.err
11694   rm -f conftest.er1
11695   cat conftest.err >&5
11696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697   (exit $ac_status); } &&
11698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11699   { (case "(($ac_try" in
11700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701   *) ac_try_echo=$ac_try;;
11702 esac
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704   (eval "$ac_try") 2>&5
11705   ac_status=$?
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); }; } &&
11708          { ac_try='test -s conftest.$ac_objext'
11709   { (case "(($ac_try" in
11710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711   *) ac_try_echo=$ac_try;;
11712 esac
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714   (eval "$ac_try") 2>&5
11715   ac_status=$?
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); }; }; then
11718   ac_header_compiler=yes
11719 else
11720   echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11722
11723         ac_header_compiler=no
11724 fi
11725
11726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11728 echo "${ECHO_T}$ac_header_compiler" >&6; }
11729
11730 # Is the header present?
11731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11733 cat >conftest.$ac_ext <<_ACEOF
11734 /* confdefs.h.  */
11735 _ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h.  */
11739 #include <$ac_header>
11740 _ACEOF
11741 if { (ac_try="$ac_cpp conftest.$ac_ext"
11742 case "(($ac_try" in
11743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744   *) ac_try_echo=$ac_try;;
11745 esac
11746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11748   ac_status=$?
11749   grep -v '^ *+' conftest.er1 >conftest.err
11750   rm -f conftest.er1
11751   cat conftest.err >&5
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); } >/dev/null; then
11754   if test -s conftest.err; then
11755     ac_cpp_err=$ac_c_preproc_warn_flag
11756     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11757   else
11758     ac_cpp_err=
11759   fi
11760 else
11761   ac_cpp_err=yes
11762 fi
11763 if test -z "$ac_cpp_err"; then
11764   ac_header_preproc=yes
11765 else
11766   echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11768
11769   ac_header_preproc=no
11770 fi
11771
11772 rm -f conftest.err conftest.$ac_ext
11773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11774 echo "${ECHO_T}$ac_header_preproc" >&6; }
11775
11776 # So?  What about this header?
11777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11778   yes:no: )
11779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11783     ac_header_preproc=yes
11784     ;;
11785   no:yes:* )
11786     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11788     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11789 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11790     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11792     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11793 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11796     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11798     ( cat <<\_ASBOX
11799 ## ------------------------------------ ##
11800 ## Report this to http://llvm.org/bugs/ ##
11801 ## ------------------------------------ ##
11802 _ASBOX
11803      ) | sed "s/^/$as_me: WARNING:     /" >&2
11804     ;;
11805 esac
11806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11809   echo $ECHO_N "(cached) $ECHO_C" >&6
11810 else
11811   eval "$as_ac_Header=\$ac_header_preproc"
11812 fi
11813 ac_res=`eval echo '${'$as_ac_Header'}'`
11814                { echo "$as_me:$LINENO: result: $ac_res" >&5
11815 echo "${ECHO_T}$ac_res" >&6; }
11816
11817 fi
11818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11819   cat >>confdefs.h <<_ACEOF
11820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11821 _ACEOF
11822
11823 fi
11824
11825 done
11826
11827
11828 for ac_header in valgrind/valgrind.h
11829 do
11830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11832   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11835   echo $ECHO_N "(cached) $ECHO_C" >&6
11836 fi
11837 ac_res=`eval echo '${'$as_ac_Header'}'`
11838                { echo "$as_me:$LINENO: result: $ac_res" >&5
11839 echo "${ECHO_T}$ac_res" >&6; }
11840 else
11841   # Is the header compilable?
11842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11844 cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h.  */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h.  */
11850 $ac_includes_default
11851 #include <$ac_header>
11852 _ACEOF
11853 rm -f conftest.$ac_objext
11854 if { (ac_try="$ac_compile"
11855 case "(($ac_try" in
11856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857   *) ac_try_echo=$ac_try;;
11858 esac
11859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860   (eval "$ac_compile") 2>conftest.er1
11861   ac_status=$?
11862   grep -v '^ *+' conftest.er1 >conftest.err
11863   rm -f conftest.er1
11864   cat conftest.err >&5
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); } &&
11867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11868   { (case "(($ac_try" in
11869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870   *) ac_try_echo=$ac_try;;
11871 esac
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873   (eval "$ac_try") 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); }; } &&
11877          { ac_try='test -s conftest.$ac_objext'
11878   { (case "(($ac_try" in
11879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880   *) ac_try_echo=$ac_try;;
11881 esac
11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883   (eval "$ac_try") 2>&5
11884   ac_status=$?
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); }; }; then
11887   ac_header_compiler=yes
11888 else
11889   echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11891
11892         ac_header_compiler=no
11893 fi
11894
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11897 echo "${ECHO_T}$ac_header_compiler" >&6; }
11898
11899 # Is the header present?
11900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11902 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h.  */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h.  */
11908 #include <$ac_header>
11909 _ACEOF
11910 if { (ac_try="$ac_cpp conftest.$ac_ext"
11911 case "(($ac_try" in
11912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913   *) ac_try_echo=$ac_try;;
11914 esac
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11917   ac_status=$?
11918   grep -v '^ *+' conftest.er1 >conftest.err
11919   rm -f conftest.er1
11920   cat conftest.err >&5
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); } >/dev/null; then
11923   if test -s conftest.err; then
11924     ac_cpp_err=$ac_c_preproc_warn_flag
11925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11926   else
11927     ac_cpp_err=
11928   fi
11929 else
11930   ac_cpp_err=yes
11931 fi
11932 if test -z "$ac_cpp_err"; then
11933   ac_header_preproc=yes
11934 else
11935   echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11937
11938   ac_header_preproc=no
11939 fi
11940
11941 rm -f conftest.err conftest.$ac_ext
11942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11943 echo "${ECHO_T}$ac_header_preproc" >&6; }
11944
11945 # So?  What about this header?
11946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11947   yes:no: )
11948     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11952     ac_header_preproc=yes
11953     ;;
11954   no:yes:* )
11955     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11957     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11958 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11959     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11961     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11962 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11965     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11967     ( cat <<\_ASBOX
11968 ## ------------------------------------ ##
11969 ## Report this to http://llvm.org/bugs/ ##
11970 ## ------------------------------------ ##
11971 _ASBOX
11972      ) | sed "s/^/$as_me: WARNING:     /" >&2
11973     ;;
11974 esac
11975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11978   echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980   eval "$as_ac_Header=\$ac_header_preproc"
11981 fi
11982 ac_res=`eval echo '${'$as_ac_Header'}'`
11983                { echo "$as_me:$LINENO: result: $ac_res" >&5
11984 echo "${ECHO_T}$ac_res" >&6; }
11985
11986 fi
11987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11988   cat >>confdefs.h <<_ACEOF
11989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11990 _ACEOF
11991
11992 fi
11993
11994 done
11995
11996
11997 for ac_header in fenv.h
11998 do
11999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12001   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12004   echo $ECHO_N "(cached) $ECHO_C" >&6
12005 fi
12006 ac_res=`eval echo '${'$as_ac_Header'}'`
12007                { echo "$as_me:$LINENO: result: $ac_res" >&5
12008 echo "${ECHO_T}$ac_res" >&6; }
12009 else
12010   # Is the header compilable?
12011 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12013 cat >conftest.$ac_ext <<_ACEOF
12014 /* confdefs.h.  */
12015 _ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h.  */
12019 $ac_includes_default
12020 #include <$ac_header>
12021 _ACEOF
12022 rm -f conftest.$ac_objext
12023 if { (ac_try="$ac_compile"
12024 case "(($ac_try" in
12025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026   *) ac_try_echo=$ac_try;;
12027 esac
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029   (eval "$ac_compile") 2>conftest.er1
12030   ac_status=$?
12031   grep -v '^ *+' conftest.er1 >conftest.err
12032   rm -f conftest.er1
12033   cat conftest.err >&5
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); } &&
12036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12037   { (case "(($ac_try" in
12038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039   *) ac_try_echo=$ac_try;;
12040 esac
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042   (eval "$ac_try") 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; } &&
12046          { ac_try='test -s conftest.$ac_objext'
12047   { (case "(($ac_try" in
12048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049   *) ac_try_echo=$ac_try;;
12050 esac
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052   (eval "$ac_try") 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); }; }; then
12056   ac_header_compiler=yes
12057 else
12058   echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12060
12061         ac_header_compiler=no
12062 fi
12063
12064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12066 echo "${ECHO_T}$ac_header_compiler" >&6; }
12067
12068 # Is the header present?
12069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12071 cat >conftest.$ac_ext <<_ACEOF
12072 /* confdefs.h.  */
12073 _ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h.  */
12077 #include <$ac_header>
12078 _ACEOF
12079 if { (ac_try="$ac_cpp conftest.$ac_ext"
12080 case "(($ac_try" in
12081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082   *) ac_try_echo=$ac_try;;
12083 esac
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12086   ac_status=$?
12087   grep -v '^ *+' conftest.er1 >conftest.err
12088   rm -f conftest.er1
12089   cat conftest.err >&5
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); } >/dev/null; then
12092   if test -s conftest.err; then
12093     ac_cpp_err=$ac_c_preproc_warn_flag
12094     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12095   else
12096     ac_cpp_err=
12097   fi
12098 else
12099   ac_cpp_err=yes
12100 fi
12101 if test -z "$ac_cpp_err"; then
12102   ac_header_preproc=yes
12103 else
12104   echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12106
12107   ac_header_preproc=no
12108 fi
12109
12110 rm -f conftest.err conftest.$ac_ext
12111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12112 echo "${ECHO_T}$ac_header_preproc" >&6; }
12113
12114 # So?  What about this header?
12115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12116   yes:no: )
12117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12121     ac_header_preproc=yes
12122     ;;
12123   no:yes:* )
12124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12136     ( cat <<\_ASBOX
12137 ## ------------------------------------ ##
12138 ## Report this to http://llvm.org/bugs/ ##
12139 ## ------------------------------------ ##
12140 _ASBOX
12141      ) | sed "s/^/$as_me: WARNING:     /" >&2
12142     ;;
12143 esac
12144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12147   echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149   eval "$as_ac_Header=\$ac_header_preproc"
12150 fi
12151 ac_res=`eval echo '${'$as_ac_Header'}'`
12152                { echo "$as_me:$LINENO: result: $ac_res" >&5
12153 echo "${ECHO_T}$ac_res" >&6; }
12154
12155 fi
12156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12157   cat >>confdefs.h <<_ACEOF
12158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12159 _ACEOF
12160
12161 fi
12162
12163 done
12164
12165 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12166 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12167 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12168   echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170   cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h.  */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h.  */
12176 #include <fenv.h>
12177
12178 int
12179 main ()
12180 {
12181 #ifndef FE_ALL_EXCEPT
12182   char *p = (char *) FE_ALL_EXCEPT;
12183   return !p;
12184 #endif
12185
12186   ;
12187   return 0;
12188 }
12189 _ACEOF
12190 rm -f conftest.$ac_objext
12191 if { (ac_try="$ac_compile"
12192 case "(($ac_try" in
12193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194   *) ac_try_echo=$ac_try;;
12195 esac
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197   (eval "$ac_compile") 2>conftest.er1
12198   ac_status=$?
12199   grep -v '^ *+' conftest.er1 >conftest.err
12200   rm -f conftest.er1
12201   cat conftest.err >&5
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } &&
12204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12205   { (case "(($ac_try" in
12206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207   *) ac_try_echo=$ac_try;;
12208 esac
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210   (eval "$ac_try") 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; } &&
12214          { ac_try='test -s conftest.$ac_objext'
12215   { (case "(($ac_try" in
12216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217   *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220   (eval "$ac_try") 2>&5
12221   ac_status=$?
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); }; }; then
12224   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12225 else
12226   echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229         ac_cv_have_decl_FE_ALL_EXCEPT=no
12230 fi
12231
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 fi
12234 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12235 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12236 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12237
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_DECL_FE_ALL_EXCEPT 1
12240 _ACEOF
12241
12242
12243 else
12244   cat >>confdefs.h <<_ACEOF
12245 #define HAVE_DECL_FE_ALL_EXCEPT 0
12246 _ACEOF
12247
12248
12249 fi
12250 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12251 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12252 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12253   echo $ECHO_N "(cached) $ECHO_C" >&6
12254 else
12255   cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261 #include <fenv.h>
12262
12263 int
12264 main ()
12265 {
12266 #ifndef FE_INEXACT
12267   char *p = (char *) FE_INEXACT;
12268   return !p;
12269 #endif
12270
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 rm -f conftest.$ac_objext
12276 if { (ac_try="$ac_compile"
12277 case "(($ac_try" in
12278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279   *) ac_try_echo=$ac_try;;
12280 esac
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282   (eval "$ac_compile") 2>conftest.er1
12283   ac_status=$?
12284   grep -v '^ *+' conftest.er1 >conftest.err
12285   rm -f conftest.er1
12286   cat conftest.err >&5
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); } &&
12289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12290   { (case "(($ac_try" in
12291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292   *) ac_try_echo=$ac_try;;
12293 esac
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295   (eval "$ac_try") 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; } &&
12299          { ac_try='test -s conftest.$ac_objext'
12300   { (case "(($ac_try" in
12301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302   *) ac_try_echo=$ac_try;;
12303 esac
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305   (eval "$ac_try") 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); }; }; then
12309   ac_cv_have_decl_FE_INEXACT=yes
12310 else
12311   echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12313
12314         ac_cv_have_decl_FE_INEXACT=no
12315 fi
12316
12317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12318 fi
12319 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12320 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12321 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12322
12323 cat >>confdefs.h <<_ACEOF
12324 #define HAVE_DECL_FE_INEXACT 1
12325 _ACEOF
12326
12327
12328 else
12329   cat >>confdefs.h <<_ACEOF
12330 #define HAVE_DECL_FE_INEXACT 0
12331 _ACEOF
12332
12333
12334 fi
12335
12336
12337 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12338
12339 for ac_header in pthread.h
12340 do
12341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12343   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12346   echo $ECHO_N "(cached) $ECHO_C" >&6
12347 fi
12348 ac_res=`eval echo '${'$as_ac_Header'}'`
12349                { echo "$as_me:$LINENO: result: $ac_res" >&5
12350 echo "${ECHO_T}$ac_res" >&6; }
12351 else
12352   # Is the header compilable?
12353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12355 cat >conftest.$ac_ext <<_ACEOF
12356 /* confdefs.h.  */
12357 _ACEOF
12358 cat confdefs.h >>conftest.$ac_ext
12359 cat >>conftest.$ac_ext <<_ACEOF
12360 /* end confdefs.h.  */
12361 $ac_includes_default
12362 #include <$ac_header>
12363 _ACEOF
12364 rm -f conftest.$ac_objext
12365 if { (ac_try="$ac_compile"
12366 case "(($ac_try" in
12367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368   *) ac_try_echo=$ac_try;;
12369 esac
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371   (eval "$ac_compile") 2>conftest.er1
12372   ac_status=$?
12373   grep -v '^ *+' conftest.er1 >conftest.err
12374   rm -f conftest.er1
12375   cat conftest.err >&5
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); } &&
12378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12379   { (case "(($ac_try" in
12380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381   *) ac_try_echo=$ac_try;;
12382 esac
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384   (eval "$ac_try") 2>&5
12385   ac_status=$?
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); }; } &&
12388          { ac_try='test -s conftest.$ac_objext'
12389   { (case "(($ac_try" in
12390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391   *) ac_try_echo=$ac_try;;
12392 esac
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394   (eval "$ac_try") 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; }; then
12398   ac_header_compiler=yes
12399 else
12400   echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403         ac_header_compiler=no
12404 fi
12405
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12408 echo "${ECHO_T}$ac_header_compiler" >&6; }
12409
12410 # Is the header present?
12411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12413 cat >conftest.$ac_ext <<_ACEOF
12414 /* confdefs.h.  */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h.  */
12419 #include <$ac_header>
12420 _ACEOF
12421 if { (ac_try="$ac_cpp conftest.$ac_ext"
12422 case "(($ac_try" in
12423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424   *) ac_try_echo=$ac_try;;
12425 esac
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12428   ac_status=$?
12429   grep -v '^ *+' conftest.er1 >conftest.err
12430   rm -f conftest.er1
12431   cat conftest.err >&5
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); } >/dev/null; then
12434   if test -s conftest.err; then
12435     ac_cpp_err=$ac_c_preproc_warn_flag
12436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12437   else
12438     ac_cpp_err=
12439   fi
12440 else
12441   ac_cpp_err=yes
12442 fi
12443 if test -z "$ac_cpp_err"; then
12444   ac_header_preproc=yes
12445 else
12446   echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449   ac_header_preproc=no
12450 fi
12451
12452 rm -f conftest.err conftest.$ac_ext
12453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12454 echo "${ECHO_T}$ac_header_preproc" >&6; }
12455
12456 # So?  What about this header?
12457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12458   yes:no: )
12459     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12463     ac_header_preproc=yes
12464     ;;
12465   no:yes:* )
12466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12468     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12469 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12470     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12472     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12473 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12476     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12478     ( cat <<\_ASBOX
12479 ## ------------------------------------ ##
12480 ## Report this to http://llvm.org/bugs/ ##
12481 ## ------------------------------------ ##
12482 _ASBOX
12483      ) | sed "s/^/$as_me: WARNING:     /" >&2
12484     ;;
12485 esac
12486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12489   echo $ECHO_N "(cached) $ECHO_C" >&6
12490 else
12491   eval "$as_ac_Header=\$ac_header_preproc"
12492 fi
12493 ac_res=`eval echo '${'$as_ac_Header'}'`
12494                { echo "$as_me:$LINENO: result: $ac_res" >&5
12495 echo "${ECHO_T}$ac_res" >&6; }
12496
12497 fi
12498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12499   cat >>confdefs.h <<_ACEOF
12500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12501 _ACEOF
12502  HAVE_PTHREAD=1
12503
12504 else
12505   HAVE_PTHREAD=0
12506
12507 fi
12508
12509 done
12510
12511 else
12512   HAVE_PTHREAD=0
12513
12514 fi
12515 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12516
12517 for ac_header in zlib.h
12518 do
12519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12521   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12524   echo $ECHO_N "(cached) $ECHO_C" >&6
12525 fi
12526 ac_res=`eval echo '${'$as_ac_Header'}'`
12527                { echo "$as_me:$LINENO: result: $ac_res" >&5
12528 echo "${ECHO_T}$ac_res" >&6; }
12529 else
12530   # Is the header compilable?
12531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12533 cat >conftest.$ac_ext <<_ACEOF
12534 /* confdefs.h.  */
12535 _ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h.  */
12539 $ac_includes_default
12540 #include <$ac_header>
12541 _ACEOF
12542 rm -f conftest.$ac_objext
12543 if { (ac_try="$ac_compile"
12544 case "(($ac_try" in
12545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546   *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549   (eval "$ac_compile") 2>conftest.er1
12550   ac_status=$?
12551   grep -v '^ *+' conftest.er1 >conftest.err
12552   rm -f conftest.er1
12553   cat conftest.err >&5
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); } &&
12556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12557   { (case "(($ac_try" in
12558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559   *) ac_try_echo=$ac_try;;
12560 esac
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562   (eval "$ac_try") 2>&5
12563   ac_status=$?
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); }; } &&
12566          { ac_try='test -s conftest.$ac_objext'
12567   { (case "(($ac_try" in
12568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569   *) ac_try_echo=$ac_try;;
12570 esac
12571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572   (eval "$ac_try") 2>&5
12573   ac_status=$?
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); }; }; then
12576   ac_header_compiler=yes
12577 else
12578   echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581         ac_header_compiler=no
12582 fi
12583
12584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12586 echo "${ECHO_T}$ac_header_compiler" >&6; }
12587
12588 # Is the header present?
12589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h.  */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h.  */
12597 #include <$ac_header>
12598 _ACEOF
12599 if { (ac_try="$ac_cpp conftest.$ac_ext"
12600 case "(($ac_try" in
12601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602   *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12606   ac_status=$?
12607   grep -v '^ *+' conftest.er1 >conftest.err
12608   rm -f conftest.er1
12609   cat conftest.err >&5
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); } >/dev/null; then
12612   if test -s conftest.err; then
12613     ac_cpp_err=$ac_c_preproc_warn_flag
12614     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12615   else
12616     ac_cpp_err=
12617   fi
12618 else
12619   ac_cpp_err=yes
12620 fi
12621 if test -z "$ac_cpp_err"; then
12622   ac_header_preproc=yes
12623 else
12624   echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12626
12627   ac_header_preproc=no
12628 fi
12629
12630 rm -f conftest.err conftest.$ac_ext
12631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12632 echo "${ECHO_T}$ac_header_preproc" >&6; }
12633
12634 # So?  What about this header?
12635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12636   yes:no: )
12637     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12641     ac_header_preproc=yes
12642     ;;
12643   no:yes:* )
12644     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12646     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12647 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12648     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12650     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12651 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12654     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12656     ( cat <<\_ASBOX
12657 ## ------------------------------------ ##
12658 ## Report this to http://llvm.org/bugs/ ##
12659 ## ------------------------------------ ##
12660 _ASBOX
12661      ) | sed "s/^/$as_me: WARNING:     /" >&2
12662     ;;
12663 esac
12664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12667   echo $ECHO_N "(cached) $ECHO_C" >&6
12668 else
12669   eval "$as_ac_Header=\$ac_header_preproc"
12670 fi
12671 ac_res=`eval echo '${'$as_ac_Header'}'`
12672                { echo "$as_me:$LINENO: result: $ac_res" >&5
12673 echo "${ECHO_T}$ac_res" >&6; }
12674
12675 fi
12676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12677   cat >>confdefs.h <<_ACEOF
12678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12679 _ACEOF
12680  HAVE_LIBZ=1
12681
12682 else
12683   HAVE_LIBZ=0
12684
12685 fi
12686
12687 done
12688
12689 else
12690   HAVE_LIBZ=0
12691
12692 fi
12693
12694 if test "$llvm_cv_enable_libffi" = "yes" ; then
12695
12696
12697 for ac_header in ffi.h ffi/ffi.h
12698 do
12699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12701   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12704   echo $ECHO_N "(cached) $ECHO_C" >&6
12705 fi
12706 ac_res=`eval echo '${'$as_ac_Header'}'`
12707                { echo "$as_me:$LINENO: result: $ac_res" >&5
12708 echo "${ECHO_T}$ac_res" >&6; }
12709 else
12710   # Is the header compilable?
12711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12713 cat >conftest.$ac_ext <<_ACEOF
12714 /* confdefs.h.  */
12715 _ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h.  */
12719 $ac_includes_default
12720 #include <$ac_header>
12721 _ACEOF
12722 rm -f conftest.$ac_objext
12723 if { (ac_try="$ac_compile"
12724 case "(($ac_try" in
12725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726   *) ac_try_echo=$ac_try;;
12727 esac
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729   (eval "$ac_compile") 2>conftest.er1
12730   ac_status=$?
12731   grep -v '^ *+' conftest.er1 >conftest.err
12732   rm -f conftest.er1
12733   cat conftest.err >&5
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); } &&
12736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12737   { (case "(($ac_try" in
12738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739   *) ac_try_echo=$ac_try;;
12740 esac
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742   (eval "$ac_try") 2>&5
12743   ac_status=$?
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); }; } &&
12746          { ac_try='test -s conftest.$ac_objext'
12747   { (case "(($ac_try" in
12748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749   *) ac_try_echo=$ac_try;;
12750 esac
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752   (eval "$ac_try") 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); }; }; then
12756   ac_header_compiler=yes
12757 else
12758   echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12760
12761         ac_header_compiler=no
12762 fi
12763
12764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12766 echo "${ECHO_T}$ac_header_compiler" >&6; }
12767
12768 # Is the header present?
12769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h.  */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h.  */
12777 #include <$ac_header>
12778 _ACEOF
12779 if { (ac_try="$ac_cpp conftest.$ac_ext"
12780 case "(($ac_try" in
12781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782   *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12786   ac_status=$?
12787   grep -v '^ *+' conftest.er1 >conftest.err
12788   rm -f conftest.er1
12789   cat conftest.err >&5
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } >/dev/null; then
12792   if test -s conftest.err; then
12793     ac_cpp_err=$ac_c_preproc_warn_flag
12794     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12795   else
12796     ac_cpp_err=
12797   fi
12798 else
12799   ac_cpp_err=yes
12800 fi
12801 if test -z "$ac_cpp_err"; then
12802   ac_header_preproc=yes
12803 else
12804   echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12806
12807   ac_header_preproc=no
12808 fi
12809
12810 rm -f conftest.err conftest.$ac_ext
12811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12812 echo "${ECHO_T}$ac_header_preproc" >&6; }
12813
12814 # So?  What about this header?
12815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12816   yes:no: )
12817     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12821     ac_header_preproc=yes
12822     ;;
12823   no:yes:* )
12824     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12826     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12827 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12828     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12830     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12831 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12834     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12836     ( cat <<\_ASBOX
12837 ## ------------------------------------ ##
12838 ## Report this to http://llvm.org/bugs/ ##
12839 ## ------------------------------------ ##
12840 _ASBOX
12841      ) | sed "s/^/$as_me: WARNING:     /" >&2
12842     ;;
12843 esac
12844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12847   echo $ECHO_N "(cached) $ECHO_C" >&6
12848 else
12849   eval "$as_ac_Header=\$ac_header_preproc"
12850 fi
12851 ac_res=`eval echo '${'$as_ac_Header'}'`
12852                { echo "$as_me:$LINENO: result: $ac_res" >&5
12853 echo "${ECHO_T}$ac_res" >&6; }
12854
12855 fi
12856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12857   cat >>confdefs.h <<_ACEOF
12858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12859 _ACEOF
12860
12861 fi
12862
12863 done
12864
12865 fi
12866
12867
12868 for ac_header in CrashReporterClient.h
12869 do
12870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12872   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12875   echo $ECHO_N "(cached) $ECHO_C" >&6
12876 fi
12877 ac_res=`eval echo '${'$as_ac_Header'}'`
12878                { echo "$as_me:$LINENO: result: $ac_res" >&5
12879 echo "${ECHO_T}$ac_res" >&6; }
12880 else
12881   # Is the header compilable?
12882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12884 cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h.  */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h.  */
12890 $ac_includes_default
12891 #include <$ac_header>
12892 _ACEOF
12893 rm -f conftest.$ac_objext
12894 if { (ac_try="$ac_compile"
12895 case "(($ac_try" in
12896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897   *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900   (eval "$ac_compile") 2>conftest.er1
12901   ac_status=$?
12902   grep -v '^ *+' conftest.er1 >conftest.err
12903   rm -f conftest.er1
12904   cat conftest.err >&5
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); } &&
12907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12908   { (case "(($ac_try" in
12909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910   *) ac_try_echo=$ac_try;;
12911 esac
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913   (eval "$ac_try") 2>&5
12914   ac_status=$?
12915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916   (exit $ac_status); }; } &&
12917          { ac_try='test -s conftest.$ac_objext'
12918   { (case "(($ac_try" in
12919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920   *) ac_try_echo=$ac_try;;
12921 esac
12922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923   (eval "$ac_try") 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); }; }; then
12927   ac_header_compiler=yes
12928 else
12929   echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12931
12932         ac_header_compiler=no
12933 fi
12934
12935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12937 echo "${ECHO_T}$ac_header_compiler" >&6; }
12938
12939 # Is the header present?
12940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12942 cat >conftest.$ac_ext <<_ACEOF
12943 /* confdefs.h.  */
12944 _ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h.  */
12948 #include <$ac_header>
12949 _ACEOF
12950 if { (ac_try="$ac_cpp conftest.$ac_ext"
12951 case "(($ac_try" in
12952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953   *) ac_try_echo=$ac_try;;
12954 esac
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12957   ac_status=$?
12958   grep -v '^ *+' conftest.er1 >conftest.err
12959   rm -f conftest.er1
12960   cat conftest.err >&5
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); } >/dev/null; then
12963   if test -s conftest.err; then
12964     ac_cpp_err=$ac_c_preproc_warn_flag
12965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12966   else
12967     ac_cpp_err=
12968   fi
12969 else
12970   ac_cpp_err=yes
12971 fi
12972 if test -z "$ac_cpp_err"; then
12973   ac_header_preproc=yes
12974 else
12975   echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12977
12978   ac_header_preproc=no
12979 fi
12980
12981 rm -f conftest.err conftest.$ac_ext
12982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12983 echo "${ECHO_T}$ac_header_preproc" >&6; }
12984
12985 # So?  What about this header?
12986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12987   yes:no: )
12988     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12992     ac_header_preproc=yes
12993     ;;
12994   no:yes:* )
12995     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12997     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12998 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12999     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13001     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13002 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13005     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13007     ( cat <<\_ASBOX
13008 ## ------------------------------------ ##
13009 ## Report this to http://llvm.org/bugs/ ##
13010 ## ------------------------------------ ##
13011 _ASBOX
13012      ) | sed "s/^/$as_me: WARNING:     /" >&2
13013     ;;
13014 esac
13015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13018   echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020   eval "$as_ac_Header=\$ac_header_preproc"
13021 fi
13022 ac_res=`eval echo '${'$as_ac_Header'}'`
13023                { echo "$as_me:$LINENO: result: $ac_res" >&5
13024 echo "${ECHO_T}$ac_res" >&6; }
13025
13026 fi
13027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13028   cat >>confdefs.h <<_ACEOF
13029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13030 _ACEOF
13031
13032 fi
13033
13034 done
13035
13036
13037 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13038 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13039 cat >conftest.$ac_ext <<_ACEOF
13040
13041   /* confdefs.h.  */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h.  */
13046
13047     extern const char *__crashreporter_info__;
13048     int main() {
13049       __crashreporter_info__ = "test";
13050       return 0;
13051     }
13052
13053
13054 _ACEOF
13055 rm -f conftest.$ac_objext conftest$ac_exeext
13056 if { (ac_try="$ac_link"
13057 case "(($ac_try" in
13058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059   *) ac_try_echo=$ac_try;;
13060 esac
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062   (eval "$ac_link") 2>conftest.er1
13063   ac_status=$?
13064   grep -v '^ *+' conftest.er1 >conftest.err
13065   rm -f conftest.er1
13066   cat conftest.err >&5
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); } &&
13069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13070   { (case "(($ac_try" in
13071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072   *) ac_try_echo=$ac_try;;
13073 esac
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075   (eval "$ac_try") 2>&5
13076   ac_status=$?
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); }; } &&
13079          { ac_try='test -s conftest$ac_exeext'
13080   { (case "(($ac_try" in
13081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082   *) ac_try_echo=$ac_try;;
13083 esac
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085   (eval "$ac_try") 2>&5
13086   ac_status=$?
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); }; }; then
13089
13090   { echo "$as_me:$LINENO: result: yes" >&5
13091 echo "${ECHO_T}yes" >&6; }
13092
13093 cat >>confdefs.h <<\_ACEOF
13094 #define HAVE_CRASHREPORTER_INFO 1
13095 _ACEOF
13096
13097
13098 else
13099   echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13101
13102
13103   { echo "$as_me:$LINENO: result: no" >&5
13104 echo "${ECHO_T}no" >&6; }
13105
13106 cat >>confdefs.h <<\_ACEOF
13107 #define HAVE_CRASHREPORTER_INFO 0
13108 _ACEOF
13109
13110
13111 fi
13112
13113 rm -f core conftest.err conftest.$ac_objext \
13114       conftest$ac_exeext conftest.$ac_ext
13115
13116
13117
13118   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13119 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13120 if test "${ac_cv_huge_val_sanity+set}" = set; then
13121   echo $ECHO_N "(cached) $ECHO_C" >&6
13122 else
13123
13124     ac_ext=cpp
13125 ac_cpp='$CXXCPP $CPPFLAGS'
13126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13129
13130     ac_save_CXXFLAGS=$CXXFLAGS
13131     CXXFLAGS="$CXXFLAGS -pedantic"
13132     if test "$cross_compiling" = yes; then
13133   ac_cv_huge_val_sanity=yes
13134 else
13135   cat >conftest.$ac_ext <<_ACEOF
13136 /* confdefs.h.  */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h.  */
13141 #include <math.h>
13142 int
13143 main ()
13144 {
13145 double x = HUGE_VAL; return x != x;
13146   ;
13147   return 0;
13148 }
13149 _ACEOF
13150 rm -f conftest$ac_exeext
13151 if { (ac_try="$ac_link"
13152 case "(($ac_try" in
13153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154   *) ac_try_echo=$ac_try;;
13155 esac
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157   (eval "$ac_link") 2>&5
13158   ac_status=$?
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13161   { (case "(($ac_try" in
13162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163   *) ac_try_echo=$ac_try;;
13164 esac
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166   (eval "$ac_try") 2>&5
13167   ac_status=$?
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); }; }; then
13170   ac_cv_huge_val_sanity=yes
13171 else
13172   echo "$as_me: program exited with status $ac_status" >&5
13173 echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13175
13176 ( exit $ac_status )
13177 ac_cv_huge_val_sanity=no
13178 fi
13179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13180 fi
13181
13182
13183     CXXFLAGS=$ac_save_CXXFLAGS
13184     ac_ext=c
13185 ac_cpp='$CPP $CPPFLAGS'
13186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13189
13190
13191 fi
13192 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13193 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13194   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13195
13196
13197 { echo "$as_me:$LINENO: checking for pid_t" >&5
13198 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13199 if test "${ac_cv_type_pid_t+set}" = set; then
13200   echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202   cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h.  */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h.  */
13208 $ac_includes_default
13209 typedef pid_t ac__type_new_;
13210 int
13211 main ()
13212 {
13213 if ((ac__type_new_ *) 0)
13214   return 0;
13215 if (sizeof (ac__type_new_))
13216   return 0;
13217   ;
13218   return 0;
13219 }
13220 _ACEOF
13221 rm -f conftest.$ac_objext
13222 if { (ac_try="$ac_compile"
13223 case "(($ac_try" in
13224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225   *) ac_try_echo=$ac_try;;
13226 esac
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228   (eval "$ac_compile") 2>conftest.er1
13229   ac_status=$?
13230   grep -v '^ *+' conftest.er1 >conftest.err
13231   rm -f conftest.er1
13232   cat conftest.err >&5
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); } &&
13235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13236   { (case "(($ac_try" in
13237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238   *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241   (eval "$ac_try") 2>&5
13242   ac_status=$?
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); }; } &&
13245          { ac_try='test -s conftest.$ac_objext'
13246   { (case "(($ac_try" in
13247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248   *) ac_try_echo=$ac_try;;
13249 esac
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251   (eval "$ac_try") 2>&5
13252   ac_status=$?
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); }; }; then
13255   ac_cv_type_pid_t=yes
13256 else
13257   echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260         ac_cv_type_pid_t=no
13261 fi
13262
13263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13264 fi
13265 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13266 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13267 if test $ac_cv_type_pid_t = yes; then
13268   :
13269 else
13270
13271 cat >>confdefs.h <<_ACEOF
13272 #define pid_t int
13273 _ACEOF
13274
13275 fi
13276
13277 { echo "$as_me:$LINENO: checking for size_t" >&5
13278 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13279 if test "${ac_cv_type_size_t+set}" = set; then
13280   echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282   cat >conftest.$ac_ext <<_ACEOF
13283 /* confdefs.h.  */
13284 _ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h.  */
13288 $ac_includes_default
13289 typedef size_t ac__type_new_;
13290 int
13291 main ()
13292 {
13293 if ((ac__type_new_ *) 0)
13294   return 0;
13295 if (sizeof (ac__type_new_))
13296   return 0;
13297   ;
13298   return 0;
13299 }
13300 _ACEOF
13301 rm -f conftest.$ac_objext
13302 if { (ac_try="$ac_compile"
13303 case "(($ac_try" in
13304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305   *) ac_try_echo=$ac_try;;
13306 esac
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308   (eval "$ac_compile") 2>conftest.er1
13309   ac_status=$?
13310   grep -v '^ *+' conftest.er1 >conftest.err
13311   rm -f conftest.er1
13312   cat conftest.err >&5
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); } &&
13315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13316   { (case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321   (eval "$ac_try") 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; } &&
13325          { ac_try='test -s conftest.$ac_objext'
13326   { (case "(($ac_try" in
13327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328   *) ac_try_echo=$ac_try;;
13329 esac
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331   (eval "$ac_try") 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); }; }; then
13335   ac_cv_type_size_t=yes
13336 else
13337   echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340         ac_cv_type_size_t=no
13341 fi
13342
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 fi
13345 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13346 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13347 if test $ac_cv_type_size_t = yes; then
13348   :
13349 else
13350
13351 cat >>confdefs.h <<_ACEOF
13352 #define size_t unsigned int
13353 _ACEOF
13354
13355 fi
13356
13357
13358 cat >>confdefs.h <<_ACEOF
13359 #define RETSIGTYPE void
13360 _ACEOF
13361
13362 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13363 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13364 if test "${ac_cv_struct_tm+set}" = set; then
13365   echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367   cat >conftest.$ac_ext <<_ACEOF
13368 /* confdefs.h.  */
13369 _ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h.  */
13373 #include <sys/types.h>
13374 #include <time.h>
13375
13376 int
13377 main ()
13378 {
13379 struct tm *tp; tp->tm_sec;
13380   ;
13381   return 0;
13382 }
13383 _ACEOF
13384 rm -f conftest.$ac_objext
13385 if { (ac_try="$ac_compile"
13386 case "(($ac_try" in
13387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388   *) ac_try_echo=$ac_try;;
13389 esac
13390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391   (eval "$ac_compile") 2>conftest.er1
13392   ac_status=$?
13393   grep -v '^ *+' conftest.er1 >conftest.err
13394   rm -f conftest.er1
13395   cat conftest.err >&5
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); } &&
13398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13399   { (case "(($ac_try" in
13400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401   *) ac_try_echo=$ac_try;;
13402 esac
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404   (eval "$ac_try") 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); }; } &&
13408          { ac_try='test -s conftest.$ac_objext'
13409   { (case "(($ac_try" in
13410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411   *) ac_try_echo=$ac_try;;
13412 esac
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414   (eval "$ac_try") 2>&5
13415   ac_status=$?
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); }; }; then
13418   ac_cv_struct_tm=time.h
13419 else
13420   echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13422
13423         ac_cv_struct_tm=sys/time.h
13424 fi
13425
13426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13427 fi
13428 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13429 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13430 if test $ac_cv_struct_tm = sys/time.h; then
13431
13432 cat >>confdefs.h <<\_ACEOF
13433 #define TM_IN_SYS_TIME 1
13434 _ACEOF
13435
13436 fi
13437
13438 { echo "$as_me:$LINENO: checking for int64_t" >&5
13439 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13440 if test "${ac_cv_type_int64_t+set}" = set; then
13441   echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443   cat >conftest.$ac_ext <<_ACEOF
13444 /* confdefs.h.  */
13445 _ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h.  */
13449 $ac_includes_default
13450 typedef int64_t ac__type_new_;
13451 int
13452 main ()
13453 {
13454 if ((ac__type_new_ *) 0)
13455   return 0;
13456 if (sizeof (ac__type_new_))
13457   return 0;
13458   ;
13459   return 0;
13460 }
13461 _ACEOF
13462 rm -f conftest.$ac_objext
13463 if { (ac_try="$ac_compile"
13464 case "(($ac_try" in
13465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466   *) ac_try_echo=$ac_try;;
13467 esac
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469   (eval "$ac_compile") 2>conftest.er1
13470   ac_status=$?
13471   grep -v '^ *+' conftest.er1 >conftest.err
13472   rm -f conftest.er1
13473   cat conftest.err >&5
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); } &&
13476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13477   { (case "(($ac_try" in
13478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479   *) ac_try_echo=$ac_try;;
13480 esac
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482   (eval "$ac_try") 2>&5
13483   ac_status=$?
13484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); }; } &&
13486          { ac_try='test -s conftest.$ac_objext'
13487   { (case "(($ac_try" in
13488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489   *) ac_try_echo=$ac_try;;
13490 esac
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492   (eval "$ac_try") 2>&5
13493   ac_status=$?
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); }; }; then
13496   ac_cv_type_int64_t=yes
13497 else
13498   echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13500
13501         ac_cv_type_int64_t=no
13502 fi
13503
13504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13505 fi
13506 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13507 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13508 if test $ac_cv_type_int64_t = yes; then
13509
13510 cat >>confdefs.h <<_ACEOF
13511 #define HAVE_INT64_T 1
13512 _ACEOF
13513
13514
13515 else
13516   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13517 echo "$as_me: error: Type int64_t required but not found" >&2;}
13518    { (exit 1); exit 1; }; }
13519 fi
13520
13521 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13522 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13523 if test "${ac_cv_type_uint64_t+set}" = set; then
13524   echo $ECHO_N "(cached) $ECHO_C" >&6
13525 else
13526   cat >conftest.$ac_ext <<_ACEOF
13527 /* confdefs.h.  */
13528 _ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h.  */
13532 $ac_includes_default
13533 typedef uint64_t ac__type_new_;
13534 int
13535 main ()
13536 {
13537 if ((ac__type_new_ *) 0)
13538   return 0;
13539 if (sizeof (ac__type_new_))
13540   return 0;
13541   ;
13542   return 0;
13543 }
13544 _ACEOF
13545 rm -f conftest.$ac_objext
13546 if { (ac_try="$ac_compile"
13547 case "(($ac_try" in
13548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549   *) ac_try_echo=$ac_try;;
13550 esac
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552   (eval "$ac_compile") 2>conftest.er1
13553   ac_status=$?
13554   grep -v '^ *+' conftest.er1 >conftest.err
13555   rm -f conftest.er1
13556   cat conftest.err >&5
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); } &&
13559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13560   { (case "(($ac_try" in
13561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562   *) ac_try_echo=$ac_try;;
13563 esac
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565   (eval "$ac_try") 2>&5
13566   ac_status=$?
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); }; } &&
13569          { ac_try='test -s conftest.$ac_objext'
13570   { (case "(($ac_try" in
13571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572   *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575   (eval "$ac_try") 2>&5
13576   ac_status=$?
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); }; }; then
13579   ac_cv_type_uint64_t=yes
13580 else
13581   echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13583
13584         ac_cv_type_uint64_t=no
13585 fi
13586
13587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13588 fi
13589 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13590 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13591 if test $ac_cv_type_uint64_t = yes; then
13592
13593 cat >>confdefs.h <<_ACEOF
13594 #define HAVE_UINT64_T 1
13595 _ACEOF
13596
13597
13598 else
13599   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13600 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13601 if test "${ac_cv_type_u_int64_t+set}" = set; then
13602   echo $ECHO_N "(cached) $ECHO_C" >&6
13603 else
13604   cat >conftest.$ac_ext <<_ACEOF
13605 /* confdefs.h.  */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h.  */
13610 $ac_includes_default
13611 typedef u_int64_t ac__type_new_;
13612 int
13613 main ()
13614 {
13615 if ((ac__type_new_ *) 0)
13616   return 0;
13617 if (sizeof (ac__type_new_))
13618   return 0;
13619   ;
13620   return 0;
13621 }
13622 _ACEOF
13623 rm -f conftest.$ac_objext
13624 if { (ac_try="$ac_compile"
13625 case "(($ac_try" in
13626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627   *) ac_try_echo=$ac_try;;
13628 esac
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630   (eval "$ac_compile") 2>conftest.er1
13631   ac_status=$?
13632   grep -v '^ *+' conftest.er1 >conftest.err
13633   rm -f conftest.er1
13634   cat conftest.err >&5
13635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636   (exit $ac_status); } &&
13637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13638   { (case "(($ac_try" in
13639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640   *) ac_try_echo=$ac_try;;
13641 esac
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643   (eval "$ac_try") 2>&5
13644   ac_status=$?
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); }; } &&
13647          { ac_try='test -s conftest.$ac_objext'
13648   { (case "(($ac_try" in
13649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650   *) ac_try_echo=$ac_try;;
13651 esac
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653   (eval "$ac_try") 2>&5
13654   ac_status=$?
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); }; }; then
13657   ac_cv_type_u_int64_t=yes
13658 else
13659   echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13661
13662         ac_cv_type_u_int64_t=no
13663 fi
13664
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 fi
13667 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13668 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13669 if test $ac_cv_type_u_int64_t = yes; then
13670
13671 cat >>confdefs.h <<_ACEOF
13672 #define HAVE_U_INT64_T 1
13673 _ACEOF
13674
13675
13676 else
13677   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13678 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13679    { (exit 1); exit 1; }; }
13680 fi
13681
13682 fi
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13694 do
13695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13696 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13698 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13699   echo $ECHO_N "(cached) $ECHO_C" >&6
13700 else
13701   cat >conftest.$ac_ext <<_ACEOF
13702 /* confdefs.h.  */
13703 _ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h.  */
13707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13709 #define $ac_func innocuous_$ac_func
13710
13711 /* System header to define __stub macros and hopefully few prototypes,
13712     which can conflict with char $ac_func (); below.
13713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13714     <limits.h> exists even on freestanding compilers.  */
13715
13716 #ifdef __STDC__
13717 # include <limits.h>
13718 #else
13719 # include <assert.h>
13720 #endif
13721
13722 #undef $ac_func
13723
13724 /* Override any GCC internal prototype to avoid an error.
13725    Use char because int might match the return type of a GCC
13726    builtin and then its argument prototype would still apply.  */
13727 #ifdef __cplusplus
13728 extern "C"
13729 #endif
13730 char $ac_func ();
13731 /* The GNU C library defines this for functions which it implements
13732     to always fail with ENOSYS.  Some functions are actually named
13733     something starting with __ and the normal name is an alias.  */
13734 #if defined __stub_$ac_func || defined __stub___$ac_func
13735 choke me
13736 #endif
13737
13738 int
13739 main ()
13740 {
13741 return $ac_func ();
13742   ;
13743   return 0;
13744 }
13745 _ACEOF
13746 rm -f conftest.$ac_objext conftest$ac_exeext
13747 if { (ac_try="$ac_link"
13748 case "(($ac_try" in
13749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750   *) ac_try_echo=$ac_try;;
13751 esac
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753   (eval "$ac_link") 2>conftest.er1
13754   ac_status=$?
13755   grep -v '^ *+' conftest.er1 >conftest.err
13756   rm -f conftest.er1
13757   cat conftest.err >&5
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); } &&
13760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13761   { (case "(($ac_try" in
13762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763   *) ac_try_echo=$ac_try;;
13764 esac
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766   (eval "$ac_try") 2>&5
13767   ac_status=$?
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); }; } &&
13770          { ac_try='test -s conftest$ac_exeext'
13771   { (case "(($ac_try" in
13772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773   *) ac_try_echo=$ac_try;;
13774 esac
13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776   (eval "$ac_try") 2>&5
13777   ac_status=$?
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); }; }; then
13780   eval "$as_ac_var=yes"
13781 else
13782   echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13784
13785         eval "$as_ac_var=no"
13786 fi
13787
13788 rm -f core conftest.err conftest.$ac_objext \
13789       conftest$ac_exeext conftest.$ac_ext
13790 fi
13791 ac_res=`eval echo '${'$as_ac_var'}'`
13792                { echo "$as_me:$LINENO: result: $ac_res" >&5
13793 echo "${ECHO_T}$ac_res" >&6; }
13794 if test `eval echo '${'$as_ac_var'}'` = yes; then
13795   cat >>confdefs.h <<_ACEOF
13796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13797 _ACEOF
13798
13799 fi
13800 done
13801
13802
13803
13804
13805
13806 for ac_func in powf fmodf strtof round
13807 do
13808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13812   echo $ECHO_N "(cached) $ECHO_C" >&6
13813 else
13814   cat >conftest.$ac_ext <<_ACEOF
13815 /* confdefs.h.  */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h.  */
13820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13822 #define $ac_func innocuous_$ac_func
13823
13824 /* System header to define __stub macros and hopefully few prototypes,
13825     which can conflict with char $ac_func (); below.
13826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13827     <limits.h> exists even on freestanding compilers.  */
13828
13829 #ifdef __STDC__
13830 # include <limits.h>
13831 #else
13832 # include <assert.h>
13833 #endif
13834
13835 #undef $ac_func
13836
13837 /* Override any GCC internal prototype to avoid an error.
13838    Use char because int might match the return type of a GCC
13839    builtin and then its argument prototype would still apply.  */
13840 #ifdef __cplusplus
13841 extern "C"
13842 #endif
13843 char $ac_func ();
13844 /* The GNU C library defines this for functions which it implements
13845     to always fail with ENOSYS.  Some functions are actually named
13846     something starting with __ and the normal name is an alias.  */
13847 #if defined __stub_$ac_func || defined __stub___$ac_func
13848 choke me
13849 #endif
13850
13851 int
13852 main ()
13853 {
13854 return $ac_func ();
13855   ;
13856   return 0;
13857 }
13858 _ACEOF
13859 rm -f conftest.$ac_objext conftest$ac_exeext
13860 if { (ac_try="$ac_link"
13861 case "(($ac_try" in
13862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863   *) ac_try_echo=$ac_try;;
13864 esac
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866   (eval "$ac_link") 2>conftest.er1
13867   ac_status=$?
13868   grep -v '^ *+' conftest.er1 >conftest.err
13869   rm -f conftest.er1
13870   cat conftest.err >&5
13871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872   (exit $ac_status); } &&
13873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13874   { (case "(($ac_try" in
13875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876   *) ac_try_echo=$ac_try;;
13877 esac
13878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13879   (eval "$ac_try") 2>&5
13880   ac_status=$?
13881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882   (exit $ac_status); }; } &&
13883          { ac_try='test -s conftest$ac_exeext'
13884   { (case "(($ac_try" in
13885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886   *) ac_try_echo=$ac_try;;
13887 esac
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889   (eval "$ac_try") 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); }; }; then
13893   eval "$as_ac_var=yes"
13894 else
13895   echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13897
13898         eval "$as_ac_var=no"
13899 fi
13900
13901 rm -f core conftest.err conftest.$ac_objext \
13902       conftest$ac_exeext conftest.$ac_ext
13903 fi
13904 ac_res=`eval echo '${'$as_ac_var'}'`
13905                { echo "$as_me:$LINENO: result: $ac_res" >&5
13906 echo "${ECHO_T}$ac_res" >&6; }
13907 if test `eval echo '${'$as_ac_var'}'` = yes; then
13908   cat >>confdefs.h <<_ACEOF
13909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13910 _ACEOF
13911
13912 fi
13913 done
13914
13915
13916
13917
13918
13919
13920 for ac_func in log log2 log10 exp exp2
13921 do
13922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13926   echo $ECHO_N "(cached) $ECHO_C" >&6
13927 else
13928   cat >conftest.$ac_ext <<_ACEOF
13929 /* confdefs.h.  */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h.  */
13934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13936 #define $ac_func innocuous_$ac_func
13937
13938 /* System header to define __stub macros and hopefully few prototypes,
13939     which can conflict with char $ac_func (); below.
13940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13941     <limits.h> exists even on freestanding compilers.  */
13942
13943 #ifdef __STDC__
13944 # include <limits.h>
13945 #else
13946 # include <assert.h>
13947 #endif
13948
13949 #undef $ac_func
13950
13951 /* Override any GCC internal prototype to avoid an error.
13952    Use char because int might match the return type of a GCC
13953    builtin and then its argument prototype would still apply.  */
13954 #ifdef __cplusplus
13955 extern "C"
13956 #endif
13957 char $ac_func ();
13958 /* The GNU C library defines this for functions which it implements
13959     to always fail with ENOSYS.  Some functions are actually named
13960     something starting with __ and the normal name is an alias.  */
13961 #if defined __stub_$ac_func || defined __stub___$ac_func
13962 choke me
13963 #endif
13964
13965 int
13966 main ()
13967 {
13968 return $ac_func ();
13969   ;
13970   return 0;
13971 }
13972 _ACEOF
13973 rm -f conftest.$ac_objext conftest$ac_exeext
13974 if { (ac_try="$ac_link"
13975 case "(($ac_try" in
13976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13977   *) ac_try_echo=$ac_try;;
13978 esac
13979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980   (eval "$ac_link") 2>conftest.er1
13981   ac_status=$?
13982   grep -v '^ *+' conftest.er1 >conftest.err
13983   rm -f conftest.er1
13984   cat conftest.err >&5
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); } &&
13987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13988   { (case "(($ac_try" in
13989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990   *) ac_try_echo=$ac_try;;
13991 esac
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993   (eval "$ac_try") 2>&5
13994   ac_status=$?
13995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996   (exit $ac_status); }; } &&
13997          { ac_try='test -s conftest$ac_exeext'
13998   { (case "(($ac_try" in
13999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000   *) ac_try_echo=$ac_try;;
14001 esac
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003   (eval "$ac_try") 2>&5
14004   ac_status=$?
14005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); }; }; then
14007   eval "$as_ac_var=yes"
14008 else
14009   echo "$as_me: failed program was:" >&5
14010 sed 's/^/| /' conftest.$ac_ext >&5
14011
14012         eval "$as_ac_var=no"
14013 fi
14014
14015 rm -f core conftest.err conftest.$ac_objext \
14016       conftest$ac_exeext conftest.$ac_ext
14017 fi
14018 ac_res=`eval echo '${'$as_ac_var'}'`
14019                { echo "$as_me:$LINENO: result: $ac_res" >&5
14020 echo "${ECHO_T}$ac_res" >&6; }
14021 if test `eval echo '${'$as_ac_var'}'` = yes; then
14022   cat >>confdefs.h <<_ACEOF
14023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14024 _ACEOF
14025
14026 fi
14027 done
14028
14029
14030
14031
14032
14033
14034 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14035 do
14036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14040   echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042   cat >conftest.$ac_ext <<_ACEOF
14043 /* confdefs.h.  */
14044 _ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h.  */
14048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14050 #define $ac_func innocuous_$ac_func
14051
14052 /* System header to define __stub macros and hopefully few prototypes,
14053     which can conflict with char $ac_func (); below.
14054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14055     <limits.h> exists even on freestanding compilers.  */
14056
14057 #ifdef __STDC__
14058 # include <limits.h>
14059 #else
14060 # include <assert.h>
14061 #endif
14062
14063 #undef $ac_func
14064
14065 /* Override any GCC internal prototype to avoid an error.
14066    Use char because int might match the return type of a GCC
14067    builtin and then its argument prototype would still apply.  */
14068 #ifdef __cplusplus
14069 extern "C"
14070 #endif
14071 char $ac_func ();
14072 /* The GNU C library defines this for functions which it implements
14073     to always fail with ENOSYS.  Some functions are actually named
14074     something starting with __ and the normal name is an alias.  */
14075 #if defined __stub_$ac_func || defined __stub___$ac_func
14076 choke me
14077 #endif
14078
14079 int
14080 main ()
14081 {
14082 return $ac_func ();
14083   ;
14084   return 0;
14085 }
14086 _ACEOF
14087 rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (ac_try="$ac_link"
14089 case "(($ac_try" in
14090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091   *) ac_try_echo=$ac_try;;
14092 esac
14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094   (eval "$ac_link") 2>conftest.er1
14095   ac_status=$?
14096   grep -v '^ *+' conftest.er1 >conftest.err
14097   rm -f conftest.er1
14098   cat conftest.err >&5
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } &&
14101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14102   { (case "(($ac_try" in
14103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104   *) ac_try_echo=$ac_try;;
14105 esac
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107   (eval "$ac_try") 2>&5
14108   ac_status=$?
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); }; } &&
14111          { ac_try='test -s conftest$ac_exeext'
14112   { (case "(($ac_try" in
14113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114   *) ac_try_echo=$ac_try;;
14115 esac
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117   (eval "$ac_try") 2>&5
14118   ac_status=$?
14119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120   (exit $ac_status); }; }; then
14121   eval "$as_ac_var=yes"
14122 else
14123   echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14125
14126         eval "$as_ac_var=no"
14127 fi
14128
14129 rm -f core conftest.err conftest.$ac_objext \
14130       conftest$ac_exeext conftest.$ac_ext
14131 fi
14132 ac_res=`eval echo '${'$as_ac_var'}'`
14133                { echo "$as_me:$LINENO: result: $ac_res" >&5
14134 echo "${ECHO_T}$ac_res" >&6; }
14135 if test `eval echo '${'$as_ac_var'}'` = yes; then
14136   cat >>confdefs.h <<_ACEOF
14137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14138 _ACEOF
14139
14140 fi
14141 done
14142
14143
14144
14145
14146 for ac_func in isatty mkdtemp mkstemp
14147 do
14148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14152   echo $ECHO_N "(cached) $ECHO_C" >&6
14153 else
14154   cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h.  */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h.  */
14160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14162 #define $ac_func innocuous_$ac_func
14163
14164 /* System header to define __stub macros and hopefully few prototypes,
14165     which can conflict with char $ac_func (); below.
14166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14167     <limits.h> exists even on freestanding compilers.  */
14168
14169 #ifdef __STDC__
14170 # include <limits.h>
14171 #else
14172 # include <assert.h>
14173 #endif
14174
14175 #undef $ac_func
14176
14177 /* Override any GCC internal prototype to avoid an error.
14178    Use char because int might match the return type of a GCC
14179    builtin and then its argument prototype would still apply.  */
14180 #ifdef __cplusplus
14181 extern "C"
14182 #endif
14183 char $ac_func ();
14184 /* The GNU C library defines this for functions which it implements
14185     to always fail with ENOSYS.  Some functions are actually named
14186     something starting with __ and the normal name is an alias.  */
14187 #if defined __stub_$ac_func || defined __stub___$ac_func
14188 choke me
14189 #endif
14190
14191 int
14192 main ()
14193 {
14194 return $ac_func ();
14195   ;
14196   return 0;
14197 }
14198 _ACEOF
14199 rm -f conftest.$ac_objext conftest$ac_exeext
14200 if { (ac_try="$ac_link"
14201 case "(($ac_try" in
14202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203   *) ac_try_echo=$ac_try;;
14204 esac
14205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206   (eval "$ac_link") 2>conftest.er1
14207   ac_status=$?
14208   grep -v '^ *+' conftest.er1 >conftest.err
14209   rm -f conftest.er1
14210   cat conftest.err >&5
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); } &&
14213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14214   { (case "(($ac_try" in
14215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216   *) ac_try_echo=$ac_try;;
14217 esac
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219   (eval "$ac_try") 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); }; } &&
14223          { ac_try='test -s conftest$ac_exeext'
14224   { (case "(($ac_try" in
14225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226   *) ac_try_echo=$ac_try;;
14227 esac
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229   (eval "$ac_try") 2>&5
14230   ac_status=$?
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); }; }; then
14233   eval "$as_ac_var=yes"
14234 else
14235   echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14237
14238         eval "$as_ac_var=no"
14239 fi
14240
14241 rm -f core conftest.err conftest.$ac_objext \
14242       conftest$ac_exeext conftest.$ac_ext
14243 fi
14244 ac_res=`eval echo '${'$as_ac_var'}'`
14245                { echo "$as_me:$LINENO: result: $ac_res" >&5
14246 echo "${ECHO_T}$ac_res" >&6; }
14247 if test `eval echo '${'$as_ac_var'}'` = yes; then
14248   cat >>confdefs.h <<_ACEOF
14249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14250 _ACEOF
14251
14252 fi
14253 done
14254
14255
14256
14257
14258
14259
14260
14261 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14262 do
14263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14267   echo $ECHO_N "(cached) $ECHO_C" >&6
14268 else
14269   cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h.  */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h.  */
14275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14277 #define $ac_func innocuous_$ac_func
14278
14279 /* System header to define __stub macros and hopefully few prototypes,
14280     which can conflict with char $ac_func (); below.
14281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14282     <limits.h> exists even on freestanding compilers.  */
14283
14284 #ifdef __STDC__
14285 # include <limits.h>
14286 #else
14287 # include <assert.h>
14288 #endif
14289
14290 #undef $ac_func
14291
14292 /* Override any GCC internal prototype to avoid an error.
14293    Use char because int might match the return type of a GCC
14294    builtin and then its argument prototype would still apply.  */
14295 #ifdef __cplusplus
14296 extern "C"
14297 #endif
14298 char $ac_func ();
14299 /* The GNU C library defines this for functions which it implements
14300     to always fail with ENOSYS.  Some functions are actually named
14301     something starting with __ and the normal name is an alias.  */
14302 #if defined __stub_$ac_func || defined __stub___$ac_func
14303 choke me
14304 #endif
14305
14306 int
14307 main ()
14308 {
14309 return $ac_func ();
14310   ;
14311   return 0;
14312 }
14313 _ACEOF
14314 rm -f conftest.$ac_objext conftest$ac_exeext
14315 if { (ac_try="$ac_link"
14316 case "(($ac_try" in
14317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318   *) ac_try_echo=$ac_try;;
14319 esac
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321   (eval "$ac_link") 2>conftest.er1
14322   ac_status=$?
14323   grep -v '^ *+' conftest.er1 >conftest.err
14324   rm -f conftest.er1
14325   cat conftest.err >&5
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); } &&
14328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14329   { (case "(($ac_try" in
14330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331   *) ac_try_echo=$ac_try;;
14332 esac
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334   (eval "$ac_try") 2>&5
14335   ac_status=$?
14336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); }; } &&
14338          { ac_try='test -s conftest$ac_exeext'
14339   { (case "(($ac_try" in
14340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341   *) ac_try_echo=$ac_try;;
14342 esac
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344   (eval "$ac_try") 2>&5
14345   ac_status=$?
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); }; }; then
14348   eval "$as_ac_var=yes"
14349 else
14350   echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14352
14353         eval "$as_ac_var=no"
14354 fi
14355
14356 rm -f core conftest.err conftest.$ac_objext \
14357       conftest$ac_exeext conftest.$ac_ext
14358 fi
14359 ac_res=`eval echo '${'$as_ac_var'}'`
14360                { echo "$as_me:$LINENO: result: $ac_res" >&5
14361 echo "${ECHO_T}$ac_res" >&6; }
14362 if test `eval echo '${'$as_ac_var'}'` = yes; then
14363   cat >>confdefs.h <<_ACEOF
14364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14365 _ACEOF
14366
14367 fi
14368 done
14369
14370
14371
14372
14373 for ac_func in strerror strerror_r setenv
14374 do
14375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14379   echo $ECHO_N "(cached) $ECHO_C" >&6
14380 else
14381   cat >conftest.$ac_ext <<_ACEOF
14382 /* confdefs.h.  */
14383 _ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h.  */
14387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14389 #define $ac_func innocuous_$ac_func
14390
14391 /* System header to define __stub macros and hopefully few prototypes,
14392     which can conflict with char $ac_func (); below.
14393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14394     <limits.h> exists even on freestanding compilers.  */
14395
14396 #ifdef __STDC__
14397 # include <limits.h>
14398 #else
14399 # include <assert.h>
14400 #endif
14401
14402 #undef $ac_func
14403
14404 /* Override any GCC internal prototype to avoid an error.
14405    Use char because int might match the return type of a GCC
14406    builtin and then its argument prototype would still apply.  */
14407 #ifdef __cplusplus
14408 extern "C"
14409 #endif
14410 char $ac_func ();
14411 /* The GNU C library defines this for functions which it implements
14412     to always fail with ENOSYS.  Some functions are actually named
14413     something starting with __ and the normal name is an alias.  */
14414 #if defined __stub_$ac_func || defined __stub___$ac_func
14415 choke me
14416 #endif
14417
14418 int
14419 main ()
14420 {
14421 return $ac_func ();
14422   ;
14423   return 0;
14424 }
14425 _ACEOF
14426 rm -f conftest.$ac_objext conftest$ac_exeext
14427 if { (ac_try="$ac_link"
14428 case "(($ac_try" in
14429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430   *) ac_try_echo=$ac_try;;
14431 esac
14432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433   (eval "$ac_link") 2>conftest.er1
14434   ac_status=$?
14435   grep -v '^ *+' conftest.er1 >conftest.err
14436   rm -f conftest.er1
14437   cat conftest.err >&5
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); } &&
14440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14441   { (case "(($ac_try" in
14442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443   *) ac_try_echo=$ac_try;;
14444 esac
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446   (eval "$ac_try") 2>&5
14447   ac_status=$?
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); }; } &&
14450          { ac_try='test -s conftest$ac_exeext'
14451   { (case "(($ac_try" in
14452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453   *) ac_try_echo=$ac_try;;
14454 esac
14455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456   (eval "$ac_try") 2>&5
14457   ac_status=$?
14458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459   (exit $ac_status); }; }; then
14460   eval "$as_ac_var=yes"
14461 else
14462   echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14464
14465         eval "$as_ac_var=no"
14466 fi
14467
14468 rm -f core conftest.err conftest.$ac_objext \
14469       conftest$ac_exeext conftest.$ac_ext
14470 fi
14471 ac_res=`eval echo '${'$as_ac_var'}'`
14472                { echo "$as_me:$LINENO: result: $ac_res" >&5
14473 echo "${ECHO_T}$ac_res" >&6; }
14474 if test `eval echo '${'$as_ac_var'}'` = yes; then
14475   cat >>confdefs.h <<_ACEOF
14476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14477 _ACEOF
14478
14479 fi
14480 done
14481
14482
14483
14484
14485
14486 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14487 do
14488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14492   echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494   cat >conftest.$ac_ext <<_ACEOF
14495 /* confdefs.h.  */
14496 _ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h.  */
14500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14502 #define $ac_func innocuous_$ac_func
14503
14504 /* System header to define __stub macros and hopefully few prototypes,
14505     which can conflict with char $ac_func (); below.
14506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14507     <limits.h> exists even on freestanding compilers.  */
14508
14509 #ifdef __STDC__
14510 # include <limits.h>
14511 #else
14512 # include <assert.h>
14513 #endif
14514
14515 #undef $ac_func
14516
14517 /* Override any GCC internal prototype to avoid an error.
14518    Use char because int might match the return type of a GCC
14519    builtin and then its argument prototype would still apply.  */
14520 #ifdef __cplusplus
14521 extern "C"
14522 #endif
14523 char $ac_func ();
14524 /* The GNU C library defines this for functions which it implements
14525     to always fail with ENOSYS.  Some functions are actually named
14526     something starting with __ and the normal name is an alias.  */
14527 #if defined __stub_$ac_func || defined __stub___$ac_func
14528 choke me
14529 #endif
14530
14531 int
14532 main ()
14533 {
14534 return $ac_func ();
14535   ;
14536   return 0;
14537 }
14538 _ACEOF
14539 rm -f conftest.$ac_objext conftest$ac_exeext
14540 if { (ac_try="$ac_link"
14541 case "(($ac_try" in
14542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543   *) ac_try_echo=$ac_try;;
14544 esac
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546   (eval "$ac_link") 2>conftest.er1
14547   ac_status=$?
14548   grep -v '^ *+' conftest.er1 >conftest.err
14549   rm -f conftest.er1
14550   cat conftest.err >&5
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); } &&
14553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14554   { (case "(($ac_try" in
14555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556   *) ac_try_echo=$ac_try;;
14557 esac
14558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559   (eval "$ac_try") 2>&5
14560   ac_status=$?
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); }; } &&
14563          { ac_try='test -s conftest$ac_exeext'
14564   { (case "(($ac_try" in
14565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566   *) ac_try_echo=$ac_try;;
14567 esac
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569   (eval "$ac_try") 2>&5
14570   ac_status=$?
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); }; }; then
14573   eval "$as_ac_var=yes"
14574 else
14575   echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14577
14578         eval "$as_ac_var=no"
14579 fi
14580
14581 rm -f core conftest.err conftest.$ac_objext \
14582       conftest$ac_exeext conftest.$ac_ext
14583 fi
14584 ac_res=`eval echo '${'$as_ac_var'}'`
14585                { echo "$as_me:$LINENO: result: $ac_res" >&5
14586 echo "${ECHO_T}$ac_res" >&6; }
14587 if test `eval echo '${'$as_ac_var'}'` = yes; then
14588   cat >>confdefs.h <<_ACEOF
14589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14590 _ACEOF
14591
14592 fi
14593 done
14594
14595
14596
14597
14598
14599
14600 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14601 do
14602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14606   echo $ECHO_N "(cached) $ECHO_C" >&6
14607 else
14608   cat >conftest.$ac_ext <<_ACEOF
14609 /* confdefs.h.  */
14610 _ACEOF
14611 cat confdefs.h >>conftest.$ac_ext
14612 cat >>conftest.$ac_ext <<_ACEOF
14613 /* end confdefs.h.  */
14614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14616 #define $ac_func innocuous_$ac_func
14617
14618 /* System header to define __stub macros and hopefully few prototypes,
14619     which can conflict with char $ac_func (); below.
14620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14621     <limits.h> exists even on freestanding compilers.  */
14622
14623 #ifdef __STDC__
14624 # include <limits.h>
14625 #else
14626 # include <assert.h>
14627 #endif
14628
14629 #undef $ac_func
14630
14631 /* Override any GCC internal prototype to avoid an error.
14632    Use char because int might match the return type of a GCC
14633    builtin and then its argument prototype would still apply.  */
14634 #ifdef __cplusplus
14635 extern "C"
14636 #endif
14637 char $ac_func ();
14638 /* The GNU C library defines this for functions which it implements
14639     to always fail with ENOSYS.  Some functions are actually named
14640     something starting with __ and the normal name is an alias.  */
14641 #if defined __stub_$ac_func || defined __stub___$ac_func
14642 choke me
14643 #endif
14644
14645 int
14646 main ()
14647 {
14648 return $ac_func ();
14649   ;
14650   return 0;
14651 }
14652 _ACEOF
14653 rm -f conftest.$ac_objext conftest$ac_exeext
14654 if { (ac_try="$ac_link"
14655 case "(($ac_try" in
14656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657   *) ac_try_echo=$ac_try;;
14658 esac
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660   (eval "$ac_link") 2>conftest.er1
14661   ac_status=$?
14662   grep -v '^ *+' conftest.er1 >conftest.err
14663   rm -f conftest.er1
14664   cat conftest.err >&5
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); } &&
14667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14668   { (case "(($ac_try" in
14669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670   *) ac_try_echo=$ac_try;;
14671 esac
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673   (eval "$ac_try") 2>&5
14674   ac_status=$?
14675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); }; } &&
14677          { ac_try='test -s conftest$ac_exeext'
14678   { (case "(($ac_try" in
14679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14680   *) ac_try_echo=$ac_try;;
14681 esac
14682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14683   (eval "$ac_try") 2>&5
14684   ac_status=$?
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); }; }; then
14687   eval "$as_ac_var=yes"
14688 else
14689   echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14691
14692         eval "$as_ac_var=no"
14693 fi
14694
14695 rm -f core conftest.err conftest.$ac_objext \
14696       conftest$ac_exeext conftest.$ac_ext
14697 fi
14698 ac_res=`eval echo '${'$as_ac_var'}'`
14699                { echo "$as_me:$LINENO: result: $ac_res" >&5
14700 echo "${ECHO_T}$ac_res" >&6; }
14701 if test `eval echo '${'$as_ac_var'}'` = yes; then
14702   cat >>confdefs.h <<_ACEOF
14703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14704 _ACEOF
14705
14706 fi
14707 done
14708
14709
14710
14711 for ac_func in futimes futimens
14712 do
14713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14717   echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719   cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14727 #define $ac_func innocuous_$ac_func
14728
14729 /* System header to define __stub macros and hopefully few prototypes,
14730     which can conflict with char $ac_func (); below.
14731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14732     <limits.h> exists even on freestanding compilers.  */
14733
14734 #ifdef __STDC__
14735 # include <limits.h>
14736 #else
14737 # include <assert.h>
14738 #endif
14739
14740 #undef $ac_func
14741
14742 /* Override any GCC internal prototype to avoid an error.
14743    Use char because int might match the return type of a GCC
14744    builtin and then its argument prototype would still apply.  */
14745 #ifdef __cplusplus
14746 extern "C"
14747 #endif
14748 char $ac_func ();
14749 /* The GNU C library defines this for functions which it implements
14750     to always fail with ENOSYS.  Some functions are actually named
14751     something starting with __ and the normal name is an alias.  */
14752 #if defined __stub_$ac_func || defined __stub___$ac_func
14753 choke me
14754 #endif
14755
14756 int
14757 main ()
14758 {
14759 return $ac_func ();
14760   ;
14761   return 0;
14762 }
14763 _ACEOF
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (ac_try="$ac_link"
14766 case "(($ac_try" in
14767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768   *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771   (eval "$ac_link") 2>conftest.er1
14772   ac_status=$?
14773   grep -v '^ *+' conftest.er1 >conftest.err
14774   rm -f conftest.er1
14775   cat conftest.err >&5
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); } &&
14778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14779   { (case "(($ac_try" in
14780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781   *) ac_try_echo=$ac_try;;
14782 esac
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784   (eval "$ac_try") 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; } &&
14788          { ac_try='test -s conftest$ac_exeext'
14789   { (case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794   (eval "$ac_try") 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); }; }; then
14798   eval "$as_ac_var=yes"
14799 else
14800   echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14802
14803         eval "$as_ac_var=no"
14804 fi
14805
14806 rm -f core conftest.err conftest.$ac_objext \
14807       conftest$ac_exeext conftest.$ac_ext
14808 fi
14809 ac_res=`eval echo '${'$as_ac_var'}'`
14810                { echo "$as_me:$LINENO: result: $ac_res" >&5
14811 echo "${ECHO_T}$ac_res" >&6; }
14812 if test `eval echo '${'$as_ac_var'}'` = yes; then
14813   cat >>confdefs.h <<_ACEOF
14814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14815 _ACEOF
14816
14817 fi
14818 done
14819
14820 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14821 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14822 if test "${llvm_cv_c_printf_a+set}" = set; then
14823   echo $ECHO_N "(cached) $ECHO_C" >&6
14824 else
14825   ac_ext=c
14826 ac_cpp='$CPP $CPPFLAGS'
14827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14830
14831  if test "$cross_compiling" = yes; then
14832   llvmac_cv_c_printf_a=no
14833 else
14834   cat >conftest.$ac_ext <<_ACEOF
14835
14836   /* confdefs.h.  */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h.  */
14841
14842 #include <stdio.h>
14843 #include <stdlib.h>
14844
14845 int
14846 main ()
14847 {
14848
14849 volatile double A, B;
14850 char Buffer[100];
14851 A = 1;
14852 A /= 10.0;
14853 sprintf(Buffer, "%a", A);
14854 B = atof(Buffer);
14855 if (A != B)
14856   return (1);
14857 if (A != 0x1.999999999999ap-4)
14858   return (1);
14859 return (0);
14860   ;
14861   return 0;
14862 }
14863 _ACEOF
14864 rm -f conftest$ac_exeext
14865 if { (ac_try="$ac_link"
14866 case "(($ac_try" in
14867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868   *) ac_try_echo=$ac_try;;
14869 esac
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871   (eval "$ac_link") 2>&5
14872   ac_status=$?
14873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14875   { (case "(($ac_try" in
14876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877   *) ac_try_echo=$ac_try;;
14878 esac
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880   (eval "$ac_try") 2>&5
14881   ac_status=$?
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); }; }; then
14884   llvm_cv_c_printf_a=yes
14885 else
14886   echo "$as_me: program exited with status $ac_status" >&5
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14889
14890 ( exit $ac_status )
14891 llvmac_cv_c_printf_a=no
14892 fi
14893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14894 fi
14895
14896
14897  ac_ext=c
14898 ac_cpp='$CPP $CPPFLAGS'
14899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14902
14903 fi
14904 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14905 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14906  if test "$llvm_cv_c_printf_a" = "yes"; then
14907
14908 cat >>confdefs.h <<\_ACEOF
14909 #define HAVE_PRINTF_A 1
14910 _ACEOF
14911
14912  fi
14913
14914
14915
14916   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14917 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14918 if test "${ac_cv_func_rand48+set}" = set; then
14919   echo $ECHO_N "(cached) $ECHO_C" >&6
14920 else
14921
14922     ac_ext=cpp
14923 ac_cpp='$CXXCPP $CPPFLAGS'
14924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14927
14928     cat >conftest.$ac_ext <<_ACEOF
14929 /* confdefs.h.  */
14930 _ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h.  */
14934 #include <stdlib.h>
14935 int
14936 main ()
14937 {
14938 srand48(0);lrand48();drand48();
14939   ;
14940   return 0;
14941 }
14942 _ACEOF
14943 rm -f conftest.$ac_objext
14944 if { (ac_try="$ac_compile"
14945 case "(($ac_try" in
14946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947   *) ac_try_echo=$ac_try;;
14948 esac
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950   (eval "$ac_compile") 2>conftest.er1
14951   ac_status=$?
14952   grep -v '^ *+' conftest.er1 >conftest.err
14953   rm -f conftest.er1
14954   cat conftest.err >&5
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); } &&
14957          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14958   { (case "(($ac_try" in
14959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960   *) ac_try_echo=$ac_try;;
14961 esac
14962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14963   (eval "$ac_try") 2>&5
14964   ac_status=$?
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); }; } &&
14967          { ac_try='test -s conftest.$ac_objext'
14968   { (case "(($ac_try" in
14969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970   *) ac_try_echo=$ac_try;;
14971 esac
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973   (eval "$ac_try") 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); }; }; then
14977   ac_cv_func_rand48=yes
14978 else
14979   echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14981
14982         ac_cv_func_rand48=no
14983 fi
14984
14985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14986     ac_ext=c
14987 ac_cpp='$CPP $CPPFLAGS'
14988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14991
14992
14993 fi
14994 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
14995 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
14996
14997 if test "$ac_cv_func_rand48" = "yes" ; then
14998
14999 cat >>confdefs.h <<\_ACEOF
15000 #define HAVE_RAND48 1
15001 _ACEOF
15002
15003 fi
15004
15005
15006 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15007 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15008 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15009   echo $ECHO_N "(cached) $ECHO_C" >&6
15010 else
15011   cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h.  */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h.  */
15017 $ac_includes_default
15018 int
15019 main ()
15020 {
15021 #ifndef arc4random
15022   char *p = (char *) arc4random;
15023   return !p;
15024 #endif
15025
15026   ;
15027   return 0;
15028 }
15029 _ACEOF
15030 rm -f conftest.$ac_objext
15031 if { (ac_try="$ac_compile"
15032 case "(($ac_try" in
15033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034   *) ac_try_echo=$ac_try;;
15035 esac
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037   (eval "$ac_compile") 2>conftest.er1
15038   ac_status=$?
15039   grep -v '^ *+' conftest.er1 >conftest.err
15040   rm -f conftest.er1
15041   cat conftest.err >&5
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); } &&
15044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15045   { (case "(($ac_try" in
15046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047   *) ac_try_echo=$ac_try;;
15048 esac
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050   (eval "$ac_try") 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; } &&
15054          { ac_try='test -s conftest.$ac_objext'
15055   { (case "(($ac_try" in
15056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057   *) ac_try_echo=$ac_try;;
15058 esac
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060   (eval "$ac_try") 2>&5
15061   ac_status=$?
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); }; }; then
15064   ac_cv_have_decl_arc4random=yes
15065 else
15066   echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15068
15069         ac_cv_have_decl_arc4random=no
15070 fi
15071
15072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073 fi
15074 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15075 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15076 if test $ac_cv_have_decl_arc4random = yes; then
15077
15078 cat >>confdefs.h <<_ACEOF
15079 #define HAVE_DECL_ARC4RANDOM 1
15080 _ACEOF
15081
15082
15083 else
15084   cat >>confdefs.h <<_ACEOF
15085 #define HAVE_DECL_ARC4RANDOM 0
15086 _ACEOF
15087
15088
15089 fi
15090
15091
15092
15093 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15094 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15095 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15096   echo $ECHO_N "(cached) $ECHO_C" >&6
15097 else
15098   cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h.  */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h.  */
15104 $ac_includes_default
15105 int
15106 main ()
15107 {
15108 #ifndef strerror_s
15109   char *p = (char *) strerror_s;
15110   return !p;
15111 #endif
15112
15113   ;
15114   return 0;
15115 }
15116 _ACEOF
15117 rm -f conftest.$ac_objext
15118 if { (ac_try="$ac_compile"
15119 case "(($ac_try" in
15120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121   *) ac_try_echo=$ac_try;;
15122 esac
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124   (eval "$ac_compile") 2>conftest.er1
15125   ac_status=$?
15126   grep -v '^ *+' conftest.er1 >conftest.err
15127   rm -f conftest.er1
15128   cat conftest.err >&5
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); } &&
15131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15132   { (case "(($ac_try" in
15133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134   *) ac_try_echo=$ac_try;;
15135 esac
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137   (eval "$ac_try") 2>&5
15138   ac_status=$?
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); }; } &&
15141          { ac_try='test -s conftest.$ac_objext'
15142   { (case "(($ac_try" in
15143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144   *) ac_try_echo=$ac_try;;
15145 esac
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147   (eval "$ac_try") 2>&5
15148   ac_status=$?
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); }; }; then
15151   ac_cv_have_decl_strerror_s=yes
15152 else
15153   echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15155
15156         ac_cv_have_decl_strerror_s=no
15157 fi
15158
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160 fi
15161 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15162 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15163 if test $ac_cv_have_decl_strerror_s = yes; then
15164
15165 cat >>confdefs.h <<_ACEOF
15166 #define HAVE_DECL_STRERROR_S 1
15167 _ACEOF
15168
15169
15170 else
15171   cat >>confdefs.h <<_ACEOF
15172 #define HAVE_DECL_STRERROR_S 0
15173 _ACEOF
15174
15175
15176 fi
15177
15178
15179
15180 if test "$llvm_cv_os_type" = "MingW" ; then
15181   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15182 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15183 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15184   echo $ECHO_N "(cached) $ECHO_C" >&6
15185 else
15186   ac_check_lib_save_LIBS=$LIBS
15187 LIBS="-lgcc  $LIBS"
15188 cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h.  */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h.  */
15194
15195 /* Override any GCC internal prototype to avoid an error.
15196    Use char because int might match the return type of a GCC
15197    builtin and then its argument prototype would still apply.  */
15198 #ifdef __cplusplus
15199 extern "C"
15200 #endif
15201 char _alloca ();
15202 int
15203 main ()
15204 {
15205 return _alloca ();
15206   ;
15207   return 0;
15208 }
15209 _ACEOF
15210 rm -f conftest.$ac_objext conftest$ac_exeext
15211 if { (ac_try="$ac_link"
15212 case "(($ac_try" in
15213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214   *) ac_try_echo=$ac_try;;
15215 esac
15216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217   (eval "$ac_link") 2>conftest.er1
15218   ac_status=$?
15219   grep -v '^ *+' conftest.er1 >conftest.err
15220   rm -f conftest.er1
15221   cat conftest.err >&5
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } &&
15224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15225   { (case "(($ac_try" in
15226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227   *) ac_try_echo=$ac_try;;
15228 esac
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230   (eval "$ac_try") 2>&5
15231   ac_status=$?
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); }; } &&
15234          { ac_try='test -s conftest$ac_exeext'
15235   { (case "(($ac_try" in
15236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237   *) ac_try_echo=$ac_try;;
15238 esac
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240   (eval "$ac_try") 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); }; }; then
15244   ac_cv_lib_gcc__alloca=yes
15245 else
15246   echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15248
15249         ac_cv_lib_gcc__alloca=no
15250 fi
15251
15252 rm -f core conftest.err conftest.$ac_objext \
15253       conftest$ac_exeext conftest.$ac_ext
15254 LIBS=$ac_check_lib_save_LIBS
15255 fi
15256 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15257 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15258 if test $ac_cv_lib_gcc__alloca = yes; then
15259
15260 cat >>confdefs.h <<\_ACEOF
15261 #define HAVE__ALLOCA 1
15262 _ACEOF
15263
15264 fi
15265
15266   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15267 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15268 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15269   echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271   ac_check_lib_save_LIBS=$LIBS
15272 LIBS="-lgcc  $LIBS"
15273 cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h.  */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h.  */
15279
15280 /* Override any GCC internal prototype to avoid an error.
15281    Use char because int might match the return type of a GCC
15282    builtin and then its argument prototype would still apply.  */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 char __alloca ();
15287 int
15288 main ()
15289 {
15290 return __alloca ();
15291   ;
15292   return 0;
15293 }
15294 _ACEOF
15295 rm -f conftest.$ac_objext conftest$ac_exeext
15296 if { (ac_try="$ac_link"
15297 case "(($ac_try" in
15298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299   *) ac_try_echo=$ac_try;;
15300 esac
15301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15302   (eval "$ac_link") 2>conftest.er1
15303   ac_status=$?
15304   grep -v '^ *+' conftest.er1 >conftest.err
15305   rm -f conftest.er1
15306   cat conftest.err >&5
15307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308   (exit $ac_status); } &&
15309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15310   { (case "(($ac_try" in
15311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312   *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315   (eval "$ac_try") 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); }; } &&
15319          { ac_try='test -s conftest$ac_exeext'
15320   { (case "(($ac_try" in
15321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322   *) ac_try_echo=$ac_try;;
15323 esac
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325   (eval "$ac_try") 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; }; then
15329   ac_cv_lib_gcc___alloca=yes
15330 else
15331   echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15333
15334         ac_cv_lib_gcc___alloca=no
15335 fi
15336
15337 rm -f core conftest.err conftest.$ac_objext \
15338       conftest$ac_exeext conftest.$ac_ext
15339 LIBS=$ac_check_lib_save_LIBS
15340 fi
15341 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15342 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15343 if test $ac_cv_lib_gcc___alloca = yes; then
15344
15345 cat >>confdefs.h <<\_ACEOF
15346 #define HAVE___ALLOCA 1
15347 _ACEOF
15348
15349 fi
15350
15351   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15352 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15353 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15354   echo $ECHO_N "(cached) $ECHO_C" >&6
15355 else
15356   ac_check_lib_save_LIBS=$LIBS
15357 LIBS="-lgcc  $LIBS"
15358 cat >conftest.$ac_ext <<_ACEOF
15359 /* confdefs.h.  */
15360 _ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h.  */
15364
15365 /* Override any GCC internal prototype to avoid an error.
15366    Use char because int might match the return type of a GCC
15367    builtin and then its argument prototype would still apply.  */
15368 #ifdef __cplusplus
15369 extern "C"
15370 #endif
15371 char __chkstk ();
15372 int
15373 main ()
15374 {
15375 return __chkstk ();
15376   ;
15377   return 0;
15378 }
15379 _ACEOF
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (ac_try="$ac_link"
15382 case "(($ac_try" in
15383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384   *) ac_try_echo=$ac_try;;
15385 esac
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387   (eval "$ac_link") 2>conftest.er1
15388   ac_status=$?
15389   grep -v '^ *+' conftest.er1 >conftest.err
15390   rm -f conftest.er1
15391   cat conftest.err >&5
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } &&
15394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15395   { (case "(($ac_try" in
15396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397   *) ac_try_echo=$ac_try;;
15398 esac
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400   (eval "$ac_try") 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; } &&
15404          { ac_try='test -s conftest$ac_exeext'
15405   { (case "(($ac_try" in
15406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407   *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410   (eval "$ac_try") 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; }; then
15414   ac_cv_lib_gcc___chkstk=yes
15415 else
15416   echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15418
15419         ac_cv_lib_gcc___chkstk=no
15420 fi
15421
15422 rm -f core conftest.err conftest.$ac_objext \
15423       conftest$ac_exeext conftest.$ac_ext
15424 LIBS=$ac_check_lib_save_LIBS
15425 fi
15426 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15427 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15428 if test $ac_cv_lib_gcc___chkstk = yes; then
15429
15430 cat >>confdefs.h <<\_ACEOF
15431 #define HAVE___CHKSTK 1
15432 _ACEOF
15433
15434 fi
15435
15436   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15437 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15438 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15439   echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441   ac_check_lib_save_LIBS=$LIBS
15442 LIBS="-lgcc  $LIBS"
15443 cat >conftest.$ac_ext <<_ACEOF
15444 /* confdefs.h.  */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h.  */
15449
15450 /* Override any GCC internal prototype to avoid an error.
15451    Use char because int might match the return type of a GCC
15452    builtin and then its argument prototype would still apply.  */
15453 #ifdef __cplusplus
15454 extern "C"
15455 #endif
15456 char ___chkstk ();
15457 int
15458 main ()
15459 {
15460 return ___chkstk ();
15461   ;
15462   return 0;
15463 }
15464 _ACEOF
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (ac_try="$ac_link"
15467 case "(($ac_try" in
15468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469   *) ac_try_echo=$ac_try;;
15470 esac
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472   (eval "$ac_link") 2>conftest.er1
15473   ac_status=$?
15474   grep -v '^ *+' conftest.er1 >conftest.err
15475   rm -f conftest.er1
15476   cat conftest.err >&5
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); } &&
15479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15480   { (case "(($ac_try" in
15481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15482   *) ac_try_echo=$ac_try;;
15483 esac
15484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15485   (eval "$ac_try") 2>&5
15486   ac_status=$?
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); }; } &&
15489          { ac_try='test -s conftest$ac_exeext'
15490   { (case "(($ac_try" in
15491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492   *) ac_try_echo=$ac_try;;
15493 esac
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495   (eval "$ac_try") 2>&5
15496   ac_status=$?
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); }; }; then
15499   ac_cv_lib_gcc____chkstk=yes
15500 else
15501   echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15503
15504         ac_cv_lib_gcc____chkstk=no
15505 fi
15506
15507 rm -f core conftest.err conftest.$ac_objext \
15508       conftest$ac_exeext conftest.$ac_ext
15509 LIBS=$ac_check_lib_save_LIBS
15510 fi
15511 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15512 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15513 if test $ac_cv_lib_gcc____chkstk = yes; then
15514
15515 cat >>confdefs.h <<\_ACEOF
15516 #define HAVE____CHKSTK 1
15517 _ACEOF
15518
15519 fi
15520
15521
15522   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15523 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15524 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15525   echo $ECHO_N "(cached) $ECHO_C" >&6
15526 else
15527   ac_check_lib_save_LIBS=$LIBS
15528 LIBS="-lgcc  $LIBS"
15529 cat >conftest.$ac_ext <<_ACEOF
15530 /* confdefs.h.  */
15531 _ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h.  */
15535
15536 /* Override any GCC internal prototype to avoid an error.
15537    Use char because int might match the return type of a GCC
15538    builtin and then its argument prototype would still apply.  */
15539 #ifdef __cplusplus
15540 extern "C"
15541 #endif
15542 char __ashldi3 ();
15543 int
15544 main ()
15545 {
15546 return __ashldi3 ();
15547   ;
15548   return 0;
15549 }
15550 _ACEOF
15551 rm -f conftest.$ac_objext conftest$ac_exeext
15552 if { (ac_try="$ac_link"
15553 case "(($ac_try" in
15554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555   *) ac_try_echo=$ac_try;;
15556 esac
15557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558   (eval "$ac_link") 2>conftest.er1
15559   ac_status=$?
15560   grep -v '^ *+' conftest.er1 >conftest.err
15561   rm -f conftest.er1
15562   cat conftest.err >&5
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); } &&
15565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15566   { (case "(($ac_try" in
15567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568   *) ac_try_echo=$ac_try;;
15569 esac
15570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571   (eval "$ac_try") 2>&5
15572   ac_status=$?
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); }; } &&
15575          { ac_try='test -s conftest$ac_exeext'
15576   { (case "(($ac_try" in
15577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578   *) ac_try_echo=$ac_try;;
15579 esac
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581   (eval "$ac_try") 2>&5
15582   ac_status=$?
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); }; }; then
15585   ac_cv_lib_gcc___ashldi3=yes
15586 else
15587   echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15589
15590         ac_cv_lib_gcc___ashldi3=no
15591 fi
15592
15593 rm -f core conftest.err conftest.$ac_objext \
15594       conftest$ac_exeext conftest.$ac_ext
15595 LIBS=$ac_check_lib_save_LIBS
15596 fi
15597 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15598 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15599 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15600
15601 cat >>confdefs.h <<\_ACEOF
15602 #define HAVE___ASHLDI3 1
15603 _ACEOF
15604
15605 fi
15606
15607   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15608 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15609 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15610   echo $ECHO_N "(cached) $ECHO_C" >&6
15611 else
15612   ac_check_lib_save_LIBS=$LIBS
15613 LIBS="-lgcc  $LIBS"
15614 cat >conftest.$ac_ext <<_ACEOF
15615 /* confdefs.h.  */
15616 _ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h.  */
15620
15621 /* Override any GCC internal prototype to avoid an error.
15622    Use char because int might match the return type of a GCC
15623    builtin and then its argument prototype would still apply.  */
15624 #ifdef __cplusplus
15625 extern "C"
15626 #endif
15627 char __ashrdi3 ();
15628 int
15629 main ()
15630 {
15631 return __ashrdi3 ();
15632   ;
15633   return 0;
15634 }
15635 _ACEOF
15636 rm -f conftest.$ac_objext conftest$ac_exeext
15637 if { (ac_try="$ac_link"
15638 case "(($ac_try" in
15639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640   *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643   (eval "$ac_link") 2>conftest.er1
15644   ac_status=$?
15645   grep -v '^ *+' conftest.er1 >conftest.err
15646   rm -f conftest.er1
15647   cat conftest.err >&5
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); } &&
15650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15651   { (case "(($ac_try" in
15652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653   *) ac_try_echo=$ac_try;;
15654 esac
15655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656   (eval "$ac_try") 2>&5
15657   ac_status=$?
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); }; } &&
15660          { ac_try='test -s conftest$ac_exeext'
15661   { (case "(($ac_try" in
15662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663   *) ac_try_echo=$ac_try;;
15664 esac
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666   (eval "$ac_try") 2>&5
15667   ac_status=$?
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); }; }; then
15670   ac_cv_lib_gcc___ashrdi3=yes
15671 else
15672   echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15674
15675         ac_cv_lib_gcc___ashrdi3=no
15676 fi
15677
15678 rm -f core conftest.err conftest.$ac_objext \
15679       conftest$ac_exeext conftest.$ac_ext
15680 LIBS=$ac_check_lib_save_LIBS
15681 fi
15682 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15683 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15684 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15685
15686 cat >>confdefs.h <<\_ACEOF
15687 #define HAVE___ASHRDI3 1
15688 _ACEOF
15689
15690 fi
15691
15692   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15693 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15694 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15695   echo $ECHO_N "(cached) $ECHO_C" >&6
15696 else
15697   ac_check_lib_save_LIBS=$LIBS
15698 LIBS="-lgcc  $LIBS"
15699 cat >conftest.$ac_ext <<_ACEOF
15700 /* confdefs.h.  */
15701 _ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h.  */
15705
15706 /* Override any GCC internal prototype to avoid an error.
15707    Use char because int might match the return type of a GCC
15708    builtin and then its argument prototype would still apply.  */
15709 #ifdef __cplusplus
15710 extern "C"
15711 #endif
15712 char __divdi3 ();
15713 int
15714 main ()
15715 {
15716 return __divdi3 ();
15717   ;
15718   return 0;
15719 }
15720 _ACEOF
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (ac_try="$ac_link"
15723 case "(($ac_try" in
15724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725   *) ac_try_echo=$ac_try;;
15726 esac
15727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728   (eval "$ac_link") 2>conftest.er1
15729   ac_status=$?
15730   grep -v '^ *+' conftest.er1 >conftest.err
15731   rm -f conftest.er1
15732   cat conftest.err >&5
15733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734   (exit $ac_status); } &&
15735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15736   { (case "(($ac_try" in
15737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738   *) ac_try_echo=$ac_try;;
15739 esac
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741   (eval "$ac_try") 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); }; } &&
15745          { ac_try='test -s conftest$ac_exeext'
15746   { (case "(($ac_try" in
15747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748   *) ac_try_echo=$ac_try;;
15749 esac
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751   (eval "$ac_try") 2>&5
15752   ac_status=$?
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); }; }; then
15755   ac_cv_lib_gcc___divdi3=yes
15756 else
15757   echo "$as_me: failed program was:" >&5
15758 sed 's/^/| /' conftest.$ac_ext >&5
15759
15760         ac_cv_lib_gcc___divdi3=no
15761 fi
15762
15763 rm -f core conftest.err conftest.$ac_objext \
15764       conftest$ac_exeext conftest.$ac_ext
15765 LIBS=$ac_check_lib_save_LIBS
15766 fi
15767 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15768 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15769 if test $ac_cv_lib_gcc___divdi3 = yes; then
15770
15771 cat >>confdefs.h <<\_ACEOF
15772 #define HAVE___DIVDI3 1
15773 _ACEOF
15774
15775 fi
15776
15777   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15778 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15779 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15780   echo $ECHO_N "(cached) $ECHO_C" >&6
15781 else
15782   ac_check_lib_save_LIBS=$LIBS
15783 LIBS="-lgcc  $LIBS"
15784 cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h.  */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h.  */
15790
15791 /* Override any GCC internal prototype to avoid an error.
15792    Use char because int might match the return type of a GCC
15793    builtin and then its argument prototype would still apply.  */
15794 #ifdef __cplusplus
15795 extern "C"
15796 #endif
15797 char __fixdfdi ();
15798 int
15799 main ()
15800 {
15801 return __fixdfdi ();
15802   ;
15803   return 0;
15804 }
15805 _ACEOF
15806 rm -f conftest.$ac_objext conftest$ac_exeext
15807 if { (ac_try="$ac_link"
15808 case "(($ac_try" in
15809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810   *) ac_try_echo=$ac_try;;
15811 esac
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813   (eval "$ac_link") 2>conftest.er1
15814   ac_status=$?
15815   grep -v '^ *+' conftest.er1 >conftest.err
15816   rm -f conftest.er1
15817   cat conftest.err >&5
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); } &&
15820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15821   { (case "(($ac_try" in
15822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823   *) ac_try_echo=$ac_try;;
15824 esac
15825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15826   (eval "$ac_try") 2>&5
15827   ac_status=$?
15828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829   (exit $ac_status); }; } &&
15830          { ac_try='test -s conftest$ac_exeext'
15831   { (case "(($ac_try" in
15832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833   *) ac_try_echo=$ac_try;;
15834 esac
15835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15836   (eval "$ac_try") 2>&5
15837   ac_status=$?
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); }; }; then
15840   ac_cv_lib_gcc___fixdfdi=yes
15841 else
15842   echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15844
15845         ac_cv_lib_gcc___fixdfdi=no
15846 fi
15847
15848 rm -f core conftest.err conftest.$ac_objext \
15849       conftest$ac_exeext conftest.$ac_ext
15850 LIBS=$ac_check_lib_save_LIBS
15851 fi
15852 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
15853 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
15854 if test $ac_cv_lib_gcc___fixdfdi = yes; then
15855
15856 cat >>confdefs.h <<\_ACEOF
15857 #define HAVE___FIXDFDI 1
15858 _ACEOF
15859
15860 fi
15861
15862   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15863 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15864 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15865   echo $ECHO_N "(cached) $ECHO_C" >&6
15866 else
15867   ac_check_lib_save_LIBS=$LIBS
15868 LIBS="-lgcc  $LIBS"
15869 cat >conftest.$ac_ext <<_ACEOF
15870 /* confdefs.h.  */
15871 _ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h.  */
15875
15876 /* Override any GCC internal prototype to avoid an error.
15877    Use char because int might match the return type of a GCC
15878    builtin and then its argument prototype would still apply.  */
15879 #ifdef __cplusplus
15880 extern "C"
15881 #endif
15882 char __fixsfdi ();
15883 int
15884 main ()
15885 {
15886 return __fixsfdi ();
15887   ;
15888   return 0;
15889 }
15890 _ACEOF
15891 rm -f conftest.$ac_objext conftest$ac_exeext
15892 if { (ac_try="$ac_link"
15893 case "(($ac_try" in
15894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895   *) ac_try_echo=$ac_try;;
15896 esac
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898   (eval "$ac_link") 2>conftest.er1
15899   ac_status=$?
15900   grep -v '^ *+' conftest.er1 >conftest.err
15901   rm -f conftest.er1
15902   cat conftest.err >&5
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); } &&
15905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15906   { (case "(($ac_try" in
15907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908   *) ac_try_echo=$ac_try;;
15909 esac
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911   (eval "$ac_try") 2>&5
15912   ac_status=$?
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); }; } &&
15915          { ac_try='test -s conftest$ac_exeext'
15916   { (case "(($ac_try" in
15917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918   *) ac_try_echo=$ac_try;;
15919 esac
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921   (eval "$ac_try") 2>&5
15922   ac_status=$?
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); }; }; then
15925   ac_cv_lib_gcc___fixsfdi=yes
15926 else
15927   echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.$ac_ext >&5
15929
15930         ac_cv_lib_gcc___fixsfdi=no
15931 fi
15932
15933 rm -f core conftest.err conftest.$ac_objext \
15934       conftest$ac_exeext conftest.$ac_ext
15935 LIBS=$ac_check_lib_save_LIBS
15936 fi
15937 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
15938 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
15939 if test $ac_cv_lib_gcc___fixsfdi = yes; then
15940
15941 cat >>confdefs.h <<\_ACEOF
15942 #define HAVE___FIXSFDI 1
15943 _ACEOF
15944
15945 fi
15946
15947   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
15948 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
15949 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
15950   echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952   ac_check_lib_save_LIBS=$LIBS
15953 LIBS="-lgcc  $LIBS"
15954 cat >conftest.$ac_ext <<_ACEOF
15955 /* confdefs.h.  */
15956 _ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h.  */
15960
15961 /* Override any GCC internal prototype to avoid an error.
15962    Use char because int might match the return type of a GCC
15963    builtin and then its argument prototype would still apply.  */
15964 #ifdef __cplusplus
15965 extern "C"
15966 #endif
15967 char __floatdidf ();
15968 int
15969 main ()
15970 {
15971 return __floatdidf ();
15972   ;
15973   return 0;
15974 }
15975 _ACEOF
15976 rm -f conftest.$ac_objext conftest$ac_exeext
15977 if { (ac_try="$ac_link"
15978 case "(($ac_try" in
15979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980   *) ac_try_echo=$ac_try;;
15981 esac
15982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15983   (eval "$ac_link") 2>conftest.er1
15984   ac_status=$?
15985   grep -v '^ *+' conftest.er1 >conftest.err
15986   rm -f conftest.er1
15987   cat conftest.err >&5
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); } &&
15990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15991   { (case "(($ac_try" in
15992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993   *) ac_try_echo=$ac_try;;
15994 esac
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996   (eval "$ac_try") 2>&5
15997   ac_status=$?
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); }; } &&
16000          { ac_try='test -s conftest$ac_exeext'
16001   { (case "(($ac_try" in
16002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003   *) ac_try_echo=$ac_try;;
16004 esac
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006   (eval "$ac_try") 2>&5
16007   ac_status=$?
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); }; }; then
16010   ac_cv_lib_gcc___floatdidf=yes
16011 else
16012   echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16014
16015         ac_cv_lib_gcc___floatdidf=no
16016 fi
16017
16018 rm -f core conftest.err conftest.$ac_objext \
16019       conftest$ac_exeext conftest.$ac_ext
16020 LIBS=$ac_check_lib_save_LIBS
16021 fi
16022 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16023 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16024 if test $ac_cv_lib_gcc___floatdidf = yes; then
16025
16026 cat >>confdefs.h <<\_ACEOF
16027 #define HAVE___FLOATDIDF 1
16028 _ACEOF
16029
16030 fi
16031
16032   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16033 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16034 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16035   echo $ECHO_N "(cached) $ECHO_C" >&6
16036 else
16037   ac_check_lib_save_LIBS=$LIBS
16038 LIBS="-lgcc  $LIBS"
16039 cat >conftest.$ac_ext <<_ACEOF
16040 /* confdefs.h.  */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h.  */
16045
16046 /* Override any GCC internal prototype to avoid an error.
16047    Use char because int might match the return type of a GCC
16048    builtin and then its argument prototype would still apply.  */
16049 #ifdef __cplusplus
16050 extern "C"
16051 #endif
16052 char __lshrdi3 ();
16053 int
16054 main ()
16055 {
16056 return __lshrdi3 ();
16057   ;
16058   return 0;
16059 }
16060 _ACEOF
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (ac_try="$ac_link"
16063 case "(($ac_try" in
16064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065   *) ac_try_echo=$ac_try;;
16066 esac
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068   (eval "$ac_link") 2>conftest.er1
16069   ac_status=$?
16070   grep -v '^ *+' conftest.er1 >conftest.err
16071   rm -f conftest.er1
16072   cat conftest.err >&5
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); } &&
16075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16076   { (case "(($ac_try" in
16077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078   *) ac_try_echo=$ac_try;;
16079 esac
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081   (eval "$ac_try") 2>&5
16082   ac_status=$?
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   (exit $ac_status); }; } &&
16085          { ac_try='test -s conftest$ac_exeext'
16086   { (case "(($ac_try" in
16087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088   *) ac_try_echo=$ac_try;;
16089 esac
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091   (eval "$ac_try") 2>&5
16092   ac_status=$?
16093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094   (exit $ac_status); }; }; then
16095   ac_cv_lib_gcc___lshrdi3=yes
16096 else
16097   echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16099
16100         ac_cv_lib_gcc___lshrdi3=no
16101 fi
16102
16103 rm -f core conftest.err conftest.$ac_objext \
16104       conftest$ac_exeext conftest.$ac_ext
16105 LIBS=$ac_check_lib_save_LIBS
16106 fi
16107 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16108 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16109 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16110
16111 cat >>confdefs.h <<\_ACEOF
16112 #define HAVE___LSHRDI3 1
16113 _ACEOF
16114
16115 fi
16116
16117   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16118 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16119 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16120   echo $ECHO_N "(cached) $ECHO_C" >&6
16121 else
16122   ac_check_lib_save_LIBS=$LIBS
16123 LIBS="-lgcc  $LIBS"
16124 cat >conftest.$ac_ext <<_ACEOF
16125 /* confdefs.h.  */
16126 _ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h.  */
16130
16131 /* Override any GCC internal prototype to avoid an error.
16132    Use char because int might match the return type of a GCC
16133    builtin and then its argument prototype would still apply.  */
16134 #ifdef __cplusplus
16135 extern "C"
16136 #endif
16137 char __moddi3 ();
16138 int
16139 main ()
16140 {
16141 return __moddi3 ();
16142   ;
16143   return 0;
16144 }
16145 _ACEOF
16146 rm -f conftest.$ac_objext conftest$ac_exeext
16147 if { (ac_try="$ac_link"
16148 case "(($ac_try" in
16149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150   *) ac_try_echo=$ac_try;;
16151 esac
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153   (eval "$ac_link") 2>conftest.er1
16154   ac_status=$?
16155   grep -v '^ *+' conftest.er1 >conftest.err
16156   rm -f conftest.er1
16157   cat conftest.err >&5
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); } &&
16160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16161   { (case "(($ac_try" in
16162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163   *) ac_try_echo=$ac_try;;
16164 esac
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166   (eval "$ac_try") 2>&5
16167   ac_status=$?
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); }; } &&
16170          { ac_try='test -s conftest$ac_exeext'
16171   { (case "(($ac_try" in
16172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173   *) ac_try_echo=$ac_try;;
16174 esac
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176   (eval "$ac_try") 2>&5
16177   ac_status=$?
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); }; }; then
16180   ac_cv_lib_gcc___moddi3=yes
16181 else
16182   echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16184
16185         ac_cv_lib_gcc___moddi3=no
16186 fi
16187
16188 rm -f core conftest.err conftest.$ac_objext \
16189       conftest$ac_exeext conftest.$ac_ext
16190 LIBS=$ac_check_lib_save_LIBS
16191 fi
16192 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16193 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16194 if test $ac_cv_lib_gcc___moddi3 = yes; then
16195
16196 cat >>confdefs.h <<\_ACEOF
16197 #define HAVE___MODDI3 1
16198 _ACEOF
16199
16200 fi
16201
16202   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16203 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16204 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16205   echo $ECHO_N "(cached) $ECHO_C" >&6
16206 else
16207   ac_check_lib_save_LIBS=$LIBS
16208 LIBS="-lgcc  $LIBS"
16209 cat >conftest.$ac_ext <<_ACEOF
16210 /* confdefs.h.  */
16211 _ACEOF
16212 cat confdefs.h >>conftest.$ac_ext
16213 cat >>conftest.$ac_ext <<_ACEOF
16214 /* end confdefs.h.  */
16215
16216 /* Override any GCC internal prototype to avoid an error.
16217    Use char because int might match the return type of a GCC
16218    builtin and then its argument prototype would still apply.  */
16219 #ifdef __cplusplus
16220 extern "C"
16221 #endif
16222 char __udivdi3 ();
16223 int
16224 main ()
16225 {
16226 return __udivdi3 ();
16227   ;
16228   return 0;
16229 }
16230 _ACEOF
16231 rm -f conftest.$ac_objext conftest$ac_exeext
16232 if { (ac_try="$ac_link"
16233 case "(($ac_try" in
16234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235   *) ac_try_echo=$ac_try;;
16236 esac
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238   (eval "$ac_link") 2>conftest.er1
16239   ac_status=$?
16240   grep -v '^ *+' conftest.er1 >conftest.err
16241   rm -f conftest.er1
16242   cat conftest.err >&5
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); } &&
16245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16246   { (case "(($ac_try" in
16247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248   *) ac_try_echo=$ac_try;;
16249 esac
16250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16251   (eval "$ac_try") 2>&5
16252   ac_status=$?
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); }; } &&
16255          { ac_try='test -s conftest$ac_exeext'
16256   { (case "(($ac_try" in
16257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258   *) ac_try_echo=$ac_try;;
16259 esac
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261   (eval "$ac_try") 2>&5
16262   ac_status=$?
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); }; }; then
16265   ac_cv_lib_gcc___udivdi3=yes
16266 else
16267   echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16269
16270         ac_cv_lib_gcc___udivdi3=no
16271 fi
16272
16273 rm -f core conftest.err conftest.$ac_objext \
16274       conftest$ac_exeext conftest.$ac_ext
16275 LIBS=$ac_check_lib_save_LIBS
16276 fi
16277 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16278 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16279 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16280
16281 cat >>confdefs.h <<\_ACEOF
16282 #define HAVE___UDIVDI3 1
16283 _ACEOF
16284
16285 fi
16286
16287   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16288 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16289 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16290   echo $ECHO_N "(cached) $ECHO_C" >&6
16291 else
16292   ac_check_lib_save_LIBS=$LIBS
16293 LIBS="-lgcc  $LIBS"
16294 cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h.  */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h.  */
16300
16301 /* Override any GCC internal prototype to avoid an error.
16302    Use char because int might match the return type of a GCC
16303    builtin and then its argument prototype would still apply.  */
16304 #ifdef __cplusplus
16305 extern "C"
16306 #endif
16307 char __umoddi3 ();
16308 int
16309 main ()
16310 {
16311 return __umoddi3 ();
16312   ;
16313   return 0;
16314 }
16315 _ACEOF
16316 rm -f conftest.$ac_objext conftest$ac_exeext
16317 if { (ac_try="$ac_link"
16318 case "(($ac_try" in
16319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320   *) ac_try_echo=$ac_try;;
16321 esac
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323   (eval "$ac_link") 2>conftest.er1
16324   ac_status=$?
16325   grep -v '^ *+' conftest.er1 >conftest.err
16326   rm -f conftest.er1
16327   cat conftest.err >&5
16328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); } &&
16330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16331   { (case "(($ac_try" in
16332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333   *) ac_try_echo=$ac_try;;
16334 esac
16335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16336   (eval "$ac_try") 2>&5
16337   ac_status=$?
16338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339   (exit $ac_status); }; } &&
16340          { ac_try='test -s conftest$ac_exeext'
16341   { (case "(($ac_try" in
16342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343   *) ac_try_echo=$ac_try;;
16344 esac
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346   (eval "$ac_try") 2>&5
16347   ac_status=$?
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); }; }; then
16350   ac_cv_lib_gcc___umoddi3=yes
16351 else
16352   echo "$as_me: failed program was:" >&5
16353 sed 's/^/| /' conftest.$ac_ext >&5
16354
16355         ac_cv_lib_gcc___umoddi3=no
16356 fi
16357
16358 rm -f core conftest.err conftest.$ac_objext \
16359       conftest$ac_exeext conftest.$ac_ext
16360 LIBS=$ac_check_lib_save_LIBS
16361 fi
16362 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16363 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16364 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16365
16366 cat >>confdefs.h <<\_ACEOF
16367 #define HAVE___UMODDI3 1
16368 _ACEOF
16369
16370 fi
16371
16372
16373   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16374 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16375 if test "${ac_cv_lib_gcc___main+set}" = set; then
16376   echo $ECHO_N "(cached) $ECHO_C" >&6
16377 else
16378   ac_check_lib_save_LIBS=$LIBS
16379 LIBS="-lgcc  $LIBS"
16380 cat >conftest.$ac_ext <<_ACEOF
16381 /* confdefs.h.  */
16382 _ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h.  */
16386
16387 /* Override any GCC internal prototype to avoid an error.
16388    Use char because int might match the return type of a GCC
16389    builtin and then its argument prototype would still apply.  */
16390 #ifdef __cplusplus
16391 extern "C"
16392 #endif
16393 char __main ();
16394 int
16395 main ()
16396 {
16397 return __main ();
16398   ;
16399   return 0;
16400 }
16401 _ACEOF
16402 rm -f conftest.$ac_objext conftest$ac_exeext
16403 if { (ac_try="$ac_link"
16404 case "(($ac_try" in
16405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406   *) ac_try_echo=$ac_try;;
16407 esac
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409   (eval "$ac_link") 2>conftest.er1
16410   ac_status=$?
16411   grep -v '^ *+' conftest.er1 >conftest.err
16412   rm -f conftest.er1
16413   cat conftest.err >&5
16414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415   (exit $ac_status); } &&
16416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16417   { (case "(($ac_try" in
16418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419   *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422   (eval "$ac_try") 2>&5
16423   ac_status=$?
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); }; } &&
16426          { ac_try='test -s conftest$ac_exeext'
16427   { (case "(($ac_try" in
16428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429   *) ac_try_echo=$ac_try;;
16430 esac
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432   (eval "$ac_try") 2>&5
16433   ac_status=$?
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); }; }; then
16436   ac_cv_lib_gcc___main=yes
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441         ac_cv_lib_gcc___main=no
16442 fi
16443
16444 rm -f core conftest.err conftest.$ac_objext \
16445       conftest$ac_exeext conftest.$ac_ext
16446 LIBS=$ac_check_lib_save_LIBS
16447 fi
16448 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16449 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16450 if test $ac_cv_lib_gcc___main = yes; then
16451
16452 cat >>confdefs.h <<\_ACEOF
16453 #define HAVE___MAIN 1
16454 _ACEOF
16455
16456 fi
16457
16458   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16459 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16460 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16461   echo $ECHO_N "(cached) $ECHO_C" >&6
16462 else
16463   ac_check_lib_save_LIBS=$LIBS
16464 LIBS="-lgcc  $LIBS"
16465 cat >conftest.$ac_ext <<_ACEOF
16466 /* confdefs.h.  */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h.  */
16471
16472 /* Override any GCC internal prototype to avoid an error.
16473    Use char because int might match the return type of a GCC
16474    builtin and then its argument prototype would still apply.  */
16475 #ifdef __cplusplus
16476 extern "C"
16477 #endif
16478 char __cmpdi2 ();
16479 int
16480 main ()
16481 {
16482 return __cmpdi2 ();
16483   ;
16484   return 0;
16485 }
16486 _ACEOF
16487 rm -f conftest.$ac_objext conftest$ac_exeext
16488 if { (ac_try="$ac_link"
16489 case "(($ac_try" in
16490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491   *) ac_try_echo=$ac_try;;
16492 esac
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494   (eval "$ac_link") 2>conftest.er1
16495   ac_status=$?
16496   grep -v '^ *+' conftest.er1 >conftest.err
16497   rm -f conftest.er1
16498   cat conftest.err >&5
16499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500   (exit $ac_status); } &&
16501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16502   { (case "(($ac_try" in
16503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504   *) ac_try_echo=$ac_try;;
16505 esac
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507   (eval "$ac_try") 2>&5
16508   ac_status=$?
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); }; } &&
16511          { ac_try='test -s conftest$ac_exeext'
16512   { (case "(($ac_try" in
16513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514   *) ac_try_echo=$ac_try;;
16515 esac
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517   (eval "$ac_try") 2>&5
16518   ac_status=$?
16519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520   (exit $ac_status); }; }; then
16521   ac_cv_lib_gcc___cmpdi2=yes
16522 else
16523   echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16525
16526         ac_cv_lib_gcc___cmpdi2=no
16527 fi
16528
16529 rm -f core conftest.err conftest.$ac_objext \
16530       conftest$ac_exeext conftest.$ac_ext
16531 LIBS=$ac_check_lib_save_LIBS
16532 fi
16533 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16534 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16535 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16536
16537 cat >>confdefs.h <<\_ACEOF
16538 #define HAVE___CMPDI2 1
16539 _ACEOF
16540
16541 fi
16542
16543 fi
16544
16545 if test "$llvm_cv_os_type" = "MingW" ; then
16546   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16547 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16548   cat >conftest.$ac_ext <<_ACEOF
16549
16550   /* confdefs.h.  */
16551 _ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h.  */
16555
16556     #include <windows.h>
16557     #include <imagehlp.h>
16558     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16559     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16560
16561
16562 _ACEOF
16563 rm -f conftest.$ac_objext
16564 if { (ac_try="$ac_compile"
16565 case "(($ac_try" in
16566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567   *) ac_try_echo=$ac_try;;
16568 esac
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570   (eval "$ac_compile") 2>conftest.er1
16571   ac_status=$?
16572   grep -v '^ *+' conftest.er1 >conftest.err
16573   rm -f conftest.er1
16574   cat conftest.err >&5
16575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576   (exit $ac_status); } &&
16577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16578   { (case "(($ac_try" in
16579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580   *) ac_try_echo=$ac_try;;
16581 esac
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583   (eval "$ac_try") 2>&5
16584   ac_status=$?
16585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586   (exit $ac_status); }; } &&
16587          { ac_try='test -s conftest.$ac_objext'
16588   { (case "(($ac_try" in
16589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590   *) ac_try_echo=$ac_try;;
16591 esac
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593   (eval "$ac_try") 2>&5
16594   ac_status=$?
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); }; }; then
16597
16598   { echo "$as_me:$LINENO: result: yes" >&5
16599 echo "${ECHO_T}yes" >&6; }
16600   llvm_cv_win32_elmcb_pcstr="PCSTR"
16601
16602 else
16603   echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16605
16606
16607   { echo "$as_me:$LINENO: result: no" >&5
16608 echo "${ECHO_T}no" >&6; }
16609   llvm_cv_win32_elmcb_pcstr="PSTR"
16610
16611 fi
16612
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614
16615 cat >>confdefs.h <<_ACEOF
16616 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16617 _ACEOF
16618
16619 fi
16620
16621
16622
16623   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16624 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16625 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16626   echo $ECHO_N "(cached) $ECHO_C" >&6
16627 else
16628
16629     ac_ext=cpp
16630 ac_cpp='$CXXCPP $CPPFLAGS'
16631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16634
16635     cat >conftest.$ac_ext <<_ACEOF
16636 /* confdefs.h.  */
16637 _ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h.  */
16641 #include <math.h>
16642 int
16643 main ()
16644 {
16645 float f; isnan(f);
16646   ;
16647   return 0;
16648 }
16649 _ACEOF
16650 rm -f conftest.$ac_objext
16651 if { (ac_try="$ac_compile"
16652 case "(($ac_try" in
16653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654   *) ac_try_echo=$ac_try;;
16655 esac
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657   (eval "$ac_compile") 2>conftest.er1
16658   ac_status=$?
16659   grep -v '^ *+' conftest.er1 >conftest.err
16660   rm -f conftest.er1
16661   cat conftest.err >&5
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } &&
16664          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16665   { (case "(($ac_try" in
16666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667   *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670   (eval "$ac_try") 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); }; } &&
16674          { ac_try='test -s conftest.$ac_objext'
16675   { (case "(($ac_try" in
16676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677   *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680   (eval "$ac_try") 2>&5
16681   ac_status=$?
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); }; }; then
16684   ac_cv_func_isnan_in_math_h=yes
16685 else
16686   echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16688
16689         ac_cv_func_isnan_in_math_h=no
16690 fi
16691
16692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16693     ac_ext=c
16694 ac_cpp='$CPP $CPPFLAGS'
16695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16698
16699
16700 fi
16701 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16702 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16703
16704
16705 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16706
16707 cat >>confdefs.h <<\_ACEOF
16708 #define HAVE_ISNAN_IN_MATH_H 1
16709 _ACEOF
16710
16711 fi
16712
16713
16714   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16715 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16716 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16717   echo $ECHO_N "(cached) $ECHO_C" >&6
16718 else
16719
16720     ac_ext=cpp
16721 ac_cpp='$CXXCPP $CPPFLAGS'
16722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16725
16726     cat >conftest.$ac_ext <<_ACEOF
16727 /* confdefs.h.  */
16728 _ACEOF
16729 cat confdefs.h >>conftest.$ac_ext
16730 cat >>conftest.$ac_ext <<_ACEOF
16731 /* end confdefs.h.  */
16732 #include <cmath>
16733 int
16734 main ()
16735 {
16736 float f; isnan(f);
16737   ;
16738   return 0;
16739 }
16740 _ACEOF
16741 rm -f conftest.$ac_objext
16742 if { (ac_try="$ac_compile"
16743 case "(($ac_try" in
16744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745   *) ac_try_echo=$ac_try;;
16746 esac
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748   (eval "$ac_compile") 2>conftest.er1
16749   ac_status=$?
16750   grep -v '^ *+' conftest.er1 >conftest.err
16751   rm -f conftest.er1
16752   cat conftest.err >&5
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); } &&
16755          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16756   { (case "(($ac_try" in
16757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758   *) ac_try_echo=$ac_try;;
16759 esac
16760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761   (eval "$ac_try") 2>&5
16762   ac_status=$?
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); }; } &&
16765          { ac_try='test -s conftest.$ac_objext'
16766   { (case "(($ac_try" in
16767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768   *) ac_try_echo=$ac_try;;
16769 esac
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771   (eval "$ac_try") 2>&5
16772   ac_status=$?
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); }; }; then
16775   ac_cv_func_isnan_in_cmath=yes
16776 else
16777   echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16779
16780         ac_cv_func_isnan_in_cmath=no
16781 fi
16782
16783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16784     ac_ext=c
16785 ac_cpp='$CPP $CPPFLAGS'
16786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16789
16790
16791 fi
16792 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16793 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16794
16795 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16796
16797 cat >>confdefs.h <<\_ACEOF
16798 #define HAVE_ISNAN_IN_CMATH 1
16799 _ACEOF
16800
16801 fi
16802
16803
16804   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16805 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16806 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16807   echo $ECHO_N "(cached) $ECHO_C" >&6
16808 else
16809
16810     ac_ext=cpp
16811 ac_cpp='$CXXCPP $CPPFLAGS'
16812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16815
16816     cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h.  */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h.  */
16822 #include <cmath>
16823 int
16824 main ()
16825 {
16826 float f; std::isnan(f);
16827   ;
16828   return 0;
16829 }
16830 _ACEOF
16831 rm -f conftest.$ac_objext
16832 if { (ac_try="$ac_compile"
16833 case "(($ac_try" in
16834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835   *) ac_try_echo=$ac_try;;
16836 esac
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838   (eval "$ac_compile") 2>conftest.er1
16839   ac_status=$?
16840   grep -v '^ *+' conftest.er1 >conftest.err
16841   rm -f conftest.er1
16842   cat conftest.err >&5
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); } &&
16845          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16846   { (case "(($ac_try" in
16847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848   *) ac_try_echo=$ac_try;;
16849 esac
16850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851   (eval "$ac_try") 2>&5
16852   ac_status=$?
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); }; } &&
16855          { ac_try='test -s conftest.$ac_objext'
16856   { (case "(($ac_try" in
16857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858   *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861   (eval "$ac_try") 2>&5
16862   ac_status=$?
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); }; }; then
16865   ac_cv_func_std_isnan_in_cmath=yes
16866 else
16867   echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16869
16870         ac_cv_func_std_isnan_in_cmath=no
16871 fi
16872
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874     ac_ext=c
16875 ac_cpp='$CPP $CPPFLAGS'
16876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16879
16880
16881 fi
16882 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
16883 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
16884
16885 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
16886
16887 cat >>confdefs.h <<\_ACEOF
16888 #define HAVE_STD_ISNAN_IN_CMATH 1
16889 _ACEOF
16890
16891 fi
16892
16893
16894
16895
16896   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
16897 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
16898 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
16899   echo $ECHO_N "(cached) $ECHO_C" >&6
16900 else
16901
16902     ac_ext=cpp
16903 ac_cpp='$CXXCPP $CPPFLAGS'
16904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16907
16908     cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h.  */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h.  */
16914 #include <math.h>
16915 int
16916 main ()
16917 {
16918 float f; isinf(f);
16919   ;
16920   return 0;
16921 }
16922 _ACEOF
16923 rm -f conftest.$ac_objext
16924 if { (ac_try="$ac_compile"
16925 case "(($ac_try" in
16926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927   *) ac_try_echo=$ac_try;;
16928 esac
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930   (eval "$ac_compile") 2>conftest.er1
16931   ac_status=$?
16932   grep -v '^ *+' conftest.er1 >conftest.err
16933   rm -f conftest.er1
16934   cat conftest.err >&5
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); } &&
16937          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16938   { (case "(($ac_try" in
16939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940   *) ac_try_echo=$ac_try;;
16941 esac
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943   (eval "$ac_try") 2>&5
16944   ac_status=$?
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); }; } &&
16947          { ac_try='test -s conftest.$ac_objext'
16948   { (case "(($ac_try" in
16949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950   *) ac_try_echo=$ac_try;;
16951 esac
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953   (eval "$ac_try") 2>&5
16954   ac_status=$?
16955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956   (exit $ac_status); }; }; then
16957   ac_cv_func_isinf_in_math_h=yes
16958 else
16959   echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16961
16962         ac_cv_func_isinf_in_math_h=no
16963 fi
16964
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966     ac_ext=c
16967 ac_cpp='$CPP $CPPFLAGS'
16968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16971
16972
16973 fi
16974 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
16975 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
16976
16977 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
16978
16979 cat >>confdefs.h <<\_ACEOF
16980 #define HAVE_ISINF_IN_MATH_H 1
16981 _ACEOF
16982
16983 fi
16984
16985
16986   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
16987 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
16988 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
16989   echo $ECHO_N "(cached) $ECHO_C" >&6
16990 else
16991
16992     ac_ext=cpp
16993 ac_cpp='$CXXCPP $CPPFLAGS'
16994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16997
16998     cat >conftest.$ac_ext <<_ACEOF
16999 /* confdefs.h.  */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h.  */
17004 #include <cmath>
17005 int
17006 main ()
17007 {
17008 float f; isinf(f);
17009   ;
17010   return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext
17014 if { (ac_try="$ac_compile"
17015 case "(($ac_try" in
17016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017   *) ac_try_echo=$ac_try;;
17018 esac
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020   (eval "$ac_compile") 2>conftest.er1
17021   ac_status=$?
17022   grep -v '^ *+' conftest.er1 >conftest.err
17023   rm -f conftest.er1
17024   cat conftest.err >&5
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); } &&
17027          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17028   { (case "(($ac_try" in
17029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030   *) ac_try_echo=$ac_try;;
17031 esac
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033   (eval "$ac_try") 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); }; } &&
17037          { ac_try='test -s conftest.$ac_objext'
17038   { (case "(($ac_try" in
17039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040   *) ac_try_echo=$ac_try;;
17041 esac
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043   (eval "$ac_try") 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); }; }; then
17047   ac_cv_func_isinf_in_cmath=yes
17048 else
17049   echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17051
17052         ac_cv_func_isinf_in_cmath=no
17053 fi
17054
17055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17056     ac_ext=c
17057 ac_cpp='$CPP $CPPFLAGS'
17058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17061
17062
17063 fi
17064 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17065 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17066
17067 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17068
17069 cat >>confdefs.h <<\_ACEOF
17070 #define HAVE_ISINF_IN_CMATH 1
17071 _ACEOF
17072
17073 fi
17074
17075
17076   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17077 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17078 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17079   echo $ECHO_N "(cached) $ECHO_C" >&6
17080 else
17081
17082     ac_ext=cpp
17083 ac_cpp='$CXXCPP $CPPFLAGS'
17084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17087
17088     cat >conftest.$ac_ext <<_ACEOF
17089 /* confdefs.h.  */
17090 _ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h.  */
17094 #include <cmath>
17095 int
17096 main ()
17097 {
17098 float f; std::isinf(f);
17099   ;
17100   return 0;
17101 }
17102 _ACEOF
17103 rm -f conftest.$ac_objext
17104 if { (ac_try="$ac_compile"
17105 case "(($ac_try" in
17106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107   *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110   (eval "$ac_compile") 2>conftest.er1
17111   ac_status=$?
17112   grep -v '^ *+' conftest.er1 >conftest.err
17113   rm -f conftest.er1
17114   cat conftest.err >&5
17115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); } &&
17117          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17118   { (case "(($ac_try" in
17119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120   *) ac_try_echo=$ac_try;;
17121 esac
17122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17123   (eval "$ac_try") 2>&5
17124   ac_status=$?
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); }; } &&
17127          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17137   ac_cv_func_std_isinf_in_cmath=yes
17138 else
17139   echo "$as_me: failed program was:" >&5
17140 sed 's/^/| /' conftest.$ac_ext >&5
17141
17142         ac_cv_func_std_isinf_in_cmath=no
17143 fi
17144
17145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17146     ac_ext=c
17147 ac_cpp='$CPP $CPPFLAGS'
17148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17151
17152
17153 fi
17154 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17155 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17156
17157 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17158
17159 cat >>confdefs.h <<\_ACEOF
17160 #define HAVE_STD_ISINF_IN_CMATH 1
17161 _ACEOF
17162
17163 fi
17164
17165
17166   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17167 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17168 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17169   echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171
17172     ac_ext=cpp
17173 ac_cpp='$CXXCPP $CPPFLAGS'
17174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17177
17178     cat >conftest.$ac_ext <<_ACEOF
17179 /* confdefs.h.  */
17180 _ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h.  */
17184 #include <ieeefp.h>
17185 int
17186 main ()
17187 {
17188 float f; finite(f);
17189   ;
17190   return 0;
17191 }
17192 _ACEOF
17193 rm -f conftest.$ac_objext
17194 if { (ac_try="$ac_compile"
17195 case "(($ac_try" in
17196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197   *) ac_try_echo=$ac_try;;
17198 esac
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200   (eval "$ac_compile") 2>conftest.er1
17201   ac_status=$?
17202   grep -v '^ *+' conftest.er1 >conftest.err
17203   rm -f conftest.er1
17204   cat conftest.err >&5
17205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); } &&
17207          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17208   { (case "(($ac_try" in
17209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210   *) ac_try_echo=$ac_try;;
17211 esac
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213   (eval "$ac_try") 2>&5
17214   ac_status=$?
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); }; } &&
17217          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17227   ac_cv_func_finite_in_ieeefp_h=yes
17228 else
17229   echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17231
17232         ac_cv_func_finite_in_ieeefp_h=no
17233 fi
17234
17235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17236     ac_ext=c
17237 ac_cpp='$CPP $CPPFLAGS'
17238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17241
17242
17243 fi
17244 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17245 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17246
17247 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17248
17249 cat >>confdefs.h <<\_ACEOF
17250 #define HAVE_FINITE_IN_IEEEFP_H 1
17251 _ACEOF
17252
17253 fi
17254
17255
17256
17257 if test "$llvm_cv_platform_type" = "Unix" ; then
17258
17259
17260 for ac_header in stdlib.h unistd.h
17261 do
17262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17264   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17267   echo $ECHO_N "(cached) $ECHO_C" >&6
17268 fi
17269 ac_res=`eval echo '${'$as_ac_Header'}'`
17270                { echo "$as_me:$LINENO: result: $ac_res" >&5
17271 echo "${ECHO_T}$ac_res" >&6; }
17272 else
17273   # Is the header compilable?
17274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17276 cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282 $ac_includes_default
17283 #include <$ac_header>
17284 _ACEOF
17285 rm -f conftest.$ac_objext
17286 if { (ac_try="$ac_compile"
17287 case "(($ac_try" in
17288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289   *) ac_try_echo=$ac_try;;
17290 esac
17291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292   (eval "$ac_compile") 2>conftest.er1
17293   ac_status=$?
17294   grep -v '^ *+' conftest.er1 >conftest.err
17295   rm -f conftest.er1
17296   cat conftest.err >&5
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); } &&
17299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17300   { (case "(($ac_try" in
17301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302   *) ac_try_echo=$ac_try;;
17303 esac
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305   (eval "$ac_try") 2>&5
17306   ac_status=$?
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); }; } &&
17309          { ac_try='test -s conftest.$ac_objext'
17310   { (case "(($ac_try" in
17311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312   *) ac_try_echo=$ac_try;;
17313 esac
17314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17315   (eval "$ac_try") 2>&5
17316   ac_status=$?
17317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318   (exit $ac_status); }; }; then
17319   ac_header_compiler=yes
17320 else
17321   echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17323
17324         ac_header_compiler=no
17325 fi
17326
17327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17329 echo "${ECHO_T}$ac_header_compiler" >&6; }
17330
17331 # Is the header present?
17332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h.  */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h.  */
17340 #include <$ac_header>
17341 _ACEOF
17342 if { (ac_try="$ac_cpp conftest.$ac_ext"
17343 case "(($ac_try" in
17344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345   *) ac_try_echo=$ac_try;;
17346 esac
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17349   ac_status=$?
17350   grep -v '^ *+' conftest.er1 >conftest.err
17351   rm -f conftest.er1
17352   cat conftest.err >&5
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); } >/dev/null; then
17355   if test -s conftest.err; then
17356     ac_cpp_err=$ac_c_preproc_warn_flag
17357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17358   else
17359     ac_cpp_err=
17360   fi
17361 else
17362   ac_cpp_err=yes
17363 fi
17364 if test -z "$ac_cpp_err"; then
17365   ac_header_preproc=yes
17366 else
17367   echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17369
17370   ac_header_preproc=no
17371 fi
17372
17373 rm -f conftest.err conftest.$ac_ext
17374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17375 echo "${ECHO_T}$ac_header_preproc" >&6; }
17376
17377 # So?  What about this header?
17378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17379   yes:no: )
17380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17384     ac_header_preproc=yes
17385     ;;
17386   no:yes:* )
17387     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17389     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17390 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17391     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17393     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17394 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17397     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17399     ( cat <<\_ASBOX
17400 ## ------------------------------------ ##
17401 ## Report this to http://llvm.org/bugs/ ##
17402 ## ------------------------------------ ##
17403 _ASBOX
17404      ) | sed "s/^/$as_me: WARNING:     /" >&2
17405     ;;
17406 esac
17407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17410   echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412   eval "$as_ac_Header=\$ac_header_preproc"
17413 fi
17414 ac_res=`eval echo '${'$as_ac_Header'}'`
17415                { echo "$as_me:$LINENO: result: $ac_res" >&5
17416 echo "${ECHO_T}$ac_res" >&6; }
17417
17418 fi
17419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17420   cat >>confdefs.h <<_ACEOF
17421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17422 _ACEOF
17423
17424 fi
17425
17426 done
17427
17428
17429 for ac_func in getpagesize
17430 do
17431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17435   echo $ECHO_N "(cached) $ECHO_C" >&6
17436 else
17437   cat >conftest.$ac_ext <<_ACEOF
17438 /* confdefs.h.  */
17439 _ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h.  */
17443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17445 #define $ac_func innocuous_$ac_func
17446
17447 /* System header to define __stub macros and hopefully few prototypes,
17448     which can conflict with char $ac_func (); below.
17449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17450     <limits.h> exists even on freestanding compilers.  */
17451
17452 #ifdef __STDC__
17453 # include <limits.h>
17454 #else
17455 # include <assert.h>
17456 #endif
17457
17458 #undef $ac_func
17459
17460 /* Override any GCC internal prototype to avoid an error.
17461    Use char because int might match the return type of a GCC
17462    builtin and then its argument prototype would still apply.  */
17463 #ifdef __cplusplus
17464 extern "C"
17465 #endif
17466 char $ac_func ();
17467 /* The GNU C library defines this for functions which it implements
17468     to always fail with ENOSYS.  Some functions are actually named
17469     something starting with __ and the normal name is an alias.  */
17470 #if defined __stub_$ac_func || defined __stub___$ac_func
17471 choke me
17472 #endif
17473
17474 int
17475 main ()
17476 {
17477 return $ac_func ();
17478   ;
17479   return 0;
17480 }
17481 _ACEOF
17482 rm -f conftest.$ac_objext conftest$ac_exeext
17483 if { (ac_try="$ac_link"
17484 case "(($ac_try" in
17485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486   *) ac_try_echo=$ac_try;;
17487 esac
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489   (eval "$ac_link") 2>conftest.er1
17490   ac_status=$?
17491   grep -v '^ *+' conftest.er1 >conftest.err
17492   rm -f conftest.er1
17493   cat conftest.err >&5
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); } &&
17496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17497   { (case "(($ac_try" in
17498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499   *) ac_try_echo=$ac_try;;
17500 esac
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502   (eval "$ac_try") 2>&5
17503   ac_status=$?
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); }; } &&
17506          { ac_try='test -s conftest$ac_exeext'
17507   { (case "(($ac_try" in
17508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509   *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512   (eval "$ac_try") 2>&5
17513   ac_status=$?
17514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515   (exit $ac_status); }; }; then
17516   eval "$as_ac_var=yes"
17517 else
17518   echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17520
17521         eval "$as_ac_var=no"
17522 fi
17523
17524 rm -f core conftest.err conftest.$ac_objext \
17525       conftest$ac_exeext conftest.$ac_ext
17526 fi
17527 ac_res=`eval echo '${'$as_ac_var'}'`
17528                { echo "$as_me:$LINENO: result: $ac_res" >&5
17529 echo "${ECHO_T}$ac_res" >&6; }
17530 if test `eval echo '${'$as_ac_var'}'` = yes; then
17531   cat >>confdefs.h <<_ACEOF
17532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17533 _ACEOF
17534
17535 fi
17536 done
17537
17538 { echo "$as_me:$LINENO: checking for working mmap" >&5
17539 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17540 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17541   echo $ECHO_N "(cached) $ECHO_C" >&6
17542 else
17543   if test "$cross_compiling" = yes; then
17544   ac_cv_func_mmap_fixed_mapped=no
17545 else
17546   cat >conftest.$ac_ext <<_ACEOF
17547 /* confdefs.h.  */
17548 _ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h.  */
17552 $ac_includes_default
17553 /* malloc might have been renamed as rpl_malloc. */
17554 #undef malloc
17555
17556 /* Thanks to Mike Haertel and Jim Avera for this test.
17557    Here is a matrix of mmap possibilities:
17558         mmap private not fixed
17559         mmap private fixed at somewhere currently unmapped
17560         mmap private fixed at somewhere already mapped
17561         mmap shared not fixed
17562         mmap shared fixed at somewhere currently unmapped
17563         mmap shared fixed at somewhere already mapped
17564    For private mappings, we should verify that changes cannot be read()
17565    back from the file, nor mmap's back from the file at a different
17566    address.  (There have been systems where private was not correctly
17567    implemented like the infamous i386 svr4.0, and systems where the
17568    VM page cache was not coherent with the file system buffer cache
17569    like early versions of FreeBSD and possibly contemporary NetBSD.)
17570    For shared mappings, we should conversely verify that changes get
17571    propagated back to all the places they're supposed to be.
17572
17573    Grep wants private fixed already mapped.
17574    The main things grep needs to know about mmap are:
17575    * does it exist and is it safe to write into the mmap'd area
17576    * how to use it (BSD variants)  */
17577
17578 #include <fcntl.h>
17579 #include <sys/mman.h>
17580
17581 #if !STDC_HEADERS && !HAVE_STDLIB_H
17582 char *malloc ();
17583 #endif
17584
17585 /* This mess was copied from the GNU getpagesize.h.  */
17586 #if !HAVE_GETPAGESIZE
17587 /* Assume that all systems that can run configure have sys/param.h.  */
17588 # if !HAVE_SYS_PARAM_H
17589 #  define HAVE_SYS_PARAM_H 1
17590 # endif
17591
17592 # ifdef _SC_PAGESIZE
17593 #  define getpagesize() sysconf(_SC_PAGESIZE)
17594 # else /* no _SC_PAGESIZE */
17595 #  if HAVE_SYS_PARAM_H
17596 #   include <sys/param.h>
17597 #   ifdef EXEC_PAGESIZE
17598 #    define getpagesize() EXEC_PAGESIZE
17599 #   else /* no EXEC_PAGESIZE */
17600 #    ifdef NBPG
17601 #     define getpagesize() NBPG * CLSIZE
17602 #     ifndef CLSIZE
17603 #      define CLSIZE 1
17604 #     endif /* no CLSIZE */
17605 #    else /* no NBPG */
17606 #     ifdef NBPC
17607 #      define getpagesize() NBPC
17608 #     else /* no NBPC */
17609 #      ifdef PAGESIZE
17610 #       define getpagesize() PAGESIZE
17611 #      endif /* PAGESIZE */
17612 #     endif /* no NBPC */
17613 #    endif /* no NBPG */
17614 #   endif /* no EXEC_PAGESIZE */
17615 #  else /* no HAVE_SYS_PARAM_H */
17616 #   define getpagesize() 8192   /* punt totally */
17617 #  endif /* no HAVE_SYS_PARAM_H */
17618 # endif /* no _SC_PAGESIZE */
17619
17620 #endif /* no HAVE_GETPAGESIZE */
17621
17622 int
17623 main ()
17624 {
17625   char *data, *data2, *data3;
17626   int i, pagesize;
17627   int fd;
17628
17629   pagesize = getpagesize ();
17630
17631   /* First, make a file with some known garbage in it. */
17632   data = (char *) malloc (pagesize);
17633   if (!data)
17634     return 1;
17635   for (i = 0; i < pagesize; ++i)
17636     *(data + i) = rand ();
17637   umask (0);
17638   fd = creat ("conftest.mmap", 0600);
17639   if (fd < 0)
17640     return 1;
17641   if (write (fd, data, pagesize) != pagesize)
17642     return 1;
17643   close (fd);
17644
17645   /* Next, try to mmap the file at a fixed address which already has
17646      something else allocated at it.  If we can, also make sure that
17647      we see the same garbage.  */
17648   fd = open ("conftest.mmap", O_RDWR);
17649   if (fd < 0)
17650     return 1;
17651   data2 = (char *) malloc (2 * pagesize);
17652   if (!data2)
17653     return 1;
17654   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17655   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17656                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17657     return 1;
17658   for (i = 0; i < pagesize; ++i)
17659     if (*(data + i) != *(data2 + i))
17660       return 1;
17661
17662   /* Finally, make sure that changes to the mapped area do not
17663      percolate back to the file as seen by read().  (This is a bug on
17664      some variants of i386 svr4.0.)  */
17665   for (i = 0; i < pagesize; ++i)
17666     *(data2 + i) = *(data2 + i) + 1;
17667   data3 = (char *) malloc (pagesize);
17668   if (!data3)
17669     return 1;
17670   if (read (fd, data3, pagesize) != pagesize)
17671     return 1;
17672   for (i = 0; i < pagesize; ++i)
17673     if (*(data + i) != *(data3 + i))
17674       return 1;
17675   close (fd);
17676   return 0;
17677 }
17678 _ACEOF
17679 rm -f conftest$ac_exeext
17680 if { (ac_try="$ac_link"
17681 case "(($ac_try" in
17682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683   *) ac_try_echo=$ac_try;;
17684 esac
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686   (eval "$ac_link") 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17690   { (case "(($ac_try" in
17691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692   *) ac_try_echo=$ac_try;;
17693 esac
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695   (eval "$ac_try") 2>&5
17696   ac_status=$?
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); }; }; then
17699   ac_cv_func_mmap_fixed_mapped=yes
17700 else
17701   echo "$as_me: program exited with status $ac_status" >&5
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17704
17705 ( exit $ac_status )
17706 ac_cv_func_mmap_fixed_mapped=no
17707 fi
17708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17709 fi
17710
17711
17712 fi
17713 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17714 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17715 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17716
17717 cat >>confdefs.h <<\_ACEOF
17718 #define HAVE_MMAP 1
17719 _ACEOF
17720
17721 fi
17722 rm -f conftest.mmap
17723
17724   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17725 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17726 if test "${ac_cv_func_mmap_file+set}" = set; then
17727   echo $ECHO_N "(cached) $ECHO_C" >&6
17728 else
17729    ac_ext=c
17730 ac_cpp='$CPP $CPPFLAGS'
17731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17734
17735   if test "$cross_compiling" = yes; then
17736   ac_cv_func_mmap_file=no
17737 else
17738   cat >conftest.$ac_ext <<_ACEOF
17739
17740     /* confdefs.h.  */
17741 _ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h.  */
17745
17746 #include <sys/types.h>
17747 #include <sys/mman.h>
17748 #include <fcntl.h>
17749
17750 int
17751 main ()
17752 {
17753
17754   int fd;
17755   fd = creat ("foo",0777);
17756   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17757   unlink ("foo");
17758   return (fd != (int) MAP_FAILED);
17759   ;
17760   return 0;
17761 }
17762 _ACEOF
17763 rm -f conftest$ac_exeext
17764 if { (ac_try="$ac_link"
17765 case "(($ac_try" in
17766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767   *) ac_try_echo=$ac_try;;
17768 esac
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770   (eval "$ac_link") 2>&5
17771   ac_status=$?
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17774   { (case "(($ac_try" in
17775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776   *) ac_try_echo=$ac_try;;
17777 esac
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779   (eval "$ac_try") 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; }; then
17783   ac_cv_func_mmap_file=yes
17784 else
17785   echo "$as_me: program exited with status $ac_status" >&5
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17788
17789 ( exit $ac_status )
17790 ac_cv_func_mmap_file=no
17791 fi
17792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17793 fi
17794
17795
17796   ac_ext=c
17797 ac_cpp='$CPP $CPPFLAGS'
17798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17801
17802
17803 fi
17804 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17805 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17806 if test "$ac_cv_func_mmap_file" = yes; then
17807
17808 cat >>confdefs.h <<\_ACEOF
17809 #define HAVE_MMAP_FILE
17810 _ACEOF
17811
17812    MMAP_FILE=yes
17813
17814 fi
17815
17816   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17817 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17818 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17819   echo $ECHO_N "(cached) $ECHO_C" >&6
17820 else
17821   if test "$llvm_cv_os_type" = "Interix" ; then
17822    ac_cv_need_dev_zero_for_mmap=yes
17823  else
17824    ac_cv_need_dev_zero_for_mmap=no
17825  fi
17826
17827 fi
17828 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17829 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17830 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17831
17832 cat >>confdefs.h <<\_ACEOF
17833 #define NEED_DEV_ZERO_FOR_MMAP 1
17834 _ACEOF
17835
17836 fi
17837
17838   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17839   then
17840     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17841 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17842   fi
17843   if test "$ac_cv_func_mmap_file" = "no"
17844   then
17845     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17846 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17847   fi
17848 fi
17849
17850 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17851 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17852 ac_ext=cpp
17853 ac_cpp='$CXXCPP $CPPFLAGS'
17854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17857
17858 cat >conftest.$ac_ext <<_ACEOF
17859
17860   /* confdefs.h.  */
17861 _ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h.  */
17865
17866     int main() {
17867       volatile unsigned long val = 1;
17868       __sync_synchronize();
17869       __sync_val_compare_and_swap(&val, 1, 0);
17870       __sync_add_and_fetch(&val, 1);
17871       __sync_sub_and_fetch(&val, 1);
17872       return 0;
17873     }
17874
17875
17876 _ACEOF
17877 rm -f conftest.$ac_objext conftest$ac_exeext
17878 if { (ac_try="$ac_link"
17879 case "(($ac_try" in
17880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17881   *) ac_try_echo=$ac_try;;
17882 esac
17883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17884   (eval "$ac_link") 2>conftest.er1
17885   ac_status=$?
17886   grep -v '^ *+' conftest.er1 >conftest.err
17887   rm -f conftest.er1
17888   cat conftest.err >&5
17889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890   (exit $ac_status); } &&
17891          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17892   { (case "(($ac_try" in
17893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894   *) ac_try_echo=$ac_try;;
17895 esac
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897   (eval "$ac_try") 2>&5
17898   ac_status=$?
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); }; } &&
17901          { ac_try='test -s conftest$ac_exeext'
17902   { (case "(($ac_try" in
17903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904   *) ac_try_echo=$ac_try;;
17905 esac
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907   (eval "$ac_try") 2>&5
17908   ac_status=$?
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); }; }; then
17911
17912   { echo "$as_me:$LINENO: result: yes" >&5
17913 echo "${ECHO_T}yes" >&6; }
17914
17915 cat >>confdefs.h <<\_ACEOF
17916 #define LLVM_HAS_ATOMICS 1
17917 _ACEOF
17918
17919
17920 else
17921   echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17923
17924
17925   { echo "$as_me:$LINENO: result: no" >&5
17926 echo "${ECHO_T}no" >&6; }
17927
17928 cat >>confdefs.h <<\_ACEOF
17929 #define LLVM_HAS_ATOMICS 0
17930 _ACEOF
17931
17932   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17933 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17934
17935 fi
17936
17937 rm -f core conftest.err conftest.$ac_objext \
17938       conftest$ac_exeext conftest.$ac_ext
17939 ac_ext=c
17940 ac_cpp='$CPP $CPPFLAGS'
17941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17944
17945
17946
17947 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17948   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17949 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17950 if test "${llvm_cv_linux_mixed+set}" = set; then
17951   echo $ECHO_N "(cached) $ECHO_C" >&6
17952 else
17953    ac_ext=c
17954 ac_cpp='$CPP $CPPFLAGS'
17955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17958
17959   cat >conftest.$ac_ext <<_ACEOF
17960 /* confdefs.h.  */
17961 _ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h.  */
17965 #ifndef __x86_64__
17966        error: Not x86-64 even if uname says so!
17967       #endif
17968
17969 int
17970 main ()
17971 {
17972
17973   ;
17974   return 0;
17975 }
17976 _ACEOF
17977 rm -f conftest.$ac_objext
17978 if { (ac_try="$ac_compile"
17979 case "(($ac_try" in
17980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981   *) ac_try_echo=$ac_try;;
17982 esac
17983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984   (eval "$ac_compile") 2>conftest.er1
17985   ac_status=$?
17986   grep -v '^ *+' conftest.er1 >conftest.err
17987   rm -f conftest.er1
17988   cat conftest.err >&5
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); } &&
17991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17992   { (case "(($ac_try" in
17993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994   *) ac_try_echo=$ac_try;;
17995 esac
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997   (eval "$ac_try") 2>&5
17998   ac_status=$?
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); }; } &&
18001          { ac_try='test -s conftest.$ac_objext'
18002   { (case "(($ac_try" in
18003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004   *) ac_try_echo=$ac_try;;
18005 esac
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007   (eval "$ac_try") 2>&5
18008   ac_status=$?
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); }; }; then
18011   llvm_cv_linux_mixed=no
18012 else
18013   echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18015
18016         llvm_cv_linux_mixed=yes
18017 fi
18018
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020   ac_ext=c
18021 ac_cpp='$CPP $CPPFLAGS'
18022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18025
18026
18027 fi
18028 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18029 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18030
18031   if test "$llvm_cv_linux_mixed" = "yes"; then
18032     llvm_cv_target_arch="x86"
18033     ARCH="x86"
18034   fi
18035 fi
18036
18037
18038 for ac_func in __dso_handle
18039 do
18040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18044   echo $ECHO_N "(cached) $ECHO_C" >&6
18045 else
18046   cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h.  */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h.  */
18052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18054 #define $ac_func innocuous_$ac_func
18055
18056 /* System header to define __stub macros and hopefully few prototypes,
18057     which can conflict with char $ac_func (); below.
18058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18059     <limits.h> exists even on freestanding compilers.  */
18060
18061 #ifdef __STDC__
18062 # include <limits.h>
18063 #else
18064 # include <assert.h>
18065 #endif
18066
18067 #undef $ac_func
18068
18069 /* Override any GCC internal prototype to avoid an error.
18070    Use char because int might match the return type of a GCC
18071    builtin and then its argument prototype would still apply.  */
18072 #ifdef __cplusplus
18073 extern "C"
18074 #endif
18075 char $ac_func ();
18076 /* The GNU C library defines this for functions which it implements
18077     to always fail with ENOSYS.  Some functions are actually named
18078     something starting with __ and the normal name is an alias.  */
18079 #if defined __stub_$ac_func || defined __stub___$ac_func
18080 choke me
18081 #endif
18082
18083 int
18084 main ()
18085 {
18086 return $ac_func ();
18087   ;
18088   return 0;
18089 }
18090 _ACEOF
18091 rm -f conftest.$ac_objext conftest$ac_exeext
18092 if { (ac_try="$ac_link"
18093 case "(($ac_try" in
18094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095   *) ac_try_echo=$ac_try;;
18096 esac
18097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098   (eval "$ac_link") 2>conftest.er1
18099   ac_status=$?
18100   grep -v '^ *+' conftest.er1 >conftest.err
18101   rm -f conftest.er1
18102   cat conftest.err >&5
18103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104   (exit $ac_status); } &&
18105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18106   { (case "(($ac_try" in
18107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108   *) ac_try_echo=$ac_try;;
18109 esac
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111   (eval "$ac_try") 2>&5
18112   ac_status=$?
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); }; } &&
18115          { ac_try='test -s conftest$ac_exeext'
18116   { (case "(($ac_try" in
18117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118   *) ac_try_echo=$ac_try;;
18119 esac
18120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121   (eval "$ac_try") 2>&5
18122   ac_status=$?
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); }; }; then
18125   eval "$as_ac_var=yes"
18126 else
18127   echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18129
18130         eval "$as_ac_var=no"
18131 fi
18132
18133 rm -f core conftest.err conftest.$ac_objext \
18134       conftest$ac_exeext conftest.$ac_ext
18135 fi
18136 ac_res=`eval echo '${'$as_ac_var'}'`
18137                { echo "$as_me:$LINENO: result: $ac_res" >&5
18138 echo "${ECHO_T}$ac_res" >&6; }
18139 if test `eval echo '${'$as_ac_var'}'` = yes; then
18140   cat >>confdefs.h <<_ACEOF
18141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18142 _ACEOF
18143
18144 fi
18145 done
18146
18147
18148 SHLIBEXT=$llvm_shlib_ext
18149
18150
18151 if test "${prefix}" = "NONE" ; then
18152   prefix="/usr/local"
18153 fi
18154 eval LLVM_PREFIX="${prefix}";
18155 eval LLVM_BINDIR="${prefix}/bin";
18156 eval LLVM_DATADIR="${prefix}/share/llvm";
18157 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18158 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18159 eval LLVM_INCLUDEDIR="${prefix}/include";
18160 eval LLVM_INFODIR="${prefix}/info";
18161 eval LLVM_MANDIR="${prefix}/man";
18162 LLVM_CONFIGTIME=`date`
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18174   LLVM_CONFIGTIME="(timestamp not enabled)"
18175 fi
18176
18177
18178 cat >>confdefs.h <<_ACEOF
18179 #define LLVM_PREFIX "$LLVM_PREFIX"
18180 _ACEOF
18181
18182
18183 cat >>confdefs.h <<_ACEOF
18184 #define LLVM_BINDIR "$LLVM_BINDIR"
18185 _ACEOF
18186
18187
18188 cat >>confdefs.h <<_ACEOF
18189 #define LLVM_DATADIR "$LLVM_DATADIR"
18190 _ACEOF
18191
18192
18193 cat >>confdefs.h <<_ACEOF
18194 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18195 _ACEOF
18196
18197
18198 cat >>confdefs.h <<_ACEOF
18199 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18200 _ACEOF
18201
18202
18203 cat >>confdefs.h <<_ACEOF
18204 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18205 _ACEOF
18206
18207
18208 cat >>confdefs.h <<_ACEOF
18209 #define LLVM_INFODIR "$LLVM_INFODIR"
18210 _ACEOF
18211
18212
18213 cat >>confdefs.h <<_ACEOF
18214 #define LLVM_MANDIR "$LLVM_MANDIR"
18215 _ACEOF
18216
18217
18218 cat >>confdefs.h <<_ACEOF
18219 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18220 _ACEOF
18221
18222
18223 cat >>confdefs.h <<_ACEOF
18224 #define LLVM_HOST_TRIPLE "$host"
18225 _ACEOF
18226
18227
18228 cat >>confdefs.h <<_ACEOF
18229 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18230 _ACEOF
18231
18232
18233 if test "$BINDINGS_TO_BUILD" = auto ; then
18234   BINDINGS_TO_BUILD=""
18235   if test "x$OCAMLFIND" != x ; then
18236     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18237   fi
18238   if test "x$GO" != x ; then
18239     if $GO run ${srcdir}/bindings/go/conftest.go ; then
18240       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18241     fi
18242   fi
18243 fi
18244 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18245
18246
18247 binding_prereqs_failed=0
18248 for a_binding in $BINDINGS_TO_BUILD ; do
18249   case "$a_binding" in
18250   ocaml)
18251     if test "x$OCAMLFIND" = x ; then
18252       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
18253 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
18254       binding_prereqs_failed=1
18255     fi
18256
18257     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
18258       HAVE_OCAMLOPT=1
18259     else
18260       HAVE_OCAMLOPT=0
18261     fi
18262
18263
18264     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
18265       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
18266 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
18267       binding_prereqs_failed=1
18268     fi
18269
18270     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18271       HAVE_OCAML_OUNIT=1
18272     else
18273       HAVE_OCAML_OUNIT=0
18274       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18275 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18276           fi
18277
18278
18279     if test "x$with_ocaml_libdir" != xauto ; then
18280       OCAML_LIBDIR=$with_ocaml_libdir
18281
18282     else
18283       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18284       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18285       then
18286         # ocaml stdlib is beneath our prefix; use stdlib
18287         OCAML_LIBDIR=$ocaml_stdlib
18288
18289       else
18290         # ocaml stdlib is outside our prefix; use libdir/ocaml
18291         OCAML_LIBDIR=${prefix}/lib/ocaml
18292
18293       fi
18294     fi
18295     ;;
18296   go)
18297     if test "x$GO" = x ; then
18298       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18299 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18300       binding_prereqs_failed=1
18301     else
18302       if $GO run ${srcdir}/bindings/go/conftest.go ; then
18303         :
18304       else
18305         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18306 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18307         binding_prereqs_failed=1
18308       fi
18309     fi
18310     ;;
18311   esac
18312 done
18313 if test "$binding_prereqs_failed" = 1 ; then
18314   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18315 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18316    { (exit 1); exit 1; }; }
18317 fi
18318
18319 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18320 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18321 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18322   echo $ECHO_N "(cached) $ECHO_C" >&6
18323 else
18324    ac_ext=cpp
18325 ac_cpp='$CXXCPP $CPPFLAGS'
18326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18329
18330   oldcxxflags="$CXXFLAGS"
18331   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18332   cat >conftest.$ac_ext <<_ACEOF
18333 /* confdefs.h.  */
18334 _ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h.  */
18338 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18339 int
18340 main ()
18341 {
18342 X<int>().f();
18343   ;
18344   return 0;
18345 }
18346 _ACEOF
18347 rm -f conftest.$ac_objext
18348 if { (ac_try="$ac_compile"
18349 case "(($ac_try" in
18350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351   *) ac_try_echo=$ac_try;;
18352 esac
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354   (eval "$ac_compile") 2>conftest.er1
18355   ac_status=$?
18356   grep -v '^ *+' conftest.er1 >conftest.err
18357   rm -f conftest.er1
18358   cat conftest.err >&5
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); } &&
18361          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18362   { (case "(($ac_try" in
18363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364   *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367   (eval "$ac_try") 2>&5
18368   ac_status=$?
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); }; } &&
18371          { ac_try='test -s conftest.$ac_objext'
18372   { (case "(($ac_try" in
18373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374   *) ac_try_echo=$ac_try;;
18375 esac
18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377   (eval "$ac_try") 2>&5
18378   ac_status=$?
18379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380   (exit $ac_status); }; }; then
18381   llvm_cv_cxx_visibility_inlines_hidden=yes
18382 else
18383   echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18385
18386         llvm_cv_cxx_visibility_inlines_hidden=no
18387 fi
18388
18389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18390   CXXFLAGS="$oldcxxflags"
18391   ac_ext=c
18392 ac_cpp='$CPP $CPPFLAGS'
18393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18396
18397
18398 fi
18399 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18400 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18401 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18402   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18403
18404 else
18405   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18406
18407 fi
18408
18409
18410 if test "$llvm_cv_link_use_r" = "yes" ; then
18411   RPATH="-Wl,-R"
18412 else
18413   RPATH="-Wl,-rpath"
18414 fi
18415
18416
18417 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18418   RDYNAMIC="-rdynamic"
18419 else
18420   RDYNAMIC=""
18421 fi
18422
18423
18424
18425 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18426
18427
18428
18429
18430
18431
18432 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18433
18434 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18435
18436 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18437
18438 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18439
18440 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18441
18442
18443 ac_config_files="$ac_config_files Makefile.config"
18444
18445
18446 ac_config_files="$ac_config_files llvm.spec"
18447
18448
18449 ac_config_files="$ac_config_files docs/doxygen.cfg"
18450
18451
18452 if test "${clang_src_root}" = ""; then
18453   clang_src_root="$srcdir/tools/clang"
18454 fi
18455 if test -f ${clang_src_root}/README.txt; then
18456     configh="include/clang/Config/config.h"
18457   doxy="docs/doxygen.cfg"
18458   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18459
18460   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18461
18462 fi
18463
18464 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18465
18466
18467 test "x$program_prefix" = "xNONE" && program_prefix=""
18468
18469
18470
18471 ac_config_commands="$ac_config_commands setup"
18472
18473 ac_config_commands="$ac_config_commands Makefile"
18474
18475
18476 ac_config_commands="$ac_config_commands Makefile.common"
18477
18478
18479 ac_config_commands="$ac_config_commands examples/Makefile"
18480
18481
18482 ac_config_commands="$ac_config_commands lib/Makefile"
18483
18484
18485 ac_config_commands="$ac_config_commands test/Makefile"
18486
18487
18488 ac_config_commands="$ac_config_commands test/Makefile.tests"
18489
18490
18491 ac_config_commands="$ac_config_commands unittests/Makefile"
18492
18493
18494 ac_config_commands="$ac_config_commands tools/Makefile"
18495
18496
18497 ac_config_commands="$ac_config_commands utils/Makefile"
18498
18499
18500 ac_config_commands="$ac_config_commands projects/Makefile"
18501
18502
18503 ac_config_commands="$ac_config_commands bindings/Makefile"
18504
18505
18506 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18507
18508
18509
18510 cat >confcache <<\_ACEOF
18511 # This file is a shell script that caches the results of configure
18512 # tests run on this system so they can be shared between configure
18513 # scripts and configure runs, see configure's option --config-cache.
18514 # It is not useful on other systems.  If it contains results you don't
18515 # want to keep, you may remove or edit it.
18516 #
18517 # config.status only pays attention to the cache file if you give it
18518 # the --recheck option to rerun configure.
18519 #
18520 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18521 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18522 # following values.
18523
18524 _ACEOF
18525
18526 # The following way of writing the cache mishandles newlines in values,
18527 # but we know of no workaround that is simple, portable, and efficient.
18528 # So, we kill variables containing newlines.
18529 # Ultrix sh set writes to stderr and can't be redirected directly,
18530 # and sets the high bit in the cache file unless we assign to the vars.
18531 (
18532   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18533     eval ac_val=\$$ac_var
18534     case $ac_val in #(
18535     *${as_nl}*)
18536       case $ac_var in #(
18537       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18538 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18539       esac
18540       case $ac_var in #(
18541       _ | IFS | as_nl) ;; #(
18542       *) $as_unset $ac_var ;;
18543       esac ;;
18544     esac
18545   done
18546
18547   (set) 2>&1 |
18548     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18549     *${as_nl}ac_space=\ *)
18550       # `set' does not quote correctly, so add quotes (double-quote
18551       # substitution turns \\\\ into \\, and sed turns \\ into \).
18552       sed -n \
18553         "s/'/'\\\\''/g;
18554           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18555       ;; #(
18556     *)
18557       # `set' quotes correctly as required by POSIX, so do not add quotes.
18558       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18559       ;;
18560     esac |
18561     sort
18562 ) |
18563   sed '
18564      /^ac_cv_env_/b end
18565      t clear
18566      :clear
18567      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18568      t end
18569      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18570      :end' >>confcache
18571 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18572   if test -w "$cache_file"; then
18573     test "x$cache_file" != "x/dev/null" &&
18574       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18575 echo "$as_me: updating cache $cache_file" >&6;}
18576     cat confcache >$cache_file
18577   else
18578     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18579 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18580   fi
18581 fi
18582 rm -f confcache
18583
18584 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18585 # Let make expand exec_prefix.
18586 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18587
18588 DEFS=-DHAVE_CONFIG_H
18589
18590 ac_libobjs=
18591 ac_ltlibobjs=
18592 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18593   # 1. Remove the extension, and $U if already installed.
18594   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18595   ac_i=`echo "$ac_i" | sed "$ac_script"`
18596   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18597   #    will be set to the directory where LIBOBJS objects are built.
18598   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18599   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18600 done
18601 LIBOBJS=$ac_libobjs
18602
18603 LTLIBOBJS=$ac_ltlibobjs
18604
18605
18606
18607 : ${CONFIG_STATUS=./config.status}
18608 ac_clean_files_save=$ac_clean_files
18609 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18610 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18611 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18612 cat >$CONFIG_STATUS <<_ACEOF
18613 #! $SHELL
18614 # Generated by $as_me.
18615 # Run this file to recreate the current configuration.
18616 # Compiler output produced by configure, useful for debugging
18617 # configure, is in config.log if it exists.
18618
18619 debug=false
18620 ac_cs_recheck=false
18621 ac_cs_silent=false
18622 SHELL=\${CONFIG_SHELL-$SHELL}
18623 _ACEOF
18624
18625 cat >>$CONFIG_STATUS <<\_ACEOF
18626 ## --------------------- ##
18627 ## M4sh Initialization.  ##
18628 ## --------------------- ##
18629
18630 # Be Bourne compatible
18631 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18632   emulate sh
18633   NULLCMD=:
18634   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18635   # is contrary to our usage.  Disable this feature.
18636   alias -g '${1+"$@"}'='"$@"'
18637   setopt NO_GLOB_SUBST
18638 else
18639   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18640 fi
18641 BIN_SH=xpg4; export BIN_SH # for Tru64
18642 DUALCASE=1; export DUALCASE # for MKS sh
18643
18644
18645 # PATH needs CR
18646 # Avoid depending upon Character Ranges.
18647 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18648 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18649 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18650 as_cr_digits='0123456789'
18651 as_cr_alnum=$as_cr_Letters$as_cr_digits
18652
18653 # The user is always right.
18654 if test "${PATH_SEPARATOR+set}" != set; then
18655   echo "#! /bin/sh" >conf$$.sh
18656   echo  "exit 0"   >>conf$$.sh
18657   chmod +x conf$$.sh
18658   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18659     PATH_SEPARATOR=';'
18660   else
18661     PATH_SEPARATOR=:
18662   fi
18663   rm -f conf$$.sh
18664 fi
18665
18666 # Support unset when possible.
18667 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18668   as_unset=unset
18669 else
18670   as_unset=false
18671 fi
18672
18673
18674 # IFS
18675 # We need space, tab and new line, in precisely that order.  Quoting is
18676 # there to prevent editors from complaining about space-tab.
18677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18678 # splitting by setting IFS to empty value.)
18679 as_nl='
18680 '
18681 IFS=" ""        $as_nl"
18682
18683 # Find who we are.  Look in the path if we contain no directory separator.
18684 case $0 in
18685   *[\\/]* ) as_myself=$0 ;;
18686   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18687 for as_dir in $PATH
18688 do
18689   IFS=$as_save_IFS
18690   test -z "$as_dir" && as_dir=.
18691   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18692 done
18693 IFS=$as_save_IFS
18694
18695      ;;
18696 esac
18697 # We did not find ourselves, most probably we were run as `sh COMMAND'
18698 # in which case we are not to be found in the path.
18699 if test "x$as_myself" = x; then
18700   as_myself=$0
18701 fi
18702 if test ! -f "$as_myself"; then
18703   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18704   { (exit 1); exit 1; }
18705 fi
18706
18707 # Work around bugs in pre-3.0 UWIN ksh.
18708 for as_var in ENV MAIL MAILPATH
18709 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18710 done
18711 PS1='$ '
18712 PS2='> '
18713 PS4='+ '
18714
18715 # NLS nuisances.
18716 for as_var in \
18717   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18718   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18719   LC_TELEPHONE LC_TIME
18720 do
18721   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18722     eval $as_var=C; export $as_var
18723   else
18724     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18725   fi
18726 done
18727
18728 # Required to use basename.
18729 if expr a : '\(a\)' >/dev/null 2>&1 &&
18730    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18731   as_expr=expr
18732 else
18733   as_expr=false
18734 fi
18735
18736 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18737   as_basename=basename
18738 else
18739   as_basename=false
18740 fi
18741
18742
18743 # Name of the executable.
18744 as_me=`$as_basename -- "$0" ||
18745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18746          X"$0" : 'X\(//\)$' \| \
18747          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18748 echo X/"$0" |
18749     sed '/^.*\/\([^/][^/]*\)\/*$/{
18750             s//\1/
18751             q
18752           }
18753           /^X\/\(\/\/\)$/{
18754             s//\1/
18755             q
18756           }
18757           /^X\/\(\/\).*/{
18758             s//\1/
18759             q
18760           }
18761           s/.*/./; q'`
18762
18763 # CDPATH.
18764 $as_unset CDPATH
18765
18766
18767
18768   as_lineno_1=$LINENO
18769   as_lineno_2=$LINENO
18770   test "x$as_lineno_1" != "x$as_lineno_2" &&
18771   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18772
18773   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18774   # uniformly replaced by the line number.  The first 'sed' inserts a
18775   # line-number line after each line using $LINENO; the second 'sed'
18776   # does the real work.  The second script uses 'N' to pair each
18777   # line-number line with the line containing $LINENO, and appends
18778   # trailing '-' during substitution so that $LINENO is not a special
18779   # case at line end.
18780   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18781   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18782   # E. McMahon (1931-1989) for sed's syntax.  :-)
18783   sed -n '
18784     p
18785     /[$]LINENO/=
18786   ' <$as_myself |
18787     sed '
18788       s/[$]LINENO.*/&-/
18789       t lineno
18790       b
18791       :lineno
18792       N
18793       :loop
18794       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18795       t loop
18796       s/-\n.*//
18797     ' >$as_me.lineno &&
18798   chmod +x "$as_me.lineno" ||
18799     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18800    { (exit 1); exit 1; }; }
18801
18802   # Don't try to exec as it changes $[0], causing all sort of problems
18803   # (the dirname of $[0] is not the place where we might find the
18804   # original and so on.  Autoconf is especially sensitive to this).
18805   . "./$as_me.lineno"
18806   # Exit status is that of the last command.
18807   exit
18808 }
18809
18810
18811 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18812   as_dirname=dirname
18813 else
18814   as_dirname=false
18815 fi
18816
18817 ECHO_C= ECHO_N= ECHO_T=
18818 case `echo -n x` in
18819 -n*)
18820   case `echo 'x\c'` in
18821   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18822   *)   ECHO_C='\c';;
18823   esac;;
18824 *)
18825   ECHO_N='-n';;
18826 esac
18827
18828 if expr a : '\(a\)' >/dev/null 2>&1 &&
18829    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18830   as_expr=expr
18831 else
18832   as_expr=false
18833 fi
18834
18835 rm -f conf$$ conf$$.exe conf$$.file
18836 if test -d conf$$.dir; then
18837   rm -f conf$$.dir/conf$$.file
18838 else
18839   rm -f conf$$.dir
18840   mkdir conf$$.dir
18841 fi
18842 echo >conf$$.file
18843 if ln -s conf$$.file conf$$ 2>/dev/null; then
18844   as_ln_s='ln -s'
18845   # ... but there are two gotchas:
18846   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18847   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18848   # In both cases, we have to default to `cp -p'.
18849   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18850     as_ln_s='cp -p'
18851 elif ln conf$$.file conf$$ 2>/dev/null; then
18852   as_ln_s=ln
18853 else
18854   as_ln_s='cp -p'
18855 fi
18856 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18857 rmdir conf$$.dir 2>/dev/null
18858
18859 if mkdir -p . 2>/dev/null; then
18860   as_mkdir_p=:
18861 else
18862   test -d ./-p && rmdir ./-p
18863   as_mkdir_p=false
18864 fi
18865
18866 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
18867 # systems may use methods other than mode bits to determine executability.
18868 cat >conf$$.file <<_ASEOF
18869 #! /bin/sh
18870 exit 0
18871 _ASEOF
18872 chmod +x conf$$.file
18873 if test -x conf$$.file >/dev/null 2>&1; then
18874   as_executable_p="test -x"
18875 else
18876   as_executable_p=:
18877 fi
18878 rm -f conf$$.file
18879
18880 # Sed expression to map a string onto a valid CPP name.
18881 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18882
18883 # Sed expression to map a string onto a valid variable name.
18884 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18885
18886
18887 exec 6>&1
18888
18889 # Save the log message, to keep $[0] and so on meaningful, and to
18890 # report actual input values of CONFIG_FILES etc. instead of their
18891 # values after options handling.
18892 ac_log="
18893 This file was extended by LLVM $as_me 3.6.0svn, which was
18894 generated by GNU Autoconf 2.60.  Invocation command line was
18895
18896   CONFIG_FILES    = $CONFIG_FILES
18897   CONFIG_HEADERS  = $CONFIG_HEADERS
18898   CONFIG_LINKS    = $CONFIG_LINKS
18899   CONFIG_COMMANDS = $CONFIG_COMMANDS
18900   $ $0 $@
18901
18902 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18903 "
18904
18905 _ACEOF
18906
18907 cat >>$CONFIG_STATUS <<_ACEOF
18908 # Files that config.status was made for.
18909 config_files="$ac_config_files"
18910 config_headers="$ac_config_headers"
18911 config_commands="$ac_config_commands"
18912
18913 _ACEOF
18914
18915 cat >>$CONFIG_STATUS <<\_ACEOF
18916 ac_cs_usage="\
18917 \`$as_me' instantiates files from templates according to the
18918 current configuration.
18919
18920 Usage: $0 [OPTIONS] [FILE]...
18921
18922   -h, --help       print this help, then exit
18923   -V, --version    print version number, then exit
18924   -q, --quiet      do not print progress messages
18925   -d, --debug      don't remove temporary files
18926       --recheck    update $as_me by reconfiguring in the same conditions
18927   --file=FILE[:TEMPLATE]
18928                    instantiate the configuration file FILE
18929   --header=FILE[:TEMPLATE]
18930                    instantiate the configuration header FILE
18931
18932 Configuration files:
18933 $config_files
18934
18935 Configuration headers:
18936 $config_headers
18937
18938 Configuration commands:
18939 $config_commands
18940
18941 Report bugs to <bug-autoconf@gnu.org>."
18942
18943 _ACEOF
18944 cat >>$CONFIG_STATUS <<_ACEOF
18945 ac_cs_version="\\
18946 LLVM config.status 3.6.0svn
18947 configured by $0, generated by GNU Autoconf 2.60,
18948   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18949
18950 Copyright (C) 2006 Free Software Foundation, Inc.
18951 This config.status script is free software; the Free Software Foundation
18952 gives unlimited permission to copy, distribute and modify it."
18953
18954 ac_pwd='$ac_pwd'
18955 srcdir='$srcdir'
18956 INSTALL='$INSTALL'
18957 _ACEOF
18958
18959 cat >>$CONFIG_STATUS <<\_ACEOF
18960 # If no file are specified by the user, then we need to provide default
18961 # value.  By we need to know if files were specified by the user.
18962 ac_need_defaults=:
18963 while test $# != 0
18964 do
18965   case $1 in
18966   --*=*)
18967     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18968     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18969     ac_shift=:
18970     ;;
18971   *)
18972     ac_option=$1
18973     ac_optarg=$2
18974     ac_shift=shift
18975     ;;
18976   esac
18977
18978   case $ac_option in
18979   # Handling of the options.
18980   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18981     ac_cs_recheck=: ;;
18982   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18983     echo "$ac_cs_version"; exit ;;
18984   --debug | --debu | --deb | --de | --d | -d )
18985     debug=: ;;
18986   --file | --fil | --fi | --f )
18987     $ac_shift
18988     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18989     ac_need_defaults=false;;
18990   --header | --heade | --head | --hea )
18991     $ac_shift
18992     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18993     ac_need_defaults=false;;
18994   --he | --h)
18995     # Conflict between --help and --header
18996     { echo "$as_me: error: ambiguous option: $1
18997 Try \`$0 --help' for more information." >&2
18998    { (exit 1); exit 1; }; };;
18999   --help | --hel | -h )
19000     echo "$ac_cs_usage"; exit ;;
19001   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19002   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19003     ac_cs_silent=: ;;
19004
19005   # This is an error.
19006   -*) { echo "$as_me: error: unrecognized option: $1
19007 Try \`$0 --help' for more information." >&2
19008    { (exit 1); exit 1; }; } ;;
19009
19010   *) ac_config_targets="$ac_config_targets $1"
19011      ac_need_defaults=false ;;
19012
19013   esac
19014   shift
19015 done
19016
19017 ac_configure_extra_args=
19018
19019 if $ac_cs_silent; then
19020   exec 6>/dev/null
19021   ac_configure_extra_args="$ac_configure_extra_args --silent"
19022 fi
19023
19024 _ACEOF
19025 cat >>$CONFIG_STATUS <<_ACEOF
19026 if \$ac_cs_recheck; then
19027   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19028   CONFIG_SHELL=$SHELL
19029   export CONFIG_SHELL
19030   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19031 fi
19032
19033 _ACEOF
19034 cat >>$CONFIG_STATUS <<\_ACEOF
19035 exec 5>>config.log
19036 {
19037   echo
19038   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19039 ## Running $as_me. ##
19040 _ASBOX
19041   echo "$ac_log"
19042 } >&5
19043
19044 _ACEOF
19045 cat >>$CONFIG_STATUS <<_ACEOF
19046 #
19047 # INIT-COMMANDS
19048 #
19049 llvm_src="${srcdir}"
19050
19051 _ACEOF
19052
19053 cat >>$CONFIG_STATUS <<\_ACEOF
19054
19055 # Handling of arguments.
19056 for ac_config_target in $ac_config_targets
19057 do
19058   case $ac_config_target in
19059     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19060     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19061     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19062     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19063     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19064     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19065     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19066     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19067     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19068     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19069     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19070     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19071     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19072     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19073     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19074     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19075     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19076     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19077     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19078     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19079     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19080     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19081     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19082     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19083     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19084     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19085
19086   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19087 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19088    { (exit 1); exit 1; }; };;
19089   esac
19090 done
19091
19092
19093 # If the user did not use the arguments to specify the items to instantiate,
19094 # then the envvar interface is used.  Set only those that are not.
19095 # We use the long form for the default assignment because of an extremely
19096 # bizarre bug on SunOS 4.1.3.
19097 if $ac_need_defaults; then
19098   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19099   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19100   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19101 fi
19102
19103 # Have a temporary directory for convenience.  Make it in the build tree
19104 # simply because there is no reason against having it here, and in addition,
19105 # creating and moving files from /tmp can sometimes cause problems.
19106 # Hook for its removal unless debugging.
19107 # Note that there is a small window in which the directory will not be cleaned:
19108 # after its creation but before its name has been assigned to `$tmp'.
19109 $debug ||
19110 {
19111   tmp=
19112   trap 'exit_status=$?
19113   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19114 ' 0
19115   trap '{ (exit 1); exit 1; }' 1 2 13 15
19116 }
19117 # Create a (secure) tmp directory for tmp files.
19118
19119 {
19120   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19121   test -n "$tmp" && test -d "$tmp"
19122 }  ||
19123 {
19124   tmp=./conf$$-$RANDOM
19125   (umask 077 && mkdir "$tmp")
19126 } ||
19127 {
19128    echo "$me: cannot create a temporary directory in ." >&2
19129    { (exit 1); exit 1; }
19130 }
19131
19132 #
19133 # Set up the sed scripts for CONFIG_FILES section.
19134 #
19135
19136 # No need to generate the scripts if there are no CONFIG_FILES.
19137 # This happens for instance when ./config.status config.h
19138 if test -n "$CONFIG_FILES"; then
19139
19140 _ACEOF
19141
19142
19143
19144 ac_delim='%!_!# '
19145 for ac_last_try in false false false false false :; do
19146   cat >conf$$subs.sed <<_ACEOF
19147 SHELL!$SHELL$ac_delim
19148 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19149 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19150 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19151 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19152 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19153 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19154 exec_prefix!$exec_prefix$ac_delim
19155 prefix!$prefix$ac_delim
19156 program_transform_name!$program_transform_name$ac_delim
19157 bindir!$bindir$ac_delim
19158 sbindir!$sbindir$ac_delim
19159 libexecdir!$libexecdir$ac_delim
19160 datarootdir!$datarootdir$ac_delim
19161 datadir!$datadir$ac_delim
19162 sysconfdir!$sysconfdir$ac_delim
19163 sharedstatedir!$sharedstatedir$ac_delim
19164 localstatedir!$localstatedir$ac_delim
19165 includedir!$includedir$ac_delim
19166 oldincludedir!$oldincludedir$ac_delim
19167 docdir!$docdir$ac_delim
19168 infodir!$infodir$ac_delim
19169 htmldir!$htmldir$ac_delim
19170 dvidir!$dvidir$ac_delim
19171 pdfdir!$pdfdir$ac_delim
19172 psdir!$psdir$ac_delim
19173 libdir!$libdir$ac_delim
19174 localedir!$localedir$ac_delim
19175 mandir!$mandir$ac_delim
19176 DEFS!$DEFS$ac_delim
19177 ECHO_C!$ECHO_C$ac_delim
19178 ECHO_N!$ECHO_N$ac_delim
19179 ECHO_T!$ECHO_T$ac_delim
19180 LIBS!$LIBS$ac_delim
19181 build_alias!$build_alias$ac_delim
19182 host_alias!$host_alias$ac_delim
19183 target_alias!$target_alias$ac_delim
19184 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19185 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19186 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19187 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19188 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19189 CC!$CC$ac_delim
19190 CFLAGS!$CFLAGS$ac_delim
19191 LDFLAGS!$LDFLAGS$ac_delim
19192 CPPFLAGS!$CPPFLAGS$ac_delim
19193 ac_ct_CC!$ac_ct_CC$ac_delim
19194 EXEEXT!$EXEEXT$ac_delim
19195 OBJEXT!$OBJEXT$ac_delim
19196 CXX!$CXX$ac_delim
19197 CXXFLAGS!$CXXFLAGS$ac_delim
19198 ac_ct_CXX!$ac_ct_CXX$ac_delim
19199 CPP!$CPP$ac_delim
19200 subdirs!$subdirs$ac_delim
19201 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19202 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19203 build!$build$ac_delim
19204 build_cpu!$build_cpu$ac_delim
19205 build_vendor!$build_vendor$ac_delim
19206 build_os!$build_os$ac_delim
19207 host!$host$ac_delim
19208 host_cpu!$host_cpu$ac_delim
19209 host_vendor!$host_vendor$ac_delim
19210 host_os!$host_os$ac_delim
19211 target!$target$ac_delim
19212 target_cpu!$target_cpu$ac_delim
19213 target_vendor!$target_vendor$ac_delim
19214 target_os!$target_os$ac_delim
19215 OS!$OS$ac_delim
19216 HOST_OS!$HOST_OS$ac_delim
19217 TARGET_OS!$TARGET_OS$ac_delim
19218 LINKALL!$LINKALL$ac_delim
19219 NOLINKALL!$NOLINKALL$ac_delim
19220 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19221 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19222 ARCH!$ARCH$ac_delim
19223 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19224 HOST_ARCH!$HOST_ARCH$ac_delim
19225 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19226 BUILD_CC!$BUILD_CC$ac_delim
19227 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19228 BUILD_CXX!$BUILD_CXX$ac_delim
19229 CVSBUILD!$CVSBUILD$ac_delim
19230 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19231 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19232 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19233 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19234 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19235 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19236 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19237 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19238 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19239 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19240 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19241 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19242 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19243 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19244 _ACEOF
19245
19246   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19247     break
19248   elif $ac_last_try; then
19249     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19250 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19251    { (exit 1); exit 1; }; }
19252   else
19253     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19254   fi
19255 done
19256
19257 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19258 if test -n "$ac_eof"; then
19259   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19260   ac_eof=`expr $ac_eof + 1`
19261 fi
19262
19263 cat >>$CONFIG_STATUS <<_ACEOF
19264 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19266 _ACEOF
19267 sed '
19268 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19269 s/^/s,@/; s/!/@,|#_!!_#|/
19270 :n
19271 t n
19272 s/'"$ac_delim"'$/,g/; t
19273 s/$/\\/; p
19274 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19275 ' >>$CONFIG_STATUS <conf$$subs.sed
19276 rm -f conf$$subs.sed
19277 cat >>$CONFIG_STATUS <<_ACEOF
19278 CEOF$ac_eof
19279 _ACEOF
19280
19281
19282 ac_delim='%!_!# '
19283 for ac_last_try in false false false false false :; do
19284   cat >conf$$subs.sed <<_ACEOF
19285 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19286 JIT!$JIT$ac_delim
19287 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19288 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19289 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19290 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19291 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19292 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19293 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19294 ENABLE_PIC!$ENABLE_PIC$ac_delim
19295 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19296 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19297 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19298 ALL_TARGETS!$ALL_TARGETS$ac_delim
19299 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19300 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19301 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19302 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19303 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19304 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19305 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19306 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19307 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19308 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19309 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19310 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19311 ifGNUmake!$ifGNUmake$ac_delim
19312 LN_S!$LN_S$ac_delim
19313 NM!$NM$ac_delim
19314 CMP!$CMP$ac_delim
19315 CP!$CP$ac_delim
19316 DATE!$DATE$ac_delim
19317 FIND!$FIND$ac_delim
19318 GREP!$GREP$ac_delim
19319 MKDIR!$MKDIR$ac_delim
19320 MV!$MV$ac_delim
19321 RANLIB!$RANLIB$ac_delim
19322 AR!$AR$ac_delim
19323 RM!$RM$ac_delim
19324 SED!$SED$ac_delim
19325 TAR!$TAR$ac_delim
19326 BINPWD!$BINPWD$ac_delim
19327 DOT!$DOT$ac_delim
19328 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19329 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19330 INSTALL_DATA!$INSTALL_DATA$ac_delim
19331 BZIP2!$BZIP2$ac_delim
19332 CAT!$CAT$ac_delim
19333 DOXYGEN!$DOXYGEN$ac_delim
19334 GROFF!$GROFF$ac_delim
19335 GZIPBIN!$GZIPBIN$ac_delim
19336 PDFROFF!$PDFROFF$ac_delim
19337 ZIP!$ZIP$ac_delim
19338 GO!$GO$ac_delim
19339 OCAMLFIND!$OCAMLFIND$ac_delim
19340 GAS!$GAS$ac_delim
19341 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19342 EGREP!$EGREP$ac_delim
19343 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19344 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19345 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19346 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19347 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19348 NO_COMMENT!$NO_COMMENT$ac_delim
19349 PYTHON!$PYTHON$ac_delim
19350 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19351 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19352 USE_OPROFILE!$USE_OPROFILE$ac_delim
19353 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19354 XML2CONFIG!$XML2CONFIG$ac_delim
19355 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19356 LIBXML2_INC!$LIBXML2_INC$ac_delim
19357 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19358 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19359 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19360 MMAP_FILE!$MMAP_FILE$ac_delim
19361 SHLIBEXT!$SHLIBEXT$ac_delim
19362 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19363 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19364 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19365 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19366 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19367 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19368 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19369 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19370 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19371 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19372 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19373 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19374 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19375 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19376 RPATH!$RPATH$ac_delim
19377 RDYNAMIC!$RDYNAMIC$ac_delim
19378 program_prefix!$program_prefix$ac_delim
19379 LIBOBJS!$LIBOBJS$ac_delim
19380 LTLIBOBJS!$LTLIBOBJS$ac_delim
19381 _ACEOF
19382
19383   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19384     break
19385   elif $ac_last_try; then
19386     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19387 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19388    { (exit 1); exit 1; }; }
19389   else
19390     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19391   fi
19392 done
19393
19394 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19395 if test -n "$ac_eof"; then
19396   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19397   ac_eof=`expr $ac_eof + 1`
19398 fi
19399
19400 cat >>$CONFIG_STATUS <<_ACEOF
19401 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19403 _ACEOF
19404 sed '
19405 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19406 s/^/s,@/; s/!/@,|#_!!_#|/
19407 :n
19408 t n
19409 s/'"$ac_delim"'$/,g/; t
19410 s/$/\\/; p
19411 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19412 ' >>$CONFIG_STATUS <conf$$subs.sed
19413 rm -f conf$$subs.sed
19414 cat >>$CONFIG_STATUS <<_ACEOF
19415 CEOF$ac_eof
19416 _ACEOF
19417
19418
19419 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19420 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19421 # trailing colons and then remove the whole line if VPATH becomes empty
19422 # (actually we leave an empty line to preserve line numbers).
19423 if test "x$srcdir" = x.; then
19424   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19425 s/:*\$(srcdir):*/:/
19426 s/:*\${srcdir}:*/:/
19427 s/:*@srcdir@:*/:/
19428 s/^\([^=]*=[     ]*\):*/\1/
19429 s/:*$//
19430 s/^[^=]*=[       ]*$//
19431 }'
19432 fi
19433
19434 cat >>$CONFIG_STATUS <<\_ACEOF
19435 fi # test -n "$CONFIG_FILES"
19436
19437
19438 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19439 do
19440   case $ac_tag in
19441   :[FHLC]) ac_mode=$ac_tag; continue;;
19442   esac
19443   case $ac_mode$ac_tag in
19444   :[FHL]*:*);;
19445   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19446 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19447    { (exit 1); exit 1; }; };;
19448   :[FH]-) ac_tag=-:-;;
19449   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19450   esac
19451   ac_save_IFS=$IFS
19452   IFS=:
19453   set x $ac_tag
19454   IFS=$ac_save_IFS
19455   shift
19456   ac_file=$1
19457   shift
19458
19459   case $ac_mode in
19460   :L) ac_source=$1;;
19461   :[FH])
19462     ac_file_inputs=
19463     for ac_f
19464     do
19465       case $ac_f in
19466       -) ac_f="$tmp/stdin";;
19467       *) # Look for the file first in the build tree, then in the source tree
19468          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19469          # because $ac_f cannot contain `:'.
19470          test -f "$ac_f" ||
19471            case $ac_f in
19472            [\\/$]*) false;;
19473            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19474            esac ||
19475            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19476 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19477    { (exit 1); exit 1; }; };;
19478       esac
19479       ac_file_inputs="$ac_file_inputs $ac_f"
19480     done
19481
19482     # Let's still pretend it is `configure' which instantiates (i.e., don't
19483     # use $as_me), people would be surprised to read:
19484     #    /* config.h.  Generated by config.status.  */
19485     configure_input="Generated from "`IFS=:
19486           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19487     if test x"$ac_file" != x-; then
19488       configure_input="$ac_file.  $configure_input"
19489       { echo "$as_me:$LINENO: creating $ac_file" >&5
19490 echo "$as_me: creating $ac_file" >&6;}
19491     fi
19492
19493     case $ac_tag in
19494     *:-:* | *:-) cat >"$tmp/stdin";;
19495     esac
19496     ;;
19497   esac
19498
19499   ac_dir=`$as_dirname -- "$ac_file" ||
19500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19501          X"$ac_file" : 'X\(//\)[^/]' \| \
19502          X"$ac_file" : 'X\(//\)$' \| \
19503          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19504 echo X"$ac_file" |
19505     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19506             s//\1/
19507             q
19508           }
19509           /^X\(\/\/\)[^/].*/{
19510             s//\1/
19511             q
19512           }
19513           /^X\(\/\/\)$/{
19514             s//\1/
19515             q
19516           }
19517           /^X\(\/\).*/{
19518             s//\1/
19519             q
19520           }
19521           s/.*/./; q'`
19522   { as_dir="$ac_dir"
19523   case $as_dir in #(
19524   -*) as_dir=./$as_dir;;
19525   esac
19526   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19527     as_dirs=
19528     while :; do
19529       case $as_dir in #(
19530       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19531       *) as_qdir=$as_dir;;
19532       esac
19533       as_dirs="'$as_qdir' $as_dirs"
19534       as_dir=`$as_dirname -- "$as_dir" ||
19535 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19536          X"$as_dir" : 'X\(//\)[^/]' \| \
19537          X"$as_dir" : 'X\(//\)$' \| \
19538          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19539 echo X"$as_dir" |
19540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19541             s//\1/
19542             q
19543           }
19544           /^X\(\/\/\)[^/].*/{
19545             s//\1/
19546             q
19547           }
19548           /^X\(\/\/\)$/{
19549             s//\1/
19550             q
19551           }
19552           /^X\(\/\).*/{
19553             s//\1/
19554             q
19555           }
19556           s/.*/./; q'`
19557       test -d "$as_dir" && break
19558     done
19559     test -z "$as_dirs" || eval "mkdir $as_dirs"
19560   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19561 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19562    { (exit 1); exit 1; }; }; }
19563   ac_builddir=.
19564
19565 case "$ac_dir" in
19566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19567 *)
19568   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19569   # A ".." for each directory in $ac_dir_suffix.
19570   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19571   case $ac_top_builddir_sub in
19572   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19573   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19574   esac ;;
19575 esac
19576 ac_abs_top_builddir=$ac_pwd
19577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19578 # for backward compatibility:
19579 ac_top_builddir=$ac_top_build_prefix
19580
19581 case $srcdir in
19582   .)  # We are building in place.
19583     ac_srcdir=.
19584     ac_top_srcdir=$ac_top_builddir_sub
19585     ac_abs_top_srcdir=$ac_pwd ;;
19586   [\\/]* | ?:[\\/]* )  # Absolute name.
19587     ac_srcdir=$srcdir$ac_dir_suffix;
19588     ac_top_srcdir=$srcdir
19589     ac_abs_top_srcdir=$srcdir ;;
19590   *) # Relative name.
19591     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19592     ac_top_srcdir=$ac_top_build_prefix$srcdir
19593     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19594 esac
19595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19596
19597
19598   case $ac_mode in
19599   :F)
19600   #
19601   # CONFIG_FILE
19602   #
19603
19604   case $INSTALL in
19605   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19606   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19607   esac
19608 _ACEOF
19609
19610 cat >>$CONFIG_STATUS <<\_ACEOF
19611 # If the template does not know about datarootdir, expand it.
19612 # FIXME: This hack should be removed a few years after 2.60.
19613 ac_datarootdir_hack=; ac_datarootdir_seen=
19614
19615 case `sed -n '/datarootdir/ {
19616   p
19617   q
19618 }
19619 /@datadir@/p
19620 /@docdir@/p
19621 /@infodir@/p
19622 /@localedir@/p
19623 /@mandir@/p
19624 ' $ac_file_inputs` in
19625 *datarootdir*) ac_datarootdir_seen=yes;;
19626 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19627   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19628 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19629 _ACEOF
19630 cat >>$CONFIG_STATUS <<_ACEOF
19631   ac_datarootdir_hack='
19632   s&@datadir@&$datadir&g
19633   s&@docdir@&$docdir&g
19634   s&@infodir@&$infodir&g
19635   s&@localedir@&$localedir&g
19636   s&@mandir@&$mandir&g
19637     s&\\\${datarootdir}&$datarootdir&g' ;;
19638 esac
19639 _ACEOF
19640
19641 # Neutralize VPATH when `$srcdir' = `.'.
19642 # Shell code in configure.ac might set extrasub.
19643 # FIXME: do we really want to maintain this feature?
19644 cat >>$CONFIG_STATUS <<_ACEOF
19645   sed "$ac_vpsub
19646 $extrasub
19647 _ACEOF
19648 cat >>$CONFIG_STATUS <<\_ACEOF
19649 :t
19650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19651 s&@configure_input@&$configure_input&;t t
19652 s&@top_builddir@&$ac_top_builddir_sub&;t t
19653 s&@srcdir@&$ac_srcdir&;t t
19654 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19655 s&@top_srcdir@&$ac_top_srcdir&;t t
19656 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19657 s&@builddir@&$ac_builddir&;t t
19658 s&@abs_builddir@&$ac_abs_builddir&;t t
19659 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19660 s&@INSTALL@&$ac_INSTALL&;t t
19661 $ac_datarootdir_hack
19662 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
19663
19664 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19665   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19666   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19667   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19668 which seems to be undefined.  Please make sure it is defined." >&5
19669 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19670 which seems to be undefined.  Please make sure it is defined." >&2;}
19671
19672   rm -f "$tmp/stdin"
19673   case $ac_file in
19674   -) cat "$tmp/out"; rm -f "$tmp/out";;
19675   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19676   esac
19677  ;;
19678   :H)
19679   #
19680   # CONFIG_HEADER
19681   #
19682 _ACEOF
19683
19684 # Transform confdefs.h into a sed script `conftest.defines', that
19685 # substitutes the proper values into config.h.in to produce config.h.
19686 rm -f conftest.defines conftest.tail
19687 # First, append a space to every undef/define line, to ease matching.
19688 echo 's/$/ /' >conftest.defines
19689 # Then, protect against being on the right side of a sed subst, or in
19690 # an unquoted here document, in config.status.  If some macros were
19691 # called several times there might be several #defines for the same
19692 # symbol, which is useless.  But do not sort them, since the last
19693 # AC_DEFINE must be honored.
19694 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19695 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19696 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19697 # PARAMS is the parameter list in the macro definition--in most cases, it's
19698 # just an empty string.
19699 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19700 ac_dB='\\)[      (].*,\\1define\\2'
19701 ac_dC=' '
19702 ac_dD=' ,'
19703
19704 uniq confdefs.h |
19705   sed -n '
19706         t rset
19707         :rset
19708         s/^[     ]*#[    ]*define[       ][      ]*//
19709         t ok
19710         d
19711         :ok
19712         s/[\\&,]/\\&/g
19713         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19714         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19715   ' >>conftest.defines
19716
19717 # Remove the space that was appended to ease matching.
19718 # Then replace #undef with comments.  This is necessary, for
19719 # example, in the case of _POSIX_SOURCE, which is predefined and required
19720 # on some systems where configure will not decide to define it.
19721 # (The regexp can be short, since the line contains either #define or #undef.)
19722 echo 's/ $//
19723 s,^[     #]*u.*,/* & */,' >>conftest.defines
19724
19725 # Break up conftest.defines:
19726 ac_max_sed_lines=50
19727
19728 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19729 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19730 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19731 # et cetera.
19732 ac_in='$ac_file_inputs'
19733 ac_out='"$tmp/out1"'
19734 ac_nxt='"$tmp/out2"'
19735
19736 while :
19737 do
19738   # Write a here document:
19739     cat >>$CONFIG_STATUS <<_ACEOF
19740     # First, check the format of the line:
19741     cat >"\$tmp/defines.sed" <<\\CEOF
19742 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19743 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19744 b
19745 :def
19746 _ACEOF
19747   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19748   echo 'CEOF
19749     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19750   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19751   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19752   grep . conftest.tail >/dev/null || break
19753   rm -f conftest.defines
19754   mv conftest.tail conftest.defines
19755 done
19756 rm -f conftest.defines conftest.tail
19757
19758 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19759 cat >>$CONFIG_STATUS <<\_ACEOF
19760   if test x"$ac_file" != x-; then
19761     echo "/* $configure_input  */" >"$tmp/config.h"
19762     cat "$ac_result" >>"$tmp/config.h"
19763     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19764       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19765 echo "$as_me: $ac_file is unchanged" >&6;}
19766     else
19767       rm -f $ac_file
19768       mv "$tmp/config.h" $ac_file
19769     fi
19770   else
19771     echo "/* $configure_input  */"
19772     cat "$ac_result"
19773   fi
19774   rm -f "$tmp/out12"
19775  ;;
19776
19777   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19778 echo "$as_me: executing $ac_file commands" >&6;}
19779  ;;
19780   esac
19781
19782
19783   case $ac_file$ac_mode in
19784     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19785    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19786     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19787    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19788     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19789    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19790     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19791    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19792     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19793    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19794     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19795    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19796     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19797    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19798     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19799    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19800     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19801    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19802     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19803    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19804     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19805    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19806     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19807    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19808
19809   esac
19810 done # for ac_tag
19811
19812
19813 { (exit 0); exit 0; }
19814 _ACEOF
19815 chmod +x $CONFIG_STATUS
19816 ac_clean_files=$ac_clean_files_save
19817
19818
19819 # configure is writing to config.log, and then calls config.status.
19820 # config.status does its own redirection, appending to config.log.
19821 # Unfortunately, on DOS this fails, as config.log is still kept open
19822 # by configure, so config.status won't be able to write to it; its
19823 # output is simply discarded.  So we exec the FD to /dev/null,
19824 # effectively closing config.log, so it can be properly (re)opened and
19825 # appended to by config.status.  When coming back to configure, we
19826 # need to make the FD available again.
19827 if test "$no_create" != yes; then
19828   ac_cs_success=:
19829   ac_config_status_args=
19830   test "$silent" = yes &&
19831     ac_config_status_args="$ac_config_status_args --quiet"
19832   exec 5>/dev/null
19833   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19834   exec 5>>config.log
19835   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19836   # would make configure fail if this is the last instruction.
19837   $ac_cs_success || { (exit 1); exit 1; }
19838 fi
19839
19840 #
19841 # CONFIG_SUBDIRS section.
19842 #
19843 if test "$no_recursion" != yes; then
19844
19845   # Remove --cache-file and --srcdir arguments so they do not pile up.
19846   ac_sub_configure_args=
19847   ac_prev=
19848   eval "set x $ac_configure_args"
19849   shift
19850   for ac_arg
19851   do
19852     if test -n "$ac_prev"; then
19853       ac_prev=
19854       continue
19855     fi
19856     case $ac_arg in
19857     -cache-file | --cache-file | --cache-fil | --cache-fi \
19858     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19859       ac_prev=cache_file ;;
19860     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19861     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19862     | --c=*)
19863       ;;
19864     --config-cache | -C)
19865       ;;
19866     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19867       ac_prev=srcdir ;;
19868     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19869       ;;
19870     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19871       ac_prev=prefix ;;
19872     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19873       ;;
19874     *)
19875       case $ac_arg in
19876       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19877       esac
19878       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19879     esac
19880   done
19881
19882   # Always prepend --prefix to ensure using the same prefix
19883   # in subdir configurations.
19884   ac_arg="--prefix=$prefix"
19885   case $ac_arg in
19886   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19887   esac
19888   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19889
19890   ac_popdir=`pwd`
19891   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19892
19893     # Do not complain, so a configure script can configure whichever
19894     # parts of a large source tree are present.
19895     test -d "$srcdir/$ac_dir" || continue
19896
19897     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19898     echo "$as_me:$LINENO: $ac_msg" >&5
19899     echo "$ac_msg" >&6
19900     { as_dir="$ac_dir"
19901   case $as_dir in #(
19902   -*) as_dir=./$as_dir;;
19903   esac
19904   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19905     as_dirs=
19906     while :; do
19907       case $as_dir in #(
19908       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19909       *) as_qdir=$as_dir;;
19910       esac
19911       as_dirs="'$as_qdir' $as_dirs"
19912       as_dir=`$as_dirname -- "$as_dir" ||
19913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19914          X"$as_dir" : 'X\(//\)[^/]' \| \
19915          X"$as_dir" : 'X\(//\)$' \| \
19916          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19917 echo X"$as_dir" |
19918     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19919             s//\1/
19920             q
19921           }
19922           /^X\(\/\/\)[^/].*/{
19923             s//\1/
19924             q
19925           }
19926           /^X\(\/\/\)$/{
19927             s//\1/
19928             q
19929           }
19930           /^X\(\/\).*/{
19931             s//\1/
19932             q
19933           }
19934           s/.*/./; q'`
19935       test -d "$as_dir" && break
19936     done
19937     test -z "$as_dirs" || eval "mkdir $as_dirs"
19938   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19939 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19940    { (exit 1); exit 1; }; }; }
19941     ac_builddir=.
19942
19943 case "$ac_dir" in
19944 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19945 *)
19946   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19947   # A ".." for each directory in $ac_dir_suffix.
19948   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19949   case $ac_top_builddir_sub in
19950   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19951   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19952   esac ;;
19953 esac
19954 ac_abs_top_builddir=$ac_pwd
19955 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19956 # for backward compatibility:
19957 ac_top_builddir=$ac_top_build_prefix
19958
19959 case $srcdir in
19960   .)  # We are building in place.
19961     ac_srcdir=.
19962     ac_top_srcdir=$ac_top_builddir_sub
19963     ac_abs_top_srcdir=$ac_pwd ;;
19964   [\\/]* | ?:[\\/]* )  # Absolute name.
19965     ac_srcdir=$srcdir$ac_dir_suffix;
19966     ac_top_srcdir=$srcdir
19967     ac_abs_top_srcdir=$srcdir ;;
19968   *) # Relative name.
19969     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19970     ac_top_srcdir=$ac_top_build_prefix$srcdir
19971     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19972 esac
19973 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19974
19975
19976     cd "$ac_dir"
19977
19978     # Check for guested configure; otherwise get Cygnus style configure.
19979     if test -f "$ac_srcdir/configure.gnu"; then
19980       ac_sub_configure=$ac_srcdir/configure.gnu
19981     elif test -f "$ac_srcdir/configure"; then
19982       ac_sub_configure=$ac_srcdir/configure
19983     elif test -f "$ac_srcdir/configure.in"; then
19984       # This should be Cygnus configure.
19985       ac_sub_configure=$ac_aux_dir/configure
19986     else
19987       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19988 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19989       ac_sub_configure=
19990     fi
19991
19992     # The recursion is here.
19993     if test -n "$ac_sub_configure"; then
19994       # Make the cache file name correct relative to the subdirectory.
19995       case $cache_file in
19996       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19997       *) # Relative name.
19998         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19999       esac
20000
20001       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20002 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20003       # The eval makes quoting arguments work.
20004       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20005            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20006         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20007 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20008    { (exit 1); exit 1; }; }
20009     fi
20010
20011     cd "$ac_popdir"
20012   done
20013 fi
20014