X86: Use enums for memory operand decoding instead of integer literals.
[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.5.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.5.0svn'
565 PACKAGE_STRING='LLVM 3.5.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_CLANG_REWRITER
695 ENABLE_OPTIMIZED
696 ENABLE_PROFILING
697 DISABLE_ASSERTIONS
698 ENABLE_WERROR
699 ENABLE_EXPENSIVE_CHECKS
700 EXPENSIVE_CHECKS
701 DEBUG_RUNTIME
702 DEBUG_SYMBOLS
703 KEEP_SYMBOLS
704 JIT
705 TARGET_HAS_JIT
706 TARGETS_WITH_JIT
707 ENABLE_DOCS
708 ENABLE_DOXYGEN
709 LLVM_ENABLE_THREADS
710 ENABLE_PTHREADS
711 LLVM_ENABLE_ZLIB
712 ENABLE_PIC
713 ENABLE_SHARED
714 ENABLE_EMBED_STDCXX
715 ENABLE_TIMESTAMPS
716 ALL_TARGETS
717 TARGETS_TO_BUILD
718 LLVM_ENUM_TARGETS
719 LLVM_ENUM_ASM_PRINTERS
720 LLVM_ENUM_ASM_PARSERS
721 LLVM_ENUM_DISASSEMBLERS
722 OPTIMIZE_OPTION
723 EXTRA_OPTIONS
724 EXTRA_LD_OPTIONS
725 CLANG_SRC_ROOT
726 BINUTILS_INCDIR
727 ENABLE_TERMINFO
728 INTERNAL_PREFIX
729 ifGNUmake
730 LN_S
731 NM
732 CMP
733 CP
734 DATE
735 FIND
736 GREP
737 MKDIR
738 MV
739 RANLIB
740 AR
741 RM
742 SED
743 TAR
744 BINPWD
745 GRAPHVIZ
746 DOT
747 FDP
748 NEATO
749 TWOPI
750 CIRCO
751 GV
752 DOTTY
753 XDOT
754 INSTALL_PROGRAM
755 INSTALL_SCRIPT
756 INSTALL_DATA
757 BZIP2
758 CAT
759 DOXYGEN
760 GROFF
761 GZIPBIN
762 PDFROFF
763 ZIP
764 OCAMLC
765 OCAMLOPT
766 OCAMLDEP
767 OCAMLDOC
768 GAS
769 HAVE_LINK_VERSION_SCRIPT
770 EGREP
771 NO_VARIADIC_MACROS
772 NO_MISSING_FIELD_INITIALIZERS
773 COVERED_SWITCH_DEFAULT
774 NO_MAYBE_UNINITIALIZED
775 NO_UNINITIALIZED
776 PYTHON
777 HAVE_DLOPEN
778 HAVE_TERMINFO
779 USE_UDIS86
780 USE_OPROFILE
781 USE_INTEL_JITEVENTS
782 XML2CONFIG
783 LIBXML2_LIBS
784 LIBXML2_INC
785 CXXCPP
786 HAVE_PTHREAD
787 HAVE_LIBZ
788 HUGE_VAL_SANITY
789 MMAP_FILE
790 SHLIBEXT
791 LLVM_PREFIX
792 LLVM_BINDIR
793 LLVM_DATADIR
794 LLVM_DOCSDIR
795 LLVM_ETCDIR
796 LLVM_INCLUDEDIR
797 LLVM_INFODIR
798 LLVM_MANDIR
799 LLVM_CONFIGTIME
800 BINDINGS_TO_BUILD
801 ALL_BINDINGS
802 OCAML_LIBDIR
803 ENABLE_VISIBILITY_INLINES_HIDDEN
804 RPATH
805 RDYNAMIC
806 program_prefix
807 LIBOBJS
808 LTLIBOBJS'
809 ac_subst_files=''
810       ac_precious_vars='build_alias
811 host_alias
812 target_alias
813 CC
814 CFLAGS
815 LDFLAGS
816 CPPFLAGS
817 CXX
818 CXXFLAGS
819 CCC
820 CPP
821 CXXCPP'
822 ac_subdirs_all='projects/test-suite
823 projects/llvm-test
824 projects/poolalloc
825 projects/llvm-poolalloc
826 projects/safecode
827 tools/polly'
828
829 # Initialize some variables set by options.
830 ac_init_help=
831 ac_init_version=false
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
848
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
874
875 ac_prev=
876 ac_dashdash=
877 for ac_option
878 do
879   # If the previous option needs an argument, assign it.
880   if test -n "$ac_prev"; then
881     eval $ac_prev=\$ac_option
882     ac_prev=
883     continue
884   fi
885
886   case $ac_option in
887   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888   *)    ac_optarg=yes ;;
889   esac
890
891   # Accept the important Cygnus configure options, so we can diagnose typos.
892
893   case $ac_dashdash$ac_option in
894   --)
895     ac_dashdash=yes ;;
896
897   -bindir | --bindir | --bindi | --bind | --bin | --bi)
898     ac_prev=bindir ;;
899   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900     bindir=$ac_optarg ;;
901
902   -build | --build | --buil | --bui | --bu)
903     ac_prev=build_alias ;;
904   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905     build_alias=$ac_optarg ;;
906
907   -cache-file | --cache-file | --cache-fil | --cache-fi \
908   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909     ac_prev=cache_file ;;
910   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912     cache_file=$ac_optarg ;;
913
914   --config-cache | -C)
915     cache_file=config.cache ;;
916
917   -datadir | --datadir | --datadi | --datad)
918     ac_prev=datadir ;;
919   -datadir=* | --datadir=* | --datadi=* | --datad=*)
920     datadir=$ac_optarg ;;
921
922   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923   | --dataroo | --dataro | --datar)
924     ac_prev=datarootdir ;;
925   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927     datarootdir=$ac_optarg ;;
928
929   -disable-* | --disable-*)
930     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931     # Reject names that are not valid shell variable names.
932     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934    { (exit 1); exit 1; }; }
935     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936     eval enable_$ac_feature=no ;;
937
938   -docdir | --docdir | --docdi | --doc | --do)
939     ac_prev=docdir ;;
940   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941     docdir=$ac_optarg ;;
942
943   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944     ac_prev=dvidir ;;
945   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946     dvidir=$ac_optarg ;;
947
948   -enable-* | --enable-*)
949     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950     # Reject names that are not valid shell variable names.
951     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953    { (exit 1); exit 1; }; }
954     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955     eval enable_$ac_feature=\$ac_optarg ;;
956
957   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959   | --exec | --exe | --ex)
960     ac_prev=exec_prefix ;;
961   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963   | --exec=* | --exe=* | --ex=*)
964     exec_prefix=$ac_optarg ;;
965
966   -gas | --gas | --ga | --g)
967     # Obsolete; use --with-gas.
968     with_gas=yes ;;
969
970   -help | --help | --hel | --he | -h)
971     ac_init_help=long ;;
972   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973     ac_init_help=recursive ;;
974   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975     ac_init_help=short ;;
976
977   -host | --host | --hos | --ho)
978     ac_prev=host_alias ;;
979   -host=* | --host=* | --hos=* | --ho=*)
980     host_alias=$ac_optarg ;;
981
982   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983     ac_prev=htmldir ;;
984   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985   | --ht=*)
986     htmldir=$ac_optarg ;;
987
988   -includedir | --includedir | --includedi | --included | --include \
989   | --includ | --inclu | --incl | --inc)
990     ac_prev=includedir ;;
991   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992   | --includ=* | --inclu=* | --incl=* | --inc=*)
993     includedir=$ac_optarg ;;
994
995   -infodir | --infodir | --infodi | --infod | --info | --inf)
996     ac_prev=infodir ;;
997   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998     infodir=$ac_optarg ;;
999
1000   -libdir | --libdir | --libdi | --libd)
1001     ac_prev=libdir ;;
1002   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003     libdir=$ac_optarg ;;
1004
1005   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006   | --libexe | --libex | --libe)
1007     ac_prev=libexecdir ;;
1008   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009   | --libexe=* | --libex=* | --libe=*)
1010     libexecdir=$ac_optarg ;;
1011
1012   -localedir | --localedir | --localedi | --localed | --locale)
1013     ac_prev=localedir ;;
1014   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015     localedir=$ac_optarg ;;
1016
1017   -localstatedir | --localstatedir | --localstatedi | --localstated \
1018   | --localstate | --localstat | --localsta | --localst | --locals)
1019     ac_prev=localstatedir ;;
1020   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022     localstatedir=$ac_optarg ;;
1023
1024   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025     ac_prev=mandir ;;
1026   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027     mandir=$ac_optarg ;;
1028
1029   -nfp | --nfp | --nf)
1030     # Obsolete; use --without-fp.
1031     with_fp=no ;;
1032
1033   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034   | --no-cr | --no-c | -n)
1035     no_create=yes ;;
1036
1037   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039     no_recursion=yes ;;
1040
1041   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043   | --oldin | --oldi | --old | --ol | --o)
1044     ac_prev=oldincludedir ;;
1045   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048     oldincludedir=$ac_optarg ;;
1049
1050   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051     ac_prev=prefix ;;
1052   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053     prefix=$ac_optarg ;;
1054
1055   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056   | --program-pre | --program-pr | --program-p)
1057     ac_prev=program_prefix ;;
1058   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060     program_prefix=$ac_optarg ;;
1061
1062   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063   | --program-suf | --program-su | --program-s)
1064     ac_prev=program_suffix ;;
1065   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067     program_suffix=$ac_optarg ;;
1068
1069   -program-transform-name | --program-transform-name \
1070   | --program-transform-nam | --program-transform-na \
1071   | --program-transform-n | --program-transform- \
1072   | --program-transform | --program-transfor \
1073   | --program-transfo | --program-transf \
1074   | --program-trans | --program-tran \
1075   | --progr-tra | --program-tr | --program-t)
1076     ac_prev=program_transform_name ;;
1077   -program-transform-name=* | --program-transform-name=* \
1078   | --program-transform-nam=* | --program-transform-na=* \
1079   | --program-transform-n=* | --program-transform-=* \
1080   | --program-transform=* | --program-transfor=* \
1081   | --program-transfo=* | --program-transf=* \
1082   | --program-trans=* | --program-tran=* \
1083   | --progr-tra=* | --program-tr=* | --program-t=*)
1084     program_transform_name=$ac_optarg ;;
1085
1086   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087     ac_prev=pdfdir ;;
1088   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089     pdfdir=$ac_optarg ;;
1090
1091   -psdir | --psdir | --psdi | --psd | --ps)
1092     ac_prev=psdir ;;
1093   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094     psdir=$ac_optarg ;;
1095
1096   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097   | -silent | --silent | --silen | --sile | --sil)
1098     silent=yes ;;
1099
1100   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101     ac_prev=sbindir ;;
1102   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103   | --sbi=* | --sb=*)
1104     sbindir=$ac_optarg ;;
1105
1106   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108   | --sharedst | --shareds | --shared | --share | --shar \
1109   | --sha | --sh)
1110     ac_prev=sharedstatedir ;;
1111   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114   | --sha=* | --sh=*)
1115     sharedstatedir=$ac_optarg ;;
1116
1117   -site | --site | --sit)
1118     ac_prev=site ;;
1119   -site=* | --site=* | --sit=*)
1120     site=$ac_optarg ;;
1121
1122   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123     ac_prev=srcdir ;;
1124   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125     srcdir=$ac_optarg ;;
1126
1127   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128   | --syscon | --sysco | --sysc | --sys | --sy)
1129     ac_prev=sysconfdir ;;
1130   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132     sysconfdir=$ac_optarg ;;
1133
1134   -target | --target | --targe | --targ | --tar | --ta | --t)
1135     ac_prev=target_alias ;;
1136   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137     target_alias=$ac_optarg ;;
1138
1139   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140     verbose=yes ;;
1141
1142   -version | --version | --versio | --versi | --vers | -V)
1143     ac_init_version=: ;;
1144
1145   -with-* | --with-*)
1146     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149       { echo "$as_me: error: invalid package name: $ac_package" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_package=`echo $ac_package| sed 's/-/_/g'`
1152     eval with_$ac_package=\$ac_optarg ;;
1153
1154   -without-* | --without-*)
1155     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158       { echo "$as_me: error: invalid package name: $ac_package" >&2
1159    { (exit 1); exit 1; }; }
1160     ac_package=`echo $ac_package | sed 's/-/_/g'`
1161     eval with_$ac_package=no ;;
1162
1163   --x)
1164     # Obsolete; use --with-x.
1165     with_x=yes ;;
1166
1167   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168   | --x-incl | --x-inc | --x-in | --x-i)
1169     ac_prev=x_includes ;;
1170   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172     x_includes=$ac_optarg ;;
1173
1174   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176     ac_prev=x_libraries ;;
1177   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179     x_libraries=$ac_optarg ;;
1180
1181   -*) { echo "$as_me: error: unrecognized option: $ac_option
1182 Try \`$0 --help' for more information." >&2
1183    { (exit 1); exit 1; }; }
1184     ;;
1185
1186   *=*)
1187     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191    { (exit 1); exit 1; }; }
1192     eval $ac_envvar=\$ac_optarg
1193     export $ac_envvar ;;
1194
1195   *)
1196     # FIXME: should be removed in autoconf 3.0.
1197     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201     ;;
1202
1203   esac
1204 done
1205
1206 if test -n "$ac_prev"; then
1207   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208   { echo "$as_me: error: missing argument to $ac_option" >&2
1209    { (exit 1); exit 1; }; }
1210 fi
1211
1212 # Be sure to have absolute directory names.
1213 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214                 datadir sysconfdir sharedstatedir localstatedir includedir \
1215                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216                 libdir localedir mandir
1217 do
1218   eval ac_val=\$$ac_var
1219   case $ac_val in
1220     [\\/$]* | ?:[\\/]* )  continue;;
1221     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222   esac
1223   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224    { (exit 1); exit 1; }; }
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236   if test "x$build_alias" = x; then
1237     cross_compiling=maybe
1238     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239     If a cross compiler is detected then cross compile mode will be used." >&2
1240   elif test "x$build_alias" != "x$host_alias"; then
1241     cross_compiling=yes
1242   fi
1243 fi
1244
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248 test "$silent" = yes && exec 6>/dev/null
1249
1250
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254   { echo "$as_me: error: Working directory cannot be determined" >&2
1255    { (exit 1); exit 1; }; }
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257   { echo "$as_me: error: pwd does not report name of working directory" >&2
1258    { (exit 1); exit 1; }; }
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263   ac_srcdir_defaulted=yes
1264   # Try the directory containing this script, then the parent directory.
1265   ac_confdir=`$as_dirname -- "$0" ||
1266 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267          X"$0" : 'X\(//\)[^/]' \| \
1268          X"$0" : 'X\(//\)$' \| \
1269          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1270 echo X"$0" |
1271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)[^/].*/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\).*/{
1284             s//\1/
1285             q
1286           }
1287           s/.*/./; q'`
1288   srcdir=$ac_confdir
1289   if test ! -r "$srcdir/$ac_unique_file"; then
1290     srcdir=..
1291   fi
1292 else
1293   ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298    { (exit 1); exit 1; }; }
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303    { (exit 1); exit 1; }; }
1304         pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307   srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317   eval ac_env_${ac_var}_value=\$${ac_var}
1318   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1321
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326   # Omit some internal or obsolete options to make the list less imposing.
1327   # This message is too long to be a string in the A/UX 3.1 sh.
1328   cat <<_ACEOF
1329 \`configure' configures LLVM 3.5.0svn to adapt to many kinds of systems.
1330
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE.  See below for descriptions of some of the useful variables.
1335
1336 Defaults for the options are specified in brackets.
1337
1338 Configuration:
1339   -h, --help              display this help and exit
1340       --help=short        display options specific to this package
1341       --help=recursive    display the short help of all the included packages
1342   -V, --version           display version information and exit
1343   -q, --quiet, --silent   do not print \`checking...' messages
1344       --cache-file=FILE   cache test results in FILE [disabled]
1345   -C, --config-cache      alias for \`--cache-file=config.cache'
1346   -n, --no-create         do not create output files
1347       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1348
1349 Installation directories:
1350   --prefix=PREFIX         install architecture-independent files in PREFIX
1351                           [$ac_default_prefix]
1352   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1353                           [PREFIX]
1354
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1359
1360 For better control, use the options below.
1361
1362 Fine tuning of the installation directories:
1363   --bindir=DIR           user executables [EPREFIX/bin]
1364   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1365   --libexecdir=DIR       program executables [EPREFIX/libexec]
1366   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1367   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1368   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1369   --libdir=DIR           object code libraries [EPREFIX/lib]
1370   --includedir=DIR       C header files [PREFIX/include]
1371   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1372   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1373   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1374   --infodir=DIR          info documentation [DATAROOTDIR/info]
1375   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1376   --mandir=DIR           man documentation [DATAROOTDIR/man]
1377   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1378   --htmldir=DIR          html documentation [DOCDIR]
1379   --dvidir=DIR           dvi documentation [DOCDIR]
1380   --pdfdir=DIR           pdf documentation [DOCDIR]
1381   --psdir=DIR            ps documentation [DOCDIR]
1382 _ACEOF
1383
1384   cat <<\_ACEOF
1385
1386 System types:
1387   --build=BUILD     configure for building on BUILD [guessed]
1388   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389   --target=TARGET   configure for building compilers for TARGET [HOST]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394   case $ac_init_help in
1395      short | recursive ) echo "Configuration of LLVM 3.5.0svn:";;
1396    esac
1397   cat <<\_ACEOF
1398
1399 Optional Features:
1400   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1401   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1402   --enable-polly          Use polly if available (default is YES)
1403   --enable-libcpp         Use libc++ if available (default is NO)
1404   --enable-compiler-version-checks
1405                           Check the version of the host compiler (default is
1406                           YES)
1407   --enable-cxx1y          Use c++1y if available (default is NO)
1408   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1409   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1410   --enable-clang-plugin-support
1411                           Enable plugin support in clang (default is YES)
1412   --enable-clang-static-analyzer
1413                           Enable building of clang Static Analyzer (default is
1414                           YES)
1415   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416   --enable-optimized      Compile with optimizations enabled (default is NO)
1417   --enable-profiling      Compile with profiling enabled (default is NO)
1418   --enable-assertions     Compile with assertion checks enabled (default is
1419                           YES)
1420   --enable-werror         Compile with -Werror enabled (default is NO)
1421   --enable-expensive-checks
1422                           Compile with expensive debug checks enabled (default
1423                           is NO)
1424   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1425                           NO)
1426   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1427                           optimization is on and YES if it's off)
1428   --enable-keep-symbols   Do not strip installed executables)
1429   --enable-jit            Enable Just In Time Compiling (default is YES)
1430   --enable-docs           Build documents (default is YES)
1431   --enable-doxygen        Build doxygen documentation (default is NO)
1432   --enable-threads        Use threads if available (default is YES)
1433   --enable-pthreads       Use pthreads if available (default is YES)
1434   --enable-zlib           Use zlib for compression/decompression if available
1435                           (default is YES)
1436   --enable-pic            Build LLVM with Position Independent Code (default
1437                           is YES)
1438   --enable-shared         Build a shared library and link tools against it
1439                           (default is NO)
1440   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1441                           Win32 DLL (default is NO)
1442   --enable-timestamps     Enable embedding timestamp information in build
1443                           (default is YES)
1444   --enable-backtraces     Enable embedding backtraces on crash (default is
1445                           YES)
1446   --enable-crash-overrides
1447                           Enable crash handling overrides (default is YES)
1448   --enable-targets        Build specific host targets: all or
1449                           target1,target2,... Valid targets are: host, x86,
1450                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1451                           xcore, msp430, nvptx, systemz, r600, and cpp
1452                           (default=all)
1453   --enable-experimental-targets
1454                           Build experimental host targets: disable or
1455                           target1,target2,... (default=disable)
1456   --enable-bindings       Build specific language bindings:
1457                           all,auto,none,{binding-name} (default=auto)
1458   --enable-terminfo       Query the terminfo database if available (default is
1459                           YES)
1460   --enable-libedit        Use libedit if available (default is YES)
1461   --enable-libffi         Check for the presence of libffi (default is NO)
1462
1463 Optional Packages:
1464   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1465   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1466   --with-optimize-option  Select the compiler options to use for optimized
1467                           builds
1468   --with-extra-options    Specify additional options to compile LLVM with
1469   --with-extra-ld-options Specify additional options to link LLVM with
1470   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1471                           is stdlib)
1472   --with-clang-srcdir     Directory to the out-of-tree Clang source
1473   --with-clang-resource-dir
1474                           Relative directory from the Clang binary for
1475                           resource files
1476   --with-c-include-dirs   Colon separated list of directories clang will
1477                           search for headers
1478   --with-gcc-toolchain    Directory where gcc is installed.
1479   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1480   --with-binutils-include Specify path to binutils/include/ containing
1481                           plugin-api.h file for gold plugin.
1482   --with-bug-report-url   Specify the URL where bug reports should be
1483                           submitted (default=http://llvm.org/bugs/)
1484   --with-internal-prefix  Installation directory for internal files
1485   --with-python           path to python
1486   --with-udis86=<path>    Use udis86 external x86 disassembler library
1487   --with-oprofile=<prefix>
1488                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1489   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1490
1491
1492 Some influential environment variables:
1493   CC          C compiler command
1494   CFLAGS      C compiler flags
1495   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496               nonstandard directory <lib dir>
1497   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498               you have headers in a nonstandard directory <include dir>
1499   CXX         C++ compiler command
1500   CXXFLAGS    C++ compiler flags
1501   CPP         C preprocessor
1502   CXXCPP      C++ preprocessor
1503
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1506
1507 Report bugs to <http://llvm.org/bugs/>.
1508 _ACEOF
1509 ac_status=$?
1510 fi
1511
1512 if test "$ac_init_help" = "recursive"; then
1513   # If there are subdirs, report their specific --help.
1514   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515     test -d "$ac_dir" || continue
1516     ac_builddir=.
1517
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *)
1521   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1522   # A ".." for each directory in $ac_dir_suffix.
1523   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1524   case $ac_top_builddir_sub in
1525   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527   esac ;;
1528 esac
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1533
1534 case $srcdir in
1535   .)  # We are building in place.
1536     ac_srcdir=.
1537     ac_top_srcdir=$ac_top_builddir_sub
1538     ac_abs_top_srcdir=$ac_pwd ;;
1539   [\\/]* | ?:[\\/]* )  # Absolute name.
1540     ac_srcdir=$srcdir$ac_dir_suffix;
1541     ac_top_srcdir=$srcdir
1542     ac_abs_top_srcdir=$srcdir ;;
1543   *) # Relative name.
1544     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545     ac_top_srcdir=$ac_top_build_prefix$srcdir
1546     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 esac
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550     cd "$ac_dir" || { ac_status=$?; continue; }
1551     # Check for guested configure.
1552     if test -f "$ac_srcdir/configure.gnu"; then
1553       echo &&
1554       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555     elif test -f "$ac_srcdir/configure"; then
1556       echo &&
1557       $SHELL "$ac_srcdir/configure" --help=recursive
1558     else
1559       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560     fi || ac_status=$?
1561     cd "$ac_pwd" || { ac_status=$?; break; }
1562   done
1563 fi
1564
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567   cat <<\_ACEOF
1568 LLVM configure 3.5.0svn
1569 generated by GNU Autoconf 2.60
1570
1571 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1572 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575
1576 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1577 _ACEOF
1578   exit
1579 fi
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1583
1584 It was created by LLVM $as_me 3.5.0svn, which was
1585 generated by GNU Autoconf 2.60.  Invocation command line was
1586
1587   $ $0 $@
1588
1589 _ACEOF
1590 exec 5>>config.log
1591 {
1592 cat <<_ASUNAME
1593 ## --------- ##
1594 ## Platform. ##
1595 ## --------- ##
1596
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1605
1606 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1607 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1610 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1611 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1612 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1613
1614 _ASUNAME
1615
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619   IFS=$as_save_IFS
1620   test -z "$as_dir" && as_dir=.
1621   echo "PATH: $as_dir"
1622 done
1623 IFS=$as_save_IFS
1624
1625 } >&5
1626
1627 cat >&5 <<_ACEOF
1628
1629
1630 ## ----------- ##
1631 ## Core tests. ##
1632 ## ----------- ##
1633
1634 _ACEOF
1635
1636
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1642 ac_configure_args=
1643 ac_configure_args0=
1644 ac_configure_args1=
1645 ac_must_keep_next=false
1646 for ac_pass in 1 2
1647 do
1648   for ac_arg
1649   do
1650     case $ac_arg in
1651     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653     | -silent | --silent | --silen | --sile | --sil)
1654       continue ;;
1655     *\'*)
1656       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657     esac
1658     case $ac_pass in
1659     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660     2)
1661       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662       if test $ac_must_keep_next = true; then
1663         ac_must_keep_next=false # Got value, back to normal.
1664       else
1665         case $ac_arg in
1666           *=* | --config-cache | -C | -disable-* | --disable-* \
1667           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669           | -with-* | --with-* | -without-* | --without-* | --x)
1670             case "$ac_configure_args0 " in
1671               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672             esac
1673             ;;
1674           -* ) ac_must_keep_next=true ;;
1675         esac
1676       fi
1677       ac_configure_args="$ac_configure_args '$ac_arg'"
1678       ;;
1679     esac
1680   done
1681 done
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log.  We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691   # Save into config.log some information that might help in debugging.
1692   {
1693     echo
1694
1695     cat <<\_ASBOX
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1699 _ASBOX
1700     echo
1701     # The following way of writing the cache mishandles newlines in values,
1702 (
1703   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704     eval ac_val=\$$ac_var
1705     case $ac_val in #(
1706     *${as_nl}*)
1707       case $ac_var in #(
1708       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710       esac
1711       case $ac_var in #(
1712       _ | IFS | as_nl) ;; #(
1713       *) $as_unset $ac_var ;;
1714       esac ;;
1715     esac
1716   done
1717   (set) 2>&1 |
1718     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719     *${as_nl}ac_space=\ *)
1720       sed -n \
1721         "s/'\''/'\''\\\\'\'''\''/g;
1722           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723       ;; #(
1724     *)
1725       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726       ;;
1727     esac |
1728     sort
1729 )
1730     echo
1731
1732     cat <<\_ASBOX
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1736 _ASBOX
1737     echo
1738     for ac_var in $ac_subst_vars
1739     do
1740       eval ac_val=\$$ac_var
1741       case $ac_val in
1742       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743       esac
1744       echo "$ac_var='\''$ac_val'\''"
1745     done | sort
1746     echo
1747
1748     if test -n "$ac_subst_files"; then
1749       cat <<\_ASBOX
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1753 _ASBOX
1754       echo
1755       for ac_var in $ac_subst_files
1756       do
1757         eval ac_val=\$$ac_var
1758         case $ac_val in
1759         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760         esac
1761         echo "$ac_var='\''$ac_val'\''"
1762       done | sort
1763       echo
1764     fi
1765
1766     if test -s confdefs.h; then
1767       cat <<\_ASBOX
1768 ## ----------- ##
1769 ## confdefs.h. ##
1770 ## ----------- ##
1771 _ASBOX
1772       echo
1773       cat confdefs.h
1774       echo
1775     fi
1776     test "$ac_signal" != 0 &&
1777       echo "$as_me: caught signal $ac_signal"
1778     echo "$as_me: exit $exit_status"
1779   } >&5
1780   rm -f core *.core core.conftest.* &&
1781     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782     exit $exit_status
1783 ' 0
1784 for ac_signal in 1 2 13 15; do
1785   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786 done
1787 ac_signal=0
1788
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1791
1792 # Predefined preprocessor variables.
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816 _ACEOF
1817
1818
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822   set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825 else
1826   set x "$ac_default_prefix/share/config.site" \
1827         "$ac_default_prefix/etc/config.site"
1828 fi
1829 shift
1830 for ac_site_file
1831 do
1832   if test -r "$ac_site_file"; then
1833     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835     sed 's/^/| /' "$ac_site_file" >&5
1836     . "$ac_site_file"
1837   fi
1838 done
1839
1840 if test -r "$cache_file"; then
1841   # Some versions of bash will fail to source /dev/null (special
1842   # files actually), so we avoid doing that.
1843   if test -f "$cache_file"; then
1844     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1846     case $cache_file in
1847       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848       *)                      . "./$cache_file";;
1849     esac
1850   fi
1851 else
1852   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1854   >$cache_file
1855 fi
1856
1857 # Check that the precious variables saved in the cache have kept the same
1858 # value.
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862   eval ac_new_set=\$ac_env_${ac_var}_set
1863   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864   eval ac_new_val=\$ac_env_${ac_var}_value
1865   case $ac_old_set,$ac_new_set in
1866     set,)
1867       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869       ac_cache_corrupted=: ;;
1870     ,set)
1871       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873       ac_cache_corrupted=: ;;
1874     ,);;
1875     *)
1876       if test "x$ac_old_val" != "x$ac_new_val"; then
1877         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1880 echo "$as_me:   former value:  $ac_old_val" >&2;}
1881         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1882 echo "$as_me:   current value: $ac_new_val" >&2;}
1883         ac_cache_corrupted=:
1884       fi;;
1885   esac
1886   # Pass precious variables to config.status.
1887   if test "$ac_new_set" = set; then
1888     case $ac_new_val in
1889     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890     *) ac_arg=$ac_var=$ac_new_val ;;
1891     esac
1892     case " $ac_configure_args " in
1893       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1894       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895     esac
1896   fi
1897 done
1898 if $ac_cache_corrupted; then
1899   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903    { (exit 1); exit 1; }; }
1904 fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937
1938 LLVM_VERSION_MAJOR=3
1939 LLVM_VERSION_MINOR=5
1940 LLVM_VERSION_PATCH=0
1941 LLVM_VERSION_SUFFIX=svn
1942
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1946 _ACEOF
1947
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1951 _ACEOF
1952
1953
1954 cat >>confdefs.h <<_ACEOF
1955 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1956 _ACEOF
1957
1958
1959
1960
1961
1962
1963
1964 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1965
1966
1967
1968
1969
1970
1971
1972 ac_aux_dir=
1973 for ac_dir in autoconf "$srcdir"/autoconf; do
1974   if test -f "$ac_dir/install-sh"; then
1975     ac_aux_dir=$ac_dir
1976     ac_install_sh="$ac_aux_dir/install-sh -c"
1977     break
1978   elif test -f "$ac_dir/install.sh"; then
1979     ac_aux_dir=$ac_dir
1980     ac_install_sh="$ac_aux_dir/install.sh -c"
1981     break
1982   elif test -f "$ac_dir/shtool"; then
1983     ac_aux_dir=$ac_dir
1984     ac_install_sh="$ac_aux_dir/shtool install -c"
1985     break
1986   fi
1987 done
1988 if test -z "$ac_aux_dir"; then
1989   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1990 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1991    { (exit 1); exit 1; }; }
1992 fi
1993
1994 # These three variables are undocumented and unsupported,
1995 # and are intended to be withdrawn in a future Autoconf release.
1996 # They can cause serious problems if a builder's source tree is in a directory
1997 # whose full name contains unusual characters.
1998 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1999 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2000 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2001
2002
2003
2004 if test ${srcdir} != "." ; then
2005   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2006     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2007 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2008    { (exit 1); exit 1; }; }
2009   fi
2010 fi
2011
2012 : ${CFLAGS=}
2013 : ${CXXFLAGS=}
2014
2015 ac_ext=c
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020 if test -n "$ac_tool_prefix"; then
2021   for ac_prog in clang gcc
2022   do
2023     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   if test -n "$CC"; then
2031   ac_cv_prog_CC="$CC" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036   IFS=$as_save_IFS
2037   test -z "$as_dir" && as_dir=.
2038   for ac_exec_ext in '' $ac_executable_extensions; do
2039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2040     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042     break 2
2043   fi
2044 done
2045 done
2046 IFS=$as_save_IFS
2047
2048 fi
2049 fi
2050 CC=$ac_cv_prog_CC
2051 if test -n "$CC"; then
2052   { echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6; }
2054 else
2055   { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2057 fi
2058
2059
2060     test -n "$CC" && break
2061   done
2062 fi
2063 if test -z "$CC"; then
2064   ac_ct_CC=$CC
2065   for ac_prog in clang gcc
2066 do
2067   # Extract the first word of "$ac_prog", so it can be a program name with args.
2068 set dummy $ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test -n "$ac_ct_CC"; then
2075   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   for ac_exec_ext in '' $ac_executable_extensions; do
2083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2084     ac_cv_prog_ac_ct_CC="$ac_prog"
2085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086     break 2
2087   fi
2088 done
2089 done
2090 IFS=$as_save_IFS
2091
2092 fi
2093 fi
2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095 if test -n "$ac_ct_CC"; then
2096   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097 echo "${ECHO_T}$ac_ct_CC" >&6; }
2098 else
2099   { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2101 fi
2102
2103
2104   test -n "$ac_ct_CC" && break
2105 done
2106
2107   if test "x$ac_ct_CC" = x; then
2108     CC=""
2109   else
2110     case $cross_compiling:$ac_tool_warned in
2111 yes:)
2112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2113 whose name does not start with the host triplet.  If you think this
2114 configuration is useful to you, please write to autoconf@gnu.org." >&5
2115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2116 whose name does not start with the host triplet.  If you think this
2117 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2118 ac_tool_warned=yes ;;
2119 esac
2120     CC=$ac_ct_CC
2121   fi
2122 fi
2123
2124
2125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: no acceptable C compiler found in \$PATH
2128 See \`config.log' for more details." >&2;}
2129    { (exit 1); exit 1; }; }
2130
2131 # Provide some information about the compiler.
2132 echo "$as_me:$LINENO: checking for C compiler version" >&5
2133 ac_compiler=`set X $ac_compile; echo $2`
2134 { (ac_try="$ac_compiler --version >&5"
2135 case "(($ac_try" in
2136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137   *) ac_try_echo=$ac_try;;
2138 esac
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140   (eval "$ac_compiler --version >&5") 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }
2144 { (ac_try="$ac_compiler -v >&5"
2145 case "(($ac_try" in
2146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147   *) ac_try_echo=$ac_try;;
2148 esac
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150   (eval "$ac_compiler -v >&5") 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }
2154 { (ac_try="$ac_compiler -V >&5"
2155 case "(($ac_try" in
2156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157   *) ac_try_echo=$ac_try;;
2158 esac
2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160   (eval "$ac_compiler -V >&5") 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }
2164
2165 cat >conftest.$ac_ext <<_ACEOF
2166 /* confdefs.h.  */
2167 _ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h.  */
2171
2172 int
2173 main ()
2174 {
2175
2176   ;
2177   return 0;
2178 }
2179 _ACEOF
2180 ac_clean_files_save=$ac_clean_files
2181 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182 # Try to create an executable without -o first, disregard a.out.
2183 # It will help us diagnose broken compilers, and finding out an intuition
2184 # of exeext.
2185 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2187 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188 #
2189 # List of possible output files, starting from the most likely.
2190 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2191 # only as a last resort.  b.out is created by i960 compilers.
2192 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2193 #
2194 # The IRIX 6 linker writes into existing files which may not be
2195 # executable, retaining their permissions.  Remove them first so a
2196 # subsequent execution test works.
2197 ac_rmfiles=
2198 for ac_file in $ac_files
2199 do
2200   case $ac_file in
2201     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2202     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2203   esac
2204 done
2205 rm -f $ac_rmfiles
2206
2207 if { (ac_try="$ac_link_default"
2208 case "(($ac_try" in
2209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210   *) ac_try_echo=$ac_try;;
2211 esac
2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213   (eval "$ac_link_default") 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; then
2217   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2218 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2219 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2220 # so that the user can short-circuit this test for compilers unknown to
2221 # Autoconf.
2222 for ac_file in $ac_files
2223 do
2224   test -f "$ac_file" || continue
2225   case $ac_file in
2226     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2227         ;;
2228     [ab].out )
2229         # We found the default executable, but exeext='' is most
2230         # certainly right.
2231         break;;
2232     *.* )
2233         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2234         then :; else
2235            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2236         fi
2237         # We set ac_cv_exeext here because the later test for it is not
2238         # safe: cross compilers may not add the suffix if given an `-o'
2239         # argument, so we may need to know it at that point already.
2240         # Even if this section looks crufty: it has the advantage of
2241         # actually working.
2242         break;;
2243     * )
2244         break;;
2245   esac
2246 done
2247 test "$ac_cv_exeext" = no && ac_cv_exeext=
2248
2249 else
2250   echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2252
2253 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: C compiler cannot create executables
2256 See \`config.log' for more details." >&2;}
2257    { (exit 77); exit 77; }; }
2258 fi
2259
2260 ac_exeext=$ac_cv_exeext
2261 { echo "$as_me:$LINENO: result: $ac_file" >&5
2262 echo "${ECHO_T}$ac_file" >&6; }
2263
2264 # Check that the compiler produces executables we can run.  If not, either
2265 # the compiler is broken, or we cross compile.
2266 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2267 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2268 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269 # If not cross compiling, check that we can run a simple program.
2270 if test "$cross_compiling" != yes; then
2271   if { ac_try='./$ac_file'
2272   { (case "(($ac_try" in
2273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274   *) ac_try_echo=$ac_try;;
2275 esac
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277   (eval "$ac_try") 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; }; then
2281     cross_compiling=no
2282   else
2283     if test "$cross_compiling" = maybe; then
2284         cross_compiling=yes
2285     else
2286         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2287 If you meant to cross compile, use \`--host'.
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: cannot run C compiled programs.
2290 If you meant to cross compile, use \`--host'.
2291 See \`config.log' for more details." >&2;}
2292    { (exit 1); exit 1; }; }
2293     fi
2294   fi
2295 fi
2296 { echo "$as_me:$LINENO: result: yes" >&5
2297 echo "${ECHO_T}yes" >&6; }
2298
2299 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2300 ac_clean_files=$ac_clean_files_save
2301 # Check that the compiler produces executables we can run.  If not, either
2302 # the compiler is broken, or we cross compile.
2303 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2304 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2305 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2306 echo "${ECHO_T}$cross_compiling" >&6; }
2307
2308 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2309 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2310 if { (ac_try="$ac_link"
2311 case "(($ac_try" in
2312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313   *) ac_try_echo=$ac_try;;
2314 esac
2315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2316   (eval "$ac_link") 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; then
2320   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2322 # work properly (i.e., refer to `conftest.exe'), while it won't with
2323 # `rm'.
2324 for ac_file in conftest.exe conftest conftest.*; do
2325   test -f "$ac_file" || continue
2326   case $ac_file in
2327     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2328     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329           break;;
2330     * ) break;;
2331   esac
2332 done
2333 else
2334   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2337 See \`config.log' for more details." >&2;}
2338    { (exit 1); exit 1; }; }
2339 fi
2340
2341 rm -f conftest$ac_cv_exeext
2342 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2343 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2344
2345 rm -f conftest.$ac_ext
2346 EXEEXT=$ac_cv_exeext
2347 ac_exeext=$EXEEXT
2348 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2349 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2350 if test "${ac_cv_objext+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h.  */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h.  */
2359
2360 int
2361 main ()
2362 {
2363
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 rm -f conftest.o conftest.obj
2369 if { (ac_try="$ac_compile"
2370 case "(($ac_try" in
2371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372   *) ac_try_echo=$ac_try;;
2373 esac
2374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375   (eval "$ac_compile") 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }; then
2379   for ac_file in conftest.o conftest.obj conftest.*; do
2380   test -f "$ac_file" || continue;
2381   case $ac_file in
2382     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2383     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2384        break;;
2385   esac
2386 done
2387 else
2388   echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&5
2393 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2394 See \`config.log' for more details." >&2;}
2395    { (exit 1); exit 1; }; }
2396 fi
2397
2398 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2399 fi
2400 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2401 echo "${ECHO_T}$ac_cv_objext" >&6; }
2402 OBJEXT=$ac_cv_objext
2403 ac_objext=$OBJEXT
2404 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2405 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2406 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2407   echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409   cat >conftest.$ac_ext <<_ACEOF
2410 /* confdefs.h.  */
2411 _ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h.  */
2415
2416 int
2417 main ()
2418 {
2419 #ifndef __GNUC__
2420        choke me
2421 #endif
2422
2423   ;
2424   return 0;
2425 }
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (ac_try="$ac_compile"
2429 case "(($ac_try" in
2430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431   *) ac_try_echo=$ac_try;;
2432 esac
2433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434   (eval "$ac_compile") 2>conftest.er1
2435   ac_status=$?
2436   grep -v '^ *+' conftest.er1 >conftest.err
2437   rm -f conftest.er1
2438   cat conftest.err >&5
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); } &&
2441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2442   { (case "(($ac_try" in
2443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444   *) ac_try_echo=$ac_try;;
2445 esac
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447   (eval "$ac_try") 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; } &&
2451          { ac_try='test -s conftest.$ac_objext'
2452   { (case "(($ac_try" in
2453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454   *) ac_try_echo=$ac_try;;
2455 esac
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457   (eval "$ac_try") 2>&5
2458   ac_status=$?
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }; }; then
2461   ac_compiler_gnu=yes
2462 else
2463   echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2465
2466         ac_compiler_gnu=no
2467 fi
2468
2469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2471
2472 fi
2473 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2474 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2475 GCC=`test $ac_compiler_gnu = yes && echo yes`
2476 ac_test_CFLAGS=${CFLAGS+set}
2477 ac_save_CFLAGS=$CFLAGS
2478 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2479 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_cc_g+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   ac_save_c_werror_flag=$ac_c_werror_flag
2484    ac_c_werror_flag=yes
2485    ac_cv_prog_cc_g=no
2486    CFLAGS="-g"
2487    cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493
2494 int
2495 main ()
2496 {
2497
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 rm -f conftest.$ac_objext
2503 if { (ac_try="$ac_compile"
2504 case "(($ac_try" in
2505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506   *) ac_try_echo=$ac_try;;
2507 esac
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509   (eval "$ac_compile") 2>conftest.er1
2510   ac_status=$?
2511   grep -v '^ *+' conftest.er1 >conftest.err
2512   rm -f conftest.er1
2513   cat conftest.err >&5
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); } &&
2516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517   { (case "(($ac_try" in
2518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519   *) ac_try_echo=$ac_try;;
2520 esac
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522   (eval "$ac_try") 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; } &&
2526          { ac_try='test -s conftest.$ac_objext'
2527   { (case "(($ac_try" in
2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529   *) ac_try_echo=$ac_try;;
2530 esac
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532   (eval "$ac_try") 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   ac_cv_prog_cc_g=yes
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541         CFLAGS=""
2542       cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2559 case "(($ac_try" in
2560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561   *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564   (eval "$ac_compile") 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } &&
2571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572   { (case "(($ac_try" in
2573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574   *) ac_try_echo=$ac_try;;
2575 esac
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577   (eval "$ac_try") 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587   (eval "$ac_try") 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   :
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596         ac_c_werror_flag=$ac_save_c_werror_flag
2597          CFLAGS="-g"
2598          cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h.  */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h.  */
2604
2605 int
2606 main ()
2607 {
2608
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (ac_try="$ac_compile"
2615 case "(($ac_try" in
2616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617   *) ac_try_echo=$ac_try;;
2618 esac
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620   (eval "$ac_compile") 2>conftest.er1
2621   ac_status=$?
2622   grep -v '^ *+' conftest.er1 >conftest.err
2623   rm -f conftest.er1
2624   cat conftest.err >&5
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); } &&
2627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2628   { (case "(($ac_try" in
2629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630   *) ac_try_echo=$ac_try;;
2631 esac
2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633   (eval "$ac_try") 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }; } &&
2637          { ac_try='test -s conftest.$ac_objext'
2638   { (case "(($ac_try" in
2639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640   *) ac_try_echo=$ac_try;;
2641 esac
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643   (eval "$ac_try") 2>&5
2644   ac_status=$?
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); }; }; then
2647   ac_cv_prog_cc_g=yes
2648 else
2649   echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652
2653 fi
2654
2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656 fi
2657
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 fi
2660
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662    ac_c_werror_flag=$ac_save_c_werror_flag
2663 fi
2664 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2665 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2666 if test "$ac_test_CFLAGS" = set; then
2667   CFLAGS=$ac_save_CFLAGS
2668 elif test $ac_cv_prog_cc_g = yes; then
2669   if test "$GCC" = yes; then
2670     CFLAGS="-g -O2"
2671   else
2672     CFLAGS="-g"
2673   fi
2674 else
2675   if test "$GCC" = yes; then
2676     CFLAGS="-O2"
2677   else
2678     CFLAGS=
2679   fi
2680 fi
2681 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2682 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_cc_c89+set}" = set; then
2684   echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686   ac_cv_prog_cc_c89=no
2687 ac_save_CC=$CC
2688 cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h.  */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h.  */
2694 #include <stdarg.h>
2695 #include <stdio.h>
2696 #include <sys/types.h>
2697 #include <sys/stat.h>
2698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2699 struct buf { int x; };
2700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2701 static char *e (p, i)
2702      char **p;
2703      int i;
2704 {
2705   return p[i];
2706 }
2707 static char *f (char * (*g) (char **, int), char **p, ...)
2708 {
2709   char *s;
2710   va_list v;
2711   va_start (v,p);
2712   s = g (p, va_arg (v,int));
2713   va_end (v);
2714   return s;
2715 }
2716
2717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2718    function prototypes and stuff, but not '\xHH' hex character constants.
2719    These don't provoke an error unfortunately, instead are silently treated
2720    as 'x'.  The following induces an error, until -std is added to get
2721    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2722    array size at least.  It's necessary to write '\x00'==0 to get something
2723    that's true only with -std.  */
2724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2725
2726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2727    inside strings and character constants.  */
2728 #define FOO(x) 'x'
2729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2730
2731 int test (int i, double x);
2732 struct s1 {int (*f) (int a);};
2733 struct s2 {int (*f) (double a);};
2734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2735 int argc;
2736 char **argv;
2737 int
2738 main ()
2739 {
2740 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2741   ;
2742   return 0;
2743 }
2744 _ACEOF
2745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2746         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2747 do
2748   CC="$ac_save_CC $ac_arg"
2749   rm -f conftest.$ac_objext
2750 if { (ac_try="$ac_compile"
2751 case "(($ac_try" in
2752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753   *) ac_try_echo=$ac_try;;
2754 esac
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756   (eval "$ac_compile") 2>conftest.er1
2757   ac_status=$?
2758   grep -v '^ *+' conftest.er1 >conftest.err
2759   rm -f conftest.er1
2760   cat conftest.err >&5
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); } &&
2763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2764   { (case "(($ac_try" in
2765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766   *) ac_try_echo=$ac_try;;
2767 esac
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769   (eval "$ac_try") 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }; } &&
2773          { ac_try='test -s conftest.$ac_objext'
2774   { (case "(($ac_try" in
2775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776   *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779   (eval "$ac_try") 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; }; then
2783   ac_cv_prog_cc_c89=$ac_arg
2784 else
2785   echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788
2789 fi
2790
2791 rm -f core conftest.err conftest.$ac_objext
2792   test "x$ac_cv_prog_cc_c89" != "xno" && break
2793 done
2794 rm -f conftest.$ac_ext
2795 CC=$ac_save_CC
2796
2797 fi
2798 # AC_CACHE_VAL
2799 case "x$ac_cv_prog_cc_c89" in
2800   x)
2801     { echo "$as_me:$LINENO: result: none needed" >&5
2802 echo "${ECHO_T}none needed" >&6; } ;;
2803   xno)
2804     { echo "$as_me:$LINENO: result: unsupported" >&5
2805 echo "${ECHO_T}unsupported" >&6; } ;;
2806   *)
2807     CC="$CC $ac_cv_prog_cc_c89"
2808     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2810 esac
2811
2812
2813 ac_ext=c
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818
2819 ac_ext=cpp
2820 ac_cpp='$CXXCPP $CPPFLAGS'
2821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2824 if test -z "$CXX"; then
2825   if test -n "$CCC"; then
2826     CXX=$CCC
2827   else
2828     if test -n "$ac_tool_prefix"; then
2829   for ac_prog in clang++ g++
2830   do
2831     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835 if test "${ac_cv_prog_CXX+set}" = set; then
2836   echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838   if test -n "$CXX"; then
2839   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844   IFS=$as_save_IFS
2845   test -z "$as_dir" && as_dir=.
2846   for ac_exec_ext in '' $ac_executable_extensions; do
2847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2848     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850     break 2
2851   fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 CXX=$ac_cv_prog_CXX
2859 if test -n "$CXX"; then
2860   { echo "$as_me:$LINENO: result: $CXX" >&5
2861 echo "${ECHO_T}$CXX" >&6; }
2862 else
2863   { echo "$as_me:$LINENO: result: no" >&5
2864 echo "${ECHO_T}no" >&6; }
2865 fi
2866
2867
2868     test -n "$CXX" && break
2869   done
2870 fi
2871 if test -z "$CXX"; then
2872   ac_ct_CXX=$CXX
2873   for ac_prog in clang++ g++
2874 do
2875   # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   if test -n "$ac_ct_CXX"; then
2883   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892     ac_cv_prog_ac_ct_CXX="$ac_prog"
2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2903 if test -n "$ac_ct_CXX"; then
2904   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2905 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2906 else
2907   { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2909 fi
2910
2911
2912   test -n "$ac_ct_CXX" && break
2913 done
2914
2915   if test "x$ac_ct_CXX" = x; then
2916     CXX="g++"
2917   else
2918     case $cross_compiling:$ac_tool_warned in
2919 yes:)
2920 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2921 whose name does not start with the host triplet.  If you think this
2922 configuration is useful to you, please write to autoconf@gnu.org." >&5
2923 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2924 whose name does not start with the host triplet.  If you think this
2925 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2926 ac_tool_warned=yes ;;
2927 esac
2928     CXX=$ac_ct_CXX
2929   fi
2930 fi
2931
2932   fi
2933 fi
2934 # Provide some information about the compiler.
2935 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2936 ac_compiler=`set X $ac_compile; echo $2`
2937 { (ac_try="$ac_compiler --version >&5"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943   (eval "$ac_compiler --version >&5") 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }
2947 { (ac_try="$ac_compiler -v >&5"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compiler -v >&5") 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }
2957 { (ac_try="$ac_compiler -V >&5"
2958 case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963   (eval "$ac_compiler -V >&5") 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }
2967
2968 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2969 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2970 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2971   echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973   cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979
2980 int
2981 main ()
2982 {
2983 #ifndef __GNUC__
2984        choke me
2985 #endif
2986
2987   ;
2988   return 0;
2989 }
2990 _ACEOF
2991 rm -f conftest.$ac_objext
2992 if { (ac_try="$ac_compile"
2993 case "(($ac_try" in
2994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995   *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998   (eval "$ac_compile") 2>conftest.er1
2999   ac_status=$?
3000   grep -v '^ *+' conftest.er1 >conftest.err
3001   rm -f conftest.er1
3002   cat conftest.err >&5
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } &&
3005          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006   { (case "(($ac_try" in
3007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008   *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011   (eval "$ac_try") 2>&5
3012   ac_status=$?
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); }; } &&
3015          { ac_try='test -s conftest.$ac_objext'
3016   { (case "(($ac_try" in
3017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018   *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021   (eval "$ac_try") 2>&5
3022   ac_status=$?
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); }; }; then
3025   ac_compiler_gnu=yes
3026 else
3027   echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030         ac_compiler_gnu=no
3031 fi
3032
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3035
3036 fi
3037 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3038 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3039 GXX=`test $ac_compiler_gnu = yes && echo yes`
3040 ac_test_CXXFLAGS=${CXXFLAGS+set}
3041 ac_save_CXXFLAGS=$CXXFLAGS
3042 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3043 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3044 if test "${ac_cv_prog_cxx_g+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3048    ac_cxx_werror_flag=yes
3049    ac_cv_prog_cxx_g=no
3050    CXXFLAGS="-g"
3051    cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h.  */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h.  */
3057
3058 int
3059 main ()
3060 {
3061
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3068 case "(($ac_try" in
3069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070   *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073   (eval "$ac_compile") 2>conftest.er1
3074   ac_status=$?
3075   grep -v '^ *+' conftest.er1 >conftest.err
3076   rm -f conftest.er1
3077   cat conftest.err >&5
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } &&
3080          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3081   { (case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_try") 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }; } &&
3090          { ac_try='test -s conftest.$ac_objext'
3091   { (case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_try") 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; }; then
3100   ac_cv_prog_cxx_g=yes
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105         CXXFLAGS=""
3106       cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h.  */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h.  */
3112
3113 int
3114 main ()
3115 {
3116
3117   ;
3118   return 0;
3119 }
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3123 case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_compile") 2>conftest.er1
3129   ac_status=$?
3130   grep -v '^ *+' conftest.er1 >conftest.err
3131   rm -f conftest.er1
3132   cat conftest.err >&5
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } &&
3135          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136   { (case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_try") 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; } &&
3145          { ac_try='test -s conftest.$ac_objext'
3146   { (case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_try") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; }; then
3155   :
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3161          CXXFLAGS="-g"
3162          cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168
3169 int
3170 main ()
3171 {
3172
3173   ;
3174   return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3179 case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184   (eval "$ac_compile") 2>conftest.er1
3185   ac_status=$?
3186   grep -v '^ *+' conftest.er1 >conftest.err
3187   rm -f conftest.er1
3188   cat conftest.err >&5
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); } &&
3191          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3192   { (case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_try") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; } &&
3201          { ac_try='test -s conftest.$ac_objext'
3202   { (case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207   (eval "$ac_try") 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }; }; then
3211   ac_cv_prog_cxx_g=yes
3212 else
3213   echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216
3217 fi
3218
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 fi
3221
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 fi
3224
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3227 fi
3228 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3229 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3230 if test "$ac_test_CXXFLAGS" = set; then
3231   CXXFLAGS=$ac_save_CXXFLAGS
3232 elif test $ac_cv_prog_cxx_g = yes; then
3233   if test "$GXX" = yes; then
3234     CXXFLAGS="-g -O2"
3235   else
3236     CXXFLAGS="-g"
3237   fi
3238 else
3239   if test "$GXX" = yes; then
3240     CXXFLAGS="-O2"
3241   else
3242     CXXFLAGS=
3243   fi
3244 fi
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251 ac_ext=c
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3257 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3258 # On Suns, sometimes $CPP names a directory.
3259 if test -n "$CPP" && test -d "$CPP"; then
3260   CPP=
3261 fi
3262 if test -z "$CPP"; then
3263   if test "${ac_cv_prog_CPP+set}" = set; then
3264   echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266       # Double quotes because CPP needs to be expanded
3267     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3268     do
3269       ac_preproc_ok=false
3270 for ac_c_preproc_warn_flag in '' yes
3271 do
3272   # Use a header file that comes with gcc, so configuring glibc
3273   # with a fresh cross-compiler works.
3274   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3275   # <limits.h> exists even on freestanding compilers.
3276   # On the NeXT, cc -E runs the code through the compiler's parser,
3277   # not just through cpp. "Syntax error" is here to catch this case.
3278   cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #ifdef __STDC__
3285 # include <limits.h>
3286 #else
3287 # include <assert.h>
3288 #endif
3289                      Syntax error
3290 _ACEOF
3291 if { (ac_try="$ac_cpp conftest.$ac_ext"
3292 case "(($ac_try" in
3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294   *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298   ac_status=$?
3299   grep -v '^ *+' conftest.er1 >conftest.err
3300   rm -f conftest.er1
3301   cat conftest.err >&5
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); } >/dev/null; then
3304   if test -s conftest.err; then
3305     ac_cpp_err=$ac_c_preproc_warn_flag
3306     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3307   else
3308     ac_cpp_err=
3309   fi
3310 else
3311   ac_cpp_err=yes
3312 fi
3313 if test -z "$ac_cpp_err"; then
3314   :
3315 else
3316   echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319   # Broken: fails on valid input.
3320 continue
3321 fi
3322
3323 rm -f conftest.err conftest.$ac_ext
3324
3325   # OK, works on sane cases.  Now check whether nonexistent headers
3326   # can be detected and how.
3327   cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333 #include <ac_nonexistent.h>
3334 _ACEOF
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3342   ac_status=$?
3343   grep -v '^ *+' conftest.er1 >conftest.err
3344   rm -f conftest.er1
3345   cat conftest.err >&5
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } >/dev/null; then
3348   if test -s conftest.err; then
3349     ac_cpp_err=$ac_c_preproc_warn_flag
3350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3351   else
3352     ac_cpp_err=
3353   fi
3354 else
3355   ac_cpp_err=yes
3356 fi
3357 if test -z "$ac_cpp_err"; then
3358   # Broken: success on invalid input.
3359 continue
3360 else
3361   echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364   # Passes both tests.
3365 ac_preproc_ok=:
3366 break
3367 fi
3368
3369 rm -f conftest.err conftest.$ac_ext
3370
3371 done
3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373 rm -f conftest.err conftest.$ac_ext
3374 if $ac_preproc_ok; then
3375   break
3376 fi
3377
3378     done
3379     ac_cv_prog_CPP=$CPP
3380
3381 fi
3382   CPP=$ac_cv_prog_CPP
3383 else
3384   ac_cv_prog_CPP=$CPP
3385 fi
3386 { echo "$as_me:$LINENO: result: $CPP" >&5
3387 echo "${ECHO_T}$CPP" >&6; }
3388 ac_preproc_ok=false
3389 for ac_c_preproc_warn_flag in '' yes
3390 do
3391   # Use a header file that comes with gcc, so configuring glibc
3392   # with a fresh cross-compiler works.
3393   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394   # <limits.h> exists even on freestanding compilers.
3395   # On the NeXT, cc -E runs the code through the compiler's parser,
3396   # not just through cpp. "Syntax error" is here to catch this case.
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 #ifdef __STDC__
3404 # include <limits.h>
3405 #else
3406 # include <assert.h>
3407 #endif
3408                      Syntax error
3409 _ACEOF
3410 if { (ac_try="$ac_cpp conftest.$ac_ext"
3411 case "(($ac_try" in
3412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413   *) ac_try_echo=$ac_try;;
3414 esac
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417   ac_status=$?
3418   grep -v '^ *+' conftest.er1 >conftest.err
3419   rm -f conftest.er1
3420   cat conftest.err >&5
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); } >/dev/null; then
3423   if test -s conftest.err; then
3424     ac_cpp_err=$ac_c_preproc_warn_flag
3425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426   else
3427     ac_cpp_err=
3428   fi
3429 else
3430   ac_cpp_err=yes
3431 fi
3432 if test -z "$ac_cpp_err"; then
3433   :
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Broken: fails on valid input.
3439 continue
3440 fi
3441
3442 rm -f conftest.err conftest.$ac_ext
3443
3444   # OK, works on sane cases.  Now check whether nonexistent headers
3445   # can be detected and how.
3446   cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h.  */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h.  */
3452 #include <ac_nonexistent.h>
3453 _ACEOF
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
3464   cat conftest.err >&5
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } >/dev/null; then
3467   if test -s conftest.err; then
3468     ac_cpp_err=$ac_c_preproc_warn_flag
3469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470   else
3471     ac_cpp_err=
3472   fi
3473 else
3474   ac_cpp_err=yes
3475 fi
3476 if test -z "$ac_cpp_err"; then
3477   # Broken: success on invalid input.
3478 continue
3479 else
3480   echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3482
3483   # Passes both tests.
3484 ac_preproc_ok=:
3485 break
3486 fi
3487
3488 rm -f conftest.err conftest.$ac_ext
3489
3490 done
3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492 rm -f conftest.err conftest.$ac_ext
3493 if $ac_preproc_ok; then
3494   :
3495 else
3496   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3497 See \`config.log' for more details." >&5
3498 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3499 See \`config.log' for more details." >&2;}
3500    { (exit 1); exit 1; }; }
3501 fi
3502
3503 ac_ext=c
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510 if test "$CXX" = "clang++" ; then
3511   { echo "$as_me:$LINENO: checking whether clang works" >&5
3512 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3513   ac_ext=cpp
3514 ac_cpp='$CXXCPP $CPPFLAGS'
3515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3518
3519
3520 cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526 #include <limits>
3527 #if __has_include (<cxxabi.h>)
3528 #include <cxxabi.h>
3529 #endif
3530 #if __has_include (<unwind.h>)
3531 #include <unwind.h>
3532 #endif
3533
3534 int
3535 main ()
3536 {
3537
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3544 case "(($ac_try" in
3545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546   *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549   (eval "$ac_compile") 2>conftest.er1
3550   ac_status=$?
3551   grep -v '^ *+' conftest.er1 >conftest.err
3552   rm -f conftest.er1
3553   cat conftest.err >&5
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } &&
3556          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3557   { (case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562   (eval "$ac_try") 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); }; } &&
3566          { ac_try='test -s conftest.$ac_objext'
3567   { (case "(($ac_try" in
3568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569   *) ac_try_echo=$ac_try;;
3570 esac
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572   (eval "$ac_try") 2>&5
3573   ac_status=$?
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); }; }; then
3576
3577   { echo "$as_me:$LINENO: result: yes" >&5
3578 echo "${ECHO_T}yes" >&6; }
3579
3580 else
3581   echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584
3585   { echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6; }
3587   { { 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
3588 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;}
3589    { (exit 1); exit 1; }; }
3590
3591 fi
3592
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594   ac_ext=c
3595 ac_cpp='$CPP $CPPFLAGS'
3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599
3600 fi
3601
3602 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3603 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3604 ac_ext=cpp
3605 ac_cpp='$CXXCPP $CPPFLAGS'
3606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3609
3610 llvm_cv_cxx_compiler=unknown
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h.  */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h.  */
3617 #if ! __clang__
3618                                     #error
3619                                     #endif
3620
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (ac_try="$ac_compile"
3624 case "(($ac_try" in
3625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626   *) ac_try_echo=$ac_try;;
3627 esac
3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629   (eval "$ac_compile") 2>conftest.er1
3630   ac_status=$?
3631   grep -v '^ *+' conftest.er1 >conftest.err
3632   rm -f conftest.er1
3633   cat conftest.err >&5
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); } &&
3636          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3637   { (case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642   (eval "$ac_try") 2>&5
3643   ac_status=$?
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); }; } &&
3646          { ac_try='test -s conftest.$ac_objext'
3647   { (case "(($ac_try" in
3648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649   *) ac_try_echo=$ac_try;;
3650 esac
3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652   (eval "$ac_try") 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; }; then
3656   llvm_cv_cxx_compiler=clang
3657 else
3658   echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661         cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667 #if ! __GNUC__
3668                                                        #error
3669                                                        #endif
3670
3671 _ACEOF
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3674 case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679   (eval "$ac_compile") 2>conftest.er1
3680   ac_status=$?
3681   grep -v '^ *+' conftest.er1 >conftest.err
3682   rm -f conftest.er1
3683   cat conftest.err >&5
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); } &&
3686          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3687   { (case "(($ac_try" in
3688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689   *) ac_try_echo=$ac_try;;
3690 esac
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692   (eval "$ac_try") 2>&5
3693   ac_status=$?
3694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695   (exit $ac_status); }; } &&
3696          { ac_try='test -s conftest.$ac_objext'
3697   { (case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702   (eval "$ac_try") 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); }; }; then
3706   llvm_cv_cxx_compiler=gcc
3707 else
3708   echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711
3712 fi
3713
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 fi
3716
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3725 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3726
3727
3728
3729 if test -d ${srcdir}/projects/test-suite ; then
3730   subdirs="$subdirs projects/test-suite"
3731
3732 fi
3733
3734 if test -d ${srcdir}/projects/llvm-test ; then
3735   subdirs="$subdirs projects/llvm-test"
3736
3737 fi
3738
3739 if test -d ${srcdir}/projects/poolalloc ; then
3740   subdirs="$subdirs projects/poolalloc"
3741
3742 fi
3743
3744 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3745   subdirs="$subdirs projects/llvm-poolalloc"
3746
3747 fi
3748
3749 for i in `ls ${srcdir}/projects`
3750 do
3751   if test -d ${srcdir}/projects/${i} ; then
3752     case ${i} in
3753       safecode)     subdirs="$subdirs projects/safecode"
3754  ;;
3755       compiler-rt)       ;;
3756       test-suite)     ;;
3757       llvm-test)      ;;
3758       poolalloc)      ;;
3759       llvm-poolalloc) ;;
3760       *)
3761         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3762 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3763         ;;
3764     esac
3765   fi
3766 done
3767
3768 # Check whether --enable-polly was given.
3769 if test "${enable_polly+set}" = set; then
3770   enableval=$enable_polly;
3771 else
3772   enableval=default
3773 fi
3774
3775 case "$enableval" in
3776   yes) ENABLE_POLLY=1
3777  ;;
3778   no)  ENABLE_POLLY=0
3779  ;;
3780   default) ENABLE_POLLY=1
3781  ;;
3782   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3783 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3784    { (exit 1); exit 1; }; } ;;
3785 esac
3786
3787
3788 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3789   LLVM_HAS_POLLY=1
3790
3791   subdirs="$subdirs tools/polly"
3792
3793 fi
3794
3795
3796 # Make sure we can run config.sub.
3797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3798   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3799 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3800    { (exit 1); exit 1; }; }
3801
3802 { echo "$as_me:$LINENO: checking build system type" >&5
3803 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3804 if test "${ac_cv_build+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   ac_build_alias=$build_alias
3808 test "x$ac_build_alias" = x &&
3809   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3810 test "x$ac_build_alias" = x &&
3811   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3812 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3813    { (exit 1); exit 1; }; }
3814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3815   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3817    { (exit 1); exit 1; }; }
3818
3819 fi
3820 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3821 echo "${ECHO_T}$ac_cv_build" >&6; }
3822 case $ac_cv_build in
3823 *-*-*) ;;
3824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3825 echo "$as_me: error: invalid value of canonical build" >&2;}
3826    { (exit 1); exit 1; }; };;
3827 esac
3828 build=$ac_cv_build
3829 ac_save_IFS=$IFS; IFS='-'
3830 set x $ac_cv_build
3831 shift
3832 build_cpu=$1
3833 build_vendor=$2
3834 shift; shift
3835 # Remember, the first character of IFS is used to create $*,
3836 # except with old shells:
3837 build_os=$*
3838 IFS=$ac_save_IFS
3839 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3840
3841
3842 { echo "$as_me:$LINENO: checking host system type" >&5
3843 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3844 if test "${ac_cv_host+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   if test "x$host_alias" = x; then
3848   ac_cv_host=$ac_cv_build
3849 else
3850   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3851     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3853    { (exit 1); exit 1; }; }
3854 fi
3855
3856 fi
3857 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3858 echo "${ECHO_T}$ac_cv_host" >&6; }
3859 case $ac_cv_host in
3860 *-*-*) ;;
3861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3862 echo "$as_me: error: invalid value of canonical host" >&2;}
3863    { (exit 1); exit 1; }; };;
3864 esac
3865 host=$ac_cv_host
3866 ac_save_IFS=$IFS; IFS='-'
3867 set x $ac_cv_host
3868 shift
3869 host_cpu=$1
3870 host_vendor=$2
3871 shift; shift
3872 # Remember, the first character of IFS is used to create $*,
3873 # except with old shells:
3874 host_os=$*
3875 IFS=$ac_save_IFS
3876 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3877
3878
3879 { echo "$as_me:$LINENO: checking target system type" >&5
3880 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3881 if test "${ac_cv_target+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   if test "x$target_alias" = x; then
3885   ac_cv_target=$ac_cv_host
3886 else
3887   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3888     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3889 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3890    { (exit 1); exit 1; }; }
3891 fi
3892
3893 fi
3894 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3895 echo "${ECHO_T}$ac_cv_target" >&6; }
3896 case $ac_cv_target in
3897 *-*-*) ;;
3898 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3899 echo "$as_me: error: invalid value of canonical target" >&2;}
3900    { (exit 1); exit 1; }; };;
3901 esac
3902 target=$ac_cv_target
3903 ac_save_IFS=$IFS; IFS='-'
3904 set x $ac_cv_target
3905 shift
3906 target_cpu=$1
3907 target_vendor=$2
3908 shift; shift
3909 # Remember, the first character of IFS is used to create $*,
3910 # except with old shells:
3911 target_os=$*
3912 IFS=$ac_save_IFS
3913 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3914
3915
3916 # The aliases save the names the user supplied, while $host etc.
3917 # will get canonicalized.
3918 test -n "$target_alias" &&
3919   test "$program_prefix$program_suffix$program_transform_name" = \
3920     NONENONEs,x,x, &&
3921   program_prefix=${target_alias}-
3922
3923 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3924 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3925 if test "${llvm_cv_os_type+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   case $host in
3929   *-*-aix*)
3930     llvm_cv_link_all_option="-Wl,--whole-archive"
3931     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3932     llvm_cv_os_type="AIX"
3933     llvm_cv_platform_type="Unix" ;;
3934   *-*-irix*)
3935     llvm_cv_link_all_option="-Wl,--whole-archive"
3936     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3937     llvm_cv_os_type="IRIX"
3938     llvm_cv_platform_type="Unix" ;;
3939   *-*-cygwin*)
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="Cygwin"
3943     llvm_cv_platform_type="Unix" ;;
3944   *-*-darwin*)
3945     llvm_cv_link_all_option="-Wl,-all_load"
3946     llvm_cv_no_link_all_option="-Wl,-noall_load"
3947     llvm_cv_os_type="Darwin"
3948     llvm_cv_platform_type="Unix" ;;
3949   *-*-minix*)
3950     llvm_cv_link_all_option="-Wl,-all_load"
3951     llvm_cv_no_link_all_option="-Wl,-noall_load"
3952     llvm_cv_os_type="Minix"
3953     llvm_cv_platform_type="Unix" ;;
3954   *-*-freebsd*)
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="FreeBSD"
3958     llvm_cv_platform_type="Unix" ;;
3959   *-*-kfreebsd-gnu)
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="GNU/kFreeBSD"
3963     llvm_cv_platform_type="Unix" ;;
3964   *-*-openbsd*)
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="OpenBSD"
3968     llvm_cv_platform_type="Unix" ;;
3969   *-*-netbsd*)
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="NetBSD"
3973     llvm_cv_platform_type="Unix" ;;
3974   *-*-dragonfly*)
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="DragonFly"
3978     llvm_cv_platform_type="Unix" ;;
3979   *-*-hpux*)
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="HP-UX"
3983     llvm_cv_platform_type="Unix" ;;
3984   *-*-interix*)
3985     llvm_cv_link_all_option="-Wl,--whole-archive"
3986     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987     llvm_cv_os_type="Interix"
3988     llvm_cv_platform_type="Unix" ;;
3989   *-*-linux*)
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="Linux"
3993     llvm_cv_platform_type="Unix" ;;
3994   *-*-gnu*)
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="GNU"
3998     llvm_cv_platform_type="Unix" ;;
3999   *-*-solaris*)
4000     llvm_cv_link_all_option="-Wl,-z,allextract"
4001     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4002     llvm_cv_os_type="SunOS"
4003     llvm_cv_platform_type="Unix" ;;
4004   *-*-auroraux*)
4005     llvm_cv_link_all_option="-Wl,-z,allextract"
4006     llvm_cv_link_all_option="-Wl,-z,defaultextract"
4007     llvm_cv_os_type="AuroraUX"
4008     llvm_cv_platform_type="Unix" ;;
4009   *-*-win32*)
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="Win32"
4013     llvm_cv_platform_type="Win32" ;;
4014   *-*-mingw*)
4015     llvm_cv_link_all_option="-Wl,--whole-archive"
4016     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017     llvm_cv_os_type="MingW"
4018     llvm_cv_platform_type="Win32" ;;
4019   *-*-haiku*)
4020     llvm_cv_link_all_option="-Wl,--whole-archive"
4021     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4022     llvm_cv_os_type="Haiku"
4023     llvm_cv_platform_type="Unix" ;;
4024   *-unknown-eabi*)
4025     llvm_cv_link_all_option="-Wl,--whole-archive"
4026     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4027     llvm_cv_os_type="Freestanding"
4028     llvm_cv_platform_type="Unix" ;;
4029   *-unknown-elf*)
4030     llvm_cv_link_all_option="-Wl,--whole-archive"
4031     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4032     llvm_cv_os_type="Freestanding"
4033     llvm_cv_platform_type="Unix" ;;
4034   *)
4035     llvm_cv_link_all_option=""
4036     llvm_cv_no_link_all_option=""
4037     llvm_cv_os_type="Unknown"
4038     llvm_cv_platform_type="Unknown" ;;
4039 esac
4040 fi
4041 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4042 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4043
4044 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4045 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4046 if test "${llvm_cv_target_os_type+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   case $target in
4050   *-*-aix*)
4051     llvm_cv_target_os_type="AIX" ;;
4052   *-*-irix*)
4053     llvm_cv_target_os_type="IRIX" ;;
4054   *-*-cygwin*)
4055     llvm_cv_target_os_type="Cygwin" ;;
4056   *-*-darwin*)
4057     llvm_cv_target_os_type="Darwin" ;;
4058   *-*-minix*)
4059     llvm_cv_target_os_type="Minix" ;;
4060   *-*-freebsd*)
4061     llvm_cv_target_os_type="FreeBSD" ;;
4062   *-*-kfreebsd-gnu)
4063     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4064   *-*-openbsd*)
4065     llvm_cv_target_os_type="OpenBSD" ;;
4066   *-*-netbsd*)
4067     llvm_cv_target_os_type="NetBSD" ;;
4068   *-*-dragonfly*)
4069     llvm_cv_target_os_type="DragonFly" ;;
4070   *-*-hpux*)
4071     llvm_cv_target_os_type="HP-UX" ;;
4072   *-*-interix*)
4073     llvm_cv_target_os_type="Interix" ;;
4074   *-*-linux*)
4075     llvm_cv_target_os_type="Linux" ;;
4076   *-*-gnu*)
4077     llvm_cv_target_os_type="GNU" ;;
4078   *-*-solaris*)
4079     llvm_cv_target_os_type="SunOS" ;;
4080   *-*-auroraux*)
4081     llvm_cv_target_os_type="AuroraUX" ;;
4082   *-*-win32*)
4083     llvm_cv_target_os_type="Win32" ;;
4084   *-*-mingw*)
4085     llvm_cv_target_os_type="MingW" ;;
4086   *-*-haiku*)
4087     llvm_cv_target_os_type="Haiku" ;;
4088   *-*-rtems*)
4089     llvm_cv_target_os_type="RTEMS" ;;
4090   *-*-nacl*)
4091     llvm_cv_target_os_type="NativeClient" ;;
4092   *-unknown-eabi*)
4093     llvm_cv_target_os_type="Freestanding" ;;
4094   *)
4095     llvm_cv_target_os_type="Unknown" ;;
4096 esac
4097 fi
4098 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4099 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4100
4101 if test "$llvm_cv_os_type" = "Unknown" ; then
4102   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4103 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4104    { (exit 1); exit 1; }; }
4105 fi
4106
4107 OS=$llvm_cv_os_type
4108
4109 HOST_OS=$llvm_cv_os_type
4110
4111 TARGET_OS=$llvm_cv_target_os_type
4112
4113
4114 LINKALL=$llvm_cv_link_all_option
4115
4116 NOLINKALL=$llvm_cv_no_link_all_option
4117
4118
4119 case $llvm_cv_platform_type in
4120   Unix)
4121
4122 cat >>confdefs.h <<\_ACEOF
4123 #define LLVM_ON_UNIX 1
4124 _ACEOF
4125
4126     LLVM_ON_UNIX=1
4127
4128     LLVM_ON_WIN32=0
4129
4130     ;;
4131   Win32)
4132
4133 cat >>confdefs.h <<\_ACEOF
4134 #define LLVM_ON_WIN32 1
4135 _ACEOF
4136
4137     LLVM_ON_UNIX=0
4138
4139     LLVM_ON_WIN32=1
4140
4141     ;;
4142 esac
4143
4144 { echo "$as_me:$LINENO: checking target architecture" >&5
4145 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4146 if test "${llvm_cv_target_arch+set}" = set; then
4147   echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149   case $target in
4150   i?86-*)                 llvm_cv_target_arch="x86" ;;
4151   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4152   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4153   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4154   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4155   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4156   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4157   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4158   xcore-*)                llvm_cv_target_arch="XCore" ;;
4159   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4160   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4161   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4162   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4163   *)                      llvm_cv_target_arch="Unknown" ;;
4164 esac
4165 fi
4166 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4167 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4168
4169 if test "$llvm_cv_target_arch" = "Unknown" ; then
4170   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4171 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4172 fi
4173
4174 case "$llvm_cv_target_arch" in
4175     x86)     LLVM_NATIVE_ARCH="X86" ;;
4176     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4177     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4178 esac
4179
4180 ARCH=$llvm_cv_target_arch
4181
4182 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4183
4184
4185 case $host in
4186   i?86-*)                 host_arch="x86" ;;
4187   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4188   sparc*-*)               host_arch="Sparc" ;;
4189   powerpc*-*)             host_arch="PowerPC" ;;
4190   arm*-*)                 host_arch="ARM" ;;
4191   aarch64*-*)             host_arch="AArch64" ;;
4192   mips-* | mips64-*)      host_arch="Mips" ;;
4193   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4194   xcore-*)                host_arch="XCore" ;;
4195   msp430-*)               host_arch="MSP430" ;;
4196   hexagon-*)              host_arch="Hexagon" ;;
4197   s390x-*)                host_arch="SystemZ" ;;
4198   *)                      host_arch="Unknown" ;;
4199 esac
4200
4201 if test "$host_arch" = "Unknown" ; then
4202   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4203 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4204 fi
4205
4206 HOST_ARCH=$host_arch
4207
4208
4209 if test "$cross_compiling" = yes; then
4210   LLVM_CROSS_COMPILING=1
4211
4212
4213 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4214 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4215 if test "${ac_cv_build_exeext+set}" = set; then
4216   echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4219   ac_cv_build_exeext=.exe
4220 else
4221   ac_build_prefix=${build_alias}-
4222
4223   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4224 set dummy ${ac_build_prefix}gcc; ac_word=$2
4225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4227 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   if test -n "$BUILD_CC"; then
4231   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236   IFS=$as_save_IFS
4237   test -z "$as_dir" && as_dir=.
4238   for ac_exec_ext in '' $ac_executable_extensions; do
4239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4240     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242     break 2
4243   fi
4244 done
4245 done
4246 IFS=$as_save_IFS
4247
4248 fi
4249 fi
4250 BUILD_CC=$ac_cv_prog_BUILD_CC
4251 if test -n "$BUILD_CC"; then
4252   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4253 echo "${ECHO_T}$BUILD_CC" >&6; }
4254 else
4255   { echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6; }
4257 fi
4258
4259
4260   if test -z "$BUILD_CC"; then
4261      # Extract the first word of "gcc", so it can be a program name with args.
4262 set dummy gcc; ac_word=$2
4263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4265 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   if test -n "$BUILD_CC"; then
4269   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274   IFS=$as_save_IFS
4275   test -z "$as_dir" && as_dir=.
4276   for ac_exec_ext in '' $ac_executable_extensions; do
4277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4278     ac_cv_prog_BUILD_CC="gcc"
4279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280     break 2
4281   fi
4282 done
4283 done
4284 IFS=$as_save_IFS
4285
4286 fi
4287 fi
4288 BUILD_CC=$ac_cv_prog_BUILD_CC
4289 if test -n "$BUILD_CC"; then
4290   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4291 echo "${ECHO_T}$BUILD_CC" >&6; }
4292 else
4293   { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4295 fi
4296
4297
4298      if test -z "$BUILD_CC"; then
4299        # Extract the first word of "cc", so it can be a program name with args.
4300 set dummy cc; ac_word=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   if test -n "$BUILD_CC"; then
4307   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4308 else
4309   ac_prog_rejected=no
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313   IFS=$as_save_IFS
4314   test -z "$as_dir" && as_dir=.
4315   for ac_exec_ext in '' $ac_executable_extensions; do
4316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4317     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318        ac_prog_rejected=yes
4319        continue
4320      fi
4321     ac_cv_prog_BUILD_CC="cc"
4322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323     break 2
4324   fi
4325 done
4326 done
4327 IFS=$as_save_IFS
4328
4329 if test $ac_prog_rejected = yes; then
4330   # We found a bogon in the path, so make sure we never use it.
4331   set dummy $ac_cv_prog_BUILD_CC
4332   shift
4333   if test $# != 0; then
4334     # We chose a different compiler from the bogus one.
4335     # However, it has the same basename, so the bogon will be chosen
4336     # first if we set BUILD_CC to just the basename; use the full file name.
4337     shift
4338     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4339   fi
4340 fi
4341 fi
4342 fi
4343 BUILD_CC=$ac_cv_prog_BUILD_CC
4344 if test -n "$BUILD_CC"; then
4345   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4346 echo "${ECHO_T}$BUILD_CC" >&6; }
4347 else
4348   { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4350 fi
4351
4352
4353      fi
4354   fi
4355   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4356 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4357    { (exit 1); exit 1; }; }
4358   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4359   rm -f conftest*
4360   echo 'int main () { return 0; }' > conftest.$ac_ext
4361   ac_cv_build_exeext=
4362   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4363   (eval $ac_build_link) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; then
4367     for file in conftest.*; do
4368       case $file in
4369       *.c | *.o | *.obj | *.dSYM) ;;
4370       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4371       esac
4372     done
4373   else
4374     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4375 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4376    { (exit 1); exit 1; }; }
4377   fi
4378   rm -f conftest*
4379   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4380 fi
4381 fi
4382
4383 BUILD_EXEEXT=""
4384 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4385 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4386 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4387 ac_build_exeext=$BUILD_EXEEXT
4388
4389   ac_build_prefix=${build_alias}-
4390   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4391 set dummy ${ac_build_prefix}g++; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   if test -n "$BUILD_CXX"; then
4398   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4402 do
4403   IFS=$as_save_IFS
4404   test -z "$as_dir" && as_dir=.
4405   for ac_exec_ext in '' $ac_executable_extensions; do
4406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409     break 2
4410   fi
4411 done
4412 done
4413 IFS=$as_save_IFS
4414
4415 fi
4416 fi
4417 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4418 if test -n "$BUILD_CXX"; then
4419   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4420 echo "${ECHO_T}$BUILD_CXX" >&6; }
4421 else
4422   { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4424 fi
4425
4426
4427   if test -z "$BUILD_CXX"; then
4428      # Extract the first word of "g++", so it can be a program name with args.
4429 set dummy g++; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   if test -n "$BUILD_CXX"; then
4436   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441   IFS=$as_save_IFS
4442   test -z "$as_dir" && as_dir=.
4443   for ac_exec_ext in '' $ac_executable_extensions; do
4444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445     ac_cv_prog_BUILD_CXX="g++"
4446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447     break 2
4448   fi
4449 done
4450 done
4451 IFS=$as_save_IFS
4452
4453 fi
4454 fi
4455 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4456 if test -n "$BUILD_CXX"; then
4457   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4458 echo "${ECHO_T}$BUILD_CXX" >&6; }
4459 else
4460   { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4462 fi
4463
4464
4465      if test -z "$BUILD_CXX"; then
4466        # Extract the first word of "c++", so it can be a program name with args.
4467 set dummy c++; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   if test -n "$BUILD_CXX"; then
4474   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4475 else
4476   ac_prog_rejected=no
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482   for ac_exec_ext in '' $ac_executable_extensions; do
4483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4485        ac_prog_rejected=yes
4486        continue
4487      fi
4488     ac_cv_prog_BUILD_CXX="c++"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494 IFS=$as_save_IFS
4495
4496 if test $ac_prog_rejected = yes; then
4497   # We found a bogon in the path, so make sure we never use it.
4498   set dummy $ac_cv_prog_BUILD_CXX
4499   shift
4500   if test $# != 0; then
4501     # We chose a different compiler from the bogus one.
4502     # However, it has the same basename, so the bogon will be chosen
4503     # first if we set BUILD_CXX to just the basename; use the full file name.
4504     shift
4505     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4506   fi
4507 fi
4508 fi
4509 fi
4510 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4511 if test -n "$BUILD_CXX"; then
4512   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4513 echo "${ECHO_T}$BUILD_CXX" >&6; }
4514 else
4515   { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4517 fi
4518
4519
4520      fi
4521   fi
4522 else
4523   LLVM_CROSS_COMPILING=0
4524
4525 fi
4526
4527 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4528   cvsbuild="yes"
4529   optimize="no"
4530   CVSBUILD=CVSBUILD=1
4531
4532 else
4533   cvsbuild="no"
4534   optimize="yes"
4535 fi
4536
4537
4538 # Check whether --enable-libcpp was given.
4539 if test "${enable_libcpp+set}" = set; then
4540   enableval=$enable_libcpp;
4541 else
4542   enableval=default
4543 fi
4544
4545 case "$enableval" in
4546   yes) ENABLE_LIBCPP=1
4547  ;;
4548   no)  ENABLE_LIBCPP=0
4549  ;;
4550   default) ENABLE_LIBCPP=0
4551 ;;
4552   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4553 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4554    { (exit 1); exit 1; }; } ;;
4555 esac
4556
4557 # Check whether --enable-compiler-version-checks was given.
4558 if test "${enable_compiler_version_checks+set}" = set; then
4559   enableval=$enable_compiler_version_checks;
4560 else
4561   enableval=default
4562 fi
4563
4564 case "$enableval" in
4565   no)
4566     ;;
4567   yes|default)
4568     ac_ext=cpp
4569 ac_cpp='$CXXCPP $CPPFLAGS'
4570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4573
4574     case "$llvm_cv_cxx_compiler" in
4575     clang)
4576       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4577 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4578       cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h.  */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h.  */
4584
4585 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4586 #error This version of Clang is too old to build LLVM
4587 #endif
4588
4589 _ACEOF
4590 rm -f conftest.$ac_objext
4591 if { (ac_try="$ac_compile"
4592 case "(($ac_try" in
4593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594   *) ac_try_echo=$ac_try;;
4595 esac
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597   (eval "$ac_compile") 2>conftest.er1
4598   ac_status=$?
4599   grep -v '^ *+' conftest.er1 >conftest.err
4600   rm -f conftest.er1
4601   cat conftest.err >&5
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); } &&
4604          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4605   { (case "(($ac_try" in
4606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607   *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610   (eval "$ac_try") 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); }; } &&
4614          { ac_try='test -s conftest.$ac_objext'
4615   { (case "(($ac_try" in
4616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617   *) ac_try_echo=$ac_try;;
4618 esac
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620   (eval "$ac_try") 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; }; then
4624   { echo "$as_me:$LINENO: result: yes" >&5
4625 echo "${ECHO_T}yes" >&6; }
4626 else
4627   echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630         { echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6; }
4632            { { echo "$as_me:$LINENO: error:
4633 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4634 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4635 bypass these sanity checks." >&5
4636 echo "$as_me: error:
4637 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4638 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4639 bypass these sanity checks." >&2;}
4640    { (exit 1); exit 1; }; }
4641 fi
4642
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644
4645                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4646         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4647 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4648         llvm_cv_old_cxxflags="$CXXFLAGS"
4649         CXXFLAGS="$CXXFLAGS -std=c++0x"
4650         cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656
4657 #include <atomic>
4658 std::atomic<float> x(0.0f);
4659 int main() { return (float)x; }
4660
4661 _ACEOF
4662 rm -f conftest.$ac_objext conftest$ac_exeext
4663 if { (ac_try="$ac_link"
4664 case "(($ac_try" in
4665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666   *) ac_try_echo=$ac_try;;
4667 esac
4668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4669   (eval "$ac_link") 2>conftest.er1
4670   ac_status=$?
4671   grep -v '^ *+' conftest.er1 >conftest.err
4672   rm -f conftest.er1
4673   cat conftest.err >&5
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); } &&
4676          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4677   { (case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682   (eval "$ac_try") 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; } &&
4686          { ac_try='test -s conftest$ac_exeext'
4687   { (case "(($ac_try" in
4688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689   *) ac_try_echo=$ac_try;;
4690 esac
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692   (eval "$ac_try") 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); }; }; then
4696   { echo "$as_me:$LINENO: result: yes" >&5
4697 echo "${ECHO_T}yes" >&6; }
4698 else
4699   echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702         { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4704              { { echo "$as_me:$LINENO: error:
4705 We detected a missing feature in the standard C++ library that was known to be
4706 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4707 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4708 than 4.7. You will need to update your system and ensure Clang uses the newer
4709 standard library.
4710
4711 If this error is incorrect or you need to force things to work, you may pass
4712 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4713 echo "$as_me: error:
4714 We detected a missing feature in the standard C++ library that was known to be
4715 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4716 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4717 than 4.7. You will need to update your system and ensure Clang uses the newer
4718 standard library.
4719
4720 If this error is incorrect or you need to force things to work, you may pass
4721 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4722    { (exit 1); exit 1; }; }
4723 fi
4724
4725 rm -f core conftest.err conftest.$ac_objext \
4726       conftest$ac_exeext conftest.$ac_ext
4727         CXXFLAGS="$llvm_cv_old_cxxflags"
4728       fi
4729       ;;
4730     gcc)
4731       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4732 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4733       cat >conftest.$ac_ext <<_ACEOF
4734 /* confdefs.h.  */
4735 _ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h.  */
4739
4740 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4741 #error This version of GCC is too old to build LLVM
4742 #endif
4743
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (ac_try="$ac_compile"
4747 case "(($ac_try" in
4748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749   *) ac_try_echo=$ac_try;;
4750 esac
4751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4752   (eval "$ac_compile") 2>conftest.er1
4753   ac_status=$?
4754   grep -v '^ *+' conftest.er1 >conftest.err
4755   rm -f conftest.er1
4756   cat conftest.err >&5
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); } &&
4759          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4760   { (case "(($ac_try" in
4761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762   *) ac_try_echo=$ac_try;;
4763 esac
4764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765   (eval "$ac_try") 2>&5
4766   ac_status=$?
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); }; } &&
4769          { ac_try='test -s conftest.$ac_objext'
4770   { (case "(($ac_try" in
4771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772   *) ac_try_echo=$ac_try;;
4773 esac
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775   (eval "$ac_try") 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; }; then
4779   { echo "$as_me:$LINENO: result: yes" >&5
4780 echo "${ECHO_T}yes" >&6; }
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785         { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4787            { { echo "$as_me:$LINENO: error:
4788 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4789 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4790 bypass these sanity checks." >&5
4791 echo "$as_me: error:
4792 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4793 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4794 bypass these sanity checks." >&2;}
4795    { (exit 1); exit 1; }; }
4796 fi
4797
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799       ;;
4800     unknown)
4801       ;;
4802     esac
4803     ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809     ;;
4810   *)
4811     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4812 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4813    { (exit 1); exit 1; }; }
4814     ;;
4815 esac
4816
4817 # Check whether --enable-cxx1y was given.
4818 if test "${enable_cxx1y+set}" = set; then
4819   enableval=$enable_cxx1y;
4820 else
4821   enableval=default
4822 fi
4823
4824 case "$enableval" in
4825   yes) ENABLE_CXX1Y=1
4826  ;;
4827   no)  ENABLE_CXX1Y=0
4828  ;;
4829   default) ENABLE_CXX1Y=0
4830 ;;
4831   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4832 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4833    { (exit 1); exit 1; }; } ;;
4834 esac
4835
4836 # Check whether --enable-split-dwarf was given.
4837 if test "${enable_split_dwarf+set}" = set; then
4838   enableval=$enable_split_dwarf;
4839 else
4840   enableval=default
4841 fi
4842
4843 case "$enableval" in
4844   yes) ENABLE_SPLIT_DWARF=1
4845  ;;
4846   no)  ENABLE_SPLIT_DWARF=0
4847  ;;
4848   default) ENABLE_SPLIT_DWARF=0
4849 ;;
4850   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4852    { (exit 1); exit 1; }; } ;;
4853 esac
4854
4855 clang_arcmt="yes"
4856 # Check whether --enable-clang-arcmt was given.
4857 if test "${enable_clang_arcmt+set}" = set; then
4858   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4859 else
4860   enableval="yes"
4861 fi
4862
4863 case "$enableval" in
4864   yes) ENABLE_CLANG_ARCMT=1
4865  ;;
4866   no)  ENABLE_CLANG_ARCMT=0
4867  ;;
4868   default) ENABLE_CLANG_ARCMT=1
4869 ;;
4870   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4872    { (exit 1); exit 1; }; } ;;
4873 esac
4874
4875 clang_plugin_support="yes"
4876 # Check whether --enable-clang-plugin-support was given.
4877 if test "${enable_clang_plugin_support+set}" = set; then
4878   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4879 else
4880   enableval="yes"
4881 fi
4882
4883 case "$enableval" in
4884   yes) CLANG_PLUGIN_SUPPORT=1
4885  ;;
4886   no)  CLANG_PLUGIN_SUPPORT=0
4887  ;;
4888   default) CLANG_PLUGIN_SUPPORT=1
4889 ;;
4890   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4891 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4892    { (exit 1); exit 1; }; } ;;
4893 esac
4894
4895 clang_static_analyzer="yes"
4896 # Check whether --enable-clang-static-analyzer was given.
4897 if test "${enable_clang_static_analyzer+set}" = set; then
4898   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4899 else
4900   enableval="yes"
4901 fi
4902
4903 case "$enableval" in
4904   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4905  ;;
4906   no)
4907     if test ${clang_arcmt} != "no" ; then
4908       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4909 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4910    { (exit 1); exit 1; }; }
4911     fi
4912     ENABLE_CLANG_STATIC_ANALYZER=0
4913
4914     ;;
4915   default) ENABLE_CLANG_STATIC_ANALYZER=1
4916 ;;
4917   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4918 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4919    { (exit 1); exit 1; }; } ;;
4920 esac
4921
4922 # Check whether --enable-clang-rewriter was given.
4923 if test "${enable_clang_rewriter+set}" = set; then
4924   enableval=$enable_clang_rewriter;
4925 else
4926   enableval="yes"
4927 fi
4928
4929 case "$enableval" in
4930   yes) ENABLE_CLANG_REWRITER=1
4931  ;;
4932   no)
4933     if test ${clang_arcmt} != "no" ; then
4934       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4935 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4936    { (exit 1); exit 1; }; }
4937     fi
4938     if test ${clang_static_analyzer} != "no" ; then
4939       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4940 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4941    { (exit 1); exit 1; }; }
4942     fi
4943     ENABLE_CLANG_REWRITER=0
4944
4945     ;;
4946   default) ENABLE_CLANG_REWRITER=1
4947 ;;
4948   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4949 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4950    { (exit 1); exit 1; }; } ;;
4951 esac
4952
4953 # Check whether --enable-optimized was given.
4954 if test "${enable_optimized+set}" = set; then
4955   enableval=$enable_optimized;
4956 else
4957   enableval=$optimize
4958 fi
4959
4960 if test ${enableval} = "no" ; then
4961   ENABLE_OPTIMIZED=
4962
4963 else
4964   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4965
4966 fi
4967
4968 # Check whether --enable-profiling was given.
4969 if test "${enable_profiling+set}" = set; then
4970   enableval=$enable_profiling;
4971 else
4972   enableval="no"
4973 fi
4974
4975 if test ${enableval} = "no" ; then
4976   ENABLE_PROFILING=
4977
4978 else
4979   ENABLE_PROFILING=ENABLE_PROFILING=1
4980
4981 fi
4982
4983 # Check whether --enable-assertions was given.
4984 if test "${enable_assertions+set}" = set; then
4985   enableval=$enable_assertions;
4986 else
4987   enableval="yes"
4988 fi
4989
4990 if test ${enableval} = "yes" ; then
4991   DISABLE_ASSERTIONS=
4992
4993 else
4994   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4995
4996 fi
4997
4998 # Check whether --enable-werror was given.
4999 if test "${enable_werror+set}" = set; then
5000   enableval=$enable_werror;
5001 else
5002   enableval="no"
5003 fi
5004
5005 case "$enableval" in
5006   yes) ENABLE_WERROR=1
5007  ;;
5008   no)  ENABLE_WERROR=0
5009  ;;
5010   default) ENABLE_WERROR=0
5011 ;;
5012   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5013 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5014    { (exit 1); exit 1; }; } ;;
5015 esac
5016
5017 # Check whether --enable-expensive-checks was given.
5018 if test "${enable_expensive_checks+set}" = set; then
5019   enableval=$enable_expensive_checks;
5020 else
5021   enableval="no"
5022 fi
5023
5024 if test ${enableval} = "yes" ; then
5025   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5026
5027   EXPENSIVE_CHECKS=yes
5028
5029 else
5030   ENABLE_EXPENSIVE_CHECKS=
5031
5032   EXPENSIVE_CHECKS=no
5033
5034 fi
5035
5036 # Check whether --enable-debug-runtime was given.
5037 if test "${enable_debug_runtime+set}" = set; then
5038   enableval=$enable_debug_runtime;
5039 else
5040   enableval=no
5041 fi
5042
5043 if test ${enableval} = "no" ; then
5044   DEBUG_RUNTIME=
5045
5046 else
5047   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5048
5049 fi
5050
5051 # Check whether --enable-debug-symbols was given.
5052 if test "${enable_debug_symbols+set}" = set; then
5053   enableval=$enable_debug_symbols;
5054 else
5055   enableval=no
5056 fi
5057
5058 if test ${enableval} = "no" ; then
5059   DEBUG_SYMBOLS=
5060
5061 else
5062   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5063
5064 fi
5065
5066 # Check whether --enable-keep-symbols was given.
5067 if test "${enable_keep_symbols+set}" = set; then
5068   enableval=$enable_keep_symbols;
5069 else
5070   enableval=no
5071 fi
5072
5073 if test ${enableval} = "no" ; then
5074   KEEP_SYMBOLS=
5075
5076 else
5077   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5078
5079 fi
5080
5081 # Check whether --enable-jit was given.
5082 if test "${enable_jit+set}" = set; then
5083   enableval=$enable_jit;
5084 else
5085   enableval=default
5086 fi
5087
5088 if test ${enableval} = "no"
5089 then
5090   JIT=
5091
5092 else
5093   case "$llvm_cv_target_arch" in
5094     x86)         TARGET_HAS_JIT=1
5095  ;;
5096     Sparc)       TARGET_HAS_JIT=0
5097  ;;
5098     PowerPC)     TARGET_HAS_JIT=1
5099  ;;
5100     x86_64)      TARGET_HAS_JIT=1
5101  ;;
5102     ARM)         TARGET_HAS_JIT=1
5103  ;;
5104     AArch64)     TARGET_HAS_JIT=0
5105  ;;
5106     Mips)        TARGET_HAS_JIT=1
5107  ;;
5108     XCore)       TARGET_HAS_JIT=0
5109  ;;
5110     MSP430)      TARGET_HAS_JIT=0
5111  ;;
5112     Hexagon)     TARGET_HAS_JIT=0
5113  ;;
5114     NVPTX)       TARGET_HAS_JIT=0
5115  ;;
5116     SystemZ)     TARGET_HAS_JIT=1
5117  ;;
5118     *)           TARGET_HAS_JIT=0
5119  ;;
5120   esac
5121 fi
5122
5123 TARGETS_WITH_JIT="AArch64 ARM Mips PowerPC SystemZ X86"
5124 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5125
5126
5127 # Check whether --enable-docs was given.
5128 if test "${enable_docs+set}" = set; then
5129   enableval=$enable_docs;
5130 else
5131   enableval=default
5132 fi
5133
5134 case "$enableval" in
5135   yes) ENABLE_DOCS=1
5136  ;;
5137   no)  ENABLE_DOCS=0
5138  ;;
5139   default) ENABLE_DOCS=1
5140  ;;
5141   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5142 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5143    { (exit 1); exit 1; }; } ;;
5144 esac
5145
5146 # Check whether --enable-doxygen was given.
5147 if test "${enable_doxygen+set}" = set; then
5148   enableval=$enable_doxygen;
5149 else
5150   enableval=default
5151 fi
5152
5153 case "$enableval" in
5154   yes) ENABLE_DOXYGEN=1
5155  ;;
5156   no)  ENABLE_DOXYGEN=0
5157  ;;
5158   default) ENABLE_DOXYGEN=0
5159  ;;
5160   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5162    { (exit 1); exit 1; }; } ;;
5163 esac
5164
5165 # Check whether --enable-threads was given.
5166 if test "${enable_threads+set}" = set; then
5167   enableval=$enable_threads;
5168 else
5169   enableval=default
5170 fi
5171
5172 case "$enableval" in
5173   yes) LLVM_ENABLE_THREADS=1
5174  ;;
5175   no)  LLVM_ENABLE_THREADS=0
5176  ;;
5177   default) LLVM_ENABLE_THREADS=1
5178  ;;
5179   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5181    { (exit 1); exit 1; }; } ;;
5182 esac
5183
5184 cat >>confdefs.h <<_ACEOF
5185 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5186 _ACEOF
5187
5188
5189 # Check whether --enable-pthreads was given.
5190 if test "${enable_pthreads+set}" = set; then
5191   enableval=$enable_pthreads;
5192 else
5193   enableval=default
5194 fi
5195
5196 case "$enableval" in
5197   yes) ENABLE_PTHREADS=1
5198  ;;
5199   no)  ENABLE_PTHREADS=0
5200  ;;
5201   default) ENABLE_PTHREADS=1
5202  ;;
5203   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5205    { (exit 1); exit 1; }; } ;;
5206 esac
5207
5208 # Check whether --enable-zlib was given.
5209 if test "${enable_zlib+set}" = set; then
5210   enableval=$enable_zlib;
5211 else
5212   enableval=default
5213 fi
5214
5215 case "$enableval" in
5216   yes) LLVM_ENABLE_ZLIB=1
5217  ;;
5218   no)  LLVM_ENABLE_ZLIB=0
5219  ;;
5220   default) LLVM_ENABLE_ZLIB=1
5221  ;;
5222   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5224    { (exit 1); exit 1; }; } ;;
5225 esac
5226
5227 cat >>confdefs.h <<_ACEOF
5228 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5229 _ACEOF
5230
5231
5232 # Check whether --enable-pic was given.
5233 if test "${enable_pic+set}" = set; then
5234   enableval=$enable_pic;
5235 else
5236   enableval=default
5237 fi
5238
5239 case "$enableval" in
5240   yes) ENABLE_PIC=1
5241  ;;
5242   no)  ENABLE_PIC=0
5243  ;;
5244   default) ENABLE_PIC=1
5245  ;;
5246   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5248    { (exit 1); exit 1; }; } ;;
5249 esac
5250
5251 cat >>confdefs.h <<_ACEOF
5252 #define ENABLE_PIC $ENABLE_PIC
5253 _ACEOF
5254
5255
5256 # Check whether --enable-shared was given.
5257 if test "${enable_shared+set}" = set; then
5258   enableval=$enable_shared;
5259 else
5260   enableval=default
5261 fi
5262
5263 case "$enableval" in
5264   yes) ENABLE_SHARED=1
5265  ;;
5266   no)  ENABLE_SHARED=0
5267  ;;
5268   default) ENABLE_SHARED=0
5269  ;;
5270   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5271 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5272    { (exit 1); exit 1; }; } ;;
5273 esac
5274
5275 # Check whether --enable-embed-stdcxx was given.
5276 if test "${enable_embed_stdcxx+set}" = set; then
5277   enableval=$enable_embed_stdcxx;
5278 else
5279   enableval=default
5280 fi
5281
5282 case "$enableval" in
5283   yes) ENABLE_EMBED_STDCXX=1
5284  ;;
5285   no)  ENABLE_EMBED_STDCXX=0
5286  ;;
5287   default) ENABLE_EMBED_STDCXX=0
5288  ;;
5289   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5290 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5291    { (exit 1); exit 1; }; } ;;
5292 esac
5293
5294 # Check whether --enable-timestamps was given.
5295 if test "${enable_timestamps+set}" = set; then
5296   enableval=$enable_timestamps;
5297 else
5298   enableval=default
5299 fi
5300
5301 case "$enableval" in
5302   yes) ENABLE_TIMESTAMPS=1
5303  ;;
5304   no)  ENABLE_TIMESTAMPS=0
5305  ;;
5306   default) ENABLE_TIMESTAMPS=1
5307  ;;
5308   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5309 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5310    { (exit 1); exit 1; }; } ;;
5311 esac
5312
5313 cat >>confdefs.h <<_ACEOF
5314 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5315 _ACEOF
5316
5317
5318 # Check whether --enable-backtraces was given.
5319 if test "${enable_backtraces+set}" = set; then
5320   enableval=$enable_backtraces; case "$enableval" in
5321     yes) llvm_cv_enable_backtraces="yes" ;;
5322     no)  llvm_cv_enable_backtraces="no"  ;;
5323     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5324 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5325    { (exit 1); exit 1; }; } ;;
5326   esac
5327 else
5328   llvm_cv_enable_backtraces="yes"
5329 fi
5330
5331 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5332
5333 cat >>confdefs.h <<\_ACEOF
5334 #define ENABLE_BACKTRACES 1
5335 _ACEOF
5336
5337 fi
5338
5339 # Check whether --enable-crash-overrides was given.
5340 if test "${enable_crash_overrides+set}" = set; then
5341   enableval=$enable_crash_overrides; case "$enableval" in
5342     yes) llvm_cv_enable_crash_overrides="yes" ;;
5343     no)  llvm_cv_enable_crash_overrides="no"  ;;
5344     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5345 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5346    { (exit 1); exit 1; }; } ;;
5347   esac
5348 else
5349   llvm_cv_enable_crash_overrides="yes"
5350 fi
5351
5352 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5353
5354 cat >>confdefs.h <<\_ACEOF
5355 #define ENABLE_CRASH_OVERRIDES 1
5356 _ACEOF
5357
5358 fi
5359
5360 ALL_TARGETS="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5361 ALL_TARGETS=$ALL_TARGETS
5362
5363
5364 TARGETS_TO_BUILD=""
5365 # Check whether --enable-targets was given.
5366 if test "${enable_targets+set}" = set; then
5367   enableval=$enable_targets;
5368 else
5369   enableval=all
5370 fi
5371
5372 if test "$enableval" = host-only ; then
5373   enableval=host
5374 fi
5375 case "$enableval" in
5376   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5377   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5378       case "$a_target" in
5379         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5380         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5381         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5382         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5383         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5384         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5385         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5386         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5387         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5388         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5389         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5390         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5391         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5392         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5393         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5394         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5395         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5396         host) case "$llvm_cv_target_arch" in
5397             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5398             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5399             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5400             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5401             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5402             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5403             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5404             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5405             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5406             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5407             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5408             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5409             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5410 echo "$as_me: error: Can not set target to build" >&2;}
5411    { (exit 1); exit 1; }; } ;;
5412           esac ;;
5413         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5414 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5415    { (exit 1); exit 1; }; } ;;
5416       esac
5417   done
5418   ;;
5419 esac
5420
5421 # Check whether --enable-experimental-targets was given.
5422 if test "${enable_experimental_targets+set}" = set; then
5423   enableval=$enable_experimental_targets;
5424 else
5425   enableval=disable
5426 fi
5427
5428
5429 if test ${enableval} != "disable"
5430 then
5431   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5432 fi
5433
5434 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5435
5436
5437 for a_target in $TARGETS_TO_BUILD; do
5438   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5439
5440 cat >>confdefs.h <<_ACEOF
5441 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5442 _ACEOF
5443
5444     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5445     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5446     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5447     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5448     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5449       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5450     fi
5451     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5452       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5453     fi
5454
5455 cat >>confdefs.h <<_ACEOF
5456 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5457 _ACEOF
5458
5459
5460 cat >>confdefs.h <<_ACEOF
5461 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5462 _ACEOF
5463
5464
5465 cat >>confdefs.h <<_ACEOF
5466 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5467 _ACEOF
5468
5469
5470 cat >>confdefs.h <<_ACEOF
5471 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5472 _ACEOF
5473
5474     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5475
5476 cat >>confdefs.h <<_ACEOF
5477 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5478 _ACEOF
5479
5480     fi
5481     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5482
5483 cat >>confdefs.h <<_ACEOF
5484 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5485 _ACEOF
5486
5487     fi
5488   fi
5489 done
5490
5491 LLVM_ENUM_TARGETS=""
5492 LLVM_ENUM_ASM_PRINTERS=""
5493 LLVM_ENUM_ASM_PARSERS=""
5494 LLVM_ENUM_DISASSEMBLERS=""
5495 for target_to_build in $TARGETS_TO_BUILD; do
5496   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5497   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5498     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5499   fi
5500   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5501     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5502   fi
5503   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5504     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5505   fi
5506 done
5507
5508
5509
5510
5511
5512
5513 # Check whether --with-optimize-option was given.
5514 if test "${with_optimize_option+set}" = set; then
5515   withval=$with_optimize_option;
5516 else
5517   withval=default
5518 fi
5519
5520 { echo "$as_me:$LINENO: checking optimization flags" >&5
5521 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5522 case "$withval" in
5523   default)
5524     case "$llvm_cv_os_type" in
5525     FreeBSD) optimize_option=-O2 ;;
5526     MingW) optimize_option=-O2 ;;
5527     *)     optimize_option=-O3 ;;
5528     esac ;;
5529   *) optimize_option="$withval" ;;
5530 esac
5531 OPTIMIZE_OPTION=$optimize_option
5532
5533 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5534 echo "${ECHO_T}$optimize_option" >&6; }
5535
5536
5537 # Check whether --with-extra-options was given.
5538 if test "${with_extra_options+set}" = set; then
5539   withval=$with_extra_options;
5540 else
5541   withval=default
5542 fi
5543
5544 case "$withval" in
5545   default) EXTRA_OPTIONS= ;;
5546   *) EXTRA_OPTIONS=$withval ;;
5547 esac
5548 EXTRA_OPTIONS=$EXTRA_OPTIONS
5549
5550
5551
5552 # Check whether --with-extra-ld-options was given.
5553 if test "${with_extra_ld_options+set}" = set; then
5554   withval=$with_extra_ld_options;
5555 else
5556   withval=default
5557 fi
5558
5559 case "$withval" in
5560   default) EXTRA_LD_OPTIONS= ;;
5561   *) EXTRA_LD_OPTIONS=$withval ;;
5562 esac
5563 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5564
5565
5566 # Check whether --enable-bindings was given.
5567 if test "${enable_bindings+set}" = set; then
5568   enableval=$enable_bindings;
5569 else
5570   enableval=default
5571 fi
5572
5573 BINDINGS_TO_BUILD=""
5574 case "$enableval" in
5575   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5576   all ) BINDINGS_TO_BUILD="ocaml" ;;
5577   none | no) BINDINGS_TO_BUILD="" ;;
5578   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5579       case "$a_binding" in
5580         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5581         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5582 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5583    { (exit 1); exit 1; }; } ;;
5584       esac
5585   done
5586   ;;
5587 esac
5588
5589
5590 # Check whether --with-ocaml-libdir was given.
5591 if test "${with_ocaml_libdir+set}" = set; then
5592   withval=$with_ocaml_libdir;
5593 else
5594   withval=auto
5595 fi
5596
5597 case "$withval" in
5598   auto) with_ocaml_libdir="$withval" ;;
5599   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5600   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5601 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5602    { (exit 1); exit 1; }; } ;;
5603 esac
5604
5605
5606 # Check whether --with-clang-srcdir was given.
5607 if test "${with_clang_srcdir+set}" = set; then
5608   withval=$with_clang_srcdir;
5609 else
5610   withval="-"
5611 fi
5612
5613 case "$withval" in
5614   -) clang_src_root="" ;;
5615   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5616   *) clang_src_root="$ac_pwd/$withval" ;;
5617 esac
5618 CLANG_SRC_ROOT=$clang_src_root
5619
5620
5621
5622 # Check whether --with-clang-resource-dir was given.
5623 if test "${with_clang_resource_dir+set}" = set; then
5624   withval=$with_clang_resource_dir;
5625 else
5626   withval=""
5627 fi
5628
5629
5630 cat >>confdefs.h <<_ACEOF
5631 #define CLANG_RESOURCE_DIR "$withval"
5632 _ACEOF
5633
5634
5635
5636 # Check whether --with-c-include-dirs was given.
5637 if test "${with_c_include_dirs+set}" = set; then
5638   withval=$with_c_include_dirs;
5639 else
5640   withval=""
5641 fi
5642
5643
5644 cat >>confdefs.h <<_ACEOF
5645 #define C_INCLUDE_DIRS "$withval"
5646 _ACEOF
5647
5648
5649 # Clang normally uses the system c++ headers and libraries. With this option,
5650 # clang will use the ones provided by a gcc installation instead. This option should
5651 # be passed the same value that was used with --prefix when configuring gcc.
5652
5653 # Check whether --with-gcc-toolchain was given.
5654 if test "${with_gcc_toolchain+set}" = set; then
5655   withval=$with_gcc_toolchain;
5656 else
5657   withval=""
5658 fi
5659
5660
5661 cat >>confdefs.h <<_ACEOF
5662 #define GCC_INSTALL_PREFIX "$withval"
5663 _ACEOF
5664
5665
5666
5667 # Check whether --with-default-sysroot was given.
5668 if test "${with_default_sysroot+set}" = set; then
5669   withval=$with_default_sysroot;
5670 else
5671   withval=""
5672 fi
5673
5674
5675 cat >>confdefs.h <<_ACEOF
5676 #define DEFAULT_SYSROOT "$withval"
5677 _ACEOF
5678
5679
5680
5681 # Check whether --with-binutils-include was given.
5682 if test "${with_binutils_include+set}" = set; then
5683   withval=$with_binutils_include;
5684 else
5685   withval=default
5686 fi
5687
5688 case "$withval" in
5689   default) WITH_BINUTILS_INCDIR=default ;;
5690   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5691   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5692 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5693    { (exit 1); exit 1; }; } ;;
5694 esac
5695 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5696   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5697
5698   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5699      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5700      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5701 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5702    { (exit 1); exit 1; }; };
5703   fi
5704 fi
5705
5706
5707 # Check whether --with-bug-report-url was given.
5708 if test "${with_bug_report_url+set}" = set; then
5709   withval=$with_bug_report_url;
5710 else
5711   withval="http://llvm.org/bugs/"
5712 fi
5713
5714
5715 cat >>confdefs.h <<_ACEOF
5716 #define BUG_REPORT_URL "$withval"
5717 _ACEOF
5718
5719
5720 # Check whether --enable-terminfo was given.
5721 if test "${enable_terminfo+set}" = set; then
5722   enableval=$enable_terminfo; case "$enableval" in
5723     yes) llvm_cv_enable_terminfo="yes" ;;
5724     no)  llvm_cv_enable_terminfo="no"  ;;
5725     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5726 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5727    { (exit 1); exit 1; }; } ;;
5728   esac
5729 else
5730   llvm_cv_enable_terminfo="yes"
5731 fi
5732
5733 case "$llvm_cv_enable_terminfo" in
5734   yes) ENABLE_TERMINFO=1
5735  ;;
5736   no)  ENABLE_TERMINFO=0
5737  ;;
5738 esac
5739
5740 # Check whether --enable-libedit was given.
5741 if test "${enable_libedit+set}" = set; then
5742   enableval=$enable_libedit; case "$enableval" in
5743     yes) llvm_cv_enable_libedit="yes" ;;
5744     no)  llvm_cv_enable_libedit="no"  ;;
5745     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5746 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5747    { (exit 1); exit 1; }; } ;;
5748   esac
5749 else
5750   llvm_cv_enable_libedit="yes"
5751 fi
5752
5753
5754 # Check whether --enable-libffi was given.
5755 if test "${enable_libffi+set}" = set; then
5756   enableval=$enable_libffi; case "$enableval" in
5757     yes) llvm_cv_enable_libffi="yes" ;;
5758     no)  llvm_cv_enable_libffi="no"  ;;
5759     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5760 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5761    { (exit 1); exit 1; }; } ;;
5762   esac
5763 else
5764   llvm_cv_enable_libffi=no
5765 fi
5766
5767
5768
5769 # Check whether --with-internal-prefix was given.
5770 if test "${with_internal_prefix+set}" = set; then
5771   withval=$with_internal_prefix;
5772 else
5773   withval=""
5774 fi
5775
5776 INTERNAL_PREFIX=$withval
5777
5778
5779
5780 { echo "$as_me:$LINENO: checking for GNU make" >&5
5781 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5782 if test "${llvm_cv_gnu_make_command+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   llvm_cv_gnu_make_command=''
5786  for a in "$MAKE" make gmake gnumake ; do
5787   if test -z "$a" ; then continue ; fi ;
5788   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5789   then
5790    llvm_cv_gnu_make_command=$a ;
5791    break;
5792   fi
5793  done
5794 fi
5795 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5796 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5797  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5798    ifGNUmake='' ;
5799  else
5800    ifGNUmake='#' ;
5801    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5802 echo "${ECHO_T}\"Not found\"" >&6; };
5803  fi
5804
5805
5806 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5807 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5808 LN_S=$as_ln_s
5809 if test "$LN_S" = "ln -s"; then
5810   { echo "$as_me:$LINENO: result: yes" >&5
5811 echo "${ECHO_T}yes" >&6; }
5812 else
5813   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5814 echo "${ECHO_T}no, using $LN_S" >&6; }
5815 fi
5816
5817 # Extract the first word of "nm", so it can be a program name with args.
5818 set dummy nm; ac_word=$2
5819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5821 if test "${ac_cv_path_NM+set}" = set; then
5822   echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824   case $NM in
5825   [\\/]* | ?:[\\/]*)
5826   ac_cv_path_NM="$NM" # Let the user override the test with a path.
5827   ;;
5828   *)
5829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832   IFS=$as_save_IFS
5833   test -z "$as_dir" && as_dir=.
5834   for ac_exec_ext in '' $ac_executable_extensions; do
5835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5836     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838     break 2
5839   fi
5840 done
5841 done
5842 IFS=$as_save_IFS
5843
5844   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5845   ;;
5846 esac
5847 fi
5848 NM=$ac_cv_path_NM
5849 if test -n "$NM"; then
5850   { echo "$as_me:$LINENO: result: $NM" >&5
5851 echo "${ECHO_T}$NM" >&6; }
5852 else
5853   { echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6; }
5855 fi
5856
5857
5858 # Extract the first word of "cmp", so it can be a program name with args.
5859 set dummy cmp; ac_word=$2
5860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5862 if test "${ac_cv_path_CMP+set}" = set; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865   case $CMP in
5866   [\\/]* | ?:[\\/]*)
5867   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5868   ;;
5869   *)
5870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875   for ac_exec_ext in '' $ac_executable_extensions; do
5876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5877     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882 done
5883 IFS=$as_save_IFS
5884
5885   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5886   ;;
5887 esac
5888 fi
5889 CMP=$ac_cv_path_CMP
5890 if test -n "$CMP"; then
5891   { echo "$as_me:$LINENO: result: $CMP" >&5
5892 echo "${ECHO_T}$CMP" >&6; }
5893 else
5894   { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5896 fi
5897
5898
5899 # Extract the first word of "cp", so it can be a program name with args.
5900 set dummy cp; ac_word=$2
5901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5903 if test "${ac_cv_path_CP+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   case $CP in
5907   [\\/]* | ?:[\\/]*)
5908   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5909   ;;
5910   *)
5911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914   IFS=$as_save_IFS
5915   test -z "$as_dir" && as_dir=.
5916   for ac_exec_ext in '' $ac_executable_extensions; do
5917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5918     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920     break 2
5921   fi
5922 done
5923 done
5924 IFS=$as_save_IFS
5925
5926   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5927   ;;
5928 esac
5929 fi
5930 CP=$ac_cv_path_CP
5931 if test -n "$CP"; then
5932   { echo "$as_me:$LINENO: result: $CP" >&5
5933 echo "${ECHO_T}$CP" >&6; }
5934 else
5935   { echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6; }
5937 fi
5938
5939
5940 # Extract the first word of "date", so it can be a program name with args.
5941 set dummy date; ac_word=$2
5942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5944 if test "${ac_cv_path_DATE+set}" = set; then
5945   echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947   case $DATE in
5948   [\\/]* | ?:[\\/]*)
5949   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5950   ;;
5951   *)
5952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955   IFS=$as_save_IFS
5956   test -z "$as_dir" && as_dir=.
5957   for ac_exec_ext in '' $ac_executable_extensions; do
5958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5959     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961     break 2
5962   fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5968   ;;
5969 esac
5970 fi
5971 DATE=$ac_cv_path_DATE
5972 if test -n "$DATE"; then
5973   { echo "$as_me:$LINENO: result: $DATE" >&5
5974 echo "${ECHO_T}$DATE" >&6; }
5975 else
5976   { echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6; }
5978 fi
5979
5980
5981 # Extract the first word of "find", so it can be a program name with args.
5982 set dummy find; ac_word=$2
5983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5985 if test "${ac_cv_path_FIND+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   case $FIND in
5989   [\\/]* | ?:[\\/]*)
5990   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5991   ;;
5992   *)
5993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996   IFS=$as_save_IFS
5997   test -z "$as_dir" && as_dir=.
5998   for ac_exec_ext in '' $ac_executable_extensions; do
5999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6000     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002     break 2
6003   fi
6004 done
6005 done
6006 IFS=$as_save_IFS
6007
6008   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6009   ;;
6010 esac
6011 fi
6012 FIND=$ac_cv_path_FIND
6013 if test -n "$FIND"; then
6014   { echo "$as_me:$LINENO: result: $FIND" >&5
6015 echo "${ECHO_T}$FIND" >&6; }
6016 else
6017   { echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6; }
6019 fi
6020
6021
6022 # Extract the first word of "grep", so it can be a program name with args.
6023 set dummy grep; ac_word=$2
6024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6026 if test "${ac_cv_path_GREP+set}" = set; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029   case $GREP in
6030   [\\/]* | ?:[\\/]*)
6031   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6032   ;;
6033   *)
6034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037   IFS=$as_save_IFS
6038   test -z "$as_dir" && as_dir=.
6039   for ac_exec_ext in '' $ac_executable_extensions; do
6040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6041     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043     break 2
6044   fi
6045 done
6046 done
6047 IFS=$as_save_IFS
6048
6049   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6050   ;;
6051 esac
6052 fi
6053 GREP=$ac_cv_path_GREP
6054 if test -n "$GREP"; then
6055   { echo "$as_me:$LINENO: result: $GREP" >&5
6056 echo "${ECHO_T}$GREP" >&6; }
6057 else
6058   { echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6; }
6060 fi
6061
6062
6063 # Extract the first word of "mkdir", so it can be a program name with args.
6064 set dummy mkdir; ac_word=$2
6065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6067 if test "${ac_cv_path_MKDIR+set}" = set; then
6068   echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070   case $MKDIR in
6071   [\\/]* | ?:[\\/]*)
6072   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6073   ;;
6074   *)
6075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078   IFS=$as_save_IFS
6079   test -z "$as_dir" && as_dir=.
6080   for ac_exec_ext in '' $ac_executable_extensions; do
6081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6082     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084     break 2
6085   fi
6086 done
6087 done
6088 IFS=$as_save_IFS
6089
6090   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6091   ;;
6092 esac
6093 fi
6094 MKDIR=$ac_cv_path_MKDIR
6095 if test -n "$MKDIR"; then
6096   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6097 echo "${ECHO_T}$MKDIR" >&6; }
6098 else
6099   { echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6; }
6101 fi
6102
6103
6104 # Extract the first word of "mv", so it can be a program name with args.
6105 set dummy mv; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_path_MV+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   case $MV in
6112   [\\/]* | ?:[\\/]*)
6113   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6114   ;;
6115   *)
6116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119   IFS=$as_save_IFS
6120   test -z "$as_dir" && as_dir=.
6121   for ac_exec_ext in '' $ac_executable_extensions; do
6122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6123     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125     break 2
6126   fi
6127 done
6128 done
6129 IFS=$as_save_IFS
6130
6131   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6132   ;;
6133 esac
6134 fi
6135 MV=$ac_cv_path_MV
6136 if test -n "$MV"; then
6137   { echo "$as_me:$LINENO: result: $MV" >&5
6138 echo "${ECHO_T}$MV" >&6; }
6139 else
6140   { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6142 fi
6143
6144
6145 if test -n "$ac_tool_prefix"; then
6146   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6147 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_prog_RANLIB+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   if test -n "$RANLIB"; then
6154   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6155 else
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6158 do
6159   IFS=$as_save_IFS
6160   test -z "$as_dir" && as_dir=.
6161   for ac_exec_ext in '' $ac_executable_extensions; do
6162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6163     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165     break 2
6166   fi
6167 done
6168 done
6169 IFS=$as_save_IFS
6170
6171 fi
6172 fi
6173 RANLIB=$ac_cv_prog_RANLIB
6174 if test -n "$RANLIB"; then
6175   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6176 echo "${ECHO_T}$RANLIB" >&6; }
6177 else
6178   { echo "$as_me:$LINENO: result: no" >&5
6179 echo "${ECHO_T}no" >&6; }
6180 fi
6181
6182
6183 fi
6184 if test -z "$ac_cv_prog_RANLIB"; then
6185   ac_ct_RANLIB=$RANLIB
6186   # Extract the first word of "ranlib", so it can be a program name with args.
6187 set dummy ranlib; ac_word=$2
6188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193   if test -n "$ac_ct_RANLIB"; then
6194   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201   for ac_exec_ext in '' $ac_executable_extensions; do
6202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203     ac_cv_prog_ac_ct_RANLIB="ranlib"
6204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205     break 2
6206   fi
6207 done
6208 done
6209 IFS=$as_save_IFS
6210
6211 fi
6212 fi
6213 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6214 if test -n "$ac_ct_RANLIB"; then
6215   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6216 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6217 else
6218   { echo "$as_me:$LINENO: result: no" >&5
6219 echo "${ECHO_T}no" >&6; }
6220 fi
6221
6222   if test "x$ac_ct_RANLIB" = x; then
6223     RANLIB=":"
6224   else
6225     case $cross_compiling:$ac_tool_warned in
6226 yes:)
6227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6228 whose name does not start with the host triplet.  If you think this
6229 configuration is useful to you, please write to autoconf@gnu.org." >&5
6230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6231 whose name does not start with the host triplet.  If you think this
6232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6233 ac_tool_warned=yes ;;
6234 esac
6235     RANLIB=$ac_ct_RANLIB
6236   fi
6237 else
6238   RANLIB="$ac_cv_prog_RANLIB"
6239 fi
6240
6241 if test -n "$ac_tool_prefix"; then
6242   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6243 set dummy ${ac_tool_prefix}ar; ac_word=$2
6244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6246 if test "${ac_cv_prog_AR+set}" = set; then
6247   echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249   if test -n "$AR"; then
6250   ac_cv_prog_AR="$AR" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6254 do
6255   IFS=$as_save_IFS
6256   test -z "$as_dir" && as_dir=.
6257   for ac_exec_ext in '' $ac_executable_extensions; do
6258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6259     ac_cv_prog_AR="${ac_tool_prefix}ar"
6260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261     break 2
6262   fi
6263 done
6264 done
6265 IFS=$as_save_IFS
6266
6267 fi
6268 fi
6269 AR=$ac_cv_prog_AR
6270 if test -n "$AR"; then
6271   { echo "$as_me:$LINENO: result: $AR" >&5
6272 echo "${ECHO_T}$AR" >&6; }
6273 else
6274   { echo "$as_me:$LINENO: result: no" >&5
6275 echo "${ECHO_T}no" >&6; }
6276 fi
6277
6278
6279 fi
6280 if test -z "$ac_cv_prog_AR"; then
6281   ac_ct_AR=$AR
6282   # Extract the first word of "ar", so it can be a program name with args.
6283 set dummy ar; ac_word=$2
6284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6286 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6287   echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289   if test -n "$ac_ct_AR"; then
6290   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295   IFS=$as_save_IFS
6296   test -z "$as_dir" && as_dir=.
6297   for ac_exec_ext in '' $ac_executable_extensions; do
6298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6299     ac_cv_prog_ac_ct_AR="ar"
6300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301     break 2
6302   fi
6303 done
6304 done
6305 IFS=$as_save_IFS
6306
6307 fi
6308 fi
6309 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6310 if test -n "$ac_ct_AR"; then
6311   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6312 echo "${ECHO_T}$ac_ct_AR" >&6; }
6313 else
6314   { echo "$as_me:$LINENO: result: no" >&5
6315 echo "${ECHO_T}no" >&6; }
6316 fi
6317
6318   if test "x$ac_ct_AR" = x; then
6319     AR="false"
6320   else
6321     case $cross_compiling:$ac_tool_warned in
6322 yes:)
6323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6324 whose name does not start with the host triplet.  If you think this
6325 configuration is useful to you, please write to autoconf@gnu.org." >&5
6326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6327 whose name does not start with the host triplet.  If you think this
6328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6329 ac_tool_warned=yes ;;
6330 esac
6331     AR=$ac_ct_AR
6332   fi
6333 else
6334   AR="$ac_cv_prog_AR"
6335 fi
6336
6337 # Extract the first word of "rm", so it can be a program name with args.
6338 set dummy rm; ac_word=$2
6339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6341 if test "${ac_cv_path_RM+set}" = set; then
6342   echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344   case $RM in
6345   [\\/]* | ?:[\\/]*)
6346   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6347   ;;
6348   *)
6349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352   IFS=$as_save_IFS
6353   test -z "$as_dir" && as_dir=.
6354   for ac_exec_ext in '' $ac_executable_extensions; do
6355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6356     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358     break 2
6359   fi
6360 done
6361 done
6362 IFS=$as_save_IFS
6363
6364   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6365   ;;
6366 esac
6367 fi
6368 RM=$ac_cv_path_RM
6369 if test -n "$RM"; then
6370   { echo "$as_me:$LINENO: result: $RM" >&5
6371 echo "${ECHO_T}$RM" >&6; }
6372 else
6373   { echo "$as_me:$LINENO: result: no" >&5
6374 echo "${ECHO_T}no" >&6; }
6375 fi
6376
6377
6378 # Extract the first word of "sed", so it can be a program name with args.
6379 set dummy sed; ac_word=$2
6380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6382 if test "${ac_cv_path_SED+set}" = set; then
6383   echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385   case $SED in
6386   [\\/]* | ?:[\\/]*)
6387   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6388   ;;
6389   *)
6390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393   IFS=$as_save_IFS
6394   test -z "$as_dir" && as_dir=.
6395   for ac_exec_ext in '' $ac_executable_extensions; do
6396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6397     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399     break 2
6400   fi
6401 done
6402 done
6403 IFS=$as_save_IFS
6404
6405   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6406   ;;
6407 esac
6408 fi
6409 SED=$ac_cv_path_SED
6410 if test -n "$SED"; then
6411   { echo "$as_me:$LINENO: result: $SED" >&5
6412 echo "${ECHO_T}$SED" >&6; }
6413 else
6414   { echo "$as_me:$LINENO: result: no" >&5
6415 echo "${ECHO_T}no" >&6; }
6416 fi
6417
6418
6419 # Extract the first word of "tar", so it can be a program name with args.
6420 set dummy tar; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_path_TAR+set}" = set; then
6424   echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426   case $TAR in
6427   [\\/]* | ?:[\\/]*)
6428   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6429   ;;
6430   *)
6431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436   for ac_exec_ext in '' $ac_executable_extensions; do
6437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6438     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443 done
6444 IFS=$as_save_IFS
6445
6446   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6447   ;;
6448 esac
6449 fi
6450 TAR=$ac_cv_path_TAR
6451 if test -n "$TAR"; then
6452   { echo "$as_me:$LINENO: result: $TAR" >&5
6453 echo "${ECHO_T}$TAR" >&6; }
6454 else
6455   { echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6; }
6457 fi
6458
6459
6460 # Extract the first word of "pwd", so it can be a program name with args.
6461 set dummy pwd; ac_word=$2
6462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6464 if test "${ac_cv_path_BINPWD+set}" = set; then
6465   echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467   case $BINPWD in
6468   [\\/]* | ?:[\\/]*)
6469   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6470   ;;
6471   *)
6472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475   IFS=$as_save_IFS
6476   test -z "$as_dir" && as_dir=.
6477   for ac_exec_ext in '' $ac_executable_extensions; do
6478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6479     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481     break 2
6482   fi
6483 done
6484 done
6485 IFS=$as_save_IFS
6486
6487   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6488   ;;
6489 esac
6490 fi
6491 BINPWD=$ac_cv_path_BINPWD
6492 if test -n "$BINPWD"; then
6493   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6494 echo "${ECHO_T}$BINPWD" >&6; }
6495 else
6496   { echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6; }
6498 fi
6499
6500
6501
6502 # Extract the first word of "Graphviz", so it can be a program name with args.
6503 set dummy Graphviz; ac_word=$2
6504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509   case $GRAPHVIZ in
6510   [\\/]* | ?:[\\/]*)
6511   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6512   ;;
6513   *)
6514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6516 do
6517   IFS=$as_save_IFS
6518   test -z "$as_dir" && as_dir=.
6519   for ac_exec_ext in '' $ac_executable_extensions; do
6520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6521     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6523     break 2
6524   fi
6525 done
6526 done
6527 IFS=$as_save_IFS
6528
6529   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6530   ;;
6531 esac
6532 fi
6533 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6534 if test -n "$GRAPHVIZ"; then
6535   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6536 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6537 else
6538   { echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6; }
6540 fi
6541
6542
6543 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6544
6545 cat >>confdefs.h <<\_ACEOF
6546 #define HAVE_GRAPHVIZ 1
6547 _ACEOF
6548
6549     if test "$llvm_cv_os_type" = "MingW" ; then
6550     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6551   fi
6552
6553 cat >>confdefs.h <<_ACEOF
6554 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6555 _ACEOF
6556
6557 fi
6558 # Extract the first word of "dot", so it can be a program name with args.
6559 set dummy dot; ac_word=$2
6560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6562 if test "${ac_cv_path_DOT+set}" = set; then
6563   echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565   case $DOT in
6566   [\\/]* | ?:[\\/]*)
6567   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6568   ;;
6569   *)
6570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 for as_dir in $PATH
6572 do
6573   IFS=$as_save_IFS
6574   test -z "$as_dir" && as_dir=.
6575   for ac_exec_ext in '' $ac_executable_extensions; do
6576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6577     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579     break 2
6580   fi
6581 done
6582 done
6583 IFS=$as_save_IFS
6584
6585   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6586   ;;
6587 esac
6588 fi
6589 DOT=$ac_cv_path_DOT
6590 if test -n "$DOT"; then
6591   { echo "$as_me:$LINENO: result: $DOT" >&5
6592 echo "${ECHO_T}$DOT" >&6; }
6593 else
6594   { echo "$as_me:$LINENO: result: no" >&5
6595 echo "${ECHO_T}no" >&6; }
6596 fi
6597
6598
6599 if test "$DOT" != "echo dot" ; then
6600
6601 cat >>confdefs.h <<\_ACEOF
6602 #define HAVE_DOT 1
6603 _ACEOF
6604
6605     if test "$llvm_cv_os_type" = "MingW" ; then
6606     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6607   fi
6608
6609 cat >>confdefs.h <<_ACEOF
6610 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6611 _ACEOF
6612
6613 fi
6614 # Extract the first word of "fdp", so it can be a program name with args.
6615 set dummy fdp; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_path_FDP+set}" = set; then
6619   echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621   case $FDP in
6622   [\\/]* | ?:[\\/]*)
6623   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6624   ;;
6625   *)
6626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629   IFS=$as_save_IFS
6630   test -z "$as_dir" && as_dir=.
6631   for ac_exec_ext in '' $ac_executable_extensions; do
6632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6633     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635     break 2
6636   fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6642   ;;
6643 esac
6644 fi
6645 FDP=$ac_cv_path_FDP
6646 if test -n "$FDP"; then
6647   { echo "$as_me:$LINENO: result: $FDP" >&5
6648 echo "${ECHO_T}$FDP" >&6; }
6649 else
6650   { echo "$as_me:$LINENO: result: no" >&5
6651 echo "${ECHO_T}no" >&6; }
6652 fi
6653
6654
6655 if test "$FDP" != "echo fdp" ; then
6656
6657 cat >>confdefs.h <<\_ACEOF
6658 #define HAVE_FDP 1
6659 _ACEOF
6660
6661     if test "$llvm_cv_os_type" = "MingW" ; then
6662     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6663   fi
6664
6665 cat >>confdefs.h <<_ACEOF
6666 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6667 _ACEOF
6668
6669 fi
6670 # Extract the first word of "neato", so it can be a program name with args.
6671 set dummy neato; ac_word=$2
6672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6674 if test "${ac_cv_path_NEATO+set}" = set; then
6675   echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677   case $NEATO in
6678   [\\/]* | ?:[\\/]*)
6679   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6680   ;;
6681   *)
6682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685   IFS=$as_save_IFS
6686   test -z "$as_dir" && as_dir=.
6687   for ac_exec_ext in '' $ac_executable_extensions; do
6688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6689     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691     break 2
6692   fi
6693 done
6694 done
6695 IFS=$as_save_IFS
6696
6697   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6698   ;;
6699 esac
6700 fi
6701 NEATO=$ac_cv_path_NEATO
6702 if test -n "$NEATO"; then
6703   { echo "$as_me:$LINENO: result: $NEATO" >&5
6704 echo "${ECHO_T}$NEATO" >&6; }
6705 else
6706   { echo "$as_me:$LINENO: result: no" >&5
6707 echo "${ECHO_T}no" >&6; }
6708 fi
6709
6710
6711 if test "$NEATO" != "echo neato" ; then
6712
6713 cat >>confdefs.h <<\_ACEOF
6714 #define HAVE_NEATO 1
6715 _ACEOF
6716
6717     if test "$llvm_cv_os_type" = "MingW" ; then
6718     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6719   fi
6720
6721 cat >>confdefs.h <<_ACEOF
6722 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6723 _ACEOF
6724
6725 fi
6726 # Extract the first word of "twopi", so it can be a program name with args.
6727 set dummy twopi; ac_word=$2
6728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730 if test "${ac_cv_path_TWOPI+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733   case $TWOPI in
6734   [\\/]* | ?:[\\/]*)
6735   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6736   ;;
6737   *)
6738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743   for ac_exec_ext in '' $ac_executable_extensions; do
6744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6745     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750 done
6751 IFS=$as_save_IFS
6752
6753   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6754   ;;
6755 esac
6756 fi
6757 TWOPI=$ac_cv_path_TWOPI
6758 if test -n "$TWOPI"; then
6759   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6760 echo "${ECHO_T}$TWOPI" >&6; }
6761 else
6762   { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6764 fi
6765
6766
6767 if test "$TWOPI" != "echo twopi" ; then
6768
6769 cat >>confdefs.h <<\_ACEOF
6770 #define HAVE_TWOPI 1
6771 _ACEOF
6772
6773     if test "$llvm_cv_os_type" = "MingW" ; then
6774     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6775   fi
6776
6777 cat >>confdefs.h <<_ACEOF
6778 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6779 _ACEOF
6780
6781 fi
6782 # Extract the first word of "circo", so it can be a program name with args.
6783 set dummy circo; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_path_CIRCO+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   case $CIRCO in
6790   [\\/]* | ?:[\\/]*)
6791   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6792   ;;
6793   *)
6794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   test -z "$as_dir" && as_dir=.
6799   for ac_exec_ext in '' $ac_executable_extensions; do
6800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6801     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803     break 2
6804   fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6810   ;;
6811 esac
6812 fi
6813 CIRCO=$ac_cv_path_CIRCO
6814 if test -n "$CIRCO"; then
6815   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6816 echo "${ECHO_T}$CIRCO" >&6; }
6817 else
6818   { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6820 fi
6821
6822
6823 if test "$CIRCO" != "echo circo" ; then
6824
6825 cat >>confdefs.h <<\_ACEOF
6826 #define HAVE_CIRCO 1
6827 _ACEOF
6828
6829     if test "$llvm_cv_os_type" = "MingW" ; then
6830     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6831   fi
6832
6833 cat >>confdefs.h <<_ACEOF
6834 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6835 _ACEOF
6836
6837 fi
6838 for ac_prog in gv gsview32
6839 do
6840   # Extract the first word of "$ac_prog", so it can be a program name with args.
6841 set dummy $ac_prog; ac_word=$2
6842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6844 if test "${ac_cv_path_GV+set}" = set; then
6845   echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847   case $GV in
6848   [\\/]* | ?:[\\/]*)
6849   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6850   ;;
6851   *)
6852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 for as_dir in $PATH
6854 do
6855   IFS=$as_save_IFS
6856   test -z "$as_dir" && as_dir=.
6857   for ac_exec_ext in '' $ac_executable_extensions; do
6858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6859     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861     break 2
6862   fi
6863 done
6864 done
6865 IFS=$as_save_IFS
6866
6867   ;;
6868 esac
6869 fi
6870 GV=$ac_cv_path_GV
6871 if test -n "$GV"; then
6872   { echo "$as_me:$LINENO: result: $GV" >&5
6873 echo "${ECHO_T}$GV" >&6; }
6874 else
6875   { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6877 fi
6878
6879
6880   test -n "$GV" && break
6881 done
6882 test -n "$GV" || GV="echo gv"
6883
6884 if test "$GV" != "echo gv" ; then
6885
6886 cat >>confdefs.h <<\_ACEOF
6887 #define HAVE_GV 1
6888 _ACEOF
6889
6890     if test "$llvm_cv_os_type" = "MingW" ; then
6891     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6892   fi
6893
6894 cat >>confdefs.h <<_ACEOF
6895 #define LLVM_PATH_GV "$GV${EXEEXT}"
6896 _ACEOF
6897
6898 fi
6899 # Extract the first word of "dotty", so it can be a program name with args.
6900 set dummy dotty; ac_word=$2
6901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903 if test "${ac_cv_path_DOTTY+set}" = set; then
6904   echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906   case $DOTTY in
6907   [\\/]* | ?:[\\/]*)
6908   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6909   ;;
6910   *)
6911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914   IFS=$as_save_IFS
6915   test -z "$as_dir" && as_dir=.
6916   for ac_exec_ext in '' $ac_executable_extensions; do
6917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920     break 2
6921   fi
6922 done
6923 done
6924 IFS=$as_save_IFS
6925
6926   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6927   ;;
6928 esac
6929 fi
6930 DOTTY=$ac_cv_path_DOTTY
6931 if test -n "$DOTTY"; then
6932   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6933 echo "${ECHO_T}$DOTTY" >&6; }
6934 else
6935   { echo "$as_me:$LINENO: result: no" >&5
6936 echo "${ECHO_T}no" >&6; }
6937 fi
6938
6939
6940 if test "$DOTTY" != "echo dotty" ; then
6941
6942 cat >>confdefs.h <<\_ACEOF
6943 #define HAVE_DOTTY 1
6944 _ACEOF
6945
6946     if test "$llvm_cv_os_type" = "MingW" ; then
6947     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6948   fi
6949
6950 cat >>confdefs.h <<_ACEOF
6951 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6952 _ACEOF
6953
6954 fi
6955 for ac_prog in xdot xdot.py
6956 do
6957   # Extract the first word of "$ac_prog", so it can be a program name with args.
6958 set dummy $ac_prog; ac_word=$2
6959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6961 if test "${ac_cv_path_XDOT+set}" = set; then
6962   echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964   case $XDOT in
6965   [\\/]* | ?:[\\/]*)
6966   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6967   ;;
6968   *)
6969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH
6971 do
6972   IFS=$as_save_IFS
6973   test -z "$as_dir" && as_dir=.
6974   for ac_exec_ext in '' $ac_executable_extensions; do
6975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6976     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978     break 2
6979   fi
6980 done
6981 done
6982 IFS=$as_save_IFS
6983
6984   ;;
6985 esac
6986 fi
6987 XDOT=$ac_cv_path_XDOT
6988 if test -n "$XDOT"; then
6989   { echo "$as_me:$LINENO: result: $XDOT" >&5
6990 echo "${ECHO_T}$XDOT" >&6; }
6991 else
6992   { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6994 fi
6995
6996
6997   test -n "$XDOT" && break
6998 done
6999 test -n "$XDOT" || XDOT="echo xdot"
7000
7001 if test "$XDOT" != "echo xdot" ; then
7002
7003 cat >>confdefs.h <<\_ACEOF
7004 #define HAVE_XDOT 1
7005 _ACEOF
7006
7007     if test "$llvm_cv_os_type" = "MingW" ; then
7008     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7009   fi
7010
7011 cat >>confdefs.h <<_ACEOF
7012 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7013 _ACEOF
7014
7015 fi
7016
7017 # Find a good install program.  We prefer a C program (faster),
7018 # so one script is as good as another.  But avoid the broken or
7019 # incompatible versions:
7020 # SysV /etc/install, /usr/sbin/install
7021 # SunOS /usr/etc/install
7022 # IRIX /sbin/install
7023 # AIX /bin/install
7024 # AmigaOS /C/install, which installs bootblocks on floppy discs
7025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7028 # OS/2's system install, which has a completely different semantic
7029 # ./install, which can be erroneously created by make from ./install.sh.
7030 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7031 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7032 if test -z "$INSTALL"; then
7033 if test "${ac_cv_path_install+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7038 do
7039   IFS=$as_save_IFS
7040   test -z "$as_dir" && as_dir=.
7041   # Account for people who put trailing slashes in PATH elements.
7042 case $as_dir/ in
7043   ./ | .// | /cC/* | \
7044   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7045   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7046   /usr/ucb/* ) ;;
7047   *)
7048     # OSF1 and SCO ODT 3.0 have their own names for install.
7049     # Don't use installbsd from OSF since it installs stuff as root
7050     # by default.
7051     for ac_prog in ginstall scoinst install; do
7052       for ac_exec_ext in '' $ac_executable_extensions; do
7053         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7054           if test $ac_prog = install &&
7055             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7056             # AIX install.  It has an incompatible calling convention.
7057             :
7058           elif test $ac_prog = install &&
7059             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7060             # program-specific install script used by HP pwplus--don't use.
7061             :
7062           else
7063             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7064             break 3
7065           fi
7066         fi
7067       done
7068     done
7069     ;;
7070 esac
7071 done
7072 IFS=$as_save_IFS
7073
7074
7075 fi
7076   if test "${ac_cv_path_install+set}" = set; then
7077     INSTALL=$ac_cv_path_install
7078   else
7079     # As a last resort, use the slow shell script.  Don't cache a
7080     # value for INSTALL within a source directory, because that will
7081     # break other packages using the cache if that directory is
7082     # removed, or if the value is a relative name.
7083     INSTALL=$ac_install_sh
7084   fi
7085 fi
7086 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7087 echo "${ECHO_T}$INSTALL" >&6; }
7088
7089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7090 # It thinks the first close brace ends the variable substitution.
7091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7092
7093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7094
7095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7096
7097 case "$INSTALL" in
7098  [\\/$]* | ?:[\\/]* ) ;;
7099  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7100 esac
7101
7102 # Extract the first word of "bzip2", so it can be a program name with args.
7103 set dummy bzip2; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_path_BZIP2+set}" = set; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109   case $BZIP2 in
7110   [\\/]* | ?:[\\/]*)
7111   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7112   ;;
7113   *)
7114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7116 do
7117   IFS=$as_save_IFS
7118   test -z "$as_dir" && as_dir=.
7119   for ac_exec_ext in '' $ac_executable_extensions; do
7120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7121     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123     break 2
7124   fi
7125 done
7126 done
7127 IFS=$as_save_IFS
7128
7129   ;;
7130 esac
7131 fi
7132 BZIP2=$ac_cv_path_BZIP2
7133 if test -n "$BZIP2"; then
7134   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7135 echo "${ECHO_T}$BZIP2" >&6; }
7136 else
7137   { echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6; }
7139 fi
7140
7141
7142 # Extract the first word of "cat", so it can be a program name with args.
7143 set dummy cat; ac_word=$2
7144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7146 if test "${ac_cv_path_CAT+set}" = set; then
7147   echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149   case $CAT in
7150   [\\/]* | ?:[\\/]*)
7151   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7152   ;;
7153   *)
7154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7156 do
7157   IFS=$as_save_IFS
7158   test -z "$as_dir" && as_dir=.
7159   for ac_exec_ext in '' $ac_executable_extensions; do
7160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7161     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163     break 2
7164   fi
7165 done
7166 done
7167 IFS=$as_save_IFS
7168
7169   ;;
7170 esac
7171 fi
7172 CAT=$ac_cv_path_CAT
7173 if test -n "$CAT"; then
7174   { echo "$as_me:$LINENO: result: $CAT" >&5
7175 echo "${ECHO_T}$CAT" >&6; }
7176 else
7177   { echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6; }
7179 fi
7180
7181
7182 # Extract the first word of "doxygen", so it can be a program name with args.
7183 set dummy doxygen; ac_word=$2
7184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7187   echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189   case $DOXYGEN in
7190   [\\/]* | ?:[\\/]*)
7191   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7192   ;;
7193   *)
7194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7196 do
7197   IFS=$as_save_IFS
7198   test -z "$as_dir" && as_dir=.
7199   for ac_exec_ext in '' $ac_executable_extensions; do
7200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7201     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203     break 2
7204   fi
7205 done
7206 done
7207 IFS=$as_save_IFS
7208
7209   ;;
7210 esac
7211 fi
7212 DOXYGEN=$ac_cv_path_DOXYGEN
7213 if test -n "$DOXYGEN"; then
7214   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7215 echo "${ECHO_T}$DOXYGEN" >&6; }
7216 else
7217   { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7219 fi
7220
7221
7222 # Extract the first word of "groff", so it can be a program name with args.
7223 set dummy groff; ac_word=$2
7224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226 if test "${ac_cv_path_GROFF+set}" = set; then
7227   echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229   case $GROFF in
7230   [\\/]* | ?:[\\/]*)
7231   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7232   ;;
7233   *)
7234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237   IFS=$as_save_IFS
7238   test -z "$as_dir" && as_dir=.
7239   for ac_exec_ext in '' $ac_executable_extensions; do
7240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7241     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243     break 2
7244   fi
7245 done
7246 done
7247 IFS=$as_save_IFS
7248
7249   ;;
7250 esac
7251 fi
7252 GROFF=$ac_cv_path_GROFF
7253 if test -n "$GROFF"; then
7254   { echo "$as_me:$LINENO: result: $GROFF" >&5
7255 echo "${ECHO_T}$GROFF" >&6; }
7256 else
7257   { echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6; }
7259 fi
7260
7261
7262 # Extract the first word of "gzip", so it can be a program name with args.
7263 set dummy gzip; ac_word=$2
7264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269   case $GZIPBIN in
7270   [\\/]* | ?:[\\/]*)
7271   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7272   ;;
7273   *)
7274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7276 do
7277   IFS=$as_save_IFS
7278   test -z "$as_dir" && as_dir=.
7279   for ac_exec_ext in '' $ac_executable_extensions; do
7280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283     break 2
7284   fi
7285 done
7286 done
7287 IFS=$as_save_IFS
7288
7289   ;;
7290 esac
7291 fi
7292 GZIPBIN=$ac_cv_path_GZIPBIN
7293 if test -n "$GZIPBIN"; then
7294   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7295 echo "${ECHO_T}$GZIPBIN" >&6; }
7296 else
7297   { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7299 fi
7300
7301
7302 # Extract the first word of "pdfroff", so it can be a program name with args.
7303 set dummy pdfroff; ac_word=$2
7304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306 if test "${ac_cv_path_PDFROFF+set}" = set; then
7307   echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309   case $PDFROFF in
7310   [\\/]* | ?:[\\/]*)
7311   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7312   ;;
7313   *)
7314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317   IFS=$as_save_IFS
7318   test -z "$as_dir" && as_dir=.
7319   for ac_exec_ext in '' $ac_executable_extensions; do
7320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7321     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323     break 2
7324   fi
7325 done
7326 done
7327 IFS=$as_save_IFS
7328
7329   ;;
7330 esac
7331 fi
7332 PDFROFF=$ac_cv_path_PDFROFF
7333 if test -n "$PDFROFF"; then
7334   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7335 echo "${ECHO_T}$PDFROFF" >&6; }
7336 else
7337   { echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6; }
7339 fi
7340
7341
7342 # Extract the first word of "zip", so it can be a program name with args.
7343 set dummy zip; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_ZIP+set}" = set; then
7347   echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349   case $ZIP in
7350   [\\/]* | ?:[\\/]*)
7351   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7352   ;;
7353   *)
7354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357   IFS=$as_save_IFS
7358   test -z "$as_dir" && as_dir=.
7359   for ac_exec_ext in '' $ac_executable_extensions; do
7360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363     break 2
7364   fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369   ;;
7370 esac
7371 fi
7372 ZIP=$ac_cv_path_ZIP
7373 if test -n "$ZIP"; then
7374   { echo "$as_me:$LINENO: result: $ZIP" >&5
7375 echo "${ECHO_T}$ZIP" >&6; }
7376 else
7377   { echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6; }
7379 fi
7380
7381
7382 for ac_prog in ocamlc
7383 do
7384   # Extract the first word of "$ac_prog", so it can be a program name with args.
7385 set dummy $ac_prog; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_path_OCAMLC+set}" = set; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   case $OCAMLC in
7392   [\\/]* | ?:[\\/]*)
7393   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7394   ;;
7395   *)
7396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   test -z "$as_dir" && as_dir=.
7401   for ac_exec_ext in '' $ac_executable_extensions; do
7402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7403     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405     break 2
7406   fi
7407 done
7408 done
7409 IFS=$as_save_IFS
7410
7411   ;;
7412 esac
7413 fi
7414 OCAMLC=$ac_cv_path_OCAMLC
7415 if test -n "$OCAMLC"; then
7416   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7417 echo "${ECHO_T}$OCAMLC" >&6; }
7418 else
7419   { echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6; }
7421 fi
7422
7423
7424   test -n "$OCAMLC" && break
7425 done
7426
7427 for ac_prog in ocamlopt
7428 do
7429   # Extract the first word of "$ac_prog", so it can be a program name with args.
7430 set dummy $ac_prog; ac_word=$2
7431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7433 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7434   echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436   case $OCAMLOPT in
7437   [\\/]* | ?:[\\/]*)
7438   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7439   ;;
7440   *)
7441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444   IFS=$as_save_IFS
7445   test -z "$as_dir" && as_dir=.
7446   for ac_exec_ext in '' $ac_executable_extensions; do
7447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7448     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450     break 2
7451   fi
7452 done
7453 done
7454 IFS=$as_save_IFS
7455
7456   ;;
7457 esac
7458 fi
7459 OCAMLOPT=$ac_cv_path_OCAMLOPT
7460 if test -n "$OCAMLOPT"; then
7461   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7462 echo "${ECHO_T}$OCAMLOPT" >&6; }
7463 else
7464   { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7466 fi
7467
7468
7469   test -n "$OCAMLOPT" && break
7470 done
7471
7472 for ac_prog in ocamldep
7473 do
7474   # Extract the first word of "$ac_prog", so it can be a program name with args.
7475 set dummy $ac_prog; ac_word=$2
7476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7479   echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481   case $OCAMLDEP in
7482   [\\/]* | ?:[\\/]*)
7483   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7484   ;;
7485   *)
7486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491   for ac_exec_ext in '' $ac_executable_extensions; do
7492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7493     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498 done
7499 IFS=$as_save_IFS
7500
7501   ;;
7502 esac
7503 fi
7504 OCAMLDEP=$ac_cv_path_OCAMLDEP
7505 if test -n "$OCAMLDEP"; then
7506   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7507 echo "${ECHO_T}$OCAMLDEP" >&6; }
7508 else
7509   { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7511 fi
7512
7513
7514   test -n "$OCAMLDEP" && break
7515 done
7516
7517 for ac_prog in ocamldoc
7518 do
7519   # Extract the first word of "$ac_prog", so it can be a program name with args.
7520 set dummy $ac_prog; ac_word=$2
7521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7523 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7524   echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526   case $OCAMLDOC in
7527   [\\/]* | ?:[\\/]*)
7528   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7529   ;;
7530   *)
7531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7533 do
7534   IFS=$as_save_IFS
7535   test -z "$as_dir" && as_dir=.
7536   for ac_exec_ext in '' $ac_executable_extensions; do
7537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7538     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540     break 2
7541   fi
7542 done
7543 done
7544 IFS=$as_save_IFS
7545
7546   ;;
7547 esac
7548 fi
7549 OCAMLDOC=$ac_cv_path_OCAMLDOC
7550 if test -n "$OCAMLDOC"; then
7551   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7552 echo "${ECHO_T}$OCAMLDOC" >&6; }
7553 else
7554   { echo "$as_me:$LINENO: result: no" >&5
7555 echo "${ECHO_T}no" >&6; }
7556 fi
7557
7558
7559   test -n "$OCAMLDOC" && break
7560 done
7561
7562 for ac_prog in gas as
7563 do
7564   # Extract the first word of "$ac_prog", so it can be a program name with args.
7565 set dummy $ac_prog; ac_word=$2
7566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568 if test "${ac_cv_path_GAS+set}" = set; then
7569   echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571   case $GAS in
7572   [\\/]* | ?:[\\/]*)
7573   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7574   ;;
7575   *)
7576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579   IFS=$as_save_IFS
7580   test -z "$as_dir" && as_dir=.
7581   for ac_exec_ext in '' $ac_executable_extensions; do
7582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7583     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585     break 2
7586   fi
7587 done
7588 done
7589 IFS=$as_save_IFS
7590
7591   ;;
7592 esac
7593 fi
7594 GAS=$ac_cv_path_GAS
7595 if test -n "$GAS"; then
7596   { echo "$as_me:$LINENO: result: $GAS" >&5
7597 echo "${ECHO_T}$GAS" >&6; }
7598 else
7599   { echo "$as_me:$LINENO: result: no" >&5
7600 echo "${ECHO_T}no" >&6; }
7601 fi
7602
7603
7604   test -n "$GAS" && break
7605 done
7606
7607
7608 { echo "$as_me:$LINENO: checking for linker version" >&5
7609 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7610 if test "${llvm_cv_link_version+set}" = set; then
7611   echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613
7614    version_string="$(ld -v 2>&1 | head -1)"
7615
7616    # Check for ld64.
7617    if (echo "$version_string" | grep -q "ld64"); then
7618      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7619    else
7620      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7621    fi
7622
7623 fi
7624 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7625 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7626
7627 cat >>confdefs.h <<_ACEOF
7628 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7629 _ACEOF
7630
7631
7632
7633
7634 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7635 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7636 if test "${llvm_cv_link_use_r+set}" = set; then
7637   echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639    ac_ext=c
7640 ac_cpp='$CPP $CPPFLAGS'
7641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644
7645   oldcflags="$CFLAGS"
7646   CFLAGS="$CFLAGS -Wl,-R."
7647   cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h.  */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h.  */
7653
7654 int
7655 main ()
7656 {
7657
7658   ;
7659   return 0;
7660 }
7661 _ACEOF
7662 rm -f conftest.$ac_objext conftest$ac_exeext
7663 if { (ac_try="$ac_link"
7664 case "(($ac_try" in
7665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666   *) ac_try_echo=$ac_try;;
7667 esac
7668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669   (eval "$ac_link") 2>conftest.er1
7670   ac_status=$?
7671   grep -v '^ *+' conftest.er1 >conftest.err
7672   rm -f conftest.er1
7673   cat conftest.err >&5
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); } &&
7676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7677   { (case "(($ac_try" in
7678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679   *) ac_try_echo=$ac_try;;
7680 esac
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682   (eval "$ac_try") 2>&5
7683   ac_status=$?
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); }; } &&
7686          { ac_try='test -s conftest$ac_exeext'
7687   { (case "(($ac_try" in
7688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689   *) ac_try_echo=$ac_try;;
7690 esac
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692   (eval "$ac_try") 2>&5
7693   ac_status=$?
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); }; }; then
7696   llvm_cv_link_use_r=yes
7697 else
7698   echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7700
7701         llvm_cv_link_use_r=no
7702 fi
7703
7704 rm -f core conftest.err conftest.$ac_objext \
7705       conftest$ac_exeext conftest.$ac_ext
7706   CFLAGS="$oldcflags"
7707   ac_ext=c
7708 ac_cpp='$CPP $CPPFLAGS'
7709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712
7713
7714 fi
7715 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7716 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7717 if test "$llvm_cv_link_use_r" = yes ; then
7718
7719 cat >>confdefs.h <<\_ACEOF
7720 #define HAVE_LINK_R 1
7721 _ACEOF
7722
7723   fi
7724
7725
7726 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7727 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7728 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731    ac_ext=c
7732 ac_cpp='$CPP $CPPFLAGS'
7733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7736
7737   oldcflags="$CFLAGS"
7738   CFLAGS="$CFLAGS -rdynamic"
7739   cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h.  */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h.  */
7745
7746 int
7747 main ()
7748 {
7749
7750   ;
7751   return 0;
7752 }
7753 _ACEOF
7754 rm -f conftest.$ac_objext conftest$ac_exeext
7755 if { (ac_try="$ac_link"
7756 case "(($ac_try" in
7757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758   *) ac_try_echo=$ac_try;;
7759 esac
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761   (eval "$ac_link") 2>conftest.er1
7762   ac_status=$?
7763   grep -v '^ *+' conftest.er1 >conftest.err
7764   rm -f conftest.er1
7765   cat conftest.err >&5
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); } &&
7768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7769   { (case "(($ac_try" in
7770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771   *) ac_try_echo=$ac_try;;
7772 esac
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774   (eval "$ac_try") 2>&5
7775   ac_status=$?
7776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777   (exit $ac_status); }; } &&
7778          { ac_try='test -s conftest$ac_exeext'
7779   { (case "(($ac_try" in
7780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781   *) ac_try_echo=$ac_try;;
7782 esac
7783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7784   (eval "$ac_try") 2>&5
7785   ac_status=$?
7786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787   (exit $ac_status); }; }; then
7788   llvm_cv_link_use_export_dynamic=yes
7789 else
7790   echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7792
7793         llvm_cv_link_use_export_dynamic=no
7794 fi
7795
7796 rm -f core conftest.err conftest.$ac_objext \
7797       conftest$ac_exeext conftest.$ac_ext
7798   CFLAGS="$oldcflags"
7799   ac_ext=c
7800 ac_cpp='$CPP $CPPFLAGS'
7801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804
7805
7806 fi
7807 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7808 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7809 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7810
7811 cat >>confdefs.h <<\_ACEOF
7812 #define HAVE_LINK_EXPORT_DYNAMIC 1
7813 _ACEOF
7814
7815   fi
7816
7817
7818 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7819 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7820 if test "${llvm_cv_link_use_version_script+set}" = set; then
7821   echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823    ac_ext=c
7824 ac_cpp='$CPP $CPPFLAGS'
7825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7828
7829   oldcflags="$CFLAGS"
7830
7831   # The following code is from the autoconf manual,
7832   # "11.13: Limitations of Usual Tools".
7833   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7834   # Use mktemp if possible; otherwise fall back on mkdir,
7835   # with $RANDOM to make collisions less likely.
7836   : ${TMPDIR=/tmp}
7837   {
7838     tmp=`
7839       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7840     ` &&
7841     test -n "$tmp" && test -d "$tmp"
7842   } || {
7843     tmp=$TMPDIR/foo$$-$RANDOM
7844     (umask 077 && mkdir "$tmp")
7845   } || exit $?
7846
7847   echo "{" > "$tmp/export.map"
7848   echo "  global: main;" >> "$tmp/export.map"
7849   echo "  local: *;" >> "$tmp/export.map"
7850   echo "};" >> "$tmp/export.map"
7851
7852   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7853   cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h.  */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h.  */
7859
7860 int
7861 main ()
7862 {
7863
7864   ;
7865   return 0;
7866 }
7867 _ACEOF
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (ac_try="$ac_link"
7870 case "(($ac_try" in
7871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872   *) ac_try_echo=$ac_try;;
7873 esac
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875   (eval "$ac_link") 2>conftest.er1
7876   ac_status=$?
7877   grep -v '^ *+' conftest.er1 >conftest.err
7878   rm -f conftest.er1
7879   cat conftest.err >&5
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); } &&
7882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7883   { (case "(($ac_try" in
7884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885   *) ac_try_echo=$ac_try;;
7886 esac
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888   (eval "$ac_try") 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }; } &&
7892          { ac_try='test -s conftest$ac_exeext'
7893   { (case "(($ac_try" in
7894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895   *) ac_try_echo=$ac_try;;
7896 esac
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898   (eval "$ac_try") 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; }; then
7902   llvm_cv_link_use_version_script=yes
7903 else
7904   echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907         llvm_cv_link_use_version_script=no
7908 fi
7909
7910 rm -f core conftest.err conftest.$ac_objext \
7911       conftest$ac_exeext conftest.$ac_ext
7912   rm "$tmp/export.map"
7913   rmdir "$tmp"
7914   CFLAGS="$oldcflags"
7915   ac_ext=c
7916 ac_cpp='$CPP $CPPFLAGS'
7917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7920
7921
7922 fi
7923 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7924 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7925 if test "$llvm_cv_link_use_version_script" = yes ; then
7926   HAVE_LINK_VERSION_SCRIPT=1
7927
7928   fi
7929
7930
7931
7932 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7933 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7934 if test "${ac_cv_path_GREP+set}" = set; then
7935   echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937   # Extract the first word of "grep ggrep" to use in msg output
7938 if test -z "$GREP"; then
7939 set dummy grep ggrep; ac_prog_name=$2
7940 if test "${ac_cv_path_GREP+set}" = set; then
7941   echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943   ac_path_GREP_found=false
7944 # Loop through the user's path and test for each of PROGNAME-LIST
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7947 do
7948   IFS=$as_save_IFS
7949   test -z "$as_dir" && as_dir=.
7950   for ac_prog in grep ggrep; do
7951   for ac_exec_ext in '' $ac_executable_extensions; do
7952     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7953     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7954     # Check for GNU ac_path_GREP and select it if it is found.
7955   # Check for GNU $ac_path_GREP
7956 case `"$ac_path_GREP" --version 2>&1` in
7957 *GNU*)
7958   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7959 *)
7960   ac_count=0
7961   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7962   while :
7963   do
7964     cat "conftest.in" "conftest.in" >"conftest.tmp"
7965     mv "conftest.tmp" "conftest.in"
7966     cp "conftest.in" "conftest.nl"
7967     echo 'GREP' >> "conftest.nl"
7968     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7969     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7970     ac_count=`expr $ac_count + 1`
7971     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7972       # Best one so far, save it but keep looking for a better one
7973       ac_cv_path_GREP="$ac_path_GREP"
7974       ac_path_GREP_max=$ac_count
7975     fi
7976     # 10*(2^10) chars as input seems more than enough
7977     test $ac_count -gt 10 && break
7978   done
7979   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7980 esac
7981
7982
7983     $ac_path_GREP_found && break 3
7984   done
7985 done
7986
7987 done
7988 IFS=$as_save_IFS
7989
7990
7991 fi
7992
7993 GREP="$ac_cv_path_GREP"
7994 if test -z "$GREP"; then
7995   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7996 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7997    { (exit 1); exit 1; }; }
7998 fi
7999
8000 else
8001   ac_cv_path_GREP=$GREP
8002 fi
8003
8004
8005 fi
8006 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8007 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8008  GREP="$ac_cv_path_GREP"
8009
8010
8011 { echo "$as_me:$LINENO: checking for egrep" >&5
8012 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8013 if test "${ac_cv_path_EGREP+set}" = set; then
8014   echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8017    then ac_cv_path_EGREP="$GREP -E"
8018    else
8019      # Extract the first word of "egrep" to use in msg output
8020 if test -z "$EGREP"; then
8021 set dummy egrep; ac_prog_name=$2
8022 if test "${ac_cv_path_EGREP+set}" = set; then
8023   echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025   ac_path_EGREP_found=false
8026 # Loop through the user's path and test for each of PROGNAME-LIST
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8029 do
8030   IFS=$as_save_IFS
8031   test -z "$as_dir" && as_dir=.
8032   for ac_prog in egrep; do
8033   for ac_exec_ext in '' $ac_executable_extensions; do
8034     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8035     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8036     # Check for GNU ac_path_EGREP and select it if it is found.
8037   # Check for GNU $ac_path_EGREP
8038 case `"$ac_path_EGREP" --version 2>&1` in
8039 *GNU*)
8040   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8041 *)
8042   ac_count=0
8043   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8044   while :
8045   do
8046     cat "conftest.in" "conftest.in" >"conftest.tmp"
8047     mv "conftest.tmp" "conftest.in"
8048     cp "conftest.in" "conftest.nl"
8049     echo 'EGREP' >> "conftest.nl"
8050     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8051     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8052     ac_count=`expr $ac_count + 1`
8053     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8054       # Best one so far, save it but keep looking for a better one
8055       ac_cv_path_EGREP="$ac_path_EGREP"
8056       ac_path_EGREP_max=$ac_count
8057     fi
8058     # 10*(2^10) chars as input seems more than enough
8059     test $ac_count -gt 10 && break
8060   done
8061   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8062 esac
8063
8064
8065     $ac_path_EGREP_found && break 3
8066   done
8067 done
8068
8069 done
8070 IFS=$as_save_IFS
8071
8072
8073 fi
8074
8075 EGREP="$ac_cv_path_EGREP"
8076 if test -z "$EGREP"; then
8077   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8078 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8079    { (exit 1); exit 1; }; }
8080 fi
8081
8082 else
8083   ac_cv_path_EGREP=$EGREP
8084 fi
8085
8086
8087    fi
8088 fi
8089 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8090 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8091  EGREP="$ac_cv_path_EGREP"
8092
8093
8094 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8095 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8096 if test "${ac_cv_header_stdc+set}" = set; then
8097   echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099   cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h.  */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h.  */
8105 #include <stdlib.h>
8106 #include <stdarg.h>
8107 #include <string.h>
8108 #include <float.h>
8109
8110 int
8111 main ()
8112 {
8113
8114   ;
8115   return 0;
8116 }
8117 _ACEOF
8118 rm -f conftest.$ac_objext
8119 if { (ac_try="$ac_compile"
8120 case "(($ac_try" in
8121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122   *) ac_try_echo=$ac_try;;
8123 esac
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125   (eval "$ac_compile") 2>conftest.er1
8126   ac_status=$?
8127   grep -v '^ *+' conftest.er1 >conftest.err
8128   rm -f conftest.er1
8129   cat conftest.err >&5
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); } &&
8132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8133   { (case "(($ac_try" in
8134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135   *) ac_try_echo=$ac_try;;
8136 esac
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138   (eval "$ac_try") 2>&5
8139   ac_status=$?
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); }; } &&
8142          { ac_try='test -s conftest.$ac_objext'
8143   { (case "(($ac_try" in
8144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145   *) ac_try_echo=$ac_try;;
8146 esac
8147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8148   (eval "$ac_try") 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); }; }; then
8152   ac_cv_header_stdc=yes
8153 else
8154   echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8156
8157         ac_cv_header_stdc=no
8158 fi
8159
8160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161
8162 if test $ac_cv_header_stdc = yes; then
8163   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8164   cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170 #include <string.h>
8171
8172 _ACEOF
8173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8174   $EGREP "memchr" >/dev/null 2>&1; then
8175   :
8176 else
8177   ac_cv_header_stdc=no
8178 fi
8179 rm -f conftest*
8180
8181 fi
8182
8183 if test $ac_cv_header_stdc = yes; then
8184   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8185   cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h.  */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h.  */
8191 #include <stdlib.h>
8192
8193 _ACEOF
8194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8195   $EGREP "free" >/dev/null 2>&1; then
8196   :
8197 else
8198   ac_cv_header_stdc=no
8199 fi
8200 rm -f conftest*
8201
8202 fi
8203
8204 if test $ac_cv_header_stdc = yes; then
8205   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8206   if test "$cross_compiling" = yes; then
8207   :
8208 else
8209   cat >conftest.$ac_ext <<_ACEOF
8210 /* confdefs.h.  */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h.  */
8215 #include <ctype.h>
8216 #include <stdlib.h>
8217 #if ((' ' & 0x0FF) == 0x020)
8218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8220 #else
8221 # define ISLOWER(c) \
8222                    (('a' <= (c) && (c) <= 'i') \
8223                      || ('j' <= (c) && (c) <= 'r') \
8224                      || ('s' <= (c) && (c) <= 'z'))
8225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8226 #endif
8227
8228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8229 int
8230 main ()
8231 {
8232   int i;
8233   for (i = 0; i < 256; i++)
8234     if (XOR (islower (i), ISLOWER (i))
8235         || toupper (i) != TOUPPER (i))
8236       return 2;
8237   return 0;
8238 }
8239 _ACEOF
8240 rm -f conftest$ac_exeext
8241 if { (ac_try="$ac_link"
8242 case "(($ac_try" in
8243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244   *) ac_try_echo=$ac_try;;
8245 esac
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247   (eval "$ac_link") 2>&5
8248   ac_status=$?
8249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8251   { (case "(($ac_try" in
8252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253   *) ac_try_echo=$ac_try;;
8254 esac
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256   (eval "$ac_try") 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); }; }; then
8260   :
8261 else
8262   echo "$as_me: program exited with status $ac_status" >&5
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8265
8266 ( exit $ac_status )
8267 ac_cv_header_stdc=no
8268 fi
8269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8270 fi
8271
8272
8273 fi
8274 fi
8275 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8276 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8277 if test $ac_cv_header_stdc = yes; then
8278
8279 cat >>confdefs.h <<\_ACEOF
8280 #define STDC_HEADERS 1
8281 _ACEOF
8282
8283 fi
8284
8285 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8296                   inttypes.h stdint.h unistd.h
8297 do
8298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304   cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h.  */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h.  */
8310 $ac_includes_default
8311
8312 #include <$ac_header>
8313 _ACEOF
8314 rm -f conftest.$ac_objext
8315 if { (ac_try="$ac_compile"
8316 case "(($ac_try" in
8317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318   *) ac_try_echo=$ac_try;;
8319 esac
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321   (eval "$ac_compile") 2>conftest.er1
8322   ac_status=$?
8323   grep -v '^ *+' conftest.er1 >conftest.err
8324   rm -f conftest.er1
8325   cat conftest.err >&5
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); } &&
8328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8329   { (case "(($ac_try" in
8330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331   *) ac_try_echo=$ac_try;;
8332 esac
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334   (eval "$ac_try") 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); }; } &&
8338          { ac_try='test -s conftest.$ac_objext'
8339   { (case "(($ac_try" in
8340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8341   *) ac_try_echo=$ac_try;;
8342 esac
8343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8344   (eval "$ac_try") 2>&5
8345   ac_status=$?
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); }; }; then
8348   eval "$as_ac_Header=yes"
8349 else
8350   echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8352
8353         eval "$as_ac_Header=no"
8354 fi
8355
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 fi
8358 ac_res=`eval echo '${'$as_ac_Header'}'`
8359                { echo "$as_me:$LINENO: result: $ac_res" >&5
8360 echo "${ECHO_T}$ac_res" >&6; }
8361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8362   cat >>confdefs.h <<_ACEOF
8363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8364 _ACEOF
8365
8366 fi
8367
8368 done
8369
8370
8371
8372 for ac_header in errno.h
8373 do
8374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8376   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8379   echo $ECHO_N "(cached) $ECHO_C" >&6
8380 fi
8381 ac_res=`eval echo '${'$as_ac_Header'}'`
8382                { echo "$as_me:$LINENO: result: $ac_res" >&5
8383 echo "${ECHO_T}$ac_res" >&6; }
8384 else
8385   # Is the header compilable?
8386 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8388 cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h.  */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h.  */
8394 $ac_includes_default
8395 #include <$ac_header>
8396 _ACEOF
8397 rm -f conftest.$ac_objext
8398 if { (ac_try="$ac_compile"
8399 case "(($ac_try" in
8400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401   *) ac_try_echo=$ac_try;;
8402 esac
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404   (eval "$ac_compile") 2>conftest.er1
8405   ac_status=$?
8406   grep -v '^ *+' conftest.er1 >conftest.err
8407   rm -f conftest.er1
8408   cat conftest.err >&5
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); } &&
8411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8412   { (case "(($ac_try" in
8413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414   *) ac_try_echo=$ac_try;;
8415 esac
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417   (eval "$ac_try") 2>&5
8418   ac_status=$?
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); }; } &&
8421          { ac_try='test -s conftest.$ac_objext'
8422   { (case "(($ac_try" in
8423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424   *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427   (eval "$ac_try") 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); }; }; then
8431   ac_header_compiler=yes
8432 else
8433   echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8435
8436         ac_header_compiler=no
8437 fi
8438
8439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8441 echo "${ECHO_T}$ac_header_compiler" >&6; }
8442
8443 # Is the header present?
8444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8446 cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h.  */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h.  */
8452 #include <$ac_header>
8453 _ACEOF
8454 if { (ac_try="$ac_cpp conftest.$ac_ext"
8455 case "(($ac_try" in
8456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457   *) ac_try_echo=$ac_try;;
8458 esac
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8461   ac_status=$?
8462   grep -v '^ *+' conftest.er1 >conftest.err
8463   rm -f conftest.er1
8464   cat conftest.err >&5
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); } >/dev/null; then
8467   if test -s conftest.err; then
8468     ac_cpp_err=$ac_c_preproc_warn_flag
8469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8470   else
8471     ac_cpp_err=
8472   fi
8473 else
8474   ac_cpp_err=yes
8475 fi
8476 if test -z "$ac_cpp_err"; then
8477   ac_header_preproc=yes
8478 else
8479   echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8481
8482   ac_header_preproc=no
8483 fi
8484
8485 rm -f conftest.err conftest.$ac_ext
8486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8487 echo "${ECHO_T}$ac_header_preproc" >&6; }
8488
8489 # So?  What about this header?
8490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8491   yes:no: )
8492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8496     ac_header_preproc=yes
8497     ;;
8498   no:yes:* )
8499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8501     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8502 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8503     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8505     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8506 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8509     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8511     ( cat <<\_ASBOX
8512 ## ------------------------------------ ##
8513 ## Report this to http://llvm.org/bugs/ ##
8514 ## ------------------------------------ ##
8515 _ASBOX
8516      ) | sed "s/^/$as_me: WARNING:     /" >&2
8517     ;;
8518 esac
8519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   eval "$as_ac_Header=\$ac_header_preproc"
8525 fi
8526 ac_res=`eval echo '${'$as_ac_Header'}'`
8527                { echo "$as_me:$LINENO: result: $ac_res" >&5
8528 echo "${ECHO_T}$ac_res" >&6; }
8529
8530 fi
8531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8532   cat >>confdefs.h <<_ACEOF
8533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8534 _ACEOF
8535
8536 fi
8537
8538 done
8539
8540
8541 case "$llvm_cv_os_type" in
8542   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8543   Darwin) llvm_shlib_ext=.dylib ;;
8544   *) llvm_shlib_ext=.so ;;
8545 esac
8546
8547
8548 cat >>confdefs.h <<_ACEOF
8549 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8550 _ACEOF
8551
8552
8553 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8554 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8555
8556 ICC=no
8557 IXX=no
8558 case $CC in
8559   icc*|icpc*)
8560     ICC=yes
8561     IXX=yes
8562     ;;
8563    *)
8564     ;;
8565 esac
8566
8567 if test "$GCC" != "yes" && test "$ICC" != "yes"
8568 then
8569   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8570 echo "$as_me: error: gcc|icc required but not found" >&2;}
8571    { (exit 1); exit 1; }; }
8572 fi
8573
8574 if test "$GXX" != "yes" && test "$IXX" != "yes"
8575 then
8576   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8577 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8578    { (exit 1); exit 1; }; }
8579 fi
8580
8581 if test "$GCC" = "yes"
8582 then
8583   cat >conftest.$ac_ext <<_ACEOF
8584
8585   /* confdefs.h.  */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h.  */
8590
8591     #if !defined(__GNUC__) || __GNUC__ < 3
8592     #error Unsupported GCC version
8593     #endif
8594
8595
8596 _ACEOF
8597 rm -f conftest.$ac_objext
8598 if { (ac_try="$ac_compile"
8599 case "(($ac_try" in
8600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601   *) ac_try_echo=$ac_try;;
8602 esac
8603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604   (eval "$ac_compile") 2>conftest.er1
8605   ac_status=$?
8606   grep -v '^ *+' conftest.er1 >conftest.err
8607   rm -f conftest.er1
8608   cat conftest.err >&5
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); } &&
8611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8612   { (case "(($ac_try" in
8613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614   *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617   (eval "$ac_try") 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; } &&
8621          { ac_try='test -s conftest.$ac_objext'
8622   { (case "(($ac_try" in
8623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624   *) ac_try_echo=$ac_try;;
8625 esac
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627   (eval "$ac_try") 2>&5
8628   ac_status=$?
8629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630   (exit $ac_status); }; }; then
8631   :
8632 else
8633   echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8635
8636         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8637 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8638    { (exit 1); exit 1; }; }
8639 fi
8640
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642 fi
8643
8644 if test -z "$llvm_cv_gnu_make_command"
8645 then
8646   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8647 echo "$as_me: error: GNU Make required but not found" >&2;}
8648    { (exit 1); exit 1; }; }
8649 fi
8650
8651 { echo "$as_me:$LINENO: result: ok" >&5
8652 echo "${ECHO_T}ok" >&6; }
8653
8654 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8655 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8656 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8657
8658 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8659
8660 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8661
8662
8663 NO_UNINITIALIZED=
8664 NO_MAYBE_UNINITIALIZED=
8665 if test "$GXX" = "yes"
8666 then
8667   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8668
8669         if test -z "$NO_MAYBE_UNINITIALIZED"
8670   then
8671     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8672
8673   fi
8674 fi
8675 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8676 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8677
8678
8679 # Check whether --with-python was given.
8680 if test "${with_python+set}" = set; then
8681   withval=$with_python; PYTHON="$withval"
8682 fi
8683
8684
8685 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8686   { echo "$as_me:$LINENO: checking for python" >&5
8687 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8688   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8689 echo "${ECHO_T}user defined: $with_python" >&6; }
8690 else
8691   if test -n "$PYTHON" ; then
8692     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8693 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8694   fi
8695
8696   # Extract the first word of "python python2 python26", so it can be a program name with args.
8697 set dummy python python2 python26; ac_word=$2
8698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8700 if test "${ac_cv_path_PYTHON+set}" = set; then
8701   echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703   case $PYTHON in
8704   [\\/]* | ?:[\\/]*)
8705   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8706   ;;
8707   *)
8708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709 for as_dir in $PATH
8710 do
8711   IFS=$as_save_IFS
8712   test -z "$as_dir" && as_dir=.
8713   for ac_exec_ext in '' $ac_executable_extensions; do
8714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8715     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8717     break 2
8718   fi
8719 done
8720 done
8721 IFS=$as_save_IFS
8722
8723   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8724 echo "${ECHO_T}not found" >&6; }
8725                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8726 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8727    { (exit 1); exit 1; }; }"
8728   ;;
8729 esac
8730 fi
8731 PYTHON=$ac_cv_path_PYTHON
8732 if test -n "$PYTHON"; then
8733   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8734 echo "${ECHO_T}$PYTHON" >&6; }
8735 else
8736   { echo "$as_me:$LINENO: result: no" >&5
8737 echo "${ECHO_T}no" >&6; }
8738 fi
8739
8740
8741 fi
8742
8743 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8744 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8745 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8746 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8747 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8748 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8749 if test "$ac_python_version_major" -gt "2" || \
8750    (test "$ac_python_version_major" -eq "2" && \
8751     test "$ac_python_version_minor" -ge "5") ; then
8752   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8753 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8754 else
8755   { echo "$as_me:$LINENO: result: not found" >&5
8756 echo "${ECHO_T}not found" >&6; }
8757   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8758 See \`config.log' for more details." >&5
8759 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8760 See \`config.log' for more details." >&2;}
8761    { (exit 1); exit 1; }; }
8762 fi
8763
8764
8765
8766 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8767 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8768 if test "${ac_cv_lib_m_sin+set}" = set; then
8769   echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771   ac_check_lib_save_LIBS=$LIBS
8772 LIBS="-lm  $LIBS"
8773 cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h.  */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h.  */
8779
8780 /* Override any GCC internal prototype to avoid an error.
8781    Use char because int might match the return type of a GCC
8782    builtin and then its argument prototype would still apply.  */
8783 #ifdef __cplusplus
8784 extern "C"
8785 #endif
8786 char sin ();
8787 int
8788 main ()
8789 {
8790 return sin ();
8791   ;
8792   return 0;
8793 }
8794 _ACEOF
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (ac_try="$ac_link"
8797 case "(($ac_try" in
8798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799   *) ac_try_echo=$ac_try;;
8800 esac
8801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8802   (eval "$ac_link") 2>conftest.er1
8803   ac_status=$?
8804   grep -v '^ *+' conftest.er1 >conftest.err
8805   rm -f conftest.er1
8806   cat conftest.err >&5
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); } &&
8809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8810   { (case "(($ac_try" in
8811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812   *) ac_try_echo=$ac_try;;
8813 esac
8814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815   (eval "$ac_try") 2>&5
8816   ac_status=$?
8817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818   (exit $ac_status); }; } &&
8819          { ac_try='test -s conftest$ac_exeext'
8820   { (case "(($ac_try" in
8821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822   *) ac_try_echo=$ac_try;;
8823 esac
8824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825   (eval "$ac_try") 2>&5
8826   ac_status=$?
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); }; }; then
8829   ac_cv_lib_m_sin=yes
8830 else
8831   echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.$ac_ext >&5
8833
8834         ac_cv_lib_m_sin=no
8835 fi
8836
8837 rm -f core conftest.err conftest.$ac_objext \
8838       conftest$ac_exeext conftest.$ac_ext
8839 LIBS=$ac_check_lib_save_LIBS
8840 fi
8841 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8842 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8843 if test $ac_cv_lib_m_sin = yes; then
8844   cat >>confdefs.h <<_ACEOF
8845 #define HAVE_LIBM 1
8846 _ACEOF
8847
8848   LIBS="-lm $LIBS"
8849
8850 fi
8851
8852 if test "$llvm_cv_os_type" = "MingW" ; then
8853
8854 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8855 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8856 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8857   echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859   ac_check_lib_save_LIBS=$LIBS
8860 LIBS="-limagehlp  $LIBS"
8861 cat >conftest.$ac_ext <<_ACEOF
8862 /* confdefs.h.  */
8863 _ACEOF
8864 cat confdefs.h >>conftest.$ac_ext
8865 cat >>conftest.$ac_ext <<_ACEOF
8866 /* end confdefs.h.  */
8867
8868
8869 int
8870 main ()
8871 {
8872 return main ();
8873   ;
8874   return 0;
8875 }
8876 _ACEOF
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878 if { (ac_try="$ac_link"
8879 case "(($ac_try" in
8880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881   *) ac_try_echo=$ac_try;;
8882 esac
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884   (eval "$ac_link") 2>conftest.er1
8885   ac_status=$?
8886   grep -v '^ *+' conftest.er1 >conftest.err
8887   rm -f conftest.er1
8888   cat conftest.err >&5
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); } &&
8891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8892   { (case "(($ac_try" in
8893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894   *) ac_try_echo=$ac_try;;
8895 esac
8896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897   (eval "$ac_try") 2>&5
8898   ac_status=$?
8899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); }; } &&
8901          { ac_try='test -s conftest$ac_exeext'
8902   { (case "(($ac_try" in
8903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904   *) ac_try_echo=$ac_try;;
8905 esac
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907   (eval "$ac_try") 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); }; }; then
8911   ac_cv_lib_imagehlp_main=yes
8912 else
8913   echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916         ac_cv_lib_imagehlp_main=no
8917 fi
8918
8919 rm -f core conftest.err conftest.$ac_objext \
8920       conftest$ac_exeext conftest.$ac_ext
8921 LIBS=$ac_check_lib_save_LIBS
8922 fi
8923 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8924 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8925 if test $ac_cv_lib_imagehlp_main = yes; then
8926   cat >>confdefs.h <<_ACEOF
8927 #define HAVE_LIBIMAGEHLP 1
8928 _ACEOF
8929
8930   LIBS="-limagehlp $LIBS"
8931
8932 fi
8933
8934
8935 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8936 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8937 if test "${ac_cv_lib_psapi_main+set}" = set; then
8938   echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940   ac_check_lib_save_LIBS=$LIBS
8941 LIBS="-lpsapi  $LIBS"
8942 cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h.  */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h.  */
8948
8949
8950 int
8951 main ()
8952 {
8953 return main ();
8954   ;
8955   return 0;
8956 }
8957 _ACEOF
8958 rm -f conftest.$ac_objext conftest$ac_exeext
8959 if { (ac_try="$ac_link"
8960 case "(($ac_try" in
8961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962   *) ac_try_echo=$ac_try;;
8963 esac
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965   (eval "$ac_link") 2>conftest.er1
8966   ac_status=$?
8967   grep -v '^ *+' conftest.er1 >conftest.err
8968   rm -f conftest.er1
8969   cat conftest.err >&5
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); } &&
8972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8973   { (case "(($ac_try" in
8974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975   *) ac_try_echo=$ac_try;;
8976 esac
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978   (eval "$ac_try") 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; } &&
8982          { ac_try='test -s conftest$ac_exeext'
8983   { (case "(($ac_try" in
8984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985   *) ac_try_echo=$ac_try;;
8986 esac
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988   (eval "$ac_try") 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; }; then
8992   ac_cv_lib_psapi_main=yes
8993 else
8994   echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8996
8997         ac_cv_lib_psapi_main=no
8998 fi
8999
9000 rm -f core conftest.err conftest.$ac_objext \
9001       conftest$ac_exeext conftest.$ac_ext
9002 LIBS=$ac_check_lib_save_LIBS
9003 fi
9004 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
9005 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
9006 if test $ac_cv_lib_psapi_main = yes; then
9007   cat >>confdefs.h <<_ACEOF
9008 #define HAVE_LIBPSAPI 1
9009 _ACEOF
9010
9011   LIBS="-lpsapi $LIBS"
9012
9013 fi
9014
9015
9016 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
9017 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
9018 if test "${ac_cv_lib_shell32_main+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021   ac_check_lib_save_LIBS=$LIBS
9022 LIBS="-lshell32  $LIBS"
9023 cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h.  */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h.  */
9029
9030
9031 int
9032 main ()
9033 {
9034 return main ();
9035   ;
9036   return 0;
9037 }
9038 _ACEOF
9039 rm -f conftest.$ac_objext conftest$ac_exeext
9040 if { (ac_try="$ac_link"
9041 case "(($ac_try" in
9042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043   *) ac_try_echo=$ac_try;;
9044 esac
9045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046   (eval "$ac_link") 2>conftest.er1
9047   ac_status=$?
9048   grep -v '^ *+' conftest.er1 >conftest.err
9049   rm -f conftest.er1
9050   cat conftest.err >&5
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); } &&
9053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9054   { (case "(($ac_try" in
9055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056   *) ac_try_echo=$ac_try;;
9057 esac
9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059   (eval "$ac_try") 2>&5
9060   ac_status=$?
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); }; } &&
9063          { ac_try='test -s conftest$ac_exeext'
9064   { (case "(($ac_try" in
9065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066   *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069   (eval "$ac_try") 2>&5
9070   ac_status=$?
9071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072   (exit $ac_status); }; }; then
9073   ac_cv_lib_shell32_main=yes
9074 else
9075   echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9077
9078         ac_cv_lib_shell32_main=no
9079 fi
9080
9081 rm -f core conftest.err conftest.$ac_objext \
9082       conftest$ac_exeext conftest.$ac_ext
9083 LIBS=$ac_check_lib_save_LIBS
9084 fi
9085 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
9086 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
9087 if test $ac_cv_lib_shell32_main = yes; then
9088   cat >>confdefs.h <<_ACEOF
9089 #define HAVE_LIBSHELL32 1
9090 _ACEOF
9091
9092   LIBS="-lshell32 $LIBS"
9093
9094 fi
9095
9096 fi
9097
9098 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9099 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9100 if test "${ac_cv_search_dlopen+set}" = set; then
9101   echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103   ac_func_search_save_LIBS=$LIBS
9104 cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h.  */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h.  */
9110
9111 /* Override any GCC internal prototype to avoid an error.
9112    Use char because int might match the return type of a GCC
9113    builtin and then its argument prototype would still apply.  */
9114 #ifdef __cplusplus
9115 extern "C"
9116 #endif
9117 char dlopen ();
9118 int
9119 main ()
9120 {
9121 return dlopen ();
9122   ;
9123   return 0;
9124 }
9125 _ACEOF
9126 for ac_lib in '' dl; do
9127   if test -z "$ac_lib"; then
9128     ac_res="none required"
9129   else
9130     ac_res=-l$ac_lib
9131     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9132   fi
9133   rm -f conftest.$ac_objext conftest$ac_exeext
9134 if { (ac_try="$ac_link"
9135 case "(($ac_try" in
9136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137   *) ac_try_echo=$ac_try;;
9138 esac
9139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140   (eval "$ac_link") 2>conftest.er1
9141   ac_status=$?
9142   grep -v '^ *+' conftest.er1 >conftest.err
9143   rm -f conftest.er1
9144   cat conftest.err >&5
9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146   (exit $ac_status); } &&
9147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9148   { (case "(($ac_try" in
9149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9150   *) ac_try_echo=$ac_try;;
9151 esac
9152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9153   (eval "$ac_try") 2>&5
9154   ac_status=$?
9155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156   (exit $ac_status); }; } &&
9157          { ac_try='test -s conftest$ac_exeext'
9158   { (case "(($ac_try" in
9159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160   *) ac_try_echo=$ac_try;;
9161 esac
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163   (eval "$ac_try") 2>&5
9164   ac_status=$?
9165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166   (exit $ac_status); }; }; then
9167   ac_cv_search_dlopen=$ac_res
9168 else
9169   echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9171
9172
9173 fi
9174
9175 rm -f core conftest.err conftest.$ac_objext \
9176       conftest$ac_exeext
9177   if test "${ac_cv_search_dlopen+set}" = set; then
9178   break
9179 fi
9180 done
9181 if test "${ac_cv_search_dlopen+set}" = set; then
9182   :
9183 else
9184   ac_cv_search_dlopen=no
9185 fi
9186 rm conftest.$ac_ext
9187 LIBS=$ac_func_search_save_LIBS
9188 fi
9189 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9190 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9191 ac_res=$ac_cv_search_dlopen
9192 if test "$ac_res" != no; then
9193   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9194
9195
9196 cat >>confdefs.h <<\_ACEOF
9197 #define HAVE_DLOPEN 1
9198 _ACEOF
9199
9200 HAVE_DLOPEN='1'
9201
9202
9203 else
9204   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9205 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9206 fi
9207
9208
9209 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9210 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9211 if test "${ac_cv_search_clock_gettime+set}" = set; then
9212   echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214   ac_func_search_save_LIBS=$LIBS
9215 cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h.  */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h.  */
9221
9222 /* Override any GCC internal prototype to avoid an error.
9223    Use char because int might match the return type of a GCC
9224    builtin and then its argument prototype would still apply.  */
9225 #ifdef __cplusplus
9226 extern "C"
9227 #endif
9228 char clock_gettime ();
9229 int
9230 main ()
9231 {
9232 return clock_gettime ();
9233   ;
9234   return 0;
9235 }
9236 _ACEOF
9237 for ac_lib in '' rt; do
9238   if test -z "$ac_lib"; then
9239     ac_res="none required"
9240   else
9241     ac_res=-l$ac_lib
9242     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9243   fi
9244   rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9252   ac_status=$?
9253   grep -v '^ *+' conftest.er1 >conftest.err
9254   rm -f conftest.er1
9255   cat conftest.err >&5
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } &&
9258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9259   { (case "(($ac_try" in
9260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261   *) ac_try_echo=$ac_try;;
9262 esac
9263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264   (eval "$ac_try") 2>&5
9265   ac_status=$?
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); }; } &&
9268          { ac_try='test -s conftest$ac_exeext'
9269   { (case "(($ac_try" in
9270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271   *) ac_try_echo=$ac_try;;
9272 esac
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274   (eval "$ac_try") 2>&5
9275   ac_status=$?
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); }; }; then
9278   ac_cv_search_clock_gettime=$ac_res
9279 else
9280   echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9282
9283
9284 fi
9285
9286 rm -f core conftest.err conftest.$ac_objext \
9287       conftest$ac_exeext
9288   if test "${ac_cv_search_clock_gettime+set}" = set; then
9289   break
9290 fi
9291 done
9292 if test "${ac_cv_search_clock_gettime+set}" = set; then
9293   :
9294 else
9295   ac_cv_search_clock_gettime=no
9296 fi
9297 rm conftest.$ac_ext
9298 LIBS=$ac_func_search_save_LIBS
9299 fi
9300 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9301 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9302 ac_res=$ac_cv_search_clock_gettime
9303 if test "$ac_res" != no; then
9304   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9305
9306 fi
9307
9308
9309 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9310     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9311 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9312 if test "${ac_cv_search_setupterm+set}" = set; then
9313   echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315   ac_func_search_save_LIBS=$LIBS
9316 cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h.  */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h.  */
9322
9323 /* Override any GCC internal prototype to avoid an error.
9324    Use char because int might match the return type of a GCC
9325    builtin and then its argument prototype would still apply.  */
9326 #ifdef __cplusplus
9327 extern "C"
9328 #endif
9329 char setupterm ();
9330 int
9331 main ()
9332 {
9333 return setupterm ();
9334   ;
9335   return 0;
9336 }
9337 _ACEOF
9338 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9339   if test -z "$ac_lib"; then
9340     ac_res="none required"
9341   else
9342     ac_res=-l$ac_lib
9343     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9344   fi
9345   rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (ac_try="$ac_link"
9347 case "(($ac_try" in
9348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349   *) ac_try_echo=$ac_try;;
9350 esac
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352   (eval "$ac_link") 2>conftest.er1
9353   ac_status=$?
9354   grep -v '^ *+' conftest.er1 >conftest.err
9355   rm -f conftest.er1
9356   cat conftest.err >&5
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); } &&
9359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9360   { (case "(($ac_try" in
9361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362   *) ac_try_echo=$ac_try;;
9363 esac
9364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9365   (eval "$ac_try") 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); }; } &&
9369          { ac_try='test -s conftest$ac_exeext'
9370   { (case "(($ac_try" in
9371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372   *) ac_try_echo=$ac_try;;
9373 esac
9374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375   (eval "$ac_try") 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); }; }; then
9379   ac_cv_search_setupterm=$ac_res
9380 else
9381   echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9383
9384
9385 fi
9386
9387 rm -f core conftest.err conftest.$ac_objext \
9388       conftest$ac_exeext
9389   if test "${ac_cv_search_setupterm+set}" = set; then
9390   break
9391 fi
9392 done
9393 if test "${ac_cv_search_setupterm+set}" = set; then
9394   :
9395 else
9396   ac_cv_search_setupterm=no
9397 fi
9398 rm conftest.$ac_ext
9399 LIBS=$ac_func_search_save_LIBS
9400 fi
9401 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9402 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9403 ac_res=$ac_cv_search_setupterm
9404 if test "$ac_res" != no; then
9405   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9406
9407
9408 cat >>confdefs.h <<\_ACEOF
9409 #define HAVE_TERMINFO 1
9410 _ACEOF
9411
9412 HAVE_TERMINFO='1'
9413
9414
9415 fi
9416
9417 fi
9418
9419 if test "$llvm_cv_enable_libedit" = "yes" ; then
9420   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9421 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9422 if test "${ac_cv_search_el_init+set}" = set; then
9423   echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425   ac_func_search_save_LIBS=$LIBS
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h.  */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h.  */
9432
9433 /* Override any GCC internal prototype to avoid an error.
9434    Use char because int might match the return type of a GCC
9435    builtin and then its argument prototype would still apply.  */
9436 #ifdef __cplusplus
9437 extern "C"
9438 #endif
9439 char el_init ();
9440 int
9441 main ()
9442 {
9443 return el_init ();
9444   ;
9445   return 0;
9446 }
9447 _ACEOF
9448 for ac_lib in '' edit; do
9449   if test -z "$ac_lib"; then
9450     ac_res="none required"
9451   else
9452     ac_res=-l$ac_lib
9453     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9454   fi
9455   rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (ac_try="$ac_link"
9457 case "(($ac_try" in
9458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459   *) ac_try_echo=$ac_try;;
9460 esac
9461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462   (eval "$ac_link") 2>conftest.er1
9463   ac_status=$?
9464   grep -v '^ *+' conftest.er1 >conftest.err
9465   rm -f conftest.er1
9466   cat conftest.err >&5
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); } &&
9469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9470   { (case "(($ac_try" in
9471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9472   *) ac_try_echo=$ac_try;;
9473 esac
9474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9475   (eval "$ac_try") 2>&5
9476   ac_status=$?
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   (exit $ac_status); }; } &&
9479          { ac_try='test -s conftest$ac_exeext'
9480   { (case "(($ac_try" in
9481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482   *) ac_try_echo=$ac_try;;
9483 esac
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485   (eval "$ac_try") 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; }; then
9489   ac_cv_search_el_init=$ac_res
9490 else
9491   echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9493
9494
9495 fi
9496
9497 rm -f core conftest.err conftest.$ac_objext \
9498       conftest$ac_exeext
9499   if test "${ac_cv_search_el_init+set}" = set; then
9500   break
9501 fi
9502 done
9503 if test "${ac_cv_search_el_init+set}" = set; then
9504   :
9505 else
9506   ac_cv_search_el_init=no
9507 fi
9508 rm conftest.$ac_ext
9509 LIBS=$ac_func_search_save_LIBS
9510 fi
9511 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9512 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9513 ac_res=$ac_cv_search_el_init
9514 if test "$ac_res" != no; then
9515   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9516
9517 cat >>confdefs.h <<\_ACEOF
9518 #define HAVE_LIBEDIT 1
9519 _ACEOF
9520
9521 fi
9522
9523 fi
9524
9525 if test "$llvm_cv_enable_libffi" = "yes" ; then
9526   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9527 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9528 if test "${ac_cv_search_ffi_call+set}" = set; then
9529   echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531   ac_func_search_save_LIBS=$LIBS
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h.  */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h.  */
9538
9539 /* Override any GCC internal prototype to avoid an error.
9540    Use char because int might match the return type of a GCC
9541    builtin and then its argument prototype would still apply.  */
9542 #ifdef __cplusplus
9543 extern "C"
9544 #endif
9545 char ffi_call ();
9546 int
9547 main ()
9548 {
9549 return ffi_call ();
9550   ;
9551   return 0;
9552 }
9553 _ACEOF
9554 for ac_lib in '' ffi; do
9555   if test -z "$ac_lib"; then
9556     ac_res="none required"
9557   else
9558     ac_res=-l$ac_lib
9559     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9560   fi
9561   rm -f conftest.$ac_objext conftest$ac_exeext
9562 if { (ac_try="$ac_link"
9563 case "(($ac_try" in
9564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565   *) ac_try_echo=$ac_try;;
9566 esac
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568   (eval "$ac_link") 2>conftest.er1
9569   ac_status=$?
9570   grep -v '^ *+' conftest.er1 >conftest.err
9571   rm -f conftest.er1
9572   cat conftest.err >&5
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); } &&
9575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9576   { (case "(($ac_try" in
9577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578   *) ac_try_echo=$ac_try;;
9579 esac
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581   (eval "$ac_try") 2>&5
9582   ac_status=$?
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); }; } &&
9585          { ac_try='test -s conftest$ac_exeext'
9586   { (case "(($ac_try" in
9587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588   *) ac_try_echo=$ac_try;;
9589 esac
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591   (eval "$ac_try") 2>&5
9592   ac_status=$?
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); }; }; then
9595   ac_cv_search_ffi_call=$ac_res
9596 else
9597   echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600
9601 fi
9602
9603 rm -f core conftest.err conftest.$ac_objext \
9604       conftest$ac_exeext
9605   if test "${ac_cv_search_ffi_call+set}" = set; then
9606   break
9607 fi
9608 done
9609 if test "${ac_cv_search_ffi_call+set}" = set; then
9610   :
9611 else
9612   ac_cv_search_ffi_call=no
9613 fi
9614 rm conftest.$ac_ext
9615 LIBS=$ac_func_search_save_LIBS
9616 fi
9617 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9618 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9619 ac_res=$ac_cv_search_ffi_call
9620 if test "$ac_res" != no; then
9621   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9622
9623 cat >>confdefs.h <<\_ACEOF
9624 #define HAVE_FFI_CALL 1
9625 _ACEOF
9626
9627 else
9628   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9629 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9630    { (exit 1); exit 1; }; }
9631 fi
9632
9633 fi
9634
9635 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9636 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9637 if test "${ac_cv_search_mallinfo+set}" = set; then
9638   echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640   ac_func_search_save_LIBS=$LIBS
9641 cat >conftest.$ac_ext <<_ACEOF
9642 /* confdefs.h.  */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h.  */
9647
9648 /* Override any GCC internal prototype to avoid an error.
9649    Use char because int might match the return type of a GCC
9650    builtin and then its argument prototype would still apply.  */
9651 #ifdef __cplusplus
9652 extern "C"
9653 #endif
9654 char mallinfo ();
9655 int
9656 main ()
9657 {
9658 return mallinfo ();
9659   ;
9660   return 0;
9661 }
9662 _ACEOF
9663 for ac_lib in '' malloc; do
9664   if test -z "$ac_lib"; then
9665     ac_res="none required"
9666   else
9667     ac_res=-l$ac_lib
9668     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9669   fi
9670   rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (ac_try="$ac_link"
9672 case "(($ac_try" in
9673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674   *) ac_try_echo=$ac_try;;
9675 esac
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677   (eval "$ac_link") 2>conftest.er1
9678   ac_status=$?
9679   grep -v '^ *+' conftest.er1 >conftest.err
9680   rm -f conftest.er1
9681   cat conftest.err >&5
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); } &&
9684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9685   { (case "(($ac_try" in
9686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687   *) ac_try_echo=$ac_try;;
9688 esac
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690   (eval "$ac_try") 2>&5
9691   ac_status=$?
9692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693   (exit $ac_status); }; } &&
9694          { ac_try='test -s conftest$ac_exeext'
9695   { (case "(($ac_try" in
9696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697   *) ac_try_echo=$ac_try;;
9698 esac
9699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700   (eval "$ac_try") 2>&5
9701   ac_status=$?
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); }; }; then
9704   ac_cv_search_mallinfo=$ac_res
9705 else
9706   echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709
9710 fi
9711
9712 rm -f core conftest.err conftest.$ac_objext \
9713       conftest$ac_exeext
9714   if test "${ac_cv_search_mallinfo+set}" = set; then
9715   break
9716 fi
9717 done
9718 if test "${ac_cv_search_mallinfo+set}" = set; then
9719   :
9720 else
9721   ac_cv_search_mallinfo=no
9722 fi
9723 rm conftest.$ac_ext
9724 LIBS=$ac_func_search_save_LIBS
9725 fi
9726 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9727 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9728 ac_res=$ac_cv_search_mallinfo
9729 if test "$ac_res" != no; then
9730   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9731
9732 cat >>confdefs.h <<\_ACEOF
9733 #define HAVE_MALLINFO 1
9734 _ACEOF
9735
9736 fi
9737
9738
9739 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9740
9741 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9742 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9743 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9744   echo $ECHO_N "(cached) $ECHO_C" >&6
9745 else
9746   ac_check_lib_save_LIBS=$LIBS
9747 LIBS="-lpthread  $LIBS"
9748 cat >conftest.$ac_ext <<_ACEOF
9749 /* confdefs.h.  */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h.  */
9754
9755 /* Override any GCC internal prototype to avoid an error.
9756    Use char because int might match the return type of a GCC
9757    builtin and then its argument prototype would still apply.  */
9758 #ifdef __cplusplus
9759 extern "C"
9760 #endif
9761 char pthread_mutex_init ();
9762 int
9763 main ()
9764 {
9765 return pthread_mutex_init ();
9766   ;
9767   return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (ac_try="$ac_link"
9772 case "(($ac_try" in
9773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774   *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777   (eval "$ac_link") 2>conftest.er1
9778   ac_status=$?
9779   grep -v '^ *+' conftest.er1 >conftest.err
9780   rm -f conftest.er1
9781   cat conftest.err >&5
9782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783   (exit $ac_status); } &&
9784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9785   { (case "(($ac_try" in
9786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787   *) ac_try_echo=$ac_try;;
9788 esac
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790   (eval "$ac_try") 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; } &&
9794          { ac_try='test -s conftest$ac_exeext'
9795   { (case "(($ac_try" in
9796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797   *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800   (eval "$ac_try") 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); }; }; then
9804   ac_cv_lib_pthread_pthread_mutex_init=yes
9805 else
9806   echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809         ac_cv_lib_pthread_pthread_mutex_init=no
9810 fi
9811
9812 rm -f core conftest.err conftest.$ac_objext \
9813       conftest$ac_exeext conftest.$ac_ext
9814 LIBS=$ac_check_lib_save_LIBS
9815 fi
9816 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9817 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9818 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9819   cat >>confdefs.h <<_ACEOF
9820 #define HAVE_LIBPTHREAD 1
9821 _ACEOF
9822
9823   LIBS="-lpthread $LIBS"
9824
9825 fi
9826
9827   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9828 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9829 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9830   echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832   ac_func_search_save_LIBS=$LIBS
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h.  */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h.  */
9839
9840 /* Override any GCC internal prototype to avoid an error.
9841    Use char because int might match the return type of a GCC
9842    builtin and then its argument prototype would still apply.  */
9843 #ifdef __cplusplus
9844 extern "C"
9845 #endif
9846 char pthread_mutex_lock ();
9847 int
9848 main ()
9849 {
9850 return pthread_mutex_lock ();
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 for ac_lib in '' pthread; do
9856   if test -z "$ac_lib"; then
9857     ac_res="none required"
9858   else
9859     ac_res=-l$ac_lib
9860     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9861   fi
9862   rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (ac_try="$ac_link"
9864 case "(($ac_try" in
9865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866   *) ac_try_echo=$ac_try;;
9867 esac
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869   (eval "$ac_link") 2>conftest.er1
9870   ac_status=$?
9871   grep -v '^ *+' conftest.er1 >conftest.err
9872   rm -f conftest.er1
9873   cat conftest.err >&5
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); } &&
9876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9877   { (case "(($ac_try" in
9878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879   *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882   (eval "$ac_try") 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; } &&
9886          { ac_try='test -s conftest$ac_exeext'
9887   { (case "(($ac_try" in
9888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889   *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892   (eval "$ac_try") 2>&5
9893   ac_status=$?
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); }; }; then
9896   ac_cv_search_pthread_mutex_lock=$ac_res
9897 else
9898   echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9900
9901
9902 fi
9903
9904 rm -f core conftest.err conftest.$ac_objext \
9905       conftest$ac_exeext
9906   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9907   break
9908 fi
9909 done
9910 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9911   :
9912 else
9913   ac_cv_search_pthread_mutex_lock=no
9914 fi
9915 rm conftest.$ac_ext
9916 LIBS=$ac_func_search_save_LIBS
9917 fi
9918 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9919 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9920 ac_res=$ac_cv_search_pthread_mutex_lock
9921 if test "$ac_res" != no; then
9922   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9923
9924 cat >>confdefs.h <<\_ACEOF
9925 #define HAVE_PTHREAD_MUTEX_LOCK 1
9926 _ACEOF
9927
9928 fi
9929
9930   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9931 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9932 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9933   echo $ECHO_N "(cached) $ECHO_C" >&6
9934 else
9935   ac_func_search_save_LIBS=$LIBS
9936 cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h.  */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h.  */
9942
9943 /* Override any GCC internal prototype to avoid an error.
9944    Use char because int might match the return type of a GCC
9945    builtin and then its argument prototype would still apply.  */
9946 #ifdef __cplusplus
9947 extern "C"
9948 #endif
9949 char pthread_rwlock_init ();
9950 int
9951 main ()
9952 {
9953 return pthread_rwlock_init ();
9954   ;
9955   return 0;
9956 }
9957 _ACEOF
9958 for ac_lib in '' pthread; do
9959   if test -z "$ac_lib"; then
9960     ac_res="none required"
9961   else
9962     ac_res=-l$ac_lib
9963     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9964   fi
9965   rm -f conftest.$ac_objext conftest$ac_exeext
9966 if { (ac_try="$ac_link"
9967 case "(($ac_try" in
9968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969   *) ac_try_echo=$ac_try;;
9970 esac
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972   (eval "$ac_link") 2>conftest.er1
9973   ac_status=$?
9974   grep -v '^ *+' conftest.er1 >conftest.err
9975   rm -f conftest.er1
9976   cat conftest.err >&5
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); } &&
9979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9980   { (case "(($ac_try" in
9981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982   *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985   (eval "$ac_try") 2>&5
9986   ac_status=$?
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); }; } &&
9989          { ac_try='test -s conftest$ac_exeext'
9990   { (case "(($ac_try" in
9991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992   *) ac_try_echo=$ac_try;;
9993 esac
9994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995   (eval "$ac_try") 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); }; }; then
9999   ac_cv_search_pthread_rwlock_init=$ac_res
10000 else
10001   echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10003
10004
10005 fi
10006
10007 rm -f core conftest.err conftest.$ac_objext \
10008       conftest$ac_exeext
10009   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10010   break
10011 fi
10012 done
10013 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10014   :
10015 else
10016   ac_cv_search_pthread_rwlock_init=no
10017 fi
10018 rm conftest.$ac_ext
10019 LIBS=$ac_func_search_save_LIBS
10020 fi
10021 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
10022 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
10023 ac_res=$ac_cv_search_pthread_rwlock_init
10024 if test "$ac_res" != no; then
10025   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10026
10027 cat >>confdefs.h <<\_ACEOF
10028 #define HAVE_PTHREAD_RWLOCK_INIT 1
10029 _ACEOF
10030
10031 fi
10032
10033   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
10034 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
10035 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10036   echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038   ac_func_search_save_LIBS=$LIBS
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h.  */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h.  */
10045
10046 /* Override any GCC internal prototype to avoid an error.
10047    Use char because int might match the return type of a GCC
10048    builtin and then its argument prototype would still apply.  */
10049 #ifdef __cplusplus
10050 extern "C"
10051 #endif
10052 char pthread_getspecific ();
10053 int
10054 main ()
10055 {
10056 return pthread_getspecific ();
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 for ac_lib in '' pthread; do
10062   if test -z "$ac_lib"; then
10063     ac_res="none required"
10064   else
10065     ac_res=-l$ac_lib
10066     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10067   fi
10068   rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (ac_try="$ac_link"
10070 case "(($ac_try" in
10071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072   *) ac_try_echo=$ac_try;;
10073 esac
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075   (eval "$ac_link") 2>conftest.er1
10076   ac_status=$?
10077   grep -v '^ *+' conftest.er1 >conftest.err
10078   rm -f conftest.er1
10079   cat conftest.err >&5
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); } &&
10082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10083   { (case "(($ac_try" in
10084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085   *) ac_try_echo=$ac_try;;
10086 esac
10087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088   (eval "$ac_try") 2>&5
10089   ac_status=$?
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); }; } &&
10092          { ac_try='test -s conftest$ac_exeext'
10093   { (case "(($ac_try" in
10094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095   *) ac_try_echo=$ac_try;;
10096 esac
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098   (eval "$ac_try") 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); }; }; then
10102   ac_cv_search_pthread_getspecific=$ac_res
10103 else
10104   echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10106
10107
10108 fi
10109
10110 rm -f core conftest.err conftest.$ac_objext \
10111       conftest$ac_exeext
10112   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10113   break
10114 fi
10115 done
10116 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10117   :
10118 else
10119   ac_cv_search_pthread_getspecific=no
10120 fi
10121 rm conftest.$ac_ext
10122 LIBS=$ac_func_search_save_LIBS
10123 fi
10124 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10125 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10126 ac_res=$ac_cv_search_pthread_getspecific
10127 if test "$ac_res" != no; then
10128   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10129
10130 cat >>confdefs.h <<\_ACEOF
10131 #define HAVE_PTHREAD_GETSPECIFIC 1
10132 _ACEOF
10133
10134 fi
10135
10136 fi
10137
10138 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10139
10140 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10141 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10142 if test "${ac_cv_lib_z_compress2+set}" = set; then
10143   echo $ECHO_N "(cached) $ECHO_C" >&6
10144 else
10145   ac_check_lib_save_LIBS=$LIBS
10146 LIBS="-lz  $LIBS"
10147 cat >conftest.$ac_ext <<_ACEOF
10148 /* confdefs.h.  */
10149 _ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h.  */
10153
10154 /* Override any GCC internal prototype to avoid an error.
10155    Use char because int might match the return type of a GCC
10156    builtin and then its argument prototype would still apply.  */
10157 #ifdef __cplusplus
10158 extern "C"
10159 #endif
10160 char compress2 ();
10161 int
10162 main ()
10163 {
10164 return compress2 ();
10165   ;
10166   return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (ac_try="$ac_link"
10171 case "(($ac_try" in
10172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173   *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176   (eval "$ac_link") 2>conftest.er1
10177   ac_status=$?
10178   grep -v '^ *+' conftest.er1 >conftest.err
10179   rm -f conftest.er1
10180   cat conftest.err >&5
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); } &&
10183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10184   { (case "(($ac_try" in
10185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186   *) ac_try_echo=$ac_try;;
10187 esac
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189   (eval "$ac_try") 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); }; } &&
10193          { ac_try='test -s conftest$ac_exeext'
10194   { (case "(($ac_try" in
10195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196   *) ac_try_echo=$ac_try;;
10197 esac
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199   (eval "$ac_try") 2>&5
10200   ac_status=$?
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); }; }; then
10203   ac_cv_lib_z_compress2=yes
10204 else
10205   echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10207
10208         ac_cv_lib_z_compress2=no
10209 fi
10210
10211 rm -f core conftest.err conftest.$ac_objext \
10212       conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10214 fi
10215 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10216 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10217 if test $ac_cv_lib_z_compress2 = yes; then
10218   cat >>confdefs.h <<_ACEOF
10219 #define HAVE_LIBZ 1
10220 _ACEOF
10221
10222   LIBS="-lz $LIBS"
10223
10224 fi
10225
10226 fi
10227
10228
10229 # Check whether --with-udis86 was given.
10230 if test "${with_udis86+set}" = set; then
10231   withval=$with_udis86;
10232       USE_UDIS86=1
10233
10234       case "$withval" in
10235         /usr/lib|yes) ;;
10236         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10237       esac
10238
10239 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
10240 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
10241 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
10242   echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244   ac_check_lib_save_LIBS=$LIBS
10245 LIBS="-ludis86  $LIBS"
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h.  */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h.  */
10252
10253 /* Override any GCC internal prototype to avoid an error.
10254    Use char because int might match the return type of a GCC
10255    builtin and then its argument prototype would still apply.  */
10256 #ifdef __cplusplus
10257 extern "C"
10258 #endif
10259 char ud_init ();
10260 int
10261 main ()
10262 {
10263 return ud_init ();
10264   ;
10265   return 0;
10266 }
10267 _ACEOF
10268 rm -f conftest.$ac_objext conftest$ac_exeext
10269 if { (ac_try="$ac_link"
10270 case "(($ac_try" in
10271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272   *) ac_try_echo=$ac_try;;
10273 esac
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275   (eval "$ac_link") 2>conftest.er1
10276   ac_status=$?
10277   grep -v '^ *+' conftest.er1 >conftest.err
10278   rm -f conftest.er1
10279   cat conftest.err >&5
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); } &&
10282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10283   { (case "(($ac_try" in
10284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285   *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288   (eval "$ac_try") 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; } &&
10292          { ac_try='test -s conftest$ac_exeext'
10293   { (case "(($ac_try" in
10294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295   *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298   (eval "$ac_try") 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); }; }; then
10302   ac_cv_lib_udis86_ud_init=yes
10303 else
10304   echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10306
10307         ac_cv_lib_udis86_ud_init=no
10308 fi
10309
10310 rm -f core conftest.err conftest.$ac_objext \
10311       conftest$ac_exeext conftest.$ac_ext
10312 LIBS=$ac_check_lib_save_LIBS
10313 fi
10314 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
10315 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
10316 if test $ac_cv_lib_udis86_ud_init = yes; then
10317   cat >>confdefs.h <<_ACEOF
10318 #define HAVE_LIBUDIS86 1
10319 _ACEOF
10320
10321   LIBS="-ludis86 $LIBS"
10322
10323 else
10324
10325         echo "Error! You need to have libudis86 around."
10326         exit -1
10327
10328 fi
10329
10330
10331 else
10332   USE_UDIS86=0
10333
10334 fi
10335
10336
10337 cat >>confdefs.h <<_ACEOF
10338 #define USE_UDIS86 $USE_UDIS86
10339 _ACEOF
10340
10341
10342
10343 # Check whether --with-oprofile was given.
10344 if test "${with_oprofile+set}" = set; then
10345   withval=$with_oprofile;
10346       USE_OPROFILE=1
10347
10348       case "$withval" in
10349         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10350         no) llvm_cv_oppath=
10351             USE_OPROFILE=0
10352  ;;
10353         *) llvm_cv_oppath="${withval}/lib/oprofile"
10354            CPPFLAGS="-I${withval}/include";;
10355       esac
10356       case $llvm_cv_os_type in
10357         Linux)
10358           if test -n "$llvm_cv_oppath" ; then
10359             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10360                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10361 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10362 if test "${ac_cv_search_bfd_init+set}" = set; then
10363   echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365   ac_func_search_save_LIBS=$LIBS
10366 cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h.  */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h.  */
10372
10373 /* Override any GCC internal prototype to avoid an error.
10374    Use char because int might match the return type of a GCC
10375    builtin and then its argument prototype would still apply.  */
10376 #ifdef __cplusplus
10377 extern "C"
10378 #endif
10379 char bfd_init ();
10380 int
10381 main ()
10382 {
10383 return bfd_init ();
10384   ;
10385   return 0;
10386 }
10387 _ACEOF
10388 for ac_lib in '' bfd; do
10389   if test -z "$ac_lib"; then
10390     ac_res="none required"
10391   else
10392     ac_res=-l$ac_lib
10393     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10394   fi
10395   rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399   *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402   (eval "$ac_link") 2>conftest.er1
10403   ac_status=$?
10404   grep -v '^ *+' conftest.er1 >conftest.err
10405   rm -f conftest.er1
10406   cat conftest.err >&5
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); } &&
10409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10410   { (case "(($ac_try" in
10411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412   *) ac_try_echo=$ac_try;;
10413 esac
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415   (eval "$ac_try") 2>&5
10416   ac_status=$?
10417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418   (exit $ac_status); }; } &&
10419          { ac_try='test -s conftest$ac_exeext'
10420   { (case "(($ac_try" in
10421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422   *) ac_try_echo=$ac_try;;
10423 esac
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425   (eval "$ac_try") 2>&5
10426   ac_status=$?
10427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); }; }; then
10429   ac_cv_search_bfd_init=$ac_res
10430 else
10431   echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10433
10434
10435 fi
10436
10437 rm -f core conftest.err conftest.$ac_objext \
10438       conftest$ac_exeext
10439   if test "${ac_cv_search_bfd_init+set}" = set; then
10440   break
10441 fi
10442 done
10443 if test "${ac_cv_search_bfd_init+set}" = set; then
10444   :
10445 else
10446   ac_cv_search_bfd_init=no
10447 fi
10448 rm conftest.$ac_ext
10449 LIBS=$ac_func_search_save_LIBS
10450 fi
10451 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10452 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10453 ac_res=$ac_cv_search_bfd_init
10454 if test "$ac_res" != no; then
10455   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10456
10457 fi
10458
10459             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10460 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10461 if test "${ac_cv_search_op_open_agent+set}" = set; then
10462   echo $ECHO_N "(cached) $ECHO_C" >&6
10463 else
10464   ac_func_search_save_LIBS=$LIBS
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h.  */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h.  */
10471
10472 /* Override any GCC internal prototype to avoid an error.
10473    Use char because int might match the return type of a GCC
10474    builtin and then its argument prototype would still apply.  */
10475 #ifdef __cplusplus
10476 extern "C"
10477 #endif
10478 char op_open_agent ();
10479 int
10480 main ()
10481 {
10482 return op_open_agent ();
10483   ;
10484   return 0;
10485 }
10486 _ACEOF
10487 for ac_lib in '' opagent; do
10488   if test -z "$ac_lib"; then
10489     ac_res="none required"
10490   else
10491     ac_res=-l$ac_lib
10492     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10493   fi
10494   rm -f conftest.$ac_objext conftest$ac_exeext
10495 if { (ac_try="$ac_link"
10496 case "(($ac_try" in
10497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498   *) ac_try_echo=$ac_try;;
10499 esac
10500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501   (eval "$ac_link") 2>conftest.er1
10502   ac_status=$?
10503   grep -v '^ *+' conftest.er1 >conftest.err
10504   rm -f conftest.er1
10505   cat conftest.err >&5
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); } &&
10508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10509   { (case "(($ac_try" in
10510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511   *) ac_try_echo=$ac_try;;
10512 esac
10513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514   (eval "$ac_try") 2>&5
10515   ac_status=$?
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); }; } &&
10518          { ac_try='test -s conftest$ac_exeext'
10519   { (case "(($ac_try" in
10520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521   *) ac_try_echo=$ac_try;;
10522 esac
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524   (eval "$ac_try") 2>&5
10525   ac_status=$?
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); }; }; then
10528   ac_cv_search_op_open_agent=$ac_res
10529 else
10530   echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533
10534 fi
10535
10536 rm -f core conftest.err conftest.$ac_objext \
10537       conftest$ac_exeext
10538   if test "${ac_cv_search_op_open_agent+set}" = set; then
10539   break
10540 fi
10541 done
10542 if test "${ac_cv_search_op_open_agent+set}" = set; then
10543   :
10544 else
10545   ac_cv_search_op_open_agent=no
10546 fi
10547 rm conftest.$ac_ext
10548 LIBS=$ac_func_search_save_LIBS
10549 fi
10550 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10551 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10552 ac_res=$ac_cv_search_op_open_agent
10553 if test "$ac_res" != no; then
10554   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10555
10556 else
10557
10558               echo "Error! You need to have libopagent around."
10559               exit -1
10560
10561 fi
10562
10563             if test "${ac_cv_header_opagent_h+set}" = set; then
10564   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10565 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10566 if test "${ac_cv_header_opagent_h+set}" = set; then
10567   echo $ECHO_N "(cached) $ECHO_C" >&6
10568 fi
10569 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10570 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10571 else
10572   # Is the header compilable?
10573 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10574 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10575 cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h.  */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h.  */
10581 $ac_includes_default
10582 #include <opagent.h>
10583 _ACEOF
10584 rm -f conftest.$ac_objext
10585 if { (ac_try="$ac_compile"
10586 case "(($ac_try" in
10587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588   *) ac_try_echo=$ac_try;;
10589 esac
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591   (eval "$ac_compile") 2>conftest.er1
10592   ac_status=$?
10593   grep -v '^ *+' conftest.er1 >conftest.err
10594   rm -f conftest.er1
10595   cat conftest.err >&5
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); } &&
10598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10599   { (case "(($ac_try" in
10600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601   *) ac_try_echo=$ac_try;;
10602 esac
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604   (eval "$ac_try") 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); }; } &&
10608          { ac_try='test -s conftest.$ac_objext'
10609   { (case "(($ac_try" in
10610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611   *) ac_try_echo=$ac_try;;
10612 esac
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614   (eval "$ac_try") 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); }; }; then
10618   ac_header_compiler=yes
10619 else
10620   echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10622
10623         ac_header_compiler=no
10624 fi
10625
10626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10628 echo "${ECHO_T}$ac_header_compiler" >&6; }
10629
10630 # Is the header present?
10631 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10632 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h.  */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h.  */
10639 #include <opagent.h>
10640 _ACEOF
10641 if { (ac_try="$ac_cpp conftest.$ac_ext"
10642 case "(($ac_try" in
10643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644   *) ac_try_echo=$ac_try;;
10645 esac
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10648   ac_status=$?
10649   grep -v '^ *+' conftest.er1 >conftest.err
10650   rm -f conftest.er1
10651   cat conftest.err >&5
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); } >/dev/null; then
10654   if test -s conftest.err; then
10655     ac_cpp_err=$ac_c_preproc_warn_flag
10656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10657   else
10658     ac_cpp_err=
10659   fi
10660 else
10661   ac_cpp_err=yes
10662 fi
10663 if test -z "$ac_cpp_err"; then
10664   ac_header_preproc=yes
10665 else
10666   echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10668
10669   ac_header_preproc=no
10670 fi
10671
10672 rm -f conftest.err conftest.$ac_ext
10673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10674 echo "${ECHO_T}$ac_header_preproc" >&6; }
10675
10676 # So?  What about this header?
10677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10678   yes:no: )
10679     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10680 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10681     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10682 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10683     ac_header_preproc=yes
10684     ;;
10685   no:yes:* )
10686     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10687 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10688     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10689 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10690     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10691 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10692     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10693 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10694     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10695 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10696     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10697 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10698     ( cat <<\_ASBOX
10699 ## ------------------------------------ ##
10700 ## Report this to http://llvm.org/bugs/ ##
10701 ## ------------------------------------ ##
10702 _ASBOX
10703      ) | sed "s/^/$as_me: WARNING:     /" >&2
10704     ;;
10705 esac
10706 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10707 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10708 if test "${ac_cv_header_opagent_h+set}" = set; then
10709   echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711   ac_cv_header_opagent_h=$ac_header_preproc
10712 fi
10713 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10714 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10715
10716 fi
10717 if test $ac_cv_header_opagent_h = yes; then
10718   :
10719 else
10720
10721               echo "Error! You need to have opagent.h around."
10722               exit -1
10723
10724 fi
10725
10726
10727           fi ;;
10728         *)
10729           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10730 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10731    { (exit 1); exit 1; }; } ;;
10732       esac
10733
10734 else
10735
10736       USE_OPROFILE=0
10737
10738
10739 fi
10740
10741
10742 cat >>confdefs.h <<_ACEOF
10743 #define LLVM_USE_OPROFILE $USE_OPROFILE
10744 _ACEOF
10745
10746
10747
10748 # Check whether --with-intel-jitevents was given.
10749 if test "${with_intel_jitevents+set}" = set; then
10750   withval=$with_intel_jitevents;
10751        case "$withval" in
10752           yes) USE_INTEL_JITEVENTS=1
10753 ;;
10754           no)  USE_INTEL_JITEVENTS=0
10755 ;;
10756           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10757 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10758    { (exit 1); exit 1; }; };;
10759        esac
10760
10761       case $llvm_cv_os_type in
10762         Linux|Win32|Cygwin|MingW) ;;
10763         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10764 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10765    { (exit 1); exit 1; }; };;
10766       esac
10767
10768       case "$llvm_cv_target_arch" in
10769         x86|x86_64) ;;
10770         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10771 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10772    { (exit 1); exit 1; }; };;
10773       esac
10774
10775 else
10776
10777       USE_INTEL_JITEVENTS=0
10778
10779
10780 fi
10781
10782
10783 cat >>confdefs.h <<_ACEOF
10784 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10785 _ACEOF
10786
10787
10788 for ac_prog in xml2-config
10789 do
10790   # Extract the first word of "$ac_prog", so it can be a program name with args.
10791 set dummy $ac_prog; ac_word=$2
10792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10794 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10795   echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797   if test -n "$XML2CONFIG"; then
10798   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10799 else
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10802 do
10803   IFS=$as_save_IFS
10804   test -z "$as_dir" && as_dir=.
10805   for ac_exec_ext in '' $ac_executable_extensions; do
10806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10807     ac_cv_prog_XML2CONFIG="$ac_prog"
10808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10809     break 2
10810   fi
10811 done
10812 done
10813 IFS=$as_save_IFS
10814
10815 fi
10816 fi
10817 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10818 if test -n "$XML2CONFIG"; then
10819   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10820 echo "${ECHO_T}$XML2CONFIG" >&6; }
10821 else
10822   { echo "$as_me:$LINENO: result: no" >&5
10823 echo "${ECHO_T}no" >&6; }
10824 fi
10825
10826
10827   test -n "$XML2CONFIG" && break
10828 done
10829
10830
10831 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10832 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10833 if test "x$XML2CONFIG" = "x"; then
10834  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10835 echo "${ECHO_T}xml2-config not found" >&6; }
10836 else
10837  LIBXML2_INC=`$XML2CONFIG --cflags`
10838  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10839 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10840  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10841 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10842 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10843   echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845   ac_check_lib_save_LIBS=$LIBS
10846 LIBS="-lxml2  $LIBS"
10847 cat >conftest.$ac_ext <<_ACEOF
10848 /* confdefs.h.  */
10849 _ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h.  */
10853
10854 /* Override any GCC internal prototype to avoid an error.
10855    Use char because int might match the return type of a GCC
10856    builtin and then its argument prototype would still apply.  */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char xmlReadFile ();
10861 int
10862 main ()
10863 {
10864 return xmlReadFile ();
10865   ;
10866   return 0;
10867 }
10868 _ACEOF
10869 rm -f conftest.$ac_objext conftest$ac_exeext
10870 if { (ac_try="$ac_link"
10871 case "(($ac_try" in
10872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873   *) ac_try_echo=$ac_try;;
10874 esac
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876   (eval "$ac_link") 2>conftest.er1
10877   ac_status=$?
10878   grep -v '^ *+' conftest.er1 >conftest.err
10879   rm -f conftest.er1
10880   cat conftest.err >&5
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); } &&
10883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10884   { (case "(($ac_try" in
10885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886   *) ac_try_echo=$ac_try;;
10887 esac
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889   (eval "$ac_try") 2>&5
10890   ac_status=$?
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); }; } &&
10893          { ac_try='test -s conftest$ac_exeext'
10894   { (case "(($ac_try" in
10895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896   *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899   (eval "$ac_try") 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; }; then
10903   ac_cv_lib_xml2_xmlReadFile=yes
10904 else
10905   echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10907
10908         ac_cv_lib_xml2_xmlReadFile=no
10909 fi
10910
10911 rm -f core conftest.err conftest.$ac_objext \
10912       conftest$ac_exeext conftest.$ac_ext
10913 LIBS=$ac_check_lib_save_LIBS
10914 fi
10915 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10916 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10917 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10918
10919 cat >>confdefs.h <<\_ACEOF
10920 #define CLANG_HAVE_LIBXML 1
10921 _ACEOF
10922
10923                                 LIBXML2_LIBS="-lxml2"
10924 fi
10925
10926 fi
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936 ac_header_dirent=no
10937 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10938   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10939 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10940 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10942   echo $ECHO_N "(cached) $ECHO_C" >&6
10943 else
10944   cat >conftest.$ac_ext <<_ACEOF
10945 /* confdefs.h.  */
10946 _ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h.  */
10950 #include <sys/types.h>
10951 #include <$ac_hdr>
10952
10953 int
10954 main ()
10955 {
10956 if ((DIR *) 0)
10957 return 0;
10958   ;
10959   return 0;
10960 }
10961 _ACEOF
10962 rm -f conftest.$ac_objext
10963 if { (ac_try="$ac_compile"
10964 case "(($ac_try" in
10965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966   *) ac_try_echo=$ac_try;;
10967 esac
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969   (eval "$ac_compile") 2>conftest.er1
10970   ac_status=$?
10971   grep -v '^ *+' conftest.er1 >conftest.err
10972   rm -f conftest.er1
10973   cat conftest.err >&5
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); } &&
10976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977   { (case "(($ac_try" in
10978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979   *) ac_try_echo=$ac_try;;
10980 esac
10981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982   (eval "$ac_try") 2>&5
10983   ac_status=$?
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); }; } &&
10986          { ac_try='test -s conftest.$ac_objext'
10987   { (case "(($ac_try" in
10988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989   *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992   (eval "$ac_try") 2>&5
10993   ac_status=$?
10994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995   (exit $ac_status); }; }; then
10996   eval "$as_ac_Header=yes"
10997 else
10998   echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001         eval "$as_ac_Header=no"
11002 fi
11003
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 fi
11006 ac_res=`eval echo '${'$as_ac_Header'}'`
11007                { echo "$as_me:$LINENO: result: $ac_res" >&5
11008 echo "${ECHO_T}$ac_res" >&6; }
11009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11010   cat >>confdefs.h <<_ACEOF
11011 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11012 _ACEOF
11013
11014 ac_header_dirent=$ac_hdr; break
11015 fi
11016
11017 done
11018 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11019 if test $ac_header_dirent = dirent.h; then
11020   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11021 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11022 if test "${ac_cv_search_opendir+set}" = set; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   ac_func_search_save_LIBS=$LIBS
11026 cat >conftest.$ac_ext <<_ACEOF
11027 /* confdefs.h.  */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h.  */
11032
11033 /* Override any GCC internal prototype to avoid an error.
11034    Use char because int might match the return type of a GCC
11035    builtin and then its argument prototype would still apply.  */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char opendir ();
11040 int
11041 main ()
11042 {
11043 return opendir ();
11044   ;
11045   return 0;
11046 }
11047 _ACEOF
11048 for ac_lib in '' dir; do
11049   if test -z "$ac_lib"; then
11050     ac_res="none required"
11051   else
11052     ac_res=-l$ac_lib
11053     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11054   fi
11055   rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (ac_try="$ac_link"
11057 case "(($ac_try" in
11058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059   *) ac_try_echo=$ac_try;;
11060 esac
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062   (eval "$ac_link") 2>conftest.er1
11063   ac_status=$?
11064   grep -v '^ *+' conftest.er1 >conftest.err
11065   rm -f conftest.er1
11066   cat conftest.err >&5
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); } &&
11069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11070   { (case "(($ac_try" in
11071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072   *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075   (eval "$ac_try") 2>&5
11076   ac_status=$?
11077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078   (exit $ac_status); }; } &&
11079          { ac_try='test -s conftest$ac_exeext'
11080   { (case "(($ac_try" in
11081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082   *) ac_try_echo=$ac_try;;
11083 esac
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085   (eval "$ac_try") 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); }; }; then
11089   ac_cv_search_opendir=$ac_res
11090 else
11091   echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094
11095 fi
11096
11097 rm -f core conftest.err conftest.$ac_objext \
11098       conftest$ac_exeext
11099   if test "${ac_cv_search_opendir+set}" = set; then
11100   break
11101 fi
11102 done
11103 if test "${ac_cv_search_opendir+set}" = set; then
11104   :
11105 else
11106   ac_cv_search_opendir=no
11107 fi
11108 rm conftest.$ac_ext
11109 LIBS=$ac_func_search_save_LIBS
11110 fi
11111 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11112 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11113 ac_res=$ac_cv_search_opendir
11114 if test "$ac_res" != no; then
11115   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11116
11117 fi
11118
11119 else
11120   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11121 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11122 if test "${ac_cv_search_opendir+set}" = set; then
11123   echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125   ac_func_search_save_LIBS=$LIBS
11126 cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h.  */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h.  */
11132
11133 /* Override any GCC internal prototype to avoid an error.
11134    Use char because int might match the return type of a GCC
11135    builtin and then its argument prototype would still apply.  */
11136 #ifdef __cplusplus
11137 extern "C"
11138 #endif
11139 char opendir ();
11140 int
11141 main ()
11142 {
11143 return opendir ();
11144   ;
11145   return 0;
11146 }
11147 _ACEOF
11148 for ac_lib in '' x; do
11149   if test -z "$ac_lib"; then
11150     ac_res="none required"
11151   else
11152     ac_res=-l$ac_lib
11153     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11154   fi
11155   rm -f conftest.$ac_objext conftest$ac_exeext
11156 if { (ac_try="$ac_link"
11157 case "(($ac_try" in
11158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159   *) ac_try_echo=$ac_try;;
11160 esac
11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162   (eval "$ac_link") 2>conftest.er1
11163   ac_status=$?
11164   grep -v '^ *+' conftest.er1 >conftest.err
11165   rm -f conftest.er1
11166   cat conftest.err >&5
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); } &&
11169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11170   { (case "(($ac_try" in
11171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172   *) ac_try_echo=$ac_try;;
11173 esac
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175   (eval "$ac_try") 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; } &&
11179          { ac_try='test -s conftest$ac_exeext'
11180   { (case "(($ac_try" in
11181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182   *) ac_try_echo=$ac_try;;
11183 esac
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185   (eval "$ac_try") 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); }; }; then
11189   ac_cv_search_opendir=$ac_res
11190 else
11191   echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11193
11194
11195 fi
11196
11197 rm -f core conftest.err conftest.$ac_objext \
11198       conftest$ac_exeext
11199   if test "${ac_cv_search_opendir+set}" = set; then
11200   break
11201 fi
11202 done
11203 if test "${ac_cv_search_opendir+set}" = set; then
11204   :
11205 else
11206   ac_cv_search_opendir=no
11207 fi
11208 rm conftest.$ac_ext
11209 LIBS=$ac_func_search_save_LIBS
11210 fi
11211 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11212 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11213 ac_res=$ac_cv_search_opendir
11214 if test "$ac_res" != no; then
11215   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11216
11217 fi
11218
11219 fi
11220
11221 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11222 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
11223 if test "${ac_cv_header_mmap_anon+set}" = set; then
11224   echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226    ac_ext=c
11227 ac_cpp='$CPP $CPPFLAGS'
11228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11231
11232   cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h.  */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h.  */
11238 #include <sys/mman.h>
11239 #include <unistd.h>
11240 #include <fcntl.h>
11241 int
11242 main ()
11243 {
11244 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11245   ;
11246   return 0;
11247 }
11248 _ACEOF
11249 rm -f conftest.$ac_objext
11250 if { (ac_try="$ac_compile"
11251 case "(($ac_try" in
11252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253   *) ac_try_echo=$ac_try;;
11254 esac
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256   (eval "$ac_compile") 2>conftest.er1
11257   ac_status=$?
11258   grep -v '^ *+' conftest.er1 >conftest.err
11259   rm -f conftest.er1
11260   cat conftest.err >&5
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); } &&
11263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11264   { (case "(($ac_try" in
11265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266   *) ac_try_echo=$ac_try;;
11267 esac
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269   (eval "$ac_try") 2>&5
11270   ac_status=$?
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); }; } &&
11273          { ac_try='test -s conftest.$ac_objext'
11274   { (case "(($ac_try" in
11275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276   *) ac_try_echo=$ac_try;;
11277 esac
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279   (eval "$ac_try") 2>&5
11280   ac_status=$?
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); }; }; then
11283   ac_cv_header_mmap_anon=yes
11284 else
11285   echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288         ac_cv_header_mmap_anon=no
11289 fi
11290
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292   ac_ext=c
11293 ac_cpp='$CPP $CPPFLAGS'
11294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11297
11298
11299 fi
11300 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11301 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11302 if test "$ac_cv_header_mmap_anon" = yes; then
11303
11304 cat >>confdefs.h <<\_ACEOF
11305 #define HAVE_MMAP_ANONYMOUS 1
11306 _ACEOF
11307
11308 fi
11309
11310 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11311 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11312 if test "${ac_cv_header_stat_broken+set}" = set; then
11313   echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315   cat >conftest.$ac_ext <<_ACEOF
11316 /* confdefs.h.  */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h.  */
11321 #include <sys/types.h>
11322 #include <sys/stat.h>
11323
11324 #if defined S_ISBLK && defined S_IFDIR
11325 # if S_ISBLK (S_IFDIR)
11326 You lose.
11327 # endif
11328 #endif
11329
11330 #if defined S_ISBLK && defined S_IFCHR
11331 # if S_ISBLK (S_IFCHR)
11332 You lose.
11333 # endif
11334 #endif
11335
11336 #if defined S_ISLNK && defined S_IFREG
11337 # if S_ISLNK (S_IFREG)
11338 You lose.
11339 # endif
11340 #endif
11341
11342 #if defined S_ISSOCK && defined S_IFREG
11343 # if S_ISSOCK (S_IFREG)
11344 You lose.
11345 # endif
11346 #endif
11347
11348 _ACEOF
11349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11350   $EGREP "You lose" >/dev/null 2>&1; then
11351   ac_cv_header_stat_broken=yes
11352 else
11353   ac_cv_header_stat_broken=no
11354 fi
11355 rm -f conftest*
11356
11357 fi
11358 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11359 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11360 if test $ac_cv_header_stat_broken = yes; then
11361
11362 cat >>confdefs.h <<\_ACEOF
11363 #define STAT_MACROS_BROKEN 1
11364 _ACEOF
11365
11366 fi
11367
11368 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11369 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11370 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373   cat >conftest.$ac_ext <<_ACEOF
11374 /* confdefs.h.  */
11375 _ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h.  */
11379 #include <sys/types.h>
11380 #include <sys/wait.h>
11381 #ifndef WEXITSTATUS
11382 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11383 #endif
11384 #ifndef WIFEXITED
11385 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11386 #endif
11387
11388 int
11389 main ()
11390 {
11391   int s;
11392   wait (&s);
11393   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11394   ;
11395   return 0;
11396 }
11397 _ACEOF
11398 rm -f conftest.$ac_objext
11399 if { (ac_try="$ac_compile"
11400 case "(($ac_try" in
11401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402   *) ac_try_echo=$ac_try;;
11403 esac
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405   (eval "$ac_compile") 2>conftest.er1
11406   ac_status=$?
11407   grep -v '^ *+' conftest.er1 >conftest.err
11408   rm -f conftest.er1
11409   cat conftest.err >&5
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); } &&
11412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11413   { (case "(($ac_try" in
11414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415   *) ac_try_echo=$ac_try;;
11416 esac
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418   (eval "$ac_try") 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); }; } &&
11422          { ac_try='test -s conftest.$ac_objext'
11423   { (case "(($ac_try" in
11424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425   *) ac_try_echo=$ac_try;;
11426 esac
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428   (eval "$ac_try") 2>&5
11429   ac_status=$?
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); }; }; then
11432   ac_cv_header_sys_wait_h=yes
11433 else
11434   echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11436
11437         ac_cv_header_sys_wait_h=no
11438 fi
11439
11440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11441 fi
11442 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11443 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11444 if test $ac_cv_header_sys_wait_h = yes; then
11445
11446 cat >>confdefs.h <<\_ACEOF
11447 #define HAVE_SYS_WAIT_H 1
11448 _ACEOF
11449
11450 fi
11451
11452 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11453 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11454 if test "${ac_cv_header_time+set}" = set; then
11455   echo $ECHO_N "(cached) $ECHO_C" >&6
11456 else
11457   cat >conftest.$ac_ext <<_ACEOF
11458 /* confdefs.h.  */
11459 _ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h.  */
11463 #include <sys/types.h>
11464 #include <sys/time.h>
11465 #include <time.h>
11466
11467 int
11468 main ()
11469 {
11470 if ((struct tm *) 0)
11471 return 0;
11472   ;
11473   return 0;
11474 }
11475 _ACEOF
11476 rm -f conftest.$ac_objext
11477 if { (ac_try="$ac_compile"
11478 case "(($ac_try" in
11479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480   *) ac_try_echo=$ac_try;;
11481 esac
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483   (eval "$ac_compile") 2>conftest.er1
11484   ac_status=$?
11485   grep -v '^ *+' conftest.er1 >conftest.err
11486   rm -f conftest.er1
11487   cat conftest.err >&5
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); } &&
11490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11491   { (case "(($ac_try" in
11492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493   *) ac_try_echo=$ac_try;;
11494 esac
11495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496   (eval "$ac_try") 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); }; } &&
11500          { ac_try='test -s conftest.$ac_objext'
11501   { (case "(($ac_try" in
11502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503   *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506   (eval "$ac_try") 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; }; then
11510   ac_cv_header_time=yes
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515         ac_cv_header_time=no
11516 fi
11517
11518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11519 fi
11520 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11521 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11522 if test $ac_cv_header_time = yes; then
11523
11524 cat >>confdefs.h <<\_ACEOF
11525 #define TIME_WITH_SYS_TIME 1
11526 _ACEOF
11527
11528 fi
11529
11530
11531 ac_ext=cpp
11532 ac_cpp='$CXXCPP $CPPFLAGS'
11533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11536
11537 ac_ext=cpp
11538 ac_cpp='$CXXCPP $CPPFLAGS'
11539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11542 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11543 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11544 if test -z "$CXXCPP"; then
11545   if test "${ac_cv_prog_CXXCPP+set}" = set; then
11546   echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548       # Double quotes because CXXCPP needs to be expanded
11549     for CXXCPP in "$CXX -E" "/lib/cpp"
11550     do
11551       ac_preproc_ok=false
11552 for ac_cxx_preproc_warn_flag in '' yes
11553 do
11554   # Use a header file that comes with gcc, so configuring glibc
11555   # with a fresh cross-compiler works.
11556   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11557   # <limits.h> exists even on freestanding compilers.
11558   # On the NeXT, cc -E runs the code through the compiler's parser,
11559   # not just through cpp. "Syntax error" is here to catch this case.
11560   cat >conftest.$ac_ext <<_ACEOF
11561 /* confdefs.h.  */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h.  */
11566 #ifdef __STDC__
11567 # include <limits.h>
11568 #else
11569 # include <assert.h>
11570 #endif
11571                      Syntax error
11572 _ACEOF
11573 if { (ac_try="$ac_cpp conftest.$ac_ext"
11574 case "(($ac_try" in
11575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576   *) ac_try_echo=$ac_try;;
11577 esac
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11580   ac_status=$?
11581   grep -v '^ *+' conftest.er1 >conftest.err
11582   rm -f conftest.er1
11583   cat conftest.err >&5
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); } >/dev/null; then
11586   if test -s conftest.err; then
11587     ac_cpp_err=$ac_cxx_preproc_warn_flag
11588     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11589   else
11590     ac_cpp_err=
11591   fi
11592 else
11593   ac_cpp_err=yes
11594 fi
11595 if test -z "$ac_cpp_err"; then
11596   :
11597 else
11598   echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11600
11601   # Broken: fails on valid input.
11602 continue
11603 fi
11604
11605 rm -f conftest.err conftest.$ac_ext
11606
11607   # OK, works on sane cases.  Now check whether nonexistent headers
11608   # can be detected and how.
11609   cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h.  */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h.  */
11615 #include <ac_nonexistent.h>
11616 _ACEOF
11617 if { (ac_try="$ac_cpp conftest.$ac_ext"
11618 case "(($ac_try" in
11619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620   *) ac_try_echo=$ac_try;;
11621 esac
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11624   ac_status=$?
11625   grep -v '^ *+' conftest.er1 >conftest.err
11626   rm -f conftest.er1
11627   cat conftest.err >&5
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); } >/dev/null; then
11630   if test -s conftest.err; then
11631     ac_cpp_err=$ac_cxx_preproc_warn_flag
11632     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11633   else
11634     ac_cpp_err=
11635   fi
11636 else
11637   ac_cpp_err=yes
11638 fi
11639 if test -z "$ac_cpp_err"; then
11640   # Broken: success on invalid input.
11641 continue
11642 else
11643   echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11645
11646   # Passes both tests.
11647 ac_preproc_ok=:
11648 break
11649 fi
11650
11651 rm -f conftest.err conftest.$ac_ext
11652
11653 done
11654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11655 rm -f conftest.err conftest.$ac_ext
11656 if $ac_preproc_ok; then
11657   break
11658 fi
11659
11660     done
11661     ac_cv_prog_CXXCPP=$CXXCPP
11662
11663 fi
11664   CXXCPP=$ac_cv_prog_CXXCPP
11665 else
11666   ac_cv_prog_CXXCPP=$CXXCPP
11667 fi
11668 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11669 echo "${ECHO_T}$CXXCPP" >&6; }
11670 ac_preproc_ok=false
11671 for ac_cxx_preproc_warn_flag in '' yes
11672 do
11673   # Use a header file that comes with gcc, so configuring glibc
11674   # with a fresh cross-compiler works.
11675   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11676   # <limits.h> exists even on freestanding compilers.
11677   # On the NeXT, cc -E runs the code through the compiler's parser,
11678   # not just through cpp. "Syntax error" is here to catch this case.
11679   cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h.  */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h.  */
11685 #ifdef __STDC__
11686 # include <limits.h>
11687 #else
11688 # include <assert.h>
11689 #endif
11690                      Syntax error
11691 _ACEOF
11692 if { (ac_try="$ac_cpp conftest.$ac_ext"
11693 case "(($ac_try" in
11694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695   *) ac_try_echo=$ac_try;;
11696 esac
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11699   ac_status=$?
11700   grep -v '^ *+' conftest.er1 >conftest.err
11701   rm -f conftest.er1
11702   cat conftest.err >&5
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); } >/dev/null; then
11705   if test -s conftest.err; then
11706     ac_cpp_err=$ac_cxx_preproc_warn_flag
11707     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11708   else
11709     ac_cpp_err=
11710   fi
11711 else
11712   ac_cpp_err=yes
11713 fi
11714 if test -z "$ac_cpp_err"; then
11715   :
11716 else
11717   echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720   # Broken: fails on valid input.
11721 continue
11722 fi
11723
11724 rm -f conftest.err conftest.$ac_ext
11725
11726   # OK, works on sane cases.  Now check whether nonexistent headers
11727   # can be detected and how.
11728   cat >conftest.$ac_ext <<_ACEOF
11729 /* confdefs.h.  */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h.  */
11734 #include <ac_nonexistent.h>
11735 _ACEOF
11736 if { (ac_try="$ac_cpp conftest.$ac_ext"
11737 case "(($ac_try" in
11738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739   *) ac_try_echo=$ac_try;;
11740 esac
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11743   ac_status=$?
11744   grep -v '^ *+' conftest.er1 >conftest.err
11745   rm -f conftest.er1
11746   cat conftest.err >&5
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); } >/dev/null; then
11749   if test -s conftest.err; then
11750     ac_cpp_err=$ac_cxx_preproc_warn_flag
11751     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11752   else
11753     ac_cpp_err=
11754   fi
11755 else
11756   ac_cpp_err=yes
11757 fi
11758 if test -z "$ac_cpp_err"; then
11759   # Broken: success on invalid input.
11760 continue
11761 else
11762   echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11764
11765   # Passes both tests.
11766 ac_preproc_ok=:
11767 break
11768 fi
11769
11770 rm -f conftest.err conftest.$ac_ext
11771
11772 done
11773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11774 rm -f conftest.err conftest.$ac_ext
11775 if $ac_preproc_ok; then
11776   :
11777 else
11778   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11779 See \`config.log' for more details." >&5
11780 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11781 See \`config.log' for more details." >&2;}
11782    { (exit 1); exit 1; }; }
11783 fi
11784
11785 ac_ext=cpp
11786 ac_cpp='$CXXCPP $CPPFLAGS'
11787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11790
11791
11792
11793 for ac_header in cxxabi.h
11794 do
11795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11797   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800   echo $ECHO_N "(cached) $ECHO_C" >&6
11801 fi
11802 ac_res=`eval echo '${'$as_ac_Header'}'`
11803                { echo "$as_me:$LINENO: result: $ac_res" >&5
11804 echo "${ECHO_T}$ac_res" >&6; }
11805 else
11806   # Is the header compilable?
11807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h.  */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h.  */
11815 $ac_includes_default
11816 #include <$ac_header>
11817 _ACEOF
11818 rm -f conftest.$ac_objext
11819 if { (ac_try="$ac_compile"
11820 case "(($ac_try" in
11821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822   *) ac_try_echo=$ac_try;;
11823 esac
11824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825   (eval "$ac_compile") 2>conftest.er1
11826   ac_status=$?
11827   grep -v '^ *+' conftest.er1 >conftest.err
11828   rm -f conftest.er1
11829   cat conftest.err >&5
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); } &&
11832          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11833   { (case "(($ac_try" in
11834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835   *) ac_try_echo=$ac_try;;
11836 esac
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838   (eval "$ac_try") 2>&5
11839   ac_status=$?
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); }; } &&
11842          { ac_try='test -s conftest.$ac_objext'
11843   { (case "(($ac_try" in
11844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845   *) ac_try_echo=$ac_try;;
11846 esac
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848   (eval "$ac_try") 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); }; }; then
11852   ac_header_compiler=yes
11853 else
11854   echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11856
11857         ac_header_compiler=no
11858 fi
11859
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11862 echo "${ECHO_T}$ac_header_compiler" >&6; }
11863
11864 # Is the header present?
11865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11867 cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h.  */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h.  */
11873 #include <$ac_header>
11874 _ACEOF
11875 if { (ac_try="$ac_cpp conftest.$ac_ext"
11876 case "(($ac_try" in
11877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878   *) ac_try_echo=$ac_try;;
11879 esac
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11882   ac_status=$?
11883   grep -v '^ *+' conftest.er1 >conftest.err
11884   rm -f conftest.er1
11885   cat conftest.err >&5
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); } >/dev/null; then
11888   if test -s conftest.err; then
11889     ac_cpp_err=$ac_cxx_preproc_warn_flag
11890     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11891   else
11892     ac_cpp_err=
11893   fi
11894 else
11895   ac_cpp_err=yes
11896 fi
11897 if test -z "$ac_cpp_err"; then
11898   ac_header_preproc=yes
11899 else
11900   echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11902
11903   ac_header_preproc=no
11904 fi
11905
11906 rm -f conftest.err conftest.$ac_ext
11907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11908 echo "${ECHO_T}$ac_header_preproc" >&6; }
11909
11910 # So?  What about this header?
11911 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11912   yes:no: )
11913     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11917     ac_header_preproc=yes
11918     ;;
11919   no:yes:* )
11920     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11922     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11923 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11924     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11926     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11927 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11930     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11932     ( cat <<\_ASBOX
11933 ## ------------------------------------ ##
11934 ## Report this to http://llvm.org/bugs/ ##
11935 ## ------------------------------------ ##
11936 _ASBOX
11937      ) | sed "s/^/$as_me: WARNING:     /" >&2
11938     ;;
11939 esac
11940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11943   echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945   eval "$as_ac_Header=\$ac_header_preproc"
11946 fi
11947 ac_res=`eval echo '${'$as_ac_Header'}'`
11948                { echo "$as_me:$LINENO: result: $ac_res" >&5
11949 echo "${ECHO_T}$ac_res" >&6; }
11950
11951 fi
11952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11953   cat >>confdefs.h <<_ACEOF
11954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11955 _ACEOF
11956
11957 fi
11958
11959 done
11960
11961 ac_ext=c
11962 ac_cpp='$CPP $CPPFLAGS'
11963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11966
11967
11968
11969
11970
11971
11972 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11973 do
11974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11979   echo $ECHO_N "(cached) $ECHO_C" >&6
11980 fi
11981 ac_res=`eval echo '${'$as_ac_Header'}'`
11982                { echo "$as_me:$LINENO: result: $ac_res" >&5
11983 echo "${ECHO_T}$ac_res" >&6; }
11984 else
11985   # Is the header compilable?
11986 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11988 cat >conftest.$ac_ext <<_ACEOF
11989 /* confdefs.h.  */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h.  */
11994 $ac_includes_default
11995 #include <$ac_header>
11996 _ACEOF
11997 rm -f conftest.$ac_objext
11998 if { (ac_try="$ac_compile"
11999 case "(($ac_try" in
12000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001   *) ac_try_echo=$ac_try;;
12002 esac
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004   (eval "$ac_compile") 2>conftest.er1
12005   ac_status=$?
12006   grep -v '^ *+' conftest.er1 >conftest.err
12007   rm -f conftest.er1
12008   cat conftest.err >&5
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); } &&
12011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12012   { (case "(($ac_try" in
12013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014   *) ac_try_echo=$ac_try;;
12015 esac
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017   (eval "$ac_try") 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; } &&
12021          { ac_try='test -s conftest.$ac_objext'
12022   { (case "(($ac_try" in
12023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024   *) ac_try_echo=$ac_try;;
12025 esac
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027   (eval "$ac_try") 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); }; }; then
12031   ac_header_compiler=yes
12032 else
12033   echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12035
12036         ac_header_compiler=no
12037 fi
12038
12039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041 echo "${ECHO_T}$ac_header_compiler" >&6; }
12042
12043 # Is the header present?
12044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h.  */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h.  */
12052 #include <$ac_header>
12053 _ACEOF
12054 if { (ac_try="$ac_cpp conftest.$ac_ext"
12055 case "(($ac_try" in
12056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057   *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12061   ac_status=$?
12062   grep -v '^ *+' conftest.er1 >conftest.err
12063   rm -f conftest.er1
12064   cat conftest.err >&5
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } >/dev/null; then
12067   if test -s conftest.err; then
12068     ac_cpp_err=$ac_c_preproc_warn_flag
12069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12070   else
12071     ac_cpp_err=
12072   fi
12073 else
12074   ac_cpp_err=yes
12075 fi
12076 if test -z "$ac_cpp_err"; then
12077   ac_header_preproc=yes
12078 else
12079   echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12081
12082   ac_header_preproc=no
12083 fi
12084
12085 rm -f conftest.err conftest.$ac_ext
12086 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12087 echo "${ECHO_T}$ac_header_preproc" >&6; }
12088
12089 # So?  What about this header?
12090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12091   yes:no: )
12092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12096     ac_header_preproc=yes
12097     ;;
12098   no:yes:* )
12099     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12101     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12102 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12103     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12105     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12106 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12109     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12111     ( cat <<\_ASBOX
12112 ## ------------------------------------ ##
12113 ## Report this to http://llvm.org/bugs/ ##
12114 ## ------------------------------------ ##
12115 _ASBOX
12116      ) | sed "s/^/$as_me: WARNING:     /" >&2
12117     ;;
12118 esac
12119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12122   echo $ECHO_N "(cached) $ECHO_C" >&6
12123 else
12124   eval "$as_ac_Header=\$ac_header_preproc"
12125 fi
12126 ac_res=`eval echo '${'$as_ac_Header'}'`
12127                { echo "$as_me:$LINENO: result: $ac_res" >&5
12128 echo "${ECHO_T}$ac_res" >&6; }
12129
12130 fi
12131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12132   cat >>confdefs.h <<_ACEOF
12133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12134 _ACEOF
12135
12136 fi
12137
12138 done
12139
12140
12141
12142
12143
12144
12145
12146 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
12147 do
12148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12150   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 fi
12155 ac_res=`eval echo '${'$as_ac_Header'}'`
12156                { echo "$as_me:$LINENO: result: $ac_res" >&5
12157 echo "${ECHO_T}$ac_res" >&6; }
12158 else
12159   # Is the header compilable?
12160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12162 cat >conftest.$ac_ext <<_ACEOF
12163 /* confdefs.h.  */
12164 _ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h.  */
12168 $ac_includes_default
12169 #include <$ac_header>
12170 _ACEOF
12171 rm -f conftest.$ac_objext
12172 if { (ac_try="$ac_compile"
12173 case "(($ac_try" in
12174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175   *) ac_try_echo=$ac_try;;
12176 esac
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178   (eval "$ac_compile") 2>conftest.er1
12179   ac_status=$?
12180   grep -v '^ *+' conftest.er1 >conftest.err
12181   rm -f conftest.er1
12182   cat conftest.err >&5
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); } &&
12185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12186   { (case "(($ac_try" in
12187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188   *) ac_try_echo=$ac_try;;
12189 esac
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191   (eval "$ac_try") 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); }; } &&
12195          { ac_try='test -s conftest.$ac_objext'
12196   { (case "(($ac_try" in
12197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198   *) ac_try_echo=$ac_try;;
12199 esac
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201   (eval "$ac_try") 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; }; then
12205   ac_header_compiler=yes
12206 else
12207   echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12209
12210         ac_header_compiler=no
12211 fi
12212
12213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12215 echo "${ECHO_T}$ac_header_compiler" >&6; }
12216
12217 # Is the header present?
12218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12220 cat >conftest.$ac_ext <<_ACEOF
12221 /* confdefs.h.  */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h.  */
12226 #include <$ac_header>
12227 _ACEOF
12228 if { (ac_try="$ac_cpp conftest.$ac_ext"
12229 case "(($ac_try" in
12230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231   *) ac_try_echo=$ac_try;;
12232 esac
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12235   ac_status=$?
12236   grep -v '^ *+' conftest.er1 >conftest.err
12237   rm -f conftest.er1
12238   cat conftest.err >&5
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); } >/dev/null; then
12241   if test -s conftest.err; then
12242     ac_cpp_err=$ac_c_preproc_warn_flag
12243     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12244   else
12245     ac_cpp_err=
12246   fi
12247 else
12248   ac_cpp_err=yes
12249 fi
12250 if test -z "$ac_cpp_err"; then
12251   ac_header_preproc=yes
12252 else
12253   echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12255
12256   ac_header_preproc=no
12257 fi
12258
12259 rm -f conftest.err conftest.$ac_ext
12260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12261 echo "${ECHO_T}$ac_header_preproc" >&6; }
12262
12263 # So?  What about this header?
12264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12265   yes:no: )
12266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12270     ac_header_preproc=yes
12271     ;;
12272   no:yes:* )
12273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12285     ( cat <<\_ASBOX
12286 ## ------------------------------------ ##
12287 ## Report this to http://llvm.org/bugs/ ##
12288 ## ------------------------------------ ##
12289 _ASBOX
12290      ) | sed "s/^/$as_me: WARNING:     /" >&2
12291     ;;
12292 esac
12293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12296   echo $ECHO_N "(cached) $ECHO_C" >&6
12297 else
12298   eval "$as_ac_Header=\$ac_header_preproc"
12299 fi
12300 ac_res=`eval echo '${'$as_ac_Header'}'`
12301                { echo "$as_me:$LINENO: result: $ac_res" >&5
12302 echo "${ECHO_T}$ac_res" >&6; }
12303
12304 fi
12305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12306   cat >>confdefs.h <<_ACEOF
12307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12308 _ACEOF
12309
12310 fi
12311
12312 done
12313
12314
12315 for ac_header in utime.h
12316 do
12317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12319   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12322   echo $ECHO_N "(cached) $ECHO_C" >&6
12323 fi
12324 ac_res=`eval echo '${'$as_ac_Header'}'`
12325                { echo "$as_me:$LINENO: result: $ac_res" >&5
12326 echo "${ECHO_T}$ac_res" >&6; }
12327 else
12328   # Is the header compilable?
12329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12331 cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h.  */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h.  */
12337 $ac_includes_default
12338 #include <$ac_header>
12339 _ACEOF
12340 rm -f conftest.$ac_objext
12341 if { (ac_try="$ac_compile"
12342 case "(($ac_try" in
12343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344   *) ac_try_echo=$ac_try;;
12345 esac
12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347   (eval "$ac_compile") 2>conftest.er1
12348   ac_status=$?
12349   grep -v '^ *+' conftest.er1 >conftest.err
12350   rm -f conftest.er1
12351   cat conftest.err >&5
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); } &&
12354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12355   { (case "(($ac_try" in
12356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357   *) ac_try_echo=$ac_try;;
12358 esac
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360   (eval "$ac_try") 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; } &&
12364          { ac_try='test -s conftest.$ac_objext'
12365   { (case "(($ac_try" in
12366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367   *) ac_try_echo=$ac_try;;
12368 esac
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370   (eval "$ac_try") 2>&5
12371   ac_status=$?
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); }; }; then
12374   ac_header_compiler=yes
12375 else
12376   echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379         ac_header_compiler=no
12380 fi
12381
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12384 echo "${ECHO_T}$ac_header_compiler" >&6; }
12385
12386 # Is the header present?
12387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h.  */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395 #include <$ac_header>
12396 _ACEOF
12397 if { (ac_try="$ac_cpp conftest.$ac_ext"
12398 case "(($ac_try" in
12399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400   *) ac_try_echo=$ac_try;;
12401 esac
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12404   ac_status=$?
12405   grep -v '^ *+' conftest.er1 >conftest.err
12406   rm -f conftest.er1
12407   cat conftest.err >&5
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); } >/dev/null; then
12410   if test -s conftest.err; then
12411     ac_cpp_err=$ac_c_preproc_warn_flag
12412     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12413   else
12414     ac_cpp_err=
12415   fi
12416 else
12417   ac_cpp_err=yes
12418 fi
12419 if test -z "$ac_cpp_err"; then
12420   ac_header_preproc=yes
12421 else
12422   echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12424
12425   ac_header_preproc=no
12426 fi
12427
12428 rm -f conftest.err conftest.$ac_ext
12429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12430 echo "${ECHO_T}$ac_header_preproc" >&6; }
12431
12432 # So?  What about this header?
12433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12434   yes:no: )
12435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12439     ac_header_preproc=yes
12440     ;;
12441   no:yes:* )
12442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12454     ( cat <<\_ASBOX
12455 ## ------------------------------------ ##
12456 ## Report this to http://llvm.org/bugs/ ##
12457 ## ------------------------------------ ##
12458 _ASBOX
12459      ) | sed "s/^/$as_me: WARNING:     /" >&2
12460     ;;
12461 esac
12462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12465   echo $ECHO_N "(cached) $ECHO_C" >&6
12466 else
12467   eval "$as_ac_Header=\$ac_header_preproc"
12468 fi
12469 ac_res=`eval echo '${'$as_ac_Header'}'`
12470                { echo "$as_me:$LINENO: result: $ac_res" >&5
12471 echo "${ECHO_T}$ac_res" >&6; }
12472
12473 fi
12474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12475   cat >>confdefs.h <<_ACEOF
12476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12477 _ACEOF
12478
12479 fi
12480
12481 done
12482
12483
12484
12485
12486
12487
12488 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
12489 do
12490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12492   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12495   echo $ECHO_N "(cached) $ECHO_C" >&6
12496 fi
12497 ac_res=`eval echo '${'$as_ac_Header'}'`
12498                { echo "$as_me:$LINENO: result: $ac_res" >&5
12499 echo "${ECHO_T}$ac_res" >&6; }
12500 else
12501   # Is the header compilable?
12502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12504 cat >conftest.$ac_ext <<_ACEOF
12505 /* confdefs.h.  */
12506 _ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h.  */
12510 $ac_includes_default
12511 #include <$ac_header>
12512 _ACEOF
12513 rm -f conftest.$ac_objext
12514 if { (ac_try="$ac_compile"
12515 case "(($ac_try" in
12516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517   *) ac_try_echo=$ac_try;;
12518 esac
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520   (eval "$ac_compile") 2>conftest.er1
12521   ac_status=$?
12522   grep -v '^ *+' conftest.er1 >conftest.err
12523   rm -f conftest.er1
12524   cat conftest.err >&5
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); } &&
12527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12528   { (case "(($ac_try" in
12529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530   *) ac_try_echo=$ac_try;;
12531 esac
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533   (eval "$ac_try") 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; } &&
12537          { ac_try='test -s conftest.$ac_objext'
12538   { (case "(($ac_try" in
12539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540   *) ac_try_echo=$ac_try;;
12541 esac
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543   (eval "$ac_try") 2>&5
12544   ac_status=$?
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); }; }; then
12547   ac_header_compiler=yes
12548 else
12549   echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12551
12552         ac_header_compiler=no
12553 fi
12554
12555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12557 echo "${ECHO_T}$ac_header_compiler" >&6; }
12558
12559 # Is the header present?
12560 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12562 cat >conftest.$ac_ext <<_ACEOF
12563 /* confdefs.h.  */
12564 _ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h.  */
12568 #include <$ac_header>
12569 _ACEOF
12570 if { (ac_try="$ac_cpp conftest.$ac_ext"
12571 case "(($ac_try" in
12572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573   *) ac_try_echo=$ac_try;;
12574 esac
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12577   ac_status=$?
12578   grep -v '^ *+' conftest.er1 >conftest.err
12579   rm -f conftest.er1
12580   cat conftest.err >&5
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); } >/dev/null; then
12583   if test -s conftest.err; then
12584     ac_cpp_err=$ac_c_preproc_warn_flag
12585     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12586   else
12587     ac_cpp_err=
12588   fi
12589 else
12590   ac_cpp_err=yes
12591 fi
12592 if test -z "$ac_cpp_err"; then
12593   ac_header_preproc=yes
12594 else
12595   echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12597
12598   ac_header_preproc=no
12599 fi
12600
12601 rm -f conftest.err conftest.$ac_ext
12602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12603 echo "${ECHO_T}$ac_header_preproc" >&6; }
12604
12605 # So?  What about this header?
12606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12607   yes:no: )
12608     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12612     ac_header_preproc=yes
12613     ;;
12614   no:yes:* )
12615     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12617     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12618 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12619     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12621     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12622 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12625     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12627     ( cat <<\_ASBOX
12628 ## ------------------------------------ ##
12629 ## Report this to http://llvm.org/bugs/ ##
12630 ## ------------------------------------ ##
12631 _ASBOX
12632      ) | sed "s/^/$as_me: WARNING:     /" >&2
12633     ;;
12634 esac
12635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12638   echo $ECHO_N "(cached) $ECHO_C" >&6
12639 else
12640   eval "$as_ac_Header=\$ac_header_preproc"
12641 fi
12642 ac_res=`eval echo '${'$as_ac_Header'}'`
12643                { echo "$as_me:$LINENO: result: $ac_res" >&5
12644 echo "${ECHO_T}$ac_res" >&6; }
12645
12646 fi
12647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12648   cat >>confdefs.h <<_ACEOF
12649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12650 _ACEOF
12651
12652 fi
12653
12654 done
12655
12656
12657
12658
12659 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12660 do
12661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12663   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12666   echo $ECHO_N "(cached) $ECHO_C" >&6
12667 fi
12668 ac_res=`eval echo '${'$as_ac_Header'}'`
12669                { echo "$as_me:$LINENO: result: $ac_res" >&5
12670 echo "${ECHO_T}$ac_res" >&6; }
12671 else
12672   # Is the header compilable?
12673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12675 cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h.  */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h.  */
12681 $ac_includes_default
12682 #include <$ac_header>
12683 _ACEOF
12684 rm -f conftest.$ac_objext
12685 if { (ac_try="$ac_compile"
12686 case "(($ac_try" in
12687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688   *) ac_try_echo=$ac_try;;
12689 esac
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691   (eval "$ac_compile") 2>conftest.er1
12692   ac_status=$?
12693   grep -v '^ *+' conftest.er1 >conftest.err
12694   rm -f conftest.er1
12695   cat conftest.err >&5
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); } &&
12698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12699   { (case "(($ac_try" in
12700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701   *) ac_try_echo=$ac_try;;
12702 esac
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704   (eval "$ac_try") 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); }; } &&
12708          { ac_try='test -s conftest.$ac_objext'
12709   { (case "(($ac_try" in
12710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711   *) ac_try_echo=$ac_try;;
12712 esac
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714   (eval "$ac_try") 2>&5
12715   ac_status=$?
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); }; }; then
12718   ac_header_compiler=yes
12719 else
12720   echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723         ac_header_compiler=no
12724 fi
12725
12726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12728 echo "${ECHO_T}$ac_header_compiler" >&6; }
12729
12730 # Is the header present?
12731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12733 cat >conftest.$ac_ext <<_ACEOF
12734 /* confdefs.h.  */
12735 _ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h.  */
12739 #include <$ac_header>
12740 _ACEOF
12741 if { (ac_try="$ac_cpp conftest.$ac_ext"
12742 case "(($ac_try" in
12743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744   *) ac_try_echo=$ac_try;;
12745 esac
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12748   ac_status=$?
12749   grep -v '^ *+' conftest.er1 >conftest.err
12750   rm -f conftest.er1
12751   cat conftest.err >&5
12752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); } >/dev/null; then
12754   if test -s conftest.err; then
12755     ac_cpp_err=$ac_c_preproc_warn_flag
12756     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12757   else
12758     ac_cpp_err=
12759   fi
12760 else
12761   ac_cpp_err=yes
12762 fi
12763 if test -z "$ac_cpp_err"; then
12764   ac_header_preproc=yes
12765 else
12766   echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12768
12769   ac_header_preproc=no
12770 fi
12771
12772 rm -f conftest.err conftest.$ac_ext
12773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12774 echo "${ECHO_T}$ac_header_preproc" >&6; }
12775
12776 # So?  What about this header?
12777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12778   yes:no: )
12779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12783     ac_header_preproc=yes
12784     ;;
12785   no:yes:* )
12786     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12788     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12789 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12790     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12792     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12793 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12796     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12798     ( cat <<\_ASBOX
12799 ## ------------------------------------ ##
12800 ## Report this to http://llvm.org/bugs/ ##
12801 ## ------------------------------------ ##
12802 _ASBOX
12803      ) | sed "s/^/$as_me: WARNING:     /" >&2
12804     ;;
12805 esac
12806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12809   echo $ECHO_N "(cached) $ECHO_C" >&6
12810 else
12811   eval "$as_ac_Header=\$ac_header_preproc"
12812 fi
12813 ac_res=`eval echo '${'$as_ac_Header'}'`
12814                { echo "$as_me:$LINENO: result: $ac_res" >&5
12815 echo "${ECHO_T}$ac_res" >&6; }
12816
12817 fi
12818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12819   cat >>confdefs.h <<_ACEOF
12820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12821 _ACEOF
12822
12823 fi
12824
12825 done
12826
12827
12828 for ac_header in valgrind/valgrind.h
12829 do
12830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12832   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12835   echo $ECHO_N "(cached) $ECHO_C" >&6
12836 fi
12837 ac_res=`eval echo '${'$as_ac_Header'}'`
12838                { echo "$as_me:$LINENO: result: $ac_res" >&5
12839 echo "${ECHO_T}$ac_res" >&6; }
12840 else
12841   # Is the header compilable?
12842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12844 cat >conftest.$ac_ext <<_ACEOF
12845 /* confdefs.h.  */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h.  */
12850 $ac_includes_default
12851 #include <$ac_header>
12852 _ACEOF
12853 rm -f conftest.$ac_objext
12854 if { (ac_try="$ac_compile"
12855 case "(($ac_try" in
12856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857   *) ac_try_echo=$ac_try;;
12858 esac
12859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860   (eval "$ac_compile") 2>conftest.er1
12861   ac_status=$?
12862   grep -v '^ *+' conftest.er1 >conftest.err
12863   rm -f conftest.er1
12864   cat conftest.err >&5
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); } &&
12867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12868   { (case "(($ac_try" in
12869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870   *) ac_try_echo=$ac_try;;
12871 esac
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873   (eval "$ac_try") 2>&5
12874   ac_status=$?
12875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876   (exit $ac_status); }; } &&
12877          { ac_try='test -s conftest.$ac_objext'
12878   { (case "(($ac_try" in
12879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880   *) ac_try_echo=$ac_try;;
12881 esac
12882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12883   (eval "$ac_try") 2>&5
12884   ac_status=$?
12885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886   (exit $ac_status); }; }; then
12887   ac_header_compiler=yes
12888 else
12889   echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12891
12892         ac_header_compiler=no
12893 fi
12894
12895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12897 echo "${ECHO_T}$ac_header_compiler" >&6; }
12898
12899 # Is the header present?
12900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12902 cat >conftest.$ac_ext <<_ACEOF
12903 /* confdefs.h.  */
12904 _ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h.  */
12908 #include <$ac_header>
12909 _ACEOF
12910 if { (ac_try="$ac_cpp conftest.$ac_ext"
12911 case "(($ac_try" in
12912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913   *) ac_try_echo=$ac_try;;
12914 esac
12915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12917   ac_status=$?
12918   grep -v '^ *+' conftest.er1 >conftest.err
12919   rm -f conftest.er1
12920   cat conftest.err >&5
12921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); } >/dev/null; then
12923   if test -s conftest.err; then
12924     ac_cpp_err=$ac_c_preproc_warn_flag
12925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12926   else
12927     ac_cpp_err=
12928   fi
12929 else
12930   ac_cpp_err=yes
12931 fi
12932 if test -z "$ac_cpp_err"; then
12933   ac_header_preproc=yes
12934 else
12935   echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12937
12938   ac_header_preproc=no
12939 fi
12940
12941 rm -f conftest.err conftest.$ac_ext
12942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12943 echo "${ECHO_T}$ac_header_preproc" >&6; }
12944
12945 # So?  What about this header?
12946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12947   yes:no: )
12948     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12952     ac_header_preproc=yes
12953     ;;
12954   no:yes:* )
12955     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12957     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12958 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12959     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12961     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12962 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12965     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12967     ( cat <<\_ASBOX
12968 ## ------------------------------------ ##
12969 ## Report this to http://llvm.org/bugs/ ##
12970 ## ------------------------------------ ##
12971 _ASBOX
12972      ) | sed "s/^/$as_me: WARNING:     /" >&2
12973     ;;
12974 esac
12975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12978   echo $ECHO_N "(cached) $ECHO_C" >&6
12979 else
12980   eval "$as_ac_Header=\$ac_header_preproc"
12981 fi
12982 ac_res=`eval echo '${'$as_ac_Header'}'`
12983                { echo "$as_me:$LINENO: result: $ac_res" >&5
12984 echo "${ECHO_T}$ac_res" >&6; }
12985
12986 fi
12987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12988   cat >>confdefs.h <<_ACEOF
12989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12990 _ACEOF
12991
12992 fi
12993
12994 done
12995
12996
12997 for ac_header in fenv.h
12998 do
12999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13001   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13004   echo $ECHO_N "(cached) $ECHO_C" >&6
13005 fi
13006 ac_res=`eval echo '${'$as_ac_Header'}'`
13007                { echo "$as_me:$LINENO: result: $ac_res" >&5
13008 echo "${ECHO_T}$ac_res" >&6; }
13009 else
13010   # Is the header compilable?
13011 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13013 cat >conftest.$ac_ext <<_ACEOF
13014 /* confdefs.h.  */
13015 _ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h.  */
13019 $ac_includes_default
13020 #include <$ac_header>
13021 _ACEOF
13022 rm -f conftest.$ac_objext
13023 if { (ac_try="$ac_compile"
13024 case "(($ac_try" in
13025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026   *) ac_try_echo=$ac_try;;
13027 esac
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029   (eval "$ac_compile") 2>conftest.er1
13030   ac_status=$?
13031   grep -v '^ *+' conftest.er1 >conftest.err
13032   rm -f conftest.er1
13033   cat conftest.err >&5
13034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035   (exit $ac_status); } &&
13036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13037   { (case "(($ac_try" in
13038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039   *) ac_try_echo=$ac_try;;
13040 esac
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042   (eval "$ac_try") 2>&5
13043   ac_status=$?
13044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045   (exit $ac_status); }; } &&
13046          { ac_try='test -s conftest.$ac_objext'
13047   { (case "(($ac_try" in
13048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049   *) ac_try_echo=$ac_try;;
13050 esac
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052   (eval "$ac_try") 2>&5
13053   ac_status=$?
13054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055   (exit $ac_status); }; }; then
13056   ac_header_compiler=yes
13057 else
13058   echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13060
13061         ac_header_compiler=no
13062 fi
13063
13064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13066 echo "${ECHO_T}$ac_header_compiler" >&6; }
13067
13068 # Is the header present?
13069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h.  */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h.  */
13077 #include <$ac_header>
13078 _ACEOF
13079 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
13086   ac_status=$?
13087   grep -v '^ *+' conftest.er1 >conftest.err
13088   rm -f conftest.er1
13089   cat conftest.err >&5
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); } >/dev/null; then
13092   if test -s conftest.err; then
13093     ac_cpp_err=$ac_c_preproc_warn_flag
13094     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13095   else
13096     ac_cpp_err=
13097   fi
13098 else
13099   ac_cpp_err=yes
13100 fi
13101 if test -z "$ac_cpp_err"; then
13102   ac_header_preproc=yes
13103 else
13104   echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13106
13107   ac_header_preproc=no
13108 fi
13109
13110 rm -f conftest.err conftest.$ac_ext
13111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13112 echo "${ECHO_T}$ac_header_preproc" >&6; }
13113
13114 # So?  What about this header?
13115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13116   yes:no: )
13117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13121     ac_header_preproc=yes
13122     ;;
13123   no:yes:* )
13124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13136     ( cat <<\_ASBOX
13137 ## ------------------------------------ ##
13138 ## Report this to http://llvm.org/bugs/ ##
13139 ## ------------------------------------ ##
13140 _ASBOX
13141      ) | sed "s/^/$as_me: WARNING:     /" >&2
13142     ;;
13143 esac
13144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13147   echo $ECHO_N "(cached) $ECHO_C" >&6
13148 else
13149   eval "$as_ac_Header=\$ac_header_preproc"
13150 fi
13151 ac_res=`eval echo '${'$as_ac_Header'}'`
13152                { echo "$as_me:$LINENO: result: $ac_res" >&5
13153 echo "${ECHO_T}$ac_res" >&6; }
13154
13155 fi
13156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13157   cat >>confdefs.h <<_ACEOF
13158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13159 _ACEOF
13160
13161 fi
13162
13163 done
13164
13165 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
13166 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
13167 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
13168   echo $ECHO_N "(cached) $ECHO_C" >&6
13169 else
13170   cat >conftest.$ac_ext <<_ACEOF
13171 /* confdefs.h.  */
13172 _ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h.  */
13176 #include <fenv.h>
13177
13178 int
13179 main ()
13180 {
13181 #ifndef FE_ALL_EXCEPT
13182   char *p = (char *) FE_ALL_EXCEPT;
13183   return !p;
13184 #endif
13185
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 rm -f conftest.$ac_objext
13191 if { (ac_try="$ac_compile"
13192 case "(($ac_try" in
13193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194   *) ac_try_echo=$ac_try;;
13195 esac
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197   (eval "$ac_compile") 2>conftest.er1
13198   ac_status=$?
13199   grep -v '^ *+' conftest.er1 >conftest.err
13200   rm -f conftest.er1
13201   cat conftest.err >&5
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); } &&
13204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13205   { (case "(($ac_try" in
13206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207   *) ac_try_echo=$ac_try;;
13208 esac
13209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210   (eval "$ac_try") 2>&5
13211   ac_status=$?
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); }; } &&
13214          { ac_try='test -s conftest.$ac_objext'
13215   { (case "(($ac_try" in
13216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217   *) ac_try_echo=$ac_try;;
13218 esac
13219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13220   (eval "$ac_try") 2>&5
13221   ac_status=$?
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); }; }; then
13224   ac_cv_have_decl_FE_ALL_EXCEPT=yes
13225 else
13226   echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13228
13229         ac_cv_have_decl_FE_ALL_EXCEPT=no
13230 fi
13231
13232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233 fi
13234 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
13235 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
13236 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
13237
13238 cat >>confdefs.h <<_ACEOF
13239 #define HAVE_DECL_FE_ALL_EXCEPT 1
13240 _ACEOF
13241
13242
13243 else
13244   cat >>confdefs.h <<_ACEOF
13245 #define HAVE_DECL_FE_ALL_EXCEPT 0
13246 _ACEOF
13247
13248
13249 fi
13250 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
13251 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
13252 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
13253   echo $ECHO_N "(cached) $ECHO_C" >&6
13254 else
13255   cat >conftest.$ac_ext <<_ACEOF
13256 /* confdefs.h.  */
13257 _ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h.  */
13261 #include <fenv.h>
13262
13263 int
13264 main ()
13265 {
13266 #ifndef FE_INEXACT
13267   char *p = (char *) FE_INEXACT;
13268   return !p;
13269 #endif
13270
13271   ;
13272   return 0;
13273 }
13274 _ACEOF
13275 rm -f conftest.$ac_objext
13276 if { (ac_try="$ac_compile"
13277 case "(($ac_try" in
13278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279   *) ac_try_echo=$ac_try;;
13280 esac
13281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282   (eval "$ac_compile") 2>conftest.er1
13283   ac_status=$?
13284   grep -v '^ *+' conftest.er1 >conftest.err
13285   rm -f conftest.er1
13286   cat conftest.err >&5
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); } &&
13289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13290   { (case "(($ac_try" in
13291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292   *) ac_try_echo=$ac_try;;
13293 esac
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295   (eval "$ac_try") 2>&5
13296   ac_status=$?
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); }; } &&
13299          { ac_try='test -s conftest.$ac_objext'
13300   { (case "(($ac_try" in
13301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302   *) ac_try_echo=$ac_try;;
13303 esac
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305   (eval "$ac_try") 2>&5
13306   ac_status=$?
13307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); }; }; then
13309   ac_cv_have_decl_FE_INEXACT=yes
13310 else
13311   echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13313
13314         ac_cv_have_decl_FE_INEXACT=no
13315 fi
13316
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318 fi
13319 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
13320 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
13321 if test $ac_cv_have_decl_FE_INEXACT = yes; then
13322
13323 cat >>confdefs.h <<_ACEOF
13324 #define HAVE_DECL_FE_INEXACT 1
13325 _ACEOF
13326
13327
13328 else
13329   cat >>confdefs.h <<_ACEOF
13330 #define HAVE_DECL_FE_INEXACT 0
13331 _ACEOF
13332
13333
13334 fi
13335
13336
13337 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13338
13339 for ac_header in pthread.h
13340 do
13341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13343   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13346   echo $ECHO_N "(cached) $ECHO_C" >&6
13347 fi
13348 ac_res=`eval echo '${'$as_ac_Header'}'`
13349                { echo "$as_me:$LINENO: result: $ac_res" >&5
13350 echo "${ECHO_T}$ac_res" >&6; }
13351 else
13352   # Is the header compilable?
13353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13355 cat >conftest.$ac_ext <<_ACEOF
13356 /* confdefs.h.  */
13357 _ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h.  */
13361 $ac_includes_default
13362 #include <$ac_header>
13363 _ACEOF
13364 rm -f conftest.$ac_objext
13365 if { (ac_try="$ac_compile"
13366 case "(($ac_try" in
13367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368   *) ac_try_echo=$ac_try;;
13369 esac
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371   (eval "$ac_compile") 2>conftest.er1
13372   ac_status=$?
13373   grep -v '^ *+' conftest.er1 >conftest.err
13374   rm -f conftest.er1
13375   cat conftest.err >&5
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); } &&
13378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13379   { (case "(($ac_try" in
13380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381   *) ac_try_echo=$ac_try;;
13382 esac
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384   (eval "$ac_try") 2>&5
13385   ac_status=$?
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); }; } &&
13388          { ac_try='test -s conftest.$ac_objext'
13389   { (case "(($ac_try" in
13390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391   *) ac_try_echo=$ac_try;;
13392 esac
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394   (eval "$ac_try") 2>&5
13395   ac_status=$?
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); }; }; then
13398   ac_header_compiler=yes
13399 else
13400   echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13402
13403         ac_header_compiler=no
13404 fi
13405
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13408 echo "${ECHO_T}$ac_header_compiler" >&6; }
13409
13410 # Is the header present?
13411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13413 cat >conftest.$ac_ext <<_ACEOF
13414 /* confdefs.h.  */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h.  */
13419 #include <$ac_header>
13420 _ACEOF
13421 if { (ac_try="$ac_cpp conftest.$ac_ext"
13422 case "(($ac_try" in
13423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424   *) ac_try_echo=$ac_try;;
13425 esac
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13428   ac_status=$?
13429   grep -v '^ *+' conftest.er1 >conftest.err
13430   rm -f conftest.er1
13431   cat conftest.err >&5
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); } >/dev/null; then
13434   if test -s conftest.err; then
13435     ac_cpp_err=$ac_c_preproc_warn_flag
13436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13437   else
13438     ac_cpp_err=
13439   fi
13440 else
13441   ac_cpp_err=yes
13442 fi
13443 if test -z "$ac_cpp_err"; then
13444   ac_header_preproc=yes
13445 else
13446   echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13448
13449   ac_header_preproc=no
13450 fi
13451
13452 rm -f conftest.err conftest.$ac_ext
13453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13454 echo "${ECHO_T}$ac_header_preproc" >&6; }
13455
13456 # So?  What about this header?
13457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13458   yes:no: )
13459     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13463     ac_header_preproc=yes
13464     ;;
13465   no:yes:* )
13466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13468     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13469 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13470     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13472     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13473 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13476     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13478     ( cat <<\_ASBOX
13479 ## ------------------------------------ ##
13480 ## Report this to http://llvm.org/bugs/ ##
13481 ## ------------------------------------ ##
13482 _ASBOX
13483      ) | sed "s/^/$as_me: WARNING:     /" >&2
13484     ;;
13485 esac
13486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13489   echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491   eval "$as_ac_Header=\$ac_header_preproc"
13492 fi
13493 ac_res=`eval echo '${'$as_ac_Header'}'`
13494                { echo "$as_me:$LINENO: result: $ac_res" >&5
13495 echo "${ECHO_T}$ac_res" >&6; }
13496
13497 fi
13498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13499   cat >>confdefs.h <<_ACEOF
13500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13501 _ACEOF
13502  HAVE_PTHREAD=1
13503
13504 else
13505   HAVE_PTHREAD=0
13506
13507 fi
13508
13509 done
13510
13511 else
13512   HAVE_PTHREAD=0
13513
13514 fi
13515 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13516
13517 for ac_header in zlib.h
13518 do
13519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13521   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13524   echo $ECHO_N "(cached) $ECHO_C" >&6
13525 fi
13526 ac_res=`eval echo '${'$as_ac_Header'}'`
13527                { echo "$as_me:$LINENO: result: $ac_res" >&5
13528 echo "${ECHO_T}$ac_res" >&6; }
13529 else
13530   # Is the header compilable?
13531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13533 cat >conftest.$ac_ext <<_ACEOF
13534 /* confdefs.h.  */
13535 _ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h.  */
13539 $ac_includes_default
13540 #include <$ac_header>
13541 _ACEOF
13542 rm -f conftest.$ac_objext
13543 if { (ac_try="$ac_compile"
13544 case "(($ac_try" in
13545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546   *) ac_try_echo=$ac_try;;
13547 esac
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549   (eval "$ac_compile") 2>conftest.er1
13550   ac_status=$?
13551   grep -v '^ *+' conftest.er1 >conftest.err
13552   rm -f conftest.er1
13553   cat conftest.err >&5
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); } &&
13556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13557   { (case "(($ac_try" in
13558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559   *) ac_try_echo=$ac_try;;
13560 esac
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562   (eval "$ac_try") 2>&5
13563   ac_status=$?
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); }; } &&
13566          { ac_try='test -s conftest.$ac_objext'
13567   { (case "(($ac_try" in
13568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569   *) ac_try_echo=$ac_try;;
13570 esac
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572   (eval "$ac_try") 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }; }; then
13576   ac_header_compiler=yes
13577 else
13578   echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13580
13581         ac_header_compiler=no
13582 fi
13583
13584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13586 echo "${ECHO_T}$ac_header_compiler" >&6; }
13587
13588 # Is the header present?
13589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13591 cat >conftest.$ac_ext <<_ACEOF
13592 /* confdefs.h.  */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h.  */
13597 #include <$ac_header>
13598 _ACEOF
13599 if { (ac_try="$ac_cpp conftest.$ac_ext"
13600 case "(($ac_try" in
13601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602   *) ac_try_echo=$ac_try;;
13603 esac
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13606   ac_status=$?
13607   grep -v '^ *+' conftest.er1 >conftest.err
13608   rm -f conftest.er1
13609   cat conftest.err >&5
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); } >/dev/null; then
13612   if test -s conftest.err; then
13613     ac_cpp_err=$ac_c_preproc_warn_flag
13614     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13615   else
13616     ac_cpp_err=
13617   fi
13618 else
13619   ac_cpp_err=yes
13620 fi
13621 if test -z "$ac_cpp_err"; then
13622   ac_header_preproc=yes
13623 else
13624   echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13626
13627   ac_header_preproc=no
13628 fi
13629
13630 rm -f conftest.err conftest.$ac_ext
13631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13632 echo "${ECHO_T}$ac_header_preproc" >&6; }
13633
13634 # So?  What about this header?
13635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13636   yes:no: )
13637     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13641     ac_header_preproc=yes
13642     ;;
13643   no:yes:* )
13644     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13646     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13647 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13648     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13650     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13651 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13654     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13656     ( cat <<\_ASBOX
13657 ## ------------------------------------ ##
13658 ## Report this to http://llvm.org/bugs/ ##
13659 ## ------------------------------------ ##
13660 _ASBOX
13661      ) | sed "s/^/$as_me: WARNING:     /" >&2
13662     ;;
13663 esac
13664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13667   echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669   eval "$as_ac_Header=\$ac_header_preproc"
13670 fi
13671 ac_res=`eval echo '${'$as_ac_Header'}'`
13672                { echo "$as_me:$LINENO: result: $ac_res" >&5
13673 echo "${ECHO_T}$ac_res" >&6; }
13674
13675 fi
13676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13677   cat >>confdefs.h <<_ACEOF
13678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13679 _ACEOF
13680  HAVE_LIBZ=1
13681
13682 else
13683   HAVE_LIBZ=0
13684
13685 fi
13686
13687 done
13688
13689 else
13690   HAVE_LIBZ=0
13691
13692 fi
13693
13694 if test "$llvm_cv_enable_libffi" = "yes" ; then
13695
13696
13697 for ac_header in ffi.h ffi/ffi.h
13698 do
13699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13701   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13704   echo $ECHO_N "(cached) $ECHO_C" >&6
13705 fi
13706 ac_res=`eval echo '${'$as_ac_Header'}'`
13707                { echo "$as_me:$LINENO: result: $ac_res" >&5
13708 echo "${ECHO_T}$ac_res" >&6; }
13709 else
13710   # Is the header compilable?
13711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13713 cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h.  */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h.  */
13719 $ac_includes_default
13720 #include <$ac_header>
13721 _ACEOF
13722 rm -f conftest.$ac_objext
13723 if { (ac_try="$ac_compile"
13724 case "(($ac_try" in
13725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726   *) ac_try_echo=$ac_try;;
13727 esac
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729   (eval "$ac_compile") 2>conftest.er1
13730   ac_status=$?
13731   grep -v '^ *+' conftest.er1 >conftest.err
13732   rm -f conftest.er1
13733   cat conftest.err >&5
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); } &&
13736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13737   { (case "(($ac_try" in
13738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739   *) ac_try_echo=$ac_try;;
13740 esac
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742   (eval "$ac_try") 2>&5
13743   ac_status=$?
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); }; } &&
13746          { ac_try='test -s conftest.$ac_objext'
13747   { (case "(($ac_try" in
13748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749   *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752   (eval "$ac_try") 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); }; }; then
13756   ac_header_compiler=yes
13757 else
13758   echo "$as_me: failed program was:" >&5
13759 sed 's/^/| /' conftest.$ac_ext >&5
13760
13761         ac_header_compiler=no
13762 fi
13763
13764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13766 echo "${ECHO_T}$ac_header_compiler" >&6; }
13767
13768 # Is the header present?
13769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13771 cat >conftest.$ac_ext <<_ACEOF
13772 /* confdefs.h.  */
13773 _ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h.  */
13777 #include <$ac_header>
13778 _ACEOF
13779 if { (ac_try="$ac_cpp conftest.$ac_ext"
13780 case "(($ac_try" in
13781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782   *) ac_try_echo=$ac_try;;
13783 esac
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13786   ac_status=$?
13787   grep -v '^ *+' conftest.er1 >conftest.err
13788   rm -f conftest.er1
13789   cat conftest.err >&5
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); } >/dev/null; then
13792   if test -s conftest.err; then
13793     ac_cpp_err=$ac_c_preproc_warn_flag
13794     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13795   else
13796     ac_cpp_err=
13797   fi
13798 else
13799   ac_cpp_err=yes
13800 fi
13801 if test -z "$ac_cpp_err"; then
13802   ac_header_preproc=yes
13803 else
13804   echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13806
13807   ac_header_preproc=no
13808 fi
13809
13810 rm -f conftest.err conftest.$ac_ext
13811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13812 echo "${ECHO_T}$ac_header_preproc" >&6; }
13813
13814 # So?  What about this header?
13815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13816   yes:no: )
13817     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13821     ac_header_preproc=yes
13822     ;;
13823   no:yes:* )
13824     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13826     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13827 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13828     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13830     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13831 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13834     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13836     ( cat <<\_ASBOX
13837 ## ------------------------------------ ##
13838 ## Report this to http://llvm.org/bugs/ ##
13839 ## ------------------------------------ ##
13840 _ASBOX
13841      ) | sed "s/^/$as_me: WARNING:     /" >&2
13842     ;;
13843 esac
13844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13847   echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849   eval "$as_ac_Header=\$ac_header_preproc"
13850 fi
13851 ac_res=`eval echo '${'$as_ac_Header'}'`
13852                { echo "$as_me:$LINENO: result: $ac_res" >&5
13853 echo "${ECHO_T}$ac_res" >&6; }
13854
13855 fi
13856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13857   cat >>confdefs.h <<_ACEOF
13858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13859 _ACEOF
13860
13861 fi
13862
13863 done
13864
13865 fi
13866
13867
13868 for ac_header in CrashReporterClient.h
13869 do
13870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13872   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13875   echo $ECHO_N "(cached) $ECHO_C" >&6
13876 fi
13877 ac_res=`eval echo '${'$as_ac_Header'}'`
13878                { echo "$as_me:$LINENO: result: $ac_res" >&5
13879 echo "${ECHO_T}$ac_res" >&6; }
13880 else
13881   # Is the header compilable?
13882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13884 cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h.  */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h.  */
13890 $ac_includes_default
13891 #include <$ac_header>
13892 _ACEOF
13893 rm -f conftest.$ac_objext
13894 if { (ac_try="$ac_compile"
13895 case "(($ac_try" in
13896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897   *) ac_try_echo=$ac_try;;
13898 esac
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900   (eval "$ac_compile") 2>conftest.er1
13901   ac_status=$?
13902   grep -v '^ *+' conftest.er1 >conftest.err
13903   rm -f conftest.er1
13904   cat conftest.err >&5
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); } &&
13907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13908   { (case "(($ac_try" in
13909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910   *) ac_try_echo=$ac_try;;
13911 esac
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913   (eval "$ac_try") 2>&5
13914   ac_status=$?
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); }; } &&
13917          { ac_try='test -s conftest.$ac_objext'
13918   { (case "(($ac_try" in
13919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920   *) ac_try_echo=$ac_try;;
13921 esac
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923   (eval "$ac_try") 2>&5
13924   ac_status=$?
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); }; }; then
13927   ac_header_compiler=yes
13928 else
13929   echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13931
13932         ac_header_compiler=no
13933 fi
13934
13935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13937 echo "${ECHO_T}$ac_header_compiler" >&6; }
13938
13939 # Is the header present?
13940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13942 cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h.  */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h.  */
13948 #include <$ac_header>
13949 _ACEOF
13950 if { (ac_try="$ac_cpp conftest.$ac_ext"
13951 case "(($ac_try" in
13952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953   *) ac_try_echo=$ac_try;;
13954 esac
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13957   ac_status=$?
13958   grep -v '^ *+' conftest.er1 >conftest.err
13959   rm -f conftest.er1
13960   cat conftest.err >&5
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); } >/dev/null; then
13963   if test -s conftest.err; then
13964     ac_cpp_err=$ac_c_preproc_warn_flag
13965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13966   else
13967     ac_cpp_err=
13968   fi
13969 else
13970   ac_cpp_err=yes
13971 fi
13972 if test -z "$ac_cpp_err"; then
13973   ac_header_preproc=yes
13974 else
13975   echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13977
13978   ac_header_preproc=no
13979 fi
13980
13981 rm -f conftest.err conftest.$ac_ext
13982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13983 echo "${ECHO_T}$ac_header_preproc" >&6; }
13984
13985 # So?  What about this header?
13986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13987   yes:no: )
13988     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13992     ac_header_preproc=yes
13993     ;;
13994   no:yes:* )
13995     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13997     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13998 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13999     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14001     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14002 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14005     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14007     ( cat <<\_ASBOX
14008 ## ------------------------------------ ##
14009 ## Report this to http://llvm.org/bugs/ ##
14010 ## ------------------------------------ ##
14011 _ASBOX
14012      ) | sed "s/^/$as_me: WARNING:     /" >&2
14013     ;;
14014 esac
14015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14018   echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020   eval "$as_ac_Header=\$ac_header_preproc"
14021 fi
14022 ac_res=`eval echo '${'$as_ac_Header'}'`
14023                { echo "$as_me:$LINENO: result: $ac_res" >&5
14024 echo "${ECHO_T}$ac_res" >&6; }
14025
14026 fi
14027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14028   cat >>confdefs.h <<_ACEOF
14029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14030 _ACEOF
14031
14032 fi
14033
14034 done
14035
14036
14037 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
14038 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
14039 cat >conftest.$ac_ext <<_ACEOF
14040
14041   /* confdefs.h.  */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h.  */
14046
14047     extern const char *__crashreporter_info__;
14048     int main() {
14049       __crashreporter_info__ = "test";
14050       return 0;
14051     }
14052
14053
14054 _ACEOF
14055 rm -f conftest.$ac_objext conftest$ac_exeext
14056 if { (ac_try="$ac_link"
14057 case "(($ac_try" in
14058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059   *) ac_try_echo=$ac_try;;
14060 esac
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062   (eval "$ac_link") 2>conftest.er1
14063   ac_status=$?
14064   grep -v '^ *+' conftest.er1 >conftest.err
14065   rm -f conftest.er1
14066   cat conftest.err >&5
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); } &&
14069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14070   { (case "(($ac_try" in
14071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072   *) ac_try_echo=$ac_try;;
14073 esac
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075   (eval "$ac_try") 2>&5
14076   ac_status=$?
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); }; } &&
14079          { ac_try='test -s conftest$ac_exeext'
14080   { (case "(($ac_try" in
14081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082   *) ac_try_echo=$ac_try;;
14083 esac
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085   (eval "$ac_try") 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); }; }; then
14089
14090   { echo "$as_me:$LINENO: result: yes" >&5
14091 echo "${ECHO_T}yes" >&6; }
14092
14093 cat >>confdefs.h <<\_ACEOF
14094 #define HAVE_CRASHREPORTER_INFO 1
14095 _ACEOF
14096
14097
14098 else
14099   echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14101
14102
14103   { echo "$as_me:$LINENO: result: no" >&5
14104 echo "${ECHO_T}no" >&6; }
14105
14106 cat >>confdefs.h <<\_ACEOF
14107 #define HAVE_CRASHREPORTER_INFO 0
14108 _ACEOF
14109
14110
14111 fi
14112
14113 rm -f core conftest.err conftest.$ac_objext \
14114       conftest$ac_exeext conftest.$ac_ext
14115
14116
14117
14118   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
14119 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
14120 if test "${ac_cv_huge_val_sanity+set}" = set; then
14121   echo $ECHO_N "(cached) $ECHO_C" >&6
14122 else
14123
14124     ac_ext=cpp
14125 ac_cpp='$CXXCPP $CPPFLAGS'
14126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14129
14130     ac_save_CXXFLAGS=$CXXFLAGS
14131     CXXFLAGS="$CXXFLAGS -pedantic"
14132     if test "$cross_compiling" = yes; then
14133   ac_cv_huge_val_sanity=yes
14134 else
14135   cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h.  */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h.  */
14141 #include <math.h>
14142 int
14143 main ()
14144 {
14145 double x = HUGE_VAL; return x != x;
14146   ;
14147   return 0;
14148 }
14149 _ACEOF
14150 rm -f conftest$ac_exeext
14151 if { (ac_try="$ac_link"
14152 case "(($ac_try" in
14153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154   *) ac_try_echo=$ac_try;;
14155 esac
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157   (eval "$ac_link") 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14161   { (case "(($ac_try" in
14162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163   *) ac_try_echo=$ac_try;;
14164 esac
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166   (eval "$ac_try") 2>&5
14167   ac_status=$?
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); }; }; then
14170   ac_cv_huge_val_sanity=yes
14171 else
14172   echo "$as_me: program exited with status $ac_status" >&5
14173 echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14175
14176 ( exit $ac_status )
14177 ac_cv_huge_val_sanity=no
14178 fi
14179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14180 fi
14181
14182
14183     CXXFLAGS=$ac_save_CXXFLAGS
14184     ac_ext=c
14185 ac_cpp='$CPP $CPPFLAGS'
14186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14189
14190
14191 fi
14192 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
14193 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
14194   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
14195
14196
14197 { echo "$as_me:$LINENO: checking for pid_t" >&5
14198 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14199 if test "${ac_cv_type_pid_t+set}" = set; then
14200   echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202   cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h.  */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h.  */
14208 $ac_includes_default
14209 typedef pid_t ac__type_new_;
14210 int
14211 main ()
14212 {
14213 if ((ac__type_new_ *) 0)
14214   return 0;
14215 if (sizeof (ac__type_new_))
14216   return 0;
14217   ;
14218   return 0;
14219 }
14220 _ACEOF
14221 rm -f conftest.$ac_objext
14222 if { (ac_try="$ac_compile"
14223 case "(($ac_try" in
14224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225   *) ac_try_echo=$ac_try;;
14226 esac
14227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228   (eval "$ac_compile") 2>conftest.er1
14229   ac_status=$?
14230   grep -v '^ *+' conftest.er1 >conftest.err
14231   rm -f conftest.er1
14232   cat conftest.err >&5
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); } &&
14235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14236   { (case "(($ac_try" in
14237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238   *) ac_try_echo=$ac_try;;
14239 esac
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241   (eval "$ac_try") 2>&5
14242   ac_status=$?
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); }; } &&
14245          { ac_try='test -s conftest.$ac_objext'
14246   { (case "(($ac_try" in
14247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248   *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251   (eval "$ac_try") 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; }; then
14255   ac_cv_type_pid_t=yes
14256 else
14257   echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14259
14260         ac_cv_type_pid_t=no
14261 fi
14262
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264 fi
14265 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14266 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14267 if test $ac_cv_type_pid_t = yes; then
14268   :
14269 else
14270
14271 cat >>confdefs.h <<_ACEOF
14272 #define pid_t int
14273 _ACEOF
14274
14275 fi
14276
14277 { echo "$as_me:$LINENO: checking for size_t" >&5
14278 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14279 if test "${ac_cv_type_size_t+set}" = set; then
14280   echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282   cat >conftest.$ac_ext <<_ACEOF
14283 /* confdefs.h.  */
14284 _ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h.  */
14288 $ac_includes_default
14289 typedef size_t ac__type_new_;
14290 int
14291 main ()
14292 {
14293 if ((ac__type_new_ *) 0)
14294   return 0;
14295 if (sizeof (ac__type_new_))
14296   return 0;
14297   ;
14298   return 0;
14299 }
14300 _ACEOF
14301 rm -f conftest.$ac_objext
14302 if { (ac_try="$ac_compile"
14303 case "(($ac_try" in
14304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305   *) ac_try_echo=$ac_try;;
14306 esac
14307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308   (eval "$ac_compile") 2>conftest.er1
14309   ac_status=$?
14310   grep -v '^ *+' conftest.er1 >conftest.err
14311   rm -f conftest.er1
14312   cat conftest.err >&5
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); } &&
14315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; } &&
14325          { ac_try='test -s conftest.$ac_objext'
14326   { (case "(($ac_try" in
14327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328   *) ac_try_echo=$ac_try;;
14329 esac
14330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331   (eval "$ac_try") 2>&5
14332   ac_status=$?
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); }; }; then
14335   ac_cv_type_size_t=yes
14336 else
14337   echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14339
14340         ac_cv_type_size_t=no
14341 fi
14342
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 fi
14345 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14346 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14347 if test $ac_cv_type_size_t = yes; then
14348   :
14349 else
14350
14351 cat >>confdefs.h <<_ACEOF
14352 #define size_t unsigned int
14353 _ACEOF
14354
14355 fi
14356
14357
14358 cat >>confdefs.h <<_ACEOF
14359 #define RETSIGTYPE void
14360 _ACEOF
14361
14362 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14363 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14364 if test "${ac_cv_struct_tm+set}" = set; then
14365   echo $ECHO_N "(cached) $ECHO_C" >&6
14366 else
14367   cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h.  */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h.  */
14373 #include <sys/types.h>
14374 #include <time.h>
14375
14376 int
14377 main ()
14378 {
14379 struct tm *tp; tp->tm_sec;
14380   ;
14381   return 0;
14382 }
14383 _ACEOF
14384 rm -f conftest.$ac_objext
14385 if { (ac_try="$ac_compile"
14386 case "(($ac_try" in
14387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388   *) ac_try_echo=$ac_try;;
14389 esac
14390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391   (eval "$ac_compile") 2>conftest.er1
14392   ac_status=$?
14393   grep -v '^ *+' conftest.er1 >conftest.err
14394   rm -f conftest.er1
14395   cat conftest.err >&5
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); } &&
14398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14399   { (case "(($ac_try" in
14400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401   *) ac_try_echo=$ac_try;;
14402 esac
14403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404   (eval "$ac_try") 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }; } &&
14408          { ac_try='test -s conftest.$ac_objext'
14409   { (case "(($ac_try" in
14410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411   *) ac_try_echo=$ac_try;;
14412 esac
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414   (eval "$ac_try") 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); }; }; then
14418   ac_cv_struct_tm=time.h
14419 else
14420   echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14422
14423         ac_cv_struct_tm=sys/time.h
14424 fi
14425
14426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14427 fi
14428 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14429 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14430 if test $ac_cv_struct_tm = sys/time.h; then
14431
14432 cat >>confdefs.h <<\_ACEOF
14433 #define TM_IN_SYS_TIME 1
14434 _ACEOF
14435
14436 fi
14437
14438 { echo "$as_me:$LINENO: checking for int64_t" >&5
14439 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
14440 if test "${ac_cv_type_int64_t+set}" = set; then
14441   echo $ECHO_N "(cached) $ECHO_C" >&6
14442 else
14443   cat >conftest.$ac_ext <<_ACEOF
14444 /* confdefs.h.  */
14445 _ACEOF
14446 cat confdefs.h >>conftest.$ac_ext
14447 cat >>conftest.$ac_ext <<_ACEOF
14448 /* end confdefs.h.  */
14449 $ac_includes_default
14450 typedef int64_t ac__type_new_;
14451 int
14452 main ()
14453 {
14454 if ((ac__type_new_ *) 0)
14455   return 0;
14456 if (sizeof (ac__type_new_))
14457   return 0;
14458   ;
14459   return 0;
14460 }
14461 _ACEOF
14462 rm -f conftest.$ac_objext
14463 if { (ac_try="$ac_compile"
14464 case "(($ac_try" in
14465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466   *) ac_try_echo=$ac_try;;
14467 esac
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469   (eval "$ac_compile") 2>conftest.er1
14470   ac_status=$?
14471   grep -v '^ *+' conftest.er1 >conftest.err
14472   rm -f conftest.er1
14473   cat conftest.err >&5
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); } &&
14476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14477   { (case "(($ac_try" in
14478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14479   *) ac_try_echo=$ac_try;;
14480 esac
14481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14482   (eval "$ac_try") 2>&5
14483   ac_status=$?
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); }; } &&
14486          { ac_try='test -s conftest.$ac_objext'
14487   { (case "(($ac_try" in
14488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489   *) ac_try_echo=$ac_try;;
14490 esac
14491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492   (eval "$ac_try") 2>&5
14493   ac_status=$?
14494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); }; }; then
14496   ac_cv_type_int64_t=yes
14497 else
14498   echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14500
14501         ac_cv_type_int64_t=no
14502 fi
14503
14504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14505 fi
14506 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
14507 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
14508 if test $ac_cv_type_int64_t = yes; then
14509
14510 cat >>confdefs.h <<_ACEOF
14511 #define HAVE_INT64_T 1
14512 _ACEOF
14513
14514
14515 else
14516   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
14517 echo "$as_me: error: Type int64_t required but not found" >&2;}
14518    { (exit 1); exit 1; }; }
14519 fi
14520
14521 { echo "$as_me:$LINENO: checking for uint64_t" >&5
14522 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
14523 if test "${ac_cv_type_uint64_t+set}" = set; then
14524   echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526   cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h.  */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h.  */
14532 $ac_includes_default
14533 typedef uint64_t ac__type_new_;
14534 int
14535 main ()
14536 {
14537 if ((ac__type_new_ *) 0)
14538   return 0;
14539 if (sizeof (ac__type_new_))
14540   return 0;
14541   ;
14542   return 0;
14543 }
14544 _ACEOF
14545 rm -f conftest.$ac_objext
14546 if { (ac_try="$ac_compile"
14547 case "(($ac_try" in
14548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549   *) ac_try_echo=$ac_try;;
14550 esac
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552   (eval "$ac_compile") 2>conftest.er1
14553   ac_status=$?
14554   grep -v '^ *+' conftest.er1 >conftest.err
14555   rm -f conftest.er1
14556   cat conftest.err >&5
14557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558   (exit $ac_status); } &&
14559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14560   { (case "(($ac_try" in
14561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562   *) ac_try_echo=$ac_try;;
14563 esac
14564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565   (eval "$ac_try") 2>&5
14566   ac_status=$?
14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); }; } &&
14569          { ac_try='test -s conftest.$ac_objext'
14570   { (case "(($ac_try" in
14571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572   *) ac_try_echo=$ac_try;;
14573 esac
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575   (eval "$ac_try") 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); }; }; then
14579   ac_cv_type_uint64_t=yes
14580 else
14581   echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584         ac_cv_type_uint64_t=no
14585 fi
14586
14587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 fi
14589 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14590 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14591 if test $ac_cv_type_uint64_t = yes; then
14592
14593 cat >>confdefs.h <<_ACEOF
14594 #define HAVE_UINT64_T 1
14595 _ACEOF
14596
14597
14598 else
14599   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14600 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14601 if test "${ac_cv_type_u_int64_t+set}" = set; then
14602   echo $ECHO_N "(cached) $ECHO_C" >&6
14603 else
14604   cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h.  */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h.  */
14610 $ac_includes_default
14611 typedef u_int64_t ac__type_new_;
14612 int
14613 main ()
14614 {
14615 if ((ac__type_new_ *) 0)
14616   return 0;
14617 if (sizeof (ac__type_new_))
14618   return 0;
14619   ;
14620   return 0;
14621 }
14622 _ACEOF
14623 rm -f conftest.$ac_objext
14624 if { (ac_try="$ac_compile"
14625 case "(($ac_try" in
14626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627   *) ac_try_echo=$ac_try;;
14628 esac
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630   (eval "$ac_compile") 2>conftest.er1
14631   ac_status=$?
14632   grep -v '^ *+' conftest.er1 >conftest.err
14633   rm -f conftest.er1
14634   cat conftest.err >&5
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); } &&
14637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14638   { (case "(($ac_try" in
14639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640   *) ac_try_echo=$ac_try;;
14641 esac
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643   (eval "$ac_try") 2>&5
14644   ac_status=$?
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); }; } &&
14647          { ac_try='test -s conftest.$ac_objext'
14648   { (case "(($ac_try" in
14649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650   *) ac_try_echo=$ac_try;;
14651 esac
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653   (eval "$ac_try") 2>&5
14654   ac_status=$?
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); }; }; then
14657   ac_cv_type_u_int64_t=yes
14658 else
14659   echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14661
14662         ac_cv_type_u_int64_t=no
14663 fi
14664
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666 fi
14667 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14668 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14669 if test $ac_cv_type_u_int64_t = yes; then
14670
14671 cat >>confdefs.h <<_ACEOF
14672 #define HAVE_U_INT64_T 1
14673 _ACEOF
14674
14675
14676 else
14677   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14678 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14679    { (exit 1); exit 1; }; }
14680 fi
14681
14682 fi
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14694 do
14695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14696 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14698 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14699   echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701   cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h.  */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h.  */
14707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14709 #define $ac_func innocuous_$ac_func
14710
14711 /* System header to define __stub macros and hopefully few prototypes,
14712     which can conflict with char $ac_func (); below.
14713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14714     <limits.h> exists even on freestanding compilers.  */
14715
14716 #ifdef __STDC__
14717 # include <limits.h>
14718 #else
14719 # include <assert.h>
14720 #endif
14721
14722 #undef $ac_func
14723
14724 /* Override any GCC internal prototype to avoid an error.
14725    Use char because int might match the return type of a GCC
14726    builtin and then its argument prototype would still apply.  */
14727 #ifdef __cplusplus
14728 extern "C"
14729 #endif
14730 char $ac_func ();
14731 /* The GNU C library defines this for functions which it implements
14732     to always fail with ENOSYS.  Some functions are actually named
14733     something starting with __ and the normal name is an alias.  */
14734 #if defined __stub_$ac_func || defined __stub___$ac_func
14735 choke me
14736 #endif
14737
14738 int
14739 main ()
14740 {
14741 return $ac_func ();
14742   ;
14743   return 0;
14744 }
14745 _ACEOF
14746 rm -f conftest.$ac_objext conftest$ac_exeext
14747 if { (ac_try="$ac_link"
14748 case "(($ac_try" in
14749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750   *) ac_try_echo=$ac_try;;
14751 esac
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753   (eval "$ac_link") 2>conftest.er1
14754   ac_status=$?
14755   grep -v '^ *+' conftest.er1 >conftest.err
14756   rm -f conftest.er1
14757   cat conftest.err >&5
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); } &&
14760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14761   { (case "(($ac_try" in
14762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763   *) ac_try_echo=$ac_try;;
14764 esac
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766   (eval "$ac_try") 2>&5
14767   ac_status=$?
14768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); }; } &&
14770          { ac_try='test -s conftest$ac_exeext'
14771   { (case "(($ac_try" in
14772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773   *) ac_try_echo=$ac_try;;
14774 esac
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776   (eval "$ac_try") 2>&5
14777   ac_status=$?
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); }; }; then
14780   eval "$as_ac_var=yes"
14781 else
14782   echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14784
14785         eval "$as_ac_var=no"
14786 fi
14787
14788 rm -f core conftest.err conftest.$ac_objext \
14789       conftest$ac_exeext conftest.$ac_ext
14790 fi
14791 ac_res=`eval echo '${'$as_ac_var'}'`
14792                { echo "$as_me:$LINENO: result: $ac_res" >&5
14793 echo "${ECHO_T}$ac_res" >&6; }
14794 if test `eval echo '${'$as_ac_var'}'` = yes; then
14795   cat >>confdefs.h <<_ACEOF
14796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14797 _ACEOF
14798
14799 fi
14800 done
14801
14802
14803
14804
14805
14806 for ac_func in powf fmodf strtof round
14807 do
14808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14812   echo $ECHO_N "(cached) $ECHO_C" >&6
14813 else
14814   cat >conftest.$ac_ext <<_ACEOF
14815 /* confdefs.h.  */
14816 _ACEOF
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h.  */
14820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14822 #define $ac_func innocuous_$ac_func
14823
14824 /* System header to define __stub macros and hopefully few prototypes,
14825     which can conflict with char $ac_func (); below.
14826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14827     <limits.h> exists even on freestanding compilers.  */
14828
14829 #ifdef __STDC__
14830 # include <limits.h>
14831 #else
14832 # include <assert.h>
14833 #endif
14834
14835 #undef $ac_func
14836
14837 /* Override any GCC internal prototype to avoid an error.
14838    Use char because int might match the return type of a GCC
14839    builtin and then its argument prototype would still apply.  */
14840 #ifdef __cplusplus
14841 extern "C"
14842 #endif
14843 char $ac_func ();
14844 /* The GNU C library defines this for functions which it implements
14845     to always fail with ENOSYS.  Some functions are actually named
14846     something starting with __ and the normal name is an alias.  */
14847 #if defined __stub_$ac_func || defined __stub___$ac_func
14848 choke me
14849 #endif
14850
14851 int
14852 main ()
14853 {
14854 return $ac_func ();
14855   ;
14856   return 0;
14857 }
14858 _ACEOF
14859 rm -f conftest.$ac_objext conftest$ac_exeext
14860 if { (ac_try="$ac_link"
14861 case "(($ac_try" in
14862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863   *) ac_try_echo=$ac_try;;
14864 esac
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866   (eval "$ac_link") 2>conftest.er1
14867   ac_status=$?
14868   grep -v '^ *+' conftest.er1 >conftest.err
14869   rm -f conftest.er1
14870   cat conftest.err >&5
14871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872   (exit $ac_status); } &&
14873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14874   { (case "(($ac_try" in
14875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876   *) ac_try_echo=$ac_try;;
14877 esac
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879   (eval "$ac_try") 2>&5
14880   ac_status=$?
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); }; } &&
14883          { ac_try='test -s conftest$ac_exeext'
14884   { (case "(($ac_try" in
14885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886   *) ac_try_echo=$ac_try;;
14887 esac
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889   (eval "$ac_try") 2>&5
14890   ac_status=$?
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); }; }; then
14893   eval "$as_ac_var=yes"
14894 else
14895   echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14897
14898         eval "$as_ac_var=no"
14899 fi
14900
14901 rm -f core conftest.err conftest.$ac_objext \
14902       conftest$ac_exeext conftest.$ac_ext
14903 fi
14904 ac_res=`eval echo '${'$as_ac_var'}'`
14905                { echo "$as_me:$LINENO: result: $ac_res" >&5
14906 echo "${ECHO_T}$ac_res" >&6; }
14907 if test `eval echo '${'$as_ac_var'}'` = yes; then
14908   cat >>confdefs.h <<_ACEOF
14909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14910 _ACEOF
14911
14912 fi
14913 done
14914
14915
14916
14917
14918
14919
14920 for ac_func in log log2 log10 exp exp2
14921 do
14922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14926   echo $ECHO_N "(cached) $ECHO_C" >&6
14927 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14936 #define $ac_func innocuous_$ac_func
14937
14938 /* System header to define __stub macros and hopefully few prototypes,
14939     which can conflict with char $ac_func (); below.
14940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14941     <limits.h> exists even on freestanding compilers.  */
14942
14943 #ifdef __STDC__
14944 # include <limits.h>
14945 #else
14946 # include <assert.h>
14947 #endif
14948
14949 #undef $ac_func
14950
14951 /* Override any GCC internal prototype to avoid an error.
14952    Use char because int might match the return type of a GCC
14953    builtin and then its argument prototype would still apply.  */
14954 #ifdef __cplusplus
14955 extern "C"
14956 #endif
14957 char $ac_func ();
14958 /* The GNU C library defines this for functions which it implements
14959     to always fail with ENOSYS.  Some functions are actually named
14960     something starting with __ and the normal name is an alias.  */
14961 #if defined __stub_$ac_func || defined __stub___$ac_func
14962 choke me
14963 #endif
14964
14965 int
14966 main ()
14967 {
14968 return $ac_func ();
14969   ;
14970   return 0;
14971 }
14972 _ACEOF
14973 rm -f conftest.$ac_objext conftest$ac_exeext
14974 if { (ac_try="$ac_link"
14975 case "(($ac_try" in
14976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977   *) ac_try_echo=$ac_try;;
14978 esac
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980   (eval "$ac_link") 2>conftest.er1
14981   ac_status=$?
14982   grep -v '^ *+' conftest.er1 >conftest.err
14983   rm -f conftest.er1
14984   cat conftest.err >&5
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   (exit $ac_status); } &&
14987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14988   { (case "(($ac_try" in
14989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990   *) ac_try_echo=$ac_try;;
14991 esac
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993   (eval "$ac_try") 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); }; } &&
14997          { ac_try='test -s conftest$ac_exeext'
14998   { (case "(($ac_try" in
14999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000   *) ac_try_echo=$ac_try;;
15001 esac
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003   (eval "$ac_try") 2>&5
15004   ac_status=$?
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); }; }; then
15007   eval "$as_ac_var=yes"
15008 else
15009   echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15011
15012         eval "$as_ac_var=no"
15013 fi
15014
15015 rm -f core conftest.err conftest.$ac_objext \
15016       conftest$ac_exeext conftest.$ac_ext
15017 fi
15018 ac_res=`eval echo '${'$as_ac_var'}'`
15019                { echo "$as_me:$LINENO: result: $ac_res" >&5
15020 echo "${ECHO_T}$ac_res" >&6; }
15021 if test `eval echo '${'$as_ac_var'}'` = yes; then
15022   cat >>confdefs.h <<_ACEOF
15023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15024 _ACEOF
15025
15026 fi
15027 done
15028
15029
15030
15031
15032
15033
15034 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
15035 do
15036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15040   echo $ECHO_N "(cached) $ECHO_C" >&6
15041 else
15042   cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h.  */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h.  */
15048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15050 #define $ac_func innocuous_$ac_func
15051
15052 /* System header to define __stub macros and hopefully few prototypes,
15053     which can conflict with char $ac_func (); below.
15054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15055     <limits.h> exists even on freestanding compilers.  */
15056
15057 #ifdef __STDC__
15058 # include <limits.h>
15059 #else
15060 # include <assert.h>
15061 #endif
15062
15063 #undef $ac_func
15064
15065 /* Override any GCC internal prototype to avoid an error.
15066    Use char because int might match the return type of a GCC
15067    builtin and then its argument prototype would still apply.  */
15068 #ifdef __cplusplus
15069 extern "C"
15070 #endif
15071 char $ac_func ();
15072 /* The GNU C library defines this for functions which it implements
15073     to always fail with ENOSYS.  Some functions are actually named
15074     something starting with __ and the normal name is an alias.  */
15075 #if defined __stub_$ac_func || defined __stub___$ac_func
15076 choke me
15077 #endif
15078
15079 int
15080 main ()
15081 {
15082 return $ac_func ();
15083   ;
15084   return 0;
15085 }
15086 _ACEOF
15087 rm -f conftest.$ac_objext conftest$ac_exeext
15088 if { (ac_try="$ac_link"
15089 case "(($ac_try" in
15090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091   *) ac_try_echo=$ac_try;;
15092 esac
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094   (eval "$ac_link") 2>conftest.er1
15095   ac_status=$?
15096   grep -v '^ *+' conftest.er1 >conftest.err
15097   rm -f conftest.er1
15098   cat conftest.err >&5
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); } &&
15101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15102   { (case "(($ac_try" in
15103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104   *) ac_try_echo=$ac_try;;
15105 esac
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107   (eval "$ac_try") 2>&5
15108   ac_status=$?
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); }; } &&
15111          { ac_try='test -s conftest$ac_exeext'
15112   { (case "(($ac_try" in
15113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114   *) ac_try_echo=$ac_try;;
15115 esac
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117   (eval "$ac_try") 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; }; then
15121   eval "$as_ac_var=yes"
15122 else
15123   echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126         eval "$as_ac_var=no"
15127 fi
15128
15129 rm -f core conftest.err conftest.$ac_objext \
15130       conftest$ac_exeext conftest.$ac_ext
15131 fi
15132 ac_res=`eval echo '${'$as_ac_var'}'`
15133                { echo "$as_me:$LINENO: result: $ac_res" >&5
15134 echo "${ECHO_T}$ac_res" >&6; }
15135 if test `eval echo '${'$as_ac_var'}'` = yes; then
15136   cat >>confdefs.h <<_ACEOF
15137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15138 _ACEOF
15139
15140 fi
15141 done
15142
15143
15144
15145
15146 for ac_func in isatty mkdtemp mkstemp
15147 do
15148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15152   echo $ECHO_N "(cached) $ECHO_C" >&6
15153 else
15154   cat >conftest.$ac_ext <<_ACEOF
15155 /* confdefs.h.  */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h.  */
15160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15162 #define $ac_func innocuous_$ac_func
15163
15164 /* System header to define __stub macros and hopefully few prototypes,
15165     which can conflict with char $ac_func (); below.
15166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15167     <limits.h> exists even on freestanding compilers.  */
15168
15169 #ifdef __STDC__
15170 # include <limits.h>
15171 #else
15172 # include <assert.h>
15173 #endif
15174
15175 #undef $ac_func
15176
15177 /* Override any GCC internal prototype to avoid an error.
15178    Use char because int might match the return type of a GCC
15179    builtin and then its argument prototype would still apply.  */
15180 #ifdef __cplusplus
15181 extern "C"
15182 #endif
15183 char $ac_func ();
15184 /* The GNU C library defines this for functions which it implements
15185     to always fail with ENOSYS.  Some functions are actually named
15186     something starting with __ and the normal name is an alias.  */
15187 #if defined __stub_$ac_func || defined __stub___$ac_func
15188 choke me
15189 #endif
15190
15191 int
15192 main ()
15193 {
15194 return $ac_func ();
15195   ;
15196   return 0;
15197 }
15198 _ACEOF
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (ac_try="$ac_link"
15201 case "(($ac_try" in
15202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203   *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206   (eval "$ac_link") 2>conftest.er1
15207   ac_status=$?
15208   grep -v '^ *+' conftest.er1 >conftest.err
15209   rm -f conftest.er1
15210   cat conftest.err >&5
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); } &&
15213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15214   { (case "(($ac_try" in
15215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216   *) ac_try_echo=$ac_try;;
15217 esac
15218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219   (eval "$ac_try") 2>&5
15220   ac_status=$?
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); }; } &&
15223          { ac_try='test -s conftest$ac_exeext'
15224   { (case "(($ac_try" in
15225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226   *) ac_try_echo=$ac_try;;
15227 esac
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229   (eval "$ac_try") 2>&5
15230   ac_status=$?
15231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   (exit $ac_status); }; }; then
15233   eval "$as_ac_var=yes"
15234 else
15235   echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15237
15238         eval "$as_ac_var=no"
15239 fi
15240
15241 rm -f core conftest.err conftest.$ac_objext \
15242       conftest$ac_exeext conftest.$ac_ext
15243 fi
15244 ac_res=`eval echo '${'$as_ac_var'}'`
15245                { echo "$as_me:$LINENO: result: $ac_res" >&5
15246 echo "${ECHO_T}$ac_res" >&6; }
15247 if test `eval echo '${'$as_ac_var'}'` = yes; then
15248   cat >>confdefs.h <<_ACEOF
15249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15250 _ACEOF
15251
15252 fi
15253 done
15254
15255
15256
15257
15258
15259
15260
15261 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
15262 do
15263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15267   echo $ECHO_N "(cached) $ECHO_C" >&6
15268 else
15269   cat >conftest.$ac_ext <<_ACEOF
15270 /* confdefs.h.  */
15271 _ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h.  */
15275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15277 #define $ac_func innocuous_$ac_func
15278
15279 /* System header to define __stub macros and hopefully few prototypes,
15280     which can conflict with char $ac_func (); below.
15281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15282     <limits.h> exists even on freestanding compilers.  */
15283
15284 #ifdef __STDC__
15285 # include <limits.h>
15286 #else
15287 # include <assert.h>
15288 #endif
15289
15290 #undef $ac_func
15291
15292 /* Override any GCC internal prototype to avoid an error.
15293    Use char because int might match the return type of a GCC
15294    builtin and then its argument prototype would still apply.  */
15295 #ifdef __cplusplus
15296 extern "C"
15297 #endif
15298 char $ac_func ();
15299 /* The GNU C library defines this for functions which it implements
15300     to always fail with ENOSYS.  Some functions are actually named
15301     something starting with __ and the normal name is an alias.  */
15302 #if defined __stub_$ac_func || defined __stub___$ac_func
15303 choke me
15304 #endif
15305
15306 int
15307 main ()
15308 {
15309 return $ac_func ();
15310   ;
15311   return 0;
15312 }
15313 _ACEOF
15314 rm -f conftest.$ac_objext conftest$ac_exeext
15315 if { (ac_try="$ac_link"
15316 case "(($ac_try" in
15317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318   *) ac_try_echo=$ac_try;;
15319 esac
15320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15321   (eval "$ac_link") 2>conftest.er1
15322   ac_status=$?
15323   grep -v '^ *+' conftest.er1 >conftest.err
15324   rm -f conftest.er1
15325   cat conftest.err >&5
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); } &&
15328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15329   { (case "(($ac_try" in
15330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331   *) ac_try_echo=$ac_try;;
15332 esac
15333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334   (eval "$ac_try") 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); }; } &&
15338          { ac_try='test -s conftest$ac_exeext'
15339   { (case "(($ac_try" in
15340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341   *) ac_try_echo=$ac_try;;
15342 esac
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344   (eval "$ac_try") 2>&5
15345   ac_status=$?
15346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347   (exit $ac_status); }; }; then
15348   eval "$as_ac_var=yes"
15349 else
15350   echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15352
15353         eval "$as_ac_var=no"
15354 fi
15355
15356 rm -f core conftest.err conftest.$ac_objext \
15357       conftest$ac_exeext conftest.$ac_ext
15358 fi
15359 ac_res=`eval echo '${'$as_ac_var'}'`
15360                { echo "$as_me:$LINENO: result: $ac_res" >&5
15361 echo "${ECHO_T}$ac_res" >&6; }
15362 if test `eval echo '${'$as_ac_var'}'` = yes; then
15363   cat >>confdefs.h <<_ACEOF
15364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15365 _ACEOF
15366
15367 fi
15368 done
15369
15370
15371
15372
15373 for ac_func in strerror strerror_r setenv
15374 do
15375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15379   echo $ECHO_N "(cached) $ECHO_C" >&6
15380 else
15381   cat >conftest.$ac_ext <<_ACEOF
15382 /* confdefs.h.  */
15383 _ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h.  */
15387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15389 #define $ac_func innocuous_$ac_func
15390
15391 /* System header to define __stub macros and hopefully few prototypes,
15392     which can conflict with char $ac_func (); below.
15393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15394     <limits.h> exists even on freestanding compilers.  */
15395
15396 #ifdef __STDC__
15397 # include <limits.h>
15398 #else
15399 # include <assert.h>
15400 #endif
15401
15402 #undef $ac_func
15403
15404 /* Override any GCC internal prototype to avoid an error.
15405    Use char because int might match the return type of a GCC
15406    builtin and then its argument prototype would still apply.  */
15407 #ifdef __cplusplus
15408 extern "C"
15409 #endif
15410 char $ac_func ();
15411 /* The GNU C library defines this for functions which it implements
15412     to always fail with ENOSYS.  Some functions are actually named
15413     something starting with __ and the normal name is an alias.  */
15414 #if defined __stub_$ac_func || defined __stub___$ac_func
15415 choke me
15416 #endif
15417
15418 int
15419 main ()
15420 {
15421 return $ac_func ();
15422   ;
15423   return 0;
15424 }
15425 _ACEOF
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (ac_try="$ac_link"
15428 case "(($ac_try" in
15429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430   *) ac_try_echo=$ac_try;;
15431 esac
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433   (eval "$ac_link") 2>conftest.er1
15434   ac_status=$?
15435   grep -v '^ *+' conftest.er1 >conftest.err
15436   rm -f conftest.er1
15437   cat conftest.err >&5
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); } &&
15440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15441   { (case "(($ac_try" in
15442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443   *) ac_try_echo=$ac_try;;
15444 esac
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446   (eval "$ac_try") 2>&5
15447   ac_status=$?
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); }; } &&
15450          { ac_try='test -s conftest$ac_exeext'
15451   { (case "(($ac_try" in
15452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453   *) ac_try_echo=$ac_try;;
15454 esac
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456   (eval "$ac_try") 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); }; }; then
15460   eval "$as_ac_var=yes"
15461 else
15462   echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15464
15465         eval "$as_ac_var=no"
15466 fi
15467
15468 rm -f core conftest.err conftest.$ac_objext \
15469       conftest$ac_exeext conftest.$ac_ext
15470 fi
15471 ac_res=`eval echo '${'$as_ac_var'}'`
15472                { echo "$as_me:$LINENO: result: $ac_res" >&5
15473 echo "${ECHO_T}$ac_res" >&6; }
15474 if test `eval echo '${'$as_ac_var'}'` = yes; then
15475   cat >>confdefs.h <<_ACEOF
15476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15477 _ACEOF
15478
15479 fi
15480 done
15481
15482
15483
15484
15485
15486 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
15487 do
15488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15492   echo $ECHO_N "(cached) $ECHO_C" >&6
15493 else
15494   cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h.  */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h.  */
15500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15502 #define $ac_func innocuous_$ac_func
15503
15504 /* System header to define __stub macros and hopefully few prototypes,
15505     which can conflict with char $ac_func (); below.
15506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15507     <limits.h> exists even on freestanding compilers.  */
15508
15509 #ifdef __STDC__
15510 # include <limits.h>
15511 #else
15512 # include <assert.h>
15513 #endif
15514
15515 #undef $ac_func
15516
15517 /* Override any GCC internal prototype to avoid an error.
15518    Use char because int might match the return type of a GCC
15519    builtin and then its argument prototype would still apply.  */
15520 #ifdef __cplusplus
15521 extern "C"
15522 #endif
15523 char $ac_func ();
15524 /* The GNU C library defines this for functions which it implements
15525     to always fail with ENOSYS.  Some functions are actually named
15526     something starting with __ and the normal name is an alias.  */
15527 #if defined __stub_$ac_func || defined __stub___$ac_func
15528 choke me
15529 #endif
15530
15531 int
15532 main ()
15533 {
15534 return $ac_func ();
15535   ;
15536   return 0;
15537 }
15538 _ACEOF
15539 rm -f conftest.$ac_objext conftest$ac_exeext
15540 if { (ac_try="$ac_link"
15541 case "(($ac_try" in
15542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543   *) ac_try_echo=$ac_try;;
15544 esac
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546   (eval "$ac_link") 2>conftest.er1
15547   ac_status=$?
15548   grep -v '^ *+' conftest.er1 >conftest.err
15549   rm -f conftest.er1
15550   cat conftest.err >&5
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); } &&
15553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15554   { (case "(($ac_try" in
15555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556   *) ac_try_echo=$ac_try;;
15557 esac
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559   (eval "$ac_try") 2>&5
15560   ac_status=$?
15561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562   (exit $ac_status); }; } &&
15563          { ac_try='test -s conftest$ac_exeext'
15564   { (case "(($ac_try" in
15565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566   *) ac_try_echo=$ac_try;;
15567 esac
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569   (eval "$ac_try") 2>&5
15570   ac_status=$?
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   (exit $ac_status); }; }; then
15573   eval "$as_ac_var=yes"
15574 else
15575   echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15577
15578         eval "$as_ac_var=no"
15579 fi
15580
15581 rm -f core conftest.err conftest.$ac_objext \
15582       conftest$ac_exeext conftest.$ac_ext
15583 fi
15584 ac_res=`eval echo '${'$as_ac_var'}'`
15585                { echo "$as_me:$LINENO: result: $ac_res" >&5
15586 echo "${ECHO_T}$ac_res" >&6; }
15587 if test `eval echo '${'$as_ac_var'}'` = yes; then
15588   cat >>confdefs.h <<_ACEOF
15589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15590 _ACEOF
15591
15592 fi
15593 done
15594
15595
15596
15597
15598
15599
15600 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
15601 do
15602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15606   echo $ECHO_N "(cached) $ECHO_C" >&6
15607 else
15608   cat >conftest.$ac_ext <<_ACEOF
15609 /* confdefs.h.  */
15610 _ACEOF
15611 cat confdefs.h >>conftest.$ac_ext
15612 cat >>conftest.$ac_ext <<_ACEOF
15613 /* end confdefs.h.  */
15614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15616 #define $ac_func innocuous_$ac_func
15617
15618 /* System header to define __stub macros and hopefully few prototypes,
15619     which can conflict with char $ac_func (); below.
15620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15621     <limits.h> exists even on freestanding compilers.  */
15622
15623 #ifdef __STDC__
15624 # include <limits.h>
15625 #else
15626 # include <assert.h>
15627 #endif
15628
15629 #undef $ac_func
15630
15631 /* Override any GCC internal prototype to avoid an error.
15632    Use char because int might match the return type of a GCC
15633    builtin and then its argument prototype would still apply.  */
15634 #ifdef __cplusplus
15635 extern "C"
15636 #endif
15637 char $ac_func ();
15638 /* The GNU C library defines this for functions which it implements
15639     to always fail with ENOSYS.  Some functions are actually named
15640     something starting with __ and the normal name is an alias.  */
15641 #if defined __stub_$ac_func || defined __stub___$ac_func
15642 choke me
15643 #endif
15644
15645 int
15646 main ()
15647 {
15648 return $ac_func ();
15649   ;
15650   return 0;
15651 }
15652 _ACEOF
15653 rm -f conftest.$ac_objext conftest$ac_exeext
15654 if { (ac_try="$ac_link"
15655 case "(($ac_try" in
15656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657   *) ac_try_echo=$ac_try;;
15658 esac
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660   (eval "$ac_link") 2>conftest.er1
15661   ac_status=$?
15662   grep -v '^ *+' conftest.er1 >conftest.err
15663   rm -f conftest.er1
15664   cat conftest.err >&5
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); } &&
15667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15668   { (case "(($ac_try" in
15669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670   *) ac_try_echo=$ac_try;;
15671 esac
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673   (eval "$ac_try") 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); }; } &&
15677          { ac_try='test -s conftest$ac_exeext'
15678   { (case "(($ac_try" in
15679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680   *) ac_try_echo=$ac_try;;
15681 esac
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683   (eval "$ac_try") 2>&5
15684   ac_status=$?
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); }; }; then
15687   eval "$as_ac_var=yes"
15688 else
15689   echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15691
15692         eval "$as_ac_var=no"
15693 fi
15694
15695 rm -f core conftest.err conftest.$ac_objext \
15696       conftest$ac_exeext conftest.$ac_ext
15697 fi
15698 ac_res=`eval echo '${'$as_ac_var'}'`
15699                { echo "$as_me:$LINENO: result: $ac_res" >&5
15700 echo "${ECHO_T}$ac_res" >&6; }
15701 if test `eval echo '${'$as_ac_var'}'` = yes; then
15702   cat >>confdefs.h <<_ACEOF
15703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15704 _ACEOF
15705
15706 fi
15707 done
15708
15709
15710
15711 for ac_func in futimes futimens
15712 do
15713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15717   echo $ECHO_N "(cached) $ECHO_C" >&6
15718 else
15719   cat >conftest.$ac_ext <<_ACEOF
15720 /* confdefs.h.  */
15721 _ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h.  */
15725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15727 #define $ac_func innocuous_$ac_func
15728
15729 /* System header to define __stub macros and hopefully few prototypes,
15730     which can conflict with char $ac_func (); below.
15731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15732     <limits.h> exists even on freestanding compilers.  */
15733
15734 #ifdef __STDC__
15735 # include <limits.h>
15736 #else
15737 # include <assert.h>
15738 #endif
15739
15740 #undef $ac_func
15741
15742 /* Override any GCC internal prototype to avoid an error.
15743    Use char because int might match the return type of a GCC
15744    builtin and then its argument prototype would still apply.  */
15745 #ifdef __cplusplus
15746 extern "C"
15747 #endif
15748 char $ac_func ();
15749 /* The GNU C library defines this for functions which it implements
15750     to always fail with ENOSYS.  Some functions are actually named
15751     something starting with __ and the normal name is an alias.  */
15752 #if defined __stub_$ac_func || defined __stub___$ac_func
15753 choke me
15754 #endif
15755
15756 int
15757 main ()
15758 {
15759 return $ac_func ();
15760   ;
15761   return 0;
15762 }
15763 _ACEOF
15764 rm -f conftest.$ac_objext conftest$ac_exeext
15765 if { (ac_try="$ac_link"
15766 case "(($ac_try" in
15767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768   *) ac_try_echo=$ac_try;;
15769 esac
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771   (eval "$ac_link") 2>conftest.er1
15772   ac_status=$?
15773   grep -v '^ *+' conftest.er1 >conftest.err
15774   rm -f conftest.er1
15775   cat conftest.err >&5
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); } &&
15778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15779   { (case "(($ac_try" in
15780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781   *) ac_try_echo=$ac_try;;
15782 esac
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784   (eval "$ac_try") 2>&5
15785   ac_status=$?
15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787   (exit $ac_status); }; } &&
15788          { ac_try='test -s conftest$ac_exeext'
15789   { (case "(($ac_try" in
15790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791   *) ac_try_echo=$ac_try;;
15792 esac
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794   (eval "$ac_try") 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); }; }; then
15798   eval "$as_ac_var=yes"
15799 else
15800   echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15802
15803         eval "$as_ac_var=no"
15804 fi
15805
15806 rm -f core conftest.err conftest.$ac_objext \
15807       conftest$ac_exeext conftest.$ac_ext
15808 fi
15809 ac_res=`eval echo '${'$as_ac_var'}'`
15810                { echo "$as_me:$LINENO: result: $ac_res" >&5
15811 echo "${ECHO_T}$ac_res" >&6; }
15812 if test `eval echo '${'$as_ac_var'}'` = yes; then
15813   cat >>confdefs.h <<_ACEOF
15814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15815 _ACEOF
15816
15817 fi
15818 done
15819
15820 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15821 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15822 if test "${llvm_cv_c_printf_a+set}" = set; then
15823   echo $ECHO_N "(cached) $ECHO_C" >&6
15824 else
15825   ac_ext=c
15826 ac_cpp='$CPP $CPPFLAGS'
15827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15830
15831  if test "$cross_compiling" = yes; then
15832   llvmac_cv_c_printf_a=no
15833 else
15834   cat >conftest.$ac_ext <<_ACEOF
15835
15836   /* confdefs.h.  */
15837 _ACEOF
15838 cat confdefs.h >>conftest.$ac_ext
15839 cat >>conftest.$ac_ext <<_ACEOF
15840 /* end confdefs.h.  */
15841
15842 #include <stdio.h>
15843 #include <stdlib.h>
15844
15845 int
15846 main ()
15847 {
15848
15849 volatile double A, B;
15850 char Buffer[100];
15851 A = 1;
15852 A /= 10.0;
15853 sprintf(Buffer, "%a", A);
15854 B = atof(Buffer);
15855 if (A != B)
15856   return (1);
15857 if (A != 0x1.999999999999ap-4)
15858   return (1);
15859 return (0);
15860   ;
15861   return 0;
15862 }
15863 _ACEOF
15864 rm -f conftest$ac_exeext
15865 if { (ac_try="$ac_link"
15866 case "(($ac_try" in
15867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868   *) ac_try_echo=$ac_try;;
15869 esac
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871   (eval "$ac_link") 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15875   { (case "(($ac_try" in
15876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877   *) ac_try_echo=$ac_try;;
15878 esac
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880   (eval "$ac_try") 2>&5
15881   ac_status=$?
15882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883   (exit $ac_status); }; }; then
15884   llvm_cv_c_printf_a=yes
15885 else
15886   echo "$as_me: program exited with status $ac_status" >&5
15887 echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.$ac_ext >&5
15889
15890 ( exit $ac_status )
15891 llvmac_cv_c_printf_a=no
15892 fi
15893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15894 fi
15895
15896
15897  ac_ext=c
15898 ac_cpp='$CPP $CPPFLAGS'
15899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15902
15903 fi
15904 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15905 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15906  if test "$llvm_cv_c_printf_a" = "yes"; then
15907
15908 cat >>confdefs.h <<\_ACEOF
15909 #define HAVE_PRINTF_A 1
15910 _ACEOF
15911
15912  fi
15913
15914
15915
15916   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15917 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15918 if test "${ac_cv_func_rand48+set}" = set; then
15919   echo $ECHO_N "(cached) $ECHO_C" >&6
15920 else
15921
15922     ac_ext=cpp
15923 ac_cpp='$CXXCPP $CPPFLAGS'
15924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15927
15928     cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h.  */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h.  */
15934 #include <stdlib.h>
15935 int
15936 main ()
15937 {
15938 srand48(0);lrand48();drand48();
15939   ;
15940   return 0;
15941 }
15942 _ACEOF
15943 rm -f conftest.$ac_objext
15944 if { (ac_try="$ac_compile"
15945 case "(($ac_try" in
15946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947   *) ac_try_echo=$ac_try;;
15948 esac
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950   (eval "$ac_compile") 2>conftest.er1
15951   ac_status=$?
15952   grep -v '^ *+' conftest.er1 >conftest.err
15953   rm -f conftest.er1
15954   cat conftest.err >&5
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); } &&
15957          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15958   { (case "(($ac_try" in
15959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960   *) ac_try_echo=$ac_try;;
15961 esac
15962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15963   (eval "$ac_try") 2>&5
15964   ac_status=$?
15965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966   (exit $ac_status); }; } &&
15967          { ac_try='test -s conftest.$ac_objext'
15968   { (case "(($ac_try" in
15969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970   *) ac_try_echo=$ac_try;;
15971 esac
15972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973   (eval "$ac_try") 2>&5
15974   ac_status=$?
15975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976   (exit $ac_status); }; }; then
15977   ac_cv_func_rand48=yes
15978 else
15979   echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15981
15982         ac_cv_func_rand48=no
15983 fi
15984
15985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15986     ac_ext=c
15987 ac_cpp='$CPP $CPPFLAGS'
15988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15991
15992
15993 fi
15994 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15995 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15996
15997 if test "$ac_cv_func_rand48" = "yes" ; then
15998
15999 cat >>confdefs.h <<\_ACEOF
16000 #define HAVE_RAND48 1
16001 _ACEOF
16002
16003 fi
16004
16005
16006 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
16007 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
16008 if test "${ac_cv_have_decl_arc4random+set}" = set; then
16009   echo $ECHO_N "(cached) $ECHO_C" >&6
16010 else
16011   cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h.  */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h.  */
16017 $ac_includes_default
16018 int
16019 main ()
16020 {
16021 #ifndef arc4random
16022   char *p = (char *) arc4random;
16023   return !p;
16024 #endif
16025
16026   ;
16027   return 0;
16028 }
16029 _ACEOF
16030 rm -f conftest.$ac_objext
16031 if { (ac_try="$ac_compile"
16032 case "(($ac_try" in
16033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034   *) ac_try_echo=$ac_try;;
16035 esac
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037   (eval "$ac_compile") 2>conftest.er1
16038   ac_status=$?
16039   grep -v '^ *+' conftest.er1 >conftest.err
16040   rm -f conftest.er1
16041   cat conftest.err >&5
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); } &&
16044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16045   { (case "(($ac_try" in
16046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047   *) ac_try_echo=$ac_try;;
16048 esac
16049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050   (eval "$ac_try") 2>&5
16051   ac_status=$?
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); }; } &&
16054          { ac_try='test -s conftest.$ac_objext'
16055   { (case "(($ac_try" in
16056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057   *) ac_try_echo=$ac_try;;
16058 esac
16059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060   (eval "$ac_try") 2>&5
16061   ac_status=$?
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); }; }; then
16064   ac_cv_have_decl_arc4random=yes
16065 else
16066   echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16068
16069         ac_cv_have_decl_arc4random=no
16070 fi
16071
16072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16073 fi
16074 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
16075 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
16076 if test $ac_cv_have_decl_arc4random = yes; then
16077
16078 cat >>confdefs.h <<_ACEOF
16079 #define HAVE_DECL_ARC4RANDOM 1
16080 _ACEOF
16081
16082
16083 else
16084   cat >>confdefs.h <<_ACEOF
16085 #define HAVE_DECL_ARC4RANDOM 0
16086 _ACEOF
16087
16088
16089 fi
16090
16091
16092
16093 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
16094 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
16095 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
16096   echo $ECHO_N "(cached) $ECHO_C" >&6
16097 else
16098   cat >conftest.$ac_ext <<_ACEOF
16099 /* confdefs.h.  */
16100 _ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h.  */
16104 $ac_includes_default
16105 int
16106 main ()
16107 {
16108 #ifndef strerror_s
16109   char *p = (char *) strerror_s;
16110   return !p;
16111 #endif
16112
16113   ;
16114   return 0;
16115 }
16116 _ACEOF
16117 rm -f conftest.$ac_objext
16118 if { (ac_try="$ac_compile"
16119 case "(($ac_try" in
16120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121   *) ac_try_echo=$ac_try;;
16122 esac
16123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124   (eval "$ac_compile") 2>conftest.er1
16125   ac_status=$?
16126   grep -v '^ *+' conftest.er1 >conftest.err
16127   rm -f conftest.er1
16128   cat conftest.err >&5
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); } &&
16131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16132   { (case "(($ac_try" in
16133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134   *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137   (eval "$ac_try") 2>&5
16138   ac_status=$?
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); }; } &&
16141          { ac_try='test -s conftest.$ac_objext'
16142   { (case "(($ac_try" in
16143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144   *) ac_try_echo=$ac_try;;
16145 esac
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147   (eval "$ac_try") 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); }; }; then
16151   ac_cv_have_decl_strerror_s=yes
16152 else
16153   echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16155
16156         ac_cv_have_decl_strerror_s=no
16157 fi
16158
16159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16160 fi
16161 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
16162 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
16163 if test $ac_cv_have_decl_strerror_s = yes; then
16164
16165 cat >>confdefs.h <<_ACEOF
16166 #define HAVE_DECL_STRERROR_S 1
16167 _ACEOF
16168
16169
16170 else
16171   cat >>confdefs.h <<_ACEOF
16172 #define HAVE_DECL_STRERROR_S 0
16173 _ACEOF
16174
16175
16176 fi
16177
16178
16179
16180 if test "$llvm_cv_os_type" = "MingW" ; then
16181   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
16182 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
16183 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
16184   echo $ECHO_N "(cached) $ECHO_C" >&6
16185 else
16186   ac_check_lib_save_LIBS=$LIBS
16187 LIBS="-lgcc  $LIBS"
16188 cat >conftest.$ac_ext <<_ACEOF
16189 /* confdefs.h.  */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h.  */
16194
16195 /* Override any GCC internal prototype to avoid an error.
16196    Use char because int might match the return type of a GCC
16197    builtin and then its argument prototype would still apply.  */
16198 #ifdef __cplusplus
16199 extern "C"
16200 #endif
16201 char _alloca ();
16202 int
16203 main ()
16204 {
16205 return _alloca ();
16206   ;
16207   return 0;
16208 }
16209 _ACEOF
16210 rm -f conftest.$ac_objext conftest$ac_exeext
16211 if { (ac_try="$ac_link"
16212 case "(($ac_try" in
16213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214   *) ac_try_echo=$ac_try;;
16215 esac
16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217   (eval "$ac_link") 2>conftest.er1
16218   ac_status=$?
16219   grep -v '^ *+' conftest.er1 >conftest.err
16220   rm -f conftest.er1
16221   cat conftest.err >&5
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } &&
16224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16225   { (case "(($ac_try" in
16226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227   *) ac_try_echo=$ac_try;;
16228 esac
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230   (eval "$ac_try") 2>&5
16231   ac_status=$?
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); }; } &&
16234          { ac_try='test -s conftest$ac_exeext'
16235   { (case "(($ac_try" in
16236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237   *) ac_try_echo=$ac_try;;
16238 esac
16239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240   (eval "$ac_try") 2>&5
16241   ac_status=$?
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); }; }; then
16244   ac_cv_lib_gcc__alloca=yes
16245 else
16246   echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16248
16249         ac_cv_lib_gcc__alloca=no
16250 fi
16251
16252 rm -f core conftest.err conftest.$ac_objext \
16253       conftest$ac_exeext conftest.$ac_ext
16254 LIBS=$ac_check_lib_save_LIBS
16255 fi
16256 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
16257 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
16258 if test $ac_cv_lib_gcc__alloca = yes; then
16259
16260 cat >>confdefs.h <<\_ACEOF
16261 #define HAVE__ALLOCA 1
16262 _ACEOF
16263
16264 fi
16265
16266   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
16267 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
16268 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
16269   echo $ECHO_N "(cached) $ECHO_C" >&6
16270 else
16271   ac_check_lib_save_LIBS=$LIBS
16272 LIBS="-lgcc  $LIBS"
16273 cat >conftest.$ac_ext <<_ACEOF
16274 /* confdefs.h.  */
16275 _ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h.  */
16279
16280 /* Override any GCC internal prototype to avoid an error.
16281    Use char because int might match the return type of a GCC
16282    builtin and then its argument prototype would still apply.  */
16283 #ifdef __cplusplus
16284 extern "C"
16285 #endif
16286 char __alloca ();
16287 int
16288 main ()
16289 {
16290 return __alloca ();
16291   ;
16292   return 0;
16293 }
16294 _ACEOF
16295 rm -f conftest.$ac_objext conftest$ac_exeext
16296 if { (ac_try="$ac_link"
16297 case "(($ac_try" in
16298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299   *) ac_try_echo=$ac_try;;
16300 esac
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302   (eval "$ac_link") 2>conftest.er1
16303   ac_status=$?
16304   grep -v '^ *+' conftest.er1 >conftest.err
16305   rm -f conftest.er1
16306   cat conftest.err >&5
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); } &&
16309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16310   { (case "(($ac_try" in
16311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312   *) ac_try_echo=$ac_try;;
16313 esac
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315   (eval "$ac_try") 2>&5
16316   ac_status=$?
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); }; } &&
16319          { ac_try='test -s conftest$ac_exeext'
16320   { (case "(($ac_try" in
16321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322   *) ac_try_echo=$ac_try;;
16323 esac
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325   (eval "$ac_try") 2>&5
16326   ac_status=$?
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); }; }; then
16329   ac_cv_lib_gcc___alloca=yes
16330 else
16331   echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334         ac_cv_lib_gcc___alloca=no
16335 fi
16336
16337 rm -f core conftest.err conftest.$ac_objext \
16338       conftest$ac_exeext conftest.$ac_ext
16339 LIBS=$ac_check_lib_save_LIBS
16340 fi
16341 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
16342 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
16343 if test $ac_cv_lib_gcc___alloca = yes; then
16344
16345 cat >>confdefs.h <<\_ACEOF
16346 #define HAVE___ALLOCA 1
16347 _ACEOF
16348
16349 fi
16350
16351   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
16352 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
16353 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
16354   echo $ECHO_N "(cached) $ECHO_C" >&6
16355 else
16356   ac_check_lib_save_LIBS=$LIBS
16357 LIBS="-lgcc  $LIBS"
16358 cat >conftest.$ac_ext <<_ACEOF
16359 /* confdefs.h.  */
16360 _ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h.  */
16364
16365 /* Override any GCC internal prototype to avoid an error.
16366    Use char because int might match the return type of a GCC
16367    builtin and then its argument prototype would still apply.  */
16368 #ifdef __cplusplus
16369 extern "C"
16370 #endif
16371 char __chkstk ();
16372 int
16373 main ()
16374 {
16375 return __chkstk ();
16376   ;
16377   return 0;
16378 }
16379 _ACEOF
16380 rm -f conftest.$ac_objext conftest$ac_exeext
16381 if { (ac_try="$ac_link"
16382 case "(($ac_try" in
16383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384   *) ac_try_echo=$ac_try;;
16385 esac
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387   (eval "$ac_link") 2>conftest.er1
16388   ac_status=$?
16389   grep -v '^ *+' conftest.er1 >conftest.err
16390   rm -f conftest.er1
16391   cat conftest.err >&5
16392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393   (exit $ac_status); } &&
16394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16395   { (case "(($ac_try" in
16396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397   *) ac_try_echo=$ac_try;;
16398 esac
16399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400   (eval "$ac_try") 2>&5
16401   ac_status=$?
16402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403   (exit $ac_status); }; } &&
16404          { ac_try='test -s conftest$ac_exeext'
16405   { (case "(($ac_try" in
16406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407   *) ac_try_echo=$ac_try;;
16408 esac
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410   (eval "$ac_try") 2>&5
16411   ac_status=$?
16412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); }; }; then
16414   ac_cv_lib_gcc___chkstk=yes
16415 else
16416   echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16418
16419         ac_cv_lib_gcc___chkstk=no
16420 fi
16421
16422 rm -f core conftest.err conftest.$ac_objext \
16423       conftest$ac_exeext conftest.$ac_ext
16424 LIBS=$ac_check_lib_save_LIBS
16425 fi
16426 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
16427 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
16428 if test $ac_cv_lib_gcc___chkstk = yes; then
16429
16430 cat >>confdefs.h <<\_ACEOF
16431 #define HAVE___CHKSTK 1
16432 _ACEOF
16433
16434 fi
16435
16436   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
16437 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
16438 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
16439   echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441   ac_check_lib_save_LIBS=$LIBS
16442 LIBS="-lgcc  $LIBS"
16443 cat >conftest.$ac_ext <<_ACEOF
16444 /* confdefs.h.  */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h.  */
16449
16450 /* Override any GCC internal prototype to avoid an error.
16451    Use char because int might match the return type of a GCC
16452    builtin and then its argument prototype would still apply.  */
16453 #ifdef __cplusplus
16454 extern "C"
16455 #endif
16456 char ___chkstk ();
16457 int
16458 main ()
16459 {
16460 return ___chkstk ();
16461   ;
16462   return 0;
16463 }
16464 _ACEOF
16465 rm -f conftest.$ac_objext conftest$ac_exeext
16466 if { (ac_try="$ac_link"
16467 case "(($ac_try" in
16468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469   *) ac_try_echo=$ac_try;;
16470 esac
16471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16472   (eval "$ac_link") 2>conftest.er1
16473   ac_status=$?
16474   grep -v '^ *+' conftest.er1 >conftest.err
16475   rm -f conftest.er1
16476   cat conftest.err >&5
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   (exit $ac_status); } &&
16479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16480   { (case "(($ac_try" in
16481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482   *) ac_try_echo=$ac_try;;
16483 esac
16484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16485   (eval "$ac_try") 2>&5
16486   ac_status=$?
16487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488   (exit $ac_status); }; } &&
16489          { ac_try='test -s conftest$ac_exeext'
16490   { (case "(($ac_try" in
16491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492   *) ac_try_echo=$ac_try;;
16493 esac
16494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495   (eval "$ac_try") 2>&5
16496   ac_status=$?
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); }; }; then
16499   ac_cv_lib_gcc____chkstk=yes
16500 else
16501   echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16503
16504         ac_cv_lib_gcc____chkstk=no
16505 fi
16506
16507 rm -f core conftest.err conftest.$ac_objext \
16508       conftest$ac_exeext conftest.$ac_ext
16509 LIBS=$ac_check_lib_save_LIBS
16510 fi
16511 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
16512 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
16513 if test $ac_cv_lib_gcc____chkstk = yes; then
16514
16515 cat >>confdefs.h <<\_ACEOF
16516 #define HAVE____CHKSTK 1
16517 _ACEOF
16518
16519 fi
16520
16521
16522   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
16523 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
16524 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
16525   echo $ECHO_N "(cached) $ECHO_C" >&6
16526 else
16527   ac_check_lib_save_LIBS=$LIBS
16528 LIBS="-lgcc  $LIBS"
16529 cat >conftest.$ac_ext <<_ACEOF
16530 /* confdefs.h.  */
16531 _ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h.  */
16535
16536 /* Override any GCC internal prototype to avoid an error.
16537    Use char because int might match the return type of a GCC
16538    builtin and then its argument prototype would still apply.  */
16539 #ifdef __cplusplus
16540 extern "C"
16541 #endif
16542 char __ashldi3 ();
16543 int
16544 main ()
16545 {
16546 return __ashldi3 ();
16547   ;
16548   return 0;
16549 }
16550 _ACEOF
16551 rm -f conftest.$ac_objext conftest$ac_exeext
16552 if { (ac_try="$ac_link"
16553 case "(($ac_try" in
16554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555   *) ac_try_echo=$ac_try;;
16556 esac
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558   (eval "$ac_link") 2>conftest.er1
16559   ac_status=$?
16560   grep -v '^ *+' conftest.er1 >conftest.err
16561   rm -f conftest.er1
16562   cat conftest.err >&5
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); } &&
16565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16566   { (case "(($ac_try" in
16567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568   *) ac_try_echo=$ac_try;;
16569 esac
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571   (eval "$ac_try") 2>&5
16572   ac_status=$?
16573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574   (exit $ac_status); }; } &&
16575          { ac_try='test -s conftest$ac_exeext'
16576   { (case "(($ac_try" in
16577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578   *) ac_try_echo=$ac_try;;
16579 esac
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581   (eval "$ac_try") 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); }; }; then
16585   ac_cv_lib_gcc___ashldi3=yes
16586 else
16587   echo "$as_me: failed program was:" >&5
16588 sed 's/^/| /' conftest.$ac_ext >&5
16589
16590         ac_cv_lib_gcc___ashldi3=no
16591 fi
16592
16593 rm -f core conftest.err conftest.$ac_objext \
16594       conftest$ac_exeext conftest.$ac_ext
16595 LIBS=$ac_check_lib_save_LIBS
16596 fi
16597 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16598 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16599 if test $ac_cv_lib_gcc___ashldi3 = yes; then
16600
16601 cat >>confdefs.h <<\_ACEOF
16602 #define HAVE___ASHLDI3 1
16603 _ACEOF
16604
16605 fi
16606
16607   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16608 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16609 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16610   echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612   ac_check_lib_save_LIBS=$LIBS
16613 LIBS="-lgcc  $LIBS"
16614 cat >conftest.$ac_ext <<_ACEOF
16615 /* confdefs.h.  */
16616 _ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h.  */
16620
16621 /* Override any GCC internal prototype to avoid an error.
16622    Use char because int might match the return type of a GCC
16623    builtin and then its argument prototype would still apply.  */
16624 #ifdef __cplusplus
16625 extern "C"
16626 #endif
16627 char __ashrdi3 ();
16628 int
16629 main ()
16630 {
16631 return __ashrdi3 ();
16632   ;
16633   return 0;
16634 }
16635 _ACEOF
16636 rm -f conftest.$ac_objext conftest$ac_exeext
16637 if { (ac_try="$ac_link"
16638 case "(($ac_try" in
16639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640   *) ac_try_echo=$ac_try;;
16641 esac
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643   (eval "$ac_link") 2>conftest.er1
16644   ac_status=$?
16645   grep -v '^ *+' conftest.er1 >conftest.err
16646   rm -f conftest.er1
16647   cat conftest.err >&5
16648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); } &&
16650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16651   { (case "(($ac_try" in
16652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653   *) ac_try_echo=$ac_try;;
16654 esac
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656   (eval "$ac_try") 2>&5
16657   ac_status=$?
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); }; } &&
16660          { ac_try='test -s conftest$ac_exeext'
16661   { (case "(($ac_try" in
16662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663   *) ac_try_echo=$ac_try;;
16664 esac
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666   (eval "$ac_try") 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); }; }; then
16670   ac_cv_lib_gcc___ashrdi3=yes
16671 else
16672   echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16674
16675         ac_cv_lib_gcc___ashrdi3=no
16676 fi
16677
16678 rm -f core conftest.err conftest.$ac_objext \
16679       conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16681 fi
16682 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16683 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16684 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16685
16686 cat >>confdefs.h <<\_ACEOF
16687 #define HAVE___ASHRDI3 1
16688 _ACEOF
16689
16690 fi
16691
16692   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16693 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16694 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16695   echo $ECHO_N "(cached) $ECHO_C" >&6
16696 else
16697   ac_check_lib_save_LIBS=$LIBS
16698 LIBS="-lgcc  $LIBS"
16699 cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h.  */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h.  */
16705
16706 /* Override any GCC internal prototype to avoid an error.
16707    Use char because int might match the return type of a GCC
16708    builtin and then its argument prototype would still apply.  */
16709 #ifdef __cplusplus
16710 extern "C"
16711 #endif
16712 char __divdi3 ();
16713 int
16714 main ()
16715 {
16716 return __divdi3 ();
16717   ;
16718   return 0;
16719 }
16720 _ACEOF
16721 rm -f conftest.$ac_objext conftest$ac_exeext
16722 if { (ac_try="$ac_link"
16723 case "(($ac_try" in
16724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725   *) ac_try_echo=$ac_try;;
16726 esac
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728   (eval "$ac_link") 2>conftest.er1
16729   ac_status=$?
16730   grep -v '^ *+' conftest.er1 >conftest.err
16731   rm -f conftest.er1
16732   cat conftest.err >&5
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); } &&
16735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16736   { (case "(($ac_try" in
16737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738   *) ac_try_echo=$ac_try;;
16739 esac
16740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16741   (eval "$ac_try") 2>&5
16742   ac_status=$?
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); }; } &&
16745          { ac_try='test -s conftest$ac_exeext'
16746   { (case "(($ac_try" in
16747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748   *) ac_try_echo=$ac_try;;
16749 esac
16750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751   (eval "$ac_try") 2>&5
16752   ac_status=$?
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); }; }; then
16755   ac_cv_lib_gcc___divdi3=yes
16756 else
16757   echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16759
16760         ac_cv_lib_gcc___divdi3=no
16761 fi
16762
16763 rm -f core conftest.err conftest.$ac_objext \
16764       conftest$ac_exeext conftest.$ac_ext
16765 LIBS=$ac_check_lib_save_LIBS
16766 fi
16767 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16768 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16769 if test $ac_cv_lib_gcc___divdi3 = yes; then
16770
16771 cat >>confdefs.h <<\_ACEOF
16772 #define HAVE___DIVDI3 1
16773 _ACEOF
16774
16775 fi
16776
16777   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16778 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16779 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16780   echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782   ac_check_lib_save_LIBS=$LIBS
16783 LIBS="-lgcc  $LIBS"
16784 cat >conftest.$ac_ext <<_ACEOF
16785 /* confdefs.h.  */
16786 _ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h.  */
16790
16791 /* Override any GCC internal prototype to avoid an error.
16792    Use char because int might match the return type of a GCC
16793    builtin and then its argument prototype would still apply.  */
16794 #ifdef __cplusplus
16795 extern "C"
16796 #endif
16797 char __fixdfdi ();
16798 int
16799 main ()
16800 {
16801 return __fixdfdi ();
16802   ;
16803   return 0;
16804 }
16805 _ACEOF
16806 rm -f conftest.$ac_objext conftest$ac_exeext
16807 if { (ac_try="$ac_link"
16808 case "(($ac_try" in
16809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810   *) ac_try_echo=$ac_try;;
16811 esac
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813   (eval "$ac_link") 2>conftest.er1
16814   ac_status=$?
16815   grep -v '^ *+' conftest.er1 >conftest.err
16816   rm -f conftest.er1
16817   cat conftest.err >&5
16818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819   (exit $ac_status); } &&
16820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16821   { (case "(($ac_try" in
16822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823   *) ac_try_echo=$ac_try;;
16824 esac
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826   (eval "$ac_try") 2>&5
16827   ac_status=$?
16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); }; } &&
16830          { ac_try='test -s conftest$ac_exeext'
16831   { (case "(($ac_try" in
16832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833   *) ac_try_echo=$ac_try;;
16834 esac
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836   (eval "$ac_try") 2>&5
16837   ac_status=$?
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); }; }; then
16840   ac_cv_lib_gcc___fixdfdi=yes
16841 else
16842   echo "$as_me: failed program was:" >&5
16843 sed 's/^/| /' conftest.$ac_ext >&5
16844
16845         ac_cv_lib_gcc___fixdfdi=no
16846 fi
16847
16848 rm -f core conftest.err conftest.$ac_objext \
16849       conftest$ac_exeext conftest.$ac_ext
16850 LIBS=$ac_check_lib_save_LIBS
16851 fi
16852 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16853 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16854 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16855
16856 cat >>confdefs.h <<\_ACEOF
16857 #define HAVE___FIXDFDI 1
16858 _ACEOF
16859
16860 fi
16861
16862   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16863 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16864 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16865   echo $ECHO_N "(cached) $ECHO_C" >&6
16866 else
16867   ac_check_lib_save_LIBS=$LIBS
16868 LIBS="-lgcc  $LIBS"
16869 cat >conftest.$ac_ext <<_ACEOF
16870 /* confdefs.h.  */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h.  */
16875
16876 /* Override any GCC internal prototype to avoid an error.
16877    Use char because int might match the return type of a GCC
16878    builtin and then its argument prototype would still apply.  */
16879 #ifdef __cplusplus
16880 extern "C"
16881 #endif
16882 char __fixsfdi ();
16883 int
16884 main ()
16885 {
16886 return __fixsfdi ();
16887   ;
16888   return 0;
16889 }
16890 _ACEOF
16891 rm -f conftest.$ac_objext conftest$ac_exeext
16892 if { (ac_try="$ac_link"
16893 case "(($ac_try" in
16894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895   *) ac_try_echo=$ac_try;;
16896 esac
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898   (eval "$ac_link") 2>conftest.er1
16899   ac_status=$?
16900   grep -v '^ *+' conftest.er1 >conftest.err
16901   rm -f conftest.er1
16902   cat conftest.err >&5
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); } &&
16905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16906   { (case "(($ac_try" in
16907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908   *) ac_try_echo=$ac_try;;
16909 esac
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911   (eval "$ac_try") 2>&5
16912   ac_status=$?
16913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914   (exit $ac_status); }; } &&
16915          { ac_try='test -s conftest$ac_exeext'
16916   { (case "(($ac_try" in
16917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918   *) ac_try_echo=$ac_try;;
16919 esac
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921   (eval "$ac_try") 2>&5
16922   ac_status=$?
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); }; }; then
16925   ac_cv_lib_gcc___fixsfdi=yes
16926 else
16927   echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16929
16930         ac_cv_lib_gcc___fixsfdi=no
16931 fi
16932
16933 rm -f core conftest.err conftest.$ac_objext \
16934       conftest$ac_exeext conftest.$ac_ext
16935 LIBS=$ac_check_lib_save_LIBS
16936 fi
16937 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16938 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16939 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16940
16941 cat >>confdefs.h <<\_ACEOF
16942 #define HAVE___FIXSFDI 1
16943 _ACEOF
16944
16945 fi
16946
16947   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16948 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16949 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16950   echo $ECHO_N "(cached) $ECHO_C" >&6
16951 else
16952   ac_check_lib_save_LIBS=$LIBS
16953 LIBS="-lgcc  $LIBS"
16954 cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h.  */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h.  */
16960
16961 /* Override any GCC internal prototype to avoid an error.
16962    Use char because int might match the return type of a GCC
16963    builtin and then its argument prototype would still apply.  */
16964 #ifdef __cplusplus
16965 extern "C"
16966 #endif
16967 char __floatdidf ();
16968 int
16969 main ()
16970 {
16971 return __floatdidf ();
16972   ;
16973   return 0;
16974 }
16975 _ACEOF
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (ac_try="$ac_link"
16978 case "(($ac_try" in
16979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980   *) ac_try_echo=$ac_try;;
16981 esac
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983   (eval "$ac_link") 2>conftest.er1
16984   ac_status=$?
16985   grep -v '^ *+' conftest.er1 >conftest.err
16986   rm -f conftest.er1
16987   cat conftest.err >&5
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); } &&
16990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16991   { (case "(($ac_try" in
16992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993   *) ac_try_echo=$ac_try;;
16994 esac
16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996   (eval "$ac_try") 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); }; } &&
17000          { ac_try='test -s conftest$ac_exeext'
17001   { (case "(($ac_try" in
17002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003   *) ac_try_echo=$ac_try;;
17004 esac
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006   (eval "$ac_try") 2>&5
17007   ac_status=$?
17008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009   (exit $ac_status); }; }; then
17010   ac_cv_lib_gcc___floatdidf=yes
17011 else
17012   echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17014
17015         ac_cv_lib_gcc___floatdidf=no
17016 fi
17017
17018 rm -f core conftest.err conftest.$ac_objext \
17019       conftest$ac_exeext conftest.$ac_ext
17020 LIBS=$ac_check_lib_save_LIBS
17021 fi
17022 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
17023 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
17024 if test $ac_cv_lib_gcc___floatdidf = yes; then
17025
17026 cat >>confdefs.h <<\_ACEOF
17027 #define HAVE___FLOATDIDF 1
17028 _ACEOF
17029
17030 fi
17031
17032   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
17033 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
17034 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
17035   echo $ECHO_N "(cached) $ECHO_C" >&6
17036 else
17037   ac_check_lib_save_LIBS=$LIBS
17038 LIBS="-lgcc  $LIBS"
17039 cat >conftest.$ac_ext <<_ACEOF
17040 /* confdefs.h.  */
17041 _ACEOF
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h.  */
17045
17046 /* Override any GCC internal prototype to avoid an error.
17047    Use char because int might match the return type of a GCC
17048    builtin and then its argument prototype would still apply.  */
17049 #ifdef __cplusplus
17050 extern "C"
17051 #endif
17052 char __lshrdi3 ();
17053 int
17054 main ()
17055 {
17056 return __lshrdi3 ();
17057   ;
17058   return 0;
17059 }
17060 _ACEOF
17061 rm -f conftest.$ac_objext conftest$ac_exeext
17062 if { (ac_try="$ac_link"
17063 case "(($ac_try" in
17064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065   *) ac_try_echo=$ac_try;;
17066 esac
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068   (eval "$ac_link") 2>conftest.er1
17069   ac_status=$?
17070   grep -v '^ *+' conftest.er1 >conftest.err
17071   rm -f conftest.er1
17072   cat conftest.err >&5
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); } &&
17075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17076   { (case "(($ac_try" in
17077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078   *) ac_try_echo=$ac_try;;
17079 esac
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081   (eval "$ac_try") 2>&5
17082   ac_status=$?
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); }; } &&
17085          { ac_try='test -s conftest$ac_exeext'
17086   { (case "(($ac_try" in
17087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088   *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091   (eval "$ac_try") 2>&5
17092   ac_status=$?
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); }; }; then
17095   ac_cv_lib_gcc___lshrdi3=yes
17096 else
17097   echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17099
17100         ac_cv_lib_gcc___lshrdi3=no
17101 fi
17102
17103 rm -f core conftest.err conftest.$ac_objext \
17104       conftest$ac_exeext conftest.$ac_ext
17105 LIBS=$ac_check_lib_save_LIBS
17106 fi
17107 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
17108 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
17109 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
17110
17111 cat >>confdefs.h <<\_ACEOF
17112 #define HAVE___LSHRDI3 1
17113 _ACEOF
17114
17115 fi
17116
17117   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
17118 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
17119 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
17120   echo $ECHO_N "(cached) $ECHO_C" >&6
17121 else
17122   ac_check_lib_save_LIBS=$LIBS
17123 LIBS="-lgcc  $LIBS"
17124 cat >conftest.$ac_ext <<_ACEOF
17125 /* confdefs.h.  */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h.  */
17130
17131 /* Override any GCC internal prototype to avoid an error.
17132    Use char because int might match the return type of a GCC
17133    builtin and then its argument prototype would still apply.  */
17134 #ifdef __cplusplus
17135 extern "C"
17136 #endif
17137 char __moddi3 ();
17138 int
17139 main ()
17140 {
17141 return __moddi3 ();
17142   ;
17143   return 0;
17144 }
17145 _ACEOF
17146 rm -f conftest.$ac_objext conftest$ac_exeext
17147 if { (ac_try="$ac_link"
17148 case "(($ac_try" in
17149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150   *) ac_try_echo=$ac_try;;
17151 esac
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153   (eval "$ac_link") 2>conftest.er1
17154   ac_status=$?
17155   grep -v '^ *+' conftest.er1 >conftest.err
17156   rm -f conftest.er1
17157   cat conftest.err >&5
17158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159   (exit $ac_status); } &&
17160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17161   { (case "(($ac_try" in
17162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163   *) ac_try_echo=$ac_try;;
17164 esac
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166   (eval "$ac_try") 2>&5
17167   ac_status=$?
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); }; } &&
17170          { ac_try='test -s conftest$ac_exeext'
17171   { (case "(($ac_try" in
17172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173   *) ac_try_echo=$ac_try;;
17174 esac
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176   (eval "$ac_try") 2>&5
17177   ac_status=$?
17178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179   (exit $ac_status); }; }; then
17180   ac_cv_lib_gcc___moddi3=yes
17181 else
17182   echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17184
17185         ac_cv_lib_gcc___moddi3=no
17186 fi
17187
17188 rm -f core conftest.err conftest.$ac_objext \
17189       conftest$ac_exeext conftest.$ac_ext
17190 LIBS=$ac_check_lib_save_LIBS
17191 fi
17192 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
17193 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
17194 if test $ac_cv_lib_gcc___moddi3 = yes; then
17195
17196 cat >>confdefs.h <<\_ACEOF
17197 #define HAVE___MODDI3 1
17198 _ACEOF
17199
17200 fi
17201
17202   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
17203 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
17204 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
17205   echo $ECHO_N "(cached) $ECHO_C" >&6
17206 else
17207   ac_check_lib_save_LIBS=$LIBS
17208 LIBS="-lgcc  $LIBS"
17209 cat >conftest.$ac_ext <<_ACEOF
17210 /* confdefs.h.  */
17211 _ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h.  */
17215
17216 /* Override any GCC internal prototype to avoid an error.
17217    Use char because int might match the return type of a GCC
17218    builtin and then its argument prototype would still apply.  */
17219 #ifdef __cplusplus
17220 extern "C"
17221 #endif
17222 char __udivdi3 ();
17223 int
17224 main ()
17225 {
17226 return __udivdi3 ();
17227   ;
17228   return 0;
17229 }
17230 _ACEOF
17231 rm -f conftest.$ac_objext conftest$ac_exeext
17232 if { (ac_try="$ac_link"
17233 case "(($ac_try" in
17234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235   *) ac_try_echo=$ac_try;;
17236 esac
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238   (eval "$ac_link") 2>conftest.er1
17239   ac_status=$?
17240   grep -v '^ *+' conftest.er1 >conftest.err
17241   rm -f conftest.er1
17242   cat conftest.err >&5
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); } &&
17245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17246   { (case "(($ac_try" in
17247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248   *) ac_try_echo=$ac_try;;
17249 esac
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251   (eval "$ac_try") 2>&5
17252   ac_status=$?
17253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); }; } &&
17255          { ac_try='test -s conftest$ac_exeext'
17256   { (case "(($ac_try" in
17257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258   *) ac_try_echo=$ac_try;;
17259 esac
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261   (eval "$ac_try") 2>&5
17262   ac_status=$?
17263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); }; }; then
17265   ac_cv_lib_gcc___udivdi3=yes
17266 else
17267   echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17269
17270         ac_cv_lib_gcc___udivdi3=no
17271 fi
17272
17273 rm -f core conftest.err conftest.$ac_objext \
17274       conftest$ac_exeext conftest.$ac_ext
17275 LIBS=$ac_check_lib_save_LIBS
17276 fi
17277 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
17278 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
17279 if test $ac_cv_lib_gcc___udivdi3 = yes; then
17280
17281 cat >>confdefs.h <<\_ACEOF
17282 #define HAVE___UDIVDI3 1
17283 _ACEOF
17284
17285 fi
17286
17287   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
17288 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
17289 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
17290   echo $ECHO_N "(cached) $ECHO_C" >&6
17291 else
17292   ac_check_lib_save_LIBS=$LIBS
17293 LIBS="-lgcc  $LIBS"
17294 cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h.  */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h.  */
17300
17301 /* Override any GCC internal prototype to avoid an error.
17302    Use char because int might match the return type of a GCC
17303    builtin and then its argument prototype would still apply.  */
17304 #ifdef __cplusplus
17305 extern "C"
17306 #endif
17307 char __umoddi3 ();
17308 int
17309 main ()
17310 {
17311 return __umoddi3 ();
17312   ;
17313   return 0;
17314 }
17315 _ACEOF
17316 rm -f conftest.$ac_objext conftest$ac_exeext
17317 if { (ac_try="$ac_link"
17318 case "(($ac_try" in
17319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320   *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323   (eval "$ac_link") 2>conftest.er1
17324   ac_status=$?
17325   grep -v '^ *+' conftest.er1 >conftest.err
17326   rm -f conftest.er1
17327   cat conftest.err >&5
17328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329   (exit $ac_status); } &&
17330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17331   { (case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336   (eval "$ac_try") 2>&5
17337   ac_status=$?
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); }; } &&
17340          { ac_try='test -s conftest$ac_exeext'
17341   { (case "(($ac_try" in
17342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343   *) ac_try_echo=$ac_try;;
17344 esac
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346   (eval "$ac_try") 2>&5
17347   ac_status=$?
17348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349   (exit $ac_status); }; }; then
17350   ac_cv_lib_gcc___umoddi3=yes
17351 else
17352   echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17354
17355         ac_cv_lib_gcc___umoddi3=no
17356 fi
17357
17358 rm -f core conftest.err conftest.$ac_objext \
17359       conftest$ac_exeext conftest.$ac_ext
17360 LIBS=$ac_check_lib_save_LIBS
17361 fi
17362 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
17363 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
17364 if test $ac_cv_lib_gcc___umoddi3 = yes; then
17365
17366 cat >>confdefs.h <<\_ACEOF
17367 #define HAVE___UMODDI3 1
17368 _ACEOF
17369
17370 fi
17371
17372
17373   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
17374 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
17375 if test "${ac_cv_lib_gcc___main+set}" = set; then
17376   echo $ECHO_N "(cached) $ECHO_C" >&6
17377 else
17378   ac_check_lib_save_LIBS=$LIBS
17379 LIBS="-lgcc  $LIBS"
17380 cat >conftest.$ac_ext <<_ACEOF
17381 /* confdefs.h.  */
17382 _ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h.  */
17386
17387 /* Override any GCC internal prototype to avoid an error.
17388    Use char because int might match the return type of a GCC
17389    builtin and then its argument prototype would still apply.  */
17390 #ifdef __cplusplus
17391 extern "C"
17392 #endif
17393 char __main ();
17394 int
17395 main ()
17396 {
17397 return __main ();
17398   ;
17399   return 0;
17400 }
17401 _ACEOF
17402 rm -f conftest.$ac_objext conftest$ac_exeext
17403 if { (ac_try="$ac_link"
17404 case "(($ac_try" in
17405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406   *) ac_try_echo=$ac_try;;
17407 esac
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409   (eval "$ac_link") 2>conftest.er1
17410   ac_status=$?
17411   grep -v '^ *+' conftest.er1 >conftest.err
17412   rm -f conftest.er1
17413   cat conftest.err >&5
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); } &&
17416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17417   { (case "(($ac_try" in
17418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419   *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422   (eval "$ac_try") 2>&5
17423   ac_status=$?
17424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425   (exit $ac_status); }; } &&
17426          { ac_try='test -s conftest$ac_exeext'
17427   { (case "(($ac_try" in
17428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429   *) ac_try_echo=$ac_try;;
17430 esac
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432   (eval "$ac_try") 2>&5
17433   ac_status=$?
17434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435   (exit $ac_status); }; }; then
17436   ac_cv_lib_gcc___main=yes
17437 else
17438   echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17440
17441         ac_cv_lib_gcc___main=no
17442 fi
17443
17444 rm -f core conftest.err conftest.$ac_objext \
17445       conftest$ac_exeext conftest.$ac_ext
17446 LIBS=$ac_check_lib_save_LIBS
17447 fi
17448 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
17449 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
17450 if test $ac_cv_lib_gcc___main = yes; then
17451
17452 cat >>confdefs.h <<\_ACEOF
17453 #define HAVE___MAIN 1
17454 _ACEOF
17455
17456 fi
17457
17458   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
17459 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
17460 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
17461   echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463   ac_check_lib_save_LIBS=$LIBS
17464 LIBS="-lgcc  $LIBS"
17465 cat >conftest.$ac_ext <<_ACEOF
17466 /* confdefs.h.  */
17467 _ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h.  */
17471
17472 /* Override any GCC internal prototype to avoid an error.
17473    Use char because int might match the return type of a GCC
17474    builtin and then its argument prototype would still apply.  */
17475 #ifdef __cplusplus
17476 extern "C"
17477 #endif
17478 char __cmpdi2 ();
17479 int
17480 main ()
17481 {
17482 return __cmpdi2 ();
17483   ;
17484   return 0;
17485 }
17486 _ACEOF
17487 rm -f conftest.$ac_objext conftest$ac_exeext
17488 if { (ac_try="$ac_link"
17489 case "(($ac_try" in
17490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491   *) ac_try_echo=$ac_try;;
17492 esac
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494   (eval "$ac_link") 2>conftest.er1
17495   ac_status=$?
17496   grep -v '^ *+' conftest.er1 >conftest.err
17497   rm -f conftest.er1
17498   cat conftest.err >&5
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); } &&
17501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502   { (case "(($ac_try" in
17503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504   *) ac_try_echo=$ac_try;;
17505 esac
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507   (eval "$ac_try") 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); }; } &&
17511          { ac_try='test -s conftest$ac_exeext'
17512   { (case "(($ac_try" in
17513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514   *) ac_try_echo=$ac_try;;
17515 esac
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517   (eval "$ac_try") 2>&5
17518   ac_status=$?
17519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520   (exit $ac_status); }; }; then
17521   ac_cv_lib_gcc___cmpdi2=yes
17522 else
17523   echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17525
17526         ac_cv_lib_gcc___cmpdi2=no
17527 fi
17528
17529 rm -f core conftest.err conftest.$ac_objext \
17530       conftest$ac_exeext conftest.$ac_ext
17531 LIBS=$ac_check_lib_save_LIBS
17532 fi
17533 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
17534 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
17535 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
17536
17537 cat >>confdefs.h <<\_ACEOF
17538 #define HAVE___CMPDI2 1
17539 _ACEOF
17540
17541 fi
17542
17543 fi
17544
17545 if test "$llvm_cv_os_type" = "MingW" ; then
17546   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
17547 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
17548   cat >conftest.$ac_ext <<_ACEOF
17549
17550   /* confdefs.h.  */
17551 _ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h.  */
17555
17556     #include <windows.h>
17557     #include <imagehlp.h>
17558     extern void foo(PENUMLOADED_MODULES_CALLBACK);
17559     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
17560
17561
17562 _ACEOF
17563 rm -f conftest.$ac_objext
17564 if { (ac_try="$ac_compile"
17565 case "(($ac_try" in
17566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567   *) ac_try_echo=$ac_try;;
17568 esac
17569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570   (eval "$ac_compile") 2>conftest.er1
17571   ac_status=$?
17572   grep -v '^ *+' conftest.er1 >conftest.err
17573   rm -f conftest.er1
17574   cat conftest.err >&5
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); } &&
17577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17578   { (case "(($ac_try" in
17579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580   *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583   (eval "$ac_try") 2>&5
17584   ac_status=$?
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); }; } &&
17587          { ac_try='test -s conftest.$ac_objext'
17588   { (case "(($ac_try" in
17589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590   *) ac_try_echo=$ac_try;;
17591 esac
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593   (eval "$ac_try") 2>&5
17594   ac_status=$?
17595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596   (exit $ac_status); }; }; then
17597
17598   { echo "$as_me:$LINENO: result: yes" >&5
17599 echo "${ECHO_T}yes" >&6; }
17600   llvm_cv_win32_elmcb_pcstr="PCSTR"
17601
17602 else
17603   echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606
17607   { echo "$as_me:$LINENO: result: no" >&5
17608 echo "${ECHO_T}no" >&6; }
17609   llvm_cv_win32_elmcb_pcstr="PSTR"
17610
17611 fi
17612
17613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17614
17615 cat >>confdefs.h <<_ACEOF
17616 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17617 _ACEOF
17618
17619 fi
17620
17621
17622
17623   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17624 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17625 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17626   echo $ECHO_N "(cached) $ECHO_C" >&6
17627 else
17628
17629     ac_ext=cpp
17630 ac_cpp='$CXXCPP $CPPFLAGS'
17631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17634
17635     cat >conftest.$ac_ext <<_ACEOF
17636 /* confdefs.h.  */
17637 _ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h.  */
17641 #include <math.h>
17642 int
17643 main ()
17644 {
17645 float f; isnan(f);
17646   ;
17647   return 0;
17648 }
17649 _ACEOF
17650 rm -f conftest.$ac_objext
17651 if { (ac_try="$ac_compile"
17652 case "(($ac_try" in
17653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654   *) ac_try_echo=$ac_try;;
17655 esac
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657   (eval "$ac_compile") 2>conftest.er1
17658   ac_status=$?
17659   grep -v '^ *+' conftest.er1 >conftest.err
17660   rm -f conftest.er1
17661   cat conftest.err >&5
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); } &&
17664          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17665   { (case "(($ac_try" in
17666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667   *) ac_try_echo=$ac_try;;
17668 esac
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670   (eval "$ac_try") 2>&5
17671   ac_status=$?
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); }; } &&
17674          { ac_try='test -s conftest.$ac_objext'
17675   { (case "(($ac_try" in
17676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677   *) ac_try_echo=$ac_try;;
17678 esac
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680   (eval "$ac_try") 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); }; }; then
17684   ac_cv_func_isnan_in_math_h=yes
17685 else
17686   echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17688
17689         ac_cv_func_isnan_in_math_h=no
17690 fi
17691
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693     ac_ext=c
17694 ac_cpp='$CPP $CPPFLAGS'
17695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17698
17699
17700 fi
17701 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17702 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17703
17704
17705 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17706
17707 cat >>confdefs.h <<\_ACEOF
17708 #define HAVE_ISNAN_IN_MATH_H 1
17709 _ACEOF
17710
17711 fi
17712
17713
17714   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17715 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17716 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17717   echo $ECHO_N "(cached) $ECHO_C" >&6
17718 else
17719
17720     ac_ext=cpp
17721 ac_cpp='$CXXCPP $CPPFLAGS'
17722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17725
17726     cat >conftest.$ac_ext <<_ACEOF
17727 /* confdefs.h.  */
17728 _ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h.  */
17732 #include <cmath>
17733 int
17734 main ()
17735 {
17736 float f; isnan(f);
17737   ;
17738   return 0;
17739 }
17740 _ACEOF
17741 rm -f conftest.$ac_objext
17742 if { (ac_try="$ac_compile"
17743 case "(($ac_try" in
17744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745   *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748   (eval "$ac_compile") 2>conftest.er1
17749   ac_status=$?
17750   grep -v '^ *+' conftest.er1 >conftest.err
17751   rm -f conftest.er1
17752   cat conftest.err >&5
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); } &&
17755          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17756   { (case "(($ac_try" in
17757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758   *) ac_try_echo=$ac_try;;
17759 esac
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761   (eval "$ac_try") 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); }; } &&
17765          { ac_try='test -s conftest.$ac_objext'
17766   { (case "(($ac_try" in
17767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768   *) ac_try_echo=$ac_try;;
17769 esac
17770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771   (eval "$ac_try") 2>&5
17772   ac_status=$?
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); }; }; then
17775   ac_cv_func_isnan_in_cmath=yes
17776 else
17777   echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.$ac_ext >&5
17779
17780         ac_cv_func_isnan_in_cmath=no
17781 fi
17782
17783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17784     ac_ext=c
17785 ac_cpp='$CPP $CPPFLAGS'
17786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17789
17790
17791 fi
17792 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17793 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17794
17795 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17796
17797 cat >>confdefs.h <<\_ACEOF
17798 #define HAVE_ISNAN_IN_CMATH 1
17799 _ACEOF
17800
17801 fi
17802
17803
17804   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17805 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17806 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17807   echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809
17810     ac_ext=cpp
17811 ac_cpp='$CXXCPP $CPPFLAGS'
17812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17815
17816     cat >conftest.$ac_ext <<_ACEOF
17817 /* confdefs.h.  */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h.  */
17822 #include <cmath>
17823 int
17824 main ()
17825 {
17826 float f; std::isnan(f);
17827   ;
17828   return 0;
17829 }
17830 _ACEOF
17831 rm -f conftest.$ac_objext
17832 if { (ac_try="$ac_compile"
17833 case "(($ac_try" in
17834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835   *) ac_try_echo=$ac_try;;
17836 esac
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838   (eval "$ac_compile") 2>conftest.er1
17839   ac_status=$?
17840   grep -v '^ *+' conftest.er1 >conftest.err
17841   rm -f conftest.er1
17842   cat conftest.err >&5
17843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844   (exit $ac_status); } &&
17845          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17846   { (case "(($ac_try" in
17847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848   *) ac_try_echo=$ac_try;;
17849 esac
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851   (eval "$ac_try") 2>&5
17852   ac_status=$?
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); }; } &&
17855          { ac_try='test -s conftest.$ac_objext'
17856   { (case "(($ac_try" in
17857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858   *) ac_try_echo=$ac_try;;
17859 esac
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861   (eval "$ac_try") 2>&5
17862   ac_status=$?
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); }; }; then
17865   ac_cv_func_std_isnan_in_cmath=yes
17866 else
17867   echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17869
17870         ac_cv_func_std_isnan_in_cmath=no
17871 fi
17872
17873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17874     ac_ext=c
17875 ac_cpp='$CPP $CPPFLAGS'
17876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17879
17880
17881 fi
17882 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17883 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17884
17885 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17886
17887 cat >>confdefs.h <<\_ACEOF
17888 #define HAVE_STD_ISNAN_IN_CMATH 1
17889 _ACEOF
17890
17891 fi
17892
17893
17894
17895
17896   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17897 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17898 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17899   echo $ECHO_N "(cached) $ECHO_C" >&6
17900 else
17901
17902     ac_ext=cpp
17903 ac_cpp='$CXXCPP $CPPFLAGS'
17904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17907
17908     cat >conftest.$ac_ext <<_ACEOF
17909 /* confdefs.h.  */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h.  */
17914 #include <math.h>
17915 int
17916 main ()
17917 {
17918 float f; isinf(f);
17919   ;
17920   return 0;
17921 }
17922 _ACEOF
17923 rm -f conftest.$ac_objext
17924 if { (ac_try="$ac_compile"
17925 case "(($ac_try" in
17926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927   *) ac_try_echo=$ac_try;;
17928 esac
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930   (eval "$ac_compile") 2>conftest.er1
17931   ac_status=$?
17932   grep -v '^ *+' conftest.er1 >conftest.err
17933   rm -f conftest.er1
17934   cat conftest.err >&5
17935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936   (exit $ac_status); } &&
17937          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17938   { (case "(($ac_try" in
17939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940   *) ac_try_echo=$ac_try;;
17941 esac
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943   (eval "$ac_try") 2>&5
17944   ac_status=$?
17945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946   (exit $ac_status); }; } &&
17947          { ac_try='test -s conftest.$ac_objext'
17948   { (case "(($ac_try" in
17949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950   *) ac_try_echo=$ac_try;;
17951 esac
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953   (eval "$ac_try") 2>&5
17954   ac_status=$?
17955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); }; }; then
17957   ac_cv_func_isinf_in_math_h=yes
17958 else
17959   echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17961
17962         ac_cv_func_isinf_in_math_h=no
17963 fi
17964
17965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17966     ac_ext=c
17967 ac_cpp='$CPP $CPPFLAGS'
17968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17971
17972
17973 fi
17974 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17975 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17976
17977 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17978
17979 cat >>confdefs.h <<\_ACEOF
17980 #define HAVE_ISINF_IN_MATH_H 1
17981 _ACEOF
17982
17983 fi
17984
17985
17986   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17987 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17988 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17989   echo $ECHO_N "(cached) $ECHO_C" >&6
17990 else
17991
17992     ac_ext=cpp
17993 ac_cpp='$CXXCPP $CPPFLAGS'
17994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17997
17998     cat >conftest.$ac_ext <<_ACEOF
17999 /* confdefs.h.  */
18000 _ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h.  */
18004 #include <cmath>
18005 int
18006 main ()
18007 {
18008 float f; isinf(f);
18009   ;
18010   return 0;
18011 }
18012 _ACEOF
18013 rm -f conftest.$ac_objext
18014 if { (ac_try="$ac_compile"
18015 case "(($ac_try" in
18016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18017   *) ac_try_echo=$ac_try;;
18018 esac
18019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18020   (eval "$ac_compile") 2>conftest.er1
18021   ac_status=$?
18022   grep -v '^ *+' conftest.er1 >conftest.err
18023   rm -f conftest.er1
18024   cat conftest.err >&5
18025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026   (exit $ac_status); } &&
18027          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18028   { (case "(($ac_try" in
18029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030   *) ac_try_echo=$ac_try;;
18031 esac
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033   (eval "$ac_try") 2>&5
18034   ac_status=$?
18035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036   (exit $ac_status); }; } &&
18037          { ac_try='test -s conftest.$ac_objext'
18038   { (case "(($ac_try" in
18039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040   *) ac_try_echo=$ac_try;;
18041 esac
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043   (eval "$ac_try") 2>&5
18044   ac_status=$?
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); }; }; then
18047   ac_cv_func_isinf_in_cmath=yes
18048 else
18049   echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.$ac_ext >&5
18051
18052         ac_cv_func_isinf_in_cmath=no
18053 fi
18054
18055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056     ac_ext=c
18057 ac_cpp='$CPP $CPPFLAGS'
18058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18061
18062
18063 fi
18064 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18065 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18066
18067 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18068
18069 cat >>confdefs.h <<\_ACEOF
18070 #define HAVE_ISINF_IN_CMATH 1
18071 _ACEOF
18072
18073 fi
18074
18075
18076   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18077 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18078 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18079   echo $ECHO_N "(cached) $ECHO_C" >&6
18080 else
18081
18082     ac_ext=cpp
18083 ac_cpp='$CXXCPP $CPPFLAGS'
18084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18087
18088     cat >conftest.$ac_ext <<_ACEOF
18089 /* confdefs.h.  */
18090 _ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h.  */
18094 #include <cmath>
18095 int
18096 main ()
18097 {
18098 float f; std::isinf(f);
18099   ;
18100   return 0;
18101 }
18102 _ACEOF
18103 rm -f conftest.$ac_objext
18104 if { (ac_try="$ac_compile"
18105 case "(($ac_try" in
18106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107   *) ac_try_echo=$ac_try;;
18108 esac
18109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110   (eval "$ac_compile") 2>conftest.er1
18111   ac_status=$?
18112   grep -v '^ *+' conftest.er1 >conftest.err
18113   rm -f conftest.er1
18114   cat conftest.err >&5
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); } &&
18117          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18118   { (case "(($ac_try" in
18119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120   *) ac_try_echo=$ac_try;;
18121 esac
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123   (eval "$ac_try") 2>&5
18124   ac_status=$?
18125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); }; } &&
18127          { ac_try='test -s conftest.$ac_objext'
18128   { (case "(($ac_try" in
18129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130   *) ac_try_echo=$ac_try;;
18131 esac
18132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133   (eval "$ac_try") 2>&5
18134   ac_status=$?
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); }; }; then
18137   ac_cv_func_std_isinf_in_cmath=yes
18138 else
18139   echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18141
18142         ac_cv_func_std_isinf_in_cmath=no
18143 fi
18144
18145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18146     ac_ext=c
18147 ac_cpp='$CPP $CPPFLAGS'
18148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18151
18152
18153 fi
18154 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18155 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18156
18157 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18158
18159 cat >>confdefs.h <<\_ACEOF
18160 #define HAVE_STD_ISINF_IN_CMATH 1
18161 _ACEOF
18162
18163 fi
18164
18165
18166   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18167 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18168 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18169   echo $ECHO_N "(cached) $ECHO_C" >&6
18170 else
18171
18172     ac_ext=cpp
18173 ac_cpp='$CXXCPP $CPPFLAGS'
18174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18177
18178     cat >conftest.$ac_ext <<_ACEOF
18179 /* confdefs.h.  */
18180 _ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h.  */
18184 #include <ieeefp.h>
18185 int
18186 main ()
18187 {
18188 float f; finite(f);
18189   ;
18190   return 0;
18191 }
18192 _ACEOF
18193 rm -f conftest.$ac_objext
18194 if { (ac_try="$ac_compile"
18195 case "(($ac_try" in
18196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197   *) ac_try_echo=$ac_try;;
18198 esac
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200   (eval "$ac_compile") 2>conftest.er1
18201   ac_status=$?
18202   grep -v '^ *+' conftest.er1 >conftest.err
18203   rm -f conftest.er1
18204   cat conftest.err >&5
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); } &&
18207          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18208   { (case "(($ac_try" in
18209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210   *) ac_try_echo=$ac_try;;
18211 esac
18212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213   (eval "$ac_try") 2>&5
18214   ac_status=$?
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); }; } &&
18217          { ac_try='test -s conftest.$ac_objext'
18218   { (case "(($ac_try" in
18219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220   *) ac_try_echo=$ac_try;;
18221 esac
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223   (eval "$ac_try") 2>&5
18224   ac_status=$?
18225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226   (exit $ac_status); }; }; then
18227   ac_cv_func_finite_in_ieeefp_h=yes
18228 else
18229   echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18231
18232         ac_cv_func_finite_in_ieeefp_h=no
18233 fi
18234
18235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18236     ac_ext=c
18237 ac_cpp='$CPP $CPPFLAGS'
18238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18241
18242
18243 fi
18244 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18245 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18246
18247 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18248
18249 cat >>confdefs.h <<\_ACEOF
18250 #define HAVE_FINITE_IN_IEEEFP_H 1
18251 _ACEOF
18252
18253 fi
18254
18255
18256
18257 if test "$llvm_cv_platform_type" = "Unix" ; then
18258
18259
18260 for ac_header in stdlib.h unistd.h
18261 do
18262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18264   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18267   echo $ECHO_N "(cached) $ECHO_C" >&6
18268 fi
18269 ac_res=`eval echo '${'$as_ac_Header'}'`
18270                { echo "$as_me:$LINENO: result: $ac_res" >&5
18271 echo "${ECHO_T}$ac_res" >&6; }
18272 else
18273   # Is the header compilable?
18274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18276 cat >conftest.$ac_ext <<_ACEOF
18277 /* confdefs.h.  */
18278 _ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h.  */
18282 $ac_includes_default
18283 #include <$ac_header>
18284 _ACEOF
18285 rm -f conftest.$ac_objext
18286 if { (ac_try="$ac_compile"
18287 case "(($ac_try" in
18288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289   *) ac_try_echo=$ac_try;;
18290 esac
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292   (eval "$ac_compile") 2>conftest.er1
18293   ac_status=$?
18294   grep -v '^ *+' conftest.er1 >conftest.err
18295   rm -f conftest.er1
18296   cat conftest.err >&5
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); } &&
18299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18300   { (case "(($ac_try" in
18301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302   *) ac_try_echo=$ac_try;;
18303 esac
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305   (eval "$ac_try") 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); }; } &&
18309          { ac_try='test -s conftest.$ac_objext'
18310   { (case "(($ac_try" in
18311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312   *) ac_try_echo=$ac_try;;
18313 esac
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315   (eval "$ac_try") 2>&5
18316   ac_status=$?
18317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318   (exit $ac_status); }; }; then
18319   ac_header_compiler=yes
18320 else
18321   echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18323
18324         ac_header_compiler=no
18325 fi
18326
18327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18329 echo "${ECHO_T}$ac_header_compiler" >&6; }
18330
18331 # Is the header present?
18332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18334 cat >conftest.$ac_ext <<_ACEOF
18335 /* confdefs.h.  */
18336 _ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h.  */
18340 #include <$ac_header>
18341 _ACEOF
18342 if { (ac_try="$ac_cpp conftest.$ac_ext"
18343 case "(($ac_try" in
18344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345   *) ac_try_echo=$ac_try;;
18346 esac
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18349   ac_status=$?
18350   grep -v '^ *+' conftest.er1 >conftest.err
18351   rm -f conftest.er1
18352   cat conftest.err >&5
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); } >/dev/null; then
18355   if test -s conftest.err; then
18356     ac_cpp_err=$ac_c_preproc_warn_flag
18357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18358   else
18359     ac_cpp_err=
18360   fi
18361 else
18362   ac_cpp_err=yes
18363 fi
18364 if test -z "$ac_cpp_err"; then
18365   ac_header_preproc=yes
18366 else
18367   echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18369
18370   ac_header_preproc=no
18371 fi
18372
18373 rm -f conftest.err conftest.$ac_ext
18374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18375 echo "${ECHO_T}$ac_header_preproc" >&6; }
18376
18377 # So?  What about this header?
18378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18379   yes:no: )
18380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18384     ac_header_preproc=yes
18385     ;;
18386   no:yes:* )
18387     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18389     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18390 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18391     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18393     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18394 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18397     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18399     ( cat <<\_ASBOX
18400 ## ------------------------------------ ##
18401 ## Report this to http://llvm.org/bugs/ ##
18402 ## ------------------------------------ ##
18403 _ASBOX
18404      ) | sed "s/^/$as_me: WARNING:     /" >&2
18405     ;;
18406 esac
18407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18410   echo $ECHO_N "(cached) $ECHO_C" >&6
18411 else
18412   eval "$as_ac_Header=\$ac_header_preproc"
18413 fi
18414 ac_res=`eval echo '${'$as_ac_Header'}'`
18415                { echo "$as_me:$LINENO: result: $ac_res" >&5
18416 echo "${ECHO_T}$ac_res" >&6; }
18417
18418 fi
18419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18420   cat >>confdefs.h <<_ACEOF
18421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18422 _ACEOF
18423
18424 fi
18425
18426 done
18427
18428
18429 for ac_func in getpagesize
18430 do
18431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18435   echo $ECHO_N "(cached) $ECHO_C" >&6
18436 else
18437   cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h.  */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h.  */
18443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18445 #define $ac_func innocuous_$ac_func
18446
18447 /* System header to define __stub macros and hopefully few prototypes,
18448     which can conflict with char $ac_func (); below.
18449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18450     <limits.h> exists even on freestanding compilers.  */
18451
18452 #ifdef __STDC__
18453 # include <limits.h>
18454 #else
18455 # include <assert.h>
18456 #endif
18457
18458 #undef $ac_func
18459
18460 /* Override any GCC internal prototype to avoid an error.
18461    Use char because int might match the return type of a GCC
18462    builtin and then its argument prototype would still apply.  */
18463 #ifdef __cplusplus
18464 extern "C"
18465 #endif
18466 char $ac_func ();
18467 /* The GNU C library defines this for functions which it implements
18468     to always fail with ENOSYS.  Some functions are actually named
18469     something starting with __ and the normal name is an alias.  */
18470 #if defined __stub_$ac_func || defined __stub___$ac_func
18471 choke me
18472 #endif
18473
18474 int
18475 main ()
18476 {
18477 return $ac_func ();
18478   ;
18479   return 0;
18480 }
18481 _ACEOF
18482 rm -f conftest.$ac_objext conftest$ac_exeext
18483 if { (ac_try="$ac_link"
18484 case "(($ac_try" in
18485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486   *) ac_try_echo=$ac_try;;
18487 esac
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489   (eval "$ac_link") 2>conftest.er1
18490   ac_status=$?
18491   grep -v '^ *+' conftest.er1 >conftest.err
18492   rm -f conftest.er1
18493   cat conftest.err >&5
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); } &&
18496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18497   { (case "(($ac_try" in
18498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499   *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502   (eval "$ac_try") 2>&5
18503   ac_status=$?
18504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); }; } &&
18506          { ac_try='test -s conftest$ac_exeext'
18507   { (case "(($ac_try" in
18508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509   *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512   (eval "$ac_try") 2>&5
18513   ac_status=$?
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); }; }; then
18516   eval "$as_ac_var=yes"
18517 else
18518   echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18520
18521         eval "$as_ac_var=no"
18522 fi
18523
18524 rm -f core conftest.err conftest.$ac_objext \
18525       conftest$ac_exeext conftest.$ac_ext
18526 fi
18527 ac_res=`eval echo '${'$as_ac_var'}'`
18528                { echo "$as_me:$LINENO: result: $ac_res" >&5
18529 echo "${ECHO_T}$ac_res" >&6; }
18530 if test `eval echo '${'$as_ac_var'}'` = yes; then
18531   cat >>confdefs.h <<_ACEOF
18532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18533 _ACEOF
18534
18535 fi
18536 done
18537
18538 { echo "$as_me:$LINENO: checking for working mmap" >&5
18539 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18540 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18541   echo $ECHO_N "(cached) $ECHO_C" >&6
18542 else
18543   if test "$cross_compiling" = yes; then
18544   ac_cv_func_mmap_fixed_mapped=no
18545 else
18546   cat >conftest.$ac_ext <<_ACEOF
18547 /* confdefs.h.  */
18548 _ACEOF
18549 cat confdefs.h >>conftest.$ac_ext
18550 cat >>conftest.$ac_ext <<_ACEOF
18551 /* end confdefs.h.  */
18552 $ac_includes_default
18553 /* malloc might have been renamed as rpl_malloc. */
18554 #undef malloc
18555
18556 /* Thanks to Mike Haertel and Jim Avera for this test.
18557    Here is a matrix of mmap possibilities:
18558         mmap private not fixed
18559         mmap private fixed at somewhere currently unmapped
18560         mmap private fixed at somewhere already mapped
18561         mmap shared not fixed
18562         mmap shared fixed at somewhere currently unmapped
18563         mmap shared fixed at somewhere already mapped
18564    For private mappings, we should verify that changes cannot be read()
18565    back from the file, nor mmap's back from the file at a different
18566    address.  (There have been systems where private was not correctly
18567    implemented like the infamous i386 svr4.0, and systems where the
18568    VM page cache was not coherent with the file system buffer cache
18569    like early versions of FreeBSD and possibly contemporary NetBSD.)
18570    For shared mappings, we should conversely verify that changes get
18571    propagated back to all the places they're supposed to be.
18572
18573    Grep wants private fixed already mapped.
18574    The main things grep needs to know about mmap are:
18575    * does it exist and is it safe to write into the mmap'd area
18576    * how to use it (BSD variants)  */
18577
18578 #include <fcntl.h>
18579 #include <sys/mman.h>
18580
18581 #if !STDC_HEADERS && !HAVE_STDLIB_H
18582 char *malloc ();
18583 #endif
18584
18585 /* This mess was copied from the GNU getpagesize.h.  */
18586 #if !HAVE_GETPAGESIZE
18587 /* Assume that all systems that can run configure have sys/param.h.  */
18588 # if !HAVE_SYS_PARAM_H
18589 #  define HAVE_SYS_PARAM_H 1
18590 # endif
18591
18592 # ifdef _SC_PAGESIZE
18593 #  define getpagesize() sysconf(_SC_PAGESIZE)
18594 # else /* no _SC_PAGESIZE */
18595 #  if HAVE_SYS_PARAM_H
18596 #   include <sys/param.h>
18597 #   ifdef EXEC_PAGESIZE
18598 #    define getpagesize() EXEC_PAGESIZE
18599 #   else /* no EXEC_PAGESIZE */
18600 #    ifdef NBPG
18601 #     define getpagesize() NBPG * CLSIZE
18602 #     ifndef CLSIZE
18603 #      define CLSIZE 1
18604 #     endif /* no CLSIZE */
18605 #    else /* no NBPG */
18606 #     ifdef NBPC
18607 #      define getpagesize() NBPC
18608 #     else /* no NBPC */
18609 #      ifdef PAGESIZE
18610 #       define getpagesize() PAGESIZE
18611 #      endif /* PAGESIZE */
18612 #     endif /* no NBPC */
18613 #    endif /* no NBPG */
18614 #   endif /* no EXEC_PAGESIZE */
18615 #  else /* no HAVE_SYS_PARAM_H */
18616 #   define getpagesize() 8192   /* punt totally */
18617 #  endif /* no HAVE_SYS_PARAM_H */
18618 # endif /* no _SC_PAGESIZE */
18619
18620 #endif /* no HAVE_GETPAGESIZE */
18621
18622 int
18623 main ()
18624 {
18625   char *data, *data2, *data3;
18626   int i, pagesize;
18627   int fd;
18628
18629   pagesize = getpagesize ();
18630
18631   /* First, make a file with some known garbage in it. */
18632   data = (char *) malloc (pagesize);
18633   if (!data)
18634     return 1;
18635   for (i = 0; i < pagesize; ++i)
18636     *(data + i) = rand ();
18637   umask (0);
18638   fd = creat ("conftest.mmap", 0600);
18639   if (fd < 0)
18640     return 1;
18641   if (write (fd, data, pagesize) != pagesize)
18642     return 1;
18643   close (fd);
18644
18645   /* Next, try to mmap the file at a fixed address which already has
18646      something else allocated at it.  If we can, also make sure that
18647      we see the same garbage.  */
18648   fd = open ("conftest.mmap", O_RDWR);
18649   if (fd < 0)
18650     return 1;
18651   data2 = (char *) malloc (2 * pagesize);
18652   if (!data2)
18653     return 1;
18654   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18655   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18656                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18657     return 1;
18658   for (i = 0; i < pagesize; ++i)
18659     if (*(data + i) != *(data2 + i))
18660       return 1;
18661
18662   /* Finally, make sure that changes to the mapped area do not
18663      percolate back to the file as seen by read().  (This is a bug on
18664      some variants of i386 svr4.0.)  */
18665   for (i = 0; i < pagesize; ++i)
18666     *(data2 + i) = *(data2 + i) + 1;
18667   data3 = (char *) malloc (pagesize);
18668   if (!data3)
18669     return 1;
18670   if (read (fd, data3, pagesize) != pagesize)
18671     return 1;
18672   for (i = 0; i < pagesize; ++i)
18673     if (*(data + i) != *(data3 + i))
18674       return 1;
18675   close (fd);
18676   return 0;
18677 }
18678 _ACEOF
18679 rm -f conftest$ac_exeext
18680 if { (ac_try="$ac_link"
18681 case "(($ac_try" in
18682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683   *) ac_try_echo=$ac_try;;
18684 esac
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686   (eval "$ac_link") 2>&5
18687   ac_status=$?
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18690   { (case "(($ac_try" in
18691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692   *) ac_try_echo=$ac_try;;
18693 esac
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695   (eval "$ac_try") 2>&5
18696   ac_status=$?
18697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698   (exit $ac_status); }; }; then
18699   ac_cv_func_mmap_fixed_mapped=yes
18700 else
18701   echo "$as_me: program exited with status $ac_status" >&5
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18704
18705 ( exit $ac_status )
18706 ac_cv_func_mmap_fixed_mapped=no
18707 fi
18708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18709 fi
18710
18711
18712 fi
18713 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18714 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18715 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18716
18717 cat >>confdefs.h <<\_ACEOF
18718 #define HAVE_MMAP 1
18719 _ACEOF
18720
18721 fi
18722 rm -f conftest.mmap
18723
18724   { echo "$as_me:$LINENO: checking for mmap of files" >&5
18725 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18726 if test "${ac_cv_func_mmap_file+set}" = set; then
18727   echo $ECHO_N "(cached) $ECHO_C" >&6
18728 else
18729    ac_ext=c
18730 ac_cpp='$CPP $CPPFLAGS'
18731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18734
18735   if test "$cross_compiling" = yes; then
18736   ac_cv_func_mmap_file=no
18737 else
18738   cat >conftest.$ac_ext <<_ACEOF
18739
18740     /* confdefs.h.  */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h.  */
18745
18746 #include <sys/types.h>
18747 #include <sys/mman.h>
18748 #include <fcntl.h>
18749
18750 int
18751 main ()
18752 {
18753
18754   int fd;
18755   fd = creat ("foo",0777);
18756   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18757   unlink ("foo");
18758   return (fd != (int) MAP_FAILED);
18759   ;
18760   return 0;
18761 }
18762 _ACEOF
18763 rm -f conftest$ac_exeext
18764 if { (ac_try="$ac_link"
18765 case "(($ac_try" in
18766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767   *) ac_try_echo=$ac_try;;
18768 esac
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770   (eval "$ac_link") 2>&5
18771   ac_status=$?
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18774   { (case "(($ac_try" in
18775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776   *) ac_try_echo=$ac_try;;
18777 esac
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779   (eval "$ac_try") 2>&5
18780   ac_status=$?
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); }; }; then
18783   ac_cv_func_mmap_file=yes
18784 else
18785   echo "$as_me: program exited with status $ac_status" >&5
18786 echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18788
18789 ( exit $ac_status )
18790 ac_cv_func_mmap_file=no
18791 fi
18792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18793 fi
18794
18795
18796   ac_ext=c
18797 ac_cpp='$CPP $CPPFLAGS'
18798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18801
18802
18803 fi
18804 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18805 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18806 if test "$ac_cv_func_mmap_file" = yes; then
18807
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE_MMAP_FILE
18810 _ACEOF
18811
18812    MMAP_FILE=yes
18813
18814 fi
18815
18816   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18817 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18818 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18819   echo $ECHO_N "(cached) $ECHO_C" >&6
18820 else
18821   if test "$llvm_cv_os_type" = "Interix" ; then
18822    ac_cv_need_dev_zero_for_mmap=yes
18823  else
18824    ac_cv_need_dev_zero_for_mmap=no
18825  fi
18826
18827 fi
18828 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18829 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18830 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18831
18832 cat >>confdefs.h <<\_ACEOF
18833 #define NEED_DEV_ZERO_FOR_MMAP 1
18834 _ACEOF
18835
18836 fi
18837
18838   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18839   then
18840     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18841 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18842   fi
18843   if test "$ac_cv_func_mmap_file" = "no"
18844   then
18845     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18846 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18847   fi
18848 fi
18849
18850 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18851 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18852 ac_ext=cpp
18853 ac_cpp='$CXXCPP $CPPFLAGS'
18854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18857
18858 cat >conftest.$ac_ext <<_ACEOF
18859
18860   /* confdefs.h.  */
18861 _ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h.  */
18865
18866     int main() {
18867       volatile unsigned long val = 1;
18868       __sync_synchronize();
18869       __sync_val_compare_and_swap(&val, 1, 0);
18870       __sync_add_and_fetch(&val, 1);
18871       __sync_sub_and_fetch(&val, 1);
18872       return 0;
18873     }
18874
18875
18876 _ACEOF
18877 rm -f conftest.$ac_objext conftest$ac_exeext
18878 if { (ac_try="$ac_link"
18879 case "(($ac_try" in
18880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881   *) ac_try_echo=$ac_try;;
18882 esac
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884   (eval "$ac_link") 2>conftest.er1
18885   ac_status=$?
18886   grep -v '^ *+' conftest.er1 >conftest.err
18887   rm -f conftest.er1
18888   cat conftest.err >&5
18889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890   (exit $ac_status); } &&
18891          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18892   { (case "(($ac_try" in
18893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894   *) ac_try_echo=$ac_try;;
18895 esac
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897   (eval "$ac_try") 2>&5
18898   ac_status=$?
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); }; } &&
18901          { ac_try='test -s conftest$ac_exeext'
18902   { (case "(($ac_try" in
18903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904   *) ac_try_echo=$ac_try;;
18905 esac
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907   (eval "$ac_try") 2>&5
18908   ac_status=$?
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); }; }; then
18911
18912   { echo "$as_me:$LINENO: result: yes" >&5
18913 echo "${ECHO_T}yes" >&6; }
18914
18915 cat >>confdefs.h <<\_ACEOF
18916 #define LLVM_HAS_ATOMICS 1
18917 _ACEOF
18918
18919
18920 else
18921   echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18923
18924
18925   { echo "$as_me:$LINENO: result: no" >&5
18926 echo "${ECHO_T}no" >&6; }
18927
18928 cat >>confdefs.h <<\_ACEOF
18929 #define LLVM_HAS_ATOMICS 0
18930 _ACEOF
18931
18932   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18933 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18934
18935 fi
18936
18937 rm -f core conftest.err conftest.$ac_objext \
18938       conftest$ac_exeext conftest.$ac_ext
18939 ac_ext=c
18940 ac_cpp='$CPP $CPPFLAGS'
18941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18944
18945
18946
18947 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18948   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18949 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18950 if test "${llvm_cv_linux_mixed+set}" = set; then
18951   echo $ECHO_N "(cached) $ECHO_C" >&6
18952 else
18953    ac_ext=c
18954 ac_cpp='$CPP $CPPFLAGS'
18955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18958
18959   cat >conftest.$ac_ext <<_ACEOF
18960 /* confdefs.h.  */
18961 _ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h.  */
18965 #ifndef __x86_64__
18966        error: Not x86-64 even if uname says so!
18967       #endif
18968
18969 int
18970 main ()
18971 {
18972
18973   ;
18974   return 0;
18975 }
18976 _ACEOF
18977 rm -f conftest.$ac_objext
18978 if { (ac_try="$ac_compile"
18979 case "(($ac_try" in
18980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981   *) ac_try_echo=$ac_try;;
18982 esac
18983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984   (eval "$ac_compile") 2>conftest.er1
18985   ac_status=$?
18986   grep -v '^ *+' conftest.er1 >conftest.err
18987   rm -f conftest.er1
18988   cat conftest.err >&5
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); } &&
18991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18992   { (case "(($ac_try" in
18993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994   *) ac_try_echo=$ac_try;;
18995 esac
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997   (eval "$ac_try") 2>&5
18998   ac_status=$?
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); }; } &&
19001          { ac_try='test -s conftest.$ac_objext'
19002   { (case "(($ac_try" in
19003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004   *) ac_try_echo=$ac_try;;
19005 esac
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007   (eval "$ac_try") 2>&5
19008   ac_status=$?
19009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); }; }; then
19011   llvm_cv_linux_mixed=no
19012 else
19013   echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19015
19016         llvm_cv_linux_mixed=yes
19017 fi
19018
19019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19020   ac_ext=c
19021 ac_cpp='$CPP $CPPFLAGS'
19022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19025
19026
19027 fi
19028 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19029 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19030
19031   if test "$llvm_cv_linux_mixed" = "yes"; then
19032     llvm_cv_target_arch="x86"
19033     ARCH="x86"
19034   fi
19035 fi
19036
19037
19038 for ac_func in __dso_handle
19039 do
19040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19044   echo $ECHO_N "(cached) $ECHO_C" >&6
19045 else
19046   cat >conftest.$ac_ext <<_ACEOF
19047 /* confdefs.h.  */
19048 _ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h.  */
19052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19054 #define $ac_func innocuous_$ac_func
19055
19056 /* System header to define __stub macros and hopefully few prototypes,
19057     which can conflict with char $ac_func (); below.
19058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19059     <limits.h> exists even on freestanding compilers.  */
19060
19061 #ifdef __STDC__
19062 # include <limits.h>
19063 #else
19064 # include <assert.h>
19065 #endif
19066
19067 #undef $ac_func
19068
19069 /* Override any GCC internal prototype to avoid an error.
19070    Use char because int might match the return type of a GCC
19071    builtin and then its argument prototype would still apply.  */
19072 #ifdef __cplusplus
19073 extern "C"
19074 #endif
19075 char $ac_func ();
19076 /* The GNU C library defines this for functions which it implements
19077     to always fail with ENOSYS.  Some functions are actually named
19078     something starting with __ and the normal name is an alias.  */
19079 #if defined __stub_$ac_func || defined __stub___$ac_func
19080 choke me
19081 #endif
19082
19083 int
19084 main ()
19085 {
19086 return $ac_func ();
19087   ;
19088   return 0;
19089 }
19090 _ACEOF
19091 rm -f conftest.$ac_objext conftest$ac_exeext
19092 if { (ac_try="$ac_link"
19093 case "(($ac_try" in
19094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095   *) ac_try_echo=$ac_try;;
19096 esac
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098   (eval "$ac_link") 2>conftest.er1
19099   ac_status=$?
19100   grep -v '^ *+' conftest.er1 >conftest.err
19101   rm -f conftest.er1
19102   cat conftest.err >&5
19103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104   (exit $ac_status); } &&
19105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19106   { (case "(($ac_try" in
19107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108   *) ac_try_echo=$ac_try;;
19109 esac
19110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111   (eval "$ac_try") 2>&5
19112   ac_status=$?
19113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114   (exit $ac_status); }; } &&
19115          { ac_try='test -s conftest$ac_exeext'
19116   { (case "(($ac_try" in
19117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118   *) ac_try_echo=$ac_try;;
19119 esac
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121   (eval "$ac_try") 2>&5
19122   ac_status=$?
19123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124   (exit $ac_status); }; }; then
19125   eval "$as_ac_var=yes"
19126 else
19127   echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19129
19130         eval "$as_ac_var=no"
19131 fi
19132
19133 rm -f core conftest.err conftest.$ac_objext \
19134       conftest$ac_exeext conftest.$ac_ext
19135 fi
19136 ac_res=`eval echo '${'$as_ac_var'}'`
19137                { echo "$as_me:$LINENO: result: $ac_res" >&5
19138 echo "${ECHO_T}$ac_res" >&6; }
19139 if test `eval echo '${'$as_ac_var'}'` = yes; then
19140   cat >>confdefs.h <<_ACEOF
19141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19142 _ACEOF
19143
19144 fi
19145 done
19146
19147
19148 SHLIBEXT=$llvm_shlib_ext
19149
19150
19151 if test "${prefix}" = "NONE" ; then
19152   prefix="/usr/local"
19153 fi
19154 eval LLVM_PREFIX="${prefix}";
19155 eval LLVM_BINDIR="${prefix}/bin";
19156 eval LLVM_DATADIR="${prefix}/share/llvm";
19157 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19158 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19159 eval LLVM_INCLUDEDIR="${prefix}/include";
19160 eval LLVM_INFODIR="${prefix}/info";
19161 eval LLVM_MANDIR="${prefix}/man";
19162 LLVM_CONFIGTIME=`date`
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173 if test "${ENABLE_TIMESTAMPS}" = "0"; then
19174   LLVM_CONFIGTIME="(timestamp not enabled)"
19175 fi
19176
19177
19178 cat >>confdefs.h <<_ACEOF
19179 #define LLVM_PREFIX "$LLVM_PREFIX"
19180 _ACEOF
19181
19182
19183 cat >>confdefs.h <<_ACEOF
19184 #define LLVM_BINDIR "$LLVM_BINDIR"
19185 _ACEOF
19186
19187
19188 cat >>confdefs.h <<_ACEOF
19189 #define LLVM_DATADIR "$LLVM_DATADIR"
19190 _ACEOF
19191
19192
19193 cat >>confdefs.h <<_ACEOF
19194 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19195 _ACEOF
19196
19197
19198 cat >>confdefs.h <<_ACEOF
19199 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19200 _ACEOF
19201
19202
19203 cat >>confdefs.h <<_ACEOF
19204 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19205 _ACEOF
19206
19207
19208 cat >>confdefs.h <<_ACEOF
19209 #define LLVM_INFODIR "$LLVM_INFODIR"
19210 _ACEOF
19211
19212
19213 cat >>confdefs.h <<_ACEOF
19214 #define LLVM_MANDIR "$LLVM_MANDIR"
19215 _ACEOF
19216
19217
19218 cat >>confdefs.h <<_ACEOF
19219 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19220 _ACEOF
19221
19222
19223 cat >>confdefs.h <<_ACEOF
19224 #define LLVM_HOST_TRIPLE "$host"
19225 _ACEOF
19226
19227
19228 cat >>confdefs.h <<_ACEOF
19229 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
19230 _ACEOF
19231
19232
19233 if test "$BINDINGS_TO_BUILD" = auto ; then
19234   BINDINGS_TO_BUILD=""
19235   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19236     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19237   fi
19238 fi
19239 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19240
19241
19242 ALL_BINDINGS=ocaml
19243
19244
19245 binding_prereqs_failed=0
19246 for a_binding in $BINDINGS_TO_BUILD ; do
19247   case "$a_binding" in
19248   ocaml)
19249     if test "x$OCAMLC" = x ; then
19250       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19251 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19252       binding_prereqs_failed=1
19253     fi
19254     if test "x$OCAMLDEP" = x ; then
19255       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19256 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19257       binding_prereqs_failed=1
19258     fi
19259     if test "x$OCAMLOPT" = x ; then
19260       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19261 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19262           fi
19263     if test "x$with_ocaml_libdir" != xauto ; then
19264       OCAML_LIBDIR=$with_ocaml_libdir
19265
19266     else
19267       ocaml_stdlib="`"$OCAMLC" -where`"
19268       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19269       then
19270         # ocaml stdlib is beneath our prefix; use stdlib
19271         OCAML_LIBDIR=$ocaml_stdlib
19272
19273       else
19274         # ocaml stdlib is outside our prefix; use libdir/ocaml
19275         OCAML_LIBDIR=${prefix}/lib/ocaml
19276
19277       fi
19278     fi
19279     ;;
19280   esac
19281 done
19282 if test "$binding_prereqs_failed" = 1 ; then
19283   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19284 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19285    { (exit 1); exit 1; }; }
19286 fi
19287
19288 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19289 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19290 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19291   echo $ECHO_N "(cached) $ECHO_C" >&6
19292 else
19293    ac_ext=cpp
19294 ac_cpp='$CXXCPP $CPPFLAGS'
19295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19298
19299   oldcxxflags="$CXXFLAGS"
19300   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
19301   cat >conftest.$ac_ext <<_ACEOF
19302 /* confdefs.h.  */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h.  */
19307 template <typename T> struct X { void __attribute__((noinline)) f() {} };
19308 int
19309 main ()
19310 {
19311 X<int>().f();
19312   ;
19313   return 0;
19314 }
19315 _ACEOF
19316 rm -f conftest.$ac_objext
19317 if { (ac_try="$ac_compile"
19318 case "(($ac_try" in
19319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320   *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323   (eval "$ac_compile") 2>conftest.er1
19324   ac_status=$?
19325   grep -v '^ *+' conftest.er1 >conftest.err
19326   rm -f conftest.er1
19327   cat conftest.err >&5
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); } &&
19330          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19331   { (case "(($ac_try" in
19332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333   *) ac_try_echo=$ac_try;;
19334 esac
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336   (eval "$ac_try") 2>&5
19337   ac_status=$?
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); }; } &&
19340          { ac_try='test -s conftest.$ac_objext'
19341   { (case "(($ac_try" in
19342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343   *) ac_try_echo=$ac_try;;
19344 esac
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346   (eval "$ac_try") 2>&5
19347   ac_status=$?
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); }; }; then
19350   llvm_cv_cxx_visibility_inlines_hidden=yes
19351 else
19352   echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19354
19355         llvm_cv_cxx_visibility_inlines_hidden=no
19356 fi
19357
19358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19359   CXXFLAGS="$oldcxxflags"
19360   ac_ext=c
19361 ac_cpp='$CPP $CPPFLAGS'
19362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19365
19366
19367 fi
19368 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19369 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19370 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19371   ENABLE_VISIBILITY_INLINES_HIDDEN=1
19372
19373 else
19374   ENABLE_VISIBILITY_INLINES_HIDDEN=0
19375
19376 fi
19377
19378
19379 if test "$llvm_cv_link_use_r" = "yes" ; then
19380   RPATH="-Wl,-R"
19381 else
19382   RPATH="-Wl,-rpath"
19383 fi
19384
19385
19386 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19387   RDYNAMIC="-rdynamic"
19388 else
19389   RDYNAMIC=""
19390 fi
19391
19392
19393
19394 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
19395
19396
19397
19398
19399
19400
19401 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19402
19403 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19404
19405 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19406
19407 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19408
19409 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
19410
19411
19412 ac_config_files="$ac_config_files Makefile.config"
19413
19414
19415 ac_config_files="$ac_config_files llvm.spec"
19416
19417
19418 ac_config_files="$ac_config_files docs/doxygen.cfg"
19419
19420
19421 if test "${clang_src_root}" = ""; then
19422   clang_src_root="$srcdir/tools/clang"
19423 fi
19424 if test -f ${clang_src_root}/README.txt; then
19425     configh="include/clang/Config/config.h"
19426   doxy="docs/doxygen.cfg"
19427   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
19428
19429   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
19430
19431 fi
19432
19433 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
19434
19435
19436 test "x$program_prefix" = "xNONE" && program_prefix=""
19437
19438
19439
19440 ac_config_commands="$ac_config_commands setup"
19441
19442 ac_config_commands="$ac_config_commands Makefile"
19443
19444
19445 ac_config_commands="$ac_config_commands Makefile.common"
19446
19447
19448 ac_config_commands="$ac_config_commands examples/Makefile"
19449
19450
19451 ac_config_commands="$ac_config_commands lib/Makefile"
19452
19453
19454 ac_config_commands="$ac_config_commands test/Makefile"
19455
19456
19457 ac_config_commands="$ac_config_commands test/Makefile.tests"
19458
19459
19460 ac_config_commands="$ac_config_commands unittests/Makefile"
19461
19462
19463 ac_config_commands="$ac_config_commands tools/Makefile"
19464
19465
19466 ac_config_commands="$ac_config_commands utils/Makefile"
19467
19468
19469 ac_config_commands="$ac_config_commands projects/Makefile"
19470
19471
19472 ac_config_commands="$ac_config_commands bindings/Makefile"
19473
19474
19475 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19476
19477
19478
19479 cat >confcache <<\_ACEOF
19480 # This file is a shell script that caches the results of configure
19481 # tests run on this system so they can be shared between configure
19482 # scripts and configure runs, see configure's option --config-cache.
19483 # It is not useful on other systems.  If it contains results you don't
19484 # want to keep, you may remove or edit it.
19485 #
19486 # config.status only pays attention to the cache file if you give it
19487 # the --recheck option to rerun configure.
19488 #
19489 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19490 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19491 # following values.
19492
19493 _ACEOF
19494
19495 # The following way of writing the cache mishandles newlines in values,
19496 # but we know of no workaround that is simple, portable, and efficient.
19497 # So, we kill variables containing newlines.
19498 # Ultrix sh set writes to stderr and can't be redirected directly,
19499 # and sets the high bit in the cache file unless we assign to the vars.
19500 (
19501   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19502     eval ac_val=\$$ac_var
19503     case $ac_val in #(
19504     *${as_nl}*)
19505       case $ac_var in #(
19506       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19507 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19508       esac
19509       case $ac_var in #(
19510       _ | IFS | as_nl) ;; #(
19511       *) $as_unset $ac_var ;;
19512       esac ;;
19513     esac
19514   done
19515
19516   (set) 2>&1 |
19517     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19518     *${as_nl}ac_space=\ *)
19519       # `set' does not quote correctly, so add quotes (double-quote
19520       # substitution turns \\\\ into \\, and sed turns \\ into \).
19521       sed -n \
19522         "s/'/'\\\\''/g;
19523           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19524       ;; #(
19525     *)
19526       # `set' quotes correctly as required by POSIX, so do not add quotes.
19527       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19528       ;;
19529     esac |
19530     sort
19531 ) |
19532   sed '
19533      /^ac_cv_env_/b end
19534      t clear
19535      :clear
19536      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19537      t end
19538      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19539      :end' >>confcache
19540 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19541   if test -w "$cache_file"; then
19542     test "x$cache_file" != "x/dev/null" &&
19543       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19544 echo "$as_me: updating cache $cache_file" >&6;}
19545     cat confcache >$cache_file
19546   else
19547     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19548 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19549   fi
19550 fi
19551 rm -f confcache
19552
19553 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19554 # Let make expand exec_prefix.
19555 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19556
19557 DEFS=-DHAVE_CONFIG_H
19558
19559 ac_libobjs=
19560 ac_ltlibobjs=
19561 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19562   # 1. Remove the extension, and $U if already installed.
19563   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19564   ac_i=`echo "$ac_i" | sed "$ac_script"`
19565   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19566   #    will be set to the directory where LIBOBJS objects are built.
19567   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19568   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19569 done
19570 LIBOBJS=$ac_libobjs
19571
19572 LTLIBOBJS=$ac_ltlibobjs
19573
19574
19575
19576 : ${CONFIG_STATUS=./config.status}
19577 ac_clean_files_save=$ac_clean_files
19578 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19579 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19580 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19581 cat >$CONFIG_STATUS <<_ACEOF
19582 #! $SHELL
19583 # Generated by $as_me.
19584 # Run this file to recreate the current configuration.
19585 # Compiler output produced by configure, useful for debugging
19586 # configure, is in config.log if it exists.
19587
19588 debug=false
19589 ac_cs_recheck=false
19590 ac_cs_silent=false
19591 SHELL=\${CONFIG_SHELL-$SHELL}
19592 _ACEOF
19593
19594 cat >>$CONFIG_STATUS <<\_ACEOF
19595 ## --------------------- ##
19596 ## M4sh Initialization.  ##
19597 ## --------------------- ##
19598
19599 # Be Bourne compatible
19600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19601   emulate sh
19602   NULLCMD=:
19603   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19604   # is contrary to our usage.  Disable this feature.
19605   alias -g '${1+"$@"}'='"$@"'
19606   setopt NO_GLOB_SUBST
19607 else
19608   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
19609 fi
19610 BIN_SH=xpg4; export BIN_SH # for Tru64
19611 DUALCASE=1; export DUALCASE # for MKS sh
19612
19613
19614 # PATH needs CR
19615 # Avoid depending upon Character Ranges.
19616 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19617 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19618 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19619 as_cr_digits='0123456789'
19620 as_cr_alnum=$as_cr_Letters$as_cr_digits
19621
19622 # The user is always right.
19623 if test "${PATH_SEPARATOR+set}" != set; then
19624   echo "#! /bin/sh" >conf$$.sh
19625   echo  "exit 0"   >>conf$$.sh
19626   chmod +x conf$$.sh
19627   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19628     PATH_SEPARATOR=';'
19629   else
19630     PATH_SEPARATOR=:
19631   fi
19632   rm -f conf$$.sh
19633 fi
19634
19635 # Support unset when possible.
19636 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19637   as_unset=unset
19638 else
19639   as_unset=false
19640 fi
19641
19642
19643 # IFS
19644 # We need space, tab and new line, in precisely that order.  Quoting is
19645 # there to prevent editors from complaining about space-tab.
19646 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19647 # splitting by setting IFS to empty value.)
19648 as_nl='
19649 '
19650 IFS=" ""        $as_nl"
19651
19652 # Find who we are.  Look in the path if we contain no directory separator.
19653 case $0 in
19654   *[\\/]* ) as_myself=$0 ;;
19655   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19656 for as_dir in $PATH
19657 do
19658   IFS=$as_save_IFS
19659   test -z "$as_dir" && as_dir=.
19660   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19661 done
19662 IFS=$as_save_IFS
19663
19664      ;;
19665 esac
19666 # We did not find ourselves, most probably we were run as `sh COMMAND'
19667 # in which case we are not to be found in the path.
19668 if test "x$as_myself" = x; then
19669   as_myself=$0
19670 fi
19671 if test ! -f "$as_myself"; then
19672   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19673   { (exit 1); exit 1; }
19674 fi
19675
19676 # Work around bugs in pre-3.0 UWIN ksh.
19677 for as_var in ENV MAIL MAILPATH
19678 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19679 done
19680 PS1='$ '
19681 PS2='> '
19682 PS4='+ '
19683
19684 # NLS nuisances.
19685 for as_var in \
19686   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19687   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19688   LC_TELEPHONE LC_TIME
19689 do
19690   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19691     eval $as_var=C; export $as_var
19692   else
19693     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19694   fi
19695 done
19696
19697 # Required to use basename.
19698 if expr a : '\(a\)' >/dev/null 2>&1 &&
19699    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19700   as_expr=expr
19701 else
19702   as_expr=false
19703 fi
19704
19705 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19706   as_basename=basename
19707 else
19708   as_basename=false
19709 fi
19710
19711
19712 # Name of the executable.
19713 as_me=`$as_basename -- "$0" ||
19714 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19715          X"$0" : 'X\(//\)$' \| \
19716          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19717 echo X/"$0" |
19718     sed '/^.*\/\([^/][^/]*\)\/*$/{
19719             s//\1/
19720             q
19721           }
19722           /^X\/\(\/\/\)$/{
19723             s//\1/
19724             q
19725           }
19726           /^X\/\(\/\).*/{
19727             s//\1/
19728             q
19729           }
19730           s/.*/./; q'`
19731
19732 # CDPATH.
19733 $as_unset CDPATH
19734
19735
19736
19737   as_lineno_1=$LINENO
19738   as_lineno_2=$LINENO
19739   test "x$as_lineno_1" != "x$as_lineno_2" &&
19740   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19741
19742   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19743   # uniformly replaced by the line number.  The first 'sed' inserts a
19744   # line-number line after each line using $LINENO; the second 'sed'
19745   # does the real work.  The second script uses 'N' to pair each
19746   # line-number line with the line containing $LINENO, and appends
19747   # trailing '-' during substitution so that $LINENO is not a special
19748   # case at line end.
19749   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19750   # scripts with optimization help from Paolo Bonzini.  Blame Lee
19751   # E. McMahon (1931-1989) for sed's syntax.  :-)
19752   sed -n '
19753     p
19754     /[$]LINENO/=
19755   ' <$as_myself |
19756     sed '
19757       s/[$]LINENO.*/&-/
19758       t lineno
19759       b
19760       :lineno
19761       N
19762       :loop
19763       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19764       t loop
19765       s/-\n.*//
19766     ' >$as_me.lineno &&
19767   chmod +x "$as_me.lineno" ||
19768     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19769    { (exit 1); exit 1; }; }
19770
19771   # Don't try to exec as it changes $[0], causing all sort of problems
19772   # (the dirname of $[0] is not the place where we might find the
19773   # original and so on.  Autoconf is especially sensitive to this).
19774   . "./$as_me.lineno"
19775   # Exit status is that of the last command.
19776   exit
19777 }
19778
19779
19780 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19781   as_dirname=dirname
19782 else
19783   as_dirname=false
19784 fi
19785
19786 ECHO_C= ECHO_N= ECHO_T=
19787 case `echo -n x` in
19788 -n*)
19789   case `echo 'x\c'` in
19790   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19791   *)   ECHO_C='\c';;
19792   esac;;
19793 *)
19794   ECHO_N='-n';;
19795 esac
19796
19797 if expr a : '\(a\)' >/dev/null 2>&1 &&
19798    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19799   as_expr=expr
19800 else
19801   as_expr=false
19802 fi
19803
19804 rm -f conf$$ conf$$.exe conf$$.file
19805 if test -d conf$$.dir; then
19806   rm -f conf$$.dir/conf$$.file
19807 else
19808   rm -f conf$$.dir
19809   mkdir conf$$.dir
19810 fi
19811 echo >conf$$.file
19812 if ln -s conf$$.file conf$$ 2>/dev/null; then
19813   as_ln_s='ln -s'
19814   # ... but there are two gotchas:
19815   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19816   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19817   # In both cases, we have to default to `cp -p'.
19818   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19819     as_ln_s='cp -p'
19820 elif ln conf$$.file conf$$ 2>/dev/null; then
19821   as_ln_s=ln
19822 else
19823   as_ln_s='cp -p'
19824 fi
19825 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19826 rmdir conf$$.dir 2>/dev/null
19827
19828 if mkdir -p . 2>/dev/null; then
19829   as_mkdir_p=:
19830 else
19831   test -d ./-p && rmdir ./-p
19832   as_mkdir_p=false
19833 fi
19834
19835 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
19836 # systems may use methods other than mode bits to determine executability.
19837 cat >conf$$.file <<_ASEOF
19838 #! /bin/sh
19839 exit 0
19840 _ASEOF
19841 chmod +x conf$$.file
19842 if test -x conf$$.file >/dev/null 2>&1; then
19843   as_executable_p="test -x"
19844 else
19845   as_executable_p=:
19846 fi
19847 rm -f conf$$.file
19848
19849 # Sed expression to map a string onto a valid CPP name.
19850 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19851
19852 # Sed expression to map a string onto a valid variable name.
19853 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19854
19855
19856 exec 6>&1
19857
19858 # Save the log message, to keep $[0] and so on meaningful, and to
19859 # report actual input values of CONFIG_FILES etc. instead of their
19860 # values after options handling.
19861 ac_log="
19862 This file was extended by LLVM $as_me 3.5.0svn, which was
19863 generated by GNU Autoconf 2.60.  Invocation command line was
19864
19865   CONFIG_FILES    = $CONFIG_FILES
19866   CONFIG_HEADERS  = $CONFIG_HEADERS
19867   CONFIG_LINKS    = $CONFIG_LINKS
19868   CONFIG_COMMANDS = $CONFIG_COMMANDS
19869   $ $0 $@
19870
19871 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19872 "
19873
19874 _ACEOF
19875
19876 cat >>$CONFIG_STATUS <<_ACEOF
19877 # Files that config.status was made for.
19878 config_files="$ac_config_files"
19879 config_headers="$ac_config_headers"
19880 config_commands="$ac_config_commands"
19881
19882 _ACEOF
19883
19884 cat >>$CONFIG_STATUS <<\_ACEOF
19885 ac_cs_usage="\
19886 \`$as_me' instantiates files from templates according to the
19887 current configuration.
19888
19889 Usage: $0 [OPTIONS] [FILE]...
19890
19891   -h, --help       print this help, then exit
19892   -V, --version    print version number, then exit
19893   -q, --quiet      do not print progress messages
19894   -d, --debug      don't remove temporary files
19895       --recheck    update $as_me by reconfiguring in the same conditions
19896   --file=FILE[:TEMPLATE]
19897                    instantiate the configuration file FILE
19898   --header=FILE[:TEMPLATE]
19899                    instantiate the configuration header FILE
19900
19901 Configuration files:
19902 $config_files
19903
19904 Configuration headers:
19905 $config_headers
19906
19907 Configuration commands:
19908 $config_commands
19909
19910 Report bugs to <bug-autoconf@gnu.org>."
19911
19912 _ACEOF
19913 cat >>$CONFIG_STATUS <<_ACEOF
19914 ac_cs_version="\\
19915 LLVM config.status 3.5.0svn
19916 configured by $0, generated by GNU Autoconf 2.60,
19917   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19918
19919 Copyright (C) 2006 Free Software Foundation, Inc.
19920 This config.status script is free software; the Free Software Foundation
19921 gives unlimited permission to copy, distribute and modify it."
19922
19923 ac_pwd='$ac_pwd'
19924 srcdir='$srcdir'
19925 INSTALL='$INSTALL'
19926 _ACEOF
19927
19928 cat >>$CONFIG_STATUS <<\_ACEOF
19929 # If no file are specified by the user, then we need to provide default
19930 # value.  By we need to know if files were specified by the user.
19931 ac_need_defaults=:
19932 while test $# != 0
19933 do
19934   case $1 in
19935   --*=*)
19936     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19937     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19938     ac_shift=:
19939     ;;
19940   *)
19941     ac_option=$1
19942     ac_optarg=$2
19943     ac_shift=shift
19944     ;;
19945   esac
19946
19947   case $ac_option in
19948   # Handling of the options.
19949   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19950     ac_cs_recheck=: ;;
19951   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19952     echo "$ac_cs_version"; exit ;;
19953   --debug | --debu | --deb | --de | --d | -d )
19954     debug=: ;;
19955   --file | --fil | --fi | --f )
19956     $ac_shift
19957     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19958     ac_need_defaults=false;;
19959   --header | --heade | --head | --hea )
19960     $ac_shift
19961     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19962     ac_need_defaults=false;;
19963   --he | --h)
19964     # Conflict between --help and --header
19965     { echo "$as_me: error: ambiguous option: $1
19966 Try \`$0 --help' for more information." >&2
19967    { (exit 1); exit 1; }; };;
19968   --help | --hel | -h )
19969     echo "$ac_cs_usage"; exit ;;
19970   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19971   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19972     ac_cs_silent=: ;;
19973
19974   # This is an error.
19975   -*) { echo "$as_me: error: unrecognized option: $1
19976 Try \`$0 --help' for more information." >&2
19977    { (exit 1); exit 1; }; } ;;
19978
19979   *) ac_config_targets="$ac_config_targets $1"
19980      ac_need_defaults=false ;;
19981
19982   esac
19983   shift
19984 done
19985
19986 ac_configure_extra_args=
19987
19988 if $ac_cs_silent; then
19989   exec 6>/dev/null
19990   ac_configure_extra_args="$ac_configure_extra_args --silent"
19991 fi
19992
19993 _ACEOF
19994 cat >>$CONFIG_STATUS <<_ACEOF
19995 if \$ac_cs_recheck; then
19996   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19997   CONFIG_SHELL=$SHELL
19998   export CONFIG_SHELL
19999   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20000 fi
20001
20002 _ACEOF
20003 cat >>$CONFIG_STATUS <<\_ACEOF
20004 exec 5>>config.log
20005 {
20006   echo
20007   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20008 ## Running $as_me. ##
20009 _ASBOX
20010   echo "$ac_log"
20011 } >&5
20012
20013 _ACEOF
20014 cat >>$CONFIG_STATUS <<_ACEOF
20015 #
20016 # INIT-COMMANDS
20017 #
20018 llvm_src="${srcdir}"
20019
20020 _ACEOF
20021
20022 cat >>$CONFIG_STATUS <<\_ACEOF
20023
20024 # Handling of arguments.
20025 for ac_config_target in $ac_config_targets
20026 do
20027   case $ac_config_target in
20028     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20029     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
20030     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20031     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20032     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20033     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20034     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
20035     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20036     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20037     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20038     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
20039     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
20040     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
20041     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20042     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20043     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20044     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20045     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20046     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20047     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20048     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20049     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20050     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20051     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20052     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20053     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20054
20055   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20056 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20057    { (exit 1); exit 1; }; };;
20058   esac
20059 done
20060
20061
20062 # If the user did not use the arguments to specify the items to instantiate,
20063 # then the envvar interface is used.  Set only those that are not.
20064 # We use the long form for the default assignment because of an extremely
20065 # bizarre bug on SunOS 4.1.3.
20066 if $ac_need_defaults; then
20067   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20068   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20069   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20070 fi
20071
20072 # Have a temporary directory for convenience.  Make it in the build tree
20073 # simply because there is no reason against having it here, and in addition,
20074 # creating and moving files from /tmp can sometimes cause problems.
20075 # Hook for its removal unless debugging.
20076 # Note that there is a small window in which the directory will not be cleaned:
20077 # after its creation but before its name has been assigned to `$tmp'.
20078 $debug ||
20079 {
20080   tmp=
20081   trap 'exit_status=$?
20082   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20083 ' 0
20084   trap '{ (exit 1); exit 1; }' 1 2 13 15
20085 }
20086 # Create a (secure) tmp directory for tmp files.
20087
20088 {
20089   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20090   test -n "$tmp" && test -d "$tmp"
20091 }  ||
20092 {
20093   tmp=./conf$$-$RANDOM
20094   (umask 077 && mkdir "$tmp")
20095 } ||
20096 {
20097    echo "$me: cannot create a temporary directory in ." >&2
20098    { (exit 1); exit 1; }
20099 }
20100
20101 #
20102 # Set up the sed scripts for CONFIG_FILES section.
20103 #
20104
20105 # No need to generate the scripts if there are no CONFIG_FILES.
20106 # This happens for instance when ./config.status config.h
20107 if test -n "$CONFIG_FILES"; then
20108
20109 _ACEOF
20110
20111
20112
20113 ac_delim='%!_!# '
20114 for ac_last_try in false false false false false :; do
20115   cat >conf$$subs.sed <<_ACEOF
20116 SHELL!$SHELL$ac_delim
20117 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20118 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20119 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20120 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20121 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20122 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20123 exec_prefix!$exec_prefix$ac_delim
20124 prefix!$prefix$ac_delim
20125 program_transform_name!$program_transform_name$ac_delim
20126 bindir!$bindir$ac_delim
20127 sbindir!$sbindir$ac_delim
20128 libexecdir!$libexecdir$ac_delim
20129 datarootdir!$datarootdir$ac_delim
20130 datadir!$datadir$ac_delim
20131 sysconfdir!$sysconfdir$ac_delim
20132 sharedstatedir!$sharedstatedir$ac_delim
20133 localstatedir!$localstatedir$ac_delim
20134 includedir!$includedir$ac_delim
20135 oldincludedir!$oldincludedir$ac_delim
20136 docdir!$docdir$ac_delim
20137 infodir!$infodir$ac_delim
20138 htmldir!$htmldir$ac_delim
20139 dvidir!$dvidir$ac_delim
20140 pdfdir!$pdfdir$ac_delim
20141 psdir!$psdir$ac_delim
20142 libdir!$libdir$ac_delim
20143 localedir!$localedir$ac_delim
20144 mandir!$mandir$ac_delim
20145 DEFS!$DEFS$ac_delim
20146 ECHO_C!$ECHO_C$ac_delim
20147 ECHO_N!$ECHO_N$ac_delim
20148 ECHO_T!$ECHO_T$ac_delim
20149 LIBS!$LIBS$ac_delim
20150 build_alias!$build_alias$ac_delim
20151 host_alias!$host_alias$ac_delim
20152 target_alias!$target_alias$ac_delim
20153 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
20154 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
20155 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
20156 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
20157 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20158 CC!$CC$ac_delim
20159 CFLAGS!$CFLAGS$ac_delim
20160 LDFLAGS!$LDFLAGS$ac_delim
20161 CPPFLAGS!$CPPFLAGS$ac_delim
20162 ac_ct_CC!$ac_ct_CC$ac_delim
20163 EXEEXT!$EXEEXT$ac_delim
20164 OBJEXT!$OBJEXT$ac_delim
20165 CXX!$CXX$ac_delim
20166 CXXFLAGS!$CXXFLAGS$ac_delim
20167 ac_ct_CXX!$ac_ct_CXX$ac_delim
20168 CPP!$CPP$ac_delim
20169 subdirs!$subdirs$ac_delim
20170 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
20171 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
20172 build!$build$ac_delim
20173 build_cpu!$build_cpu$ac_delim
20174 build_vendor!$build_vendor$ac_delim
20175 build_os!$build_os$ac_delim
20176 host!$host$ac_delim
20177 host_cpu!$host_cpu$ac_delim
20178 host_vendor!$host_vendor$ac_delim
20179 host_os!$host_os$ac_delim
20180 target!$target$ac_delim
20181 target_cpu!$target_cpu$ac_delim
20182 target_vendor!$target_vendor$ac_delim
20183 target_os!$target_os$ac_delim
20184 OS!$OS$ac_delim
20185 HOST_OS!$HOST_OS$ac_delim
20186 TARGET_OS!$TARGET_OS$ac_delim
20187 LINKALL!$LINKALL$ac_delim
20188 NOLINKALL!$NOLINKALL$ac_delim
20189 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20190 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20191 ARCH!$ARCH$ac_delim
20192 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
20193 HOST_ARCH!$HOST_ARCH$ac_delim
20194 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20195 BUILD_CC!$BUILD_CC$ac_delim
20196 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20197 BUILD_CXX!$BUILD_CXX$ac_delim
20198 CVSBUILD!$CVSBUILD$ac_delim
20199 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
20200 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
20201 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
20202 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
20203 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
20204 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
20205 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
20206 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20207 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20208 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20209 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
20210 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20211 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20212 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20213 _ACEOF
20214
20215   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20216     break
20217   elif $ac_last_try; then
20218     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20219 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20220    { (exit 1); exit 1; }; }
20221   else
20222     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20223   fi
20224 done
20225
20226 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20227 if test -n "$ac_eof"; then
20228   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20229   ac_eof=`expr $ac_eof + 1`
20230 fi
20231
20232 cat >>$CONFIG_STATUS <<_ACEOF
20233 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20235 _ACEOF
20236 sed '
20237 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20238 s/^/s,@/; s/!/@,|#_!!_#|/
20239 :n
20240 t n
20241 s/'"$ac_delim"'$/,g/; t
20242 s/$/\\/; p
20243 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20244 ' >>$CONFIG_STATUS <conf$$subs.sed
20245 rm -f conf$$subs.sed
20246 cat >>$CONFIG_STATUS <<_ACEOF
20247 CEOF$ac_eof
20248 _ACEOF
20249
20250
20251 ac_delim='%!_!# '
20252 for ac_last_try in false false false false false :; do
20253   cat >conf$$subs.sed <<_ACEOF
20254 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20255 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
20256 JIT!$JIT$ac_delim
20257 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20258 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
20259 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
20260 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20261 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
20262 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
20263 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
20264 ENABLE_PIC!$ENABLE_PIC$ac_delim
20265 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20266 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
20267 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
20268 ALL_TARGETS!$ALL_TARGETS$ac_delim
20269 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20270 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20271 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20272 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20273 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20274 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20275 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20276 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
20277 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
20278 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20279 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
20280 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
20281 ifGNUmake!$ifGNUmake$ac_delim
20282 LN_S!$LN_S$ac_delim
20283 NM!$NM$ac_delim
20284 CMP!$CMP$ac_delim
20285 CP!$CP$ac_delim
20286 DATE!$DATE$ac_delim
20287 FIND!$FIND$ac_delim
20288 GREP!$GREP$ac_delim
20289 MKDIR!$MKDIR$ac_delim
20290 MV!$MV$ac_delim
20291 RANLIB!$RANLIB$ac_delim
20292 AR!$AR$ac_delim
20293 RM!$RM$ac_delim
20294 SED!$SED$ac_delim
20295 TAR!$TAR$ac_delim
20296 BINPWD!$BINPWD$ac_delim
20297 GRAPHVIZ!$GRAPHVIZ$ac_delim
20298 DOT!$DOT$ac_delim
20299 FDP!$FDP$ac_delim
20300 NEATO!$NEATO$ac_delim
20301 TWOPI!$TWOPI$ac_delim
20302 CIRCO!$CIRCO$ac_delim
20303 GV!$GV$ac_delim
20304 DOTTY!$DOTTY$ac_delim
20305 XDOT!$XDOT$ac_delim
20306 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20307 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20308 INSTALL_DATA!$INSTALL_DATA$ac_delim
20309 BZIP2!$BZIP2$ac_delim
20310 CAT!$CAT$ac_delim
20311 DOXYGEN!$DOXYGEN$ac_delim
20312 GROFF!$GROFF$ac_delim
20313 GZIPBIN!$GZIPBIN$ac_delim
20314 PDFROFF!$PDFROFF$ac_delim
20315 ZIP!$ZIP$ac_delim
20316 OCAMLC!$OCAMLC$ac_delim
20317 OCAMLOPT!$OCAMLOPT$ac_delim
20318 OCAMLDEP!$OCAMLDEP$ac_delim
20319 OCAMLDOC!$OCAMLDOC$ac_delim
20320 GAS!$GAS$ac_delim
20321 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
20322 EGREP!$EGREP$ac_delim
20323 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20324 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20325 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
20326 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
20327 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
20328 PYTHON!$PYTHON$ac_delim
20329 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
20330 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
20331 USE_UDIS86!$USE_UDIS86$ac_delim
20332 USE_OPROFILE!$USE_OPROFILE$ac_delim
20333 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
20334 XML2CONFIG!$XML2CONFIG$ac_delim
20335 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
20336 LIBXML2_INC!$LIBXML2_INC$ac_delim
20337 CXXCPP!$CXXCPP$ac_delim
20338 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20339 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
20340 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20341 MMAP_FILE!$MMAP_FILE$ac_delim
20342 SHLIBEXT!$SHLIBEXT$ac_delim
20343 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20344 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20345 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20346 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20347 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20348 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20349 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20350 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20351 _ACEOF
20352
20353   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20354     break
20355   elif $ac_last_try; then
20356     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20357 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20358    { (exit 1); exit 1; }; }
20359   else
20360     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20361   fi
20362 done
20363
20364 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20365 if test -n "$ac_eof"; then
20366   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20367   ac_eof=`expr $ac_eof + 1`
20368 fi
20369
20370 cat >>$CONFIG_STATUS <<_ACEOF
20371 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20373 _ACEOF
20374 sed '
20375 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20376 s/^/s,@/; s/!/@,|#_!!_#|/
20377 :n
20378 t n
20379 s/'"$ac_delim"'$/,g/; t
20380 s/$/\\/; p
20381 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20382 ' >>$CONFIG_STATUS <conf$$subs.sed
20383 rm -f conf$$subs.sed
20384 cat >>$CONFIG_STATUS <<_ACEOF
20385 CEOF$ac_eof
20386 _ACEOF
20387
20388
20389 ac_delim='%!_!# '
20390 for ac_last_try in false false false false false :; do
20391   cat >conf$$subs.sed <<_ACEOF
20392 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20393 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20394 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20395 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20396 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20397 RPATH!$RPATH$ac_delim
20398 RDYNAMIC!$RDYNAMIC$ac_delim
20399 program_prefix!$program_prefix$ac_delim
20400 LIBOBJS!$LIBOBJS$ac_delim
20401 LTLIBOBJS!$LTLIBOBJS$ac_delim
20402 _ACEOF
20403
20404   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
20405     break
20406   elif $ac_last_try; then
20407     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20408 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20409    { (exit 1); exit 1; }; }
20410   else
20411     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20412   fi
20413 done
20414
20415 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20416 if test -n "$ac_eof"; then
20417   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20418   ac_eof=`expr $ac_eof + 1`
20419 fi
20420
20421 cat >>$CONFIG_STATUS <<_ACEOF
20422 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
20423 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20424 _ACEOF
20425 sed '
20426 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20427 s/^/s,@/; s/!/@,|#_!!_#|/
20428 :n
20429 t n
20430 s/'"$ac_delim"'$/,g/; t
20431 s/$/\\/; p
20432 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20433 ' >>$CONFIG_STATUS <conf$$subs.sed
20434 rm -f conf$$subs.sed
20435 cat >>$CONFIG_STATUS <<_ACEOF
20436 :end
20437 s/|#_!!_#|//g
20438 CEOF$ac_eof
20439 _ACEOF
20440
20441
20442 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20443 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20444 # trailing colons and then remove the whole line if VPATH becomes empty
20445 # (actually we leave an empty line to preserve line numbers).
20446 if test "x$srcdir" = x.; then
20447   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20448 s/:*\$(srcdir):*/:/
20449 s/:*\${srcdir}:*/:/
20450 s/:*@srcdir@:*/:/
20451 s/^\([^=]*=[     ]*\):*/\1/
20452 s/:*$//
20453 s/^[^=]*=[       ]*$//
20454 }'
20455 fi
20456
20457 cat >>$CONFIG_STATUS <<\_ACEOF
20458 fi # test -n "$CONFIG_FILES"
20459
20460
20461 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20462 do
20463   case $ac_tag in
20464   :[FHLC]) ac_mode=$ac_tag; continue;;
20465   esac
20466   case $ac_mode$ac_tag in
20467   :[FHL]*:*);;
20468   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20469 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20470    { (exit 1); exit 1; }; };;
20471   :[FH]-) ac_tag=-:-;;
20472   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20473   esac
20474   ac_save_IFS=$IFS
20475   IFS=:
20476   set x $ac_tag
20477   IFS=$ac_save_IFS
20478   shift
20479   ac_file=$1
20480   shift
20481
20482   case $ac_mode in
20483   :L) ac_source=$1;;
20484   :[FH])
20485     ac_file_inputs=
20486     for ac_f
20487     do
20488       case $ac_f in
20489       -) ac_f="$tmp/stdin";;
20490       *) # Look for the file first in the build tree, then in the source tree
20491          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20492          # because $ac_f cannot contain `:'.
20493          test -f "$ac_f" ||
20494            case $ac_f in
20495            [\\/$]*) false;;
20496            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20497            esac ||
20498            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20499 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20500    { (exit 1); exit 1; }; };;
20501       esac
20502       ac_file_inputs="$ac_file_inputs $ac_f"
20503     done
20504
20505     # Let's still pretend it is `configure' which instantiates (i.e., don't
20506     # use $as_me), people would be surprised to read:
20507     #    /* config.h.  Generated by config.status.  */
20508     configure_input="Generated from "`IFS=:
20509           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20510     if test x"$ac_file" != x-; then
20511       configure_input="$ac_file.  $configure_input"
20512       { echo "$as_me:$LINENO: creating $ac_file" >&5
20513 echo "$as_me: creating $ac_file" >&6;}
20514     fi
20515
20516     case $ac_tag in
20517     *:-:* | *:-) cat >"$tmp/stdin";;
20518     esac
20519     ;;
20520   esac
20521
20522   ac_dir=`$as_dirname -- "$ac_file" ||
20523 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20524          X"$ac_file" : 'X\(//\)[^/]' \| \
20525          X"$ac_file" : 'X\(//\)$' \| \
20526          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20527 echo X"$ac_file" |
20528     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20529             s//\1/
20530             q
20531           }
20532           /^X\(\/\/\)[^/].*/{
20533             s//\1/
20534             q
20535           }
20536           /^X\(\/\/\)$/{
20537             s//\1/
20538             q
20539           }
20540           /^X\(\/\).*/{
20541             s//\1/
20542             q
20543           }
20544           s/.*/./; q'`
20545   { as_dir="$ac_dir"
20546   case $as_dir in #(
20547   -*) as_dir=./$as_dir;;
20548   esac
20549   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20550     as_dirs=
20551     while :; do
20552       case $as_dir in #(
20553       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20554       *) as_qdir=$as_dir;;
20555       esac
20556       as_dirs="'$as_qdir' $as_dirs"
20557       as_dir=`$as_dirname -- "$as_dir" ||
20558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20559          X"$as_dir" : 'X\(//\)[^/]' \| \
20560          X"$as_dir" : 'X\(//\)$' \| \
20561          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20562 echo X"$as_dir" |
20563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20564             s//\1/
20565             q
20566           }
20567           /^X\(\/\/\)[^/].*/{
20568             s//\1/
20569             q
20570           }
20571           /^X\(\/\/\)$/{
20572             s//\1/
20573             q
20574           }
20575           /^X\(\/\).*/{
20576             s//\1/
20577             q
20578           }
20579           s/.*/./; q'`
20580       test -d "$as_dir" && break
20581     done
20582     test -z "$as_dirs" || eval "mkdir $as_dirs"
20583   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20584 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20585    { (exit 1); exit 1; }; }; }
20586   ac_builddir=.
20587
20588 case "$ac_dir" in
20589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20590 *)
20591   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20592   # A ".." for each directory in $ac_dir_suffix.
20593   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20594   case $ac_top_builddir_sub in
20595   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20596   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20597   esac ;;
20598 esac
20599 ac_abs_top_builddir=$ac_pwd
20600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20601 # for backward compatibility:
20602 ac_top_builddir=$ac_top_build_prefix
20603
20604 case $srcdir in
20605   .)  # We are building in place.
20606     ac_srcdir=.
20607     ac_top_srcdir=$ac_top_builddir_sub
20608     ac_abs_top_srcdir=$ac_pwd ;;
20609   [\\/]* | ?:[\\/]* )  # Absolute name.
20610     ac_srcdir=$srcdir$ac_dir_suffix;
20611     ac_top_srcdir=$srcdir
20612     ac_abs_top_srcdir=$srcdir ;;
20613   *) # Relative name.
20614     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20615     ac_top_srcdir=$ac_top_build_prefix$srcdir
20616     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20617 esac
20618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20619
20620
20621   case $ac_mode in
20622   :F)
20623   #
20624   # CONFIG_FILE
20625   #
20626
20627   case $INSTALL in
20628   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20629   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20630   esac
20631 _ACEOF
20632
20633 cat >>$CONFIG_STATUS <<\_ACEOF
20634 # If the template does not know about datarootdir, expand it.
20635 # FIXME: This hack should be removed a few years after 2.60.
20636 ac_datarootdir_hack=; ac_datarootdir_seen=
20637
20638 case `sed -n '/datarootdir/ {
20639   p
20640   q
20641 }
20642 /@datadir@/p
20643 /@docdir@/p
20644 /@infodir@/p
20645 /@localedir@/p
20646 /@mandir@/p
20647 ' $ac_file_inputs` in
20648 *datarootdir*) ac_datarootdir_seen=yes;;
20649 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20650   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20651 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20652 _ACEOF
20653 cat >>$CONFIG_STATUS <<_ACEOF
20654   ac_datarootdir_hack='
20655   s&@datadir@&$datadir&g
20656   s&@docdir@&$docdir&g
20657   s&@infodir@&$infodir&g
20658   s&@localedir@&$localedir&g
20659   s&@mandir@&$mandir&g
20660     s&\\\${datarootdir}&$datarootdir&g' ;;
20661 esac
20662 _ACEOF
20663
20664 # Neutralize VPATH when `$srcdir' = `.'.
20665 # Shell code in configure.ac might set extrasub.
20666 # FIXME: do we really want to maintain this feature?
20667 cat >>$CONFIG_STATUS <<_ACEOF
20668   sed "$ac_vpsub
20669 $extrasub
20670 _ACEOF
20671 cat >>$CONFIG_STATUS <<\_ACEOF
20672 :t
20673 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20674 s&@configure_input@&$configure_input&;t t
20675 s&@top_builddir@&$ac_top_builddir_sub&;t t
20676 s&@srcdir@&$ac_srcdir&;t t
20677 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20678 s&@top_srcdir@&$ac_top_srcdir&;t t
20679 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20680 s&@builddir@&$ac_builddir&;t t
20681 s&@abs_builddir@&$ac_abs_builddir&;t t
20682 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20683 s&@INSTALL@&$ac_INSTALL&;t t
20684 $ac_datarootdir_hack
20685 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
20686
20687 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20688   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20689   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20690   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20691 which seems to be undefined.  Please make sure it is defined." >&5
20692 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20693 which seems to be undefined.  Please make sure it is defined." >&2;}
20694
20695   rm -f "$tmp/stdin"
20696   case $ac_file in
20697   -) cat "$tmp/out"; rm -f "$tmp/out";;
20698   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20699   esac
20700  ;;
20701   :H)
20702   #
20703   # CONFIG_HEADER
20704   #
20705 _ACEOF
20706
20707 # Transform confdefs.h into a sed script `conftest.defines', that
20708 # substitutes the proper values into config.h.in to produce config.h.
20709 rm -f conftest.defines conftest.tail
20710 # First, append a space to every undef/define line, to ease matching.
20711 echo 's/$/ /' >conftest.defines
20712 # Then, protect against being on the right side of a sed subst, or in
20713 # an unquoted here document, in config.status.  If some macros were
20714 # called several times there might be several #defines for the same
20715 # symbol, which is useless.  But do not sort them, since the last
20716 # AC_DEFINE must be honored.
20717 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20718 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20719 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20720 # PARAMS is the parameter list in the macro definition--in most cases, it's
20721 # just an empty string.
20722 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
20723 ac_dB='\\)[      (].*,\\1define\\2'
20724 ac_dC=' '
20725 ac_dD=' ,'
20726
20727 uniq confdefs.h |
20728   sed -n '
20729         t rset
20730         :rset
20731         s/^[     ]*#[    ]*define[       ][      ]*//
20732         t ok
20733         d
20734         :ok
20735         s/[\\&,]/\\&/g
20736         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20737         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20738   ' >>conftest.defines
20739
20740 # Remove the space that was appended to ease matching.
20741 # Then replace #undef with comments.  This is necessary, for
20742 # example, in the case of _POSIX_SOURCE, which is predefined and required
20743 # on some systems where configure will not decide to define it.
20744 # (The regexp can be short, since the line contains either #define or #undef.)
20745 echo 's/ $//
20746 s,^[     #]*u.*,/* & */,' >>conftest.defines
20747
20748 # Break up conftest.defines:
20749 ac_max_sed_lines=50
20750
20751 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20752 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20753 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20754 # et cetera.
20755 ac_in='$ac_file_inputs'
20756 ac_out='"$tmp/out1"'
20757 ac_nxt='"$tmp/out2"'
20758
20759 while :
20760 do
20761   # Write a here document:
20762     cat >>$CONFIG_STATUS <<_ACEOF
20763     # First, check the format of the line:
20764     cat >"\$tmp/defines.sed" <<\\CEOF
20765 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
20766 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
20767 b
20768 :def
20769 _ACEOF
20770   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20771   echo 'CEOF
20772     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20773   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20774   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20775   grep . conftest.tail >/dev/null || break
20776   rm -f conftest.defines
20777   mv conftest.tail conftest.defines
20778 done
20779 rm -f conftest.defines conftest.tail
20780
20781 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20782 cat >>$CONFIG_STATUS <<\_ACEOF
20783   if test x"$ac_file" != x-; then
20784     echo "/* $configure_input  */" >"$tmp/config.h"
20785     cat "$ac_result" >>"$tmp/config.h"
20786     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20787       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20788 echo "$as_me: $ac_file is unchanged" >&6;}
20789     else
20790       rm -f $ac_file
20791       mv "$tmp/config.h" $ac_file
20792     fi
20793   else
20794     echo "/* $configure_input  */"
20795     cat "$ac_result"
20796   fi
20797   rm -f "$tmp/out12"
20798  ;;
20799
20800   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20801 echo "$as_me: executing $ac_file commands" >&6;}
20802  ;;
20803   esac
20804
20805
20806   case $ac_file$ac_mode in
20807     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20808    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20809     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20810    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20811     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20812    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20813     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20814    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20815     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20816    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20817     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20818    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20819     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20820    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20821     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20822    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20823     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20824    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20825     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20826    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20827     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20828    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20829     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20830    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20831
20832   esac
20833 done # for ac_tag
20834
20835
20836 { (exit 0); exit 0; }
20837 _ACEOF
20838 chmod +x $CONFIG_STATUS
20839 ac_clean_files=$ac_clean_files_save
20840
20841
20842 # configure is writing to config.log, and then calls config.status.
20843 # config.status does its own redirection, appending to config.log.
20844 # Unfortunately, on DOS this fails, as config.log is still kept open
20845 # by configure, so config.status won't be able to write to it; its
20846 # output is simply discarded.  So we exec the FD to /dev/null,
20847 # effectively closing config.log, so it can be properly (re)opened and
20848 # appended to by config.status.  When coming back to configure, we
20849 # need to make the FD available again.
20850 if test "$no_create" != yes; then
20851   ac_cs_success=:
20852   ac_config_status_args=
20853   test "$silent" = yes &&
20854     ac_config_status_args="$ac_config_status_args --quiet"
20855   exec 5>/dev/null
20856   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20857   exec 5>>config.log
20858   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20859   # would make configure fail if this is the last instruction.
20860   $ac_cs_success || { (exit 1); exit 1; }
20861 fi
20862
20863 #
20864 # CONFIG_SUBDIRS section.
20865 #
20866 if test "$no_recursion" != yes; then
20867
20868   # Remove --cache-file and --srcdir arguments so they do not pile up.
20869   ac_sub_configure_args=
20870   ac_prev=
20871   eval "set x $ac_configure_args"
20872   shift
20873   for ac_arg
20874   do
20875     if test -n "$ac_prev"; then
20876       ac_prev=
20877       continue
20878     fi
20879     case $ac_arg in
20880     -cache-file | --cache-file | --cache-fil | --cache-fi \
20881     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20882       ac_prev=cache_file ;;
20883     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20884     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20885     | --c=*)
20886       ;;
20887     --config-cache | -C)
20888       ;;
20889     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20890       ac_prev=srcdir ;;
20891     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20892       ;;
20893     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20894       ac_prev=prefix ;;
20895     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20896       ;;
20897     *)
20898       case $ac_arg in
20899       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20900       esac
20901       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20902     esac
20903   done
20904
20905   # Always prepend --prefix to ensure using the same prefix
20906   # in subdir configurations.
20907   ac_arg="--prefix=$prefix"
20908   case $ac_arg in
20909   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20910   esac
20911   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20912
20913   ac_popdir=`pwd`
20914   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20915
20916     # Do not complain, so a configure script can configure whichever
20917     # parts of a large source tree are present.
20918     test -d "$srcdir/$ac_dir" || continue
20919
20920     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20921     echo "$as_me:$LINENO: $ac_msg" >&5
20922     echo "$ac_msg" >&6
20923     { as_dir="$ac_dir"
20924   case $as_dir in #(
20925   -*) as_dir=./$as_dir;;
20926   esac
20927   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20928     as_dirs=
20929     while :; do
20930       case $as_dir in #(
20931       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20932       *) as_qdir=$as_dir;;
20933       esac
20934       as_dirs="'$as_qdir' $as_dirs"
20935       as_dir=`$as_dirname -- "$as_dir" ||
20936 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20937          X"$as_dir" : 'X\(//\)[^/]' \| \
20938          X"$as_dir" : 'X\(//\)$' \| \
20939          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20940 echo X"$as_dir" |
20941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20942             s//\1/
20943             q
20944           }
20945           /^X\(\/\/\)[^/].*/{
20946             s//\1/
20947             q
20948           }
20949           /^X\(\/\/\)$/{
20950             s//\1/
20951             q
20952           }
20953           /^X\(\/\).*/{
20954             s//\1/
20955             q
20956           }
20957           s/.*/./; q'`
20958       test -d "$as_dir" && break
20959     done
20960     test -z "$as_dirs" || eval "mkdir $as_dirs"
20961   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20962 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20963    { (exit 1); exit 1; }; }; }
20964     ac_builddir=.
20965
20966 case "$ac_dir" in
20967 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20968 *)
20969   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20970   # A ".." for each directory in $ac_dir_suffix.
20971   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20972   case $ac_top_builddir_sub in
20973   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20974   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20975   esac ;;
20976 esac
20977 ac_abs_top_builddir=$ac_pwd
20978 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20979 # for backward compatibility:
20980 ac_top_builddir=$ac_top_build_prefix
20981
20982 case $srcdir in
20983   .)  # We are building in place.
20984     ac_srcdir=.
20985     ac_top_srcdir=$ac_top_builddir_sub
20986     ac_abs_top_srcdir=$ac_pwd ;;
20987   [\\/]* | ?:[\\/]* )  # Absolute name.
20988     ac_srcdir=$srcdir$ac_dir_suffix;
20989     ac_top_srcdir=$srcdir
20990     ac_abs_top_srcdir=$srcdir ;;
20991   *) # Relative name.
20992     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20993     ac_top_srcdir=$ac_top_build_prefix$srcdir
20994     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20995 esac
20996 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20997
20998
20999     cd "$ac_dir"
21000
21001     # Check for guested configure; otherwise get Cygnus style configure.
21002     if test -f "$ac_srcdir/configure.gnu"; then
21003       ac_sub_configure=$ac_srcdir/configure.gnu
21004     elif test -f "$ac_srcdir/configure"; then
21005       ac_sub_configure=$ac_srcdir/configure
21006     elif test -f "$ac_srcdir/configure.in"; then
21007       # This should be Cygnus configure.
21008       ac_sub_configure=$ac_aux_dir/configure
21009     else
21010       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21011 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21012       ac_sub_configure=
21013     fi
21014
21015     # The recursion is here.
21016     if test -n "$ac_sub_configure"; then
21017       # Make the cache file name correct relative to the subdirectory.
21018       case $cache_file in
21019       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21020       *) # Relative name.
21021         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21022       esac
21023
21024       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21025 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21026       # The eval makes quoting arguments work.
21027       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21028            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21029         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21030 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21031    { (exit 1); exit 1; }; }
21032     fi
21033
21034     cd "$ac_popdir"
21035   done
21036 fi
21037