deab9899d95b673b4e9a06fe8cf4288edfcff329
[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.5svn.
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.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
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_COPYRIGHT
645 CC
646 CFLAGS
647 LDFLAGS
648 CPPFLAGS
649 ac_ct_CC
650 EXEEXT
651 OBJEXT
652 CXX
653 CXXFLAGS
654 ac_ct_CXX
655 CPP
656 subdirs
657 ENABLE_POLLY
658 LLVM_HAS_POLLY
659 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
667 target
668 target_cpu
669 target_vendor
670 target_os
671 OS
672 HOST_OS
673 TARGET_OS
674 LINKALL
675 NOLINKALL
676 LLVM_ON_UNIX
677 LLVM_ON_WIN32
678 ARCH
679 LLVM_NATIVE_ARCH
680 HOST_ARCH
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_SPLIT_DWARF
689 ENABLE_CLANG_ARCMT
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
692 ENABLE_OPTIMIZED
693 ENABLE_PROFILING
694 DISABLE_ASSERTIONS
695 ENABLE_WERROR
696 ENABLE_EXPENSIVE_CHECKS
697 EXPENSIVE_CHECKS
698 DEBUG_RUNTIME
699 DEBUG_SYMBOLS
700 KEEP_SYMBOLS
701 JIT
702 TARGET_HAS_JIT
703 TARGETS_WITH_JIT
704 ENABLE_DOCS
705 ENABLE_DOXYGEN
706 LLVM_ENABLE_THREADS
707 ENABLE_PTHREADS
708 LLVM_ENABLE_ZLIB
709 ENABLE_PIC
710 ENABLE_SHARED
711 ENABLE_EMBED_STDCXX
712 ENABLE_TIMESTAMPS
713 ALL_TARGETS
714 TARGETS_TO_BUILD
715 LLVM_ENUM_TARGETS
716 LLVM_ENUM_ASM_PRINTERS
717 LLVM_ENUM_ASM_PARSERS
718 LLVM_ENUM_DISASSEMBLERS
719 OPTIMIZE_OPTION
720 EXTRA_OPTIONS
721 EXTRA_LD_OPTIONS
722 CLANG_SRC_ROOT
723 BINUTILS_INCDIR
724 ENABLE_TERMINFO
725 INTERNAL_PREFIX
726 ifGNUmake
727 LN_S
728 NM
729 CMP
730 CP
731 DATE
732 FIND
733 GREP
734 MKDIR
735 MV
736 RANLIB
737 AR
738 RM
739 SED
740 TAR
741 BINPWD
742 GRAPHVIZ
743 DOT
744 FDP
745 NEATO
746 TWOPI
747 CIRCO
748 GV
749 DOTTY
750 XDOT
751 INSTALL_PROGRAM
752 INSTALL_SCRIPT
753 INSTALL_DATA
754 BZIP2
755 CAT
756 DOXYGEN
757 GROFF
758 GZIPBIN
759 PDFROFF
760 ZIP
761 OCAMLC
762 OCAMLOPT
763 OCAMLDEP
764 OCAMLDOC
765 GAS
766 HAVE_LINK_VERSION_SCRIPT
767 EGREP
768 NO_VARIADIC_MACROS
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
772 NO_UNINITIALIZED
773 PYTHON
774 HAVE_DLOPEN
775 HAVE_TERMINFO
776 USE_UDIS86
777 USE_OPROFILE
778 USE_INTEL_JITEVENTS
779 XML2CONFIG
780 LIBXML2_LIBS
781 LIBXML2_INC
782 CXXCPP
783 HAVE_PTHREAD
784 HAVE_LIBZ
785 HUGE_VAL_SANITY
786 MMAP_FILE
787 SHLIBEXT
788 LLVM_PREFIX
789 LLVM_BINDIR
790 LLVM_DATADIR
791 LLVM_DOCSDIR
792 LLVM_ETCDIR
793 LLVM_INCLUDEDIR
794 LLVM_INFODIR
795 LLVM_MANDIR
796 LLVM_CONFIGTIME
797 BINDINGS_TO_BUILD
798 ALL_BINDINGS
799 OCAML_LIBDIR
800 ENABLE_VISIBILITY_INLINES_HIDDEN
801 RPATH
802 RDYNAMIC
803 program_prefix
804 LIBOBJS
805 LTLIBOBJS'
806 ac_subst_files=''
807       ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 CPPFLAGS
814 CXX
815 CXXFLAGS
816 CCC
817 CPP
818 CXXCPP'
819 ac_subdirs_all='projects/test-suite
820 projects/llvm-test
821 projects/poolalloc
822 projects/llvm-poolalloc
823 projects/sample
824 projects/safecode
825 tools/polly'
826
827 # Initialize some variables set by options.
828 ac_init_help=
829 ac_init_version=false
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
846
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
865 htmldir='${docdir}'
866 dvidir='${docdir}'
867 pdfdir='${docdir}'
868 psdir='${docdir}'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
872
873 ac_prev=
874 ac_dashdash=
875 for ac_option
876 do
877   # If the previous option needs an argument, assign it.
878   if test -n "$ac_prev"; then
879     eval $ac_prev=\$ac_option
880     ac_prev=
881     continue
882   fi
883
884   case $ac_option in
885   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886   *)    ac_optarg=yes ;;
887   esac
888
889   # Accept the important Cygnus configure options, so we can diagnose typos.
890
891   case $ac_dashdash$ac_option in
892   --)
893     ac_dashdash=yes ;;
894
895   -bindir | --bindir | --bindi | --bind | --bin | --bi)
896     ac_prev=bindir ;;
897   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898     bindir=$ac_optarg ;;
899
900   -build | --build | --buil | --bui | --bu)
901     ac_prev=build_alias ;;
902   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903     build_alias=$ac_optarg ;;
904
905   -cache-file | --cache-file | --cache-fil | --cache-fi \
906   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907     ac_prev=cache_file ;;
908   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910     cache_file=$ac_optarg ;;
911
912   --config-cache | -C)
913     cache_file=config.cache ;;
914
915   -datadir | --datadir | --datadi | --datad)
916     ac_prev=datadir ;;
917   -datadir=* | --datadir=* | --datadi=* | --datad=*)
918     datadir=$ac_optarg ;;
919
920   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921   | --dataroo | --dataro | --datar)
922     ac_prev=datarootdir ;;
923   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925     datarootdir=$ac_optarg ;;
926
927   -disable-* | --disable-*)
928     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929     # Reject names that are not valid shell variable names.
930     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
931       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
932    { (exit 1); exit 1; }; }
933     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
934     eval enable_$ac_feature=no ;;
935
936   -docdir | --docdir | --docdi | --doc | --do)
937     ac_prev=docdir ;;
938   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939     docdir=$ac_optarg ;;
940
941   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942     ac_prev=dvidir ;;
943   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944     dvidir=$ac_optarg ;;
945
946   -enable-* | --enable-*)
947     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948     # Reject names that are not valid shell variable names.
949     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
950       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
951    { (exit 1); exit 1; }; }
952     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
953     eval enable_$ac_feature=\$ac_optarg ;;
954
955   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957   | --exec | --exe | --ex)
958     ac_prev=exec_prefix ;;
959   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961   | --exec=* | --exe=* | --ex=*)
962     exec_prefix=$ac_optarg ;;
963
964   -gas | --gas | --ga | --g)
965     # Obsolete; use --with-gas.
966     with_gas=yes ;;
967
968   -help | --help | --hel | --he | -h)
969     ac_init_help=long ;;
970   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971     ac_init_help=recursive ;;
972   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973     ac_init_help=short ;;
974
975   -host | --host | --hos | --ho)
976     ac_prev=host_alias ;;
977   -host=* | --host=* | --hos=* | --ho=*)
978     host_alias=$ac_optarg ;;
979
980   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981     ac_prev=htmldir ;;
982   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983   | --ht=*)
984     htmldir=$ac_optarg ;;
985
986   -includedir | --includedir | --includedi | --included | --include \
987   | --includ | --inclu | --incl | --inc)
988     ac_prev=includedir ;;
989   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990   | --includ=* | --inclu=* | --incl=* | --inc=*)
991     includedir=$ac_optarg ;;
992
993   -infodir | --infodir | --infodi | --infod | --info | --inf)
994     ac_prev=infodir ;;
995   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996     infodir=$ac_optarg ;;
997
998   -libdir | --libdir | --libdi | --libd)
999     ac_prev=libdir ;;
1000   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001     libdir=$ac_optarg ;;
1002
1003   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004   | --libexe | --libex | --libe)
1005     ac_prev=libexecdir ;;
1006   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007   | --libexe=* | --libex=* | --libe=*)
1008     libexecdir=$ac_optarg ;;
1009
1010   -localedir | --localedir | --localedi | --localed | --locale)
1011     ac_prev=localedir ;;
1012   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013     localedir=$ac_optarg ;;
1014
1015   -localstatedir | --localstatedir | --localstatedi | --localstated \
1016   | --localstate | --localstat | --localsta | --localst | --locals)
1017     ac_prev=localstatedir ;;
1018   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020     localstatedir=$ac_optarg ;;
1021
1022   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023     ac_prev=mandir ;;
1024   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025     mandir=$ac_optarg ;;
1026
1027   -nfp | --nfp | --nf)
1028     # Obsolete; use --without-fp.
1029     with_fp=no ;;
1030
1031   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032   | --no-cr | --no-c | -n)
1033     no_create=yes ;;
1034
1035   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037     no_recursion=yes ;;
1038
1039   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041   | --oldin | --oldi | --old | --ol | --o)
1042     ac_prev=oldincludedir ;;
1043   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046     oldincludedir=$ac_optarg ;;
1047
1048   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049     ac_prev=prefix ;;
1050   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051     prefix=$ac_optarg ;;
1052
1053   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054   | --program-pre | --program-pr | --program-p)
1055     ac_prev=program_prefix ;;
1056   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058     program_prefix=$ac_optarg ;;
1059
1060   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061   | --program-suf | --program-su | --program-s)
1062     ac_prev=program_suffix ;;
1063   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065     program_suffix=$ac_optarg ;;
1066
1067   -program-transform-name | --program-transform-name \
1068   | --program-transform-nam | --program-transform-na \
1069   | --program-transform-n | --program-transform- \
1070   | --program-transform | --program-transfor \
1071   | --program-transfo | --program-transf \
1072   | --program-trans | --program-tran \
1073   | --progr-tra | --program-tr | --program-t)
1074     ac_prev=program_transform_name ;;
1075   -program-transform-name=* | --program-transform-name=* \
1076   | --program-transform-nam=* | --program-transform-na=* \
1077   | --program-transform-n=* | --program-transform-=* \
1078   | --program-transform=* | --program-transfor=* \
1079   | --program-transfo=* | --program-transf=* \
1080   | --program-trans=* | --program-tran=* \
1081   | --progr-tra=* | --program-tr=* | --program-t=*)
1082     program_transform_name=$ac_optarg ;;
1083
1084   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085     ac_prev=pdfdir ;;
1086   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087     pdfdir=$ac_optarg ;;
1088
1089   -psdir | --psdir | --psdi | --psd | --ps)
1090     ac_prev=psdir ;;
1091   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092     psdir=$ac_optarg ;;
1093
1094   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095   | -silent | --silent | --silen | --sile | --sil)
1096     silent=yes ;;
1097
1098   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099     ac_prev=sbindir ;;
1100   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101   | --sbi=* | --sb=*)
1102     sbindir=$ac_optarg ;;
1103
1104   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106   | --sharedst | --shareds | --shared | --share | --shar \
1107   | --sha | --sh)
1108     ac_prev=sharedstatedir ;;
1109   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112   | --sha=* | --sh=*)
1113     sharedstatedir=$ac_optarg ;;
1114
1115   -site | --site | --sit)
1116     ac_prev=site ;;
1117   -site=* | --site=* | --sit=*)
1118     site=$ac_optarg ;;
1119
1120   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121     ac_prev=srcdir ;;
1122   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123     srcdir=$ac_optarg ;;
1124
1125   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126   | --syscon | --sysco | --sysc | --sys | --sy)
1127     ac_prev=sysconfdir ;;
1128   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130     sysconfdir=$ac_optarg ;;
1131
1132   -target | --target | --targe | --targ | --tar | --ta | --t)
1133     ac_prev=target_alias ;;
1134   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135     target_alias=$ac_optarg ;;
1136
1137   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138     verbose=yes ;;
1139
1140   -version | --version | --versio | --versi | --vers | -V)
1141     ac_init_version=: ;;
1142
1143   -with-* | --with-*)
1144     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147       { echo "$as_me: error: invalid package name: $ac_package" >&2
1148    { (exit 1); exit 1; }; }
1149     ac_package=`echo $ac_package| sed 's/-/_/g'`
1150     eval with_$ac_package=\$ac_optarg ;;
1151
1152   -without-* | --without-*)
1153     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156       { echo "$as_me: error: invalid package name: $ac_package" >&2
1157    { (exit 1); exit 1; }; }
1158     ac_package=`echo $ac_package | sed 's/-/_/g'`
1159     eval with_$ac_package=no ;;
1160
1161   --x)
1162     # Obsolete; use --with-x.
1163     with_x=yes ;;
1164
1165   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166   | --x-incl | --x-inc | --x-in | --x-i)
1167     ac_prev=x_includes ;;
1168   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170     x_includes=$ac_optarg ;;
1171
1172   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174     ac_prev=x_libraries ;;
1175   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177     x_libraries=$ac_optarg ;;
1178
1179   -*) { echo "$as_me: error: unrecognized option: $ac_option
1180 Try \`$0 --help' for more information." >&2
1181    { (exit 1); exit 1; }; }
1182     ;;
1183
1184   *=*)
1185     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186     # Reject names that are not valid shell variable names.
1187     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1188       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1189    { (exit 1); exit 1; }; }
1190     eval $ac_envvar=\$ac_optarg
1191     export $ac_envvar ;;
1192
1193   *)
1194     # FIXME: should be removed in autoconf 3.0.
1195     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199     ;;
1200
1201   esac
1202 done
1203
1204 if test -n "$ac_prev"; then
1205   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206   { echo "$as_me: error: missing argument to $ac_option" >&2
1207    { (exit 1); exit 1; }; }
1208 fi
1209
1210 # Be sure to have absolute directory names.
1211 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212                 datadir sysconfdir sharedstatedir localstatedir includedir \
1213                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214                 libdir localedir mandir
1215 do
1216   eval ac_val=\$$ac_var
1217   case $ac_val in
1218     [\\/$]* | ?:[\\/]* )  continue;;
1219     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220   esac
1221   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1222    { (exit 1); exit 1; }; }
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234   if test "x$build_alias" = x; then
1235     cross_compiling=maybe
1236     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1237     If a cross compiler is detected then cross compile mode will be used." >&2
1238   elif test "x$build_alias" != "x$host_alias"; then
1239     cross_compiling=yes
1240   fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252   { echo "$as_me: error: Working directory cannot be determined" >&2
1253    { (exit 1); exit 1; }; }
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255   { echo "$as_me: error: pwd does not report name of working directory" >&2
1256    { (exit 1); exit 1; }; }
1257
1258
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261   ac_srcdir_defaulted=yes
1262   # Try the directory containing this script, then the parent directory.
1263   ac_confdir=`$as_dirname -- "$0" ||
1264 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265          X"$0" : 'X\(//\)[^/]' \| \
1266          X"$0" : 'X\(//\)$' \| \
1267          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1268 echo X"$0" |
1269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\/\)[^/].*/{
1274             s//\1/
1275             q
1276           }
1277           /^X\(\/\/\)$/{
1278             s//\1/
1279             q
1280           }
1281           /^X\(\/\).*/{
1282             s//\1/
1283             q
1284           }
1285           s/.*/./; q'`
1286   srcdir=$ac_confdir
1287   if test ! -r "$srcdir/$ac_unique_file"; then
1288     srcdir=..
1289   fi
1290 else
1291   ac_srcdir_defaulted=no
1292 fi
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1296    { (exit 1); exit 1; }; }
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1301    { (exit 1); exit 1; }; }
1302         pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305   srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_env_${ac_var}_value=\$${ac_var}
1316   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324   # Omit some internal or obsolete options to make the list less imposing.
1325   # This message is too long to be a string in the A/UX 3.1 sh.
1326   cat <<_ACEOF
1327 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE.  See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337   -h, --help              display this help and exit
1338       --help=short        display options specific to this package
1339       --help=recursive    display the short help of all the included packages
1340   -V, --version           display version information and exit
1341   -q, --quiet, --silent   do not print \`checking...' messages
1342       --cache-file=FILE   cache test results in FILE [disabled]
1343   -C, --config-cache      alias for \`--cache-file=config.cache'
1344   -n, --no-create         do not create output files
1345       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348   --prefix=PREFIX         install architecture-independent files in PREFIX
1349                           [$ac_default_prefix]
1350   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1351                           [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361   --bindir=DIR           user executables [EPREFIX/bin]
1362   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1363   --libexecdir=DIR       program executables [EPREFIX/libexec]
1364   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1365   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1366   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1367   --libdir=DIR           object code libraries [EPREFIX/lib]
1368   --includedir=DIR       C header files [PREFIX/include]
1369   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1370   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1371   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1372   --infodir=DIR          info documentation [DATAROOTDIR/info]
1373   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1374   --mandir=DIR           man documentation [DATAROOTDIR/man]
1375   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1376   --htmldir=DIR          html documentation [DOCDIR]
1377   --dvidir=DIR           dvi documentation [DOCDIR]
1378   --pdfdir=DIR           pdf documentation [DOCDIR]
1379   --psdir=DIR            ps documentation [DOCDIR]
1380 _ACEOF
1381
1382   cat <<\_ACEOF
1383
1384 System types:
1385   --build=BUILD     configure for building on BUILD [guessed]
1386   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1387   --target=TARGET   configure for building compilers for TARGET [HOST]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392   case $ac_init_help in
1393      short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1394    esac
1395   cat <<\_ACEOF
1396
1397 Optional Features:
1398   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1399   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1400   --enable-polly          Use polly if available (default is YES)
1401   --enable-libcpp         Use libc++ if available (default is NO)
1402   --enable-compiler-version-checks
1403                           Check the version of the host compiler (default is
1404                           YES)
1405   --enable-cxx11          Use c++11 if available (default is YES)
1406   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1407   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1408   --enable-clang-static-analyzer
1409                           Enable building of clang Static Analyzer (default is
1410                           YES)
1411   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1412   --enable-optimized      Compile with optimizations enabled (default is NO)
1413   --enable-profiling      Compile with profiling enabled (default is NO)
1414   --enable-assertions     Compile with assertion checks enabled (default is
1415                           YES)
1416   --enable-werror         Compile with -Werror enabled (default is NO)
1417   --enable-expensive-checks
1418                           Compile with expensive debug checks enabled (default
1419                           is NO)
1420   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1421                           NO)
1422   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1423                           optimization is on and YES if it's off)
1424   --enable-keep-symbols   Do not strip installed executables)
1425   --enable-jit            Enable Just In Time Compiling (default is YES)
1426   --enable-docs           Build documents (default is YES)
1427   --enable-doxygen        Build doxygen documentation (default is NO)
1428   --enable-threads        Use threads if available (default is YES)
1429   --enable-pthreads       Use pthreads if available (default is YES)
1430   --enable-zlib           Use zlib for compression/decompression if available
1431                           (default is YES)
1432   --enable-pic            Build LLVM with Position Independent Code (default
1433                           is YES)
1434   --enable-shared         Build a shared library and link tools against it
1435                           (default is NO)
1436   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1437                           Win32 DLL (default is NO)
1438   --enable-timestamps     Enable embedding timestamp information in build
1439                           (default is YES)
1440   --enable-backtraces     Enable embedding backtraces on crash (default is
1441                           YES)
1442   --enable-crash-overrides
1443                           Enable crash handling overrides (default is YES)
1444   --enable-targets        Build specific host targets: all or
1445                           target1,target2,... Valid targets are: host, x86,
1446                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1447                           xcore, msp430, nvptx, systemz, r600, and cpp
1448                           (default=all)
1449   --enable-experimental-targets
1450                           Build experimental host targets: disable or
1451                           target1,target2,... (default=disable)
1452   --enable-bindings       Build specific language bindings:
1453                           all,auto,none,{binding-name} (default=auto)
1454   --enable-terminfo       Query the terminfo database if available (default is
1455                           YES)
1456   --enable-libedit        Use libedit if available (default is YES)
1457   --enable-libffi         Check for the presence of libffi (default is NO)
1458
1459 Optional Packages:
1460   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462   --with-optimize-option  Select the compiler options to use for optimized
1463                           builds
1464   --with-extra-options    Specify additional options to compile LLVM with
1465   --with-extra-ld-options Specify additional options to link LLVM with
1466   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1467                           is stdlib)
1468   --with-clang-srcdir     Directory to the out-of-tree Clang source
1469   --with-clang-resource-dir
1470                           Relative directory from the Clang binary for
1471                           resource files
1472   --with-c-include-dirs   Colon separated list of directories clang will
1473                           search for headers
1474   --with-gcc-toolchain    Directory where gcc is installed.
1475   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1476   --with-binutils-include Specify path to binutils/include/ containing
1477                           plugin-api.h file for gold plugin.
1478   --with-bug-report-url   Specify the URL where bug reports should be
1479                           submitted (default=http://llvm.org/bugs/)
1480   --with-internal-prefix  Installation directory for internal files
1481   --with-python           path to python
1482   --with-udis86=<path>    Use udis86 external x86 disassembler library
1483   --with-oprofile=<prefix>
1484                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1485   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1486
1487
1488 Some influential environment variables:
1489   CC          C compiler command
1490   CFLAGS      C compiler flags
1491   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1492               nonstandard directory <lib dir>
1493   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494               you have headers in a nonstandard directory <include dir>
1495   CXX         C++ compiler command
1496   CXXFLAGS    C++ compiler flags
1497   CPP         C preprocessor
1498   CXXCPP      C++ preprocessor
1499
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1502
1503 Report bugs to <http://llvm.org/bugs/>.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509   # If there are subdirs, report their specific --help.
1510   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511     test -d "$ac_dir" || continue
1512     ac_builddir=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518   # A ".." for each directory in $ac_dir_suffix.
1519   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520   case $ac_top_builddir_sub in
1521   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523   esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1529
1530 case $srcdir in
1531   .)  # We are building in place.
1532     ac_srcdir=.
1533     ac_top_srcdir=$ac_top_builddir_sub
1534     ac_abs_top_srcdir=$ac_pwd ;;
1535   [\\/]* | ?:[\\/]* )  # Absolute name.
1536     ac_srcdir=$srcdir$ac_dir_suffix;
1537     ac_top_srcdir=$srcdir
1538     ac_abs_top_srcdir=$srcdir ;;
1539   *) # Relative name.
1540     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541     ac_top_srcdir=$ac_top_build_prefix$srcdir
1542     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546     cd "$ac_dir" || { ac_status=$?; continue; }
1547     # Check for guested configure.
1548     if test -f "$ac_srcdir/configure.gnu"; then
1549       echo &&
1550       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551     elif test -f "$ac_srcdir/configure"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure" --help=recursive
1554     else
1555       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556     fi || ac_status=$?
1557     cd "$ac_pwd" || { ac_status=$?; break; }
1558   done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563   cat <<\_ACEOF
1564 LLVM configure 3.5svn
1565 generated by GNU Autoconf 2.60
1566
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571
1572 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1573 _ACEOF
1574   exit
1575 fi
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1579
1580 It was created by LLVM $as_me 3.5svn, which was
1581 generated by GNU Autoconf 2.60.  Invocation command line was
1582
1583   $ $0 $@
1584
1585 _ACEOF
1586 exec 5>>config.log
1587 {
1588 cat <<_ASUNAME
1589 ## --------- ##
1590 ## Platform. ##
1591 ## --------- ##
1592
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1598
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1601
1602 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1603 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1606 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1607 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1608 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1609
1610 _ASUNAME
1611
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1614 do
1615   IFS=$as_save_IFS
1616   test -z "$as_dir" && as_dir=.
1617   echo "PATH: $as_dir"
1618 done
1619 IFS=$as_save_IFS
1620
1621 } >&5
1622
1623 cat >&5 <<_ACEOF
1624
1625
1626 ## ----------- ##
1627 ## Core tests. ##
1628 ## ----------- ##
1629
1630 _ACEOF
1631
1632
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1638 ac_configure_args=
1639 ac_configure_args0=
1640 ac_configure_args1=
1641 ac_must_keep_next=false
1642 for ac_pass in 1 2
1643 do
1644   for ac_arg
1645   do
1646     case $ac_arg in
1647     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649     | -silent | --silent | --silen | --sile | --sil)
1650       continue ;;
1651     *\'*)
1652       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653     esac
1654     case $ac_pass in
1655     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1656     2)
1657       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658       if test $ac_must_keep_next = true; then
1659         ac_must_keep_next=false # Got value, back to normal.
1660       else
1661         case $ac_arg in
1662           *=* | --config-cache | -C | -disable-* | --disable-* \
1663           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665           | -with-* | --with-* | -without-* | --without-* | --x)
1666             case "$ac_configure_args0 " in
1667               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668             esac
1669             ;;
1670           -* ) ac_must_keep_next=true ;;
1671         esac
1672       fi
1673       ac_configure_args="$ac_configure_args '$ac_arg'"
1674       ;;
1675     esac
1676   done
1677 done
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1680
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log.  We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687   # Save into config.log some information that might help in debugging.
1688   {
1689     echo
1690
1691     cat <<\_ASBOX
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1695 _ASBOX
1696     echo
1697     # The following way of writing the cache mishandles newlines in values,
1698 (
1699   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700     eval ac_val=\$$ac_var
1701     case $ac_val in #(
1702     *${as_nl}*)
1703       case $ac_var in #(
1704       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706       esac
1707       case $ac_var in #(
1708       _ | IFS | as_nl) ;; #(
1709       *) $as_unset $ac_var ;;
1710       esac ;;
1711     esac
1712   done
1713   (set) 2>&1 |
1714     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715     *${as_nl}ac_space=\ *)
1716       sed -n \
1717         "s/'\''/'\''\\\\'\'''\''/g;
1718           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719       ;; #(
1720     *)
1721       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1722       ;;
1723     esac |
1724     sort
1725 )
1726     echo
1727
1728     cat <<\_ASBOX
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1732 _ASBOX
1733     echo
1734     for ac_var in $ac_subst_vars
1735     do
1736       eval ac_val=\$$ac_var
1737       case $ac_val in
1738       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739       esac
1740       echo "$ac_var='\''$ac_val'\''"
1741     done | sort
1742     echo
1743
1744     if test -n "$ac_subst_files"; then
1745       cat <<\_ASBOX
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1749 _ASBOX
1750       echo
1751       for ac_var in $ac_subst_files
1752       do
1753         eval ac_val=\$$ac_var
1754         case $ac_val in
1755         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756         esac
1757         echo "$ac_var='\''$ac_val'\''"
1758       done | sort
1759       echo
1760     fi
1761
1762     if test -s confdefs.h; then
1763       cat <<\_ASBOX
1764 ## ----------- ##
1765 ## confdefs.h. ##
1766 ## ----------- ##
1767 _ASBOX
1768       echo
1769       cat confdefs.h
1770       echo
1771     fi
1772     test "$ac_signal" != 0 &&
1773       echo "$as_me: caught signal $ac_signal"
1774     echo "$as_me: exit $exit_status"
1775   } >&5
1776   rm -f core *.core core.conftest.* &&
1777     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778     exit $exit_status
1779 ' 0
1780 for ac_signal in 1 2 13 15; do
1781   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1782 done
1783 ac_signal=0
1784
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1787
1788 # Predefined preprocessor variables.
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1792 _ACEOF
1793
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1797 _ACEOF
1798
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1812 _ACEOF
1813
1814
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818   set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 else
1822   set x "$ac_default_prefix/share/config.site" \
1823         "$ac_default_prefix/etc/config.site"
1824 fi
1825 shift
1826 for ac_site_file
1827 do
1828   if test -r "$ac_site_file"; then
1829     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831     sed 's/^/| /' "$ac_site_file" >&5
1832     . "$ac_site_file"
1833   fi
1834 done
1835
1836 if test -r "$cache_file"; then
1837   # Some versions of bash will fail to source /dev/null (special
1838   # files actually), so we avoid doing that.
1839   if test -f "$cache_file"; then
1840     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1842     case $cache_file in
1843       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844       *)                      . "./$cache_file";;
1845     esac
1846   fi
1847 else
1848   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1850   >$cache_file
1851 fi
1852
1853 # Check that the precious variables saved in the cache have kept the same
1854 # value.
1855 ac_cache_corrupted=false
1856 for ac_var in $ac_precious_vars; do
1857   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858   eval ac_new_set=\$ac_env_${ac_var}_set
1859   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860   eval ac_new_val=\$ac_env_${ac_var}_value
1861   case $ac_old_set,$ac_new_set in
1862     set,)
1863       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865       ac_cache_corrupted=: ;;
1866     ,set)
1867       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869       ac_cache_corrupted=: ;;
1870     ,);;
1871     *)
1872       if test "x$ac_old_val" != "x$ac_new_val"; then
1873         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1876 echo "$as_me:   former value:  $ac_old_val" >&2;}
1877         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1878 echo "$as_me:   current value: $ac_new_val" >&2;}
1879         ac_cache_corrupted=:
1880       fi;;
1881   esac
1882   # Pass precious variables to config.status.
1883   if test "$ac_new_set" = set; then
1884     case $ac_new_val in
1885     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886     *) ac_arg=$ac_var=$ac_new_val ;;
1887     esac
1888     case " $ac_configure_args " in
1889       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1890       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1891     esac
1892   fi
1893 done
1894 if $ac_cache_corrupted; then
1895   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899    { (exit 1); exit 1; }; }
1900 fi
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926 ac_ext=c
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931
1932
1933
1934
1935 cat >>confdefs.h <<\_ACEOF
1936 #define LLVM_VERSION_MAJOR 3
1937 _ACEOF
1938
1939 LLVM_VERSION_MAJOR='3'
1940
1941
1942
1943
1944 cat >>confdefs.h <<\_ACEOF
1945 #define LLVM_VERSION_MINOR 5
1946 _ACEOF
1947
1948 LLVM_VERSION_MINOR='5'
1949
1950
1951
1952 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1953
1954
1955
1956
1957
1958
1959
1960 ac_aux_dir=
1961 for ac_dir in autoconf "$srcdir"/autoconf; do
1962   if test -f "$ac_dir/install-sh"; then
1963     ac_aux_dir=$ac_dir
1964     ac_install_sh="$ac_aux_dir/install-sh -c"
1965     break
1966   elif test -f "$ac_dir/install.sh"; then
1967     ac_aux_dir=$ac_dir
1968     ac_install_sh="$ac_aux_dir/install.sh -c"
1969     break
1970   elif test -f "$ac_dir/shtool"; then
1971     ac_aux_dir=$ac_dir
1972     ac_install_sh="$ac_aux_dir/shtool install -c"
1973     break
1974   fi
1975 done
1976 if test -z "$ac_aux_dir"; then
1977   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1979    { (exit 1); exit 1; }; }
1980 fi
1981
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1989
1990
1991
1992 if test ${srcdir} != "." ; then
1993   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1994     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1995 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1996    { (exit 1); exit 1; }; }
1997   fi
1998 fi
1999
2000 : ${CFLAGS=}
2001 : ${CXXFLAGS=}
2002
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009   for ac_prog in clang gcc
2010   do
2011     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   if test -n "$CC"; then
2019   ac_cv_prog_CC="$CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   for ac_exec_ext in '' $ac_executable_extensions; do
2027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040   { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2042 else
2043   { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047
2048     test -n "$CC" && break
2049   done
2050 fi
2051 if test -z "$CC"; then
2052   ac_ct_CC=$CC
2053   for ac_prog in clang gcc
2054 do
2055   # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   if test -n "$ac_ct_CC"; then
2063   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068   IFS=$as_save_IFS
2069   test -z "$as_dir" && as_dir=.
2070   for ac_exec_ext in '' $ac_executable_extensions; do
2071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2072     ac_cv_prog_ac_ct_CC="$ac_prog"
2073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074     break 2
2075   fi
2076 done
2077 done
2078 IFS=$as_save_IFS
2079
2080 fi
2081 fi
2082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085 echo "${ECHO_T}$ac_ct_CC" >&6; }
2086 else
2087   { echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6; }
2089 fi
2090
2091
2092   test -n "$ac_ct_CC" && break
2093 done
2094
2095   if test "x$ac_ct_CC" = x; then
2096     CC=""
2097   else
2098     case $cross_compiling:$ac_tool_warned in
2099 yes:)
2100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2101 whose name does not start with the host triplet.  If you think this
2102 configuration is useful to you, please write to autoconf@gnu.org." >&5
2103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2104 whose name does not start with the host triplet.  If you think this
2105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2106 ac_tool_warned=yes ;;
2107 esac
2108     CC=$ac_ct_CC
2109   fi
2110 fi
2111
2112
2113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details." >&5
2115 echo "$as_me: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&2;}
2117    { (exit 1); exit 1; }; }
2118
2119 # Provide some information about the compiler.
2120 echo "$as_me:$LINENO: checking for C compiler version" >&5
2121 ac_compiler=`set X $ac_compile; echo $2`
2122 { (ac_try="$ac_compiler --version >&5"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128   (eval "$ac_compiler --version >&5") 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132 { (ac_try="$ac_compiler -v >&5"
2133 case "(($ac_try" in
2134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135   *) ac_try_echo=$ac_try;;
2136 esac
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138   (eval "$ac_compiler -v >&5") 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142 { (ac_try="$ac_compiler -V >&5"
2143 case "(($ac_try" in
2144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145   *) ac_try_echo=$ac_try;;
2146 esac
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148   (eval "$ac_compiler -V >&5") 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); }
2152
2153 cat >conftest.$ac_ext <<_ACEOF
2154 /* confdefs.h.  */
2155 _ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h.  */
2159
2160 int
2161 main ()
2162 {
2163
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 ac_clean_files_save=$ac_clean_files
2169 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170 # Try to create an executable without -o first, disregard a.out.
2171 # It will help us diagnose broken compilers, and finding out an intuition
2172 # of exeext.
2173 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2174 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2176 #
2177 # List of possible output files, starting from the most likely.
2178 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2179 # only as a last resort.  b.out is created by i960 compilers.
2180 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2181 #
2182 # The IRIX 6 linker writes into existing files which may not be
2183 # executable, retaining their permissions.  Remove them first so a
2184 # subsequent execution test works.
2185 ac_rmfiles=
2186 for ac_file in $ac_files
2187 do
2188   case $ac_file in
2189     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2190     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2191   esac
2192 done
2193 rm -f $ac_rmfiles
2194
2195 if { (ac_try="$ac_link_default"
2196 case "(($ac_try" in
2197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198   *) ac_try_echo=$ac_try;;
2199 esac
2200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2201   (eval "$ac_link_default") 2>&5
2202   ac_status=$?
2203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204   (exit $ac_status); }; then
2205   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2207 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2208 # so that the user can short-circuit this test for compilers unknown to
2209 # Autoconf.
2210 for ac_file in $ac_files
2211 do
2212   test -f "$ac_file" || continue
2213   case $ac_file in
2214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2215         ;;
2216     [ab].out )
2217         # We found the default executable, but exeext='' is most
2218         # certainly right.
2219         break;;
2220     *.* )
2221         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2222         then :; else
2223            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224         fi
2225         # We set ac_cv_exeext here because the later test for it is not
2226         # safe: cross compilers may not add the suffix if given an `-o'
2227         # argument, so we may need to know it at that point already.
2228         # Even if this section looks crufty: it has the advantage of
2229         # actually working.
2230         break;;
2231     * )
2232         break;;
2233   esac
2234 done
2235 test "$ac_cv_exeext" = no && ac_cv_exeext=
2236
2237 else
2238   echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2240
2241 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&2;}
2245    { (exit 77); exit 77; }; }
2246 fi
2247
2248 ac_exeext=$ac_cv_exeext
2249 { echo "$as_me:$LINENO: result: $ac_file" >&5
2250 echo "${ECHO_T}$ac_file" >&6; }
2251
2252 # Check that the compiler produces executables we can run.  If not, either
2253 # the compiler is broken, or we cross compile.
2254 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2255 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2256 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2257 # If not cross compiling, check that we can run a simple program.
2258 if test "$cross_compiling" != yes; then
2259   if { ac_try='./$ac_file'
2260   { (case "(($ac_try" in
2261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262   *) ac_try_echo=$ac_try;;
2263 esac
2264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265   (eval "$ac_try") 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; }; then
2269     cross_compiling=no
2270   else
2271     if test "$cross_compiling" = maybe; then
2272         cross_compiling=yes
2273     else
2274         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2275 If you meant to cross compile, use \`--host'.
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot run C compiled programs.
2278 If you meant to cross compile, use \`--host'.
2279 See \`config.log' for more details." >&2;}
2280    { (exit 1); exit 1; }; }
2281     fi
2282   fi
2283 fi
2284 { echo "$as_me:$LINENO: result: yes" >&5
2285 echo "${ECHO_T}yes" >&6; }
2286
2287 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2288 ac_clean_files=$ac_clean_files_save
2289 # Check that the compiler produces executables we can run.  If not, either
2290 # the compiler is broken, or we cross compile.
2291 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2292 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2293 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2294 echo "${ECHO_T}$cross_compiling" >&6; }
2295
2296 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2297 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2298 if { (ac_try="$ac_link"
2299 case "(($ac_try" in
2300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301   *) ac_try_echo=$ac_try;;
2302 esac
2303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2304   (eval "$ac_link") 2>&5
2305   ac_status=$?
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); }; then
2308   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2309 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2310 # work properly (i.e., refer to `conftest.exe'), while it won't with
2311 # `rm'.
2312 for ac_file in conftest.exe conftest conftest.*; do
2313   test -f "$ac_file" || continue
2314   case $ac_file in
2315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2316     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2317           break;;
2318     * ) break;;
2319   esac
2320 done
2321 else
2322   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&2;}
2326    { (exit 1); exit 1; }; }
2327 fi
2328
2329 rm -f conftest$ac_cv_exeext
2330 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2331 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2332
2333 rm -f conftest.$ac_ext
2334 EXEEXT=$ac_cv_exeext
2335 ac_exeext=$EXEEXT
2336 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2337 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2338 if test "${ac_cv_objext+set}" = set; then
2339   echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341   cat >conftest.$ac_ext <<_ACEOF
2342 /* confdefs.h.  */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h.  */
2347
2348 int
2349 main ()
2350 {
2351
2352   ;
2353   return 0;
2354 }
2355 _ACEOF
2356 rm -f conftest.o conftest.obj
2357 if { (ac_try="$ac_compile"
2358 case "(($ac_try" in
2359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360   *) ac_try_echo=$ac_try;;
2361 esac
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363   (eval "$ac_compile") 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }; then
2367   for ac_file in conftest.o conftest.obj conftest.*; do
2368   test -f "$ac_file" || continue;
2369   case $ac_file in
2370     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2371     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2372        break;;
2373   esac
2374 done
2375 else
2376   echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2378
2379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&2;}
2383    { (exit 1); exit 1; }; }
2384 fi
2385
2386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2387 fi
2388 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389 echo "${ECHO_T}$ac_cv_objext" >&6; }
2390 OBJEXT=$ac_cv_objext
2391 ac_objext=$OBJEXT
2392 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2403
2404 int
2405 main ()
2406 {
2407 #ifndef __GNUC__
2408        choke me
2409 #endif
2410
2411   ;
2412   return 0;
2413 }
2414 _ACEOF
2415 rm -f conftest.$ac_objext
2416 if { (ac_try="$ac_compile"
2417 case "(($ac_try" in
2418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419   *) ac_try_echo=$ac_try;;
2420 esac
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422   (eval "$ac_compile") 2>conftest.er1
2423   ac_status=$?
2424   grep -v '^ *+' conftest.er1 >conftest.err
2425   rm -f conftest.er1
2426   cat conftest.err >&5
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); } &&
2429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2430   { (case "(($ac_try" in
2431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432   *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435   (eval "$ac_try") 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; } &&
2439          { ac_try='test -s conftest.$ac_objext'
2440   { (case "(($ac_try" in
2441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442   *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445   (eval "$ac_try") 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; }; then
2449   ac_compiler_gnu=yes
2450 else
2451   echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454         ac_compiler_gnu=no
2455 fi
2456
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2459
2460 fi
2461 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2462 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2463 GCC=`test $ac_compiler_gnu = yes && echo yes`
2464 ac_test_CFLAGS=${CFLAGS+set}
2465 ac_save_CFLAGS=$CFLAGS
2466 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2467 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_cc_g+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471   ac_save_c_werror_flag=$ac_c_werror_flag
2472    ac_c_werror_flag=yes
2473    ac_cv_prog_cc_g=no
2474    CFLAGS="-g"
2475    cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h.  */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h.  */
2481
2482 int
2483 main ()
2484 {
2485
2486   ;
2487   return 0;
2488 }
2489 _ACEOF
2490 rm -f conftest.$ac_objext
2491 if { (ac_try="$ac_compile"
2492 case "(($ac_try" in
2493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494   *) ac_try_echo=$ac_try;;
2495 esac
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497   (eval "$ac_compile") 2>conftest.er1
2498   ac_status=$?
2499   grep -v '^ *+' conftest.er1 >conftest.err
2500   rm -f conftest.er1
2501   cat conftest.err >&5
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); } &&
2504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2505   { (case "(($ac_try" in
2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507   *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510   (eval "$ac_try") 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; } &&
2514          { ac_try='test -s conftest.$ac_objext'
2515   { (case "(($ac_try" in
2516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517   *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520   (eval "$ac_try") 2>&5
2521   ac_status=$?
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); }; }; then
2524   ac_cv_prog_cc_g=yes
2525 else
2526   echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2528
2529         CFLAGS=""
2530       cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h.  */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h.  */
2536
2537 int
2538 main ()
2539 {
2540
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (ac_try="$ac_compile"
2547 case "(($ac_try" in
2548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549   *) ac_try_echo=$ac_try;;
2550 esac
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552   (eval "$ac_compile") 2>conftest.er1
2553   ac_status=$?
2554   grep -v '^ *+' conftest.er1 >conftest.err
2555   rm -f conftest.er1
2556   cat conftest.err >&5
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); } &&
2559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2560   { (case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_try") 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; } &&
2569          { ac_try='test -s conftest.$ac_objext'
2570   { (case "(($ac_try" in
2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572   *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575   (eval "$ac_try") 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); }; }; then
2579   :
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584         ac_c_werror_flag=$ac_save_c_werror_flag
2585          CFLAGS="-g"
2586          cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h.  */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h.  */
2592
2593 int
2594 main ()
2595 {
2596
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2603 case "(($ac_try" in
2604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605   *) ac_try_echo=$ac_try;;
2606 esac
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608   (eval "$ac_compile") 2>conftest.er1
2609   ac_status=$?
2610   grep -v '^ *+' conftest.er1 >conftest.err
2611   rm -f conftest.er1
2612   cat conftest.err >&5
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); } &&
2615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616   { (case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621   (eval "$ac_try") 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; } &&
2625          { ac_try='test -s conftest.$ac_objext'
2626   { (case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631   (eval "$ac_try") 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   ac_cv_prog_cc_g=yes
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640
2641 fi
2642
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 fi
2645
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 fi
2648
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650    ac_c_werror_flag=$ac_save_c_werror_flag
2651 fi
2652 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2654 if test "$ac_test_CFLAGS" = set; then
2655   CFLAGS=$ac_save_CFLAGS
2656 elif test $ac_cv_prog_cc_g = yes; then
2657   if test "$GCC" = yes; then
2658     CFLAGS="-g -O2"
2659   else
2660     CFLAGS="-g"
2661   fi
2662 else
2663   if test "$GCC" = yes; then
2664     CFLAGS="-O2"
2665   else
2666     CFLAGS=
2667   fi
2668 fi
2669 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2670 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_cc_c89+set}" = set; then
2672   echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674   ac_cv_prog_cc_c89=no
2675 ac_save_CC=$CC
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682 #include <stdarg.h>
2683 #include <stdio.h>
2684 #include <sys/types.h>
2685 #include <sys/stat.h>
2686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2687 struct buf { int x; };
2688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2689 static char *e (p, i)
2690      char **p;
2691      int i;
2692 {
2693   return p[i];
2694 }
2695 static char *f (char * (*g) (char **, int), char **p, ...)
2696 {
2697   char *s;
2698   va_list v;
2699   va_start (v,p);
2700   s = g (p, va_arg (v,int));
2701   va_end (v);
2702   return s;
2703 }
2704
2705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2706    function prototypes and stuff, but not '\xHH' hex character constants.
2707    These don't provoke an error unfortunately, instead are silently treated
2708    as 'x'.  The following induces an error, until -std is added to get
2709    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2710    array size at least.  It's necessary to write '\x00'==0 to get something
2711    that's true only with -std.  */
2712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2713
2714 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2715    inside strings and character constants.  */
2716 #define FOO(x) 'x'
2717 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2718
2719 int test (int i, double x);
2720 struct s1 {int (*f) (int a);};
2721 struct s2 {int (*f) (double a);};
2722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2723 int argc;
2724 char **argv;
2725 int
2726 main ()
2727 {
2728 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2729   ;
2730   return 0;
2731 }
2732 _ACEOF
2733 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2734         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2735 do
2736   CC="$ac_save_CC $ac_arg"
2737   rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2739 case "(($ac_try" in
2740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741   *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744   (eval "$ac_compile") 2>conftest.er1
2745   ac_status=$?
2746   grep -v '^ *+' conftest.er1 >conftest.err
2747   rm -f conftest.er1
2748   cat conftest.err >&5
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); } &&
2751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2752   { (case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_try") 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; } &&
2761          { ac_try='test -s conftest.$ac_objext'
2762   { (case "(($ac_try" in
2763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764   *) ac_try_echo=$ac_try;;
2765 esac
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767   (eval "$ac_try") 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }; }; then
2771   ac_cv_prog_cc_c89=$ac_arg
2772 else
2773   echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2775
2776
2777 fi
2778
2779 rm -f core conftest.err conftest.$ac_objext
2780   test "x$ac_cv_prog_cc_c89" != "xno" && break
2781 done
2782 rm -f conftest.$ac_ext
2783 CC=$ac_save_CC
2784
2785 fi
2786 # AC_CACHE_VAL
2787 case "x$ac_cv_prog_cc_c89" in
2788   x)
2789     { echo "$as_me:$LINENO: result: none needed" >&5
2790 echo "${ECHO_T}none needed" >&6; } ;;
2791   xno)
2792     { echo "$as_me:$LINENO: result: unsupported" >&5
2793 echo "${ECHO_T}unsupported" >&6; } ;;
2794   *)
2795     CC="$CC $ac_cv_prog_cc_c89"
2796     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2797 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2798 esac
2799
2800
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806
2807 ac_ext=cpp
2808 ac_cpp='$CXXCPP $CPPFLAGS'
2809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2812 if test -z "$CXX"; then
2813   if test -n "$CCC"; then
2814     CXX=$CCC
2815   else
2816     if test -n "$ac_tool_prefix"; then
2817   for ac_prog in clang++ g++
2818   do
2819     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_CXX+set}" = set; then
2824   echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826   if test -n "$CXX"; then
2827   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832   IFS=$as_save_IFS
2833   test -z "$as_dir" && as_dir=.
2834   for ac_exec_ext in '' $ac_executable_extensions; do
2835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838     break 2
2839   fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 CXX=$ac_cv_prog_CXX
2847 if test -n "$CXX"; then
2848   { echo "$as_me:$LINENO: result: $CXX" >&5
2849 echo "${ECHO_T}$CXX" >&6; }
2850 else
2851   { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2853 fi
2854
2855
2856     test -n "$CXX" && break
2857   done
2858 fi
2859 if test -z "$CXX"; then
2860   ac_ct_CXX=$CXX
2861   for ac_prog in clang++ g++
2862 do
2863   # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy $ac_prog; ac_word=$2
2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2868   echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870   if test -n "$ac_ct_CXX"; then
2871   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876   IFS=$as_save_IFS
2877   test -z "$as_dir" && as_dir=.
2878   for ac_exec_ext in '' $ac_executable_extensions; do
2879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2880     ac_cv_prog_ac_ct_CXX="$ac_prog"
2881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882     break 2
2883   fi
2884 done
2885 done
2886 IFS=$as_save_IFS
2887
2888 fi
2889 fi
2890 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2891 if test -n "$ac_ct_CXX"; then
2892   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2893 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2894 else
2895   { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2897 fi
2898
2899
2900   test -n "$ac_ct_CXX" && break
2901 done
2902
2903   if test "x$ac_ct_CXX" = x; then
2904     CXX="g++"
2905   else
2906     case $cross_compiling:$ac_tool_warned in
2907 yes:)
2908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2909 whose name does not start with the host triplet.  If you think this
2910 configuration is useful to you, please write to autoconf@gnu.org." >&5
2911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2912 whose name does not start with the host triplet.  If you think this
2913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2914 ac_tool_warned=yes ;;
2915 esac
2916     CXX=$ac_ct_CXX
2917   fi
2918 fi
2919
2920   fi
2921 fi
2922 # Provide some information about the compiler.
2923 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2924 ac_compiler=`set X $ac_compile; echo $2`
2925 { (ac_try="$ac_compiler --version >&5"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_compiler --version >&5") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }
2935 { (ac_try="$ac_compiler -v >&5"
2936 case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_compiler -v >&5") 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }
2945 { (ac_try="$ac_compiler -V >&5"
2946 case "(($ac_try" in
2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948   *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951   (eval "$ac_compiler -V >&5") 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }
2955
2956 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2957 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2958 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2959   echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961   cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h.  */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h.  */
2967
2968 int
2969 main ()
2970 {
2971 #ifndef __GNUC__
2972        choke me
2973 #endif
2974
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_compile") 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } &&
2993          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2994   { (case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999   (eval "$ac_try") 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; } &&
3003          { ac_try='test -s conftest.$ac_objext'
3004   { (case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009   (eval "$ac_try") 2>&5
3010   ac_status=$?
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); }; }; then
3013   ac_compiler_gnu=yes
3014 else
3015   echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3017
3018         ac_compiler_gnu=no
3019 fi
3020
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3023
3024 fi
3025 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3026 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3027 GXX=`test $ac_compiler_gnu = yes && echo yes`
3028 ac_test_CXXFLAGS=${CXXFLAGS+set}
3029 ac_save_CXXFLAGS=$CXXFLAGS
3030 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3031 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3032 if test "${ac_cv_prog_cxx_g+set}" = set; then
3033   echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3036    ac_cxx_werror_flag=yes
3037    ac_cv_prog_cxx_g=no
3038    CXXFLAGS="-g"
3039    cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3045
3046 int
3047 main ()
3048 {
3049
3050   ;
3051   return 0;
3052 }
3053 _ACEOF
3054 rm -f conftest.$ac_objext
3055 if { (ac_try="$ac_compile"
3056 case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061   (eval "$ac_compile") 2>conftest.er1
3062   ac_status=$?
3063   grep -v '^ *+' conftest.er1 >conftest.err
3064   rm -f conftest.er1
3065   cat conftest.err >&5
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); } &&
3068          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3069   { (case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_try") 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; } &&
3078          { ac_try='test -s conftest.$ac_objext'
3079   { (case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084   (eval "$ac_try") 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; }; then
3088   ac_cv_prog_cxx_g=yes
3089 else
3090   echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093         CXXFLAGS=""
3094       cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h.  */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h.  */
3100
3101 int
3102 main ()
3103 {
3104
3105   ;
3106   return 0;
3107 }
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3111 case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116   (eval "$ac_compile") 2>conftest.er1
3117   ac_status=$?
3118   grep -v '^ *+' conftest.er1 >conftest.err
3119   rm -f conftest.er1
3120   cat conftest.err >&5
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); } &&
3123          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; } &&
3133          { ac_try='test -s conftest.$ac_objext'
3134   { (case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_try") 2>&5
3140   ac_status=$?
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); }; }; then
3143   :
3144 else
3145   echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3149          CXXFLAGS="-g"
3150          cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h.  */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h.  */
3156
3157 int
3158 main ()
3159 {
3160
3161   ;
3162   return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compile") 2>conftest.er1
3173   ac_status=$?
3174   grep -v '^ *+' conftest.er1 >conftest.err
3175   rm -f conftest.er1
3176   cat conftest.err >&5
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } &&
3179          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; } &&
3189          { ac_try='test -s conftest.$ac_objext'
3190   { (case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_try") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; }; then
3199   ac_cv_prog_cxx_g=yes
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 fi
3209
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 fi
3212
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3215 fi
3216 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3217 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3218 if test "$ac_test_CXXFLAGS" = set; then
3219   CXXFLAGS=$ac_save_CXXFLAGS
3220 elif test $ac_cv_prog_cxx_g = yes; then
3221   if test "$GXX" = yes; then
3222     CXXFLAGS="-g -O2"
3223   else
3224     CXXFLAGS="-g"
3225   fi
3226 else
3227   if test "$GXX" = yes; then
3228     CXXFLAGS="-O2"
3229   else
3230     CXXFLAGS=
3231   fi
3232 fi
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238
3239 ac_ext=c
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3245 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3246 # On Suns, sometimes $CPP names a directory.
3247 if test -n "$CPP" && test -d "$CPP"; then
3248   CPP=
3249 fi
3250 if test -z "$CPP"; then
3251   if test "${ac_cv_prog_CPP+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254       # Double quotes because CPP needs to be expanded
3255     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3256     do
3257       ac_preproc_ok=false
3258 for ac_c_preproc_warn_flag in '' yes
3259 do
3260   # Use a header file that comes with gcc, so configuring glibc
3261   # with a fresh cross-compiler works.
3262   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3263   # <limits.h> exists even on freestanding compilers.
3264   # On the NeXT, cc -E runs the code through the compiler's parser,
3265   # not just through cpp. "Syntax error" is here to catch this case.
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #ifdef __STDC__
3273 # include <limits.h>
3274 #else
3275 # include <assert.h>
3276 #endif
3277                      Syntax error
3278 _ACEOF
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3280 case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286   ac_status=$?
3287   grep -v '^ *+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } >/dev/null; then
3292   if test -s conftest.err; then
3293     ac_cpp_err=$ac_c_preproc_warn_flag
3294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295   else
3296     ac_cpp_err=
3297   fi
3298 else
3299   ac_cpp_err=yes
3300 fi
3301 if test -z "$ac_cpp_err"; then
3302   :
3303 else
3304   echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307   # Broken: fails on valid input.
3308 continue
3309 fi
3310
3311 rm -f conftest.err conftest.$ac_ext
3312
3313   # OK, works on sane cases.  Now check whether nonexistent headers
3314   # can be detected and how.
3315   cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h.  */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h.  */
3321 #include <ac_nonexistent.h>
3322 _ACEOF
3323 if { (ac_try="$ac_cpp conftest.$ac_ext"
3324 case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3330   ac_status=$?
3331   grep -v '^ *+' conftest.er1 >conftest.err
3332   rm -f conftest.er1
3333   cat conftest.err >&5
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); } >/dev/null; then
3336   if test -s conftest.err; then
3337     ac_cpp_err=$ac_c_preproc_warn_flag
3338     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3339   else
3340     ac_cpp_err=
3341   fi
3342 else
3343   ac_cpp_err=yes
3344 fi
3345 if test -z "$ac_cpp_err"; then
3346   # Broken: success on invalid input.
3347 continue
3348 else
3349   echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352   # Passes both tests.
3353 ac_preproc_ok=:
3354 break
3355 fi
3356
3357 rm -f conftest.err conftest.$ac_ext
3358
3359 done
3360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3361 rm -f conftest.err conftest.$ac_ext
3362 if $ac_preproc_ok; then
3363   break
3364 fi
3365
3366     done
3367     ac_cv_prog_CPP=$CPP
3368
3369 fi
3370   CPP=$ac_cv_prog_CPP
3371 else
3372   ac_cv_prog_CPP=$CPP
3373 fi
3374 { echo "$as_me:$LINENO: result: $CPP" >&5
3375 echo "${ECHO_T}$CPP" >&6; }
3376 ac_preproc_ok=false
3377 for ac_c_preproc_warn_flag in '' yes
3378 do
3379   # Use a header file that comes with gcc, so configuring glibc
3380   # with a fresh cross-compiler works.
3381   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3382   # <limits.h> exists even on freestanding compilers.
3383   # On the NeXT, cc -E runs the code through the compiler's parser,
3384   # not just through cpp. "Syntax error" is here to catch this case.
3385   cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391 #ifdef __STDC__
3392 # include <limits.h>
3393 #else
3394 # include <assert.h>
3395 #endif
3396                      Syntax error
3397 _ACEOF
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405   ac_status=$?
3406   grep -v '^ *+' conftest.er1 >conftest.err
3407   rm -f conftest.er1
3408   cat conftest.err >&5
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } >/dev/null; then
3411   if test -s conftest.err; then
3412     ac_cpp_err=$ac_c_preproc_warn_flag
3413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414   else
3415     ac_cpp_err=
3416   fi
3417 else
3418   ac_cpp_err=yes
3419 fi
3420 if test -z "$ac_cpp_err"; then
3421   :
3422 else
3423   echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426   # Broken: fails on valid input.
3427 continue
3428 fi
3429
3430 rm -f conftest.err conftest.$ac_ext
3431
3432   # OK, works on sane cases.  Now check whether nonexistent headers
3433   # can be detected and how.
3434   cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 #include <ac_nonexistent.h>
3441 _ACEOF
3442 if { (ac_try="$ac_cpp conftest.$ac_ext"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3449   ac_status=$?
3450   grep -v '^ *+' conftest.er1 >conftest.err
3451   rm -f conftest.er1
3452   cat conftest.err >&5
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); } >/dev/null; then
3455   if test -s conftest.err; then
3456     ac_cpp_err=$ac_c_preproc_warn_flag
3457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3458   else
3459     ac_cpp_err=
3460   fi
3461 else
3462   ac_cpp_err=yes
3463 fi
3464 if test -z "$ac_cpp_err"; then
3465   # Broken: success on invalid input.
3466 continue
3467 else
3468   echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471   # Passes both tests.
3472 ac_preproc_ok=:
3473 break
3474 fi
3475
3476 rm -f conftest.err conftest.$ac_ext
3477
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3482   :
3483 else
3484   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3485 See \`config.log' for more details." >&5
3486 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&2;}
3488    { (exit 1); exit 1; }; }
3489 fi
3490
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496
3497
3498 if test "$CXX" = "clang++" ; then
3499   { echo "$as_me:$LINENO: checking whether clang works" >&5
3500 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3501   ac_ext=cpp
3502 ac_cpp='$CXXCPP $CPPFLAGS'
3503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3506
3507
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h.  */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h.  */
3514 #include <limits>
3515 #if __has_include (<cxxabi.h>)
3516 #include <cxxabi.h>
3517 #endif
3518 #if __has_include (<unwind.h>)
3519 #include <unwind.h>
3520 #endif
3521
3522 int
3523 main ()
3524 {
3525
3526   ;
3527   return 0;
3528 }
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (ac_try="$ac_compile"
3532 case "(($ac_try" in
3533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534   *) ac_try_echo=$ac_try;;
3535 esac
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537   (eval "$ac_compile") 2>conftest.er1
3538   ac_status=$?
3539   grep -v '^ *+' conftest.er1 >conftest.err
3540   rm -f conftest.er1
3541   cat conftest.err >&5
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); } &&
3544          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3545   { (case "(($ac_try" in
3546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547   *) ac_try_echo=$ac_try;;
3548 esac
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550   (eval "$ac_try") 2>&5
3551   ac_status=$?
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); }; } &&
3554          { ac_try='test -s conftest.$ac_objext'
3555   { (case "(($ac_try" in
3556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557   *) ac_try_echo=$ac_try;;
3558 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560   (eval "$ac_try") 2>&5
3561   ac_status=$?
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); }; }; then
3564
3565   { echo "$as_me:$LINENO: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6; }
3567
3568 else
3569   echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572
3573   { echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6; }
3575   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3576 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3577    { (exit 1); exit 1; }; }
3578
3579 fi
3580
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582   ac_ext=c
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587
3588 fi
3589
3590 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3591 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3592 ac_ext=cpp
3593 ac_cpp='$CXXCPP $CPPFLAGS'
3594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3597
3598 llvm_cv_cxx_compiler=unknown
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h.  */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h.  */
3605 #if ! __clang__
3606                                     #error
3607                                     #endif
3608
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3612 case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617   (eval "$ac_compile") 2>conftest.er1
3618   ac_status=$?
3619   grep -v '^ *+' conftest.er1 >conftest.err
3620   rm -f conftest.er1
3621   cat conftest.err >&5
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); } &&
3624          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3625   { (case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630   (eval "$ac_try") 2>&5
3631   ac_status=$?
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); }; } &&
3634          { ac_try='test -s conftest.$ac_objext'
3635   { (case "(($ac_try" in
3636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637   *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640   (eval "$ac_try") 2>&5
3641   ac_status=$?
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); }; }; then
3644   llvm_cv_cxx_compiler=clang
3645 else
3646   echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649         cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h.  */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h.  */
3655 #if ! __GNUC__
3656                                                        #error
3657                                                        #endif
3658
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3662 case "(($ac_try" in
3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664   *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667   (eval "$ac_compile") 2>conftest.er1
3668   ac_status=$?
3669   grep -v '^ *+' conftest.er1 >conftest.err
3670   rm -f conftest.er1
3671   cat conftest.err >&5
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); } &&
3674          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3675   { (case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680   (eval "$ac_try") 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); }; } &&
3684          { ac_try='test -s conftest.$ac_objext'
3685   { (case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690   (eval "$ac_try") 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; }; then
3694   llvm_cv_cxx_compiler=gcc
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699
3700 fi
3701
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 fi
3704
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 ac_ext=c
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711
3712 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3713 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3714
3715
3716
3717 if test -d ${srcdir}/projects/test-suite ; then
3718   subdirs="$subdirs projects/test-suite"
3719
3720 fi
3721
3722 if test -d ${srcdir}/projects/llvm-test ; then
3723   subdirs="$subdirs projects/llvm-test"
3724
3725 fi
3726
3727 if test -d ${srcdir}/projects/poolalloc ; then
3728   subdirs="$subdirs projects/poolalloc"
3729
3730 fi
3731
3732 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3733   subdirs="$subdirs projects/llvm-poolalloc"
3734
3735 fi
3736
3737 for i in `ls ${srcdir}/projects`
3738 do
3739   if test -d ${srcdir}/projects/${i} ; then
3740     case ${i} in
3741       sample)       subdirs="$subdirs projects/sample"
3742     ;;
3743       safecode)     subdirs="$subdirs projects/safecode"
3744  ;;
3745       compiler-rt)       ;;
3746       test-suite)     ;;
3747       llvm-test)      ;;
3748       poolalloc)      ;;
3749       llvm-poolalloc) ;;
3750       *)
3751         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3752 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3753         ;;
3754     esac
3755   fi
3756 done
3757
3758 # Check whether --enable-polly was given.
3759 if test "${enable_polly+set}" = set; then
3760   enableval=$enable_polly;
3761 else
3762   enableval=default
3763 fi
3764
3765 case "$enableval" in
3766   yes) ENABLE_POLLY=1
3767  ;;
3768   no)  ENABLE_POLLY=0
3769  ;;
3770   default) ENABLE_POLLY=1
3771  ;;
3772   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3773 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3774    { (exit 1); exit 1; }; } ;;
3775 esac
3776
3777
3778 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3779   LLVM_HAS_POLLY=1
3780
3781   subdirs="$subdirs tools/polly"
3782
3783 fi
3784
3785
3786 # Make sure we can run config.sub.
3787 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3788   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3789 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3790    { (exit 1); exit 1; }; }
3791
3792 { echo "$as_me:$LINENO: checking build system type" >&5
3793 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3794 if test "${ac_cv_build+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   ac_build_alias=$build_alias
3798 test "x$ac_build_alias" = x &&
3799   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3800 test "x$ac_build_alias" = x &&
3801   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3802 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3803    { (exit 1); exit 1; }; }
3804 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3805   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3806 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3807    { (exit 1); exit 1; }; }
3808
3809 fi
3810 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3811 echo "${ECHO_T}$ac_cv_build" >&6; }
3812 case $ac_cv_build in
3813 *-*-*) ;;
3814 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3815 echo "$as_me: error: invalid value of canonical build" >&2;}
3816    { (exit 1); exit 1; }; };;
3817 esac
3818 build=$ac_cv_build
3819 ac_save_IFS=$IFS; IFS='-'
3820 set x $ac_cv_build
3821 shift
3822 build_cpu=$1
3823 build_vendor=$2
3824 shift; shift
3825 # Remember, the first character of IFS is used to create $*,
3826 # except with old shells:
3827 build_os=$*
3828 IFS=$ac_save_IFS
3829 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3830
3831
3832 { echo "$as_me:$LINENO: checking host system type" >&5
3833 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3834 if test "${ac_cv_host+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837   if test "x$host_alias" = x; then
3838   ac_cv_host=$ac_cv_build
3839 else
3840   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3841     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3842 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3843    { (exit 1); exit 1; }; }
3844 fi
3845
3846 fi
3847 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3848 echo "${ECHO_T}$ac_cv_host" >&6; }
3849 case $ac_cv_host in
3850 *-*-*) ;;
3851 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3852 echo "$as_me: error: invalid value of canonical host" >&2;}
3853    { (exit 1); exit 1; }; };;
3854 esac
3855 host=$ac_cv_host
3856 ac_save_IFS=$IFS; IFS='-'
3857 set x $ac_cv_host
3858 shift
3859 host_cpu=$1
3860 host_vendor=$2
3861 shift; shift
3862 # Remember, the first character of IFS is used to create $*,
3863 # except with old shells:
3864 host_os=$*
3865 IFS=$ac_save_IFS
3866 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3867
3868
3869 { echo "$as_me:$LINENO: checking target system type" >&5
3870 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3871 if test "${ac_cv_target+set}" = set; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   if test "x$target_alias" = x; then
3875   ac_cv_target=$ac_cv_host
3876 else
3877   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3878     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3879 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3880    { (exit 1); exit 1; }; }
3881 fi
3882
3883 fi
3884 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3885 echo "${ECHO_T}$ac_cv_target" >&6; }
3886 case $ac_cv_target in
3887 *-*-*) ;;
3888 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3889 echo "$as_me: error: invalid value of canonical target" >&2;}
3890    { (exit 1); exit 1; }; };;
3891 esac
3892 target=$ac_cv_target
3893 ac_save_IFS=$IFS; IFS='-'
3894 set x $ac_cv_target
3895 shift
3896 target_cpu=$1
3897 target_vendor=$2
3898 shift; shift
3899 # Remember, the first character of IFS is used to create $*,
3900 # except with old shells:
3901 target_os=$*
3902 IFS=$ac_save_IFS
3903 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3904
3905
3906 # The aliases save the names the user supplied, while $host etc.
3907 # will get canonicalized.
3908 test -n "$target_alias" &&
3909   test "$program_prefix$program_suffix$program_transform_name" = \
3910     NONENONEs,x,x, &&
3911   program_prefix=${target_alias}-
3912
3913 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3914 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3915 if test "${llvm_cv_os_type+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   case $host in
3919   *-*-aix*)
3920     llvm_cv_link_all_option="-Wl,--whole-archive"
3921     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3922     llvm_cv_os_type="AIX"
3923     llvm_cv_platform_type="Unix" ;;
3924   *-*-irix*)
3925     llvm_cv_link_all_option="-Wl,--whole-archive"
3926     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3927     llvm_cv_os_type="IRIX"
3928     llvm_cv_platform_type="Unix" ;;
3929   *-*-cygwin*)
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="Cygwin"
3933     llvm_cv_platform_type="Unix" ;;
3934   *-*-darwin*)
3935     llvm_cv_link_all_option="-Wl,-all_load"
3936     llvm_cv_no_link_all_option="-Wl,-noall_load"
3937     llvm_cv_os_type="Darwin"
3938     llvm_cv_platform_type="Unix" ;;
3939   *-*-minix*)
3940     llvm_cv_link_all_option="-Wl,-all_load"
3941     llvm_cv_no_link_all_option="-Wl,-noall_load"
3942     llvm_cv_os_type="Minix"
3943     llvm_cv_platform_type="Unix" ;;
3944   *-*-freebsd*)
3945     llvm_cv_link_all_option="-Wl,--whole-archive"
3946     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3947     llvm_cv_os_type="FreeBSD"
3948     llvm_cv_platform_type="Unix" ;;
3949   *-*-kfreebsd-gnu)
3950     llvm_cv_link_all_option="-Wl,--whole-archive"
3951     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952     llvm_cv_os_type="GNU/kFreeBSD"
3953     llvm_cv_platform_type="Unix" ;;
3954   *-*-openbsd*)
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="OpenBSD"
3958     llvm_cv_platform_type="Unix" ;;
3959   *-*-netbsd*)
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="NetBSD"
3963     llvm_cv_platform_type="Unix" ;;
3964   *-*-dragonfly*)
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="DragonFly"
3968     llvm_cv_platform_type="Unix" ;;
3969   *-*-hpux*)
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="HP-UX"
3973     llvm_cv_platform_type="Unix" ;;
3974   *-*-interix*)
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="Interix"
3978     llvm_cv_platform_type="Unix" ;;
3979   *-*-linux*)
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="Linux"
3983     llvm_cv_platform_type="Unix" ;;
3984   *-*-gnu*)
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="GNU"
3988     llvm_cv_platform_type="Unix" ;;
3989   *-*-solaris*)
3990     llvm_cv_link_all_option="-Wl,-z,allextract"
3991     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3992     llvm_cv_os_type="SunOS"
3993     llvm_cv_platform_type="Unix" ;;
3994   *-*-auroraux*)
3995     llvm_cv_link_all_option="-Wl,-z,allextract"
3996     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3997     llvm_cv_os_type="AuroraUX"
3998     llvm_cv_platform_type="Unix" ;;
3999   *-*-win32*)
4000     llvm_cv_link_all_option="-Wl,--whole-archive"
4001     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002     llvm_cv_os_type="Win32"
4003     llvm_cv_platform_type="Win32" ;;
4004   *-*-mingw*)
4005     llvm_cv_link_all_option="-Wl,--whole-archive"
4006     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007     llvm_cv_os_type="MingW"
4008     llvm_cv_platform_type="Win32" ;;
4009   *-*-haiku*)
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="Haiku"
4013     llvm_cv_platform_type="Unix" ;;
4014   *-unknown-eabi*)
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="Freestanding"
4018     llvm_cv_platform_type="Unix" ;;
4019   *-unknown-elf*)
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="Freestanding"
4023     llvm_cv_platform_type="Unix" ;;
4024   *)
4025     llvm_cv_link_all_option=""
4026     llvm_cv_no_link_all_option=""
4027     llvm_cv_os_type="Unknown"
4028     llvm_cv_platform_type="Unknown" ;;
4029 esac
4030 fi
4031 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4032 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4033
4034 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4035 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4036 if test "${llvm_cv_target_os_type+set}" = set; then
4037   echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039   case $target in
4040   *-*-aix*)
4041     llvm_cv_target_os_type="AIX" ;;
4042   *-*-irix*)
4043     llvm_cv_target_os_type="IRIX" ;;
4044   *-*-cygwin*)
4045     llvm_cv_target_os_type="Cygwin" ;;
4046   *-*-darwin*)
4047     llvm_cv_target_os_type="Darwin" ;;
4048   *-*-minix*)
4049     llvm_cv_target_os_type="Minix" ;;
4050   *-*-freebsd*)
4051     llvm_cv_target_os_type="FreeBSD" ;;
4052   *-*-kfreebsd-gnu)
4053     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4054   *-*-openbsd*)
4055     llvm_cv_target_os_type="OpenBSD" ;;
4056   *-*-netbsd*)
4057     llvm_cv_target_os_type="NetBSD" ;;
4058   *-*-dragonfly*)
4059     llvm_cv_target_os_type="DragonFly" ;;
4060   *-*-hpux*)
4061     llvm_cv_target_os_type="HP-UX" ;;
4062   *-*-interix*)
4063     llvm_cv_target_os_type="Interix" ;;
4064   *-*-linux*)
4065     llvm_cv_target_os_type="Linux" ;;
4066   *-*-gnu*)
4067     llvm_cv_target_os_type="GNU" ;;
4068   *-*-solaris*)
4069     llvm_cv_target_os_type="SunOS" ;;
4070   *-*-auroraux*)
4071     llvm_cv_target_os_type="AuroraUX" ;;
4072   *-*-win32*)
4073     llvm_cv_target_os_type="Win32" ;;
4074   *-*-mingw*)
4075     llvm_cv_target_os_type="MingW" ;;
4076   *-*-haiku*)
4077     llvm_cv_target_os_type="Haiku" ;;
4078   *-*-rtems*)
4079     llvm_cv_target_os_type="RTEMS" ;;
4080   *-*-nacl*)
4081     llvm_cv_target_os_type="NativeClient" ;;
4082   *-unknown-eabi*)
4083     llvm_cv_target_os_type="Freestanding" ;;
4084   *)
4085     llvm_cv_target_os_type="Unknown" ;;
4086 esac
4087 fi
4088 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4089 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4090
4091 if test "$llvm_cv_os_type" = "Unknown" ; then
4092   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4093 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4094    { (exit 1); exit 1; }; }
4095 fi
4096
4097 OS=$llvm_cv_os_type
4098
4099 HOST_OS=$llvm_cv_os_type
4100
4101 TARGET_OS=$llvm_cv_target_os_type
4102
4103
4104 LINKALL=$llvm_cv_link_all_option
4105
4106 NOLINKALL=$llvm_cv_no_link_all_option
4107
4108
4109 case $llvm_cv_platform_type in
4110   Unix)
4111
4112 cat >>confdefs.h <<\_ACEOF
4113 #define LLVM_ON_UNIX 1
4114 _ACEOF
4115
4116     LLVM_ON_UNIX=1
4117
4118     LLVM_ON_WIN32=0
4119
4120     ;;
4121   Win32)
4122
4123 cat >>confdefs.h <<\_ACEOF
4124 #define LLVM_ON_WIN32 1
4125 _ACEOF
4126
4127     LLVM_ON_UNIX=0
4128
4129     LLVM_ON_WIN32=1
4130
4131     ;;
4132 esac
4133
4134 { echo "$as_me:$LINENO: checking target architecture" >&5
4135 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4136 if test "${llvm_cv_target_arch+set}" = set; then
4137   echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139   case $target in
4140   i?86-*)                 llvm_cv_target_arch="x86" ;;
4141   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4142   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4143   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4144   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4145   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4146   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4147   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4148   xcore-*)                llvm_cv_target_arch="XCore" ;;
4149   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4150   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4151   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4152   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4153   *)                      llvm_cv_target_arch="Unknown" ;;
4154 esac
4155 fi
4156 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4157 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4158
4159 if test "$llvm_cv_target_arch" = "Unknown" ; then
4160   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4161 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4162 fi
4163
4164 case "$llvm_cv_target_arch" in
4165     x86)     LLVM_NATIVE_ARCH="X86" ;;
4166     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4167     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4168 esac
4169
4170 ARCH=$llvm_cv_target_arch
4171
4172 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4173
4174
4175 case $host in
4176   i?86-*)                 host_arch="x86" ;;
4177   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4178   sparc*-*)               host_arch="Sparc" ;;
4179   powerpc*-*)             host_arch="PowerPC" ;;
4180   arm*-*)                 host_arch="ARM" ;;
4181   aarch64*-*)             host_arch="AArch64" ;;
4182   mips-* | mips64-*)      host_arch="Mips" ;;
4183   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4184   xcore-*)                host_arch="XCore" ;;
4185   msp430-*)               host_arch="MSP430" ;;
4186   hexagon-*)              host_arch="Hexagon" ;;
4187   s390x-*)                host_arch="SystemZ" ;;
4188   *)                      host_arch="Unknown" ;;
4189 esac
4190
4191 if test "$host_arch" = "Unknown" ; then
4192   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4193 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4194 fi
4195
4196 HOST_ARCH=$host_arch
4197
4198
4199 if test "$cross_compiling" = yes; then
4200   LLVM_CROSS_COMPILING=1
4201
4202
4203 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4204 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4205 if test "${ac_cv_build_exeext+set}" = set; then
4206   echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4209   ac_cv_build_exeext=.exe
4210 else
4211   ac_build_prefix=${build_alias}-
4212
4213   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4214 set dummy ${ac_build_prefix}gcc; ac_word=$2
4215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4217 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4218   echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220   if test -n "$BUILD_CC"; then
4221   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226   IFS=$as_save_IFS
4227   test -z "$as_dir" && as_dir=.
4228   for ac_exec_ext in '' $ac_executable_extensions; do
4229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4230     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232     break 2
4233   fi
4234 done
4235 done
4236 IFS=$as_save_IFS
4237
4238 fi
4239 fi
4240 BUILD_CC=$ac_cv_prog_BUILD_CC
4241 if test -n "$BUILD_CC"; then
4242   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4243 echo "${ECHO_T}$BUILD_CC" >&6; }
4244 else
4245   { echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6; }
4247 fi
4248
4249
4250   if test -z "$BUILD_CC"; then
4251      # Extract the first word of "gcc", so it can be a program name with args.
4252 set dummy gcc; ac_word=$2
4253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4256   echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258   if test -n "$BUILD_CC"; then
4259   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264   IFS=$as_save_IFS
4265   test -z "$as_dir" && as_dir=.
4266   for ac_exec_ext in '' $ac_executable_extensions; do
4267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4268     ac_cv_prog_BUILD_CC="gcc"
4269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270     break 2
4271   fi
4272 done
4273 done
4274 IFS=$as_save_IFS
4275
4276 fi
4277 fi
4278 BUILD_CC=$ac_cv_prog_BUILD_CC
4279 if test -n "$BUILD_CC"; then
4280   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4281 echo "${ECHO_T}$BUILD_CC" >&6; }
4282 else
4283   { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4285 fi
4286
4287
4288      if test -z "$BUILD_CC"; then
4289        # Extract the first word of "cc", so it can be a program name with args.
4290 set dummy cc; ac_word=$2
4291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4293 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   if test -n "$BUILD_CC"; then
4297   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4298 else
4299   ac_prog_rejected=no
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH
4302 do
4303   IFS=$as_save_IFS
4304   test -z "$as_dir" && as_dir=.
4305   for ac_exec_ext in '' $ac_executable_extensions; do
4306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4307     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4308        ac_prog_rejected=yes
4309        continue
4310      fi
4311     ac_cv_prog_BUILD_CC="cc"
4312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316 done
4317 IFS=$as_save_IFS
4318
4319 if test $ac_prog_rejected = yes; then
4320   # We found a bogon in the path, so make sure we never use it.
4321   set dummy $ac_cv_prog_BUILD_CC
4322   shift
4323   if test $# != 0; then
4324     # We chose a different compiler from the bogus one.
4325     # However, it has the same basename, so the bogon will be chosen
4326     # first if we set BUILD_CC to just the basename; use the full file name.
4327     shift
4328     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4329   fi
4330 fi
4331 fi
4332 fi
4333 BUILD_CC=$ac_cv_prog_BUILD_CC
4334 if test -n "$BUILD_CC"; then
4335   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4336 echo "${ECHO_T}$BUILD_CC" >&6; }
4337 else
4338   { echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6; }
4340 fi
4341
4342
4343      fi
4344   fi
4345   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4346 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4347    { (exit 1); exit 1; }; }
4348   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4349   rm -f conftest*
4350   echo 'int main () { return 0; }' > conftest.$ac_ext
4351   ac_cv_build_exeext=
4352   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4353   (eval $ac_build_link) 2>&5
4354   ac_status=$?
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); }; then
4357     for file in conftest.*; do
4358       case $file in
4359       *.c | *.o | *.obj | *.dSYM) ;;
4360       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4361       esac
4362     done
4363   else
4364     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4365 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4366    { (exit 1); exit 1; }; }
4367   fi
4368   rm -f conftest*
4369   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4370 fi
4371 fi
4372
4373 BUILD_EXEEXT=""
4374 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4375 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4376 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4377 ac_build_exeext=$BUILD_EXEEXT
4378
4379   ac_build_prefix=${build_alias}-
4380   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4381 set dummy ${ac_build_prefix}g++; ac_word=$2
4382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4384 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4385   echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387   if test -n "$BUILD_CXX"; then
4388   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393   IFS=$as_save_IFS
4394   test -z "$as_dir" && as_dir=.
4395   for ac_exec_ext in '' $ac_executable_extensions; do
4396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4397     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399     break 2
4400   fi
4401 done
4402 done
4403 IFS=$as_save_IFS
4404
4405 fi
4406 fi
4407 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4408 if test -n "$BUILD_CXX"; then
4409   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4410 echo "${ECHO_T}$BUILD_CXX" >&6; }
4411 else
4412   { echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6; }
4414 fi
4415
4416
4417   if test -z "$BUILD_CXX"; then
4418      # Extract the first word of "g++", so it can be a program name with args.
4419 set dummy g++; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   if test -n "$BUILD_CXX"; then
4426   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4430 do
4431   IFS=$as_save_IFS
4432   test -z "$as_dir" && as_dir=.
4433   for ac_exec_ext in '' $ac_executable_extensions; do
4434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4435     ac_cv_prog_BUILD_CXX="g++"
4436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437     break 2
4438   fi
4439 done
4440 done
4441 IFS=$as_save_IFS
4442
4443 fi
4444 fi
4445 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4446 if test -n "$BUILD_CXX"; then
4447   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4448 echo "${ECHO_T}$BUILD_CXX" >&6; }
4449 else
4450   { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4452 fi
4453
4454
4455      if test -z "$BUILD_CXX"; then
4456        # Extract the first word of "c++", so it can be a program name with args.
4457 set dummy c++; ac_word=$2
4458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4460 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4461   echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463   if test -n "$BUILD_CXX"; then
4464   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4465 else
4466   ac_prog_rejected=no
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472   for ac_exec_ext in '' $ac_executable_extensions; do
4473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4474     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4475        ac_prog_rejected=yes
4476        continue
4477      fi
4478     ac_cv_prog_BUILD_CXX="c++"
4479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480     break 2
4481   fi
4482 done
4483 done
4484 IFS=$as_save_IFS
4485
4486 if test $ac_prog_rejected = yes; then
4487   # We found a bogon in the path, so make sure we never use it.
4488   set dummy $ac_cv_prog_BUILD_CXX
4489   shift
4490   if test $# != 0; then
4491     # We chose a different compiler from the bogus one.
4492     # However, it has the same basename, so the bogon will be chosen
4493     # first if we set BUILD_CXX to just the basename; use the full file name.
4494     shift
4495     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4496   fi
4497 fi
4498 fi
4499 fi
4500 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4501 if test -n "$BUILD_CXX"; then
4502   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4503 echo "${ECHO_T}$BUILD_CXX" >&6; }
4504 else
4505   { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4507 fi
4508
4509
4510      fi
4511   fi
4512 else
4513   LLVM_CROSS_COMPILING=0
4514
4515 fi
4516
4517 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4518   cvsbuild="yes"
4519   optimize="no"
4520   CVSBUILD=CVSBUILD=1
4521
4522 else
4523   cvsbuild="no"
4524   optimize="yes"
4525 fi
4526
4527
4528 # Check whether --enable-libcpp was given.
4529 if test "${enable_libcpp+set}" = set; then
4530   enableval=$enable_libcpp;
4531 else
4532   enableval=default
4533 fi
4534
4535 case "$enableval" in
4536   yes) ENABLE_LIBCPP=1
4537  ;;
4538   no)  ENABLE_LIBCPP=0
4539  ;;
4540   default) ENABLE_LIBCPP=0
4541 ;;
4542   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4543 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4544    { (exit 1); exit 1; }; } ;;
4545 esac
4546
4547 # Check whether --enable-compiler-version-checks was given.
4548 if test "${enable_compiler_version_checks+set}" = set; then
4549   enableval=$enable_compiler_version_checks;
4550 else
4551   enableval=default
4552 fi
4553
4554 case "$enableval" in
4555   no)
4556     ;;
4557   yes|default)
4558     ac_ext=cpp
4559 ac_cpp='$CXXCPP $CPPFLAGS'
4560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4563
4564     case "$llvm_cv_cxx_compiler" in
4565     clang)
4566       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4567 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4568       cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h.  */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h.  */
4574
4575 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4576 #error This version of Clang is too old to build LLVM
4577 #endif
4578
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (ac_try="$ac_compile"
4582 case "(($ac_try" in
4583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584   *) ac_try_echo=$ac_try;;
4585 esac
4586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587   (eval "$ac_compile") 2>conftest.er1
4588   ac_status=$?
4589   grep -v '^ *+' conftest.er1 >conftest.err
4590   rm -f conftest.er1
4591   cat conftest.err >&5
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); } &&
4594          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4595   { (case "(($ac_try" in
4596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597   *) ac_try_echo=$ac_try;;
4598 esac
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600   (eval "$ac_try") 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; } &&
4604          { ac_try='test -s conftest.$ac_objext'
4605   { (case "(($ac_try" in
4606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607   *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610   (eval "$ac_try") 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); }; }; then
4614   { echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6; }
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620         { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4622            { { echo "$as_me:$LINENO: error:
4623 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4624 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4625 bypass these sanity checks." >&5
4626 echo "$as_me: error:
4627 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4628 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4629 bypass these sanity checks." >&2;}
4630    { (exit 1); exit 1; }; }
4631 fi
4632
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634
4635                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4636         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4637 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4638         llvm_cv_old_cxxflags="$CXXFLAGS"
4639         CXXFLAGS="$CXXFLAGS -std=c++0x"
4640         cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h.  */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h.  */
4646
4647 #include <atomic>
4648 std::atomic<float> x(0.0f);
4649 int main() { return (float)x; }
4650
4651 _ACEOF
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (ac_try="$ac_link"
4654 case "(($ac_try" in
4655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656   *) ac_try_echo=$ac_try;;
4657 esac
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659   (eval "$ac_link") 2>conftest.er1
4660   ac_status=$?
4661   grep -v '^ *+' conftest.er1 >conftest.err
4662   rm -f conftest.er1
4663   cat conftest.err >&5
4664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); } &&
4666          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4667   { (case "(($ac_try" in
4668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669   *) ac_try_echo=$ac_try;;
4670 esac
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672   (eval "$ac_try") 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; } &&
4676          { ac_try='test -s conftest$ac_exeext'
4677   { (case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682   (eval "$ac_try") 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; }; then
4686   { echo "$as_me:$LINENO: result: yes" >&5
4687 echo "${ECHO_T}yes" >&6; }
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692         { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4694              { { echo "$as_me:$LINENO: error:
4695 We detected a missing feature in the standard C++ library that was known to be
4696 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4697 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4698 than 4.7. You will need to update your system and ensure Clang uses the newer
4699 standard library.
4700
4701 If this error is incorrect or you need to force things to work, you may pass
4702 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4703 echo "$as_me: error:
4704 We detected a missing feature in the standard C++ library that was known to be
4705 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4706 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4707 than 4.7. You will need to update your system and ensure Clang uses the newer
4708 standard library.
4709
4710 If this error is incorrect or you need to force things to work, you may pass
4711 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4712    { (exit 1); exit 1; }; }
4713 fi
4714
4715 rm -f core conftest.err conftest.$ac_objext \
4716       conftest$ac_exeext conftest.$ac_ext
4717         CXXFLAGS="$llvm_cv_old_cxxflags"
4718       fi
4719       ;;
4720     gcc)
4721       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4722 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4723       cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h.  */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h.  */
4729
4730 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4731 #error This version of GCC is too old to build LLVM
4732 #endif
4733
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4737 case "(($ac_try" in
4738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739   *) ac_try_echo=$ac_try;;
4740 esac
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742   (eval "$ac_compile") 2>conftest.er1
4743   ac_status=$?
4744   grep -v '^ *+' conftest.er1 >conftest.err
4745   rm -f conftest.er1
4746   cat conftest.err >&5
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); } &&
4749          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4750   { (case "(($ac_try" in
4751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752   *) ac_try_echo=$ac_try;;
4753 esac
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755   (eval "$ac_try") 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; } &&
4759          { ac_try='test -s conftest.$ac_objext'
4760   { (case "(($ac_try" in
4761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762   *) ac_try_echo=$ac_try;;
4763 esac
4764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765   (eval "$ac_try") 2>&5
4766   ac_status=$?
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); }; }; then
4769   { echo "$as_me:$LINENO: result: yes" >&5
4770 echo "${ECHO_T}yes" >&6; }
4771 else
4772   echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4774
4775         { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4777            { { echo "$as_me:$LINENO: error:
4778 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4779 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4780 bypass these sanity checks." >&5
4781 echo "$as_me: error:
4782 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4783 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4784 bypass these sanity checks." >&2;}
4785    { (exit 1); exit 1; }; }
4786 fi
4787
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789       ;;
4790     unknown)
4791       ;;
4792     esac
4793     ac_ext=c
4794 ac_cpp='$CPP $CPPFLAGS'
4795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798
4799     ;;
4800   *)
4801     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4802 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4803    { (exit 1); exit 1; }; }
4804     ;;
4805 esac
4806
4807 # Check whether --enable-cxx11 was given.
4808 if test "${enable_cxx11+set}" = set; then
4809   enableval=$enable_cxx11;
4810 else
4811   enableval=default
4812 fi
4813
4814 case "$enableval" in
4815   yes) ENABLE_CXX11=1
4816  ;;
4817   no)  ENABLE_CXX11=0
4818  ;;
4819   default) ENABLE_CXX11=1
4820 ;;
4821   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4822 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4823    { (exit 1); exit 1; }; } ;;
4824 esac
4825
4826 # Check whether --enable-split-dwarf was given.
4827 if test "${enable_split_dwarf+set}" = set; then
4828   enableval=$enable_split_dwarf;
4829 else
4830   enableval=default
4831 fi
4832
4833 case "$enableval" in
4834   yes) ENABLE_SPLIT_DWARF=1
4835  ;;
4836   no)  ENABLE_SPLIT_DWARF=0
4837  ;;
4838   default) ENABLE_SPLIT_DWARF=0
4839 ;;
4840   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4841 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4842    { (exit 1); exit 1; }; } ;;
4843 esac
4844
4845 clang_arcmt="yes"
4846 # Check whether --enable-clang-arcmt was given.
4847 if test "${enable_clang_arcmt+set}" = set; then
4848   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4849 else
4850   enableval="yes"
4851 fi
4852
4853 case "$enableval" in
4854   yes) ENABLE_CLANG_ARCMT=1
4855  ;;
4856   no)  ENABLE_CLANG_ARCMT=0
4857  ;;
4858   default) ENABLE_CLANG_ARCMT=1
4859 ;;
4860   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4861 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4862    { (exit 1); exit 1; }; } ;;
4863 esac
4864
4865 clang_static_analyzer="yes"
4866 # Check whether --enable-clang-static-analyzer was given.
4867 if test "${enable_clang_static_analyzer+set}" = set; then
4868   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4869 else
4870   enableval="yes"
4871 fi
4872
4873 case "$enableval" in
4874   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4875  ;;
4876   no)
4877     if test ${clang_arcmt} != "no" ; then
4878       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4879 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4880    { (exit 1); exit 1; }; }
4881     fi
4882     ENABLE_CLANG_STATIC_ANALYZER=0
4883
4884     ;;
4885   default) ENABLE_CLANG_STATIC_ANALYZER=1
4886 ;;
4887   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4888 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4889    { (exit 1); exit 1; }; } ;;
4890 esac
4891
4892 # Check whether --enable-clang-rewriter was given.
4893 if test "${enable_clang_rewriter+set}" = set; then
4894   enableval=$enable_clang_rewriter;
4895 else
4896   enableval="yes"
4897 fi
4898
4899 case "$enableval" in
4900   yes) ENABLE_CLANG_REWRITER=1
4901  ;;
4902   no)
4903     if test ${clang_arcmt} != "no" ; then
4904       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4905 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4906    { (exit 1); exit 1; }; }
4907     fi
4908     if test ${clang_static_analyzer} != "no" ; then
4909       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4910 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4911    { (exit 1); exit 1; }; }
4912     fi
4913     ENABLE_CLANG_REWRITER=0
4914
4915     ;;
4916   default) ENABLE_CLANG_REWRITER=1
4917 ;;
4918   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4920    { (exit 1); exit 1; }; } ;;
4921 esac
4922
4923 # Check whether --enable-optimized was given.
4924 if test "${enable_optimized+set}" = set; then
4925   enableval=$enable_optimized;
4926 else
4927   enableval=$optimize
4928 fi
4929
4930 if test ${enableval} = "no" ; then
4931   ENABLE_OPTIMIZED=
4932
4933 else
4934   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4935
4936 fi
4937
4938 # Check whether --enable-profiling was given.
4939 if test "${enable_profiling+set}" = set; then
4940   enableval=$enable_profiling;
4941 else
4942   enableval="no"
4943 fi
4944
4945 if test ${enableval} = "no" ; then
4946   ENABLE_PROFILING=
4947
4948 else
4949   ENABLE_PROFILING=ENABLE_PROFILING=1
4950
4951 fi
4952
4953 # Check whether --enable-assertions was given.
4954 if test "${enable_assertions+set}" = set; then
4955   enableval=$enable_assertions;
4956 else
4957   enableval="yes"
4958 fi
4959
4960 if test ${enableval} = "yes" ; then
4961   DISABLE_ASSERTIONS=
4962
4963 else
4964   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4965
4966 fi
4967
4968 # Check whether --enable-werror was given.
4969 if test "${enable_werror+set}" = set; then
4970   enableval=$enable_werror;
4971 else
4972   enableval="no"
4973 fi
4974
4975 case "$enableval" in
4976   yes) ENABLE_WERROR=1
4977  ;;
4978   no)  ENABLE_WERROR=0
4979  ;;
4980   default) ENABLE_WERROR=0
4981 ;;
4982   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4983 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4984    { (exit 1); exit 1; }; } ;;
4985 esac
4986
4987 # Check whether --enable-expensive-checks was given.
4988 if test "${enable_expensive_checks+set}" = set; then
4989   enableval=$enable_expensive_checks;
4990 else
4991   enableval="no"
4992 fi
4993
4994 if test ${enableval} = "yes" ; then
4995   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4996
4997   EXPENSIVE_CHECKS=yes
4998
4999 else
5000   ENABLE_EXPENSIVE_CHECKS=
5001
5002   EXPENSIVE_CHECKS=no
5003
5004 fi
5005
5006 # Check whether --enable-debug-runtime was given.
5007 if test "${enable_debug_runtime+set}" = set; then
5008   enableval=$enable_debug_runtime;
5009 else
5010   enableval=no
5011 fi
5012
5013 if test ${enableval} = "no" ; then
5014   DEBUG_RUNTIME=
5015
5016 else
5017   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5018
5019 fi
5020
5021 # Check whether --enable-debug-symbols was given.
5022 if test "${enable_debug_symbols+set}" = set; then
5023   enableval=$enable_debug_symbols;
5024 else
5025   enableval=no
5026 fi
5027
5028 if test ${enableval} = "no" ; then
5029   DEBUG_SYMBOLS=
5030
5031 else
5032   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5033
5034 fi
5035
5036 # Check whether --enable-keep-symbols was given.
5037 if test "${enable_keep_symbols+set}" = set; then
5038   enableval=$enable_keep_symbols;
5039 else
5040   enableval=no
5041 fi
5042
5043 if test ${enableval} = "no" ; then
5044   KEEP_SYMBOLS=
5045
5046 else
5047   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5048
5049 fi
5050
5051 # Check whether --enable-jit was given.
5052 if test "${enable_jit+set}" = set; then
5053   enableval=$enable_jit;
5054 else
5055   enableval=default
5056 fi
5057
5058 if test ${enableval} = "no"
5059 then
5060   JIT=
5061
5062 else
5063   case "$llvm_cv_target_arch" in
5064     x86)         TARGET_HAS_JIT=1
5065  ;;
5066     Sparc)       TARGET_HAS_JIT=0
5067  ;;
5068     PowerPC)     TARGET_HAS_JIT=1
5069  ;;
5070     x86_64)      TARGET_HAS_JIT=1
5071  ;;
5072     ARM)         TARGET_HAS_JIT=1
5073  ;;
5074     AArch64)     TARGET_HAS_JIT=0
5075  ;;
5076     Mips)        TARGET_HAS_JIT=1
5077  ;;
5078     XCore)       TARGET_HAS_JIT=0
5079  ;;
5080     MSP430)      TARGET_HAS_JIT=0
5081  ;;
5082     Hexagon)     TARGET_HAS_JIT=0
5083  ;;
5084     NVPTX)       TARGET_HAS_JIT=0
5085  ;;
5086     SystemZ)     TARGET_HAS_JIT=1
5087  ;;
5088     *)           TARGET_HAS_JIT=0
5089  ;;
5090   esac
5091 fi
5092
5093 TARGETS_WITH_JIT="AArch64 ARM Mips PowerPC SystemZ X86"
5094 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5095
5096
5097 # Check whether --enable-docs was given.
5098 if test "${enable_docs+set}" = set; then
5099   enableval=$enable_docs;
5100 else
5101   enableval=default
5102 fi
5103
5104 case "$enableval" in
5105   yes) ENABLE_DOCS=1
5106  ;;
5107   no)  ENABLE_DOCS=0
5108  ;;
5109   default) ENABLE_DOCS=1
5110  ;;
5111   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5112 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5113    { (exit 1); exit 1; }; } ;;
5114 esac
5115
5116 # Check whether --enable-doxygen was given.
5117 if test "${enable_doxygen+set}" = set; then
5118   enableval=$enable_doxygen;
5119 else
5120   enableval=default
5121 fi
5122
5123 case "$enableval" in
5124   yes) ENABLE_DOXYGEN=1
5125  ;;
5126   no)  ENABLE_DOXYGEN=0
5127  ;;
5128   default) ENABLE_DOXYGEN=0
5129  ;;
5130   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5131 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5132    { (exit 1); exit 1; }; } ;;
5133 esac
5134
5135 # Check whether --enable-threads was given.
5136 if test "${enable_threads+set}" = set; then
5137   enableval=$enable_threads;
5138 else
5139   enableval=default
5140 fi
5141
5142 case "$enableval" in
5143   yes) LLVM_ENABLE_THREADS=1
5144  ;;
5145   no)  LLVM_ENABLE_THREADS=0
5146  ;;
5147   default) LLVM_ENABLE_THREADS=1
5148  ;;
5149   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5150 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5151    { (exit 1); exit 1; }; } ;;
5152 esac
5153
5154 cat >>confdefs.h <<_ACEOF
5155 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5156 _ACEOF
5157
5158
5159 # Check whether --enable-pthreads was given.
5160 if test "${enable_pthreads+set}" = set; then
5161   enableval=$enable_pthreads;
5162 else
5163   enableval=default
5164 fi
5165
5166 case "$enableval" in
5167   yes) ENABLE_PTHREADS=1
5168  ;;
5169   no)  ENABLE_PTHREADS=0
5170  ;;
5171   default) ENABLE_PTHREADS=1
5172  ;;
5173   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5175    { (exit 1); exit 1; }; } ;;
5176 esac
5177
5178 # Check whether --enable-zlib was given.
5179 if test "${enable_zlib+set}" = set; then
5180   enableval=$enable_zlib;
5181 else
5182   enableval=default
5183 fi
5184
5185 case "$enableval" in
5186   yes) LLVM_ENABLE_ZLIB=1
5187  ;;
5188   no)  LLVM_ENABLE_ZLIB=0
5189  ;;
5190   default) LLVM_ENABLE_ZLIB=1
5191  ;;
5192   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5194    { (exit 1); exit 1; }; } ;;
5195 esac
5196
5197 cat >>confdefs.h <<_ACEOF
5198 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5199 _ACEOF
5200
5201
5202 # Check whether --enable-pic was given.
5203 if test "${enable_pic+set}" = set; then
5204   enableval=$enable_pic;
5205 else
5206   enableval=default
5207 fi
5208
5209 case "$enableval" in
5210   yes) ENABLE_PIC=1
5211  ;;
5212   no)  ENABLE_PIC=0
5213  ;;
5214   default) ENABLE_PIC=1
5215  ;;
5216   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5217 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5218    { (exit 1); exit 1; }; } ;;
5219 esac
5220
5221 cat >>confdefs.h <<_ACEOF
5222 #define ENABLE_PIC $ENABLE_PIC
5223 _ACEOF
5224
5225
5226 # Check whether --enable-shared was given.
5227 if test "${enable_shared+set}" = set; then
5228   enableval=$enable_shared;
5229 else
5230   enableval=default
5231 fi
5232
5233 case "$enableval" in
5234   yes) ENABLE_SHARED=1
5235  ;;
5236   no)  ENABLE_SHARED=0
5237  ;;
5238   default) ENABLE_SHARED=0
5239  ;;
5240   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5241 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5242    { (exit 1); exit 1; }; } ;;
5243 esac
5244
5245 # Check whether --enable-embed-stdcxx was given.
5246 if test "${enable_embed_stdcxx+set}" = set; then
5247   enableval=$enable_embed_stdcxx;
5248 else
5249   enableval=default
5250 fi
5251
5252 case "$enableval" in
5253   yes) ENABLE_EMBED_STDCXX=1
5254  ;;
5255   no)  ENABLE_EMBED_STDCXX=0
5256  ;;
5257   default) ENABLE_EMBED_STDCXX=0
5258  ;;
5259   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5260 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5261    { (exit 1); exit 1; }; } ;;
5262 esac
5263
5264 # Check whether --enable-timestamps was given.
5265 if test "${enable_timestamps+set}" = set; then
5266   enableval=$enable_timestamps;
5267 else
5268   enableval=default
5269 fi
5270
5271 case "$enableval" in
5272   yes) ENABLE_TIMESTAMPS=1
5273  ;;
5274   no)  ENABLE_TIMESTAMPS=0
5275  ;;
5276   default) ENABLE_TIMESTAMPS=1
5277  ;;
5278   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5279 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5280    { (exit 1); exit 1; }; } ;;
5281 esac
5282
5283 cat >>confdefs.h <<_ACEOF
5284 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5285 _ACEOF
5286
5287
5288 # Check whether --enable-backtraces was given.
5289 if test "${enable_backtraces+set}" = set; then
5290   enableval=$enable_backtraces; case "$enableval" in
5291     yes) llvm_cv_enable_backtraces="yes" ;;
5292     no)  llvm_cv_enable_backtraces="no"  ;;
5293     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5295    { (exit 1); exit 1; }; } ;;
5296   esac
5297 else
5298   llvm_cv_enable_backtraces="yes"
5299 fi
5300
5301 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5302
5303 cat >>confdefs.h <<\_ACEOF
5304 #define ENABLE_BACKTRACES 1
5305 _ACEOF
5306
5307 fi
5308
5309 # Check whether --enable-crash-overrides was given.
5310 if test "${enable_crash_overrides+set}" = set; then
5311   enableval=$enable_crash_overrides; case "$enableval" in
5312     yes) llvm_cv_enable_crash_overrides="yes" ;;
5313     no)  llvm_cv_enable_crash_overrides="no"  ;;
5314     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5315 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5316    { (exit 1); exit 1; }; } ;;
5317   esac
5318 else
5319   llvm_cv_enable_crash_overrides="yes"
5320 fi
5321
5322 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5323
5324 cat >>confdefs.h <<\_ACEOF
5325 #define ENABLE_CRASH_OVERRIDES 1
5326 _ACEOF
5327
5328 fi
5329
5330 ALL_TARGETS="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5331 ALL_TARGETS=$ALL_TARGETS
5332
5333
5334 TARGETS_TO_BUILD=""
5335 # Check whether --enable-targets was given.
5336 if test "${enable_targets+set}" = set; then
5337   enableval=$enable_targets;
5338 else
5339   enableval=all
5340 fi
5341
5342 if test "$enableval" = host-only ; then
5343   enableval=host
5344 fi
5345 case "$enableval" in
5346   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5347   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5348       case "$a_target" in
5349         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5350         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5351         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5352         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5353         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5354         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5355         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5356         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5357         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5358         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5359         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5360         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5361         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5362         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5363         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5364         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5365         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5366         host) case "$llvm_cv_target_arch" in
5367             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5368             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5369             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5370             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5371             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5372             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5373             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5374             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5375             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5376             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5377             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5378             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5379             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5380 echo "$as_me: error: Can not set target to build" >&2;}
5381    { (exit 1); exit 1; }; } ;;
5382           esac ;;
5383         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5384 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5385    { (exit 1); exit 1; }; } ;;
5386       esac
5387   done
5388   ;;
5389 esac
5390
5391 # Check whether --enable-experimental-targets was given.
5392 if test "${enable_experimental_targets+set}" = set; then
5393   enableval=$enable_experimental_targets;
5394 else
5395   enableval=disable
5396 fi
5397
5398
5399 if test ${enableval} != "disable"
5400 then
5401   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5402 fi
5403
5404 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5405
5406
5407 for a_target in $TARGETS_TO_BUILD; do
5408   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5409
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5412 _ACEOF
5413
5414     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5415     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5416     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5417     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5418     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5419       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5420     fi
5421     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5422       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5423     fi
5424
5425 cat >>confdefs.h <<_ACEOF
5426 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5427 _ACEOF
5428
5429
5430 cat >>confdefs.h <<_ACEOF
5431 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5432 _ACEOF
5433
5434
5435 cat >>confdefs.h <<_ACEOF
5436 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5437 _ACEOF
5438
5439
5440 cat >>confdefs.h <<_ACEOF
5441 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5442 _ACEOF
5443
5444     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5445
5446 cat >>confdefs.h <<_ACEOF
5447 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5448 _ACEOF
5449
5450     fi
5451     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5452
5453 cat >>confdefs.h <<_ACEOF
5454 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5455 _ACEOF
5456
5457     fi
5458   fi
5459 done
5460
5461 LLVM_ENUM_TARGETS=""
5462 LLVM_ENUM_ASM_PRINTERS=""
5463 LLVM_ENUM_ASM_PARSERS=""
5464 LLVM_ENUM_DISASSEMBLERS=""
5465 for target_to_build in $TARGETS_TO_BUILD; do
5466   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5467   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5468     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5469   fi
5470   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5471     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5472   fi
5473   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5474     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5475   fi
5476 done
5477
5478
5479
5480
5481
5482
5483 # Check whether --with-optimize-option was given.
5484 if test "${with_optimize_option+set}" = set; then
5485   withval=$with_optimize_option;
5486 else
5487   withval=default
5488 fi
5489
5490 { echo "$as_me:$LINENO: checking optimization flags" >&5
5491 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5492 case "$withval" in
5493   default)
5494     case "$llvm_cv_os_type" in
5495     FreeBSD) optimize_option=-O2 ;;
5496     MingW) optimize_option=-O2 ;;
5497     *)     optimize_option=-O3 ;;
5498     esac ;;
5499   *) optimize_option="$withval" ;;
5500 esac
5501 OPTIMIZE_OPTION=$optimize_option
5502
5503 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5504 echo "${ECHO_T}$optimize_option" >&6; }
5505
5506
5507 # Check whether --with-extra-options was given.
5508 if test "${with_extra_options+set}" = set; then
5509   withval=$with_extra_options;
5510 else
5511   withval=default
5512 fi
5513
5514 case "$withval" in
5515   default) EXTRA_OPTIONS= ;;
5516   *) EXTRA_OPTIONS=$withval ;;
5517 esac
5518 EXTRA_OPTIONS=$EXTRA_OPTIONS
5519
5520
5521
5522 # Check whether --with-extra-ld-options was given.
5523 if test "${with_extra_ld_options+set}" = set; then
5524   withval=$with_extra_ld_options;
5525 else
5526   withval=default
5527 fi
5528
5529 case "$withval" in
5530   default) EXTRA_LD_OPTIONS= ;;
5531   *) EXTRA_LD_OPTIONS=$withval ;;
5532 esac
5533 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5534
5535
5536 # Check whether --enable-bindings was given.
5537 if test "${enable_bindings+set}" = set; then
5538   enableval=$enable_bindings;
5539 else
5540   enableval=default
5541 fi
5542
5543 BINDINGS_TO_BUILD=""
5544 case "$enableval" in
5545   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5546   all ) BINDINGS_TO_BUILD="ocaml" ;;
5547   none | no) BINDINGS_TO_BUILD="" ;;
5548   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5549       case "$a_binding" in
5550         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5551         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5552 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5553    { (exit 1); exit 1; }; } ;;
5554       esac
5555   done
5556   ;;
5557 esac
5558
5559
5560 # Check whether --with-ocaml-libdir was given.
5561 if test "${with_ocaml_libdir+set}" = set; then
5562   withval=$with_ocaml_libdir;
5563 else
5564   withval=auto
5565 fi
5566
5567 case "$withval" in
5568   auto) with_ocaml_libdir="$withval" ;;
5569   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5570   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5571 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5572    { (exit 1); exit 1; }; } ;;
5573 esac
5574
5575
5576 # Check whether --with-clang-srcdir was given.
5577 if test "${with_clang_srcdir+set}" = set; then
5578   withval=$with_clang_srcdir;
5579 else
5580   withval="-"
5581 fi
5582
5583 case "$withval" in
5584   -) clang_src_root="" ;;
5585   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5586   *) clang_src_root="$ac_pwd/$withval" ;;
5587 esac
5588 CLANG_SRC_ROOT=$clang_src_root
5589
5590
5591
5592 # Check whether --with-clang-resource-dir was given.
5593 if test "${with_clang_resource_dir+set}" = set; then
5594   withval=$with_clang_resource_dir;
5595 else
5596   withval=""
5597 fi
5598
5599
5600 cat >>confdefs.h <<_ACEOF
5601 #define CLANG_RESOURCE_DIR "$withval"
5602 _ACEOF
5603
5604
5605
5606 # Check whether --with-c-include-dirs was given.
5607 if test "${with_c_include_dirs+set}" = set; then
5608   withval=$with_c_include_dirs;
5609 else
5610   withval=""
5611 fi
5612
5613
5614 cat >>confdefs.h <<_ACEOF
5615 #define C_INCLUDE_DIRS "$withval"
5616 _ACEOF
5617
5618
5619 # Clang normally uses the system c++ headers and libraries. With this option,
5620 # clang will use the ones provided by a gcc installation instead. This option should
5621 # be passed the same value that was used with --prefix when configuring gcc.
5622
5623 # Check whether --with-gcc-toolchain was given.
5624 if test "${with_gcc_toolchain+set}" = set; then
5625   withval=$with_gcc_toolchain;
5626 else
5627   withval=""
5628 fi
5629
5630
5631 cat >>confdefs.h <<_ACEOF
5632 #define GCC_INSTALL_PREFIX "$withval"
5633 _ACEOF
5634
5635
5636
5637 # Check whether --with-default-sysroot was given.
5638 if test "${with_default_sysroot+set}" = set; then
5639   withval=$with_default_sysroot;
5640 else
5641   withval=""
5642 fi
5643
5644
5645 cat >>confdefs.h <<_ACEOF
5646 #define DEFAULT_SYSROOT "$withval"
5647 _ACEOF
5648
5649
5650
5651 # Check whether --with-binutils-include was given.
5652 if test "${with_binutils_include+set}" = set; then
5653   withval=$with_binutils_include;
5654 else
5655   withval=default
5656 fi
5657
5658 case "$withval" in
5659   default) WITH_BINUTILS_INCDIR=default ;;
5660   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5661   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5662 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5663    { (exit 1); exit 1; }; } ;;
5664 esac
5665 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5666   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5667
5668   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5669      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5670      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5671 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5672    { (exit 1); exit 1; }; };
5673   fi
5674 fi
5675
5676
5677 # Check whether --with-bug-report-url was given.
5678 if test "${with_bug_report_url+set}" = set; then
5679   withval=$with_bug_report_url;
5680 else
5681   withval="http://llvm.org/bugs/"
5682 fi
5683
5684
5685 cat >>confdefs.h <<_ACEOF
5686 #define BUG_REPORT_URL "$withval"
5687 _ACEOF
5688
5689
5690 # Check whether --enable-terminfo was given.
5691 if test "${enable_terminfo+set}" = set; then
5692   enableval=$enable_terminfo; case "$enableval" in
5693     yes) llvm_cv_enable_terminfo="yes" ;;
5694     no)  llvm_cv_enable_terminfo="no"  ;;
5695     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5696 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5697    { (exit 1); exit 1; }; } ;;
5698   esac
5699 else
5700   llvm_cv_enable_terminfo="yes"
5701 fi
5702
5703 case "$llvm_cv_enable_terminfo" in
5704   yes) ENABLE_TERMINFO=1
5705  ;;
5706   no)  ENABLE_TERMINFO=0
5707  ;;
5708 esac
5709
5710 # Check whether --enable-libedit was given.
5711 if test "${enable_libedit+set}" = set; then
5712   enableval=$enable_libedit; case "$enableval" in
5713     yes) llvm_cv_enable_libedit="yes" ;;
5714     no)  llvm_cv_enable_libedit="no"  ;;
5715     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5716 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5717    { (exit 1); exit 1; }; } ;;
5718   esac
5719 else
5720   llvm_cv_enable_libedit="yes"
5721 fi
5722
5723
5724 # Check whether --enable-libffi was given.
5725 if test "${enable_libffi+set}" = set; then
5726   enableval=$enable_libffi; case "$enableval" in
5727     yes) llvm_cv_enable_libffi="yes" ;;
5728     no)  llvm_cv_enable_libffi="no"  ;;
5729     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5730 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5731    { (exit 1); exit 1; }; } ;;
5732   esac
5733 else
5734   llvm_cv_enable_libffi=no
5735 fi
5736
5737
5738
5739 # Check whether --with-internal-prefix was given.
5740 if test "${with_internal_prefix+set}" = set; then
5741   withval=$with_internal_prefix;
5742 else
5743   withval=""
5744 fi
5745
5746 INTERNAL_PREFIX=$withval
5747
5748
5749
5750 { echo "$as_me:$LINENO: checking for GNU make" >&5
5751 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5752 if test "${llvm_cv_gnu_make_command+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   llvm_cv_gnu_make_command=''
5756  for a in "$MAKE" make gmake gnumake ; do
5757   if test -z "$a" ; then continue ; fi ;
5758   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5759   then
5760    llvm_cv_gnu_make_command=$a ;
5761    break;
5762   fi
5763  done
5764 fi
5765 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5766 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5767  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5768    ifGNUmake='' ;
5769  else
5770    ifGNUmake='#' ;
5771    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5772 echo "${ECHO_T}\"Not found\"" >&6; };
5773  fi
5774
5775
5776 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5777 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5778 LN_S=$as_ln_s
5779 if test "$LN_S" = "ln -s"; then
5780   { echo "$as_me:$LINENO: result: yes" >&5
5781 echo "${ECHO_T}yes" >&6; }
5782 else
5783   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5784 echo "${ECHO_T}no, using $LN_S" >&6; }
5785 fi
5786
5787 # Extract the first word of "nm", so it can be a program name with args.
5788 set dummy nm; ac_word=$2
5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791 if test "${ac_cv_path_NM+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   case $NM in
5795   [\\/]* | ?:[\\/]*)
5796   ac_cv_path_NM="$NM" # Let the user override the test with a path.
5797   ;;
5798   *)
5799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804   for ac_exec_ext in '' $ac_executable_extensions; do
5805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5806     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811 done
5812 IFS=$as_save_IFS
5813
5814   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5815   ;;
5816 esac
5817 fi
5818 NM=$ac_cv_path_NM
5819 if test -n "$NM"; then
5820   { echo "$as_me:$LINENO: result: $NM" >&5
5821 echo "${ECHO_T}$NM" >&6; }
5822 else
5823   { echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6; }
5825 fi
5826
5827
5828 # Extract the first word of "cmp", so it can be a program name with args.
5829 set dummy cmp; ac_word=$2
5830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5832 if test "${ac_cv_path_CMP+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   case $CMP in
5836   [\\/]* | ?:[\\/]*)
5837   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5838   ;;
5839   *)
5840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843   IFS=$as_save_IFS
5844   test -z "$as_dir" && as_dir=.
5845   for ac_exec_ext in '' $ac_executable_extensions; do
5846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5847     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849     break 2
5850   fi
5851 done
5852 done
5853 IFS=$as_save_IFS
5854
5855   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5856   ;;
5857 esac
5858 fi
5859 CMP=$ac_cv_path_CMP
5860 if test -n "$CMP"; then
5861   { echo "$as_me:$LINENO: result: $CMP" >&5
5862 echo "${ECHO_T}$CMP" >&6; }
5863 else
5864   { echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6; }
5866 fi
5867
5868
5869 # Extract the first word of "cp", so it can be a program name with args.
5870 set dummy cp; ac_word=$2
5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873 if test "${ac_cv_path_CP+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   case $CP in
5877   [\\/]* | ?:[\\/]*)
5878   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5879   ;;
5880   *)
5881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886   for ac_exec_ext in '' $ac_executable_extensions; do
5887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5888     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890     break 2
5891   fi
5892 done
5893 done
5894 IFS=$as_save_IFS
5895
5896   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5897   ;;
5898 esac
5899 fi
5900 CP=$ac_cv_path_CP
5901 if test -n "$CP"; then
5902   { echo "$as_me:$LINENO: result: $CP" >&5
5903 echo "${ECHO_T}$CP" >&6; }
5904 else
5905   { echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6; }
5907 fi
5908
5909
5910 # Extract the first word of "date", so it can be a program name with args.
5911 set dummy date; ac_word=$2
5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914 if test "${ac_cv_path_DATE+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   case $DATE in
5918   [\\/]* | ?:[\\/]*)
5919   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5920   ;;
5921   *)
5922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5938   ;;
5939 esac
5940 fi
5941 DATE=$ac_cv_path_DATE
5942 if test -n "$DATE"; then
5943   { echo "$as_me:$LINENO: result: $DATE" >&5
5944 echo "${ECHO_T}$DATE" >&6; }
5945 else
5946   { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5948 fi
5949
5950
5951 # Extract the first word of "find", so it can be a program name with args.
5952 set dummy find; ac_word=$2
5953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5955 if test "${ac_cv_path_FIND+set}" = set; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958   case $FIND in
5959   [\\/]* | ?:[\\/]*)
5960   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5961   ;;
5962   *)
5963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5965 do
5966   IFS=$as_save_IFS
5967   test -z "$as_dir" && as_dir=.
5968   for ac_exec_ext in '' $ac_executable_extensions; do
5969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5970     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972     break 2
5973   fi
5974 done
5975 done
5976 IFS=$as_save_IFS
5977
5978   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5979   ;;
5980 esac
5981 fi
5982 FIND=$ac_cv_path_FIND
5983 if test -n "$FIND"; then
5984   { echo "$as_me:$LINENO: result: $FIND" >&5
5985 echo "${ECHO_T}$FIND" >&6; }
5986 else
5987   { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5989 fi
5990
5991
5992 # Extract the first word of "grep", so it can be a program name with args.
5993 set dummy grep; ac_word=$2
5994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5996 if test "${ac_cv_path_GREP+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   case $GREP in
6000   [\\/]* | ?:[\\/]*)
6001   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6002   ;;
6003   *)
6004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007   IFS=$as_save_IFS
6008   test -z "$as_dir" && as_dir=.
6009   for ac_exec_ext in '' $ac_executable_extensions; do
6010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6011     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013     break 2
6014   fi
6015 done
6016 done
6017 IFS=$as_save_IFS
6018
6019   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6020   ;;
6021 esac
6022 fi
6023 GREP=$ac_cv_path_GREP
6024 if test -n "$GREP"; then
6025   { echo "$as_me:$LINENO: result: $GREP" >&5
6026 echo "${ECHO_T}$GREP" >&6; }
6027 else
6028   { echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6; }
6030 fi
6031
6032
6033 # Extract the first word of "mkdir", so it can be a program name with args.
6034 set dummy mkdir; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_path_MKDIR+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   case $MKDIR in
6041   [\\/]* | ?:[\\/]*)
6042   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6043   ;;
6044   *)
6045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048   IFS=$as_save_IFS
6049   test -z "$as_dir" && as_dir=.
6050   for ac_exec_ext in '' $ac_executable_extensions; do
6051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6052     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6054     break 2
6055   fi
6056 done
6057 done
6058 IFS=$as_save_IFS
6059
6060   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6061   ;;
6062 esac
6063 fi
6064 MKDIR=$ac_cv_path_MKDIR
6065 if test -n "$MKDIR"; then
6066   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6067 echo "${ECHO_T}$MKDIR" >&6; }
6068 else
6069   { echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6; }
6071 fi
6072
6073
6074 # Extract the first word of "mv", so it can be a program name with args.
6075 set dummy mv; ac_word=$2
6076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6078 if test "${ac_cv_path_MV+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081   case $MV in
6082   [\\/]* | ?:[\\/]*)
6083   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6084   ;;
6085   *)
6086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089   IFS=$as_save_IFS
6090   test -z "$as_dir" && as_dir=.
6091   for ac_exec_ext in '' $ac_executable_extensions; do
6092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6093     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6095     break 2
6096   fi
6097 done
6098 done
6099 IFS=$as_save_IFS
6100
6101   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6102   ;;
6103 esac
6104 fi
6105 MV=$ac_cv_path_MV
6106 if test -n "$MV"; then
6107   { echo "$as_me:$LINENO: result: $MV" >&5
6108 echo "${ECHO_T}$MV" >&6; }
6109 else
6110   { echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6; }
6112 fi
6113
6114
6115 if test -n "$ac_tool_prefix"; then
6116   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6117 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6120 if test "${ac_cv_prog_RANLIB+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123   if test -n "$RANLIB"; then
6124   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129   IFS=$as_save_IFS
6130   test -z "$as_dir" && as_dir=.
6131   for ac_exec_ext in '' $ac_executable_extensions; do
6132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6133     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135     break 2
6136   fi
6137 done
6138 done
6139 IFS=$as_save_IFS
6140
6141 fi
6142 fi
6143 RANLIB=$ac_cv_prog_RANLIB
6144 if test -n "$RANLIB"; then
6145   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6146 echo "${ECHO_T}$RANLIB" >&6; }
6147 else
6148   { echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6; }
6150 fi
6151
6152
6153 fi
6154 if test -z "$ac_cv_prog_RANLIB"; then
6155   ac_ct_RANLIB=$RANLIB
6156   # Extract the first word of "ranlib", so it can be a program name with args.
6157 set dummy ranlib; ac_word=$2
6158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6160 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163   if test -n "$ac_ct_RANLIB"; then
6164   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6165 else
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH
6168 do
6169   IFS=$as_save_IFS
6170   test -z "$as_dir" && as_dir=.
6171   for ac_exec_ext in '' $ac_executable_extensions; do
6172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6173     ac_cv_prog_ac_ct_RANLIB="ranlib"
6174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175     break 2
6176   fi
6177 done
6178 done
6179 IFS=$as_save_IFS
6180
6181 fi
6182 fi
6183 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6184 if test -n "$ac_ct_RANLIB"; then
6185   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6186 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6187 else
6188   { echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6; }
6190 fi
6191
6192   if test "x$ac_ct_RANLIB" = x; then
6193     RANLIB=":"
6194   else
6195     case $cross_compiling:$ac_tool_warned in
6196 yes:)
6197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6198 whose name does not start with the host triplet.  If you think this
6199 configuration is useful to you, please write to autoconf@gnu.org." >&5
6200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6201 whose name does not start with the host triplet.  If you think this
6202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6203 ac_tool_warned=yes ;;
6204 esac
6205     RANLIB=$ac_ct_RANLIB
6206   fi
6207 else
6208   RANLIB="$ac_cv_prog_RANLIB"
6209 fi
6210
6211 if test -n "$ac_tool_prefix"; then
6212   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6213 set dummy ${ac_tool_prefix}ar; ac_word=$2
6214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6216 if test "${ac_cv_prog_AR+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   if test -n "$AR"; then
6220   ac_cv_prog_AR="$AR" # Let the user override the test.
6221 else
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH
6224 do
6225   IFS=$as_save_IFS
6226   test -z "$as_dir" && as_dir=.
6227   for ac_exec_ext in '' $ac_executable_extensions; do
6228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6229     ac_cv_prog_AR="${ac_tool_prefix}ar"
6230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231     break 2
6232   fi
6233 done
6234 done
6235 IFS=$as_save_IFS
6236
6237 fi
6238 fi
6239 AR=$ac_cv_prog_AR
6240 if test -n "$AR"; then
6241   { echo "$as_me:$LINENO: result: $AR" >&5
6242 echo "${ECHO_T}$AR" >&6; }
6243 else
6244   { echo "$as_me:$LINENO: result: no" >&5
6245 echo "${ECHO_T}no" >&6; }
6246 fi
6247
6248
6249 fi
6250 if test -z "$ac_cv_prog_AR"; then
6251   ac_ct_AR=$AR
6252   # Extract the first word of "ar", so it can be a program name with args.
6253 set dummy ar; ac_word=$2
6254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6256 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6257   echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259   if test -n "$ac_ct_AR"; then
6260   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265   IFS=$as_save_IFS
6266   test -z "$as_dir" && as_dir=.
6267   for ac_exec_ext in '' $ac_executable_extensions; do
6268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6269     ac_cv_prog_ac_ct_AR="ar"
6270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271     break 2
6272   fi
6273 done
6274 done
6275 IFS=$as_save_IFS
6276
6277 fi
6278 fi
6279 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6280 if test -n "$ac_ct_AR"; then
6281   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6282 echo "${ECHO_T}$ac_ct_AR" >&6; }
6283 else
6284   { echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6; }
6286 fi
6287
6288   if test "x$ac_ct_AR" = x; then
6289     AR="false"
6290   else
6291     case $cross_compiling:$ac_tool_warned in
6292 yes:)
6293 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6294 whose name does not start with the host triplet.  If you think this
6295 configuration is useful to you, please write to autoconf@gnu.org." >&5
6296 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6297 whose name does not start with the host triplet.  If you think this
6298 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6299 ac_tool_warned=yes ;;
6300 esac
6301     AR=$ac_ct_AR
6302   fi
6303 else
6304   AR="$ac_cv_prog_AR"
6305 fi
6306
6307 # Extract the first word of "rm", so it can be a program name with args.
6308 set dummy rm; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_path_RM+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314   case $RM in
6315   [\\/]* | ?:[\\/]*)
6316   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6317   ;;
6318   *)
6319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322   IFS=$as_save_IFS
6323   test -z "$as_dir" && as_dir=.
6324   for ac_exec_ext in '' $ac_executable_extensions; do
6325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328     break 2
6329   fi
6330 done
6331 done
6332 IFS=$as_save_IFS
6333
6334   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6335   ;;
6336 esac
6337 fi
6338 RM=$ac_cv_path_RM
6339 if test -n "$RM"; then
6340   { echo "$as_me:$LINENO: result: $RM" >&5
6341 echo "${ECHO_T}$RM" >&6; }
6342 else
6343   { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6345 fi
6346
6347
6348 # Extract the first word of "sed", so it can be a program name with args.
6349 set dummy sed; ac_word=$2
6350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6352 if test "${ac_cv_path_SED+set}" = set; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   case $SED in
6356   [\\/]* | ?:[\\/]*)
6357   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6358   ;;
6359   *)
6360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363   IFS=$as_save_IFS
6364   test -z "$as_dir" && as_dir=.
6365   for ac_exec_ext in '' $ac_executable_extensions; do
6366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6367     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369     break 2
6370   fi
6371 done
6372 done
6373 IFS=$as_save_IFS
6374
6375   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6376   ;;
6377 esac
6378 fi
6379 SED=$ac_cv_path_SED
6380 if test -n "$SED"; then
6381   { echo "$as_me:$LINENO: result: $SED" >&5
6382 echo "${ECHO_T}$SED" >&6; }
6383 else
6384   { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6386 fi
6387
6388
6389 # Extract the first word of "tar", so it can be a program name with args.
6390 set dummy tar; ac_word=$2
6391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393 if test "${ac_cv_path_TAR+set}" = set; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396   case $TAR in
6397   [\\/]* | ?:[\\/]*)
6398   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6399   ;;
6400   *)
6401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406   for ac_exec_ext in '' $ac_executable_extensions; do
6407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6417   ;;
6418 esac
6419 fi
6420 TAR=$ac_cv_path_TAR
6421 if test -n "$TAR"; then
6422   { echo "$as_me:$LINENO: result: $TAR" >&5
6423 echo "${ECHO_T}$TAR" >&6; }
6424 else
6425   { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6427 fi
6428
6429
6430 # Extract the first word of "pwd", so it can be a program name with args.
6431 set dummy pwd; ac_word=$2
6432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6434 if test "${ac_cv_path_BINPWD+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437   case $BINPWD in
6438   [\\/]* | ?:[\\/]*)
6439   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6440   ;;
6441   *)
6442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445   IFS=$as_save_IFS
6446   test -z "$as_dir" && as_dir=.
6447   for ac_exec_ext in '' $ac_executable_extensions; do
6448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6449     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451     break 2
6452   fi
6453 done
6454 done
6455 IFS=$as_save_IFS
6456
6457   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6458   ;;
6459 esac
6460 fi
6461 BINPWD=$ac_cv_path_BINPWD
6462 if test -n "$BINPWD"; then
6463   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6464 echo "${ECHO_T}$BINPWD" >&6; }
6465 else
6466   { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6468 fi
6469
6470
6471
6472 # Extract the first word of "Graphviz", so it can be a program name with args.
6473 set dummy Graphviz; ac_word=$2
6474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6476 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6477   echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479   case $GRAPHVIZ in
6480   [\\/]* | ?:[\\/]*)
6481   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6482   ;;
6483   *)
6484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489   for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496 done
6497 IFS=$as_save_IFS
6498
6499   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6500   ;;
6501 esac
6502 fi
6503 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6504 if test -n "$GRAPHVIZ"; then
6505   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6506 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6507 else
6508   { echo "$as_me:$LINENO: result: no" >&5
6509 echo "${ECHO_T}no" >&6; }
6510 fi
6511
6512
6513 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6514
6515 cat >>confdefs.h <<\_ACEOF
6516 #define HAVE_GRAPHVIZ 1
6517 _ACEOF
6518
6519     if test "$llvm_cv_os_type" = "MingW" ; then
6520     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6521   fi
6522
6523 cat >>confdefs.h <<_ACEOF
6524 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6525 _ACEOF
6526
6527 fi
6528 # Extract the first word of "dot", so it can be a program name with args.
6529 set dummy dot; ac_word=$2
6530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6532 if test "${ac_cv_path_DOT+set}" = set; then
6533   echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535   case $DOT in
6536   [\\/]* | ?:[\\/]*)
6537   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6538   ;;
6539   *)
6540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545   for ac_exec_ext in '' $ac_executable_extensions; do
6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6547     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549     break 2
6550   fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6554
6555   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6556   ;;
6557 esac
6558 fi
6559 DOT=$ac_cv_path_DOT
6560 if test -n "$DOT"; then
6561   { echo "$as_me:$LINENO: result: $DOT" >&5
6562 echo "${ECHO_T}$DOT" >&6; }
6563 else
6564   { echo "$as_me:$LINENO: result: no" >&5
6565 echo "${ECHO_T}no" >&6; }
6566 fi
6567
6568
6569 if test "$DOT" != "echo dot" ; then
6570
6571 cat >>confdefs.h <<\_ACEOF
6572 #define HAVE_DOT 1
6573 _ACEOF
6574
6575     if test "$llvm_cv_os_type" = "MingW" ; then
6576     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6577   fi
6578
6579 cat >>confdefs.h <<_ACEOF
6580 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6581 _ACEOF
6582
6583 fi
6584 # Extract the first word of "fdp", so it can be a program name with args.
6585 set dummy fdp; ac_word=$2
6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588 if test "${ac_cv_path_FDP+set}" = set; then
6589   echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591   case $FDP in
6592   [\\/]* | ?:[\\/]*)
6593   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6594   ;;
6595   *)
6596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599   IFS=$as_save_IFS
6600   test -z "$as_dir" && as_dir=.
6601   for ac_exec_ext in '' $ac_executable_extensions; do
6602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6603     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605     break 2
6606   fi
6607 done
6608 done
6609 IFS=$as_save_IFS
6610
6611   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6612   ;;
6613 esac
6614 fi
6615 FDP=$ac_cv_path_FDP
6616 if test -n "$FDP"; then
6617   { echo "$as_me:$LINENO: result: $FDP" >&5
6618 echo "${ECHO_T}$FDP" >&6; }
6619 else
6620   { echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6; }
6622 fi
6623
6624
6625 if test "$FDP" != "echo fdp" ; then
6626
6627 cat >>confdefs.h <<\_ACEOF
6628 #define HAVE_FDP 1
6629 _ACEOF
6630
6631     if test "$llvm_cv_os_type" = "MingW" ; then
6632     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6633   fi
6634
6635 cat >>confdefs.h <<_ACEOF
6636 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6637 _ACEOF
6638
6639 fi
6640 # Extract the first word of "neato", so it can be a program name with args.
6641 set dummy neato; ac_word=$2
6642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6644 if test "${ac_cv_path_NEATO+set}" = set; then
6645   echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647   case $NEATO in
6648   [\\/]* | ?:[\\/]*)
6649   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6650   ;;
6651   *)
6652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655   IFS=$as_save_IFS
6656   test -z "$as_dir" && as_dir=.
6657   for ac_exec_ext in '' $ac_executable_extensions; do
6658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6659     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661     break 2
6662   fi
6663 done
6664 done
6665 IFS=$as_save_IFS
6666
6667   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6668   ;;
6669 esac
6670 fi
6671 NEATO=$ac_cv_path_NEATO
6672 if test -n "$NEATO"; then
6673   { echo "$as_me:$LINENO: result: $NEATO" >&5
6674 echo "${ECHO_T}$NEATO" >&6; }
6675 else
6676   { echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6; }
6678 fi
6679
6680
6681 if test "$NEATO" != "echo neato" ; then
6682
6683 cat >>confdefs.h <<\_ACEOF
6684 #define HAVE_NEATO 1
6685 _ACEOF
6686
6687     if test "$llvm_cv_os_type" = "MingW" ; then
6688     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6689   fi
6690
6691 cat >>confdefs.h <<_ACEOF
6692 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6693 _ACEOF
6694
6695 fi
6696 # Extract the first word of "twopi", so it can be a program name with args.
6697 set dummy twopi; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_TWOPI+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   case $TWOPI in
6704   [\\/]* | ?:[\\/]*)
6705   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6706   ;;
6707   *)
6708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711   IFS=$as_save_IFS
6712   test -z "$as_dir" && as_dir=.
6713   for ac_exec_ext in '' $ac_executable_extensions; do
6714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717     break 2
6718   fi
6719 done
6720 done
6721 IFS=$as_save_IFS
6722
6723   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6724   ;;
6725 esac
6726 fi
6727 TWOPI=$ac_cv_path_TWOPI
6728 if test -n "$TWOPI"; then
6729   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6730 echo "${ECHO_T}$TWOPI" >&6; }
6731 else
6732   { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6734 fi
6735
6736
6737 if test "$TWOPI" != "echo twopi" ; then
6738
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_TWOPI 1
6741 _ACEOF
6742
6743     if test "$llvm_cv_os_type" = "MingW" ; then
6744     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6745   fi
6746
6747 cat >>confdefs.h <<_ACEOF
6748 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6749 _ACEOF
6750
6751 fi
6752 # Extract the first word of "circo", so it can be a program name with args.
6753 set dummy circo; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_path_CIRCO+set}" = set; then
6757   echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759   case $CIRCO in
6760   [\\/]* | ?:[\\/]*)
6761   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6762   ;;
6763   *)
6764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769   for ac_exec_ext in '' $ac_executable_extensions; do
6770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6771     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6780   ;;
6781 esac
6782 fi
6783 CIRCO=$ac_cv_path_CIRCO
6784 if test -n "$CIRCO"; then
6785   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6786 echo "${ECHO_T}$CIRCO" >&6; }
6787 else
6788   { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6790 fi
6791
6792
6793 if test "$CIRCO" != "echo circo" ; then
6794
6795 cat >>confdefs.h <<\_ACEOF
6796 #define HAVE_CIRCO 1
6797 _ACEOF
6798
6799     if test "$llvm_cv_os_type" = "MingW" ; then
6800     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6801   fi
6802
6803 cat >>confdefs.h <<_ACEOF
6804 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6805 _ACEOF
6806
6807 fi
6808 for ac_prog in gv gsview32
6809 do
6810   # Extract the first word of "$ac_prog", so it can be a program name with args.
6811 set dummy $ac_prog; ac_word=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_path_GV+set}" = set; then
6815   echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817   case $GV in
6818   [\\/]* | ?:[\\/]*)
6819   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6820   ;;
6821   *)
6822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827   for ac_exec_ext in '' $ac_executable_extensions; do
6828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6829     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837   ;;
6838 esac
6839 fi
6840 GV=$ac_cv_path_GV
6841 if test -n "$GV"; then
6842   { echo "$as_me:$LINENO: result: $GV" >&5
6843 echo "${ECHO_T}$GV" >&6; }
6844 else
6845   { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6847 fi
6848
6849
6850   test -n "$GV" && break
6851 done
6852 test -n "$GV" || GV="echo gv"
6853
6854 if test "$GV" != "echo gv" ; then
6855
6856 cat >>confdefs.h <<\_ACEOF
6857 #define HAVE_GV 1
6858 _ACEOF
6859
6860     if test "$llvm_cv_os_type" = "MingW" ; then
6861     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6862   fi
6863
6864 cat >>confdefs.h <<_ACEOF
6865 #define LLVM_PATH_GV "$GV${EXEEXT}"
6866 _ACEOF
6867
6868 fi
6869 # Extract the first word of "dotty", so it can be a program name with args.
6870 set dummy dotty; ac_word=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_path_DOTTY+set}" = set; then
6874   echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876   case $DOTTY in
6877   [\\/]* | ?:[\\/]*)
6878   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6879   ;;
6880   *)
6881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886   for ac_exec_ext in '' $ac_executable_extensions; do
6887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6888     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893 done
6894 IFS=$as_save_IFS
6895
6896   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6897   ;;
6898 esac
6899 fi
6900 DOTTY=$ac_cv_path_DOTTY
6901 if test -n "$DOTTY"; then
6902   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6903 echo "${ECHO_T}$DOTTY" >&6; }
6904 else
6905   { echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6; }
6907 fi
6908
6909
6910 if test "$DOTTY" != "echo dotty" ; then
6911
6912 cat >>confdefs.h <<\_ACEOF
6913 #define HAVE_DOTTY 1
6914 _ACEOF
6915
6916     if test "$llvm_cv_os_type" = "MingW" ; then
6917     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6918   fi
6919
6920 cat >>confdefs.h <<_ACEOF
6921 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6922 _ACEOF
6923
6924 fi
6925 for ac_prog in xdot xdot.py
6926 do
6927   # Extract the first word of "$ac_prog", so it can be a program name with args.
6928 set dummy $ac_prog; ac_word=$2
6929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6931 if test "${ac_cv_path_XDOT+set}" = set; then
6932   echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934   case $XDOT in
6935   [\\/]* | ?:[\\/]*)
6936   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6937   ;;
6938   *)
6939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942   IFS=$as_save_IFS
6943   test -z "$as_dir" && as_dir=.
6944   for ac_exec_ext in '' $ac_executable_extensions; do
6945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6946     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948     break 2
6949   fi
6950 done
6951 done
6952 IFS=$as_save_IFS
6953
6954   ;;
6955 esac
6956 fi
6957 XDOT=$ac_cv_path_XDOT
6958 if test -n "$XDOT"; then
6959   { echo "$as_me:$LINENO: result: $XDOT" >&5
6960 echo "${ECHO_T}$XDOT" >&6; }
6961 else
6962   { echo "$as_me:$LINENO: result: no" >&5
6963 echo "${ECHO_T}no" >&6; }
6964 fi
6965
6966
6967   test -n "$XDOT" && break
6968 done
6969 test -n "$XDOT" || XDOT="echo xdot"
6970
6971 if test "$XDOT" != "echo xdot" ; then
6972
6973 cat >>confdefs.h <<\_ACEOF
6974 #define HAVE_XDOT 1
6975 _ACEOF
6976
6977     if test "$llvm_cv_os_type" = "MingW" ; then
6978     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6979   fi
6980
6981 cat >>confdefs.h <<_ACEOF
6982 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6983 _ACEOF
6984
6985 fi
6986
6987 # Find a good install program.  We prefer a C program (faster),
6988 # so one script is as good as another.  But avoid the broken or
6989 # incompatible versions:
6990 # SysV /etc/install, /usr/sbin/install
6991 # SunOS /usr/etc/install
6992 # IRIX /sbin/install
6993 # AIX /bin/install
6994 # AmigaOS /C/install, which installs bootblocks on floppy discs
6995 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6996 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6997 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6998 # OS/2's system install, which has a completely different semantic
6999 # ./install, which can be erroneously created by make from ./install.sh.
7000 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7001 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7002 if test -z "$INSTALL"; then
7003 if test "${ac_cv_path_install+set}" = set; then
7004   echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009   IFS=$as_save_IFS
7010   test -z "$as_dir" && as_dir=.
7011   # Account for people who put trailing slashes in PATH elements.
7012 case $as_dir/ in
7013   ./ | .// | /cC/* | \
7014   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7015   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7016   /usr/ucb/* ) ;;
7017   *)
7018     # OSF1 and SCO ODT 3.0 have their own names for install.
7019     # Don't use installbsd from OSF since it installs stuff as root
7020     # by default.
7021     for ac_prog in ginstall scoinst install; do
7022       for ac_exec_ext in '' $ac_executable_extensions; do
7023         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7024           if test $ac_prog = install &&
7025             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7026             # AIX install.  It has an incompatible calling convention.
7027             :
7028           elif test $ac_prog = install &&
7029             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7030             # program-specific install script used by HP pwplus--don't use.
7031             :
7032           else
7033             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7034             break 3
7035           fi
7036         fi
7037       done
7038     done
7039     ;;
7040 esac
7041 done
7042 IFS=$as_save_IFS
7043
7044
7045 fi
7046   if test "${ac_cv_path_install+set}" = set; then
7047     INSTALL=$ac_cv_path_install
7048   else
7049     # As a last resort, use the slow shell script.  Don't cache a
7050     # value for INSTALL within a source directory, because that will
7051     # break other packages using the cache if that directory is
7052     # removed, or if the value is a relative name.
7053     INSTALL=$ac_install_sh
7054   fi
7055 fi
7056 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7057 echo "${ECHO_T}$INSTALL" >&6; }
7058
7059 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7060 # It thinks the first close brace ends the variable substitution.
7061 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7062
7063 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7064
7065 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7066
7067 case "$INSTALL" in
7068  [\\/$]* | ?:[\\/]* ) ;;
7069  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7070 esac
7071
7072 # Extract the first word of "bzip2", so it can be a program name with args.
7073 set dummy bzip2; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_BZIP2+set}" = set; then
7077   echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079   case $BZIP2 in
7080   [\\/]* | ?:[\\/]*)
7081   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7082   ;;
7083   *)
7084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089   for ac_exec_ext in '' $ac_executable_extensions; do
7090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096 done
7097 IFS=$as_save_IFS
7098
7099   ;;
7100 esac
7101 fi
7102 BZIP2=$ac_cv_path_BZIP2
7103 if test -n "$BZIP2"; then
7104   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7105 echo "${ECHO_T}$BZIP2" >&6; }
7106 else
7107   { echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6; }
7109 fi
7110
7111
7112 # Extract the first word of "cat", so it can be a program name with args.
7113 set dummy cat; ac_word=$2
7114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116 if test "${ac_cv_path_CAT+set}" = set; then
7117   echo $ECHO_N "(cached) $ECHO_C" >&6
7118 else
7119   case $CAT in
7120   [\\/]* | ?:[\\/]*)
7121   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7122   ;;
7123   *)
7124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127   IFS=$as_save_IFS
7128   test -z "$as_dir" && as_dir=.
7129   for ac_exec_ext in '' $ac_executable_extensions; do
7130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7131     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133     break 2
7134   fi
7135 done
7136 done
7137 IFS=$as_save_IFS
7138
7139   ;;
7140 esac
7141 fi
7142 CAT=$ac_cv_path_CAT
7143 if test -n "$CAT"; then
7144   { echo "$as_me:$LINENO: result: $CAT" >&5
7145 echo "${ECHO_T}$CAT" >&6; }
7146 else
7147   { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7149 fi
7150
7151
7152 # Extract the first word of "doxygen", so it can be a program name with args.
7153 set dummy doxygen; ac_word=$2
7154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7157   echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159   case $DOXYGEN in
7160   [\\/]* | ?:[\\/]*)
7161   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7162   ;;
7163   *)
7164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167   IFS=$as_save_IFS
7168   test -z "$as_dir" && as_dir=.
7169   for ac_exec_ext in '' $ac_executable_extensions; do
7170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7171     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173     break 2
7174   fi
7175 done
7176 done
7177 IFS=$as_save_IFS
7178
7179   ;;
7180 esac
7181 fi
7182 DOXYGEN=$ac_cv_path_DOXYGEN
7183 if test -n "$DOXYGEN"; then
7184   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7185 echo "${ECHO_T}$DOXYGEN" >&6; }
7186 else
7187   { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7189 fi
7190
7191
7192 # Extract the first word of "groff", so it can be a program name with args.
7193 set dummy groff; ac_word=$2
7194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196 if test "${ac_cv_path_GROFF+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   case $GROFF in
7200   [\\/]* | ?:[\\/]*)
7201   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7202   ;;
7203   *)
7204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207   IFS=$as_save_IFS
7208   test -z "$as_dir" && as_dir=.
7209   for ac_exec_ext in '' $ac_executable_extensions; do
7210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7211     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213     break 2
7214   fi
7215 done
7216 done
7217 IFS=$as_save_IFS
7218
7219   ;;
7220 esac
7221 fi
7222 GROFF=$ac_cv_path_GROFF
7223 if test -n "$GROFF"; then
7224   { echo "$as_me:$LINENO: result: $GROFF" >&5
7225 echo "${ECHO_T}$GROFF" >&6; }
7226 else
7227   { echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6; }
7229 fi
7230
7231
7232 # Extract the first word of "gzip", so it can be a program name with args.
7233 set dummy gzip; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7237   echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239   case $GZIPBIN in
7240   [\\/]* | ?:[\\/]*)
7241   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7242   ;;
7243   *)
7244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247   IFS=$as_save_IFS
7248   test -z "$as_dir" && as_dir=.
7249   for ac_exec_ext in '' $ac_executable_extensions; do
7250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7251     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253     break 2
7254   fi
7255 done
7256 done
7257 IFS=$as_save_IFS
7258
7259   ;;
7260 esac
7261 fi
7262 GZIPBIN=$ac_cv_path_GZIPBIN
7263 if test -n "$GZIPBIN"; then
7264   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7265 echo "${ECHO_T}$GZIPBIN" >&6; }
7266 else
7267   { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7269 fi
7270
7271
7272 # Extract the first word of "pdfroff", so it can be a program name with args.
7273 set dummy pdfroff; ac_word=$2
7274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7276 if test "${ac_cv_path_PDFROFF+set}" = set; then
7277   echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279   case $PDFROFF in
7280   [\\/]* | ?:[\\/]*)
7281   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7282   ;;
7283   *)
7284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 for as_dir in $PATH
7286 do
7287   IFS=$as_save_IFS
7288   test -z "$as_dir" && as_dir=.
7289   for ac_exec_ext in '' $ac_executable_extensions; do
7290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7291     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7293     break 2
7294   fi
7295 done
7296 done
7297 IFS=$as_save_IFS
7298
7299   ;;
7300 esac
7301 fi
7302 PDFROFF=$ac_cv_path_PDFROFF
7303 if test -n "$PDFROFF"; then
7304   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7305 echo "${ECHO_T}$PDFROFF" >&6; }
7306 else
7307   { echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6; }
7309 fi
7310
7311
7312 # Extract the first word of "zip", so it can be a program name with args.
7313 set dummy zip; ac_word=$2
7314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316 if test "${ac_cv_path_ZIP+set}" = set; then
7317   echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319   case $ZIP in
7320   [\\/]* | ?:[\\/]*)
7321   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7322   ;;
7323   *)
7324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327   IFS=$as_save_IFS
7328   test -z "$as_dir" && as_dir=.
7329   for ac_exec_ext in '' $ac_executable_extensions; do
7330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7331     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333     break 2
7334   fi
7335 done
7336 done
7337 IFS=$as_save_IFS
7338
7339   ;;
7340 esac
7341 fi
7342 ZIP=$ac_cv_path_ZIP
7343 if test -n "$ZIP"; then
7344   { echo "$as_me:$LINENO: result: $ZIP" >&5
7345 echo "${ECHO_T}$ZIP" >&6; }
7346 else
7347   { echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6; }
7349 fi
7350
7351
7352 for ac_prog in ocamlc
7353 do
7354   # Extract the first word of "$ac_prog", so it can be a program name with args.
7355 set dummy $ac_prog; ac_word=$2
7356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7358 if test "${ac_cv_path_OCAMLC+set}" = set; then
7359   echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361   case $OCAMLC in
7362   [\\/]* | ?:[\\/]*)
7363   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7364   ;;
7365   *)
7366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371   for ac_exec_ext in '' $ac_executable_extensions; do
7372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7373     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378 done
7379 IFS=$as_save_IFS
7380
7381   ;;
7382 esac
7383 fi
7384 OCAMLC=$ac_cv_path_OCAMLC
7385 if test -n "$OCAMLC"; then
7386   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7387 echo "${ECHO_T}$OCAMLC" >&6; }
7388 else
7389   { echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6; }
7391 fi
7392
7393
7394   test -n "$OCAMLC" && break
7395 done
7396
7397 for ac_prog in ocamlopt
7398 do
7399   # Extract the first word of "$ac_prog", so it can be a program name with args.
7400 set dummy $ac_prog; ac_word=$2
7401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7403 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7404   echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406   case $OCAMLOPT in
7407   [\\/]* | ?:[\\/]*)
7408   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7409   ;;
7410   *)
7411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416   for ac_exec_ext in '' $ac_executable_extensions; do
7417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7418     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426   ;;
7427 esac
7428 fi
7429 OCAMLOPT=$ac_cv_path_OCAMLOPT
7430 if test -n "$OCAMLOPT"; then
7431   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7432 echo "${ECHO_T}$OCAMLOPT" >&6; }
7433 else
7434   { echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6; }
7436 fi
7437
7438
7439   test -n "$OCAMLOPT" && break
7440 done
7441
7442 for ac_prog in ocamldep
7443 do
7444   # Extract the first word of "$ac_prog", so it can be a program name with args.
7445 set dummy $ac_prog; ac_word=$2
7446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7448 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7449   echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451   case $OCAMLDEP in
7452   [\\/]* | ?:[\\/]*)
7453   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7454   ;;
7455   *)
7456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7458 do
7459   IFS=$as_save_IFS
7460   test -z "$as_dir" && as_dir=.
7461   for ac_exec_ext in '' $ac_executable_extensions; do
7462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7463     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465     break 2
7466   fi
7467 done
7468 done
7469 IFS=$as_save_IFS
7470
7471   ;;
7472 esac
7473 fi
7474 OCAMLDEP=$ac_cv_path_OCAMLDEP
7475 if test -n "$OCAMLDEP"; then
7476   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7477 echo "${ECHO_T}$OCAMLDEP" >&6; }
7478 else
7479   { echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6; }
7481 fi
7482
7483
7484   test -n "$OCAMLDEP" && break
7485 done
7486
7487 for ac_prog in ocamldoc
7488 do
7489   # Extract the first word of "$ac_prog", so it can be a program name with args.
7490 set dummy $ac_prog; ac_word=$2
7491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7494   echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496   case $OCAMLDOC in
7497   [\\/]* | ?:[\\/]*)
7498   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7499   ;;
7500   *)
7501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504   IFS=$as_save_IFS
7505   test -z "$as_dir" && as_dir=.
7506   for ac_exec_ext in '' $ac_executable_extensions; do
7507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7508     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510     break 2
7511   fi
7512 done
7513 done
7514 IFS=$as_save_IFS
7515
7516   ;;
7517 esac
7518 fi
7519 OCAMLDOC=$ac_cv_path_OCAMLDOC
7520 if test -n "$OCAMLDOC"; then
7521   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7522 echo "${ECHO_T}$OCAMLDOC" >&6; }
7523 else
7524   { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7526 fi
7527
7528
7529   test -n "$OCAMLDOC" && break
7530 done
7531
7532 for ac_prog in gas as
7533 do
7534   # Extract the first word of "$ac_prog", so it can be a program name with args.
7535 set dummy $ac_prog; ac_word=$2
7536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7538 if test "${ac_cv_path_GAS+set}" = set; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541   case $GAS in
7542   [\\/]* | ?:[\\/]*)
7543   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7544   ;;
7545   *)
7546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549   IFS=$as_save_IFS
7550   test -z "$as_dir" && as_dir=.
7551   for ac_exec_ext in '' $ac_executable_extensions; do
7552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7553     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7555     break 2
7556   fi
7557 done
7558 done
7559 IFS=$as_save_IFS
7560
7561   ;;
7562 esac
7563 fi
7564 GAS=$ac_cv_path_GAS
7565 if test -n "$GAS"; then
7566   { echo "$as_me:$LINENO: result: $GAS" >&5
7567 echo "${ECHO_T}$GAS" >&6; }
7568 else
7569   { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7571 fi
7572
7573
7574   test -n "$GAS" && break
7575 done
7576
7577
7578 { echo "$as_me:$LINENO: checking for linker version" >&5
7579 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7580 if test "${llvm_cv_link_version+set}" = set; then
7581   echo $ECHO_N "(cached) $ECHO_C" >&6
7582 else
7583
7584    version_string="$(ld -v 2>&1 | head -1)"
7585
7586    # Check for ld64.
7587    if (echo "$version_string" | grep -q "ld64"); then
7588      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7589    else
7590      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7591    fi
7592
7593 fi
7594 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7595 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7596
7597 cat >>confdefs.h <<_ACEOF
7598 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7599 _ACEOF
7600
7601
7602
7603
7604 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7605 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7606 if test "${llvm_cv_link_use_r+set}" = set; then
7607   echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609    ac_ext=c
7610 ac_cpp='$CPP $CPPFLAGS'
7611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7614
7615   oldcflags="$CFLAGS"
7616   CFLAGS="$CFLAGS -Wl,-R."
7617   cat >conftest.$ac_ext <<_ACEOF
7618 /* confdefs.h.  */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h.  */
7623
7624 int
7625 main ()
7626 {
7627
7628   ;
7629   return 0;
7630 }
7631 _ACEOF
7632 rm -f conftest.$ac_objext conftest$ac_exeext
7633 if { (ac_try="$ac_link"
7634 case "(($ac_try" in
7635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636   *) ac_try_echo=$ac_try;;
7637 esac
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639   (eval "$ac_link") 2>conftest.er1
7640   ac_status=$?
7641   grep -v '^ *+' conftest.er1 >conftest.err
7642   rm -f conftest.er1
7643   cat conftest.err >&5
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); } &&
7646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7647   { (case "(($ac_try" in
7648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7649   *) ac_try_echo=$ac_try;;
7650 esac
7651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7652   (eval "$ac_try") 2>&5
7653   ac_status=$?
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); }; } &&
7656          { ac_try='test -s conftest$ac_exeext'
7657   { (case "(($ac_try" in
7658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659   *) ac_try_echo=$ac_try;;
7660 esac
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662   (eval "$ac_try") 2>&5
7663   ac_status=$?
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); }; }; then
7666   llvm_cv_link_use_r=yes
7667 else
7668   echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7670
7671         llvm_cv_link_use_r=no
7672 fi
7673
7674 rm -f core conftest.err conftest.$ac_objext \
7675       conftest$ac_exeext conftest.$ac_ext
7676   CFLAGS="$oldcflags"
7677   ac_ext=c
7678 ac_cpp='$CPP $CPPFLAGS'
7679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7682
7683
7684 fi
7685 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7686 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7687 if test "$llvm_cv_link_use_r" = yes ; then
7688
7689 cat >>confdefs.h <<\_ACEOF
7690 #define HAVE_LINK_R 1
7691 _ACEOF
7692
7693   fi
7694
7695
7696 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7697 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7698 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7699   echo $ECHO_N "(cached) $ECHO_C" >&6
7700 else
7701    ac_ext=c
7702 ac_cpp='$CPP $CPPFLAGS'
7703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7706
7707   oldcflags="$CFLAGS"
7708   CFLAGS="$CFLAGS -rdynamic"
7709   cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h.  */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h.  */
7715
7716 int
7717 main ()
7718 {
7719
7720   ;
7721   return 0;
7722 }
7723 _ACEOF
7724 rm -f conftest.$ac_objext conftest$ac_exeext
7725 if { (ac_try="$ac_link"
7726 case "(($ac_try" in
7727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728   *) ac_try_echo=$ac_try;;
7729 esac
7730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7731   (eval "$ac_link") 2>conftest.er1
7732   ac_status=$?
7733   grep -v '^ *+' conftest.er1 >conftest.err
7734   rm -f conftest.er1
7735   cat conftest.err >&5
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); } &&
7738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7739   { (case "(($ac_try" in
7740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741   *) ac_try_echo=$ac_try;;
7742 esac
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744   (eval "$ac_try") 2>&5
7745   ac_status=$?
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); }; } &&
7748          { ac_try='test -s conftest$ac_exeext'
7749   { (case "(($ac_try" in
7750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751   *) ac_try_echo=$ac_try;;
7752 esac
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754   (eval "$ac_try") 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); }; }; then
7758   llvm_cv_link_use_export_dynamic=yes
7759 else
7760   echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7762
7763         llvm_cv_link_use_export_dynamic=no
7764 fi
7765
7766 rm -f core conftest.err conftest.$ac_objext \
7767       conftest$ac_exeext conftest.$ac_ext
7768   CFLAGS="$oldcflags"
7769   ac_ext=c
7770 ac_cpp='$CPP $CPPFLAGS'
7771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7774
7775
7776 fi
7777 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7778 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7779 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7780
7781 cat >>confdefs.h <<\_ACEOF
7782 #define HAVE_LINK_EXPORT_DYNAMIC 1
7783 _ACEOF
7784
7785   fi
7786
7787
7788 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7789 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7790 if test "${llvm_cv_link_use_version_script+set}" = set; then
7791   echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793    ac_ext=c
7794 ac_cpp='$CPP $CPPFLAGS'
7795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7798
7799   oldcflags="$CFLAGS"
7800
7801   # The following code is from the autoconf manual,
7802   # "11.13: Limitations of Usual Tools".
7803   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7804   # Use mktemp if possible; otherwise fall back on mkdir,
7805   # with $RANDOM to make collisions less likely.
7806   : ${TMPDIR=/tmp}
7807   {
7808     tmp=`
7809       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7810     ` &&
7811     test -n "$tmp" && test -d "$tmp"
7812   } || {
7813     tmp=$TMPDIR/foo$$-$RANDOM
7814     (umask 077 && mkdir "$tmp")
7815   } || exit $?
7816
7817   echo "{" > "$tmp/export.map"
7818   echo "  global: main;" >> "$tmp/export.map"
7819   echo "  local: *;" >> "$tmp/export.map"
7820   echo "};" >> "$tmp/export.map"
7821
7822   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7823   cat >conftest.$ac_ext <<_ACEOF
7824 /* confdefs.h.  */
7825 _ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h.  */
7829
7830 int
7831 main ()
7832 {
7833
7834   ;
7835   return 0;
7836 }
7837 _ACEOF
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (ac_try="$ac_link"
7840 case "(($ac_try" in
7841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842   *) ac_try_echo=$ac_try;;
7843 esac
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845   (eval "$ac_link") 2>conftest.er1
7846   ac_status=$?
7847   grep -v '^ *+' conftest.er1 >conftest.err
7848   rm -f conftest.er1
7849   cat conftest.err >&5
7850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851   (exit $ac_status); } &&
7852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7853   { (case "(($ac_try" in
7854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855   *) ac_try_echo=$ac_try;;
7856 esac
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858   (eval "$ac_try") 2>&5
7859   ac_status=$?
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); }; } &&
7862          { ac_try='test -s conftest$ac_exeext'
7863   { (case "(($ac_try" in
7864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865   *) ac_try_echo=$ac_try;;
7866 esac
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868   (eval "$ac_try") 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); }; }; then
7872   llvm_cv_link_use_version_script=yes
7873 else
7874   echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7876
7877         llvm_cv_link_use_version_script=no
7878 fi
7879
7880 rm -f core conftest.err conftest.$ac_objext \
7881       conftest$ac_exeext conftest.$ac_ext
7882   rm "$tmp/export.map"
7883   rmdir "$tmp"
7884   CFLAGS="$oldcflags"
7885   ac_ext=c
7886 ac_cpp='$CPP $CPPFLAGS'
7887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7890
7891
7892 fi
7893 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7894 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7895 if test "$llvm_cv_link_use_version_script" = yes ; then
7896   HAVE_LINK_VERSION_SCRIPT=1
7897
7898   fi
7899
7900
7901
7902 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7903 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7904 if test "${ac_cv_path_GREP+set}" = set; then
7905   echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907   # Extract the first word of "grep ggrep" to use in msg output
7908 if test -z "$GREP"; then
7909 set dummy grep ggrep; ac_prog_name=$2
7910 if test "${ac_cv_path_GREP+set}" = set; then
7911   echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913   ac_path_GREP_found=false
7914 # Loop through the user's path and test for each of PROGNAME-LIST
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7917 do
7918   IFS=$as_save_IFS
7919   test -z "$as_dir" && as_dir=.
7920   for ac_prog in grep ggrep; do
7921   for ac_exec_ext in '' $ac_executable_extensions; do
7922     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7923     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7924     # Check for GNU ac_path_GREP and select it if it is found.
7925   # Check for GNU $ac_path_GREP
7926 case `"$ac_path_GREP" --version 2>&1` in
7927 *GNU*)
7928   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7929 *)
7930   ac_count=0
7931   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7932   while :
7933   do
7934     cat "conftest.in" "conftest.in" >"conftest.tmp"
7935     mv "conftest.tmp" "conftest.in"
7936     cp "conftest.in" "conftest.nl"
7937     echo 'GREP' >> "conftest.nl"
7938     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7939     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7940     ac_count=`expr $ac_count + 1`
7941     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7942       # Best one so far, save it but keep looking for a better one
7943       ac_cv_path_GREP="$ac_path_GREP"
7944       ac_path_GREP_max=$ac_count
7945     fi
7946     # 10*(2^10) chars as input seems more than enough
7947     test $ac_count -gt 10 && break
7948   done
7949   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7950 esac
7951
7952
7953     $ac_path_GREP_found && break 3
7954   done
7955 done
7956
7957 done
7958 IFS=$as_save_IFS
7959
7960
7961 fi
7962
7963 GREP="$ac_cv_path_GREP"
7964 if test -z "$GREP"; then
7965   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7966 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7967    { (exit 1); exit 1; }; }
7968 fi
7969
7970 else
7971   ac_cv_path_GREP=$GREP
7972 fi
7973
7974
7975 fi
7976 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7977 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7978  GREP="$ac_cv_path_GREP"
7979
7980
7981 { echo "$as_me:$LINENO: checking for egrep" >&5
7982 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7983 if test "${ac_cv_path_EGREP+set}" = set; then
7984   echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7987    then ac_cv_path_EGREP="$GREP -E"
7988    else
7989      # Extract the first word of "egrep" to use in msg output
7990 if test -z "$EGREP"; then
7991 set dummy egrep; ac_prog_name=$2
7992 if test "${ac_cv_path_EGREP+set}" = set; then
7993   echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995   ac_path_EGREP_found=false
7996 # Loop through the user's path and test for each of PROGNAME-LIST
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7999 do
8000   IFS=$as_save_IFS
8001   test -z "$as_dir" && as_dir=.
8002   for ac_prog in egrep; do
8003   for ac_exec_ext in '' $ac_executable_extensions; do
8004     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8005     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8006     # Check for GNU ac_path_EGREP and select it if it is found.
8007   # Check for GNU $ac_path_EGREP
8008 case `"$ac_path_EGREP" --version 2>&1` in
8009 *GNU*)
8010   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8011 *)
8012   ac_count=0
8013   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8014   while :
8015   do
8016     cat "conftest.in" "conftest.in" >"conftest.tmp"
8017     mv "conftest.tmp" "conftest.in"
8018     cp "conftest.in" "conftest.nl"
8019     echo 'EGREP' >> "conftest.nl"
8020     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8021     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8022     ac_count=`expr $ac_count + 1`
8023     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8024       # Best one so far, save it but keep looking for a better one
8025       ac_cv_path_EGREP="$ac_path_EGREP"
8026       ac_path_EGREP_max=$ac_count
8027     fi
8028     # 10*(2^10) chars as input seems more than enough
8029     test $ac_count -gt 10 && break
8030   done
8031   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8032 esac
8033
8034
8035     $ac_path_EGREP_found && break 3
8036   done
8037 done
8038
8039 done
8040 IFS=$as_save_IFS
8041
8042
8043 fi
8044
8045 EGREP="$ac_cv_path_EGREP"
8046 if test -z "$EGREP"; then
8047   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8048 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8049    { (exit 1); exit 1; }; }
8050 fi
8051
8052 else
8053   ac_cv_path_EGREP=$EGREP
8054 fi
8055
8056
8057    fi
8058 fi
8059 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8060 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8061  EGREP="$ac_cv_path_EGREP"
8062
8063
8064 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8065 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8066 if test "${ac_cv_header_stdc+set}" = set; then
8067   echo $ECHO_N "(cached) $ECHO_C" >&6
8068 else
8069   cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h.  */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h.  */
8075 #include <stdlib.h>
8076 #include <stdarg.h>
8077 #include <string.h>
8078 #include <float.h>
8079
8080 int
8081 main ()
8082 {
8083
8084   ;
8085   return 0;
8086 }
8087 _ACEOF
8088 rm -f conftest.$ac_objext
8089 if { (ac_try="$ac_compile"
8090 case "(($ac_try" in
8091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092   *) ac_try_echo=$ac_try;;
8093 esac
8094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095   (eval "$ac_compile") 2>conftest.er1
8096   ac_status=$?
8097   grep -v '^ *+' conftest.er1 >conftest.err
8098   rm -f conftest.er1
8099   cat conftest.err >&5
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); } &&
8102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8103   { (case "(($ac_try" in
8104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105   *) ac_try_echo=$ac_try;;
8106 esac
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108   (eval "$ac_try") 2>&5
8109   ac_status=$?
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); }; } &&
8112          { ac_try='test -s conftest.$ac_objext'
8113   { (case "(($ac_try" in
8114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115   *) ac_try_echo=$ac_try;;
8116 esac
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118   (eval "$ac_try") 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); }; }; then
8122   ac_cv_header_stdc=yes
8123 else
8124   echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8126
8127         ac_cv_header_stdc=no
8128 fi
8129
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131
8132 if test $ac_cv_header_stdc = yes; then
8133   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8134   cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h.  */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h.  */
8140 #include <string.h>
8141
8142 _ACEOF
8143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8144   $EGREP "memchr" >/dev/null 2>&1; then
8145   :
8146 else
8147   ac_cv_header_stdc=no
8148 fi
8149 rm -f conftest*
8150
8151 fi
8152
8153 if test $ac_cv_header_stdc = yes; then
8154   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8155   cat >conftest.$ac_ext <<_ACEOF
8156 /* confdefs.h.  */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h.  */
8161 #include <stdlib.h>
8162
8163 _ACEOF
8164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8165   $EGREP "free" >/dev/null 2>&1; then
8166   :
8167 else
8168   ac_cv_header_stdc=no
8169 fi
8170 rm -f conftest*
8171
8172 fi
8173
8174 if test $ac_cv_header_stdc = yes; then
8175   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8176   if test "$cross_compiling" = yes; then
8177   :
8178 else
8179   cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h.  */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h.  */
8185 #include <ctype.h>
8186 #include <stdlib.h>
8187 #if ((' ' & 0x0FF) == 0x020)
8188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8190 #else
8191 # define ISLOWER(c) \
8192                    (('a' <= (c) && (c) <= 'i') \
8193                      || ('j' <= (c) && (c) <= 'r') \
8194                      || ('s' <= (c) && (c) <= 'z'))
8195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8196 #endif
8197
8198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8199 int
8200 main ()
8201 {
8202   int i;
8203   for (i = 0; i < 256; i++)
8204     if (XOR (islower (i), ISLOWER (i))
8205         || toupper (i) != TOUPPER (i))
8206       return 2;
8207   return 0;
8208 }
8209 _ACEOF
8210 rm -f conftest$ac_exeext
8211 if { (ac_try="$ac_link"
8212 case "(($ac_try" in
8213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214   *) ac_try_echo=$ac_try;;
8215 esac
8216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217   (eval "$ac_link") 2>&5
8218   ac_status=$?
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8221   { (case "(($ac_try" in
8222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223   *) ac_try_echo=$ac_try;;
8224 esac
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226   (eval "$ac_try") 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); }; }; then
8230   :
8231 else
8232   echo "$as_me: program exited with status $ac_status" >&5
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8235
8236 ( exit $ac_status )
8237 ac_cv_header_stdc=no
8238 fi
8239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8240 fi
8241
8242
8243 fi
8244 fi
8245 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8246 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8247 if test $ac_cv_header_stdc = yes; then
8248
8249 cat >>confdefs.h <<\_ACEOF
8250 #define STDC_HEADERS 1
8251 _ACEOF
8252
8253 fi
8254
8255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8266                   inttypes.h stdint.h unistd.h
8267 do
8268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h.  */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h.  */
8280 $ac_includes_default
8281
8282 #include <$ac_header>
8283 _ACEOF
8284 rm -f conftest.$ac_objext
8285 if { (ac_try="$ac_compile"
8286 case "(($ac_try" in
8287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288   *) ac_try_echo=$ac_try;;
8289 esac
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291   (eval "$ac_compile") 2>conftest.er1
8292   ac_status=$?
8293   grep -v '^ *+' conftest.er1 >conftest.err
8294   rm -f conftest.er1
8295   cat conftest.err >&5
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } &&
8298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8299   { (case "(($ac_try" in
8300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301   *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304   (eval "$ac_try") 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); }; } &&
8308          { ac_try='test -s conftest.$ac_objext'
8309   { (case "(($ac_try" in
8310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311   *) ac_try_echo=$ac_try;;
8312 esac
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314   (eval "$ac_try") 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); }; }; then
8318   eval "$as_ac_Header=yes"
8319 else
8320   echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323         eval "$as_ac_Header=no"
8324 fi
8325
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 fi
8328 ac_res=`eval echo '${'$as_ac_Header'}'`
8329                { echo "$as_me:$LINENO: result: $ac_res" >&5
8330 echo "${ECHO_T}$ac_res" >&6; }
8331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8332   cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8334 _ACEOF
8335
8336 fi
8337
8338 done
8339
8340
8341
8342 for ac_header in errno.h
8343 do
8344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8346   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8349   echo $ECHO_N "(cached) $ECHO_C" >&6
8350 fi
8351 ac_res=`eval echo '${'$as_ac_Header'}'`
8352                { echo "$as_me:$LINENO: result: $ac_res" >&5
8353 echo "${ECHO_T}$ac_res" >&6; }
8354 else
8355   # Is the header compilable?
8356 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8358 cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h.  */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h.  */
8364 $ac_includes_default
8365 #include <$ac_header>
8366 _ACEOF
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8369 case "(($ac_try" in
8370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371   *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374   (eval "$ac_compile") 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8382   { (case "(($ac_try" in
8383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384   *) ac_try_echo=$ac_try;;
8385 esac
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387   (eval "$ac_try") 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); }; } &&
8391          { ac_try='test -s conftest.$ac_objext'
8392   { (case "(($ac_try" in
8393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394   *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397   (eval "$ac_try") 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); }; }; then
8401   ac_header_compiler=yes
8402 else
8403   echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8405
8406         ac_header_compiler=no
8407 fi
8408
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8411 echo "${ECHO_T}$ac_header_compiler" >&6; }
8412
8413 # Is the header present?
8414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8416 cat >conftest.$ac_ext <<_ACEOF
8417 /* confdefs.h.  */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h.  */
8422 #include <$ac_header>
8423 _ACEOF
8424 if { (ac_try="$ac_cpp conftest.$ac_ext"
8425 case "(($ac_try" in
8426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427   *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8431   ac_status=$?
8432   grep -v '^ *+' conftest.er1 >conftest.err
8433   rm -f conftest.er1
8434   cat conftest.err >&5
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); } >/dev/null; then
8437   if test -s conftest.err; then
8438     ac_cpp_err=$ac_c_preproc_warn_flag
8439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8440   else
8441     ac_cpp_err=
8442   fi
8443 else
8444   ac_cpp_err=yes
8445 fi
8446 if test -z "$ac_cpp_err"; then
8447   ac_header_preproc=yes
8448 else
8449   echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452   ac_header_preproc=no
8453 fi
8454
8455 rm -f conftest.err conftest.$ac_ext
8456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8457 echo "${ECHO_T}$ac_header_preproc" >&6; }
8458
8459 # So?  What about this header?
8460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8461   yes:no: )
8462     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8466     ac_header_preproc=yes
8467     ;;
8468   no:yes:* )
8469     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8471     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8472 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8473     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8475     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8476 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8479     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8481     ( cat <<\_ASBOX
8482 ## ------------------------------------ ##
8483 ## Report this to http://llvm.org/bugs/ ##
8484 ## ------------------------------------ ##
8485 _ASBOX
8486      ) | sed "s/^/$as_me: WARNING:     /" >&2
8487     ;;
8488 esac
8489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8492   echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494   eval "$as_ac_Header=\$ac_header_preproc"
8495 fi
8496 ac_res=`eval echo '${'$as_ac_Header'}'`
8497                { echo "$as_me:$LINENO: result: $ac_res" >&5
8498 echo "${ECHO_T}$ac_res" >&6; }
8499
8500 fi
8501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8502   cat >>confdefs.h <<_ACEOF
8503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8504 _ACEOF
8505
8506 fi
8507
8508 done
8509
8510
8511 case "$llvm_cv_os_type" in
8512   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8513   Darwin) llvm_shlib_ext=.dylib ;;
8514   *) llvm_shlib_ext=.so ;;
8515 esac
8516
8517
8518 cat >>confdefs.h <<_ACEOF
8519 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8520 _ACEOF
8521
8522
8523 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8524 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8525
8526 ICC=no
8527 IXX=no
8528 case $CC in
8529   icc*|icpc*)
8530     ICC=yes
8531     IXX=yes
8532     ;;
8533    *)
8534     ;;
8535 esac
8536
8537 if test "$GCC" != "yes" && test "$ICC" != "yes"
8538 then
8539   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8540 echo "$as_me: error: gcc|icc required but not found" >&2;}
8541    { (exit 1); exit 1; }; }
8542 fi
8543
8544 if test "$GXX" != "yes" && test "$IXX" != "yes"
8545 then
8546   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8547 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8548    { (exit 1); exit 1; }; }
8549 fi
8550
8551 if test "$GCC" = "yes"
8552 then
8553   cat >conftest.$ac_ext <<_ACEOF
8554
8555   /* confdefs.h.  */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h.  */
8560
8561     #if !defined(__GNUC__) || __GNUC__ < 3
8562     #error Unsupported GCC version
8563     #endif
8564
8565
8566 _ACEOF
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8569 case "(($ac_try" in
8570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571   *) ac_try_echo=$ac_try;;
8572 esac
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574   (eval "$ac_compile") 2>conftest.er1
8575   ac_status=$?
8576   grep -v '^ *+' conftest.er1 >conftest.err
8577   rm -f conftest.er1
8578   cat conftest.err >&5
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); } &&
8581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582   { (case "(($ac_try" in
8583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584   *) ac_try_echo=$ac_try;;
8585 esac
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587   (eval "$ac_try") 2>&5
8588   ac_status=$?
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); }; } &&
8591          { ac_try='test -s conftest.$ac_objext'
8592   { (case "(($ac_try" in
8593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594   *) ac_try_echo=$ac_try;;
8595 esac
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597   (eval "$ac_try") 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; }; then
8601   :
8602 else
8603   echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8607 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8608    { (exit 1); exit 1; }; }
8609 fi
8610
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 fi
8613
8614 if test -z "$llvm_cv_gnu_make_command"
8615 then
8616   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8617 echo "$as_me: error: GNU Make required but not found" >&2;}
8618    { (exit 1); exit 1; }; }
8619 fi
8620
8621 { echo "$as_me:$LINENO: result: ok" >&5
8622 echo "${ECHO_T}ok" >&6; }
8623
8624 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8625 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8626 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8627
8628 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8629
8630 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8631
8632
8633 NO_UNINITIALIZED=
8634 NO_MAYBE_UNINITIALIZED=
8635 if test "$GXX" = "yes"
8636 then
8637   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8638
8639         if test -z "$NO_MAYBE_UNINITIALIZED"
8640   then
8641     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8642
8643   fi
8644 fi
8645 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8646 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8647
8648
8649 # Check whether --with-python was given.
8650 if test "${with_python+set}" = set; then
8651   withval=$with_python; PYTHON="$withval"
8652 fi
8653
8654
8655 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8656   { echo "$as_me:$LINENO: checking for python" >&5
8657 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8658   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8659 echo "${ECHO_T}user defined: $with_python" >&6; }
8660 else
8661   if test -n "$PYTHON" ; then
8662     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8663 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8664   fi
8665
8666   # Extract the first word of "python python2 python26", so it can be a program name with args.
8667 set dummy python python2 python26; ac_word=$2
8668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8670 if test "${ac_cv_path_PYTHON+set}" = set; then
8671   echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673   case $PYTHON in
8674   [\\/]* | ?:[\\/]*)
8675   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8676   ;;
8677   *)
8678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 for as_dir in $PATH
8680 do
8681   IFS=$as_save_IFS
8682   test -z "$as_dir" && as_dir=.
8683   for ac_exec_ext in '' $ac_executable_extensions; do
8684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8685     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8687     break 2
8688   fi
8689 done
8690 done
8691 IFS=$as_save_IFS
8692
8693   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8694 echo "${ECHO_T}not found" >&6; }
8695                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8696 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8697    { (exit 1); exit 1; }; }"
8698   ;;
8699 esac
8700 fi
8701 PYTHON=$ac_cv_path_PYTHON
8702 if test -n "$PYTHON"; then
8703   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8704 echo "${ECHO_T}$PYTHON" >&6; }
8705 else
8706   { echo "$as_me:$LINENO: result: no" >&5
8707 echo "${ECHO_T}no" >&6; }
8708 fi
8709
8710
8711 fi
8712
8713 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8714 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8715 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8716 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8717 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8718 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8719 if test "$ac_python_version_major" -gt "2" || \
8720    (test "$ac_python_version_major" -eq "2" && \
8721     test "$ac_python_version_minor" -ge "5") ; then
8722   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8723 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8724 else
8725   { echo "$as_me:$LINENO: result: not found" >&5
8726 echo "${ECHO_T}not found" >&6; }
8727   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8728 See \`config.log' for more details." >&5
8729 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8730 See \`config.log' for more details." >&2;}
8731    { (exit 1); exit 1; }; }
8732 fi
8733
8734
8735
8736 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8737 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8738 if test "${ac_cv_lib_m_sin+set}" = set; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741   ac_check_lib_save_LIBS=$LIBS
8742 LIBS="-lm  $LIBS"
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h.  */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h.  */
8749
8750 /* Override any GCC internal prototype to avoid an error.
8751    Use char because int might match the return type of a GCC
8752    builtin and then its argument prototype would still apply.  */
8753 #ifdef __cplusplus
8754 extern "C"
8755 #endif
8756 char sin ();
8757 int
8758 main ()
8759 {
8760 return sin ();
8761   ;
8762   return 0;
8763 }
8764 _ACEOF
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (ac_try="$ac_link"
8767 case "(($ac_try" in
8768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769   *) ac_try_echo=$ac_try;;
8770 esac
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772   (eval "$ac_link") 2>conftest.er1
8773   ac_status=$?
8774   grep -v '^ *+' conftest.er1 >conftest.err
8775   rm -f conftest.er1
8776   cat conftest.err >&5
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); } &&
8779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8780   { (case "(($ac_try" in
8781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782   *) ac_try_echo=$ac_try;;
8783 esac
8784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785   (eval "$ac_try") 2>&5
8786   ac_status=$?
8787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788   (exit $ac_status); }; } &&
8789          { ac_try='test -s conftest$ac_exeext'
8790   { (case "(($ac_try" in
8791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792   *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795   (eval "$ac_try") 2>&5
8796   ac_status=$?
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); }; }; then
8799   ac_cv_lib_m_sin=yes
8800 else
8801   echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804         ac_cv_lib_m_sin=no
8805 fi
8806
8807 rm -f core conftest.err conftest.$ac_objext \
8808       conftest$ac_exeext conftest.$ac_ext
8809 LIBS=$ac_check_lib_save_LIBS
8810 fi
8811 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8812 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8813 if test $ac_cv_lib_m_sin = yes; then
8814   cat >>confdefs.h <<_ACEOF
8815 #define HAVE_LIBM 1
8816 _ACEOF
8817
8818   LIBS="-lm $LIBS"
8819
8820 fi
8821
8822 if test "$llvm_cv_os_type" = "MingW" ; then
8823
8824 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8825 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8826 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8827   echo $ECHO_N "(cached) $ECHO_C" >&6
8828 else
8829   ac_check_lib_save_LIBS=$LIBS
8830 LIBS="-limagehlp  $LIBS"
8831 cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h.  */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h.  */
8837
8838
8839 int
8840 main ()
8841 {
8842 return main ();
8843   ;
8844   return 0;
8845 }
8846 _ACEOF
8847 rm -f conftest.$ac_objext conftest$ac_exeext
8848 if { (ac_try="$ac_link"
8849 case "(($ac_try" in
8850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851   *) ac_try_echo=$ac_try;;
8852 esac
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854   (eval "$ac_link") 2>conftest.er1
8855   ac_status=$?
8856   grep -v '^ *+' conftest.er1 >conftest.err
8857   rm -f conftest.er1
8858   cat conftest.err >&5
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); } &&
8861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8862   { (case "(($ac_try" in
8863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864   *) ac_try_echo=$ac_try;;
8865 esac
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867   (eval "$ac_try") 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; } &&
8871          { ac_try='test -s conftest$ac_exeext'
8872   { (case "(($ac_try" in
8873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874   *) ac_try_echo=$ac_try;;
8875 esac
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877   (eval "$ac_try") 2>&5
8878   ac_status=$?
8879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880   (exit $ac_status); }; }; then
8881   ac_cv_lib_imagehlp_main=yes
8882 else
8883   echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8885
8886         ac_cv_lib_imagehlp_main=no
8887 fi
8888
8889 rm -f core conftest.err conftest.$ac_objext \
8890       conftest$ac_exeext conftest.$ac_ext
8891 LIBS=$ac_check_lib_save_LIBS
8892 fi
8893 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8894 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8895 if test $ac_cv_lib_imagehlp_main = yes; then
8896   cat >>confdefs.h <<_ACEOF
8897 #define HAVE_LIBIMAGEHLP 1
8898 _ACEOF
8899
8900   LIBS="-limagehlp $LIBS"
8901
8902 fi
8903
8904
8905 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8906 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8907 if test "${ac_cv_lib_psapi_main+set}" = set; then
8908   echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910   ac_check_lib_save_LIBS=$LIBS
8911 LIBS="-lpsapi  $LIBS"
8912 cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h.  */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h.  */
8918
8919
8920 int
8921 main ()
8922 {
8923 return main ();
8924   ;
8925   return 0;
8926 }
8927 _ACEOF
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8930 case "(($ac_try" in
8931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932   *) ac_try_echo=$ac_try;;
8933 esac
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935   (eval "$ac_link") 2>conftest.er1
8936   ac_status=$?
8937   grep -v '^ *+' conftest.er1 >conftest.err
8938   rm -f conftest.er1
8939   cat conftest.err >&5
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } &&
8942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8943   { (case "(($ac_try" in
8944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945   *) ac_try_echo=$ac_try;;
8946 esac
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948   (eval "$ac_try") 2>&5
8949   ac_status=$?
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); }; } &&
8952          { ac_try='test -s conftest$ac_exeext'
8953   { (case "(($ac_try" in
8954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955   *) ac_try_echo=$ac_try;;
8956 esac
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958   (eval "$ac_try") 2>&5
8959   ac_status=$?
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); }; }; then
8962   ac_cv_lib_psapi_main=yes
8963 else
8964   echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967         ac_cv_lib_psapi_main=no
8968 fi
8969
8970 rm -f core conftest.err conftest.$ac_objext \
8971       conftest$ac_exeext conftest.$ac_ext
8972 LIBS=$ac_check_lib_save_LIBS
8973 fi
8974 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8975 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8976 if test $ac_cv_lib_psapi_main = yes; then
8977   cat >>confdefs.h <<_ACEOF
8978 #define HAVE_LIBPSAPI 1
8979 _ACEOF
8980
8981   LIBS="-lpsapi $LIBS"
8982
8983 fi
8984
8985
8986 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8987 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8988 if test "${ac_cv_lib_shell32_main+set}" = set; then
8989   echo $ECHO_N "(cached) $ECHO_C" >&6
8990 else
8991   ac_check_lib_save_LIBS=$LIBS
8992 LIBS="-lshell32  $LIBS"
8993 cat >conftest.$ac_ext <<_ACEOF
8994 /* confdefs.h.  */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h.  */
8999
9000
9001 int
9002 main ()
9003 {
9004 return main ();
9005   ;
9006   return 0;
9007 }
9008 _ACEOF
9009 rm -f conftest.$ac_objext conftest$ac_exeext
9010 if { (ac_try="$ac_link"
9011 case "(($ac_try" in
9012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013   *) ac_try_echo=$ac_try;;
9014 esac
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016   (eval "$ac_link") 2>conftest.er1
9017   ac_status=$?
9018   grep -v '^ *+' conftest.er1 >conftest.err
9019   rm -f conftest.er1
9020   cat conftest.err >&5
9021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); } &&
9023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9024   { (case "(($ac_try" in
9025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026   *) ac_try_echo=$ac_try;;
9027 esac
9028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9029   (eval "$ac_try") 2>&5
9030   ac_status=$?
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   (exit $ac_status); }; } &&
9033          { ac_try='test -s conftest$ac_exeext'
9034   { (case "(($ac_try" in
9035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036   *) ac_try_echo=$ac_try;;
9037 esac
9038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039   (eval "$ac_try") 2>&5
9040   ac_status=$?
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); }; }; then
9043   ac_cv_lib_shell32_main=yes
9044 else
9045   echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9047
9048         ac_cv_lib_shell32_main=no
9049 fi
9050
9051 rm -f core conftest.err conftest.$ac_objext \
9052       conftest$ac_exeext conftest.$ac_ext
9053 LIBS=$ac_check_lib_save_LIBS
9054 fi
9055 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
9056 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
9057 if test $ac_cv_lib_shell32_main = yes; then
9058   cat >>confdefs.h <<_ACEOF
9059 #define HAVE_LIBSHELL32 1
9060 _ACEOF
9061
9062   LIBS="-lshell32 $LIBS"
9063
9064 fi
9065
9066 fi
9067
9068 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9069 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9070 if test "${ac_cv_search_dlopen+set}" = set; then
9071   echo $ECHO_N "(cached) $ECHO_C" >&6
9072 else
9073   ac_func_search_save_LIBS=$LIBS
9074 cat >conftest.$ac_ext <<_ACEOF
9075 /* confdefs.h.  */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h.  */
9080
9081 /* Override any GCC internal prototype to avoid an error.
9082    Use char because int might match the return type of a GCC
9083    builtin and then its argument prototype would still apply.  */
9084 #ifdef __cplusplus
9085 extern "C"
9086 #endif
9087 char dlopen ();
9088 int
9089 main ()
9090 {
9091 return dlopen ();
9092   ;
9093   return 0;
9094 }
9095 _ACEOF
9096 for ac_lib in '' dl; do
9097   if test -z "$ac_lib"; then
9098     ac_res="none required"
9099   else
9100     ac_res=-l$ac_lib
9101     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9102   fi
9103   rm -f conftest.$ac_objext conftest$ac_exeext
9104 if { (ac_try="$ac_link"
9105 case "(($ac_try" in
9106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107   *) ac_try_echo=$ac_try;;
9108 esac
9109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110   (eval "$ac_link") 2>conftest.er1
9111   ac_status=$?
9112   grep -v '^ *+' conftest.er1 >conftest.err
9113   rm -f conftest.er1
9114   cat conftest.err >&5
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); } &&
9117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9118   { (case "(($ac_try" in
9119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120   *) ac_try_echo=$ac_try;;
9121 esac
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123   (eval "$ac_try") 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); }; } &&
9127          { ac_try='test -s conftest$ac_exeext'
9128   { (case "(($ac_try" in
9129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130   *) ac_try_echo=$ac_try;;
9131 esac
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133   (eval "$ac_try") 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); }; }; then
9137   ac_cv_search_dlopen=$ac_res
9138 else
9139   echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9141
9142
9143 fi
9144
9145 rm -f core conftest.err conftest.$ac_objext \
9146       conftest$ac_exeext
9147   if test "${ac_cv_search_dlopen+set}" = set; then
9148   break
9149 fi
9150 done
9151 if test "${ac_cv_search_dlopen+set}" = set; then
9152   :
9153 else
9154   ac_cv_search_dlopen=no
9155 fi
9156 rm conftest.$ac_ext
9157 LIBS=$ac_func_search_save_LIBS
9158 fi
9159 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9160 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9161 ac_res=$ac_cv_search_dlopen
9162 if test "$ac_res" != no; then
9163   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9164
9165
9166 cat >>confdefs.h <<\_ACEOF
9167 #define HAVE_DLOPEN 1
9168 _ACEOF
9169
9170 HAVE_DLOPEN='1'
9171
9172
9173 else
9174   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9175 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9176 fi
9177
9178
9179 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9180 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9181 if test "${ac_cv_search_clock_gettime+set}" = set; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   ac_func_search_save_LIBS=$LIBS
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h.  */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h.  */
9191
9192 /* Override any GCC internal prototype to avoid an error.
9193    Use char because int might match the return type of a GCC
9194    builtin and then its argument prototype would still apply.  */
9195 #ifdef __cplusplus
9196 extern "C"
9197 #endif
9198 char clock_gettime ();
9199 int
9200 main ()
9201 {
9202 return clock_gettime ();
9203   ;
9204   return 0;
9205 }
9206 _ACEOF
9207 for ac_lib in '' rt; do
9208   if test -z "$ac_lib"; then
9209     ac_res="none required"
9210   else
9211     ac_res=-l$ac_lib
9212     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9213   fi
9214   rm -f conftest.$ac_objext conftest$ac_exeext
9215 if { (ac_try="$ac_link"
9216 case "(($ac_try" in
9217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218   *) ac_try_echo=$ac_try;;
9219 esac
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221   (eval "$ac_link") 2>conftest.er1
9222   ac_status=$?
9223   grep -v '^ *+' conftest.er1 >conftest.err
9224   rm -f conftest.er1
9225   cat conftest.err >&5
9226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); } &&
9228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9229   { (case "(($ac_try" in
9230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231   *) ac_try_echo=$ac_try;;
9232 esac
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234   (eval "$ac_try") 2>&5
9235   ac_status=$?
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); }; } &&
9238          { ac_try='test -s conftest$ac_exeext'
9239   { (case "(($ac_try" in
9240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241   *) ac_try_echo=$ac_try;;
9242 esac
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244   (eval "$ac_try") 2>&5
9245   ac_status=$?
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); }; }; then
9248   ac_cv_search_clock_gettime=$ac_res
9249 else
9250   echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9252
9253
9254 fi
9255
9256 rm -f core conftest.err conftest.$ac_objext \
9257       conftest$ac_exeext
9258   if test "${ac_cv_search_clock_gettime+set}" = set; then
9259   break
9260 fi
9261 done
9262 if test "${ac_cv_search_clock_gettime+set}" = set; then
9263   :
9264 else
9265   ac_cv_search_clock_gettime=no
9266 fi
9267 rm conftest.$ac_ext
9268 LIBS=$ac_func_search_save_LIBS
9269 fi
9270 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9271 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9272 ac_res=$ac_cv_search_clock_gettime
9273 if test "$ac_res" != no; then
9274   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9275
9276 fi
9277
9278
9279 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9280     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9281 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9282 if test "${ac_cv_search_setupterm+set}" = set; then
9283   echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285   ac_func_search_save_LIBS=$LIBS
9286 cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h.  */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h.  */
9292
9293 /* Override any GCC internal prototype to avoid an error.
9294    Use char because int might match the return type of a GCC
9295    builtin and then its argument prototype would still apply.  */
9296 #ifdef __cplusplus
9297 extern "C"
9298 #endif
9299 char setupterm ();
9300 int
9301 main ()
9302 {
9303 return setupterm ();
9304   ;
9305   return 0;
9306 }
9307 _ACEOF
9308 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9309   if test -z "$ac_lib"; then
9310     ac_res="none required"
9311   else
9312     ac_res=-l$ac_lib
9313     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9314   fi
9315   rm -f conftest.$ac_objext conftest$ac_exeext
9316 if { (ac_try="$ac_link"
9317 case "(($ac_try" in
9318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319   *) ac_try_echo=$ac_try;;
9320 esac
9321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322   (eval "$ac_link") 2>conftest.er1
9323   ac_status=$?
9324   grep -v '^ *+' conftest.er1 >conftest.err
9325   rm -f conftest.er1
9326   cat conftest.err >&5
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); } &&
9329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9330   { (case "(($ac_try" in
9331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332   *) ac_try_echo=$ac_try;;
9333 esac
9334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9335   (eval "$ac_try") 2>&5
9336   ac_status=$?
9337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338   (exit $ac_status); }; } &&
9339          { ac_try='test -s conftest$ac_exeext'
9340   { (case "(($ac_try" in
9341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342   *) ac_try_echo=$ac_try;;
9343 esac
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345   (eval "$ac_try") 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; }; then
9349   ac_cv_search_setupterm=$ac_res
9350 else
9351   echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9353
9354
9355 fi
9356
9357 rm -f core conftest.err conftest.$ac_objext \
9358       conftest$ac_exeext
9359   if test "${ac_cv_search_setupterm+set}" = set; then
9360   break
9361 fi
9362 done
9363 if test "${ac_cv_search_setupterm+set}" = set; then
9364   :
9365 else
9366   ac_cv_search_setupterm=no
9367 fi
9368 rm conftest.$ac_ext
9369 LIBS=$ac_func_search_save_LIBS
9370 fi
9371 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9372 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9373 ac_res=$ac_cv_search_setupterm
9374 if test "$ac_res" != no; then
9375   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9376
9377
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_TERMINFO 1
9380 _ACEOF
9381
9382 HAVE_TERMINFO='1'
9383
9384
9385 fi
9386
9387 fi
9388
9389 if test "$llvm_cv_enable_libedit" = "yes" ; then
9390   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9391 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9392 if test "${ac_cv_search_el_init+set}" = set; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395   ac_func_search_save_LIBS=$LIBS
9396 cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h.  */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h.  */
9402
9403 /* Override any GCC internal prototype to avoid an error.
9404    Use char because int might match the return type of a GCC
9405    builtin and then its argument prototype would still apply.  */
9406 #ifdef __cplusplus
9407 extern "C"
9408 #endif
9409 char el_init ();
9410 int
9411 main ()
9412 {
9413 return el_init ();
9414   ;
9415   return 0;
9416 }
9417 _ACEOF
9418 for ac_lib in '' edit; do
9419   if test -z "$ac_lib"; then
9420     ac_res="none required"
9421   else
9422     ac_res=-l$ac_lib
9423     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9424   fi
9425   rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (ac_try="$ac_link"
9427 case "(($ac_try" in
9428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429   *) ac_try_echo=$ac_try;;
9430 esac
9431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9432   (eval "$ac_link") 2>conftest.er1
9433   ac_status=$?
9434   grep -v '^ *+' conftest.er1 >conftest.err
9435   rm -f conftest.er1
9436   cat conftest.err >&5
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); } &&
9439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9440   { (case "(($ac_try" in
9441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442   *) ac_try_echo=$ac_try;;
9443 esac
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445   (eval "$ac_try") 2>&5
9446   ac_status=$?
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); }; } &&
9449          { ac_try='test -s conftest$ac_exeext'
9450   { (case "(($ac_try" in
9451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452   *) ac_try_echo=$ac_try;;
9453 esac
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455   (eval "$ac_try") 2>&5
9456   ac_status=$?
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); }; }; then
9459   ac_cv_search_el_init=$ac_res
9460 else
9461   echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9463
9464
9465 fi
9466
9467 rm -f core conftest.err conftest.$ac_objext \
9468       conftest$ac_exeext
9469   if test "${ac_cv_search_el_init+set}" = set; then
9470   break
9471 fi
9472 done
9473 if test "${ac_cv_search_el_init+set}" = set; then
9474   :
9475 else
9476   ac_cv_search_el_init=no
9477 fi
9478 rm conftest.$ac_ext
9479 LIBS=$ac_func_search_save_LIBS
9480 fi
9481 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9482 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9483 ac_res=$ac_cv_search_el_init
9484 if test "$ac_res" != no; then
9485   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9486
9487 cat >>confdefs.h <<\_ACEOF
9488 #define HAVE_LIBEDIT 1
9489 _ACEOF
9490
9491 fi
9492
9493 fi
9494
9495 if test "$llvm_cv_enable_libffi" = "yes" ; then
9496   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9497 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9498 if test "${ac_cv_search_ffi_call+set}" = set; then
9499   echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501   ac_func_search_save_LIBS=$LIBS
9502 cat >conftest.$ac_ext <<_ACEOF
9503 /* confdefs.h.  */
9504 _ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h.  */
9508
9509 /* Override any GCC internal prototype to avoid an error.
9510    Use char because int might match the return type of a GCC
9511    builtin and then its argument prototype would still apply.  */
9512 #ifdef __cplusplus
9513 extern "C"
9514 #endif
9515 char ffi_call ();
9516 int
9517 main ()
9518 {
9519 return ffi_call ();
9520   ;
9521   return 0;
9522 }
9523 _ACEOF
9524 for ac_lib in '' ffi; do
9525   if test -z "$ac_lib"; then
9526     ac_res="none required"
9527   else
9528     ac_res=-l$ac_lib
9529     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9530   fi
9531   rm -f conftest.$ac_objext conftest$ac_exeext
9532 if { (ac_try="$ac_link"
9533 case "(($ac_try" in
9534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535   *) ac_try_echo=$ac_try;;
9536 esac
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538   (eval "$ac_link") 2>conftest.er1
9539   ac_status=$?
9540   grep -v '^ *+' conftest.er1 >conftest.err
9541   rm -f conftest.er1
9542   cat conftest.err >&5
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); } &&
9545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9546   { (case "(($ac_try" in
9547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548   *) ac_try_echo=$ac_try;;
9549 esac
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551   (eval "$ac_try") 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); }; } &&
9555          { ac_try='test -s conftest$ac_exeext'
9556   { (case "(($ac_try" in
9557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558   *) ac_try_echo=$ac_try;;
9559 esac
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561   (eval "$ac_try") 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); }; }; then
9565   ac_cv_search_ffi_call=$ac_res
9566 else
9567   echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9569
9570
9571 fi
9572
9573 rm -f core conftest.err conftest.$ac_objext \
9574       conftest$ac_exeext
9575   if test "${ac_cv_search_ffi_call+set}" = set; then
9576   break
9577 fi
9578 done
9579 if test "${ac_cv_search_ffi_call+set}" = set; then
9580   :
9581 else
9582   ac_cv_search_ffi_call=no
9583 fi
9584 rm conftest.$ac_ext
9585 LIBS=$ac_func_search_save_LIBS
9586 fi
9587 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9588 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9589 ac_res=$ac_cv_search_ffi_call
9590 if test "$ac_res" != no; then
9591   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9592
9593 cat >>confdefs.h <<\_ACEOF
9594 #define HAVE_FFI_CALL 1
9595 _ACEOF
9596
9597 else
9598   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9599 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9600    { (exit 1); exit 1; }; }
9601 fi
9602
9603 fi
9604
9605 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9606 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9607 if test "${ac_cv_search_mallinfo+set}" = set; then
9608   echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610   ac_func_search_save_LIBS=$LIBS
9611 cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h.  */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h.  */
9617
9618 /* Override any GCC internal prototype to avoid an error.
9619    Use char because int might match the return type of a GCC
9620    builtin and then its argument prototype would still apply.  */
9621 #ifdef __cplusplus
9622 extern "C"
9623 #endif
9624 char mallinfo ();
9625 int
9626 main ()
9627 {
9628 return mallinfo ();
9629   ;
9630   return 0;
9631 }
9632 _ACEOF
9633 for ac_lib in '' malloc; do
9634   if test -z "$ac_lib"; then
9635     ac_res="none required"
9636   else
9637     ac_res=-l$ac_lib
9638     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9639   fi
9640   rm -f conftest.$ac_objext conftest$ac_exeext
9641 if { (ac_try="$ac_link"
9642 case "(($ac_try" in
9643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644   *) ac_try_echo=$ac_try;;
9645 esac
9646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647   (eval "$ac_link") 2>conftest.er1
9648   ac_status=$?
9649   grep -v '^ *+' conftest.er1 >conftest.err
9650   rm -f conftest.er1
9651   cat conftest.err >&5
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); } &&
9654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9655   { (case "(($ac_try" in
9656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657   *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660   (eval "$ac_try") 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; } &&
9664          { ac_try='test -s conftest$ac_exeext'
9665   { (case "(($ac_try" in
9666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667   *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670   (eval "$ac_try") 2>&5
9671   ac_status=$?
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); }; }; then
9674   ac_cv_search_mallinfo=$ac_res
9675 else
9676   echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9678
9679
9680 fi
9681
9682 rm -f core conftest.err conftest.$ac_objext \
9683       conftest$ac_exeext
9684   if test "${ac_cv_search_mallinfo+set}" = set; then
9685   break
9686 fi
9687 done
9688 if test "${ac_cv_search_mallinfo+set}" = set; then
9689   :
9690 else
9691   ac_cv_search_mallinfo=no
9692 fi
9693 rm conftest.$ac_ext
9694 LIBS=$ac_func_search_save_LIBS
9695 fi
9696 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9697 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9698 ac_res=$ac_cv_search_mallinfo
9699 if test "$ac_res" != no; then
9700   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9701
9702 cat >>confdefs.h <<\_ACEOF
9703 #define HAVE_MALLINFO 1
9704 _ACEOF
9705
9706 fi
9707
9708
9709 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9710
9711 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9712 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9713 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   ac_check_lib_save_LIBS=$LIBS
9717 LIBS="-lpthread  $LIBS"
9718 cat >conftest.$ac_ext <<_ACEOF
9719 /* confdefs.h.  */
9720 _ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h.  */
9724
9725 /* Override any GCC internal prototype to avoid an error.
9726    Use char because int might match the return type of a GCC
9727    builtin and then its argument prototype would still apply.  */
9728 #ifdef __cplusplus
9729 extern "C"
9730 #endif
9731 char pthread_mutex_init ();
9732 int
9733 main ()
9734 {
9735 return pthread_mutex_init ();
9736   ;
9737   return 0;
9738 }
9739 _ACEOF
9740 rm -f conftest.$ac_objext conftest$ac_exeext
9741 if { (ac_try="$ac_link"
9742 case "(($ac_try" in
9743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744   *) ac_try_echo=$ac_try;;
9745 esac
9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747   (eval "$ac_link") 2>conftest.er1
9748   ac_status=$?
9749   grep -v '^ *+' conftest.er1 >conftest.err
9750   rm -f conftest.er1
9751   cat conftest.err >&5
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); } &&
9754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755   { (case "(($ac_try" in
9756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757   *) ac_try_echo=$ac_try;;
9758 esac
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760   (eval "$ac_try") 2>&5
9761   ac_status=$?
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); }; } &&
9764          { ac_try='test -s conftest$ac_exeext'
9765   { (case "(($ac_try" in
9766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767   *) ac_try_echo=$ac_try;;
9768 esac
9769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770   (eval "$ac_try") 2>&5
9771   ac_status=$?
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); }; }; then
9774   ac_cv_lib_pthread_pthread_mutex_init=yes
9775 else
9776   echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9778
9779         ac_cv_lib_pthread_pthread_mutex_init=no
9780 fi
9781
9782 rm -f core conftest.err conftest.$ac_objext \
9783       conftest$ac_exeext conftest.$ac_ext
9784 LIBS=$ac_check_lib_save_LIBS
9785 fi
9786 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9787 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9788 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9789   cat >>confdefs.h <<_ACEOF
9790 #define HAVE_LIBPTHREAD 1
9791 _ACEOF
9792
9793   LIBS="-lpthread $LIBS"
9794
9795 fi
9796
9797   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9798 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9799 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9800   echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802   ac_func_search_save_LIBS=$LIBS
9803 cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h.  */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h.  */
9809
9810 /* Override any GCC internal prototype to avoid an error.
9811    Use char because int might match the return type of a GCC
9812    builtin and then its argument prototype would still apply.  */
9813 #ifdef __cplusplus
9814 extern "C"
9815 #endif
9816 char pthread_mutex_lock ();
9817 int
9818 main ()
9819 {
9820 return pthread_mutex_lock ();
9821   ;
9822   return 0;
9823 }
9824 _ACEOF
9825 for ac_lib in '' pthread; do
9826   if test -z "$ac_lib"; then
9827     ac_res="none required"
9828   else
9829     ac_res=-l$ac_lib
9830     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9831   fi
9832   rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (ac_try="$ac_link"
9834 case "(($ac_try" in
9835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836   *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839   (eval "$ac_link") 2>conftest.er1
9840   ac_status=$?
9841   grep -v '^ *+' conftest.er1 >conftest.err
9842   rm -f conftest.er1
9843   cat conftest.err >&5
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } &&
9846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9847   { (case "(($ac_try" in
9848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849   *) ac_try_echo=$ac_try;;
9850 esac
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852   (eval "$ac_try") 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; } &&
9856          { ac_try='test -s conftest$ac_exeext'
9857   { (case "(($ac_try" in
9858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859   *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862   (eval "$ac_try") 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; }; then
9866   ac_cv_search_pthread_mutex_lock=$ac_res
9867 else
9868   echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9870
9871
9872 fi
9873
9874 rm -f core conftest.err conftest.$ac_objext \
9875       conftest$ac_exeext
9876   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9877   break
9878 fi
9879 done
9880 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9881   :
9882 else
9883   ac_cv_search_pthread_mutex_lock=no
9884 fi
9885 rm conftest.$ac_ext
9886 LIBS=$ac_func_search_save_LIBS
9887 fi
9888 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9889 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9890 ac_res=$ac_cv_search_pthread_mutex_lock
9891 if test "$ac_res" != no; then
9892   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9893
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_PTHREAD_MUTEX_LOCK 1
9896 _ACEOF
9897
9898 fi
9899
9900   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9901 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9902 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   ac_func_search_save_LIBS=$LIBS
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h.  */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h.  */
9912
9913 /* Override any GCC internal prototype to avoid an error.
9914    Use char because int might match the return type of a GCC
9915    builtin and then its argument prototype would still apply.  */
9916 #ifdef __cplusplus
9917 extern "C"
9918 #endif
9919 char pthread_rwlock_init ();
9920 int
9921 main ()
9922 {
9923 return pthread_rwlock_init ();
9924   ;
9925   return 0;
9926 }
9927 _ACEOF
9928 for ac_lib in '' pthread; do
9929   if test -z "$ac_lib"; then
9930     ac_res="none required"
9931   else
9932     ac_res=-l$ac_lib
9933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9934   fi
9935   rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (ac_try="$ac_link"
9937 case "(($ac_try" in
9938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939   *) ac_try_echo=$ac_try;;
9940 esac
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942   (eval "$ac_link") 2>conftest.er1
9943   ac_status=$?
9944   grep -v '^ *+' conftest.er1 >conftest.err
9945   rm -f conftest.er1
9946   cat conftest.err >&5
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } &&
9949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9950   { (case "(($ac_try" in
9951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952   *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955   (eval "$ac_try") 2>&5
9956   ac_status=$?
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); }; } &&
9959          { ac_try='test -s conftest$ac_exeext'
9960   { (case "(($ac_try" in
9961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962   *) ac_try_echo=$ac_try;;
9963 esac
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965   (eval "$ac_try") 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; }; then
9969   ac_cv_search_pthread_rwlock_init=$ac_res
9970 else
9971   echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9973
9974
9975 fi
9976
9977 rm -f core conftest.err conftest.$ac_objext \
9978       conftest$ac_exeext
9979   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9980   break
9981 fi
9982 done
9983 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9984   :
9985 else
9986   ac_cv_search_pthread_rwlock_init=no
9987 fi
9988 rm conftest.$ac_ext
9989 LIBS=$ac_func_search_save_LIBS
9990 fi
9991 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9992 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9993 ac_res=$ac_cv_search_pthread_rwlock_init
9994 if test "$ac_res" != no; then
9995   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9996
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_PTHREAD_RWLOCK_INIT 1
9999 _ACEOF
10000
10001 fi
10002
10003   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
10004 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
10005 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10006   echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008   ac_func_search_save_LIBS=$LIBS
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h.  */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h.  */
10015
10016 /* Override any GCC internal prototype to avoid an error.
10017    Use char because int might match the return type of a GCC
10018    builtin and then its argument prototype would still apply.  */
10019 #ifdef __cplusplus
10020 extern "C"
10021 #endif
10022 char pthread_getspecific ();
10023 int
10024 main ()
10025 {
10026 return pthread_getspecific ();
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 for ac_lib in '' pthread; do
10032   if test -z "$ac_lib"; then
10033     ac_res="none required"
10034   else
10035     ac_res=-l$ac_lib
10036     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10037   fi
10038   rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (ac_try="$ac_link"
10040 case "(($ac_try" in
10041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042   *) ac_try_echo=$ac_try;;
10043 esac
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045   (eval "$ac_link") 2>conftest.er1
10046   ac_status=$?
10047   grep -v '^ *+' conftest.er1 >conftest.err
10048   rm -f conftest.er1
10049   cat conftest.err >&5
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } &&
10052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053   { (case "(($ac_try" in
10054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055   *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058   (eval "$ac_try") 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; } &&
10062          { ac_try='test -s conftest$ac_exeext'
10063   { (case "(($ac_try" in
10064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065   *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068   (eval "$ac_try") 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); }; }; then
10072   ac_cv_search_pthread_getspecific=$ac_res
10073 else
10074   echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10076
10077
10078 fi
10079
10080 rm -f core conftest.err conftest.$ac_objext \
10081       conftest$ac_exeext
10082   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10083   break
10084 fi
10085 done
10086 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10087   :
10088 else
10089   ac_cv_search_pthread_getspecific=no
10090 fi
10091 rm conftest.$ac_ext
10092 LIBS=$ac_func_search_save_LIBS
10093 fi
10094 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10095 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10096 ac_res=$ac_cv_search_pthread_getspecific
10097 if test "$ac_res" != no; then
10098   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10099
10100 cat >>confdefs.h <<\_ACEOF
10101 #define HAVE_PTHREAD_GETSPECIFIC 1
10102 _ACEOF
10103
10104 fi
10105
10106 fi
10107
10108 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10109
10110 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10111 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10112 if test "${ac_cv_lib_z_compress2+set}" = set; then
10113   echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115   ac_check_lib_save_LIBS=$LIBS
10116 LIBS="-lz  $LIBS"
10117 cat >conftest.$ac_ext <<_ACEOF
10118 /* confdefs.h.  */
10119 _ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h.  */
10123
10124 /* Override any GCC internal prototype to avoid an error.
10125    Use char because int might match the return type of a GCC
10126    builtin and then its argument prototype would still apply.  */
10127 #ifdef __cplusplus
10128 extern "C"
10129 #endif
10130 char compress2 ();
10131 int
10132 main ()
10133 {
10134 return compress2 ();
10135   ;
10136   return 0;
10137 }
10138 _ACEOF
10139 rm -f conftest.$ac_objext conftest$ac_exeext
10140 if { (ac_try="$ac_link"
10141 case "(($ac_try" in
10142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143   *) ac_try_echo=$ac_try;;
10144 esac
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146   (eval "$ac_link") 2>conftest.er1
10147   ac_status=$?
10148   grep -v '^ *+' conftest.er1 >conftest.err
10149   rm -f conftest.er1
10150   cat conftest.err >&5
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); } &&
10153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10154   { (case "(($ac_try" in
10155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156   *) ac_try_echo=$ac_try;;
10157 esac
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159   (eval "$ac_try") 2>&5
10160   ac_status=$?
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); }; } &&
10163          { ac_try='test -s conftest$ac_exeext'
10164   { (case "(($ac_try" in
10165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166   *) ac_try_echo=$ac_try;;
10167 esac
10168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169   (eval "$ac_try") 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); }; }; then
10173   ac_cv_lib_z_compress2=yes
10174 else
10175   echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10177
10178         ac_cv_lib_z_compress2=no
10179 fi
10180
10181 rm -f core conftest.err conftest.$ac_objext \
10182       conftest$ac_exeext conftest.$ac_ext
10183 LIBS=$ac_check_lib_save_LIBS
10184 fi
10185 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10186 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10187 if test $ac_cv_lib_z_compress2 = yes; then
10188   cat >>confdefs.h <<_ACEOF
10189 #define HAVE_LIBZ 1
10190 _ACEOF
10191
10192   LIBS="-lz $LIBS"
10193
10194 fi
10195
10196 fi
10197
10198
10199 # Check whether --with-udis86 was given.
10200 if test "${with_udis86+set}" = set; then
10201   withval=$with_udis86;
10202       USE_UDIS86=1
10203
10204       case "$withval" in
10205         /usr/lib|yes) ;;
10206         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10207       esac
10208
10209 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
10210 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
10211 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   ac_check_lib_save_LIBS=$LIBS
10215 LIBS="-ludis86  $LIBS"
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222
10223 /* Override any GCC internal prototype to avoid an error.
10224    Use char because int might match the return type of a GCC
10225    builtin and then its argument prototype would still apply.  */
10226 #ifdef __cplusplus
10227 extern "C"
10228 #endif
10229 char ud_init ();
10230 int
10231 main ()
10232 {
10233 return ud_init ();
10234   ;
10235   return 0;
10236 }
10237 _ACEOF
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (ac_try="$ac_link"
10240 case "(($ac_try" in
10241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242   *) ac_try_echo=$ac_try;;
10243 esac
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245   (eval "$ac_link") 2>conftest.er1
10246   ac_status=$?
10247   grep -v '^ *+' conftest.er1 >conftest.err
10248   rm -f conftest.er1
10249   cat conftest.err >&5
10250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251   (exit $ac_status); } &&
10252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10253   { (case "(($ac_try" in
10254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255   *) ac_try_echo=$ac_try;;
10256 esac
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258   (eval "$ac_try") 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; } &&
10262          { ac_try='test -s conftest$ac_exeext'
10263   { (case "(($ac_try" in
10264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265   *) ac_try_echo=$ac_try;;
10266 esac
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268   (eval "$ac_try") 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; }; then
10272   ac_cv_lib_udis86_ud_init=yes
10273 else
10274   echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277         ac_cv_lib_udis86_ud_init=no
10278 fi
10279
10280 rm -f core conftest.err conftest.$ac_objext \
10281       conftest$ac_exeext conftest.$ac_ext
10282 LIBS=$ac_check_lib_save_LIBS
10283 fi
10284 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
10285 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
10286 if test $ac_cv_lib_udis86_ud_init = yes; then
10287   cat >>confdefs.h <<_ACEOF
10288 #define HAVE_LIBUDIS86 1
10289 _ACEOF
10290
10291   LIBS="-ludis86 $LIBS"
10292
10293 else
10294
10295         echo "Error! You need to have libudis86 around."
10296         exit -1
10297
10298 fi
10299
10300
10301 else
10302   USE_UDIS86=0
10303
10304 fi
10305
10306
10307 cat >>confdefs.h <<_ACEOF
10308 #define USE_UDIS86 $USE_UDIS86
10309 _ACEOF
10310
10311
10312
10313 # Check whether --with-oprofile was given.
10314 if test "${with_oprofile+set}" = set; then
10315   withval=$with_oprofile;
10316       USE_OPROFILE=1
10317
10318       case "$withval" in
10319         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10320         no) llvm_cv_oppath=
10321             USE_OPROFILE=0
10322  ;;
10323         *) llvm_cv_oppath="${withval}/lib/oprofile"
10324            CPPFLAGS="-I${withval}/include";;
10325       esac
10326       case $llvm_cv_os_type in
10327         Linux)
10328           if test -n "$llvm_cv_oppath" ; then
10329             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10330                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10331 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10332 if test "${ac_cv_search_bfd_init+set}" = set; then
10333   echo $ECHO_N "(cached) $ECHO_C" >&6
10334 else
10335   ac_func_search_save_LIBS=$LIBS
10336 cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h.  */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h.  */
10342
10343 /* Override any GCC internal prototype to avoid an error.
10344    Use char because int might match the return type of a GCC
10345    builtin and then its argument prototype would still apply.  */
10346 #ifdef __cplusplus
10347 extern "C"
10348 #endif
10349 char bfd_init ();
10350 int
10351 main ()
10352 {
10353 return bfd_init ();
10354   ;
10355   return 0;
10356 }
10357 _ACEOF
10358 for ac_lib in '' bfd; do
10359   if test -z "$ac_lib"; then
10360     ac_res="none required"
10361   else
10362     ac_res=-l$ac_lib
10363     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10364   fi
10365   rm -f conftest.$ac_objext conftest$ac_exeext
10366 if { (ac_try="$ac_link"
10367 case "(($ac_try" in
10368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369   *) ac_try_echo=$ac_try;;
10370 esac
10371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10372   (eval "$ac_link") 2>conftest.er1
10373   ac_status=$?
10374   grep -v '^ *+' conftest.er1 >conftest.err
10375   rm -f conftest.er1
10376   cat conftest.err >&5
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); } &&
10379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10380   { (case "(($ac_try" in
10381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382   *) ac_try_echo=$ac_try;;
10383 esac
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385   (eval "$ac_try") 2>&5
10386   ac_status=$?
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); }; } &&
10389          { ac_try='test -s conftest$ac_exeext'
10390   { (case "(($ac_try" in
10391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392   *) ac_try_echo=$ac_try;;
10393 esac
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395   (eval "$ac_try") 2>&5
10396   ac_status=$?
10397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398   (exit $ac_status); }; }; then
10399   ac_cv_search_bfd_init=$ac_res
10400 else
10401   echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10403
10404
10405 fi
10406
10407 rm -f core conftest.err conftest.$ac_objext \
10408       conftest$ac_exeext
10409   if test "${ac_cv_search_bfd_init+set}" = set; then
10410   break
10411 fi
10412 done
10413 if test "${ac_cv_search_bfd_init+set}" = set; then
10414   :
10415 else
10416   ac_cv_search_bfd_init=no
10417 fi
10418 rm conftest.$ac_ext
10419 LIBS=$ac_func_search_save_LIBS
10420 fi
10421 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10422 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10423 ac_res=$ac_cv_search_bfd_init
10424 if test "$ac_res" != no; then
10425   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10426
10427 fi
10428
10429             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10430 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10431 if test "${ac_cv_search_op_open_agent+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434   ac_func_search_save_LIBS=$LIBS
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h.  */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h.  */
10441
10442 /* Override any GCC internal prototype to avoid an error.
10443    Use char because int might match the return type of a GCC
10444    builtin and then its argument prototype would still apply.  */
10445 #ifdef __cplusplus
10446 extern "C"
10447 #endif
10448 char op_open_agent ();
10449 int
10450 main ()
10451 {
10452 return op_open_agent ();
10453   ;
10454   return 0;
10455 }
10456 _ACEOF
10457 for ac_lib in '' opagent; do
10458   if test -z "$ac_lib"; then
10459     ac_res="none required"
10460   else
10461     ac_res=-l$ac_lib
10462     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10463   fi
10464   rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (ac_try="$ac_link"
10466 case "(($ac_try" in
10467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468   *) ac_try_echo=$ac_try;;
10469 esac
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471   (eval "$ac_link") 2>conftest.er1
10472   ac_status=$?
10473   grep -v '^ *+' conftest.er1 >conftest.err
10474   rm -f conftest.er1
10475   cat conftest.err >&5
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); } &&
10478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10479   { (case "(($ac_try" in
10480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481   *) ac_try_echo=$ac_try;;
10482 esac
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484   (eval "$ac_try") 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); }; } &&
10488          { ac_try='test -s conftest$ac_exeext'
10489   { (case "(($ac_try" in
10490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491   *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494   (eval "$ac_try") 2>&5
10495   ac_status=$?
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); }; }; then
10498   ac_cv_search_op_open_agent=$ac_res
10499 else
10500   echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10502
10503
10504 fi
10505
10506 rm -f core conftest.err conftest.$ac_objext \
10507       conftest$ac_exeext
10508   if test "${ac_cv_search_op_open_agent+set}" = set; then
10509   break
10510 fi
10511 done
10512 if test "${ac_cv_search_op_open_agent+set}" = set; then
10513   :
10514 else
10515   ac_cv_search_op_open_agent=no
10516 fi
10517 rm conftest.$ac_ext
10518 LIBS=$ac_func_search_save_LIBS
10519 fi
10520 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10521 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10522 ac_res=$ac_cv_search_op_open_agent
10523 if test "$ac_res" != no; then
10524   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10525
10526 else
10527
10528               echo "Error! You need to have libopagent around."
10529               exit -1
10530
10531 fi
10532
10533             if test "${ac_cv_header_opagent_h+set}" = set; then
10534   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10535 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10536 if test "${ac_cv_header_opagent_h+set}" = set; then
10537   echo $ECHO_N "(cached) $ECHO_C" >&6
10538 fi
10539 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10540 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10541 else
10542   # Is the header compilable?
10543 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10544 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h.  */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h.  */
10551 $ac_includes_default
10552 #include <opagent.h>
10553 _ACEOF
10554 rm -f conftest.$ac_objext
10555 if { (ac_try="$ac_compile"
10556 case "(($ac_try" in
10557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558   *) ac_try_echo=$ac_try;;
10559 esac
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561   (eval "$ac_compile") 2>conftest.er1
10562   ac_status=$?
10563   grep -v '^ *+' conftest.er1 >conftest.err
10564   rm -f conftest.er1
10565   cat conftest.err >&5
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); } &&
10568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10569   { (case "(($ac_try" in
10570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571   *) ac_try_echo=$ac_try;;
10572 esac
10573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574   (eval "$ac_try") 2>&5
10575   ac_status=$?
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); }; } &&
10578          { ac_try='test -s conftest.$ac_objext'
10579   { (case "(($ac_try" in
10580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581   *) ac_try_echo=$ac_try;;
10582 esac
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584   (eval "$ac_try") 2>&5
10585   ac_status=$?
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); }; }; then
10588   ac_header_compiler=yes
10589 else
10590   echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10592
10593         ac_header_compiler=no
10594 fi
10595
10596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10598 echo "${ECHO_T}$ac_header_compiler" >&6; }
10599
10600 # Is the header present?
10601 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10602 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10603 cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h.  */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h.  */
10609 #include <opagent.h>
10610 _ACEOF
10611 if { (ac_try="$ac_cpp conftest.$ac_ext"
10612 case "(($ac_try" in
10613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614   *) ac_try_echo=$ac_try;;
10615 esac
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10618   ac_status=$?
10619   grep -v '^ *+' conftest.er1 >conftest.err
10620   rm -f conftest.er1
10621   cat conftest.err >&5
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); } >/dev/null; then
10624   if test -s conftest.err; then
10625     ac_cpp_err=$ac_c_preproc_warn_flag
10626     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10627   else
10628     ac_cpp_err=
10629   fi
10630 else
10631   ac_cpp_err=yes
10632 fi
10633 if test -z "$ac_cpp_err"; then
10634   ac_header_preproc=yes
10635 else
10636   echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10638
10639   ac_header_preproc=no
10640 fi
10641
10642 rm -f conftest.err conftest.$ac_ext
10643 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10644 echo "${ECHO_T}$ac_header_preproc" >&6; }
10645
10646 # So?  What about this header?
10647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10648   yes:no: )
10649     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10650 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10651     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10652 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10653     ac_header_preproc=yes
10654     ;;
10655   no:yes:* )
10656     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10657 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10658     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10659 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10660     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10661 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10662     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10663 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10664     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10665 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10666     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10667 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10668     ( cat <<\_ASBOX
10669 ## ------------------------------------ ##
10670 ## Report this to http://llvm.org/bugs/ ##
10671 ## ------------------------------------ ##
10672 _ASBOX
10673      ) | sed "s/^/$as_me: WARNING:     /" >&2
10674     ;;
10675 esac
10676 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10677 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10678 if test "${ac_cv_header_opagent_h+set}" = set; then
10679   echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681   ac_cv_header_opagent_h=$ac_header_preproc
10682 fi
10683 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10684 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10685
10686 fi
10687 if test $ac_cv_header_opagent_h = yes; then
10688   :
10689 else
10690
10691               echo "Error! You need to have opagent.h around."
10692               exit -1
10693
10694 fi
10695
10696
10697           fi ;;
10698         *)
10699           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10700 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10701    { (exit 1); exit 1; }; } ;;
10702       esac
10703
10704 else
10705
10706       USE_OPROFILE=0
10707
10708
10709 fi
10710
10711
10712 cat >>confdefs.h <<_ACEOF
10713 #define LLVM_USE_OPROFILE $USE_OPROFILE
10714 _ACEOF
10715
10716
10717
10718 # Check whether --with-intel-jitevents was given.
10719 if test "${with_intel_jitevents+set}" = set; then
10720   withval=$with_intel_jitevents;
10721        case "$withval" in
10722           yes) USE_INTEL_JITEVENTS=1
10723 ;;
10724           no)  USE_INTEL_JITEVENTS=0
10725 ;;
10726           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10727 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10728    { (exit 1); exit 1; }; };;
10729        esac
10730
10731       case $llvm_cv_os_type in
10732         Linux|Win32|Cygwin|MingW) ;;
10733         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10734 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10735    { (exit 1); exit 1; }; };;
10736       esac
10737
10738       case "$llvm_cv_target_arch" in
10739         x86|x86_64) ;;
10740         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10741 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10742    { (exit 1); exit 1; }; };;
10743       esac
10744
10745 else
10746
10747       USE_INTEL_JITEVENTS=0
10748
10749
10750 fi
10751
10752
10753 cat >>confdefs.h <<_ACEOF
10754 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10755 _ACEOF
10756
10757
10758 for ac_prog in xml2-config
10759 do
10760   # Extract the first word of "$ac_prog", so it can be a program name with args.
10761 set dummy $ac_prog; ac_word=$2
10762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10764 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10765   echo $ECHO_N "(cached) $ECHO_C" >&6
10766 else
10767   if test -n "$XML2CONFIG"; then
10768   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10769 else
10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771 for as_dir in $PATH
10772 do
10773   IFS=$as_save_IFS
10774   test -z "$as_dir" && as_dir=.
10775   for ac_exec_ext in '' $ac_executable_extensions; do
10776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10777     ac_cv_prog_XML2CONFIG="$ac_prog"
10778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10779     break 2
10780   fi
10781 done
10782 done
10783 IFS=$as_save_IFS
10784
10785 fi
10786 fi
10787 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10788 if test -n "$XML2CONFIG"; then
10789   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10790 echo "${ECHO_T}$XML2CONFIG" >&6; }
10791 else
10792   { echo "$as_me:$LINENO: result: no" >&5
10793 echo "${ECHO_T}no" >&6; }
10794 fi
10795
10796
10797   test -n "$XML2CONFIG" && break
10798 done
10799
10800
10801 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10802 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10803 if test "x$XML2CONFIG" = "x"; then
10804  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10805 echo "${ECHO_T}xml2-config not found" >&6; }
10806 else
10807  LIBXML2_INC=`$XML2CONFIG --cflags`
10808  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10809 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10810  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10811 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10812 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10813   echo $ECHO_N "(cached) $ECHO_C" >&6
10814 else
10815   ac_check_lib_save_LIBS=$LIBS
10816 LIBS="-lxml2  $LIBS"
10817 cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h.  */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h.  */
10823
10824 /* Override any GCC internal prototype to avoid an error.
10825    Use char because int might match the return type of a GCC
10826    builtin and then its argument prototype would still apply.  */
10827 #ifdef __cplusplus
10828 extern "C"
10829 #endif
10830 char xmlReadFile ();
10831 int
10832 main ()
10833 {
10834 return xmlReadFile ();
10835   ;
10836   return 0;
10837 }
10838 _ACEOF
10839 rm -f conftest.$ac_objext conftest$ac_exeext
10840 if { (ac_try="$ac_link"
10841 case "(($ac_try" in
10842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843   *) ac_try_echo=$ac_try;;
10844 esac
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846   (eval "$ac_link") 2>conftest.er1
10847   ac_status=$?
10848   grep -v '^ *+' conftest.er1 >conftest.err
10849   rm -f conftest.er1
10850   cat conftest.err >&5
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); } &&
10853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10854   { (case "(($ac_try" in
10855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856   *) ac_try_echo=$ac_try;;
10857 esac
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859   (eval "$ac_try") 2>&5
10860   ac_status=$?
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); }; } &&
10863          { ac_try='test -s conftest$ac_exeext'
10864   { (case "(($ac_try" in
10865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866   *) ac_try_echo=$ac_try;;
10867 esac
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869   (eval "$ac_try") 2>&5
10870   ac_status=$?
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); }; }; then
10873   ac_cv_lib_xml2_xmlReadFile=yes
10874 else
10875   echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10877
10878         ac_cv_lib_xml2_xmlReadFile=no
10879 fi
10880
10881 rm -f core conftest.err conftest.$ac_objext \
10882       conftest$ac_exeext conftest.$ac_ext
10883 LIBS=$ac_check_lib_save_LIBS
10884 fi
10885 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10886 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10887 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10888
10889 cat >>confdefs.h <<\_ACEOF
10890 #define CLANG_HAVE_LIBXML 1
10891 _ACEOF
10892
10893                                 LIBXML2_LIBS="-lxml2"
10894 fi
10895
10896 fi
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906 ac_header_dirent=no
10907 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10908   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10909 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10910 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912   echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914   cat >conftest.$ac_ext <<_ACEOF
10915 /* confdefs.h.  */
10916 _ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h.  */
10920 #include <sys/types.h>
10921 #include <$ac_hdr>
10922
10923 int
10924 main ()
10925 {
10926 if ((DIR *) 0)
10927 return 0;
10928   ;
10929   return 0;
10930 }
10931 _ACEOF
10932 rm -f conftest.$ac_objext
10933 if { (ac_try="$ac_compile"
10934 case "(($ac_try" in
10935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936   *) ac_try_echo=$ac_try;;
10937 esac
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939   (eval "$ac_compile") 2>conftest.er1
10940   ac_status=$?
10941   grep -v '^ *+' conftest.er1 >conftest.err
10942   rm -f conftest.er1
10943   cat conftest.err >&5
10944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); } &&
10946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10947   { (case "(($ac_try" in
10948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949   *) ac_try_echo=$ac_try;;
10950 esac
10951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952   (eval "$ac_try") 2>&5
10953   ac_status=$?
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); }; } &&
10956          { ac_try='test -s conftest.$ac_objext'
10957   { (case "(($ac_try" in
10958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959   *) ac_try_echo=$ac_try;;
10960 esac
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962   (eval "$ac_try") 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; }; then
10966   eval "$as_ac_Header=yes"
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971         eval "$as_ac_Header=no"
10972 fi
10973
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975 fi
10976 ac_res=`eval echo '${'$as_ac_Header'}'`
10977                { echo "$as_me:$LINENO: result: $ac_res" >&5
10978 echo "${ECHO_T}$ac_res" >&6; }
10979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10980   cat >>confdefs.h <<_ACEOF
10981 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10982 _ACEOF
10983
10984 ac_header_dirent=$ac_hdr; break
10985 fi
10986
10987 done
10988 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10989 if test $ac_header_dirent = dirent.h; then
10990   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10991 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10992 if test "${ac_cv_search_opendir+set}" = set; then
10993   echo $ECHO_N "(cached) $ECHO_C" >&6
10994 else
10995   ac_func_search_save_LIBS=$LIBS
10996 cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h.  */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h.  */
11002
11003 /* Override any GCC internal prototype to avoid an error.
11004    Use char because int might match the return type of a GCC
11005    builtin and then its argument prototype would still apply.  */
11006 #ifdef __cplusplus
11007 extern "C"
11008 #endif
11009 char opendir ();
11010 int
11011 main ()
11012 {
11013 return opendir ();
11014   ;
11015   return 0;
11016 }
11017 _ACEOF
11018 for ac_lib in '' dir; do
11019   if test -z "$ac_lib"; then
11020     ac_res="none required"
11021   else
11022     ac_res=-l$ac_lib
11023     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11024   fi
11025   rm -f conftest.$ac_objext conftest$ac_exeext
11026 if { (ac_try="$ac_link"
11027 case "(($ac_try" in
11028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029   *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032   (eval "$ac_link") 2>conftest.er1
11033   ac_status=$?
11034   grep -v '^ *+' conftest.er1 >conftest.err
11035   rm -f conftest.er1
11036   cat conftest.err >&5
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); } &&
11039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040   { (case "(($ac_try" in
11041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042   *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045   (eval "$ac_try") 2>&5
11046   ac_status=$?
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); }; } &&
11049          { ac_try='test -s conftest$ac_exeext'
11050   { (case "(($ac_try" in
11051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052   *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055   (eval "$ac_try") 2>&5
11056   ac_status=$?
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); }; }; then
11059   ac_cv_search_opendir=$ac_res
11060 else
11061   echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11063
11064
11065 fi
11066
11067 rm -f core conftest.err conftest.$ac_objext \
11068       conftest$ac_exeext
11069   if test "${ac_cv_search_opendir+set}" = set; then
11070   break
11071 fi
11072 done
11073 if test "${ac_cv_search_opendir+set}" = set; then
11074   :
11075 else
11076   ac_cv_search_opendir=no
11077 fi
11078 rm conftest.$ac_ext
11079 LIBS=$ac_func_search_save_LIBS
11080 fi
11081 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11082 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11083 ac_res=$ac_cv_search_opendir
11084 if test "$ac_res" != no; then
11085   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11086
11087 fi
11088
11089 else
11090   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11091 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11092 if test "${ac_cv_search_opendir+set}" = set; then
11093   echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095   ac_func_search_save_LIBS=$LIBS
11096 cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h.  */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h.  */
11102
11103 /* Override any GCC internal prototype to avoid an error.
11104    Use char because int might match the return type of a GCC
11105    builtin and then its argument prototype would still apply.  */
11106 #ifdef __cplusplus
11107 extern "C"
11108 #endif
11109 char opendir ();
11110 int
11111 main ()
11112 {
11113 return opendir ();
11114   ;
11115   return 0;
11116 }
11117 _ACEOF
11118 for ac_lib in '' x; do
11119   if test -z "$ac_lib"; then
11120     ac_res="none required"
11121   else
11122     ac_res=-l$ac_lib
11123     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11124   fi
11125   rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (ac_try="$ac_link"
11127 case "(($ac_try" in
11128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129   *) ac_try_echo=$ac_try;;
11130 esac
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132   (eval "$ac_link") 2>conftest.er1
11133   ac_status=$?
11134   grep -v '^ *+' conftest.er1 >conftest.err
11135   rm -f conftest.er1
11136   cat conftest.err >&5
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); } &&
11139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11140   { (case "(($ac_try" in
11141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142   *) ac_try_echo=$ac_try;;
11143 esac
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145   (eval "$ac_try") 2>&5
11146   ac_status=$?
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); }; } &&
11149          { ac_try='test -s conftest$ac_exeext'
11150   { (case "(($ac_try" in
11151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152   *) ac_try_echo=$ac_try;;
11153 esac
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155   (eval "$ac_try") 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); }; }; then
11159   ac_cv_search_opendir=$ac_res
11160 else
11161   echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11163
11164
11165 fi
11166
11167 rm -f core conftest.err conftest.$ac_objext \
11168       conftest$ac_exeext
11169   if test "${ac_cv_search_opendir+set}" = set; then
11170   break
11171 fi
11172 done
11173 if test "${ac_cv_search_opendir+set}" = set; then
11174   :
11175 else
11176   ac_cv_search_opendir=no
11177 fi
11178 rm conftest.$ac_ext
11179 LIBS=$ac_func_search_save_LIBS
11180 fi
11181 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11182 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11183 ac_res=$ac_cv_search_opendir
11184 if test "$ac_res" != no; then
11185   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11186
11187 fi
11188
11189 fi
11190
11191 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11192 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
11193 if test "${ac_cv_header_mmap_anon+set}" = set; then
11194   echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196    ac_ext=c
11197 ac_cpp='$CPP $CPPFLAGS'
11198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11201
11202   cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h.  */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h.  */
11208 #include <sys/mman.h>
11209 #include <unistd.h>
11210 #include <fcntl.h>
11211 int
11212 main ()
11213 {
11214 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11215   ;
11216   return 0;
11217 }
11218 _ACEOF
11219 rm -f conftest.$ac_objext
11220 if { (ac_try="$ac_compile"
11221 case "(($ac_try" in
11222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223   *) ac_try_echo=$ac_try;;
11224 esac
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226   (eval "$ac_compile") 2>conftest.er1
11227   ac_status=$?
11228   grep -v '^ *+' conftest.er1 >conftest.err
11229   rm -f conftest.er1
11230   cat conftest.err >&5
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); } &&
11233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11234   { (case "(($ac_try" in
11235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236   *) ac_try_echo=$ac_try;;
11237 esac
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239   (eval "$ac_try") 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); }; } &&
11243          { ac_try='test -s conftest.$ac_objext'
11244   { (case "(($ac_try" in
11245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246   *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249   (eval "$ac_try") 2>&5
11250   ac_status=$?
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); }; }; then
11253   ac_cv_header_mmap_anon=yes
11254 else
11255   echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11257
11258         ac_cv_header_mmap_anon=no
11259 fi
11260
11261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11262   ac_ext=c
11263 ac_cpp='$CPP $CPPFLAGS'
11264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11267
11268
11269 fi
11270 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11271 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11272 if test "$ac_cv_header_mmap_anon" = yes; then
11273
11274 cat >>confdefs.h <<\_ACEOF
11275 #define HAVE_MMAP_ANONYMOUS 1
11276 _ACEOF
11277
11278 fi
11279
11280 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11281 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11282 if test "${ac_cv_header_stat_broken+set}" = set; then
11283   echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285   cat >conftest.$ac_ext <<_ACEOF
11286 /* confdefs.h.  */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h.  */
11291 #include <sys/types.h>
11292 #include <sys/stat.h>
11293
11294 #if defined S_ISBLK && defined S_IFDIR
11295 # if S_ISBLK (S_IFDIR)
11296 You lose.
11297 # endif
11298 #endif
11299
11300 #if defined S_ISBLK && defined S_IFCHR
11301 # if S_ISBLK (S_IFCHR)
11302 You lose.
11303 # endif
11304 #endif
11305
11306 #if defined S_ISLNK && defined S_IFREG
11307 # if S_ISLNK (S_IFREG)
11308 You lose.
11309 # endif
11310 #endif
11311
11312 #if defined S_ISSOCK && defined S_IFREG
11313 # if S_ISSOCK (S_IFREG)
11314 You lose.
11315 # endif
11316 #endif
11317
11318 _ACEOF
11319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11320   $EGREP "You lose" >/dev/null 2>&1; then
11321   ac_cv_header_stat_broken=yes
11322 else
11323   ac_cv_header_stat_broken=no
11324 fi
11325 rm -f conftest*
11326
11327 fi
11328 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11329 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11330 if test $ac_cv_header_stat_broken = yes; then
11331
11332 cat >>confdefs.h <<\_ACEOF
11333 #define STAT_MACROS_BROKEN 1
11334 _ACEOF
11335
11336 fi
11337
11338 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11339 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11340 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11341   echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343   cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h.  */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h.  */
11349 #include <sys/types.h>
11350 #include <sys/wait.h>
11351 #ifndef WEXITSTATUS
11352 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11353 #endif
11354 #ifndef WIFEXITED
11355 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11356 #endif
11357
11358 int
11359 main ()
11360 {
11361   int s;
11362   wait (&s);
11363   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11364   ;
11365   return 0;
11366 }
11367 _ACEOF
11368 rm -f conftest.$ac_objext
11369 if { (ac_try="$ac_compile"
11370 case "(($ac_try" in
11371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372   *) ac_try_echo=$ac_try;;
11373 esac
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375   (eval "$ac_compile") 2>conftest.er1
11376   ac_status=$?
11377   grep -v '^ *+' conftest.er1 >conftest.err
11378   rm -f conftest.er1
11379   cat conftest.err >&5
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); } &&
11382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11383   { (case "(($ac_try" in
11384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385   *) ac_try_echo=$ac_try;;
11386 esac
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388   (eval "$ac_try") 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); }; } &&
11392          { ac_try='test -s conftest.$ac_objext'
11393   { (case "(($ac_try" in
11394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395   *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398   (eval "$ac_try") 2>&5
11399   ac_status=$?
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); }; }; then
11402   ac_cv_header_sys_wait_h=yes
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407         ac_cv_header_sys_wait_h=no
11408 fi
11409
11410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11411 fi
11412 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11413 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11414 if test $ac_cv_header_sys_wait_h = yes; then
11415
11416 cat >>confdefs.h <<\_ACEOF
11417 #define HAVE_SYS_WAIT_H 1
11418 _ACEOF
11419
11420 fi
11421
11422 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11423 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11424 if test "${ac_cv_header_time+set}" = set; then
11425   echo $ECHO_N "(cached) $ECHO_C" >&6
11426 else
11427   cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h.  */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h.  */
11433 #include <sys/types.h>
11434 #include <sys/time.h>
11435 #include <time.h>
11436
11437 int
11438 main ()
11439 {
11440 if ((struct tm *) 0)
11441 return 0;
11442   ;
11443   return 0;
11444 }
11445 _ACEOF
11446 rm -f conftest.$ac_objext
11447 if { (ac_try="$ac_compile"
11448 case "(($ac_try" in
11449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450   *) ac_try_echo=$ac_try;;
11451 esac
11452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453   (eval "$ac_compile") 2>conftest.er1
11454   ac_status=$?
11455   grep -v '^ *+' conftest.er1 >conftest.err
11456   rm -f conftest.er1
11457   cat conftest.err >&5
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); } &&
11460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11461   { (case "(($ac_try" in
11462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463   *) ac_try_echo=$ac_try;;
11464 esac
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466   (eval "$ac_try") 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; } &&
11470          { ac_try='test -s conftest.$ac_objext'
11471   { (case "(($ac_try" in
11472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473   *) ac_try_echo=$ac_try;;
11474 esac
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476   (eval "$ac_try") 2>&5
11477   ac_status=$?
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); }; }; then
11480   ac_cv_header_time=yes
11481 else
11482   echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485         ac_cv_header_time=no
11486 fi
11487
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 fi
11490 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11491 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11492 if test $ac_cv_header_time = yes; then
11493
11494 cat >>confdefs.h <<\_ACEOF
11495 #define TIME_WITH_SYS_TIME 1
11496 _ACEOF
11497
11498 fi
11499
11500
11501 ac_ext=cpp
11502 ac_cpp='$CXXCPP $CPPFLAGS'
11503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11506
11507 ac_ext=cpp
11508 ac_cpp='$CXXCPP $CPPFLAGS'
11509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11512 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11513 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11514 if test -z "$CXXCPP"; then
11515   if test "${ac_cv_prog_CXXCPP+set}" = set; then
11516   echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518       # Double quotes because CXXCPP needs to be expanded
11519     for CXXCPP in "$CXX -E" "/lib/cpp"
11520     do
11521       ac_preproc_ok=false
11522 for ac_cxx_preproc_warn_flag in '' yes
11523 do
11524   # Use a header file that comes with gcc, so configuring glibc
11525   # with a fresh cross-compiler works.
11526   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11527   # <limits.h> exists even on freestanding compilers.
11528   # On the NeXT, cc -E runs the code through the compiler's parser,
11529   # not just through cpp. "Syntax error" is here to catch this case.
11530   cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h.  */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h.  */
11536 #ifdef __STDC__
11537 # include <limits.h>
11538 #else
11539 # include <assert.h>
11540 #endif
11541                      Syntax error
11542 _ACEOF
11543 if { (ac_try="$ac_cpp conftest.$ac_ext"
11544 case "(($ac_try" in
11545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546   *) ac_try_echo=$ac_try;;
11547 esac
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11550   ac_status=$?
11551   grep -v '^ *+' conftest.er1 >conftest.err
11552   rm -f conftest.er1
11553   cat conftest.err >&5
11554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555   (exit $ac_status); } >/dev/null; then
11556   if test -s conftest.err; then
11557     ac_cpp_err=$ac_cxx_preproc_warn_flag
11558     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11559   else
11560     ac_cpp_err=
11561   fi
11562 else
11563   ac_cpp_err=yes
11564 fi
11565 if test -z "$ac_cpp_err"; then
11566   :
11567 else
11568   echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11570
11571   # Broken: fails on valid input.
11572 continue
11573 fi
11574
11575 rm -f conftest.err conftest.$ac_ext
11576
11577   # OK, works on sane cases.  Now check whether nonexistent headers
11578   # can be detected and how.
11579   cat >conftest.$ac_ext <<_ACEOF
11580 /* confdefs.h.  */
11581 _ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h.  */
11585 #include <ac_nonexistent.h>
11586 _ACEOF
11587 if { (ac_try="$ac_cpp conftest.$ac_ext"
11588 case "(($ac_try" in
11589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590   *) ac_try_echo=$ac_try;;
11591 esac
11592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11594   ac_status=$?
11595   grep -v '^ *+' conftest.er1 >conftest.err
11596   rm -f conftest.er1
11597   cat conftest.err >&5
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); } >/dev/null; then
11600   if test -s conftest.err; then
11601     ac_cpp_err=$ac_cxx_preproc_warn_flag
11602     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11603   else
11604     ac_cpp_err=
11605   fi
11606 else
11607   ac_cpp_err=yes
11608 fi
11609 if test -z "$ac_cpp_err"; then
11610   # Broken: success on invalid input.
11611 continue
11612 else
11613   echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11615
11616   # Passes both tests.
11617 ac_preproc_ok=:
11618 break
11619 fi
11620
11621 rm -f conftest.err conftest.$ac_ext
11622
11623 done
11624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11625 rm -f conftest.err conftest.$ac_ext
11626 if $ac_preproc_ok; then
11627   break
11628 fi
11629
11630     done
11631     ac_cv_prog_CXXCPP=$CXXCPP
11632
11633 fi
11634   CXXCPP=$ac_cv_prog_CXXCPP
11635 else
11636   ac_cv_prog_CXXCPP=$CXXCPP
11637 fi
11638 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11639 echo "${ECHO_T}$CXXCPP" >&6; }
11640 ac_preproc_ok=false
11641 for ac_cxx_preproc_warn_flag in '' yes
11642 do
11643   # Use a header file that comes with gcc, so configuring glibc
11644   # with a fresh cross-compiler works.
11645   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11646   # <limits.h> exists even on freestanding compilers.
11647   # On the NeXT, cc -E runs the code through the compiler's parser,
11648   # not just through cpp. "Syntax error" is here to catch this case.
11649   cat >conftest.$ac_ext <<_ACEOF
11650 /* confdefs.h.  */
11651 _ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h.  */
11655 #ifdef __STDC__
11656 # include <limits.h>
11657 #else
11658 # include <assert.h>
11659 #endif
11660                      Syntax error
11661 _ACEOF
11662 if { (ac_try="$ac_cpp conftest.$ac_ext"
11663 case "(($ac_try" in
11664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665   *) ac_try_echo=$ac_try;;
11666 esac
11667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11669   ac_status=$?
11670   grep -v '^ *+' conftest.er1 >conftest.err
11671   rm -f conftest.er1
11672   cat conftest.err >&5
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); } >/dev/null; then
11675   if test -s conftest.err; then
11676     ac_cpp_err=$ac_cxx_preproc_warn_flag
11677     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11678   else
11679     ac_cpp_err=
11680   fi
11681 else
11682   ac_cpp_err=yes
11683 fi
11684 if test -z "$ac_cpp_err"; then
11685   :
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690   # Broken: fails on valid input.
11691 continue
11692 fi
11693
11694 rm -f conftest.err conftest.$ac_ext
11695
11696   # OK, works on sane cases.  Now check whether nonexistent headers
11697   # can be detected and how.
11698   cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h.  */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h.  */
11704 #include <ac_nonexistent.h>
11705 _ACEOF
11706 if { (ac_try="$ac_cpp conftest.$ac_ext"
11707 case "(($ac_try" in
11708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709   *) ac_try_echo=$ac_try;;
11710 esac
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11713   ac_status=$?
11714   grep -v '^ *+' conftest.er1 >conftest.err
11715   rm -f conftest.er1
11716   cat conftest.err >&5
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); } >/dev/null; then
11719   if test -s conftest.err; then
11720     ac_cpp_err=$ac_cxx_preproc_warn_flag
11721     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11722   else
11723     ac_cpp_err=
11724   fi
11725 else
11726   ac_cpp_err=yes
11727 fi
11728 if test -z "$ac_cpp_err"; then
11729   # Broken: success on invalid input.
11730 continue
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735   # Passes both tests.
11736 ac_preproc_ok=:
11737 break
11738 fi
11739
11740 rm -f conftest.err conftest.$ac_ext
11741
11742 done
11743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11744 rm -f conftest.err conftest.$ac_ext
11745 if $ac_preproc_ok; then
11746   :
11747 else
11748   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11749 See \`config.log' for more details." >&5
11750 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11751 See \`config.log' for more details." >&2;}
11752    { (exit 1); exit 1; }; }
11753 fi
11754
11755 ac_ext=cpp
11756 ac_cpp='$CXXCPP $CPPFLAGS'
11757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11760
11761
11762
11763 for ac_header in cxxabi.h
11764 do
11765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11770   echo $ECHO_N "(cached) $ECHO_C" >&6
11771 fi
11772 ac_res=`eval echo '${'$as_ac_Header'}'`
11773                { echo "$as_me:$LINENO: result: $ac_res" >&5
11774 echo "${ECHO_T}$ac_res" >&6; }
11775 else
11776   # Is the header compilable?
11777 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11779 cat >conftest.$ac_ext <<_ACEOF
11780 /* confdefs.h.  */
11781 _ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h.  */
11785 $ac_includes_default
11786 #include <$ac_header>
11787 _ACEOF
11788 rm -f conftest.$ac_objext
11789 if { (ac_try="$ac_compile"
11790 case "(($ac_try" in
11791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792   *) ac_try_echo=$ac_try;;
11793 esac
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795   (eval "$ac_compile") 2>conftest.er1
11796   ac_status=$?
11797   grep -v '^ *+' conftest.er1 >conftest.err
11798   rm -f conftest.er1
11799   cat conftest.err >&5
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); } &&
11802          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11803   { (case "(($ac_try" in
11804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805   *) ac_try_echo=$ac_try;;
11806 esac
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808   (eval "$ac_try") 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); }; } &&
11812          { ac_try='test -s conftest.$ac_objext'
11813   { (case "(($ac_try" in
11814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815   *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818   (eval "$ac_try") 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); }; }; then
11822   ac_header_compiler=yes
11823 else
11824   echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827         ac_header_compiler=no
11828 fi
11829
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11832 echo "${ECHO_T}$ac_header_compiler" >&6; }
11833
11834 # Is the header present?
11835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11837 cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h.  */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h.  */
11843 #include <$ac_header>
11844 _ACEOF
11845 if { (ac_try="$ac_cpp conftest.$ac_ext"
11846 case "(($ac_try" in
11847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848   *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11852   ac_status=$?
11853   grep -v '^ *+' conftest.er1 >conftest.err
11854   rm -f conftest.er1
11855   cat conftest.err >&5
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); } >/dev/null; then
11858   if test -s conftest.err; then
11859     ac_cpp_err=$ac_cxx_preproc_warn_flag
11860     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11861   else
11862     ac_cpp_err=
11863   fi
11864 else
11865   ac_cpp_err=yes
11866 fi
11867 if test -z "$ac_cpp_err"; then
11868   ac_header_preproc=yes
11869 else
11870   echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11872
11873   ac_header_preproc=no
11874 fi
11875
11876 rm -f conftest.err conftest.$ac_ext
11877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11878 echo "${ECHO_T}$ac_header_preproc" >&6; }
11879
11880 # So?  What about this header?
11881 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11882   yes:no: )
11883     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11887     ac_header_preproc=yes
11888     ;;
11889   no:yes:* )
11890     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11892     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11893 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11894     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11896     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11897 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11900     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11902     ( cat <<\_ASBOX
11903 ## ------------------------------------ ##
11904 ## Report this to http://llvm.org/bugs/ ##
11905 ## ------------------------------------ ##
11906 _ASBOX
11907      ) | sed "s/^/$as_me: WARNING:     /" >&2
11908     ;;
11909 esac
11910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11913   echo $ECHO_N "(cached) $ECHO_C" >&6
11914 else
11915   eval "$as_ac_Header=\$ac_header_preproc"
11916 fi
11917 ac_res=`eval echo '${'$as_ac_Header'}'`
11918                { echo "$as_me:$LINENO: result: $ac_res" >&5
11919 echo "${ECHO_T}$ac_res" >&6; }
11920
11921 fi
11922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11923   cat >>confdefs.h <<_ACEOF
11924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11925 _ACEOF
11926
11927 fi
11928
11929 done
11930
11931 ac_ext=c
11932 ac_cpp='$CPP $CPPFLAGS'
11933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11936
11937
11938
11939
11940
11941
11942 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11943 do
11944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11946   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11949   echo $ECHO_N "(cached) $ECHO_C" >&6
11950 fi
11951 ac_res=`eval echo '${'$as_ac_Header'}'`
11952                { echo "$as_me:$LINENO: result: $ac_res" >&5
11953 echo "${ECHO_T}$ac_res" >&6; }
11954 else
11955   # Is the header compilable?
11956 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11958 cat >conftest.$ac_ext <<_ACEOF
11959 /* confdefs.h.  */
11960 _ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h.  */
11964 $ac_includes_default
11965 #include <$ac_header>
11966 _ACEOF
11967 rm -f conftest.$ac_objext
11968 if { (ac_try="$ac_compile"
11969 case "(($ac_try" in
11970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971   *) ac_try_echo=$ac_try;;
11972 esac
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974   (eval "$ac_compile") 2>conftest.er1
11975   ac_status=$?
11976   grep -v '^ *+' conftest.er1 >conftest.err
11977   rm -f conftest.er1
11978   cat conftest.err >&5
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); } &&
11981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11982   { (case "(($ac_try" in
11983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984   *) ac_try_echo=$ac_try;;
11985 esac
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987   (eval "$ac_try") 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; } &&
11991          { ac_try='test -s conftest.$ac_objext'
11992   { (case "(($ac_try" in
11993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994   *) ac_try_echo=$ac_try;;
11995 esac
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997   (eval "$ac_try") 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); }; }; then
12001   ac_header_compiler=yes
12002 else
12003   echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12005
12006         ac_header_compiler=no
12007 fi
12008
12009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12011 echo "${ECHO_T}$ac_header_compiler" >&6; }
12012
12013 # Is the header present?
12014 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12016 cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h.  */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h.  */
12022 #include <$ac_header>
12023 _ACEOF
12024 if { (ac_try="$ac_cpp conftest.$ac_ext"
12025 case "(($ac_try" in
12026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027   *) ac_try_echo=$ac_try;;
12028 esac
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12031   ac_status=$?
12032   grep -v '^ *+' conftest.er1 >conftest.err
12033   rm -f conftest.er1
12034   cat conftest.err >&5
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); } >/dev/null; then
12037   if test -s conftest.err; then
12038     ac_cpp_err=$ac_c_preproc_warn_flag
12039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12040   else
12041     ac_cpp_err=
12042   fi
12043 else
12044   ac_cpp_err=yes
12045 fi
12046 if test -z "$ac_cpp_err"; then
12047   ac_header_preproc=yes
12048 else
12049   echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052   ac_header_preproc=no
12053 fi
12054
12055 rm -f conftest.err conftest.$ac_ext
12056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12057 echo "${ECHO_T}$ac_header_preproc" >&6; }
12058
12059 # So?  What about this header?
12060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12061   yes:no: )
12062     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12066     ac_header_preproc=yes
12067     ;;
12068   no:yes:* )
12069     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12071     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12072 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12073     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12075     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12076 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12079     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12081     ( cat <<\_ASBOX
12082 ## ------------------------------------ ##
12083 ## Report this to http://llvm.org/bugs/ ##
12084 ## ------------------------------------ ##
12085 _ASBOX
12086      ) | sed "s/^/$as_me: WARNING:     /" >&2
12087     ;;
12088 esac
12089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12092   echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094   eval "$as_ac_Header=\$ac_header_preproc"
12095 fi
12096 ac_res=`eval echo '${'$as_ac_Header'}'`
12097                { echo "$as_me:$LINENO: result: $ac_res" >&5
12098 echo "${ECHO_T}$ac_res" >&6; }
12099
12100 fi
12101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12102   cat >>confdefs.h <<_ACEOF
12103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12104 _ACEOF
12105
12106 fi
12107
12108 done
12109
12110
12111
12112
12113
12114
12115
12116 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
12117 do
12118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12120   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 fi
12125 ac_res=`eval echo '${'$as_ac_Header'}'`
12126                { echo "$as_me:$LINENO: result: $ac_res" >&5
12127 echo "${ECHO_T}$ac_res" >&6; }
12128 else
12129   # Is the header compilable?
12130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12132 cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h.  */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h.  */
12138 $ac_includes_default
12139 #include <$ac_header>
12140 _ACEOF
12141 rm -f conftest.$ac_objext
12142 if { (ac_try="$ac_compile"
12143 case "(($ac_try" in
12144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145   *) ac_try_echo=$ac_try;;
12146 esac
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148   (eval "$ac_compile") 2>conftest.er1
12149   ac_status=$?
12150   grep -v '^ *+' conftest.er1 >conftest.err
12151   rm -f conftest.er1
12152   cat conftest.err >&5
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); } &&
12155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156   { (case "(($ac_try" in
12157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158   *) ac_try_echo=$ac_try;;
12159 esac
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161   (eval "$ac_try") 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; } &&
12165          { ac_try='test -s conftest.$ac_objext'
12166   { (case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_try") 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); }; }; then
12175   ac_header_compiler=yes
12176 else
12177   echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180         ac_header_compiler=no
12181 fi
12182
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185 echo "${ECHO_T}$ac_header_compiler" >&6; }
12186
12187 # Is the header present?
12188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h.  */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h.  */
12196 #include <$ac_header>
12197 _ACEOF
12198 if { (ac_try="$ac_cpp conftest.$ac_ext"
12199 case "(($ac_try" in
12200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201   *) ac_try_echo=$ac_try;;
12202 esac
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12205   ac_status=$?
12206   grep -v '^ *+' conftest.er1 >conftest.err
12207   rm -f conftest.er1
12208   cat conftest.err >&5
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); } >/dev/null; then
12211   if test -s conftest.err; then
12212     ac_cpp_err=$ac_c_preproc_warn_flag
12213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12214   else
12215     ac_cpp_err=
12216   fi
12217 else
12218   ac_cpp_err=yes
12219 fi
12220 if test -z "$ac_cpp_err"; then
12221   ac_header_preproc=yes
12222 else
12223   echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226   ac_header_preproc=no
12227 fi
12228
12229 rm -f conftest.err conftest.$ac_ext
12230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 echo "${ECHO_T}$ac_header_preproc" >&6; }
12232
12233 # So?  What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12235   yes:no: )
12236     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12240     ac_header_preproc=yes
12241     ;;
12242   no:yes:* )
12243     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12245     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12246 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12247     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12249     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12250 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12253     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12255     ( cat <<\_ASBOX
12256 ## ------------------------------------ ##
12257 ## Report this to http://llvm.org/bugs/ ##
12258 ## ------------------------------------ ##
12259 _ASBOX
12260      ) | sed "s/^/$as_me: WARNING:     /" >&2
12261     ;;
12262 esac
12263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266   echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268   eval "$as_ac_Header=\$ac_header_preproc"
12269 fi
12270 ac_res=`eval echo '${'$as_ac_Header'}'`
12271                { echo "$as_me:$LINENO: result: $ac_res" >&5
12272 echo "${ECHO_T}$ac_res" >&6; }
12273
12274 fi
12275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12276   cat >>confdefs.h <<_ACEOF
12277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12278 _ACEOF
12279
12280 fi
12281
12282 done
12283
12284
12285 for ac_header in utime.h
12286 do
12287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12289   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12292   echo $ECHO_N "(cached) $ECHO_C" >&6
12293 fi
12294 ac_res=`eval echo '${'$as_ac_Header'}'`
12295                { echo "$as_me:$LINENO: result: $ac_res" >&5
12296 echo "${ECHO_T}$ac_res" >&6; }
12297 else
12298   # Is the header compilable?
12299 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12301 cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h.  */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h.  */
12307 $ac_includes_default
12308 #include <$ac_header>
12309 _ACEOF
12310 rm -f conftest.$ac_objext
12311 if { (ac_try="$ac_compile"
12312 case "(($ac_try" in
12313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314   *) ac_try_echo=$ac_try;;
12315 esac
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317   (eval "$ac_compile") 2>conftest.er1
12318   ac_status=$?
12319   grep -v '^ *+' conftest.er1 >conftest.err
12320   rm -f conftest.er1
12321   cat conftest.err >&5
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); } &&
12324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325   { (case "(($ac_try" in
12326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327   *) ac_try_echo=$ac_try;;
12328 esac
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330   (eval "$ac_try") 2>&5
12331   ac_status=$?
12332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333   (exit $ac_status); }; } &&
12334          { ac_try='test -s conftest.$ac_objext'
12335   { (case "(($ac_try" in
12336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337   *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340   (eval "$ac_try") 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); }; }; then
12344   ac_header_compiler=yes
12345 else
12346   echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349         ac_header_compiler=no
12350 fi
12351
12352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12354 echo "${ECHO_T}$ac_header_compiler" >&6; }
12355
12356 # Is the header present?
12357 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12359 cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h.  */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h.  */
12365 #include <$ac_header>
12366 _ACEOF
12367 if { (ac_try="$ac_cpp conftest.$ac_ext"
12368 case "(($ac_try" in
12369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370   *) ac_try_echo=$ac_try;;
12371 esac
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12374   ac_status=$?
12375   grep -v '^ *+' conftest.er1 >conftest.err
12376   rm -f conftest.er1
12377   cat conftest.err >&5
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); } >/dev/null; then
12380   if test -s conftest.err; then
12381     ac_cpp_err=$ac_c_preproc_warn_flag
12382     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12383   else
12384     ac_cpp_err=
12385   fi
12386 else
12387   ac_cpp_err=yes
12388 fi
12389 if test -z "$ac_cpp_err"; then
12390   ac_header_preproc=yes
12391 else
12392   echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12394
12395   ac_header_preproc=no
12396 fi
12397
12398 rm -f conftest.err conftest.$ac_ext
12399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12400 echo "${ECHO_T}$ac_header_preproc" >&6; }
12401
12402 # So?  What about this header?
12403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12404   yes:no: )
12405     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12409     ac_header_preproc=yes
12410     ;;
12411   no:yes:* )
12412     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12414     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12415 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12416     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12418     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12419 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12422     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12424     ( cat <<\_ASBOX
12425 ## ------------------------------------ ##
12426 ## Report this to http://llvm.org/bugs/ ##
12427 ## ------------------------------------ ##
12428 _ASBOX
12429      ) | sed "s/^/$as_me: WARNING:     /" >&2
12430     ;;
12431 esac
12432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12435   echo $ECHO_N "(cached) $ECHO_C" >&6
12436 else
12437   eval "$as_ac_Header=\$ac_header_preproc"
12438 fi
12439 ac_res=`eval echo '${'$as_ac_Header'}'`
12440                { echo "$as_me:$LINENO: result: $ac_res" >&5
12441 echo "${ECHO_T}$ac_res" >&6; }
12442
12443 fi
12444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12445   cat >>confdefs.h <<_ACEOF
12446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12447 _ACEOF
12448
12449 fi
12450
12451 done
12452
12453
12454
12455
12456
12457
12458 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
12459 do
12460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
12467 ac_res=`eval echo '${'$as_ac_Header'}'`
12468                { echo "$as_me:$LINENO: result: $ac_res" >&5
12469 echo "${ECHO_T}$ac_res" >&6; }
12470 else
12471   # Is the header compilable?
12472 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12474 cat >conftest.$ac_ext <<_ACEOF
12475 /* confdefs.h.  */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h.  */
12480 $ac_includes_default
12481 #include <$ac_header>
12482 _ACEOF
12483 rm -f conftest.$ac_objext
12484 if { (ac_try="$ac_compile"
12485 case "(($ac_try" in
12486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487   *) ac_try_echo=$ac_try;;
12488 esac
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490   (eval "$ac_compile") 2>conftest.er1
12491   ac_status=$?
12492   grep -v '^ *+' conftest.er1 >conftest.err
12493   rm -f conftest.er1
12494   cat conftest.err >&5
12495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); } &&
12497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498   { (case "(($ac_try" in
12499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500   *) ac_try_echo=$ac_try;;
12501 esac
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503   (eval "$ac_try") 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; } &&
12507          { ac_try='test -s conftest.$ac_objext'
12508   { (case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_try") 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; }; then
12517   ac_header_compiler=yes
12518 else
12519   echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12521
12522         ac_header_compiler=no
12523 fi
12524
12525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12527 echo "${ECHO_T}$ac_header_compiler" >&6; }
12528
12529 # Is the header present?
12530 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h.  */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h.  */
12538 #include <$ac_header>
12539 _ACEOF
12540 if { (ac_try="$ac_cpp conftest.$ac_ext"
12541 case "(($ac_try" in
12542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543   *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12547   ac_status=$?
12548   grep -v '^ *+' conftest.er1 >conftest.err
12549   rm -f conftest.er1
12550   cat conftest.err >&5
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); } >/dev/null; then
12553   if test -s conftest.err; then
12554     ac_cpp_err=$ac_c_preproc_warn_flag
12555     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12556   else
12557     ac_cpp_err=
12558   fi
12559 else
12560   ac_cpp_err=yes
12561 fi
12562 if test -z "$ac_cpp_err"; then
12563   ac_header_preproc=yes
12564 else
12565   echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568   ac_header_preproc=no
12569 fi
12570
12571 rm -f conftest.err conftest.$ac_ext
12572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12573 echo "${ECHO_T}$ac_header_preproc" >&6; }
12574
12575 # So?  What about this header?
12576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12577   yes:no: )
12578     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12582     ac_header_preproc=yes
12583     ;;
12584   no:yes:* )
12585     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12587     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12588 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12589     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12591     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12592 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12595     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12597     ( cat <<\_ASBOX
12598 ## ------------------------------------ ##
12599 ## Report this to http://llvm.org/bugs/ ##
12600 ## ------------------------------------ ##
12601 _ASBOX
12602      ) | sed "s/^/$as_me: WARNING:     /" >&2
12603     ;;
12604 esac
12605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12608   echo $ECHO_N "(cached) $ECHO_C" >&6
12609 else
12610   eval "$as_ac_Header=\$ac_header_preproc"
12611 fi
12612 ac_res=`eval echo '${'$as_ac_Header'}'`
12613                { echo "$as_me:$LINENO: result: $ac_res" >&5
12614 echo "${ECHO_T}$ac_res" >&6; }
12615
12616 fi
12617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12618   cat >>confdefs.h <<_ACEOF
12619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12620 _ACEOF
12621
12622 fi
12623
12624 done
12625
12626
12627
12628
12629 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12630 do
12631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12633   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12636   echo $ECHO_N "(cached) $ECHO_C" >&6
12637 fi
12638 ac_res=`eval echo '${'$as_ac_Header'}'`
12639                { echo "$as_me:$LINENO: result: $ac_res" >&5
12640 echo "${ECHO_T}$ac_res" >&6; }
12641 else
12642   # Is the header compilable?
12643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12645 cat >conftest.$ac_ext <<_ACEOF
12646 /* confdefs.h.  */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h.  */
12651 $ac_includes_default
12652 #include <$ac_header>
12653 _ACEOF
12654 rm -f conftest.$ac_objext
12655 if { (ac_try="$ac_compile"
12656 case "(($ac_try" in
12657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658   *) ac_try_echo=$ac_try;;
12659 esac
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661   (eval "$ac_compile") 2>conftest.er1
12662   ac_status=$?
12663   grep -v '^ *+' conftest.er1 >conftest.err
12664   rm -f conftest.er1
12665   cat conftest.err >&5
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } &&
12668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12669   { (case "(($ac_try" in
12670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671   *) ac_try_echo=$ac_try;;
12672 esac
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674   (eval "$ac_try") 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); }; } &&
12678          { ac_try='test -s conftest.$ac_objext'
12679   { (case "(($ac_try" in
12680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681   *) ac_try_echo=$ac_try;;
12682 esac
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684   (eval "$ac_try") 2>&5
12685   ac_status=$?
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); }; }; then
12688   ac_header_compiler=yes
12689 else
12690   echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693         ac_header_compiler=no
12694 fi
12695
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12698 echo "${ECHO_T}$ac_header_compiler" >&6; }
12699
12700 # Is the header present?
12701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h.  */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h.  */
12709 #include <$ac_header>
12710 _ACEOF
12711 if { (ac_try="$ac_cpp conftest.$ac_ext"
12712 case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12718   ac_status=$?
12719   grep -v '^ *+' conftest.er1 >conftest.err
12720   rm -f conftest.er1
12721   cat conftest.err >&5
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } >/dev/null; then
12724   if test -s conftest.err; then
12725     ac_cpp_err=$ac_c_preproc_warn_flag
12726     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12727   else
12728     ac_cpp_err=
12729   fi
12730 else
12731   ac_cpp_err=yes
12732 fi
12733 if test -z "$ac_cpp_err"; then
12734   ac_header_preproc=yes
12735 else
12736   echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12738
12739   ac_header_preproc=no
12740 fi
12741
12742 rm -f conftest.err conftest.$ac_ext
12743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12744 echo "${ECHO_T}$ac_header_preproc" >&6; }
12745
12746 # So?  What about this header?
12747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12748   yes:no: )
12749     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12753     ac_header_preproc=yes
12754     ;;
12755   no:yes:* )
12756     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12758     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12759 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12760     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12762     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12763 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12766     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12768     ( cat <<\_ASBOX
12769 ## ------------------------------------ ##
12770 ## Report this to http://llvm.org/bugs/ ##
12771 ## ------------------------------------ ##
12772 _ASBOX
12773      ) | sed "s/^/$as_me: WARNING:     /" >&2
12774     ;;
12775 esac
12776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12779   echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781   eval "$as_ac_Header=\$ac_header_preproc"
12782 fi
12783 ac_res=`eval echo '${'$as_ac_Header'}'`
12784                { echo "$as_me:$LINENO: result: $ac_res" >&5
12785 echo "${ECHO_T}$ac_res" >&6; }
12786
12787 fi
12788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12789   cat >>confdefs.h <<_ACEOF
12790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12791 _ACEOF
12792
12793 fi
12794
12795 done
12796
12797
12798 for ac_header in valgrind/valgrind.h
12799 do
12800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12802   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12805   echo $ECHO_N "(cached) $ECHO_C" >&6
12806 fi
12807 ac_res=`eval echo '${'$as_ac_Header'}'`
12808                { echo "$as_me:$LINENO: result: $ac_res" >&5
12809 echo "${ECHO_T}$ac_res" >&6; }
12810 else
12811   # Is the header compilable?
12812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12814 cat >conftest.$ac_ext <<_ACEOF
12815 /* confdefs.h.  */
12816 _ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h.  */
12820 $ac_includes_default
12821 #include <$ac_header>
12822 _ACEOF
12823 rm -f conftest.$ac_objext
12824 if { (ac_try="$ac_compile"
12825 case "(($ac_try" in
12826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827   *) ac_try_echo=$ac_try;;
12828 esac
12829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830   (eval "$ac_compile") 2>conftest.er1
12831   ac_status=$?
12832   grep -v '^ *+' conftest.er1 >conftest.err
12833   rm -f conftest.er1
12834   cat conftest.err >&5
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); } &&
12837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12838   { (case "(($ac_try" in
12839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840   *) ac_try_echo=$ac_try;;
12841 esac
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843   (eval "$ac_try") 2>&5
12844   ac_status=$?
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); }; } &&
12847          { ac_try='test -s conftest.$ac_objext'
12848   { (case "(($ac_try" in
12849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850   *) ac_try_echo=$ac_try;;
12851 esac
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853   (eval "$ac_try") 2>&5
12854   ac_status=$?
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); }; }; then
12857   ac_header_compiler=yes
12858 else
12859   echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12861
12862         ac_header_compiler=no
12863 fi
12864
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12867 echo "${ECHO_T}$ac_header_compiler" >&6; }
12868
12869 # Is the header present?
12870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12872 cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h.  */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h.  */
12878 #include <$ac_header>
12879 _ACEOF
12880 if { (ac_try="$ac_cpp conftest.$ac_ext"
12881 case "(($ac_try" in
12882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883   *) ac_try_echo=$ac_try;;
12884 esac
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12887   ac_status=$?
12888   grep -v '^ *+' conftest.er1 >conftest.err
12889   rm -f conftest.er1
12890   cat conftest.err >&5
12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); } >/dev/null; then
12893   if test -s conftest.err; then
12894     ac_cpp_err=$ac_c_preproc_warn_flag
12895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12896   else
12897     ac_cpp_err=
12898   fi
12899 else
12900   ac_cpp_err=yes
12901 fi
12902 if test -z "$ac_cpp_err"; then
12903   ac_header_preproc=yes
12904 else
12905   echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12907
12908   ac_header_preproc=no
12909 fi
12910
12911 rm -f conftest.err conftest.$ac_ext
12912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12913 echo "${ECHO_T}$ac_header_preproc" >&6; }
12914
12915 # So?  What about this header?
12916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12917   yes:no: )
12918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12922     ac_header_preproc=yes
12923     ;;
12924   no:yes:* )
12925     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12927     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12928 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12929     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12931     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12932 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12935     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12937     ( cat <<\_ASBOX
12938 ## ------------------------------------ ##
12939 ## Report this to http://llvm.org/bugs/ ##
12940 ## ------------------------------------ ##
12941 _ASBOX
12942      ) | sed "s/^/$as_me: WARNING:     /" >&2
12943     ;;
12944 esac
12945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12948   echo $ECHO_N "(cached) $ECHO_C" >&6
12949 else
12950   eval "$as_ac_Header=\$ac_header_preproc"
12951 fi
12952 ac_res=`eval echo '${'$as_ac_Header'}'`
12953                { echo "$as_me:$LINENO: result: $ac_res" >&5
12954 echo "${ECHO_T}$ac_res" >&6; }
12955
12956 fi
12957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12958   cat >>confdefs.h <<_ACEOF
12959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12960 _ACEOF
12961
12962 fi
12963
12964 done
12965
12966
12967 for ac_header in fenv.h
12968 do
12969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12971   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12974   echo $ECHO_N "(cached) $ECHO_C" >&6
12975 fi
12976 ac_res=`eval echo '${'$as_ac_Header'}'`
12977                { echo "$as_me:$LINENO: result: $ac_res" >&5
12978 echo "${ECHO_T}$ac_res" >&6; }
12979 else
12980   # Is the header compilable?
12981 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12983 cat >conftest.$ac_ext <<_ACEOF
12984 /* confdefs.h.  */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h.  */
12989 $ac_includes_default
12990 #include <$ac_header>
12991 _ACEOF
12992 rm -f conftest.$ac_objext
12993 if { (ac_try="$ac_compile"
12994 case "(($ac_try" in
12995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996   *) ac_try_echo=$ac_try;;
12997 esac
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999   (eval "$ac_compile") 2>conftest.er1
13000   ac_status=$?
13001   grep -v '^ *+' conftest.er1 >conftest.err
13002   rm -f conftest.er1
13003   cat conftest.err >&5
13004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005   (exit $ac_status); } &&
13006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13007   { (case "(($ac_try" in
13008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009   *) ac_try_echo=$ac_try;;
13010 esac
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012   (eval "$ac_try") 2>&5
13013   ac_status=$?
13014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015   (exit $ac_status); }; } &&
13016          { ac_try='test -s conftest.$ac_objext'
13017   { (case "(($ac_try" in
13018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019   *) ac_try_echo=$ac_try;;
13020 esac
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022   (eval "$ac_try") 2>&5
13023   ac_status=$?
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); }; }; then
13026   ac_header_compiler=yes
13027 else
13028   echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13030
13031         ac_header_compiler=no
13032 fi
13033
13034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13036 echo "${ECHO_T}$ac_header_compiler" >&6; }
13037
13038 # Is the header present?
13039 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13041 cat >conftest.$ac_ext <<_ACEOF
13042 /* confdefs.h.  */
13043 _ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h.  */
13047 #include <$ac_header>
13048 _ACEOF
13049 if { (ac_try="$ac_cpp conftest.$ac_ext"
13050 case "(($ac_try" in
13051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052   *) ac_try_echo=$ac_try;;
13053 esac
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13056   ac_status=$?
13057   grep -v '^ *+' conftest.er1 >conftest.err
13058   rm -f conftest.er1
13059   cat conftest.err >&5
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); } >/dev/null; then
13062   if test -s conftest.err; then
13063     ac_cpp_err=$ac_c_preproc_warn_flag
13064     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13065   else
13066     ac_cpp_err=
13067   fi
13068 else
13069   ac_cpp_err=yes
13070 fi
13071 if test -z "$ac_cpp_err"; then
13072   ac_header_preproc=yes
13073 else
13074   echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13076
13077   ac_header_preproc=no
13078 fi
13079
13080 rm -f conftest.err conftest.$ac_ext
13081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13082 echo "${ECHO_T}$ac_header_preproc" >&6; }
13083
13084 # So?  What about this header?
13085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13086   yes:no: )
13087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13091     ac_header_preproc=yes
13092     ;;
13093   no:yes:* )
13094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13096     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13097 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13098     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13100     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13101 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13104     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13106     ( cat <<\_ASBOX
13107 ## ------------------------------------ ##
13108 ## Report this to http://llvm.org/bugs/ ##
13109 ## ------------------------------------ ##
13110 _ASBOX
13111      ) | sed "s/^/$as_me: WARNING:     /" >&2
13112     ;;
13113 esac
13114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13117   echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119   eval "$as_ac_Header=\$ac_header_preproc"
13120 fi
13121 ac_res=`eval echo '${'$as_ac_Header'}'`
13122                { echo "$as_me:$LINENO: result: $ac_res" >&5
13123 echo "${ECHO_T}$ac_res" >&6; }
13124
13125 fi
13126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13127   cat >>confdefs.h <<_ACEOF
13128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13129 _ACEOF
13130
13131 fi
13132
13133 done
13134
13135 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
13136 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
13137 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
13138   echo $ECHO_N "(cached) $ECHO_C" >&6
13139 else
13140   cat >conftest.$ac_ext <<_ACEOF
13141 /* confdefs.h.  */
13142 _ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h.  */
13146 #include <fenv.h>
13147
13148 int
13149 main ()
13150 {
13151 #ifndef FE_ALL_EXCEPT
13152   char *p = (char *) FE_ALL_EXCEPT;
13153   return !p;
13154 #endif
13155
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 rm -f conftest.$ac_objext
13161 if { (ac_try="$ac_compile"
13162 case "(($ac_try" in
13163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164   *) ac_try_echo=$ac_try;;
13165 esac
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167   (eval "$ac_compile") 2>conftest.er1
13168   ac_status=$?
13169   grep -v '^ *+' conftest.er1 >conftest.err
13170   rm -f conftest.er1
13171   cat conftest.err >&5
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); } &&
13174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13175   { (case "(($ac_try" in
13176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177   *) ac_try_echo=$ac_try;;
13178 esac
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180   (eval "$ac_try") 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); }; } &&
13184          { ac_try='test -s conftest.$ac_objext'
13185   { (case "(($ac_try" in
13186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187   *) ac_try_echo=$ac_try;;
13188 esac
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190   (eval "$ac_try") 2>&5
13191   ac_status=$?
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); }; }; then
13194   ac_cv_have_decl_FE_ALL_EXCEPT=yes
13195 else
13196   echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13198
13199         ac_cv_have_decl_FE_ALL_EXCEPT=no
13200 fi
13201
13202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13203 fi
13204 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
13205 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
13206 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
13207
13208 cat >>confdefs.h <<_ACEOF
13209 #define HAVE_DECL_FE_ALL_EXCEPT 1
13210 _ACEOF
13211
13212
13213 else
13214   cat >>confdefs.h <<_ACEOF
13215 #define HAVE_DECL_FE_ALL_EXCEPT 0
13216 _ACEOF
13217
13218
13219 fi
13220 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
13221 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
13222 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
13223   echo $ECHO_N "(cached) $ECHO_C" >&6
13224 else
13225   cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h.  */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h.  */
13231 #include <fenv.h>
13232
13233 int
13234 main ()
13235 {
13236 #ifndef FE_INEXACT
13237   char *p = (char *) FE_INEXACT;
13238   return !p;
13239 #endif
13240
13241   ;
13242   return 0;
13243 }
13244 _ACEOF
13245 rm -f conftest.$ac_objext
13246 if { (ac_try="$ac_compile"
13247 case "(($ac_try" in
13248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249   *) ac_try_echo=$ac_try;;
13250 esac
13251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252   (eval "$ac_compile") 2>conftest.er1
13253   ac_status=$?
13254   grep -v '^ *+' conftest.er1 >conftest.err
13255   rm -f conftest.er1
13256   cat conftest.err >&5
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); } &&
13259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13260   { (case "(($ac_try" in
13261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262   *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265   (eval "$ac_try") 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); }; } &&
13269          { ac_try='test -s conftest.$ac_objext'
13270   { (case "(($ac_try" in
13271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272   *) ac_try_echo=$ac_try;;
13273 esac
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275   (eval "$ac_try") 2>&5
13276   ac_status=$?
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); }; }; then
13279   ac_cv_have_decl_FE_INEXACT=yes
13280 else
13281   echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13283
13284         ac_cv_have_decl_FE_INEXACT=no
13285 fi
13286
13287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13288 fi
13289 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
13290 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
13291 if test $ac_cv_have_decl_FE_INEXACT = yes; then
13292
13293 cat >>confdefs.h <<_ACEOF
13294 #define HAVE_DECL_FE_INEXACT 1
13295 _ACEOF
13296
13297
13298 else
13299   cat >>confdefs.h <<_ACEOF
13300 #define HAVE_DECL_FE_INEXACT 0
13301 _ACEOF
13302
13303
13304 fi
13305
13306
13307 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13308
13309 for ac_header in pthread.h
13310 do
13311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13313   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13316   echo $ECHO_N "(cached) $ECHO_C" >&6
13317 fi
13318 ac_res=`eval echo '${'$as_ac_Header'}'`
13319                { echo "$as_me:$LINENO: result: $ac_res" >&5
13320 echo "${ECHO_T}$ac_res" >&6; }
13321 else
13322   # Is the header compilable?
13323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13325 cat >conftest.$ac_ext <<_ACEOF
13326 /* confdefs.h.  */
13327 _ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h.  */
13331 $ac_includes_default
13332 #include <$ac_header>
13333 _ACEOF
13334 rm -f conftest.$ac_objext
13335 if { (ac_try="$ac_compile"
13336 case "(($ac_try" in
13337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338   *) ac_try_echo=$ac_try;;
13339 esac
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341   (eval "$ac_compile") 2>conftest.er1
13342   ac_status=$?
13343   grep -v '^ *+' conftest.er1 >conftest.err
13344   rm -f conftest.er1
13345   cat conftest.err >&5
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); } &&
13348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13349   { (case "(($ac_try" in
13350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351   *) ac_try_echo=$ac_try;;
13352 esac
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354   (eval "$ac_try") 2>&5
13355   ac_status=$?
13356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357   (exit $ac_status); }; } &&
13358          { ac_try='test -s conftest.$ac_objext'
13359   { (case "(($ac_try" in
13360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361   *) ac_try_echo=$ac_try;;
13362 esac
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364   (eval "$ac_try") 2>&5
13365   ac_status=$?
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); }; }; then
13368   ac_header_compiler=yes
13369 else
13370   echo "$as_me: failed program was:" >&5
13371 sed 's/^/| /' conftest.$ac_ext >&5
13372
13373         ac_header_compiler=no
13374 fi
13375
13376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13378 echo "${ECHO_T}$ac_header_compiler" >&6; }
13379
13380 # Is the header present?
13381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13383 cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h.  */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h.  */
13389 #include <$ac_header>
13390 _ACEOF
13391 if { (ac_try="$ac_cpp conftest.$ac_ext"
13392 case "(($ac_try" in
13393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394   *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13398   ac_status=$?
13399   grep -v '^ *+' conftest.er1 >conftest.err
13400   rm -f conftest.er1
13401   cat conftest.err >&5
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); } >/dev/null; then
13404   if test -s conftest.err; then
13405     ac_cpp_err=$ac_c_preproc_warn_flag
13406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13407   else
13408     ac_cpp_err=
13409   fi
13410 else
13411   ac_cpp_err=yes
13412 fi
13413 if test -z "$ac_cpp_err"; then
13414   ac_header_preproc=yes
13415 else
13416   echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13418
13419   ac_header_preproc=no
13420 fi
13421
13422 rm -f conftest.err conftest.$ac_ext
13423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13424 echo "${ECHO_T}$ac_header_preproc" >&6; }
13425
13426 # So?  What about this header?
13427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13428   yes:no: )
13429     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13433     ac_header_preproc=yes
13434     ;;
13435   no:yes:* )
13436     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13438     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13439 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13440     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13442     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13443 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13446     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13448     ( cat <<\_ASBOX
13449 ## ------------------------------------ ##
13450 ## Report this to http://llvm.org/bugs/ ##
13451 ## ------------------------------------ ##
13452 _ASBOX
13453      ) | sed "s/^/$as_me: WARNING:     /" >&2
13454     ;;
13455 esac
13456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13459   echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461   eval "$as_ac_Header=\$ac_header_preproc"
13462 fi
13463 ac_res=`eval echo '${'$as_ac_Header'}'`
13464                { echo "$as_me:$LINENO: result: $ac_res" >&5
13465 echo "${ECHO_T}$ac_res" >&6; }
13466
13467 fi
13468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13469   cat >>confdefs.h <<_ACEOF
13470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13471 _ACEOF
13472  HAVE_PTHREAD=1
13473
13474 else
13475   HAVE_PTHREAD=0
13476
13477 fi
13478
13479 done
13480
13481 else
13482   HAVE_PTHREAD=0
13483
13484 fi
13485 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13486
13487 for ac_header in zlib.h
13488 do
13489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13491   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13494   echo $ECHO_N "(cached) $ECHO_C" >&6
13495 fi
13496 ac_res=`eval echo '${'$as_ac_Header'}'`
13497                { echo "$as_me:$LINENO: result: $ac_res" >&5
13498 echo "${ECHO_T}$ac_res" >&6; }
13499 else
13500   # Is the header compilable?
13501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13503 cat >conftest.$ac_ext <<_ACEOF
13504 /* confdefs.h.  */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h.  */
13509 $ac_includes_default
13510 #include <$ac_header>
13511 _ACEOF
13512 rm -f conftest.$ac_objext
13513 if { (ac_try="$ac_compile"
13514 case "(($ac_try" in
13515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516   *) ac_try_echo=$ac_try;;
13517 esac
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519   (eval "$ac_compile") 2>conftest.er1
13520   ac_status=$?
13521   grep -v '^ *+' conftest.er1 >conftest.err
13522   rm -f conftest.er1
13523   cat conftest.err >&5
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); } &&
13526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13527   { (case "(($ac_try" in
13528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529   *) ac_try_echo=$ac_try;;
13530 esac
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532   (eval "$ac_try") 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; } &&
13536          { ac_try='test -s conftest.$ac_objext'
13537   { (case "(($ac_try" in
13538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539   *) ac_try_echo=$ac_try;;
13540 esac
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542   (eval "$ac_try") 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); }; }; then
13546   ac_header_compiler=yes
13547 else
13548   echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13550
13551         ac_header_compiler=no
13552 fi
13553
13554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13556 echo "${ECHO_T}$ac_header_compiler" >&6; }
13557
13558 # Is the header present?
13559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13561 cat >conftest.$ac_ext <<_ACEOF
13562 /* confdefs.h.  */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h.  */
13567 #include <$ac_header>
13568 _ACEOF
13569 if { (ac_try="$ac_cpp conftest.$ac_ext"
13570 case "(($ac_try" in
13571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572   *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13576   ac_status=$?
13577   grep -v '^ *+' conftest.er1 >conftest.err
13578   rm -f conftest.er1
13579   cat conftest.err >&5
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); } >/dev/null; then
13582   if test -s conftest.err; then
13583     ac_cpp_err=$ac_c_preproc_warn_flag
13584     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13585   else
13586     ac_cpp_err=
13587   fi
13588 else
13589   ac_cpp_err=yes
13590 fi
13591 if test -z "$ac_cpp_err"; then
13592   ac_header_preproc=yes
13593 else
13594   echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13596
13597   ac_header_preproc=no
13598 fi
13599
13600 rm -f conftest.err conftest.$ac_ext
13601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13602 echo "${ECHO_T}$ac_header_preproc" >&6; }
13603
13604 # So?  What about this header?
13605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13606   yes:no: )
13607     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13611     ac_header_preproc=yes
13612     ;;
13613   no:yes:* )
13614     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13616     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13617 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13618     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13620     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13621 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13624     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13626     ( cat <<\_ASBOX
13627 ## ------------------------------------ ##
13628 ## Report this to http://llvm.org/bugs/ ##
13629 ## ------------------------------------ ##
13630 _ASBOX
13631      ) | sed "s/^/$as_me: WARNING:     /" >&2
13632     ;;
13633 esac
13634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13637   echo $ECHO_N "(cached) $ECHO_C" >&6
13638 else
13639   eval "$as_ac_Header=\$ac_header_preproc"
13640 fi
13641 ac_res=`eval echo '${'$as_ac_Header'}'`
13642                { echo "$as_me:$LINENO: result: $ac_res" >&5
13643 echo "${ECHO_T}$ac_res" >&6; }
13644
13645 fi
13646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13647   cat >>confdefs.h <<_ACEOF
13648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13649 _ACEOF
13650  HAVE_LIBZ=1
13651
13652 else
13653   HAVE_LIBZ=0
13654
13655 fi
13656
13657 done
13658
13659 else
13660   HAVE_LIBZ=0
13661
13662 fi
13663
13664 if test "$llvm_cv_enable_libffi" = "yes" ; then
13665
13666
13667 for ac_header in ffi.h ffi/ffi.h
13668 do
13669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13671   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13674   echo $ECHO_N "(cached) $ECHO_C" >&6
13675 fi
13676 ac_res=`eval echo '${'$as_ac_Header'}'`
13677                { echo "$as_me:$LINENO: result: $ac_res" >&5
13678 echo "${ECHO_T}$ac_res" >&6; }
13679 else
13680   # Is the header compilable?
13681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13683 cat >conftest.$ac_ext <<_ACEOF
13684 /* confdefs.h.  */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h.  */
13689 $ac_includes_default
13690 #include <$ac_header>
13691 _ACEOF
13692 rm -f conftest.$ac_objext
13693 if { (ac_try="$ac_compile"
13694 case "(($ac_try" in
13695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696   *) ac_try_echo=$ac_try;;
13697 esac
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699   (eval "$ac_compile") 2>conftest.er1
13700   ac_status=$?
13701   grep -v '^ *+' conftest.er1 >conftest.err
13702   rm -f conftest.er1
13703   cat conftest.err >&5
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); } &&
13706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707   { (case "(($ac_try" in
13708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709   *) ac_try_echo=$ac_try;;
13710 esac
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712   (eval "$ac_try") 2>&5
13713   ac_status=$?
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); }; } &&
13716          { ac_try='test -s conftest.$ac_objext'
13717   { (case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722   (eval "$ac_try") 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; }; then
13726   ac_header_compiler=yes
13727 else
13728   echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731         ac_header_compiler=no
13732 fi
13733
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13736 echo "${ECHO_T}$ac_header_compiler" >&6; }
13737
13738 # Is the header present?
13739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13741 cat >conftest.$ac_ext <<_ACEOF
13742 /* confdefs.h.  */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h.  */
13747 #include <$ac_header>
13748 _ACEOF
13749 if { (ac_try="$ac_cpp conftest.$ac_ext"
13750 case "(($ac_try" in
13751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752   *) ac_try_echo=$ac_try;;
13753 esac
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13756   ac_status=$?
13757   grep -v '^ *+' conftest.er1 >conftest.err
13758   rm -f conftest.er1
13759   cat conftest.err >&5
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); } >/dev/null; then
13762   if test -s conftest.err; then
13763     ac_cpp_err=$ac_c_preproc_warn_flag
13764     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13765   else
13766     ac_cpp_err=
13767   fi
13768 else
13769   ac_cpp_err=yes
13770 fi
13771 if test -z "$ac_cpp_err"; then
13772   ac_header_preproc=yes
13773 else
13774   echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13776
13777   ac_header_preproc=no
13778 fi
13779
13780 rm -f conftest.err conftest.$ac_ext
13781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13782 echo "${ECHO_T}$ac_header_preproc" >&6; }
13783
13784 # So?  What about this header?
13785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13786   yes:no: )
13787     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13791     ac_header_preproc=yes
13792     ;;
13793   no:yes:* )
13794     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13796     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13797 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13798     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13800     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13801 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13804     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13806     ( cat <<\_ASBOX
13807 ## ------------------------------------ ##
13808 ## Report this to http://llvm.org/bugs/ ##
13809 ## ------------------------------------ ##
13810 _ASBOX
13811      ) | sed "s/^/$as_me: WARNING:     /" >&2
13812     ;;
13813 esac
13814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13817   echo $ECHO_N "(cached) $ECHO_C" >&6
13818 else
13819   eval "$as_ac_Header=\$ac_header_preproc"
13820 fi
13821 ac_res=`eval echo '${'$as_ac_Header'}'`
13822                { echo "$as_me:$LINENO: result: $ac_res" >&5
13823 echo "${ECHO_T}$ac_res" >&6; }
13824
13825 fi
13826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13827   cat >>confdefs.h <<_ACEOF
13828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13829 _ACEOF
13830
13831 fi
13832
13833 done
13834
13835 fi
13836
13837
13838 for ac_header in CrashReporterClient.h
13839 do
13840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13842   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13845   echo $ECHO_N "(cached) $ECHO_C" >&6
13846 fi
13847 ac_res=`eval echo '${'$as_ac_Header'}'`
13848                { echo "$as_me:$LINENO: result: $ac_res" >&5
13849 echo "${ECHO_T}$ac_res" >&6; }
13850 else
13851   # Is the header compilable?
13852 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13854 cat >conftest.$ac_ext <<_ACEOF
13855 /* confdefs.h.  */
13856 _ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h.  */
13860 $ac_includes_default
13861 #include <$ac_header>
13862 _ACEOF
13863 rm -f conftest.$ac_objext
13864 if { (ac_try="$ac_compile"
13865 case "(($ac_try" in
13866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867   *) ac_try_echo=$ac_try;;
13868 esac
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870   (eval "$ac_compile") 2>conftest.er1
13871   ac_status=$?
13872   grep -v '^ *+' conftest.er1 >conftest.err
13873   rm -f conftest.er1
13874   cat conftest.err >&5
13875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876   (exit $ac_status); } &&
13877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13878   { (case "(($ac_try" in
13879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13880   *) ac_try_echo=$ac_try;;
13881 esac
13882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13883   (eval "$ac_try") 2>&5
13884   ac_status=$?
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); }; } &&
13887          { ac_try='test -s conftest.$ac_objext'
13888   { (case "(($ac_try" in
13889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890   *) ac_try_echo=$ac_try;;
13891 esac
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893   (eval "$ac_try") 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; }; then
13897   ac_header_compiler=yes
13898 else
13899   echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13901
13902         ac_header_compiler=no
13903 fi
13904
13905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13907 echo "${ECHO_T}$ac_header_compiler" >&6; }
13908
13909 # Is the header present?
13910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13912 cat >conftest.$ac_ext <<_ACEOF
13913 /* confdefs.h.  */
13914 _ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h.  */
13918 #include <$ac_header>
13919 _ACEOF
13920 if { (ac_try="$ac_cpp conftest.$ac_ext"
13921 case "(($ac_try" in
13922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923   *) ac_try_echo=$ac_try;;
13924 esac
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13927   ac_status=$?
13928   grep -v '^ *+' conftest.er1 >conftest.err
13929   rm -f conftest.er1
13930   cat conftest.err >&5
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); } >/dev/null; then
13933   if test -s conftest.err; then
13934     ac_cpp_err=$ac_c_preproc_warn_flag
13935     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13936   else
13937     ac_cpp_err=
13938   fi
13939 else
13940   ac_cpp_err=yes
13941 fi
13942 if test -z "$ac_cpp_err"; then
13943   ac_header_preproc=yes
13944 else
13945   echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13947
13948   ac_header_preproc=no
13949 fi
13950
13951 rm -f conftest.err conftest.$ac_ext
13952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13953 echo "${ECHO_T}$ac_header_preproc" >&6; }
13954
13955 # So?  What about this header?
13956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13957   yes:no: )
13958     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13962     ac_header_preproc=yes
13963     ;;
13964   no:yes:* )
13965     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13967     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13968 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13969     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13971     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13972 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13975     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13977     ( cat <<\_ASBOX
13978 ## ------------------------------------ ##
13979 ## Report this to http://llvm.org/bugs/ ##
13980 ## ------------------------------------ ##
13981 _ASBOX
13982      ) | sed "s/^/$as_me: WARNING:     /" >&2
13983     ;;
13984 esac
13985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13988   echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990   eval "$as_ac_Header=\$ac_header_preproc"
13991 fi
13992 ac_res=`eval echo '${'$as_ac_Header'}'`
13993                { echo "$as_me:$LINENO: result: $ac_res" >&5
13994 echo "${ECHO_T}$ac_res" >&6; }
13995
13996 fi
13997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13998   cat >>confdefs.h <<_ACEOF
13999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14000 _ACEOF
14001
14002 fi
14003
14004 done
14005
14006
14007 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
14008 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
14009 cat >conftest.$ac_ext <<_ACEOF
14010
14011   /* confdefs.h.  */
14012 _ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h.  */
14016
14017     extern const char *__crashreporter_info__;
14018     int main() {
14019       __crashreporter_info__ = "test";
14020       return 0;
14021     }
14022
14023
14024 _ACEOF
14025 rm -f conftest.$ac_objext conftest$ac_exeext
14026 if { (ac_try="$ac_link"
14027 case "(($ac_try" in
14028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029   *) ac_try_echo=$ac_try;;
14030 esac
14031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032   (eval "$ac_link") 2>conftest.er1
14033   ac_status=$?
14034   grep -v '^ *+' conftest.er1 >conftest.err
14035   rm -f conftest.er1
14036   cat conftest.err >&5
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); } &&
14039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14040   { (case "(($ac_try" in
14041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14042   *) ac_try_echo=$ac_try;;
14043 esac
14044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14045   (eval "$ac_try") 2>&5
14046   ac_status=$?
14047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048   (exit $ac_status); }; } &&
14049          { ac_try='test -s conftest$ac_exeext'
14050   { (case "(($ac_try" in
14051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052   *) ac_try_echo=$ac_try;;
14053 esac
14054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055   (eval "$ac_try") 2>&5
14056   ac_status=$?
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); }; }; then
14059
14060   { echo "$as_me:$LINENO: result: yes" >&5
14061 echo "${ECHO_T}yes" >&6; }
14062
14063 cat >>confdefs.h <<\_ACEOF
14064 #define HAVE_CRASHREPORTER_INFO 1
14065 _ACEOF
14066
14067
14068 else
14069   echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14071
14072
14073   { echo "$as_me:$LINENO: result: no" >&5
14074 echo "${ECHO_T}no" >&6; }
14075
14076 cat >>confdefs.h <<\_ACEOF
14077 #define HAVE_CRASHREPORTER_INFO 0
14078 _ACEOF
14079
14080
14081 fi
14082
14083 rm -f core conftest.err conftest.$ac_objext \
14084       conftest$ac_exeext conftest.$ac_ext
14085
14086
14087
14088   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
14089 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
14090 if test "${ac_cv_huge_val_sanity+set}" = set; then
14091   echo $ECHO_N "(cached) $ECHO_C" >&6
14092 else
14093
14094     ac_ext=cpp
14095 ac_cpp='$CXXCPP $CPPFLAGS'
14096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14099
14100     ac_save_CXXFLAGS=$CXXFLAGS
14101     CXXFLAGS="$CXXFLAGS -pedantic"
14102     if test "$cross_compiling" = yes; then
14103   ac_cv_huge_val_sanity=yes
14104 else
14105   cat >conftest.$ac_ext <<_ACEOF
14106 /* confdefs.h.  */
14107 _ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h.  */
14111 #include <math.h>
14112 int
14113 main ()
14114 {
14115 double x = HUGE_VAL; return x != x;
14116   ;
14117   return 0;
14118 }
14119 _ACEOF
14120 rm -f conftest$ac_exeext
14121 if { (ac_try="$ac_link"
14122 case "(($ac_try" in
14123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124   *) ac_try_echo=$ac_try;;
14125 esac
14126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127   (eval "$ac_link") 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14131   { (case "(($ac_try" in
14132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133   *) ac_try_echo=$ac_try;;
14134 esac
14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136   (eval "$ac_try") 2>&5
14137   ac_status=$?
14138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139   (exit $ac_status); }; }; then
14140   ac_cv_huge_val_sanity=yes
14141 else
14142   echo "$as_me: program exited with status $ac_status" >&5
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14145
14146 ( exit $ac_status )
14147 ac_cv_huge_val_sanity=no
14148 fi
14149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14150 fi
14151
14152
14153     CXXFLAGS=$ac_save_CXXFLAGS
14154     ac_ext=c
14155 ac_cpp='$CPP $CPPFLAGS'
14156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14159
14160
14161 fi
14162 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
14163 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
14164   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
14165
14166
14167 { echo "$as_me:$LINENO: checking for pid_t" >&5
14168 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14169 if test "${ac_cv_type_pid_t+set}" = set; then
14170   echo $ECHO_N "(cached) $ECHO_C" >&6
14171 else
14172   cat >conftest.$ac_ext <<_ACEOF
14173 /* confdefs.h.  */
14174 _ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h.  */
14178 $ac_includes_default
14179 typedef pid_t ac__type_new_;
14180 int
14181 main ()
14182 {
14183 if ((ac__type_new_ *) 0)
14184   return 0;
14185 if (sizeof (ac__type_new_))
14186   return 0;
14187   ;
14188   return 0;
14189 }
14190 _ACEOF
14191 rm -f conftest.$ac_objext
14192 if { (ac_try="$ac_compile"
14193 case "(($ac_try" in
14194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195   *) ac_try_echo=$ac_try;;
14196 esac
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198   (eval "$ac_compile") 2>conftest.er1
14199   ac_status=$?
14200   grep -v '^ *+' conftest.er1 >conftest.err
14201   rm -f conftest.er1
14202   cat conftest.err >&5
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); } &&
14205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14206   { (case "(($ac_try" in
14207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208   *) ac_try_echo=$ac_try;;
14209 esac
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211   (eval "$ac_try") 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }; } &&
14215          { ac_try='test -s conftest.$ac_objext'
14216   { (case "(($ac_try" in
14217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218   *) ac_try_echo=$ac_try;;
14219 esac
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221   (eval "$ac_try") 2>&5
14222   ac_status=$?
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); }; }; then
14225   ac_cv_type_pid_t=yes
14226 else
14227   echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14229
14230         ac_cv_type_pid_t=no
14231 fi
14232
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234 fi
14235 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14236 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14237 if test $ac_cv_type_pid_t = yes; then
14238   :
14239 else
14240
14241 cat >>confdefs.h <<_ACEOF
14242 #define pid_t int
14243 _ACEOF
14244
14245 fi
14246
14247 { echo "$as_me:$LINENO: checking for size_t" >&5
14248 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14249 if test "${ac_cv_type_size_t+set}" = set; then
14250   echo $ECHO_N "(cached) $ECHO_C" >&6
14251 else
14252   cat >conftest.$ac_ext <<_ACEOF
14253 /* confdefs.h.  */
14254 _ACEOF
14255 cat confdefs.h >>conftest.$ac_ext
14256 cat >>conftest.$ac_ext <<_ACEOF
14257 /* end confdefs.h.  */
14258 $ac_includes_default
14259 typedef size_t ac__type_new_;
14260 int
14261 main ()
14262 {
14263 if ((ac__type_new_ *) 0)
14264   return 0;
14265 if (sizeof (ac__type_new_))
14266   return 0;
14267   ;
14268   return 0;
14269 }
14270 _ACEOF
14271 rm -f conftest.$ac_objext
14272 if { (ac_try="$ac_compile"
14273 case "(($ac_try" in
14274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275   *) ac_try_echo=$ac_try;;
14276 esac
14277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14278   (eval "$ac_compile") 2>conftest.er1
14279   ac_status=$?
14280   grep -v '^ *+' conftest.er1 >conftest.err
14281   rm -f conftest.er1
14282   cat conftest.err >&5
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); } &&
14285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14286   { (case "(($ac_try" in
14287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288   *) ac_try_echo=$ac_try;;
14289 esac
14290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291   (eval "$ac_try") 2>&5
14292   ac_status=$?
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); }; } &&
14295          { ac_try='test -s conftest.$ac_objext'
14296   { (case "(($ac_try" in
14297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298   *) ac_try_echo=$ac_try;;
14299 esac
14300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301   (eval "$ac_try") 2>&5
14302   ac_status=$?
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); }; }; then
14305   ac_cv_type_size_t=yes
14306 else
14307   echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14309
14310         ac_cv_type_size_t=no
14311 fi
14312
14313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14314 fi
14315 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14316 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14317 if test $ac_cv_type_size_t = yes; then
14318   :
14319 else
14320
14321 cat >>confdefs.h <<_ACEOF
14322 #define size_t unsigned int
14323 _ACEOF
14324
14325 fi
14326
14327
14328 cat >>confdefs.h <<_ACEOF
14329 #define RETSIGTYPE void
14330 _ACEOF
14331
14332 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14333 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14334 if test "${ac_cv_struct_tm+set}" = set; then
14335   echo $ECHO_N "(cached) $ECHO_C" >&6
14336 else
14337   cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h.  */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h.  */
14343 #include <sys/types.h>
14344 #include <time.h>
14345
14346 int
14347 main ()
14348 {
14349 struct tm *tp; tp->tm_sec;
14350   ;
14351   return 0;
14352 }
14353 _ACEOF
14354 rm -f conftest.$ac_objext
14355 if { (ac_try="$ac_compile"
14356 case "(($ac_try" in
14357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358   *) ac_try_echo=$ac_try;;
14359 esac
14360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361   (eval "$ac_compile") 2>conftest.er1
14362   ac_status=$?
14363   grep -v '^ *+' conftest.er1 >conftest.err
14364   rm -f conftest.er1
14365   cat conftest.err >&5
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); } &&
14368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14369   { (case "(($ac_try" in
14370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14371   *) ac_try_echo=$ac_try;;
14372 esac
14373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14374   (eval "$ac_try") 2>&5
14375   ac_status=$?
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); }; } &&
14378          { ac_try='test -s conftest.$ac_objext'
14379   { (case "(($ac_try" in
14380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381   *) ac_try_echo=$ac_try;;
14382 esac
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384   (eval "$ac_try") 2>&5
14385   ac_status=$?
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); }; }; then
14388   ac_cv_struct_tm=time.h
14389 else
14390   echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14392
14393         ac_cv_struct_tm=sys/time.h
14394 fi
14395
14396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14397 fi
14398 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14399 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14400 if test $ac_cv_struct_tm = sys/time.h; then
14401
14402 cat >>confdefs.h <<\_ACEOF
14403 #define TM_IN_SYS_TIME 1
14404 _ACEOF
14405
14406 fi
14407
14408 { echo "$as_me:$LINENO: checking for int64_t" >&5
14409 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
14410 if test "${ac_cv_type_int64_t+set}" = set; then
14411   echo $ECHO_N "(cached) $ECHO_C" >&6
14412 else
14413   cat >conftest.$ac_ext <<_ACEOF
14414 /* confdefs.h.  */
14415 _ACEOF
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h.  */
14419 $ac_includes_default
14420 typedef int64_t ac__type_new_;
14421 int
14422 main ()
14423 {
14424 if ((ac__type_new_ *) 0)
14425   return 0;
14426 if (sizeof (ac__type_new_))
14427   return 0;
14428   ;
14429   return 0;
14430 }
14431 _ACEOF
14432 rm -f conftest.$ac_objext
14433 if { (ac_try="$ac_compile"
14434 case "(($ac_try" in
14435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436   *) ac_try_echo=$ac_try;;
14437 esac
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439   (eval "$ac_compile") 2>conftest.er1
14440   ac_status=$?
14441   grep -v '^ *+' conftest.er1 >conftest.err
14442   rm -f conftest.er1
14443   cat conftest.err >&5
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); } &&
14446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14447   { (case "(($ac_try" in
14448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449   *) ac_try_echo=$ac_try;;
14450 esac
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452   (eval "$ac_try") 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); }; } &&
14456          { ac_try='test -s conftest.$ac_objext'
14457   { (case "(($ac_try" in
14458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459   *) ac_try_echo=$ac_try;;
14460 esac
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462   (eval "$ac_try") 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); }; }; then
14466   ac_cv_type_int64_t=yes
14467 else
14468   echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14470
14471         ac_cv_type_int64_t=no
14472 fi
14473
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475 fi
14476 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
14477 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
14478 if test $ac_cv_type_int64_t = yes; then
14479
14480 cat >>confdefs.h <<_ACEOF
14481 #define HAVE_INT64_T 1
14482 _ACEOF
14483
14484
14485 else
14486   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
14487 echo "$as_me: error: Type int64_t required but not found" >&2;}
14488    { (exit 1); exit 1; }; }
14489 fi
14490
14491 { echo "$as_me:$LINENO: checking for uint64_t" >&5
14492 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
14493 if test "${ac_cv_type_uint64_t+set}" = set; then
14494   echo $ECHO_N "(cached) $ECHO_C" >&6
14495 else
14496   cat >conftest.$ac_ext <<_ACEOF
14497 /* confdefs.h.  */
14498 _ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h.  */
14502 $ac_includes_default
14503 typedef uint64_t ac__type_new_;
14504 int
14505 main ()
14506 {
14507 if ((ac__type_new_ *) 0)
14508   return 0;
14509 if (sizeof (ac__type_new_))
14510   return 0;
14511   ;
14512   return 0;
14513 }
14514 _ACEOF
14515 rm -f conftest.$ac_objext
14516 if { (ac_try="$ac_compile"
14517 case "(($ac_try" in
14518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519   *) ac_try_echo=$ac_try;;
14520 esac
14521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522   (eval "$ac_compile") 2>conftest.er1
14523   ac_status=$?
14524   grep -v '^ *+' conftest.er1 >conftest.err
14525   rm -f conftest.er1
14526   cat conftest.err >&5
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); } &&
14529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14530   { (case "(($ac_try" in
14531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532   *) ac_try_echo=$ac_try;;
14533 esac
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535   (eval "$ac_try") 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); }; } &&
14539          { ac_try='test -s conftest.$ac_objext'
14540   { (case "(($ac_try" in
14541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542   *) ac_try_echo=$ac_try;;
14543 esac
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545   (eval "$ac_try") 2>&5
14546   ac_status=$?
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); }; }; then
14549   ac_cv_type_uint64_t=yes
14550 else
14551   echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14553
14554         ac_cv_type_uint64_t=no
14555 fi
14556
14557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14558 fi
14559 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14560 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14561 if test $ac_cv_type_uint64_t = yes; then
14562
14563 cat >>confdefs.h <<_ACEOF
14564 #define HAVE_UINT64_T 1
14565 _ACEOF
14566
14567
14568 else
14569   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14570 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14571 if test "${ac_cv_type_u_int64_t+set}" = set; then
14572   echo $ECHO_N "(cached) $ECHO_C" >&6
14573 else
14574   cat >conftest.$ac_ext <<_ACEOF
14575 /* confdefs.h.  */
14576 _ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h.  */
14580 $ac_includes_default
14581 typedef u_int64_t ac__type_new_;
14582 int
14583 main ()
14584 {
14585 if ((ac__type_new_ *) 0)
14586   return 0;
14587 if (sizeof (ac__type_new_))
14588   return 0;
14589   ;
14590   return 0;
14591 }
14592 _ACEOF
14593 rm -f conftest.$ac_objext
14594 if { (ac_try="$ac_compile"
14595 case "(($ac_try" in
14596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597   *) ac_try_echo=$ac_try;;
14598 esac
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600   (eval "$ac_compile") 2>conftest.er1
14601   ac_status=$?
14602   grep -v '^ *+' conftest.er1 >conftest.err
14603   rm -f conftest.er1
14604   cat conftest.err >&5
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); } &&
14607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14608   { (case "(($ac_try" in
14609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610   *) ac_try_echo=$ac_try;;
14611 esac
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613   (eval "$ac_try") 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); }; } &&
14617          { ac_try='test -s conftest.$ac_objext'
14618   { (case "(($ac_try" in
14619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620   *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623   (eval "$ac_try") 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); }; }; then
14627   ac_cv_type_u_int64_t=yes
14628 else
14629   echo "$as_me: failed program was:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14631
14632         ac_cv_type_u_int64_t=no
14633 fi
14634
14635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14636 fi
14637 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14638 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14639 if test $ac_cv_type_u_int64_t = yes; then
14640
14641 cat >>confdefs.h <<_ACEOF
14642 #define HAVE_U_INT64_T 1
14643 _ACEOF
14644
14645
14646 else
14647   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14648 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14649    { (exit 1); exit 1; }; }
14650 fi
14651
14652 fi
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14664 do
14665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14669   echo $ECHO_N "(cached) $ECHO_C" >&6
14670 else
14671   cat >conftest.$ac_ext <<_ACEOF
14672 /* confdefs.h.  */
14673 _ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h.  */
14677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14679 #define $ac_func innocuous_$ac_func
14680
14681 /* System header to define __stub macros and hopefully few prototypes,
14682     which can conflict with char $ac_func (); below.
14683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14684     <limits.h> exists even on freestanding compilers.  */
14685
14686 #ifdef __STDC__
14687 # include <limits.h>
14688 #else
14689 # include <assert.h>
14690 #endif
14691
14692 #undef $ac_func
14693
14694 /* Override any GCC internal prototype to avoid an error.
14695    Use char because int might match the return type of a GCC
14696    builtin and then its argument prototype would still apply.  */
14697 #ifdef __cplusplus
14698 extern "C"
14699 #endif
14700 char $ac_func ();
14701 /* The GNU C library defines this for functions which it implements
14702     to always fail with ENOSYS.  Some functions are actually named
14703     something starting with __ and the normal name is an alias.  */
14704 #if defined __stub_$ac_func || defined __stub___$ac_func
14705 choke me
14706 #endif
14707
14708 int
14709 main ()
14710 {
14711 return $ac_func ();
14712   ;
14713   return 0;
14714 }
14715 _ACEOF
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (ac_try="$ac_link"
14718 case "(($ac_try" in
14719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720   *) ac_try_echo=$ac_try;;
14721 esac
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723   (eval "$ac_link") 2>conftest.er1
14724   ac_status=$?
14725   grep -v '^ *+' conftest.er1 >conftest.err
14726   rm -f conftest.er1
14727   cat conftest.err >&5
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); } &&
14730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14731   { (case "(($ac_try" in
14732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733   *) ac_try_echo=$ac_try;;
14734 esac
14735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14736   (eval "$ac_try") 2>&5
14737   ac_status=$?
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); }; } &&
14740          { ac_try='test -s conftest$ac_exeext'
14741   { (case "(($ac_try" in
14742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743   *) ac_try_echo=$ac_try;;
14744 esac
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746   (eval "$ac_try") 2>&5
14747   ac_status=$?
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); }; }; then
14750   eval "$as_ac_var=yes"
14751 else
14752   echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14754
14755         eval "$as_ac_var=no"
14756 fi
14757
14758 rm -f core conftest.err conftest.$ac_objext \
14759       conftest$ac_exeext conftest.$ac_ext
14760 fi
14761 ac_res=`eval echo '${'$as_ac_var'}'`
14762                { echo "$as_me:$LINENO: result: $ac_res" >&5
14763 echo "${ECHO_T}$ac_res" >&6; }
14764 if test `eval echo '${'$as_ac_var'}'` = yes; then
14765   cat >>confdefs.h <<_ACEOF
14766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14767 _ACEOF
14768
14769 fi
14770 done
14771
14772
14773
14774
14775
14776 for ac_func in powf fmodf strtof round
14777 do
14778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14782   echo $ECHO_N "(cached) $ECHO_C" >&6
14783 else
14784   cat >conftest.$ac_ext <<_ACEOF
14785 /* confdefs.h.  */
14786 _ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h.  */
14790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14792 #define $ac_func innocuous_$ac_func
14793
14794 /* System header to define __stub macros and hopefully few prototypes,
14795     which can conflict with char $ac_func (); below.
14796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14797     <limits.h> exists even on freestanding compilers.  */
14798
14799 #ifdef __STDC__
14800 # include <limits.h>
14801 #else
14802 # include <assert.h>
14803 #endif
14804
14805 #undef $ac_func
14806
14807 /* Override any GCC internal prototype to avoid an error.
14808    Use char because int might match the return type of a GCC
14809    builtin and then its argument prototype would still apply.  */
14810 #ifdef __cplusplus
14811 extern "C"
14812 #endif
14813 char $ac_func ();
14814 /* The GNU C library defines this for functions which it implements
14815     to always fail with ENOSYS.  Some functions are actually named
14816     something starting with __ and the normal name is an alias.  */
14817 #if defined __stub_$ac_func || defined __stub___$ac_func
14818 choke me
14819 #endif
14820
14821 int
14822 main ()
14823 {
14824 return $ac_func ();
14825   ;
14826   return 0;
14827 }
14828 _ACEOF
14829 rm -f conftest.$ac_objext conftest$ac_exeext
14830 if { (ac_try="$ac_link"
14831 case "(($ac_try" in
14832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833   *) ac_try_echo=$ac_try;;
14834 esac
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836   (eval "$ac_link") 2>conftest.er1
14837   ac_status=$?
14838   grep -v '^ *+' conftest.er1 >conftest.err
14839   rm -f conftest.er1
14840   cat conftest.err >&5
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); } &&
14843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14844   { (case "(($ac_try" in
14845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846   *) ac_try_echo=$ac_try;;
14847 esac
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849   (eval "$ac_try") 2>&5
14850   ac_status=$?
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); }; } &&
14853          { ac_try='test -s conftest$ac_exeext'
14854   { (case "(($ac_try" in
14855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856   *) ac_try_echo=$ac_try;;
14857 esac
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859   (eval "$ac_try") 2>&5
14860   ac_status=$?
14861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862   (exit $ac_status); }; }; then
14863   eval "$as_ac_var=yes"
14864 else
14865   echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14867
14868         eval "$as_ac_var=no"
14869 fi
14870
14871 rm -f core conftest.err conftest.$ac_objext \
14872       conftest$ac_exeext conftest.$ac_ext
14873 fi
14874 ac_res=`eval echo '${'$as_ac_var'}'`
14875                { echo "$as_me:$LINENO: result: $ac_res" >&5
14876 echo "${ECHO_T}$ac_res" >&6; }
14877 if test `eval echo '${'$as_ac_var'}'` = yes; then
14878   cat >>confdefs.h <<_ACEOF
14879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14880 _ACEOF
14881
14882 fi
14883 done
14884
14885
14886
14887
14888
14889
14890 for ac_func in log log2 log10 exp exp2
14891 do
14892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14896   echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898   cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h.  */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h.  */
14904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14906 #define $ac_func innocuous_$ac_func
14907
14908 /* System header to define __stub macros and hopefully few prototypes,
14909     which can conflict with char $ac_func (); below.
14910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14911     <limits.h> exists even on freestanding compilers.  */
14912
14913 #ifdef __STDC__
14914 # include <limits.h>
14915 #else
14916 # include <assert.h>
14917 #endif
14918
14919 #undef $ac_func
14920
14921 /* Override any GCC internal prototype to avoid an error.
14922    Use char because int might match the return type of a GCC
14923    builtin and then its argument prototype would still apply.  */
14924 #ifdef __cplusplus
14925 extern "C"
14926 #endif
14927 char $ac_func ();
14928 /* The GNU C library defines this for functions which it implements
14929     to always fail with ENOSYS.  Some functions are actually named
14930     something starting with __ and the normal name is an alias.  */
14931 #if defined __stub_$ac_func || defined __stub___$ac_func
14932 choke me
14933 #endif
14934
14935 int
14936 main ()
14937 {
14938 return $ac_func ();
14939   ;
14940   return 0;
14941 }
14942 _ACEOF
14943 rm -f conftest.$ac_objext conftest$ac_exeext
14944 if { (ac_try="$ac_link"
14945 case "(($ac_try" in
14946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947   *) ac_try_echo=$ac_try;;
14948 esac
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950   (eval "$ac_link") 2>conftest.er1
14951   ac_status=$?
14952   grep -v '^ *+' conftest.er1 >conftest.err
14953   rm -f conftest.er1
14954   cat conftest.err >&5
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); } &&
14957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14958   { (case "(($ac_try" in
14959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960   *) ac_try_echo=$ac_try;;
14961 esac
14962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14963   (eval "$ac_try") 2>&5
14964   ac_status=$?
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); }; } &&
14967          { ac_try='test -s conftest$ac_exeext'
14968   { (case "(($ac_try" in
14969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970   *) ac_try_echo=$ac_try;;
14971 esac
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973   (eval "$ac_try") 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); }; }; then
14977   eval "$as_ac_var=yes"
14978 else
14979   echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14981
14982         eval "$as_ac_var=no"
14983 fi
14984
14985 rm -f core conftest.err conftest.$ac_objext \
14986       conftest$ac_exeext conftest.$ac_ext
14987 fi
14988 ac_res=`eval echo '${'$as_ac_var'}'`
14989                { echo "$as_me:$LINENO: result: $ac_res" >&5
14990 echo "${ECHO_T}$ac_res" >&6; }
14991 if test `eval echo '${'$as_ac_var'}'` = yes; then
14992   cat >>confdefs.h <<_ACEOF
14993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14994 _ACEOF
14995
14996 fi
14997 done
14998
14999
15000
15001
15002
15003
15004 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
15005 do
15006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15010   echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012   cat >conftest.$ac_ext <<_ACEOF
15013 /* confdefs.h.  */
15014 _ACEOF
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h.  */
15018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15020 #define $ac_func innocuous_$ac_func
15021
15022 /* System header to define __stub macros and hopefully few prototypes,
15023     which can conflict with char $ac_func (); below.
15024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15025     <limits.h> exists even on freestanding compilers.  */
15026
15027 #ifdef __STDC__
15028 # include <limits.h>
15029 #else
15030 # include <assert.h>
15031 #endif
15032
15033 #undef $ac_func
15034
15035 /* Override any GCC internal prototype to avoid an error.
15036    Use char because int might match the return type of a GCC
15037    builtin and then its argument prototype would still apply.  */
15038 #ifdef __cplusplus
15039 extern "C"
15040 #endif
15041 char $ac_func ();
15042 /* The GNU C library defines this for functions which it implements
15043     to always fail with ENOSYS.  Some functions are actually named
15044     something starting with __ and the normal name is an alias.  */
15045 #if defined __stub_$ac_func || defined __stub___$ac_func
15046 choke me
15047 #endif
15048
15049 int
15050 main ()
15051 {
15052 return $ac_func ();
15053   ;
15054   return 0;
15055 }
15056 _ACEOF
15057 rm -f conftest.$ac_objext conftest$ac_exeext
15058 if { (ac_try="$ac_link"
15059 case "(($ac_try" in
15060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061   *) ac_try_echo=$ac_try;;
15062 esac
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064   (eval "$ac_link") 2>conftest.er1
15065   ac_status=$?
15066   grep -v '^ *+' conftest.er1 >conftest.err
15067   rm -f conftest.er1
15068   cat conftest.err >&5
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); } &&
15071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15072   { (case "(($ac_try" in
15073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074   *) ac_try_echo=$ac_try;;
15075 esac
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077   (eval "$ac_try") 2>&5
15078   ac_status=$?
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); }; } &&
15081          { ac_try='test -s conftest$ac_exeext'
15082   { (case "(($ac_try" in
15083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084   *) ac_try_echo=$ac_try;;
15085 esac
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087   (eval "$ac_try") 2>&5
15088   ac_status=$?
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); }; }; then
15091   eval "$as_ac_var=yes"
15092 else
15093   echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15095
15096         eval "$as_ac_var=no"
15097 fi
15098
15099 rm -f core conftest.err conftest.$ac_objext \
15100       conftest$ac_exeext conftest.$ac_ext
15101 fi
15102 ac_res=`eval echo '${'$as_ac_var'}'`
15103                { echo "$as_me:$LINENO: result: $ac_res" >&5
15104 echo "${ECHO_T}$ac_res" >&6; }
15105 if test `eval echo '${'$as_ac_var'}'` = yes; then
15106   cat >>confdefs.h <<_ACEOF
15107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15108 _ACEOF
15109
15110 fi
15111 done
15112
15113
15114
15115
15116 for ac_func in isatty mkdtemp mkstemp
15117 do
15118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15122   echo $ECHO_N "(cached) $ECHO_C" >&6
15123 else
15124   cat >conftest.$ac_ext <<_ACEOF
15125 /* confdefs.h.  */
15126 _ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h.  */
15130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15131    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15132 #define $ac_func innocuous_$ac_func
15133
15134 /* System header to define __stub macros and hopefully few prototypes,
15135     which can conflict with char $ac_func (); below.
15136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15137     <limits.h> exists even on freestanding compilers.  */
15138
15139 #ifdef __STDC__
15140 # include <limits.h>
15141 #else
15142 # include <assert.h>
15143 #endif
15144
15145 #undef $ac_func
15146
15147 /* Override any GCC internal prototype to avoid an error.
15148    Use char because int might match the return type of a GCC
15149    builtin and then its argument prototype would still apply.  */
15150 #ifdef __cplusplus
15151 extern "C"
15152 #endif
15153 char $ac_func ();
15154 /* The GNU C library defines this for functions which it implements
15155     to always fail with ENOSYS.  Some functions are actually named
15156     something starting with __ and the normal name is an alias.  */
15157 #if defined __stub_$ac_func || defined __stub___$ac_func
15158 choke me
15159 #endif
15160
15161 int
15162 main ()
15163 {
15164 return $ac_func ();
15165   ;
15166   return 0;
15167 }
15168 _ACEOF
15169 rm -f conftest.$ac_objext conftest$ac_exeext
15170 if { (ac_try="$ac_link"
15171 case "(($ac_try" in
15172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173   *) ac_try_echo=$ac_try;;
15174 esac
15175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15176   (eval "$ac_link") 2>conftest.er1
15177   ac_status=$?
15178   grep -v '^ *+' conftest.er1 >conftest.err
15179   rm -f conftest.er1
15180   cat conftest.err >&5
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); } &&
15183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15184   { (case "(($ac_try" in
15185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186   *) ac_try_echo=$ac_try;;
15187 esac
15188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189   (eval "$ac_try") 2>&5
15190   ac_status=$?
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); }; } &&
15193          { ac_try='test -s conftest$ac_exeext'
15194   { (case "(($ac_try" in
15195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196   *) ac_try_echo=$ac_try;;
15197 esac
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199   (eval "$ac_try") 2>&5
15200   ac_status=$?
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); }; }; then
15203   eval "$as_ac_var=yes"
15204 else
15205   echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15207
15208         eval "$as_ac_var=no"
15209 fi
15210
15211 rm -f core conftest.err conftest.$ac_objext \
15212       conftest$ac_exeext conftest.$ac_ext
15213 fi
15214 ac_res=`eval echo '${'$as_ac_var'}'`
15215                { echo "$as_me:$LINENO: result: $ac_res" >&5
15216 echo "${ECHO_T}$ac_res" >&6; }
15217 if test `eval echo '${'$as_ac_var'}'` = yes; then
15218   cat >>confdefs.h <<_ACEOF
15219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15220 _ACEOF
15221
15222 fi
15223 done
15224
15225
15226
15227
15228
15229
15230
15231 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
15232 do
15233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15237   echo $ECHO_N "(cached) $ECHO_C" >&6
15238 else
15239   cat >conftest.$ac_ext <<_ACEOF
15240 /* confdefs.h.  */
15241 _ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h.  */
15245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15247 #define $ac_func innocuous_$ac_func
15248
15249 /* System header to define __stub macros and hopefully few prototypes,
15250     which can conflict with char $ac_func (); below.
15251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15252     <limits.h> exists even on freestanding compilers.  */
15253
15254 #ifdef __STDC__
15255 # include <limits.h>
15256 #else
15257 # include <assert.h>
15258 #endif
15259
15260 #undef $ac_func
15261
15262 /* Override any GCC internal prototype to avoid an error.
15263    Use char because int might match the return type of a GCC
15264    builtin and then its argument prototype would still apply.  */
15265 #ifdef __cplusplus
15266 extern "C"
15267 #endif
15268 char $ac_func ();
15269 /* The GNU C library defines this for functions which it implements
15270     to always fail with ENOSYS.  Some functions are actually named
15271     something starting with __ and the normal name is an alias.  */
15272 #if defined __stub_$ac_func || defined __stub___$ac_func
15273 choke me
15274 #endif
15275
15276 int
15277 main ()
15278 {
15279 return $ac_func ();
15280   ;
15281   return 0;
15282 }
15283 _ACEOF
15284 rm -f conftest.$ac_objext conftest$ac_exeext
15285 if { (ac_try="$ac_link"
15286 case "(($ac_try" in
15287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15288   *) ac_try_echo=$ac_try;;
15289 esac
15290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15291   (eval "$ac_link") 2>conftest.er1
15292   ac_status=$?
15293   grep -v '^ *+' conftest.er1 >conftest.err
15294   rm -f conftest.er1
15295   cat conftest.err >&5
15296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297   (exit $ac_status); } &&
15298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15299   { (case "(($ac_try" in
15300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301   *) ac_try_echo=$ac_try;;
15302 esac
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304   (eval "$ac_try") 2>&5
15305   ac_status=$?
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); }; } &&
15308          { ac_try='test -s conftest$ac_exeext'
15309   { (case "(($ac_try" in
15310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311   *) ac_try_echo=$ac_try;;
15312 esac
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314   (eval "$ac_try") 2>&5
15315   ac_status=$?
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); }; }; then
15318   eval "$as_ac_var=yes"
15319 else
15320   echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15322
15323         eval "$as_ac_var=no"
15324 fi
15325
15326 rm -f core conftest.err conftest.$ac_objext \
15327       conftest$ac_exeext conftest.$ac_ext
15328 fi
15329 ac_res=`eval echo '${'$as_ac_var'}'`
15330                { echo "$as_me:$LINENO: result: $ac_res" >&5
15331 echo "${ECHO_T}$ac_res" >&6; }
15332 if test `eval echo '${'$as_ac_var'}'` = yes; then
15333   cat >>confdefs.h <<_ACEOF
15334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15335 _ACEOF
15336
15337 fi
15338 done
15339
15340
15341
15342
15343 for ac_func in strerror strerror_r setenv
15344 do
15345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15349   echo $ECHO_N "(cached) $ECHO_C" >&6
15350 else
15351   cat >conftest.$ac_ext <<_ACEOF
15352 /* confdefs.h.  */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h.  */
15357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15359 #define $ac_func innocuous_$ac_func
15360
15361 /* System header to define __stub macros and hopefully few prototypes,
15362     which can conflict with char $ac_func (); below.
15363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15364     <limits.h> exists even on freestanding compilers.  */
15365
15366 #ifdef __STDC__
15367 # include <limits.h>
15368 #else
15369 # include <assert.h>
15370 #endif
15371
15372 #undef $ac_func
15373
15374 /* Override any GCC internal prototype to avoid an error.
15375    Use char because int might match the return type of a GCC
15376    builtin and then its argument prototype would still apply.  */
15377 #ifdef __cplusplus
15378 extern "C"
15379 #endif
15380 char $ac_func ();
15381 /* The GNU C library defines this for functions which it implements
15382     to always fail with ENOSYS.  Some functions are actually named
15383     something starting with __ and the normal name is an alias.  */
15384 #if defined __stub_$ac_func || defined __stub___$ac_func
15385 choke me
15386 #endif
15387
15388 int
15389 main ()
15390 {
15391 return $ac_func ();
15392   ;
15393   return 0;
15394 }
15395 _ACEOF
15396 rm -f conftest.$ac_objext conftest$ac_exeext
15397 if { (ac_try="$ac_link"
15398 case "(($ac_try" in
15399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400   *) ac_try_echo=$ac_try;;
15401 esac
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403   (eval "$ac_link") 2>conftest.er1
15404   ac_status=$?
15405   grep -v '^ *+' conftest.er1 >conftest.err
15406   rm -f conftest.er1
15407   cat conftest.err >&5
15408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409   (exit $ac_status); } &&
15410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15411   { (case "(($ac_try" in
15412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413   *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416   (eval "$ac_try") 2>&5
15417   ac_status=$?
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); }; } &&
15420          { ac_try='test -s conftest$ac_exeext'
15421   { (case "(($ac_try" in
15422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423   *) ac_try_echo=$ac_try;;
15424 esac
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426   (eval "$ac_try") 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; }; then
15430   eval "$as_ac_var=yes"
15431 else
15432   echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15434
15435         eval "$as_ac_var=no"
15436 fi
15437
15438 rm -f core conftest.err conftest.$ac_objext \
15439       conftest$ac_exeext conftest.$ac_ext
15440 fi
15441 ac_res=`eval echo '${'$as_ac_var'}'`
15442                { echo "$as_me:$LINENO: result: $ac_res" >&5
15443 echo "${ECHO_T}$ac_res" >&6; }
15444 if test `eval echo '${'$as_ac_var'}'` = yes; then
15445   cat >>confdefs.h <<_ACEOF
15446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15447 _ACEOF
15448
15449 fi
15450 done
15451
15452
15453
15454
15455
15456 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
15457 do
15458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15462   echo $ECHO_N "(cached) $ECHO_C" >&6
15463 else
15464   cat >conftest.$ac_ext <<_ACEOF
15465 /* confdefs.h.  */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h.  */
15470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15472 #define $ac_func innocuous_$ac_func
15473
15474 /* System header to define __stub macros and hopefully few prototypes,
15475     which can conflict with char $ac_func (); below.
15476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15477     <limits.h> exists even on freestanding compilers.  */
15478
15479 #ifdef __STDC__
15480 # include <limits.h>
15481 #else
15482 # include <assert.h>
15483 #endif
15484
15485 #undef $ac_func
15486
15487 /* Override any GCC internal prototype to avoid an error.
15488    Use char because int might match the return type of a GCC
15489    builtin and then its argument prototype would still apply.  */
15490 #ifdef __cplusplus
15491 extern "C"
15492 #endif
15493 char $ac_func ();
15494 /* The GNU C library defines this for functions which it implements
15495     to always fail with ENOSYS.  Some functions are actually named
15496     something starting with __ and the normal name is an alias.  */
15497 #if defined __stub_$ac_func || defined __stub___$ac_func
15498 choke me
15499 #endif
15500
15501 int
15502 main ()
15503 {
15504 return $ac_func ();
15505   ;
15506   return 0;
15507 }
15508 _ACEOF
15509 rm -f conftest.$ac_objext conftest$ac_exeext
15510 if { (ac_try="$ac_link"
15511 case "(($ac_try" in
15512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513   *) ac_try_echo=$ac_try;;
15514 esac
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516   (eval "$ac_link") 2>conftest.er1
15517   ac_status=$?
15518   grep -v '^ *+' conftest.er1 >conftest.err
15519   rm -f conftest.er1
15520   cat conftest.err >&5
15521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522   (exit $ac_status); } &&
15523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15524   { (case "(($ac_try" in
15525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526   *) ac_try_echo=$ac_try;;
15527 esac
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529   (eval "$ac_try") 2>&5
15530   ac_status=$?
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); }; } &&
15533          { ac_try='test -s conftest$ac_exeext'
15534   { (case "(($ac_try" in
15535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536   *) ac_try_echo=$ac_try;;
15537 esac
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539   (eval "$ac_try") 2>&5
15540   ac_status=$?
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); }; }; then
15543   eval "$as_ac_var=yes"
15544 else
15545   echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15547
15548         eval "$as_ac_var=no"
15549 fi
15550
15551 rm -f core conftest.err conftest.$ac_objext \
15552       conftest$ac_exeext conftest.$ac_ext
15553 fi
15554 ac_res=`eval echo '${'$as_ac_var'}'`
15555                { echo "$as_me:$LINENO: result: $ac_res" >&5
15556 echo "${ECHO_T}$ac_res" >&6; }
15557 if test `eval echo '${'$as_ac_var'}'` = yes; then
15558   cat >>confdefs.h <<_ACEOF
15559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15560 _ACEOF
15561
15562 fi
15563 done
15564
15565
15566
15567
15568
15569
15570 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
15571 do
15572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15576   echo $ECHO_N "(cached) $ECHO_C" >&6
15577 else
15578   cat >conftest.$ac_ext <<_ACEOF
15579 /* confdefs.h.  */
15580 _ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h.  */
15584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15586 #define $ac_func innocuous_$ac_func
15587
15588 /* System header to define __stub macros and hopefully few prototypes,
15589     which can conflict with char $ac_func (); below.
15590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15591     <limits.h> exists even on freestanding compilers.  */
15592
15593 #ifdef __STDC__
15594 # include <limits.h>
15595 #else
15596 # include <assert.h>
15597 #endif
15598
15599 #undef $ac_func
15600
15601 /* Override any GCC internal prototype to avoid an error.
15602    Use char because int might match the return type of a GCC
15603    builtin and then its argument prototype would still apply.  */
15604 #ifdef __cplusplus
15605 extern "C"
15606 #endif
15607 char $ac_func ();
15608 /* The GNU C library defines this for functions which it implements
15609     to always fail with ENOSYS.  Some functions are actually named
15610     something starting with __ and the normal name is an alias.  */
15611 #if defined __stub_$ac_func || defined __stub___$ac_func
15612 choke me
15613 #endif
15614
15615 int
15616 main ()
15617 {
15618 return $ac_func ();
15619   ;
15620   return 0;
15621 }
15622 _ACEOF
15623 rm -f conftest.$ac_objext conftest$ac_exeext
15624 if { (ac_try="$ac_link"
15625 case "(($ac_try" in
15626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627   *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630   (eval "$ac_link") 2>conftest.er1
15631   ac_status=$?
15632   grep -v '^ *+' conftest.er1 >conftest.err
15633   rm -f conftest.er1
15634   cat conftest.err >&5
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); } &&
15637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15638   { (case "(($ac_try" in
15639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640   *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643   (eval "$ac_try") 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); }; } &&
15647          { ac_try='test -s conftest$ac_exeext'
15648   { (case "(($ac_try" in
15649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650   *) ac_try_echo=$ac_try;;
15651 esac
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653   (eval "$ac_try") 2>&5
15654   ac_status=$?
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); }; }; then
15657   eval "$as_ac_var=yes"
15658 else
15659   echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15661
15662         eval "$as_ac_var=no"
15663 fi
15664
15665 rm -f core conftest.err conftest.$ac_objext \
15666       conftest$ac_exeext conftest.$ac_ext
15667 fi
15668 ac_res=`eval echo '${'$as_ac_var'}'`
15669                { echo "$as_me:$LINENO: result: $ac_res" >&5
15670 echo "${ECHO_T}$ac_res" >&6; }
15671 if test `eval echo '${'$as_ac_var'}'` = yes; then
15672   cat >>confdefs.h <<_ACEOF
15673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15674 _ACEOF
15675
15676 fi
15677 done
15678
15679
15680
15681 for ac_func in futimes futimens
15682 do
15683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15684 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15687   echo $ECHO_N "(cached) $ECHO_C" >&6
15688 else
15689   cat >conftest.$ac_ext <<_ACEOF
15690 /* confdefs.h.  */
15691 _ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h.  */
15695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15697 #define $ac_func innocuous_$ac_func
15698
15699 /* System header to define __stub macros and hopefully few prototypes,
15700     which can conflict with char $ac_func (); below.
15701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15702     <limits.h> exists even on freestanding compilers.  */
15703
15704 #ifdef __STDC__
15705 # include <limits.h>
15706 #else
15707 # include <assert.h>
15708 #endif
15709
15710 #undef $ac_func
15711
15712 /* Override any GCC internal prototype to avoid an error.
15713    Use char because int might match the return type of a GCC
15714    builtin and then its argument prototype would still apply.  */
15715 #ifdef __cplusplus
15716 extern "C"
15717 #endif
15718 char $ac_func ();
15719 /* The GNU C library defines this for functions which it implements
15720     to always fail with ENOSYS.  Some functions are actually named
15721     something starting with __ and the normal name is an alias.  */
15722 #if defined __stub_$ac_func || defined __stub___$ac_func
15723 choke me
15724 #endif
15725
15726 int
15727 main ()
15728 {
15729 return $ac_func ();
15730   ;
15731   return 0;
15732 }
15733 _ACEOF
15734 rm -f conftest.$ac_objext conftest$ac_exeext
15735 if { (ac_try="$ac_link"
15736 case "(($ac_try" in
15737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738   *) ac_try_echo=$ac_try;;
15739 esac
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741   (eval "$ac_link") 2>conftest.er1
15742   ac_status=$?
15743   grep -v '^ *+' conftest.er1 >conftest.err
15744   rm -f conftest.er1
15745   cat conftest.err >&5
15746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747   (exit $ac_status); } &&
15748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15749   { (case "(($ac_try" in
15750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751   *) ac_try_echo=$ac_try;;
15752 esac
15753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15754   (eval "$ac_try") 2>&5
15755   ac_status=$?
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); }; } &&
15758          { ac_try='test -s conftest$ac_exeext'
15759   { (case "(($ac_try" in
15760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761   *) ac_try_echo=$ac_try;;
15762 esac
15763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764   (eval "$ac_try") 2>&5
15765   ac_status=$?
15766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767   (exit $ac_status); }; }; then
15768   eval "$as_ac_var=yes"
15769 else
15770   echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15772
15773         eval "$as_ac_var=no"
15774 fi
15775
15776 rm -f core conftest.err conftest.$ac_objext \
15777       conftest$ac_exeext conftest.$ac_ext
15778 fi
15779 ac_res=`eval echo '${'$as_ac_var'}'`
15780                { echo "$as_me:$LINENO: result: $ac_res" >&5
15781 echo "${ECHO_T}$ac_res" >&6; }
15782 if test `eval echo '${'$as_ac_var'}'` = yes; then
15783   cat >>confdefs.h <<_ACEOF
15784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15785 _ACEOF
15786
15787 fi
15788 done
15789
15790 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15791 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15792 if test "${llvm_cv_c_printf_a+set}" = set; then
15793   echo $ECHO_N "(cached) $ECHO_C" >&6
15794 else
15795   ac_ext=c
15796 ac_cpp='$CPP $CPPFLAGS'
15797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15800
15801  if test "$cross_compiling" = yes; then
15802   llvmac_cv_c_printf_a=no
15803 else
15804   cat >conftest.$ac_ext <<_ACEOF
15805
15806   /* confdefs.h.  */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h.  */
15811
15812 #include <stdio.h>
15813 #include <stdlib.h>
15814
15815 int
15816 main ()
15817 {
15818
15819 volatile double A, B;
15820 char Buffer[100];
15821 A = 1;
15822 A /= 10.0;
15823 sprintf(Buffer, "%a", A);
15824 B = atof(Buffer);
15825 if (A != B)
15826   return (1);
15827 if (A != 0x1.999999999999ap-4)
15828   return (1);
15829 return (0);
15830   ;
15831   return 0;
15832 }
15833 _ACEOF
15834 rm -f conftest$ac_exeext
15835 if { (ac_try="$ac_link"
15836 case "(($ac_try" in
15837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838   *) ac_try_echo=$ac_try;;
15839 esac
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841   (eval "$ac_link") 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15845   { (case "(($ac_try" in
15846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847   *) ac_try_echo=$ac_try;;
15848 esac
15849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850   (eval "$ac_try") 2>&5
15851   ac_status=$?
15852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853   (exit $ac_status); }; }; then
15854   llvm_cv_c_printf_a=yes
15855 else
15856   echo "$as_me: program exited with status $ac_status" >&5
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15859
15860 ( exit $ac_status )
15861 llvmac_cv_c_printf_a=no
15862 fi
15863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15864 fi
15865
15866
15867  ac_ext=c
15868 ac_cpp='$CPP $CPPFLAGS'
15869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15872
15873 fi
15874 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15875 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15876  if test "$llvm_cv_c_printf_a" = "yes"; then
15877
15878 cat >>confdefs.h <<\_ACEOF
15879 #define HAVE_PRINTF_A 1
15880 _ACEOF
15881
15882  fi
15883
15884
15885
15886   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15887 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15888 if test "${ac_cv_func_rand48+set}" = set; then
15889   echo $ECHO_N "(cached) $ECHO_C" >&6
15890 else
15891
15892     ac_ext=cpp
15893 ac_cpp='$CXXCPP $CPPFLAGS'
15894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15897
15898     cat >conftest.$ac_ext <<_ACEOF
15899 /* confdefs.h.  */
15900 _ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h.  */
15904 #include <stdlib.h>
15905 int
15906 main ()
15907 {
15908 srand48(0);lrand48();drand48();
15909   ;
15910   return 0;
15911 }
15912 _ACEOF
15913 rm -f conftest.$ac_objext
15914 if { (ac_try="$ac_compile"
15915 case "(($ac_try" in
15916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917   *) ac_try_echo=$ac_try;;
15918 esac
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920   (eval "$ac_compile") 2>conftest.er1
15921   ac_status=$?
15922   grep -v '^ *+' conftest.er1 >conftest.err
15923   rm -f conftest.er1
15924   cat conftest.err >&5
15925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926   (exit $ac_status); } &&
15927          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15928   { (case "(($ac_try" in
15929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930   *) ac_try_echo=$ac_try;;
15931 esac
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933   (eval "$ac_try") 2>&5
15934   ac_status=$?
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); }; } &&
15937          { ac_try='test -s conftest.$ac_objext'
15938   { (case "(($ac_try" in
15939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940   *) ac_try_echo=$ac_try;;
15941 esac
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943   (eval "$ac_try") 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); }; }; then
15947   ac_cv_func_rand48=yes
15948 else
15949   echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15951
15952         ac_cv_func_rand48=no
15953 fi
15954
15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956     ac_ext=c
15957 ac_cpp='$CPP $CPPFLAGS'
15958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15961
15962
15963 fi
15964 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15965 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15966
15967 if test "$ac_cv_func_rand48" = "yes" ; then
15968
15969 cat >>confdefs.h <<\_ACEOF
15970 #define HAVE_RAND48 1
15971 _ACEOF
15972
15973 fi
15974
15975
15976 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15977 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15978 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15979   echo $ECHO_N "(cached) $ECHO_C" >&6
15980 else
15981   cat >conftest.$ac_ext <<_ACEOF
15982 /* confdefs.h.  */
15983 _ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h.  */
15987 $ac_includes_default
15988 int
15989 main ()
15990 {
15991 #ifndef arc4random
15992   char *p = (char *) arc4random;
15993   return !p;
15994 #endif
15995
15996   ;
15997   return 0;
15998 }
15999 _ACEOF
16000 rm -f conftest.$ac_objext
16001 if { (ac_try="$ac_compile"
16002 case "(($ac_try" in
16003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004   *) ac_try_echo=$ac_try;;
16005 esac
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007   (eval "$ac_compile") 2>conftest.er1
16008   ac_status=$?
16009   grep -v '^ *+' conftest.er1 >conftest.err
16010   rm -f conftest.er1
16011   cat conftest.err >&5
16012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); } &&
16014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16015   { (case "(($ac_try" in
16016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16017   *) ac_try_echo=$ac_try;;
16018 esac
16019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16020   (eval "$ac_try") 2>&5
16021   ac_status=$?
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); }; } &&
16024          { ac_try='test -s conftest.$ac_objext'
16025   { (case "(($ac_try" in
16026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027   *) ac_try_echo=$ac_try;;
16028 esac
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030   (eval "$ac_try") 2>&5
16031   ac_status=$?
16032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033   (exit $ac_status); }; }; then
16034   ac_cv_have_decl_arc4random=yes
16035 else
16036   echo "$as_me: failed program was:" >&5
16037 sed 's/^/| /' conftest.$ac_ext >&5
16038
16039         ac_cv_have_decl_arc4random=no
16040 fi
16041
16042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16043 fi
16044 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
16045 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
16046 if test $ac_cv_have_decl_arc4random = yes; then
16047
16048 cat >>confdefs.h <<_ACEOF
16049 #define HAVE_DECL_ARC4RANDOM 1
16050 _ACEOF
16051
16052
16053 else
16054   cat >>confdefs.h <<_ACEOF
16055 #define HAVE_DECL_ARC4RANDOM 0
16056 _ACEOF
16057
16058
16059 fi
16060
16061
16062
16063 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
16064 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
16065 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
16066   echo $ECHO_N "(cached) $ECHO_C" >&6
16067 else
16068   cat >conftest.$ac_ext <<_ACEOF
16069 /* confdefs.h.  */
16070 _ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h.  */
16074 $ac_includes_default
16075 int
16076 main ()
16077 {
16078 #ifndef strerror_s
16079   char *p = (char *) strerror_s;
16080   return !p;
16081 #endif
16082
16083   ;
16084   return 0;
16085 }
16086 _ACEOF
16087 rm -f conftest.$ac_objext
16088 if { (ac_try="$ac_compile"
16089 case "(($ac_try" in
16090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091   *) ac_try_echo=$ac_try;;
16092 esac
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094   (eval "$ac_compile") 2>conftest.er1
16095   ac_status=$?
16096   grep -v '^ *+' conftest.er1 >conftest.err
16097   rm -f conftest.er1
16098   cat conftest.err >&5
16099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100   (exit $ac_status); } &&
16101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16102   { (case "(($ac_try" in
16103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104   *) ac_try_echo=$ac_try;;
16105 esac
16106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16107   (eval "$ac_try") 2>&5
16108   ac_status=$?
16109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); }; } &&
16111          { ac_try='test -s conftest.$ac_objext'
16112   { (case "(($ac_try" in
16113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16114   *) ac_try_echo=$ac_try;;
16115 esac
16116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16117   (eval "$ac_try") 2>&5
16118   ac_status=$?
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); }; }; then
16121   ac_cv_have_decl_strerror_s=yes
16122 else
16123   echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16125
16126         ac_cv_have_decl_strerror_s=no
16127 fi
16128
16129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16130 fi
16131 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
16132 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
16133 if test $ac_cv_have_decl_strerror_s = yes; then
16134
16135 cat >>confdefs.h <<_ACEOF
16136 #define HAVE_DECL_STRERROR_S 1
16137 _ACEOF
16138
16139
16140 else
16141   cat >>confdefs.h <<_ACEOF
16142 #define HAVE_DECL_STRERROR_S 0
16143 _ACEOF
16144
16145
16146 fi
16147
16148
16149
16150 if test "$llvm_cv_os_type" = "MingW" ; then
16151   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
16152 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
16153 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
16154   echo $ECHO_N "(cached) $ECHO_C" >&6
16155 else
16156   ac_check_lib_save_LIBS=$LIBS
16157 LIBS="-lgcc  $LIBS"
16158 cat >conftest.$ac_ext <<_ACEOF
16159 /* confdefs.h.  */
16160 _ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h.  */
16164
16165 /* Override any GCC internal prototype to avoid an error.
16166    Use char because int might match the return type of a GCC
16167    builtin and then its argument prototype would still apply.  */
16168 #ifdef __cplusplus
16169 extern "C"
16170 #endif
16171 char _alloca ();
16172 int
16173 main ()
16174 {
16175 return _alloca ();
16176   ;
16177   return 0;
16178 }
16179 _ACEOF
16180 rm -f conftest.$ac_objext conftest$ac_exeext
16181 if { (ac_try="$ac_link"
16182 case "(($ac_try" in
16183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184   *) ac_try_echo=$ac_try;;
16185 esac
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187   (eval "$ac_link") 2>conftest.er1
16188   ac_status=$?
16189   grep -v '^ *+' conftest.er1 >conftest.err
16190   rm -f conftest.er1
16191   cat conftest.err >&5
16192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); } &&
16194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16195   { (case "(($ac_try" in
16196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197   *) ac_try_echo=$ac_try;;
16198 esac
16199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200   (eval "$ac_try") 2>&5
16201   ac_status=$?
16202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203   (exit $ac_status); }; } &&
16204          { ac_try='test -s conftest$ac_exeext'
16205   { (case "(($ac_try" in
16206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207   *) ac_try_echo=$ac_try;;
16208 esac
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210   (eval "$ac_try") 2>&5
16211   ac_status=$?
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); }; }; then
16214   ac_cv_lib_gcc__alloca=yes
16215 else
16216   echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219         ac_cv_lib_gcc__alloca=no
16220 fi
16221
16222 rm -f core conftest.err conftest.$ac_objext \
16223       conftest$ac_exeext conftest.$ac_ext
16224 LIBS=$ac_check_lib_save_LIBS
16225 fi
16226 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
16227 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
16228 if test $ac_cv_lib_gcc__alloca = yes; then
16229
16230 cat >>confdefs.h <<\_ACEOF
16231 #define HAVE__ALLOCA 1
16232 _ACEOF
16233
16234 fi
16235
16236   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
16237 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
16238 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
16239   echo $ECHO_N "(cached) $ECHO_C" >&6
16240 else
16241   ac_check_lib_save_LIBS=$LIBS
16242 LIBS="-lgcc  $LIBS"
16243 cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h.  */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h.  */
16249
16250 /* Override any GCC internal prototype to avoid an error.
16251    Use char because int might match the return type of a GCC
16252    builtin and then its argument prototype would still apply.  */
16253 #ifdef __cplusplus
16254 extern "C"
16255 #endif
16256 char __alloca ();
16257 int
16258 main ()
16259 {
16260 return __alloca ();
16261   ;
16262   return 0;
16263 }
16264 _ACEOF
16265 rm -f conftest.$ac_objext conftest$ac_exeext
16266 if { (ac_try="$ac_link"
16267 case "(($ac_try" in
16268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269   *) ac_try_echo=$ac_try;;
16270 esac
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272   (eval "$ac_link") 2>conftest.er1
16273   ac_status=$?
16274   grep -v '^ *+' conftest.er1 >conftest.err
16275   rm -f conftest.er1
16276   cat conftest.err >&5
16277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); } &&
16279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16280   { (case "(($ac_try" in
16281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282   *) ac_try_echo=$ac_try;;
16283 esac
16284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285   (eval "$ac_try") 2>&5
16286   ac_status=$?
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); }; } &&
16289          { ac_try='test -s conftest$ac_exeext'
16290   { (case "(($ac_try" in
16291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292   *) ac_try_echo=$ac_try;;
16293 esac
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295   (eval "$ac_try") 2>&5
16296   ac_status=$?
16297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298   (exit $ac_status); }; }; then
16299   ac_cv_lib_gcc___alloca=yes
16300 else
16301   echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16303
16304         ac_cv_lib_gcc___alloca=no
16305 fi
16306
16307 rm -f core conftest.err conftest.$ac_objext \
16308       conftest$ac_exeext conftest.$ac_ext
16309 LIBS=$ac_check_lib_save_LIBS
16310 fi
16311 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
16312 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
16313 if test $ac_cv_lib_gcc___alloca = yes; then
16314
16315 cat >>confdefs.h <<\_ACEOF
16316 #define HAVE___ALLOCA 1
16317 _ACEOF
16318
16319 fi
16320
16321   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
16322 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
16323 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
16324   echo $ECHO_N "(cached) $ECHO_C" >&6
16325 else
16326   ac_check_lib_save_LIBS=$LIBS
16327 LIBS="-lgcc  $LIBS"
16328 cat >conftest.$ac_ext <<_ACEOF
16329 /* confdefs.h.  */
16330 _ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h.  */
16334
16335 /* Override any GCC internal prototype to avoid an error.
16336    Use char because int might match the return type of a GCC
16337    builtin and then its argument prototype would still apply.  */
16338 #ifdef __cplusplus
16339 extern "C"
16340 #endif
16341 char __chkstk ();
16342 int
16343 main ()
16344 {
16345 return __chkstk ();
16346   ;
16347   return 0;
16348 }
16349 _ACEOF
16350 rm -f conftest.$ac_objext conftest$ac_exeext
16351 if { (ac_try="$ac_link"
16352 case "(($ac_try" in
16353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354   *) ac_try_echo=$ac_try;;
16355 esac
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357   (eval "$ac_link") 2>conftest.er1
16358   ac_status=$?
16359   grep -v '^ *+' conftest.er1 >conftest.err
16360   rm -f conftest.er1
16361   cat conftest.err >&5
16362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363   (exit $ac_status); } &&
16364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16365   { (case "(($ac_try" in
16366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16367   *) ac_try_echo=$ac_try;;
16368 esac
16369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16370   (eval "$ac_try") 2>&5
16371   ac_status=$?
16372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); }; } &&
16374          { ac_try='test -s conftest$ac_exeext'
16375   { (case "(($ac_try" in
16376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377   *) ac_try_echo=$ac_try;;
16378 esac
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380   (eval "$ac_try") 2>&5
16381   ac_status=$?
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); }; }; then
16384   ac_cv_lib_gcc___chkstk=yes
16385 else
16386   echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16388
16389         ac_cv_lib_gcc___chkstk=no
16390 fi
16391
16392 rm -f core conftest.err conftest.$ac_objext \
16393       conftest$ac_exeext conftest.$ac_ext
16394 LIBS=$ac_check_lib_save_LIBS
16395 fi
16396 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
16397 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
16398 if test $ac_cv_lib_gcc___chkstk = yes; then
16399
16400 cat >>confdefs.h <<\_ACEOF
16401 #define HAVE___CHKSTK 1
16402 _ACEOF
16403
16404 fi
16405
16406   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
16407 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
16408 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
16409   echo $ECHO_N "(cached) $ECHO_C" >&6
16410 else
16411   ac_check_lib_save_LIBS=$LIBS
16412 LIBS="-lgcc  $LIBS"
16413 cat >conftest.$ac_ext <<_ACEOF
16414 /* confdefs.h.  */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h.  */
16419
16420 /* Override any GCC internal prototype to avoid an error.
16421    Use char because int might match the return type of a GCC
16422    builtin and then its argument prototype would still apply.  */
16423 #ifdef __cplusplus
16424 extern "C"
16425 #endif
16426 char ___chkstk ();
16427 int
16428 main ()
16429 {
16430 return ___chkstk ();
16431   ;
16432   return 0;
16433 }
16434 _ACEOF
16435 rm -f conftest.$ac_objext conftest$ac_exeext
16436 if { (ac_try="$ac_link"
16437 case "(($ac_try" in
16438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439   *) ac_try_echo=$ac_try;;
16440 esac
16441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442   (eval "$ac_link") 2>conftest.er1
16443   ac_status=$?
16444   grep -v '^ *+' conftest.er1 >conftest.err
16445   rm -f conftest.er1
16446   cat conftest.err >&5
16447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448   (exit $ac_status); } &&
16449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16450   { (case "(($ac_try" in
16451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452   *) ac_try_echo=$ac_try;;
16453 esac
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455   (eval "$ac_try") 2>&5
16456   ac_status=$?
16457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458   (exit $ac_status); }; } &&
16459          { ac_try='test -s conftest$ac_exeext'
16460   { (case "(($ac_try" in
16461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462   *) ac_try_echo=$ac_try;;
16463 esac
16464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465   (eval "$ac_try") 2>&5
16466   ac_status=$?
16467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468   (exit $ac_status); }; }; then
16469   ac_cv_lib_gcc____chkstk=yes
16470 else
16471   echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16473
16474         ac_cv_lib_gcc____chkstk=no
16475 fi
16476
16477 rm -f core conftest.err conftest.$ac_objext \
16478       conftest$ac_exeext conftest.$ac_ext
16479 LIBS=$ac_check_lib_save_LIBS
16480 fi
16481 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
16482 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
16483 if test $ac_cv_lib_gcc____chkstk = yes; then
16484
16485 cat >>confdefs.h <<\_ACEOF
16486 #define HAVE____CHKSTK 1
16487 _ACEOF
16488
16489 fi
16490
16491
16492   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
16493 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
16494 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
16495   echo $ECHO_N "(cached) $ECHO_C" >&6
16496 else
16497   ac_check_lib_save_LIBS=$LIBS
16498 LIBS="-lgcc  $LIBS"
16499 cat >conftest.$ac_ext <<_ACEOF
16500 /* confdefs.h.  */
16501 _ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h.  */
16505
16506 /* Override any GCC internal prototype to avoid an error.
16507    Use char because int might match the return type of a GCC
16508    builtin and then its argument prototype would still apply.  */
16509 #ifdef __cplusplus
16510 extern "C"
16511 #endif
16512 char __ashldi3 ();
16513 int
16514 main ()
16515 {
16516 return __ashldi3 ();
16517   ;
16518   return 0;
16519 }
16520 _ACEOF
16521 rm -f conftest.$ac_objext conftest$ac_exeext
16522 if { (ac_try="$ac_link"
16523 case "(($ac_try" in
16524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525   *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528   (eval "$ac_link") 2>conftest.er1
16529   ac_status=$?
16530   grep -v '^ *+' conftest.er1 >conftest.err
16531   rm -f conftest.er1
16532   cat conftest.err >&5
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); } &&
16535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16536   { (case "(($ac_try" in
16537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538   *) ac_try_echo=$ac_try;;
16539 esac
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541   (eval "$ac_try") 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); }; } &&
16545          { ac_try='test -s conftest$ac_exeext'
16546   { (case "(($ac_try" in
16547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548   *) ac_try_echo=$ac_try;;
16549 esac
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551   (eval "$ac_try") 2>&5
16552   ac_status=$?
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); }; }; then
16555   ac_cv_lib_gcc___ashldi3=yes
16556 else
16557   echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560         ac_cv_lib_gcc___ashldi3=no
16561 fi
16562
16563 rm -f core conftest.err conftest.$ac_objext \
16564       conftest$ac_exeext conftest.$ac_ext
16565 LIBS=$ac_check_lib_save_LIBS
16566 fi
16567 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16568 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16569 if test $ac_cv_lib_gcc___ashldi3 = yes; then
16570
16571 cat >>confdefs.h <<\_ACEOF
16572 #define HAVE___ASHLDI3 1
16573 _ACEOF
16574
16575 fi
16576
16577   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16578 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16579 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16580   echo $ECHO_N "(cached) $ECHO_C" >&6
16581 else
16582   ac_check_lib_save_LIBS=$LIBS
16583 LIBS="-lgcc  $LIBS"
16584 cat >conftest.$ac_ext <<_ACEOF
16585 /* confdefs.h.  */
16586 _ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h.  */
16590
16591 /* Override any GCC internal prototype to avoid an error.
16592    Use char because int might match the return type of a GCC
16593    builtin and then its argument prototype would still apply.  */
16594 #ifdef __cplusplus
16595 extern "C"
16596 #endif
16597 char __ashrdi3 ();
16598 int
16599 main ()
16600 {
16601 return __ashrdi3 ();
16602   ;
16603   return 0;
16604 }
16605 _ACEOF
16606 rm -f conftest.$ac_objext conftest$ac_exeext
16607 if { (ac_try="$ac_link"
16608 case "(($ac_try" in
16609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610   *) ac_try_echo=$ac_try;;
16611 esac
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613   (eval "$ac_link") 2>conftest.er1
16614   ac_status=$?
16615   grep -v '^ *+' conftest.er1 >conftest.err
16616   rm -f conftest.er1
16617   cat conftest.err >&5
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); } &&
16620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16621   { (case "(($ac_try" in
16622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623   *) ac_try_echo=$ac_try;;
16624 esac
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626   (eval "$ac_try") 2>&5
16627   ac_status=$?
16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); }; } &&
16630          { ac_try='test -s conftest$ac_exeext'
16631   { (case "(($ac_try" in
16632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633   *) ac_try_echo=$ac_try;;
16634 esac
16635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636   (eval "$ac_try") 2>&5
16637   ac_status=$?
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); }; }; then
16640   ac_cv_lib_gcc___ashrdi3=yes
16641 else
16642   echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16644
16645         ac_cv_lib_gcc___ashrdi3=no
16646 fi
16647
16648 rm -f core conftest.err conftest.$ac_objext \
16649       conftest$ac_exeext conftest.$ac_ext
16650 LIBS=$ac_check_lib_save_LIBS
16651 fi
16652 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16653 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16654 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16655
16656 cat >>confdefs.h <<\_ACEOF
16657 #define HAVE___ASHRDI3 1
16658 _ACEOF
16659
16660 fi
16661
16662   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16663 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16664 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16665   echo $ECHO_N "(cached) $ECHO_C" >&6
16666 else
16667   ac_check_lib_save_LIBS=$LIBS
16668 LIBS="-lgcc  $LIBS"
16669 cat >conftest.$ac_ext <<_ACEOF
16670 /* confdefs.h.  */
16671 _ACEOF
16672 cat confdefs.h >>conftest.$ac_ext
16673 cat >>conftest.$ac_ext <<_ACEOF
16674 /* end confdefs.h.  */
16675
16676 /* Override any GCC internal prototype to avoid an error.
16677    Use char because int might match the return type of a GCC
16678    builtin and then its argument prototype would still apply.  */
16679 #ifdef __cplusplus
16680 extern "C"
16681 #endif
16682 char __divdi3 ();
16683 int
16684 main ()
16685 {
16686 return __divdi3 ();
16687   ;
16688   return 0;
16689 }
16690 _ACEOF
16691 rm -f conftest.$ac_objext conftest$ac_exeext
16692 if { (ac_try="$ac_link"
16693 case "(($ac_try" in
16694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695   *) ac_try_echo=$ac_try;;
16696 esac
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698   (eval "$ac_link") 2>conftest.er1
16699   ac_status=$?
16700   grep -v '^ *+' conftest.er1 >conftest.err
16701   rm -f conftest.er1
16702   cat conftest.err >&5
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); } &&
16705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16706   { (case "(($ac_try" in
16707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708   *) ac_try_echo=$ac_try;;
16709 esac
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711   (eval "$ac_try") 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; } &&
16715          { ac_try='test -s conftest$ac_exeext'
16716   { (case "(($ac_try" in
16717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718   *) ac_try_echo=$ac_try;;
16719 esac
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721   (eval "$ac_try") 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; }; then
16725   ac_cv_lib_gcc___divdi3=yes
16726 else
16727   echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16729
16730         ac_cv_lib_gcc___divdi3=no
16731 fi
16732
16733 rm -f core conftest.err conftest.$ac_objext \
16734       conftest$ac_exeext conftest.$ac_ext
16735 LIBS=$ac_check_lib_save_LIBS
16736 fi
16737 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16738 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16739 if test $ac_cv_lib_gcc___divdi3 = yes; then
16740
16741 cat >>confdefs.h <<\_ACEOF
16742 #define HAVE___DIVDI3 1
16743 _ACEOF
16744
16745 fi
16746
16747   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16748 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16749 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16750   echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752   ac_check_lib_save_LIBS=$LIBS
16753 LIBS="-lgcc  $LIBS"
16754 cat >conftest.$ac_ext <<_ACEOF
16755 /* confdefs.h.  */
16756 _ACEOF
16757 cat confdefs.h >>conftest.$ac_ext
16758 cat >>conftest.$ac_ext <<_ACEOF
16759 /* end confdefs.h.  */
16760
16761 /* Override any GCC internal prototype to avoid an error.
16762    Use char because int might match the return type of a GCC
16763    builtin and then its argument prototype would still apply.  */
16764 #ifdef __cplusplus
16765 extern "C"
16766 #endif
16767 char __fixdfdi ();
16768 int
16769 main ()
16770 {
16771 return __fixdfdi ();
16772   ;
16773   return 0;
16774 }
16775 _ACEOF
16776 rm -f conftest.$ac_objext conftest$ac_exeext
16777 if { (ac_try="$ac_link"
16778 case "(($ac_try" in
16779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780   *) ac_try_echo=$ac_try;;
16781 esac
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783   (eval "$ac_link") 2>conftest.er1
16784   ac_status=$?
16785   grep -v '^ *+' conftest.er1 >conftest.err
16786   rm -f conftest.er1
16787   cat conftest.err >&5
16788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789   (exit $ac_status); } &&
16790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16791   { (case "(($ac_try" in
16792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793   *) ac_try_echo=$ac_try;;
16794 esac
16795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16796   (eval "$ac_try") 2>&5
16797   ac_status=$?
16798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799   (exit $ac_status); }; } &&
16800          { ac_try='test -s conftest$ac_exeext'
16801   { (case "(($ac_try" in
16802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803   *) ac_try_echo=$ac_try;;
16804 esac
16805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806   (eval "$ac_try") 2>&5
16807   ac_status=$?
16808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809   (exit $ac_status); }; }; then
16810   ac_cv_lib_gcc___fixdfdi=yes
16811 else
16812   echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16814
16815         ac_cv_lib_gcc___fixdfdi=no
16816 fi
16817
16818 rm -f core conftest.err conftest.$ac_objext \
16819       conftest$ac_exeext conftest.$ac_ext
16820 LIBS=$ac_check_lib_save_LIBS
16821 fi
16822 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16823 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16824 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16825
16826 cat >>confdefs.h <<\_ACEOF
16827 #define HAVE___FIXDFDI 1
16828 _ACEOF
16829
16830 fi
16831
16832   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16833 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16834 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16835   echo $ECHO_N "(cached) $ECHO_C" >&6
16836 else
16837   ac_check_lib_save_LIBS=$LIBS
16838 LIBS="-lgcc  $LIBS"
16839 cat >conftest.$ac_ext <<_ACEOF
16840 /* confdefs.h.  */
16841 _ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h.  */
16845
16846 /* Override any GCC internal prototype to avoid an error.
16847    Use char because int might match the return type of a GCC
16848    builtin and then its argument prototype would still apply.  */
16849 #ifdef __cplusplus
16850 extern "C"
16851 #endif
16852 char __fixsfdi ();
16853 int
16854 main ()
16855 {
16856 return __fixsfdi ();
16857   ;
16858   return 0;
16859 }
16860 _ACEOF
16861 rm -f conftest.$ac_objext conftest$ac_exeext
16862 if { (ac_try="$ac_link"
16863 case "(($ac_try" in
16864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865   *) ac_try_echo=$ac_try;;
16866 esac
16867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868   (eval "$ac_link") 2>conftest.er1
16869   ac_status=$?
16870   grep -v '^ *+' conftest.er1 >conftest.err
16871   rm -f conftest.er1
16872   cat conftest.err >&5
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); } &&
16875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16876   { (case "(($ac_try" in
16877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878   *) ac_try_echo=$ac_try;;
16879 esac
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881   (eval "$ac_try") 2>&5
16882   ac_status=$?
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); }; } &&
16885          { ac_try='test -s conftest$ac_exeext'
16886   { (case "(($ac_try" in
16887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888   *) ac_try_echo=$ac_try;;
16889 esac
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891   (eval "$ac_try") 2>&5
16892   ac_status=$?
16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); }; }; then
16895   ac_cv_lib_gcc___fixsfdi=yes
16896 else
16897   echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16899
16900         ac_cv_lib_gcc___fixsfdi=no
16901 fi
16902
16903 rm -f core conftest.err conftest.$ac_objext \
16904       conftest$ac_exeext conftest.$ac_ext
16905 LIBS=$ac_check_lib_save_LIBS
16906 fi
16907 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16908 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16909 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16910
16911 cat >>confdefs.h <<\_ACEOF
16912 #define HAVE___FIXSFDI 1
16913 _ACEOF
16914
16915 fi
16916
16917   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16918 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16919 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16920   echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922   ac_check_lib_save_LIBS=$LIBS
16923 LIBS="-lgcc  $LIBS"
16924 cat >conftest.$ac_ext <<_ACEOF
16925 /* confdefs.h.  */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h.  */
16930
16931 /* Override any GCC internal prototype to avoid an error.
16932    Use char because int might match the return type of a GCC
16933    builtin and then its argument prototype would still apply.  */
16934 #ifdef __cplusplus
16935 extern "C"
16936 #endif
16937 char __floatdidf ();
16938 int
16939 main ()
16940 {
16941 return __floatdidf ();
16942   ;
16943   return 0;
16944 }
16945 _ACEOF
16946 rm -f conftest.$ac_objext conftest$ac_exeext
16947 if { (ac_try="$ac_link"
16948 case "(($ac_try" in
16949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950   *) ac_try_echo=$ac_try;;
16951 esac
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953   (eval "$ac_link") 2>conftest.er1
16954   ac_status=$?
16955   grep -v '^ *+' conftest.er1 >conftest.err
16956   rm -f conftest.er1
16957   cat conftest.err >&5
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); } &&
16960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16961   { (case "(($ac_try" in
16962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963   *) ac_try_echo=$ac_try;;
16964 esac
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966   (eval "$ac_try") 2>&5
16967   ac_status=$?
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); }; } &&
16970          { ac_try='test -s conftest$ac_exeext'
16971   { (case "(($ac_try" in
16972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973   *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976   (eval "$ac_try") 2>&5
16977   ac_status=$?
16978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); }; }; then
16980   ac_cv_lib_gcc___floatdidf=yes
16981 else
16982   echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16984
16985         ac_cv_lib_gcc___floatdidf=no
16986 fi
16987
16988 rm -f core conftest.err conftest.$ac_objext \
16989       conftest$ac_exeext conftest.$ac_ext
16990 LIBS=$ac_check_lib_save_LIBS
16991 fi
16992 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16993 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16994 if test $ac_cv_lib_gcc___floatdidf = yes; then
16995
16996 cat >>confdefs.h <<\_ACEOF
16997 #define HAVE___FLOATDIDF 1
16998 _ACEOF
16999
17000 fi
17001
17002   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
17003 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
17004 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
17005   echo $ECHO_N "(cached) $ECHO_C" >&6
17006 else
17007   ac_check_lib_save_LIBS=$LIBS
17008 LIBS="-lgcc  $LIBS"
17009 cat >conftest.$ac_ext <<_ACEOF
17010 /* confdefs.h.  */
17011 _ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h.  */
17015
17016 /* Override any GCC internal prototype to avoid an error.
17017    Use char because int might match the return type of a GCC
17018    builtin and then its argument prototype would still apply.  */
17019 #ifdef __cplusplus
17020 extern "C"
17021 #endif
17022 char __lshrdi3 ();
17023 int
17024 main ()
17025 {
17026 return __lshrdi3 ();
17027   ;
17028   return 0;
17029 }
17030 _ACEOF
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (ac_try="$ac_link"
17033 case "(($ac_try" in
17034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035   *) ac_try_echo=$ac_try;;
17036 esac
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038   (eval "$ac_link") 2>conftest.er1
17039   ac_status=$?
17040   grep -v '^ *+' conftest.er1 >conftest.err
17041   rm -f conftest.er1
17042   cat conftest.err >&5
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); } &&
17045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17046   { (case "(($ac_try" in
17047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048   *) ac_try_echo=$ac_try;;
17049 esac
17050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051   (eval "$ac_try") 2>&5
17052   ac_status=$?
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); }; } &&
17055          { ac_try='test -s conftest$ac_exeext'
17056   { (case "(($ac_try" in
17057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058   *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061   (eval "$ac_try") 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; }; then
17065   ac_cv_lib_gcc___lshrdi3=yes
17066 else
17067   echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070         ac_cv_lib_gcc___lshrdi3=no
17071 fi
17072
17073 rm -f core conftest.err conftest.$ac_objext \
17074       conftest$ac_exeext conftest.$ac_ext
17075 LIBS=$ac_check_lib_save_LIBS
17076 fi
17077 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
17078 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
17079 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
17080
17081 cat >>confdefs.h <<\_ACEOF
17082 #define HAVE___LSHRDI3 1
17083 _ACEOF
17084
17085 fi
17086
17087   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
17088 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
17089 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
17090   echo $ECHO_N "(cached) $ECHO_C" >&6
17091 else
17092   ac_check_lib_save_LIBS=$LIBS
17093 LIBS="-lgcc  $LIBS"
17094 cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h.  */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h.  */
17100
17101 /* Override any GCC internal prototype to avoid an error.
17102    Use char because int might match the return type of a GCC
17103    builtin and then its argument prototype would still apply.  */
17104 #ifdef __cplusplus
17105 extern "C"
17106 #endif
17107 char __moddi3 ();
17108 int
17109 main ()
17110 {
17111 return __moddi3 ();
17112   ;
17113   return 0;
17114 }
17115 _ACEOF
17116 rm -f conftest.$ac_objext conftest$ac_exeext
17117 if { (ac_try="$ac_link"
17118 case "(($ac_try" in
17119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120   *) ac_try_echo=$ac_try;;
17121 esac
17122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17123   (eval "$ac_link") 2>conftest.er1
17124   ac_status=$?
17125   grep -v '^ *+' conftest.er1 >conftest.err
17126   rm -f conftest.er1
17127   cat conftest.err >&5
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); } &&
17130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17131   { (case "(($ac_try" in
17132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133   *) ac_try_echo=$ac_try;;
17134 esac
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136   (eval "$ac_try") 2>&5
17137   ac_status=$?
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); }; } &&
17140          { ac_try='test -s conftest$ac_exeext'
17141   { (case "(($ac_try" in
17142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143   *) ac_try_echo=$ac_try;;
17144 esac
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146   (eval "$ac_try") 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); }; }; then
17150   ac_cv_lib_gcc___moddi3=yes
17151 else
17152   echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17154
17155         ac_cv_lib_gcc___moddi3=no
17156 fi
17157
17158 rm -f core conftest.err conftest.$ac_objext \
17159       conftest$ac_exeext conftest.$ac_ext
17160 LIBS=$ac_check_lib_save_LIBS
17161 fi
17162 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
17163 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
17164 if test $ac_cv_lib_gcc___moddi3 = yes; then
17165
17166 cat >>confdefs.h <<\_ACEOF
17167 #define HAVE___MODDI3 1
17168 _ACEOF
17169
17170 fi
17171
17172   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
17173 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
17174 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
17175   echo $ECHO_N "(cached) $ECHO_C" >&6
17176 else
17177   ac_check_lib_save_LIBS=$LIBS
17178 LIBS="-lgcc  $LIBS"
17179 cat >conftest.$ac_ext <<_ACEOF
17180 /* confdefs.h.  */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h.  */
17185
17186 /* Override any GCC internal prototype to avoid an error.
17187    Use char because int might match the return type of a GCC
17188    builtin and then its argument prototype would still apply.  */
17189 #ifdef __cplusplus
17190 extern "C"
17191 #endif
17192 char __udivdi3 ();
17193 int
17194 main ()
17195 {
17196 return __udivdi3 ();
17197   ;
17198   return 0;
17199 }
17200 _ACEOF
17201 rm -f conftest.$ac_objext conftest$ac_exeext
17202 if { (ac_try="$ac_link"
17203 case "(($ac_try" in
17204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205   *) ac_try_echo=$ac_try;;
17206 esac
17207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208   (eval "$ac_link") 2>conftest.er1
17209   ac_status=$?
17210   grep -v '^ *+' conftest.er1 >conftest.err
17211   rm -f conftest.er1
17212   cat conftest.err >&5
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); } &&
17215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17216   { (case "(($ac_try" in
17217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218   *) ac_try_echo=$ac_try;;
17219 esac
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221   (eval "$ac_try") 2>&5
17222   ac_status=$?
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); }; } &&
17225          { ac_try='test -s conftest$ac_exeext'
17226   { (case "(($ac_try" in
17227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228   *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231   (eval "$ac_try") 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; }; then
17235   ac_cv_lib_gcc___udivdi3=yes
17236 else
17237   echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17239
17240         ac_cv_lib_gcc___udivdi3=no
17241 fi
17242
17243 rm -f core conftest.err conftest.$ac_objext \
17244       conftest$ac_exeext conftest.$ac_ext
17245 LIBS=$ac_check_lib_save_LIBS
17246 fi
17247 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
17248 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
17249 if test $ac_cv_lib_gcc___udivdi3 = yes; then
17250
17251 cat >>confdefs.h <<\_ACEOF
17252 #define HAVE___UDIVDI3 1
17253 _ACEOF
17254
17255 fi
17256
17257   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
17258 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
17259 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
17260   echo $ECHO_N "(cached) $ECHO_C" >&6
17261 else
17262   ac_check_lib_save_LIBS=$LIBS
17263 LIBS="-lgcc  $LIBS"
17264 cat >conftest.$ac_ext <<_ACEOF
17265 /* confdefs.h.  */
17266 _ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h.  */
17270
17271 /* Override any GCC internal prototype to avoid an error.
17272    Use char because int might match the return type of a GCC
17273    builtin and then its argument prototype would still apply.  */
17274 #ifdef __cplusplus
17275 extern "C"
17276 #endif
17277 char __umoddi3 ();
17278 int
17279 main ()
17280 {
17281 return __umoddi3 ();
17282   ;
17283   return 0;
17284 }
17285 _ACEOF
17286 rm -f conftest.$ac_objext conftest$ac_exeext
17287 if { (ac_try="$ac_link"
17288 case "(($ac_try" in
17289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290   *) ac_try_echo=$ac_try;;
17291 esac
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293   (eval "$ac_link") 2>conftest.er1
17294   ac_status=$?
17295   grep -v '^ *+' conftest.er1 >conftest.err
17296   rm -f conftest.er1
17297   cat conftest.err >&5
17298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299   (exit $ac_status); } &&
17300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17301   { (case "(($ac_try" in
17302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303   *) ac_try_echo=$ac_try;;
17304 esac
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306   (eval "$ac_try") 2>&5
17307   ac_status=$?
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); }; } &&
17310          { ac_try='test -s conftest$ac_exeext'
17311   { (case "(($ac_try" in
17312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313   *) ac_try_echo=$ac_try;;
17314 esac
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316   (eval "$ac_try") 2>&5
17317   ac_status=$?
17318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319   (exit $ac_status); }; }; then
17320   ac_cv_lib_gcc___umoddi3=yes
17321 else
17322   echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17324
17325         ac_cv_lib_gcc___umoddi3=no
17326 fi
17327
17328 rm -f core conftest.err conftest.$ac_objext \
17329       conftest$ac_exeext conftest.$ac_ext
17330 LIBS=$ac_check_lib_save_LIBS
17331 fi
17332 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
17333 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
17334 if test $ac_cv_lib_gcc___umoddi3 = yes; then
17335
17336 cat >>confdefs.h <<\_ACEOF
17337 #define HAVE___UMODDI3 1
17338 _ACEOF
17339
17340 fi
17341
17342
17343   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
17344 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
17345 if test "${ac_cv_lib_gcc___main+set}" = set; then
17346   echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348   ac_check_lib_save_LIBS=$LIBS
17349 LIBS="-lgcc  $LIBS"
17350 cat >conftest.$ac_ext <<_ACEOF
17351 /* confdefs.h.  */
17352 _ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h.  */
17356
17357 /* Override any GCC internal prototype to avoid an error.
17358    Use char because int might match the return type of a GCC
17359    builtin and then its argument prototype would still apply.  */
17360 #ifdef __cplusplus
17361 extern "C"
17362 #endif
17363 char __main ();
17364 int
17365 main ()
17366 {
17367 return __main ();
17368   ;
17369   return 0;
17370 }
17371 _ACEOF
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (ac_try="$ac_link"
17374 case "(($ac_try" in
17375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376   *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379   (eval "$ac_link") 2>conftest.er1
17380   ac_status=$?
17381   grep -v '^ *+' conftest.er1 >conftest.err
17382   rm -f conftest.er1
17383   cat conftest.err >&5
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); } &&
17386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17387   { (case "(($ac_try" in
17388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389   *) ac_try_echo=$ac_try;;
17390 esac
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392   (eval "$ac_try") 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); }; } &&
17396          { ac_try='test -s conftest$ac_exeext'
17397   { (case "(($ac_try" in
17398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399   *) ac_try_echo=$ac_try;;
17400 esac
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402   (eval "$ac_try") 2>&5
17403   ac_status=$?
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); }; }; then
17406   ac_cv_lib_gcc___main=yes
17407 else
17408   echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17410
17411         ac_cv_lib_gcc___main=no
17412 fi
17413
17414 rm -f core conftest.err conftest.$ac_objext \
17415       conftest$ac_exeext conftest.$ac_ext
17416 LIBS=$ac_check_lib_save_LIBS
17417 fi
17418 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
17419 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
17420 if test $ac_cv_lib_gcc___main = yes; then
17421
17422 cat >>confdefs.h <<\_ACEOF
17423 #define HAVE___MAIN 1
17424 _ACEOF
17425
17426 fi
17427
17428   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
17429 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
17430 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
17431   echo $ECHO_N "(cached) $ECHO_C" >&6
17432 else
17433   ac_check_lib_save_LIBS=$LIBS
17434 LIBS="-lgcc  $LIBS"
17435 cat >conftest.$ac_ext <<_ACEOF
17436 /* confdefs.h.  */
17437 _ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h.  */
17441
17442 /* Override any GCC internal prototype to avoid an error.
17443    Use char because int might match the return type of a GCC
17444    builtin and then its argument prototype would still apply.  */
17445 #ifdef __cplusplus
17446 extern "C"
17447 #endif
17448 char __cmpdi2 ();
17449 int
17450 main ()
17451 {
17452 return __cmpdi2 ();
17453   ;
17454   return 0;
17455 }
17456 _ACEOF
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (ac_try="$ac_link"
17459 case "(($ac_try" in
17460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461   *) ac_try_echo=$ac_try;;
17462 esac
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464   (eval "$ac_link") 2>conftest.er1
17465   ac_status=$?
17466   grep -v '^ *+' conftest.er1 >conftest.err
17467   rm -f conftest.er1
17468   cat conftest.err >&5
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); } &&
17471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17472   { (case "(($ac_try" in
17473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474   *) ac_try_echo=$ac_try;;
17475 esac
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477   (eval "$ac_try") 2>&5
17478   ac_status=$?
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); }; } &&
17481          { ac_try='test -s conftest$ac_exeext'
17482   { (case "(($ac_try" in
17483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484   *) ac_try_echo=$ac_try;;
17485 esac
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487   (eval "$ac_try") 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); }; }; then
17491   ac_cv_lib_gcc___cmpdi2=yes
17492 else
17493   echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17495
17496         ac_cv_lib_gcc___cmpdi2=no
17497 fi
17498
17499 rm -f core conftest.err conftest.$ac_objext \
17500       conftest$ac_exeext conftest.$ac_ext
17501 LIBS=$ac_check_lib_save_LIBS
17502 fi
17503 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
17504 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
17505 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
17506
17507 cat >>confdefs.h <<\_ACEOF
17508 #define HAVE___CMPDI2 1
17509 _ACEOF
17510
17511 fi
17512
17513 fi
17514
17515 if test "$llvm_cv_os_type" = "MingW" ; then
17516   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
17517 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
17518   cat >conftest.$ac_ext <<_ACEOF
17519
17520   /* confdefs.h.  */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h.  */
17525
17526     #include <windows.h>
17527     #include <imagehlp.h>
17528     extern void foo(PENUMLOADED_MODULES_CALLBACK);
17529     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
17530
17531
17532 _ACEOF
17533 rm -f conftest.$ac_objext
17534 if { (ac_try="$ac_compile"
17535 case "(($ac_try" in
17536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537   *) ac_try_echo=$ac_try;;
17538 esac
17539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540   (eval "$ac_compile") 2>conftest.er1
17541   ac_status=$?
17542   grep -v '^ *+' conftest.er1 >conftest.err
17543   rm -f conftest.er1
17544   cat conftest.err >&5
17545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); } &&
17547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17548   { (case "(($ac_try" in
17549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550   *) ac_try_echo=$ac_try;;
17551 esac
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553   (eval "$ac_try") 2>&5
17554   ac_status=$?
17555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556   (exit $ac_status); }; } &&
17557          { ac_try='test -s conftest.$ac_objext'
17558   { (case "(($ac_try" in
17559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560   *) ac_try_echo=$ac_try;;
17561 esac
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563   (eval "$ac_try") 2>&5
17564   ac_status=$?
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); }; }; then
17567
17568   { echo "$as_me:$LINENO: result: yes" >&5
17569 echo "${ECHO_T}yes" >&6; }
17570   llvm_cv_win32_elmcb_pcstr="PCSTR"
17571
17572 else
17573   echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576
17577   { echo "$as_me:$LINENO: result: no" >&5
17578 echo "${ECHO_T}no" >&6; }
17579   llvm_cv_win32_elmcb_pcstr="PSTR"
17580
17581 fi
17582
17583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17584
17585 cat >>confdefs.h <<_ACEOF
17586 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17587 _ACEOF
17588
17589 fi
17590
17591
17592
17593   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17594 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17595 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17596   echo $ECHO_N "(cached) $ECHO_C" >&6
17597 else
17598
17599     ac_ext=cpp
17600 ac_cpp='$CXXCPP $CPPFLAGS'
17601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17604
17605     cat >conftest.$ac_ext <<_ACEOF
17606 /* confdefs.h.  */
17607 _ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h.  */
17611 #include <math.h>
17612 int
17613 main ()
17614 {
17615 float f; isnan(f);
17616   ;
17617   return 0;
17618 }
17619 _ACEOF
17620 rm -f conftest.$ac_objext
17621 if { (ac_try="$ac_compile"
17622 case "(($ac_try" in
17623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624   *) ac_try_echo=$ac_try;;
17625 esac
17626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627   (eval "$ac_compile") 2>conftest.er1
17628   ac_status=$?
17629   grep -v '^ *+' conftest.er1 >conftest.err
17630   rm -f conftest.er1
17631   cat conftest.err >&5
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); } &&
17634          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17635   { (case "(($ac_try" in
17636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637   *) ac_try_echo=$ac_try;;
17638 esac
17639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640   (eval "$ac_try") 2>&5
17641   ac_status=$?
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); }; } &&
17644          { ac_try='test -s conftest.$ac_objext'
17645   { (case "(($ac_try" in
17646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647   *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650   (eval "$ac_try") 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); }; }; then
17654   ac_cv_func_isnan_in_math_h=yes
17655 else
17656   echo "$as_me: failed program was:" >&5
17657 sed 's/^/| /' conftest.$ac_ext >&5
17658
17659         ac_cv_func_isnan_in_math_h=no
17660 fi
17661
17662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17663     ac_ext=c
17664 ac_cpp='$CPP $CPPFLAGS'
17665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17668
17669
17670 fi
17671 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17672 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17673
17674
17675 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17676
17677 cat >>confdefs.h <<\_ACEOF
17678 #define HAVE_ISNAN_IN_MATH_H 1
17679 _ACEOF
17680
17681 fi
17682
17683
17684   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17685 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17686 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17687   echo $ECHO_N "(cached) $ECHO_C" >&6
17688 else
17689
17690     ac_ext=cpp
17691 ac_cpp='$CXXCPP $CPPFLAGS'
17692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17695
17696     cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h.  */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h.  */
17702 #include <cmath>
17703 int
17704 main ()
17705 {
17706 float f; isnan(f);
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715   *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718   (eval "$ac_compile") 2>conftest.er1
17719   ac_status=$?
17720   grep -v '^ *+' conftest.er1 >conftest.err
17721   rm -f conftest.er1
17722   cat conftest.err >&5
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); } &&
17725          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17726   { (case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_try") 2>&5
17732   ac_status=$?
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); }; } &&
17735          { ac_try='test -s conftest.$ac_objext'
17736   { (case "(($ac_try" in
17737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738   *) ac_try_echo=$ac_try;;
17739 esac
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741   (eval "$ac_try") 2>&5
17742   ac_status=$?
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); }; }; then
17745   ac_cv_func_isnan_in_cmath=yes
17746 else
17747   echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17749
17750         ac_cv_func_isnan_in_cmath=no
17751 fi
17752
17753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17754     ac_ext=c
17755 ac_cpp='$CPP $CPPFLAGS'
17756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17759
17760
17761 fi
17762 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17763 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17764
17765 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17766
17767 cat >>confdefs.h <<\_ACEOF
17768 #define HAVE_ISNAN_IN_CMATH 1
17769 _ACEOF
17770
17771 fi
17772
17773
17774   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17775 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17776 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17777   echo $ECHO_N "(cached) $ECHO_C" >&6
17778 else
17779
17780     ac_ext=cpp
17781 ac_cpp='$CXXCPP $CPPFLAGS'
17782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17785
17786     cat >conftest.$ac_ext <<_ACEOF
17787 /* confdefs.h.  */
17788 _ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h.  */
17792 #include <cmath>
17793 int
17794 main ()
17795 {
17796 float f; std::isnan(f);
17797   ;
17798   return 0;
17799 }
17800 _ACEOF
17801 rm -f conftest.$ac_objext
17802 if { (ac_try="$ac_compile"
17803 case "(($ac_try" in
17804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805   *) ac_try_echo=$ac_try;;
17806 esac
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808   (eval "$ac_compile") 2>conftest.er1
17809   ac_status=$?
17810   grep -v '^ *+' conftest.er1 >conftest.err
17811   rm -f conftest.er1
17812   cat conftest.err >&5
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); } &&
17815          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17816   { (case "(($ac_try" in
17817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818   *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821   (eval "$ac_try") 2>&5
17822   ac_status=$?
17823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); }; } &&
17825          { ac_try='test -s conftest.$ac_objext'
17826   { (case "(($ac_try" in
17827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828   *) ac_try_echo=$ac_try;;
17829 esac
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831   (eval "$ac_try") 2>&5
17832   ac_status=$?
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); }; }; then
17835   ac_cv_func_std_isnan_in_cmath=yes
17836 else
17837   echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17839
17840         ac_cv_func_std_isnan_in_cmath=no
17841 fi
17842
17843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17844     ac_ext=c
17845 ac_cpp='$CPP $CPPFLAGS'
17846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17849
17850
17851 fi
17852 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17853 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17854
17855 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17856
17857 cat >>confdefs.h <<\_ACEOF
17858 #define HAVE_STD_ISNAN_IN_CMATH 1
17859 _ACEOF
17860
17861 fi
17862
17863
17864
17865
17866   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17867 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17868 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17869   echo $ECHO_N "(cached) $ECHO_C" >&6
17870 else
17871
17872     ac_ext=cpp
17873 ac_cpp='$CXXCPP $CPPFLAGS'
17874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17877
17878     cat >conftest.$ac_ext <<_ACEOF
17879 /* confdefs.h.  */
17880 _ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h.  */
17884 #include <math.h>
17885 int
17886 main ()
17887 {
17888 float f; isinf(f);
17889   ;
17890   return 0;
17891 }
17892 _ACEOF
17893 rm -f conftest.$ac_objext
17894 if { (ac_try="$ac_compile"
17895 case "(($ac_try" in
17896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17897   *) ac_try_echo=$ac_try;;
17898 esac
17899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17900   (eval "$ac_compile") 2>conftest.er1
17901   ac_status=$?
17902   grep -v '^ *+' conftest.er1 >conftest.err
17903   rm -f conftest.er1
17904   cat conftest.err >&5
17905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906   (exit $ac_status); } &&
17907          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17908   { (case "(($ac_try" in
17909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910   *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913   (eval "$ac_try") 2>&5
17914   ac_status=$?
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); }; } &&
17917          { ac_try='test -s conftest.$ac_objext'
17918   { (case "(($ac_try" in
17919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920   *) ac_try_echo=$ac_try;;
17921 esac
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923   (eval "$ac_try") 2>&5
17924   ac_status=$?
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); }; }; then
17927   ac_cv_func_isinf_in_math_h=yes
17928 else
17929   echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17931
17932         ac_cv_func_isinf_in_math_h=no
17933 fi
17934
17935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17936     ac_ext=c
17937 ac_cpp='$CPP $CPPFLAGS'
17938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17941
17942
17943 fi
17944 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17945 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17946
17947 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17948
17949 cat >>confdefs.h <<\_ACEOF
17950 #define HAVE_ISINF_IN_MATH_H 1
17951 _ACEOF
17952
17953 fi
17954
17955
17956   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17957 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17958 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17959   echo $ECHO_N "(cached) $ECHO_C" >&6
17960 else
17961
17962     ac_ext=cpp
17963 ac_cpp='$CXXCPP $CPPFLAGS'
17964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17967
17968     cat >conftest.$ac_ext <<_ACEOF
17969 /* confdefs.h.  */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h.  */
17974 #include <cmath>
17975 int
17976 main ()
17977 {
17978 float f; isinf(f);
17979   ;
17980   return 0;
17981 }
17982 _ACEOF
17983 rm -f conftest.$ac_objext
17984 if { (ac_try="$ac_compile"
17985 case "(($ac_try" in
17986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987   *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990   (eval "$ac_compile") 2>conftest.er1
17991   ac_status=$?
17992   grep -v '^ *+' conftest.er1 >conftest.err
17993   rm -f conftest.er1
17994   cat conftest.err >&5
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); } &&
17997          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17998   { (case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003   (eval "$ac_try") 2>&5
18004   ac_status=$?
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); }; } &&
18007          { ac_try='test -s conftest.$ac_objext'
18008   { (case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_try") 2>&5
18014   ac_status=$?
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); }; }; then
18017   ac_cv_func_isinf_in_cmath=yes
18018 else
18019   echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022         ac_cv_func_isinf_in_cmath=no
18023 fi
18024
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18026     ac_ext=c
18027 ac_cpp='$CPP $CPPFLAGS'
18028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18031
18032
18033 fi
18034 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18035 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18036
18037 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18038
18039 cat >>confdefs.h <<\_ACEOF
18040 #define HAVE_ISINF_IN_CMATH 1
18041 _ACEOF
18042
18043 fi
18044
18045
18046   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18047 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18048 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18049   echo $ECHO_N "(cached) $ECHO_C" >&6
18050 else
18051
18052     ac_ext=cpp
18053 ac_cpp='$CXXCPP $CPPFLAGS'
18054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18057
18058     cat >conftest.$ac_ext <<_ACEOF
18059 /* confdefs.h.  */
18060 _ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h.  */
18064 #include <cmath>
18065 int
18066 main ()
18067 {
18068 float f; std::isinf(f);
18069   ;
18070   return 0;
18071 }
18072 _ACEOF
18073 rm -f conftest.$ac_objext
18074 if { (ac_try="$ac_compile"
18075 case "(($ac_try" in
18076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077   *) ac_try_echo=$ac_try;;
18078 esac
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080   (eval "$ac_compile") 2>conftest.er1
18081   ac_status=$?
18082   grep -v '^ *+' conftest.er1 >conftest.err
18083   rm -f conftest.er1
18084   cat conftest.err >&5
18085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); } &&
18087          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18088   { (case "(($ac_try" in
18089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090   *) ac_try_echo=$ac_try;;
18091 esac
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093   (eval "$ac_try") 2>&5
18094   ac_status=$?
18095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096   (exit $ac_status); }; } &&
18097          { ac_try='test -s conftest.$ac_objext'
18098   { (case "(($ac_try" in
18099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100   *) ac_try_echo=$ac_try;;
18101 esac
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103   (eval "$ac_try") 2>&5
18104   ac_status=$?
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); }; }; then
18107   ac_cv_func_std_isinf_in_cmath=yes
18108 else
18109   echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18111
18112         ac_cv_func_std_isinf_in_cmath=no
18113 fi
18114
18115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18116     ac_ext=c
18117 ac_cpp='$CPP $CPPFLAGS'
18118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18121
18122
18123 fi
18124 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18125 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18126
18127 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18128
18129 cat >>confdefs.h <<\_ACEOF
18130 #define HAVE_STD_ISINF_IN_CMATH 1
18131 _ACEOF
18132
18133 fi
18134
18135
18136   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18137 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18138 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18139   echo $ECHO_N "(cached) $ECHO_C" >&6
18140 else
18141
18142     ac_ext=cpp
18143 ac_cpp='$CXXCPP $CPPFLAGS'
18144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18147
18148     cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h.  */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h.  */
18154 #include <ieeefp.h>
18155 int
18156 main ()
18157 {
18158 float f; finite(f);
18159   ;
18160   return 0;
18161 }
18162 _ACEOF
18163 rm -f conftest.$ac_objext
18164 if { (ac_try="$ac_compile"
18165 case "(($ac_try" in
18166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167   *) ac_try_echo=$ac_try;;
18168 esac
18169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18170   (eval "$ac_compile") 2>conftest.er1
18171   ac_status=$?
18172   grep -v '^ *+' conftest.er1 >conftest.err
18173   rm -f conftest.er1
18174   cat conftest.err >&5
18175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176   (exit $ac_status); } &&
18177          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18178   { (case "(($ac_try" in
18179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180   *) ac_try_echo=$ac_try;;
18181 esac
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183   (eval "$ac_try") 2>&5
18184   ac_status=$?
18185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); }; } &&
18187          { ac_try='test -s conftest.$ac_objext'
18188   { (case "(($ac_try" in
18189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190   *) ac_try_echo=$ac_try;;
18191 esac
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193   (eval "$ac_try") 2>&5
18194   ac_status=$?
18195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196   (exit $ac_status); }; }; then
18197   ac_cv_func_finite_in_ieeefp_h=yes
18198 else
18199   echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18201
18202         ac_cv_func_finite_in_ieeefp_h=no
18203 fi
18204
18205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206     ac_ext=c
18207 ac_cpp='$CPP $CPPFLAGS'
18208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18211
18212
18213 fi
18214 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18215 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18216
18217 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18218
18219 cat >>confdefs.h <<\_ACEOF
18220 #define HAVE_FINITE_IN_IEEEFP_H 1
18221 _ACEOF
18222
18223 fi
18224
18225
18226
18227 if test "$llvm_cv_platform_type" = "Unix" ; then
18228
18229
18230 for ac_header in stdlib.h unistd.h
18231 do
18232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18234   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18237   echo $ECHO_N "(cached) $ECHO_C" >&6
18238 fi
18239 ac_res=`eval echo '${'$as_ac_Header'}'`
18240                { echo "$as_me:$LINENO: result: $ac_res" >&5
18241 echo "${ECHO_T}$ac_res" >&6; }
18242 else
18243   # Is the header compilable?
18244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18246 cat >conftest.$ac_ext <<_ACEOF
18247 /* confdefs.h.  */
18248 _ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h.  */
18252 $ac_includes_default
18253 #include <$ac_header>
18254 _ACEOF
18255 rm -f conftest.$ac_objext
18256 if { (ac_try="$ac_compile"
18257 case "(($ac_try" in
18258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259   *) ac_try_echo=$ac_try;;
18260 esac
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262   (eval "$ac_compile") 2>conftest.er1
18263   ac_status=$?
18264   grep -v '^ *+' conftest.er1 >conftest.err
18265   rm -f conftest.er1
18266   cat conftest.err >&5
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); } &&
18269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18270   { (case "(($ac_try" in
18271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272   *) ac_try_echo=$ac_try;;
18273 esac
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275   (eval "$ac_try") 2>&5
18276   ac_status=$?
18277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278   (exit $ac_status); }; } &&
18279          { ac_try='test -s conftest.$ac_objext'
18280   { (case "(($ac_try" in
18281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282   *) ac_try_echo=$ac_try;;
18283 esac
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285   (eval "$ac_try") 2>&5
18286   ac_status=$?
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); }; }; then
18289   ac_header_compiler=yes
18290 else
18291   echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18293
18294         ac_header_compiler=no
18295 fi
18296
18297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18299 echo "${ECHO_T}$ac_header_compiler" >&6; }
18300
18301 # Is the header present?
18302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18304 cat >conftest.$ac_ext <<_ACEOF
18305 /* confdefs.h.  */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h.  */
18310 #include <$ac_header>
18311 _ACEOF
18312 if { (ac_try="$ac_cpp conftest.$ac_ext"
18313 case "(($ac_try" in
18314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315   *) ac_try_echo=$ac_try;;
18316 esac
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18319   ac_status=$?
18320   grep -v '^ *+' conftest.er1 >conftest.err
18321   rm -f conftest.er1
18322   cat conftest.err >&5
18323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324   (exit $ac_status); } >/dev/null; then
18325   if test -s conftest.err; then
18326     ac_cpp_err=$ac_c_preproc_warn_flag
18327     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18328   else
18329     ac_cpp_err=
18330   fi
18331 else
18332   ac_cpp_err=yes
18333 fi
18334 if test -z "$ac_cpp_err"; then
18335   ac_header_preproc=yes
18336 else
18337   echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340   ac_header_preproc=no
18341 fi
18342
18343 rm -f conftest.err conftest.$ac_ext
18344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18345 echo "${ECHO_T}$ac_header_preproc" >&6; }
18346
18347 # So?  What about this header?
18348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18349   yes:no: )
18350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18354     ac_header_preproc=yes
18355     ;;
18356   no:yes:* )
18357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18359     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18360 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18361     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18363     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18364 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18367     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18369     ( cat <<\_ASBOX
18370 ## ------------------------------------ ##
18371 ## Report this to http://llvm.org/bugs/ ##
18372 ## ------------------------------------ ##
18373 _ASBOX
18374      ) | sed "s/^/$as_me: WARNING:     /" >&2
18375     ;;
18376 esac
18377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18380   echo $ECHO_N "(cached) $ECHO_C" >&6
18381 else
18382   eval "$as_ac_Header=\$ac_header_preproc"
18383 fi
18384 ac_res=`eval echo '${'$as_ac_Header'}'`
18385                { echo "$as_me:$LINENO: result: $ac_res" >&5
18386 echo "${ECHO_T}$ac_res" >&6; }
18387
18388 fi
18389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18390   cat >>confdefs.h <<_ACEOF
18391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18392 _ACEOF
18393
18394 fi
18395
18396 done
18397
18398
18399 for ac_func in getpagesize
18400 do
18401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18405   echo $ECHO_N "(cached) $ECHO_C" >&6
18406 else
18407   cat >conftest.$ac_ext <<_ACEOF
18408 /* confdefs.h.  */
18409 _ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h.  */
18413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18415 #define $ac_func innocuous_$ac_func
18416
18417 /* System header to define __stub macros and hopefully few prototypes,
18418     which can conflict with char $ac_func (); below.
18419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18420     <limits.h> exists even on freestanding compilers.  */
18421
18422 #ifdef __STDC__
18423 # include <limits.h>
18424 #else
18425 # include <assert.h>
18426 #endif
18427
18428 #undef $ac_func
18429
18430 /* Override any GCC internal prototype to avoid an error.
18431    Use char because int might match the return type of a GCC
18432    builtin and then its argument prototype would still apply.  */
18433 #ifdef __cplusplus
18434 extern "C"
18435 #endif
18436 char $ac_func ();
18437 /* The GNU C library defines this for functions which it implements
18438     to always fail with ENOSYS.  Some functions are actually named
18439     something starting with __ and the normal name is an alias.  */
18440 #if defined __stub_$ac_func || defined __stub___$ac_func
18441 choke me
18442 #endif
18443
18444 int
18445 main ()
18446 {
18447 return $ac_func ();
18448   ;
18449   return 0;
18450 }
18451 _ACEOF
18452 rm -f conftest.$ac_objext conftest$ac_exeext
18453 if { (ac_try="$ac_link"
18454 case "(($ac_try" in
18455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456   *) ac_try_echo=$ac_try;;
18457 esac
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459   (eval "$ac_link") 2>conftest.er1
18460   ac_status=$?
18461   grep -v '^ *+' conftest.er1 >conftest.err
18462   rm -f conftest.er1
18463   cat conftest.err >&5
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); } &&
18466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18467   { (case "(($ac_try" in
18468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469   *) ac_try_echo=$ac_try;;
18470 esac
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472   (eval "$ac_try") 2>&5
18473   ac_status=$?
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); }; } &&
18476          { ac_try='test -s conftest$ac_exeext'
18477   { (case "(($ac_try" in
18478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479   *) ac_try_echo=$ac_try;;
18480 esac
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482   (eval "$ac_try") 2>&5
18483   ac_status=$?
18484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); }; }; then
18486   eval "$as_ac_var=yes"
18487 else
18488   echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18490
18491         eval "$as_ac_var=no"
18492 fi
18493
18494 rm -f core conftest.err conftest.$ac_objext \
18495       conftest$ac_exeext conftest.$ac_ext
18496 fi
18497 ac_res=`eval echo '${'$as_ac_var'}'`
18498                { echo "$as_me:$LINENO: result: $ac_res" >&5
18499 echo "${ECHO_T}$ac_res" >&6; }
18500 if test `eval echo '${'$as_ac_var'}'` = yes; then
18501   cat >>confdefs.h <<_ACEOF
18502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18503 _ACEOF
18504
18505 fi
18506 done
18507
18508 { echo "$as_me:$LINENO: checking for working mmap" >&5
18509 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18510 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18511   echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513   if test "$cross_compiling" = yes; then
18514   ac_cv_func_mmap_fixed_mapped=no
18515 else
18516   cat >conftest.$ac_ext <<_ACEOF
18517 /* confdefs.h.  */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h.  */
18522 $ac_includes_default
18523 /* malloc might have been renamed as rpl_malloc. */
18524 #undef malloc
18525
18526 /* Thanks to Mike Haertel and Jim Avera for this test.
18527    Here is a matrix of mmap possibilities:
18528         mmap private not fixed
18529         mmap private fixed at somewhere currently unmapped
18530         mmap private fixed at somewhere already mapped
18531         mmap shared not fixed
18532         mmap shared fixed at somewhere currently unmapped
18533         mmap shared fixed at somewhere already mapped
18534    For private mappings, we should verify that changes cannot be read()
18535    back from the file, nor mmap's back from the file at a different
18536    address.  (There have been systems where private was not correctly
18537    implemented like the infamous i386 svr4.0, and systems where the
18538    VM page cache was not coherent with the file system buffer cache
18539    like early versions of FreeBSD and possibly contemporary NetBSD.)
18540    For shared mappings, we should conversely verify that changes get
18541    propagated back to all the places they're supposed to be.
18542
18543    Grep wants private fixed already mapped.
18544    The main things grep needs to know about mmap are:
18545    * does it exist and is it safe to write into the mmap'd area
18546    * how to use it (BSD variants)  */
18547
18548 #include <fcntl.h>
18549 #include <sys/mman.h>
18550
18551 #if !STDC_HEADERS && !HAVE_STDLIB_H
18552 char *malloc ();
18553 #endif
18554
18555 /* This mess was copied from the GNU getpagesize.h.  */
18556 #if !HAVE_GETPAGESIZE
18557 /* Assume that all systems that can run configure have sys/param.h.  */
18558 # if !HAVE_SYS_PARAM_H
18559 #  define HAVE_SYS_PARAM_H 1
18560 # endif
18561
18562 # ifdef _SC_PAGESIZE
18563 #  define getpagesize() sysconf(_SC_PAGESIZE)
18564 # else /* no _SC_PAGESIZE */
18565 #  if HAVE_SYS_PARAM_H
18566 #   include <sys/param.h>
18567 #   ifdef EXEC_PAGESIZE
18568 #    define getpagesize() EXEC_PAGESIZE
18569 #   else /* no EXEC_PAGESIZE */
18570 #    ifdef NBPG
18571 #     define getpagesize() NBPG * CLSIZE
18572 #     ifndef CLSIZE
18573 #      define CLSIZE 1
18574 #     endif /* no CLSIZE */
18575 #    else /* no NBPG */
18576 #     ifdef NBPC
18577 #      define getpagesize() NBPC
18578 #     else /* no NBPC */
18579 #      ifdef PAGESIZE
18580 #       define getpagesize() PAGESIZE
18581 #      endif /* PAGESIZE */
18582 #     endif /* no NBPC */
18583 #    endif /* no NBPG */
18584 #   endif /* no EXEC_PAGESIZE */
18585 #  else /* no HAVE_SYS_PARAM_H */
18586 #   define getpagesize() 8192   /* punt totally */
18587 #  endif /* no HAVE_SYS_PARAM_H */
18588 # endif /* no _SC_PAGESIZE */
18589
18590 #endif /* no HAVE_GETPAGESIZE */
18591
18592 int
18593 main ()
18594 {
18595   char *data, *data2, *data3;
18596   int i, pagesize;
18597   int fd;
18598
18599   pagesize = getpagesize ();
18600
18601   /* First, make a file with some known garbage in it. */
18602   data = (char *) malloc (pagesize);
18603   if (!data)
18604     return 1;
18605   for (i = 0; i < pagesize; ++i)
18606     *(data + i) = rand ();
18607   umask (0);
18608   fd = creat ("conftest.mmap", 0600);
18609   if (fd < 0)
18610     return 1;
18611   if (write (fd, data, pagesize) != pagesize)
18612     return 1;
18613   close (fd);
18614
18615   /* Next, try to mmap the file at a fixed address which already has
18616      something else allocated at it.  If we can, also make sure that
18617      we see the same garbage.  */
18618   fd = open ("conftest.mmap", O_RDWR);
18619   if (fd < 0)
18620     return 1;
18621   data2 = (char *) malloc (2 * pagesize);
18622   if (!data2)
18623     return 1;
18624   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18625   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18626                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18627     return 1;
18628   for (i = 0; i < pagesize; ++i)
18629     if (*(data + i) != *(data2 + i))
18630       return 1;
18631
18632   /* Finally, make sure that changes to the mapped area do not
18633      percolate back to the file as seen by read().  (This is a bug on
18634      some variants of i386 svr4.0.)  */
18635   for (i = 0; i < pagesize; ++i)
18636     *(data2 + i) = *(data2 + i) + 1;
18637   data3 = (char *) malloc (pagesize);
18638   if (!data3)
18639     return 1;
18640   if (read (fd, data3, pagesize) != pagesize)
18641     return 1;
18642   for (i = 0; i < pagesize; ++i)
18643     if (*(data + i) != *(data3 + i))
18644       return 1;
18645   close (fd);
18646   return 0;
18647 }
18648 _ACEOF
18649 rm -f conftest$ac_exeext
18650 if { (ac_try="$ac_link"
18651 case "(($ac_try" in
18652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653   *) ac_try_echo=$ac_try;;
18654 esac
18655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656   (eval "$ac_link") 2>&5
18657   ac_status=$?
18658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18660   { (case "(($ac_try" in
18661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662   *) ac_try_echo=$ac_try;;
18663 esac
18664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665   (eval "$ac_try") 2>&5
18666   ac_status=$?
18667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668   (exit $ac_status); }; }; then
18669   ac_cv_func_mmap_fixed_mapped=yes
18670 else
18671   echo "$as_me: program exited with status $ac_status" >&5
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18674
18675 ( exit $ac_status )
18676 ac_cv_func_mmap_fixed_mapped=no
18677 fi
18678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18679 fi
18680
18681
18682 fi
18683 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18684 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18685 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18686
18687 cat >>confdefs.h <<\_ACEOF
18688 #define HAVE_MMAP 1
18689 _ACEOF
18690
18691 fi
18692 rm -f conftest.mmap
18693
18694   { echo "$as_me:$LINENO: checking for mmap of files" >&5
18695 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18696 if test "${ac_cv_func_mmap_file+set}" = set; then
18697   echo $ECHO_N "(cached) $ECHO_C" >&6
18698 else
18699    ac_ext=c
18700 ac_cpp='$CPP $CPPFLAGS'
18701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18704
18705   if test "$cross_compiling" = yes; then
18706   ac_cv_func_mmap_file=no
18707 else
18708   cat >conftest.$ac_ext <<_ACEOF
18709
18710     /* confdefs.h.  */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h.  */
18715
18716 #include <sys/types.h>
18717 #include <sys/mman.h>
18718 #include <fcntl.h>
18719
18720 int
18721 main ()
18722 {
18723
18724   int fd;
18725   fd = creat ("foo",0777);
18726   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18727   unlink ("foo");
18728   return (fd != (int) MAP_FAILED);
18729   ;
18730   return 0;
18731 }
18732 _ACEOF
18733 rm -f conftest$ac_exeext
18734 if { (ac_try="$ac_link"
18735 case "(($ac_try" in
18736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737   *) ac_try_echo=$ac_try;;
18738 esac
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740   (eval "$ac_link") 2>&5
18741   ac_status=$?
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18744   { (case "(($ac_try" in
18745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18746   *) ac_try_echo=$ac_try;;
18747 esac
18748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18749   (eval "$ac_try") 2>&5
18750   ac_status=$?
18751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752   (exit $ac_status); }; }; then
18753   ac_cv_func_mmap_file=yes
18754 else
18755   echo "$as_me: program exited with status $ac_status" >&5
18756 echo "$as_me: failed program was:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18758
18759 ( exit $ac_status )
18760 ac_cv_func_mmap_file=no
18761 fi
18762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18763 fi
18764
18765
18766   ac_ext=c
18767 ac_cpp='$CPP $CPPFLAGS'
18768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18771
18772
18773 fi
18774 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18775 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18776 if test "$ac_cv_func_mmap_file" = yes; then
18777
18778 cat >>confdefs.h <<\_ACEOF
18779 #define HAVE_MMAP_FILE
18780 _ACEOF
18781
18782    MMAP_FILE=yes
18783
18784 fi
18785
18786   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18787 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18788 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18789   echo $ECHO_N "(cached) $ECHO_C" >&6
18790 else
18791   if test "$llvm_cv_os_type" = "Interix" ; then
18792    ac_cv_need_dev_zero_for_mmap=yes
18793  else
18794    ac_cv_need_dev_zero_for_mmap=no
18795  fi
18796
18797 fi
18798 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18799 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18800 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18801
18802 cat >>confdefs.h <<\_ACEOF
18803 #define NEED_DEV_ZERO_FOR_MMAP 1
18804 _ACEOF
18805
18806 fi
18807
18808   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18809   then
18810     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18811 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18812   fi
18813   if test "$ac_cv_func_mmap_file" = "no"
18814   then
18815     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18816 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18817   fi
18818 fi
18819
18820 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18821 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18822 ac_ext=cpp
18823 ac_cpp='$CXXCPP $CPPFLAGS'
18824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18827
18828 cat >conftest.$ac_ext <<_ACEOF
18829
18830   /* confdefs.h.  */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h.  */
18835
18836     int main() {
18837       volatile unsigned long val = 1;
18838       __sync_synchronize();
18839       __sync_val_compare_and_swap(&val, 1, 0);
18840       __sync_add_and_fetch(&val, 1);
18841       __sync_sub_and_fetch(&val, 1);
18842       return 0;
18843     }
18844
18845
18846 _ACEOF
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (ac_try="$ac_link"
18849 case "(($ac_try" in
18850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851   *) ac_try_echo=$ac_try;;
18852 esac
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854   (eval "$ac_link") 2>conftest.er1
18855   ac_status=$?
18856   grep -v '^ *+' conftest.er1 >conftest.err
18857   rm -f conftest.er1
18858   cat conftest.err >&5
18859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860   (exit $ac_status); } &&
18861          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18862   { (case "(($ac_try" in
18863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864   *) ac_try_echo=$ac_try;;
18865 esac
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867   (eval "$ac_try") 2>&5
18868   ac_status=$?
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); }; } &&
18871          { ac_try='test -s conftest$ac_exeext'
18872   { (case "(($ac_try" in
18873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874   *) ac_try_echo=$ac_try;;
18875 esac
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877   (eval "$ac_try") 2>&5
18878   ac_status=$?
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); }; }; then
18881
18882   { echo "$as_me:$LINENO: result: yes" >&5
18883 echo "${ECHO_T}yes" >&6; }
18884
18885 cat >>confdefs.h <<\_ACEOF
18886 #define LLVM_HAS_ATOMICS 1
18887 _ACEOF
18888
18889
18890 else
18891   echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18893
18894
18895   { echo "$as_me:$LINENO: result: no" >&5
18896 echo "${ECHO_T}no" >&6; }
18897
18898 cat >>confdefs.h <<\_ACEOF
18899 #define LLVM_HAS_ATOMICS 0
18900 _ACEOF
18901
18902   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18903 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18904
18905 fi
18906
18907 rm -f core conftest.err conftest.$ac_objext \
18908       conftest$ac_exeext conftest.$ac_ext
18909 ac_ext=c
18910 ac_cpp='$CPP $CPPFLAGS'
18911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18914
18915
18916
18917 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18918   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18919 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18920 if test "${llvm_cv_linux_mixed+set}" = set; then
18921   echo $ECHO_N "(cached) $ECHO_C" >&6
18922 else
18923    ac_ext=c
18924 ac_cpp='$CPP $CPPFLAGS'
18925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18928
18929   cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h.  */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h.  */
18935 #ifndef __x86_64__
18936        error: Not x86-64 even if uname says so!
18937       #endif
18938
18939 int
18940 main ()
18941 {
18942
18943   ;
18944   return 0;
18945 }
18946 _ACEOF
18947 rm -f conftest.$ac_objext
18948 if { (ac_try="$ac_compile"
18949 case "(($ac_try" in
18950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951   *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954   (eval "$ac_compile") 2>conftest.er1
18955   ac_status=$?
18956   grep -v '^ *+' conftest.er1 >conftest.err
18957   rm -f conftest.er1
18958   cat conftest.err >&5
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } &&
18961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18962   { (case "(($ac_try" in
18963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964   *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967   (eval "$ac_try") 2>&5
18968   ac_status=$?
18969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970   (exit $ac_status); }; } &&
18971          { ac_try='test -s conftest.$ac_objext'
18972   { (case "(($ac_try" in
18973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974   *) ac_try_echo=$ac_try;;
18975 esac
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977   (eval "$ac_try") 2>&5
18978   ac_status=$?
18979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980   (exit $ac_status); }; }; then
18981   llvm_cv_linux_mixed=no
18982 else
18983   echo "$as_me: failed program was:" >&5
18984 sed 's/^/| /' conftest.$ac_ext >&5
18985
18986         llvm_cv_linux_mixed=yes
18987 fi
18988
18989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18990   ac_ext=c
18991 ac_cpp='$CPP $CPPFLAGS'
18992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18995
18996
18997 fi
18998 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18999 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19000
19001   if test "$llvm_cv_linux_mixed" = "yes"; then
19002     llvm_cv_target_arch="x86"
19003     ARCH="x86"
19004   fi
19005 fi
19006
19007
19008 for ac_func in __dso_handle
19009 do
19010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19014   echo $ECHO_N "(cached) $ECHO_C" >&6
19015 else
19016   cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h.  */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h.  */
19022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19024 #define $ac_func innocuous_$ac_func
19025
19026 /* System header to define __stub macros and hopefully few prototypes,
19027     which can conflict with char $ac_func (); below.
19028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19029     <limits.h> exists even on freestanding compilers.  */
19030
19031 #ifdef __STDC__
19032 # include <limits.h>
19033 #else
19034 # include <assert.h>
19035 #endif
19036
19037 #undef $ac_func
19038
19039 /* Override any GCC internal prototype to avoid an error.
19040    Use char because int might match the return type of a GCC
19041    builtin and then its argument prototype would still apply.  */
19042 #ifdef __cplusplus
19043 extern "C"
19044 #endif
19045 char $ac_func ();
19046 /* The GNU C library defines this for functions which it implements
19047     to always fail with ENOSYS.  Some functions are actually named
19048     something starting with __ and the normal name is an alias.  */
19049 #if defined __stub_$ac_func || defined __stub___$ac_func
19050 choke me
19051 #endif
19052
19053 int
19054 main ()
19055 {
19056 return $ac_func ();
19057   ;
19058   return 0;
19059 }
19060 _ACEOF
19061 rm -f conftest.$ac_objext conftest$ac_exeext
19062 if { (ac_try="$ac_link"
19063 case "(($ac_try" in
19064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065   *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068   (eval "$ac_link") 2>conftest.er1
19069   ac_status=$?
19070   grep -v '^ *+' conftest.er1 >conftest.err
19071   rm -f conftest.er1
19072   cat conftest.err >&5
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); } &&
19075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19076   { (case "(($ac_try" in
19077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078   *) ac_try_echo=$ac_try;;
19079 esac
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081   (eval "$ac_try") 2>&5
19082   ac_status=$?
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); }; } &&
19085          { ac_try='test -s conftest$ac_exeext'
19086   { (case "(($ac_try" in
19087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088   *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091   (eval "$ac_try") 2>&5
19092   ac_status=$?
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); }; }; then
19095   eval "$as_ac_var=yes"
19096 else
19097   echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100         eval "$as_ac_var=no"
19101 fi
19102
19103 rm -f core conftest.err conftest.$ac_objext \
19104       conftest$ac_exeext conftest.$ac_ext
19105 fi
19106 ac_res=`eval echo '${'$as_ac_var'}'`
19107                { echo "$as_me:$LINENO: result: $ac_res" >&5
19108 echo "${ECHO_T}$ac_res" >&6; }
19109 if test `eval echo '${'$as_ac_var'}'` = yes; then
19110   cat >>confdefs.h <<_ACEOF
19111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19112 _ACEOF
19113
19114 fi
19115 done
19116
19117
19118 SHLIBEXT=$llvm_shlib_ext
19119
19120
19121 if test "${prefix}" = "NONE" ; then
19122   prefix="/usr/local"
19123 fi
19124 eval LLVM_PREFIX="${prefix}";
19125 eval LLVM_BINDIR="${prefix}/bin";
19126 eval LLVM_DATADIR="${prefix}/share/llvm";
19127 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19128 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19129 eval LLVM_INCLUDEDIR="${prefix}/include";
19130 eval LLVM_INFODIR="${prefix}/info";
19131 eval LLVM_MANDIR="${prefix}/man";
19132 LLVM_CONFIGTIME=`date`
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143 if test "${ENABLE_TIMESTAMPS}" = "0"; then
19144   LLVM_CONFIGTIME="(timestamp not enabled)"
19145 fi
19146
19147
19148 cat >>confdefs.h <<_ACEOF
19149 #define LLVM_PREFIX "$LLVM_PREFIX"
19150 _ACEOF
19151
19152
19153 cat >>confdefs.h <<_ACEOF
19154 #define LLVM_BINDIR "$LLVM_BINDIR"
19155 _ACEOF
19156
19157
19158 cat >>confdefs.h <<_ACEOF
19159 #define LLVM_DATADIR "$LLVM_DATADIR"
19160 _ACEOF
19161
19162
19163 cat >>confdefs.h <<_ACEOF
19164 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19165 _ACEOF
19166
19167
19168 cat >>confdefs.h <<_ACEOF
19169 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19170 _ACEOF
19171
19172
19173 cat >>confdefs.h <<_ACEOF
19174 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19175 _ACEOF
19176
19177
19178 cat >>confdefs.h <<_ACEOF
19179 #define LLVM_INFODIR "$LLVM_INFODIR"
19180 _ACEOF
19181
19182
19183 cat >>confdefs.h <<_ACEOF
19184 #define LLVM_MANDIR "$LLVM_MANDIR"
19185 _ACEOF
19186
19187
19188 cat >>confdefs.h <<_ACEOF
19189 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19190 _ACEOF
19191
19192
19193 cat >>confdefs.h <<_ACEOF
19194 #define LLVM_HOST_TRIPLE "$host"
19195 _ACEOF
19196
19197
19198 cat >>confdefs.h <<_ACEOF
19199 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
19200 _ACEOF
19201
19202
19203 if test "$BINDINGS_TO_BUILD" = auto ; then
19204   BINDINGS_TO_BUILD=""
19205   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19206     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19207   fi
19208 fi
19209 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19210
19211
19212 ALL_BINDINGS=ocaml
19213
19214
19215 binding_prereqs_failed=0
19216 for a_binding in $BINDINGS_TO_BUILD ; do
19217   case "$a_binding" in
19218   ocaml)
19219     if test "x$OCAMLC" = x ; then
19220       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19221 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19222       binding_prereqs_failed=1
19223     fi
19224     if test "x$OCAMLDEP" = x ; then
19225       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19226 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19227       binding_prereqs_failed=1
19228     fi
19229     if test "x$OCAMLOPT" = x ; then
19230       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19231 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19232           fi
19233     if test "x$with_ocaml_libdir" != xauto ; then
19234       OCAML_LIBDIR=$with_ocaml_libdir
19235
19236     else
19237       ocaml_stdlib="`"$OCAMLC" -where`"
19238       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19239       then
19240         # ocaml stdlib is beneath our prefix; use stdlib
19241         OCAML_LIBDIR=$ocaml_stdlib
19242
19243       else
19244         # ocaml stdlib is outside our prefix; use libdir/ocaml
19245         OCAML_LIBDIR=${prefix}/lib/ocaml
19246
19247       fi
19248     fi
19249     ;;
19250   esac
19251 done
19252 if test "$binding_prereqs_failed" = 1 ; then
19253   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19254 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19255    { (exit 1); exit 1; }; }
19256 fi
19257
19258 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19259 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19260 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19261   echo $ECHO_N "(cached) $ECHO_C" >&6
19262 else
19263    ac_ext=cpp
19264 ac_cpp='$CXXCPP $CPPFLAGS'
19265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19268
19269   oldcxxflags="$CXXFLAGS"
19270   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
19271   cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h.  */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h.  */
19277 template <typename T> struct X { void __attribute__((noinline)) f() {} };
19278 int
19279 main ()
19280 {
19281 X<int>().f();
19282   ;
19283   return 0;
19284 }
19285 _ACEOF
19286 rm -f conftest.$ac_objext
19287 if { (ac_try="$ac_compile"
19288 case "(($ac_try" in
19289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290   *) ac_try_echo=$ac_try;;
19291 esac
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293   (eval "$ac_compile") 2>conftest.er1
19294   ac_status=$?
19295   grep -v '^ *+' conftest.er1 >conftest.err
19296   rm -f conftest.er1
19297   cat conftest.err >&5
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); } &&
19300          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19301   { (case "(($ac_try" in
19302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303   *) ac_try_echo=$ac_try;;
19304 esac
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306   (eval "$ac_try") 2>&5
19307   ac_status=$?
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); }; } &&
19310          { ac_try='test -s conftest.$ac_objext'
19311   { (case "(($ac_try" in
19312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313   *) ac_try_echo=$ac_try;;
19314 esac
19315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316   (eval "$ac_try") 2>&5
19317   ac_status=$?
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); }; }; then
19320   llvm_cv_cxx_visibility_inlines_hidden=yes
19321 else
19322   echo "$as_me: failed program was:" >&5
19323 sed 's/^/| /' conftest.$ac_ext >&5
19324
19325         llvm_cv_cxx_visibility_inlines_hidden=no
19326 fi
19327
19328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19329   CXXFLAGS="$oldcxxflags"
19330   ac_ext=c
19331 ac_cpp='$CPP $CPPFLAGS'
19332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19335
19336
19337 fi
19338 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19339 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19340 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19341   ENABLE_VISIBILITY_INLINES_HIDDEN=1
19342
19343 else
19344   ENABLE_VISIBILITY_INLINES_HIDDEN=0
19345
19346 fi
19347
19348
19349 if test "$llvm_cv_link_use_r" = "yes" ; then
19350   RPATH="-Wl,-R"
19351 else
19352   RPATH="-Wl,-rpath"
19353 fi
19354
19355
19356 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19357   RDYNAMIC="-rdynamic"
19358 else
19359   RDYNAMIC=""
19360 fi
19361
19362
19363
19364 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
19365
19366
19367
19368
19369
19370
19371 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19372
19373 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19374
19375 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19376
19377 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19378
19379 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
19380
19381
19382 ac_config_files="$ac_config_files Makefile.config"
19383
19384
19385 ac_config_files="$ac_config_files llvm.spec"
19386
19387
19388 ac_config_files="$ac_config_files docs/doxygen.cfg"
19389
19390
19391 if test "${clang_src_root}" = ""; then
19392   clang_src_root="$srcdir/tools/clang"
19393 fi
19394 if test -f ${clang_src_root}/README.txt; then
19395     configh="include/clang/Config/config.h"
19396   doxy="docs/doxygen.cfg"
19397   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
19398
19399   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
19400
19401 fi
19402
19403 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
19404
19405
19406 test "x$program_prefix" = "xNONE" && program_prefix=""
19407
19408
19409
19410 ac_config_commands="$ac_config_commands setup"
19411
19412 ac_config_commands="$ac_config_commands Makefile"
19413
19414
19415 ac_config_commands="$ac_config_commands Makefile.common"
19416
19417
19418 ac_config_commands="$ac_config_commands examples/Makefile"
19419
19420
19421 ac_config_commands="$ac_config_commands lib/Makefile"
19422
19423
19424 ac_config_commands="$ac_config_commands test/Makefile"
19425
19426
19427 ac_config_commands="$ac_config_commands test/Makefile.tests"
19428
19429
19430 ac_config_commands="$ac_config_commands unittests/Makefile"
19431
19432
19433 ac_config_commands="$ac_config_commands tools/Makefile"
19434
19435
19436 ac_config_commands="$ac_config_commands utils/Makefile"
19437
19438
19439 ac_config_commands="$ac_config_commands projects/Makefile"
19440
19441
19442 ac_config_commands="$ac_config_commands bindings/Makefile"
19443
19444
19445 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19446
19447
19448
19449 cat >confcache <<\_ACEOF
19450 # This file is a shell script that caches the results of configure
19451 # tests run on this system so they can be shared between configure
19452 # scripts and configure runs, see configure's option --config-cache.
19453 # It is not useful on other systems.  If it contains results you don't
19454 # want to keep, you may remove or edit it.
19455 #
19456 # config.status only pays attention to the cache file if you give it
19457 # the --recheck option to rerun configure.
19458 #
19459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19461 # following values.
19462
19463 _ACEOF
19464
19465 # The following way of writing the cache mishandles newlines in values,
19466 # but we know of no workaround that is simple, portable, and efficient.
19467 # So, we kill variables containing newlines.
19468 # Ultrix sh set writes to stderr and can't be redirected directly,
19469 # and sets the high bit in the cache file unless we assign to the vars.
19470 (
19471   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19472     eval ac_val=\$$ac_var
19473     case $ac_val in #(
19474     *${as_nl}*)
19475       case $ac_var in #(
19476       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19477 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19478       esac
19479       case $ac_var in #(
19480       _ | IFS | as_nl) ;; #(
19481       *) $as_unset $ac_var ;;
19482       esac ;;
19483     esac
19484   done
19485
19486   (set) 2>&1 |
19487     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19488     *${as_nl}ac_space=\ *)
19489       # `set' does not quote correctly, so add quotes (double-quote
19490       # substitution turns \\\\ into \\, and sed turns \\ into \).
19491       sed -n \
19492         "s/'/'\\\\''/g;
19493           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19494       ;; #(
19495     *)
19496       # `set' quotes correctly as required by POSIX, so do not add quotes.
19497       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19498       ;;
19499     esac |
19500     sort
19501 ) |
19502   sed '
19503      /^ac_cv_env_/b end
19504      t clear
19505      :clear
19506      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19507      t end
19508      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19509      :end' >>confcache
19510 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19511   if test -w "$cache_file"; then
19512     test "x$cache_file" != "x/dev/null" &&
19513       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19514 echo "$as_me: updating cache $cache_file" >&6;}
19515     cat confcache >$cache_file
19516   else
19517     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19518 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19519   fi
19520 fi
19521 rm -f confcache
19522
19523 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19524 # Let make expand exec_prefix.
19525 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19526
19527 DEFS=-DHAVE_CONFIG_H
19528
19529 ac_libobjs=
19530 ac_ltlibobjs=
19531 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19532   # 1. Remove the extension, and $U if already installed.
19533   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19534   ac_i=`echo "$ac_i" | sed "$ac_script"`
19535   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19536   #    will be set to the directory where LIBOBJS objects are built.
19537   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19538   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19539 done
19540 LIBOBJS=$ac_libobjs
19541
19542 LTLIBOBJS=$ac_ltlibobjs
19543
19544
19545
19546 : ${CONFIG_STATUS=./config.status}
19547 ac_clean_files_save=$ac_clean_files
19548 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19549 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19550 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19551 cat >$CONFIG_STATUS <<_ACEOF
19552 #! $SHELL
19553 # Generated by $as_me.
19554 # Run this file to recreate the current configuration.
19555 # Compiler output produced by configure, useful for debugging
19556 # configure, is in config.log if it exists.
19557
19558 debug=false
19559 ac_cs_recheck=false
19560 ac_cs_silent=false
19561 SHELL=\${CONFIG_SHELL-$SHELL}
19562 _ACEOF
19563
19564 cat >>$CONFIG_STATUS <<\_ACEOF
19565 ## --------------------- ##
19566 ## M4sh Initialization.  ##
19567 ## --------------------- ##
19568
19569 # Be Bourne compatible
19570 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19571   emulate sh
19572   NULLCMD=:
19573   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19574   # is contrary to our usage.  Disable this feature.
19575   alias -g '${1+"$@"}'='"$@"'
19576   setopt NO_GLOB_SUBST
19577 else
19578   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
19579 fi
19580 BIN_SH=xpg4; export BIN_SH # for Tru64
19581 DUALCASE=1; export DUALCASE # for MKS sh
19582
19583
19584 # PATH needs CR
19585 # Avoid depending upon Character Ranges.
19586 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19587 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19588 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19589 as_cr_digits='0123456789'
19590 as_cr_alnum=$as_cr_Letters$as_cr_digits
19591
19592 # The user is always right.
19593 if test "${PATH_SEPARATOR+set}" != set; then
19594   echo "#! /bin/sh" >conf$$.sh
19595   echo  "exit 0"   >>conf$$.sh
19596   chmod +x conf$$.sh
19597   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19598     PATH_SEPARATOR=';'
19599   else
19600     PATH_SEPARATOR=:
19601   fi
19602   rm -f conf$$.sh
19603 fi
19604
19605 # Support unset when possible.
19606 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19607   as_unset=unset
19608 else
19609   as_unset=false
19610 fi
19611
19612
19613 # IFS
19614 # We need space, tab and new line, in precisely that order.  Quoting is
19615 # there to prevent editors from complaining about space-tab.
19616 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19617 # splitting by setting IFS to empty value.)
19618 as_nl='
19619 '
19620 IFS=" ""        $as_nl"
19621
19622 # Find who we are.  Look in the path if we contain no directory separator.
19623 case $0 in
19624   *[\\/]* ) as_myself=$0 ;;
19625   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19626 for as_dir in $PATH
19627 do
19628   IFS=$as_save_IFS
19629   test -z "$as_dir" && as_dir=.
19630   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19631 done
19632 IFS=$as_save_IFS
19633
19634      ;;
19635 esac
19636 # We did not find ourselves, most probably we were run as `sh COMMAND'
19637 # in which case we are not to be found in the path.
19638 if test "x$as_myself" = x; then
19639   as_myself=$0
19640 fi
19641 if test ! -f "$as_myself"; then
19642   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19643   { (exit 1); exit 1; }
19644 fi
19645
19646 # Work around bugs in pre-3.0 UWIN ksh.
19647 for as_var in ENV MAIL MAILPATH
19648 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19649 done
19650 PS1='$ '
19651 PS2='> '
19652 PS4='+ '
19653
19654 # NLS nuisances.
19655 for as_var in \
19656   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19657   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19658   LC_TELEPHONE LC_TIME
19659 do
19660   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19661     eval $as_var=C; export $as_var
19662   else
19663     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19664   fi
19665 done
19666
19667 # Required to use basename.
19668 if expr a : '\(a\)' >/dev/null 2>&1 &&
19669    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19670   as_expr=expr
19671 else
19672   as_expr=false
19673 fi
19674
19675 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19676   as_basename=basename
19677 else
19678   as_basename=false
19679 fi
19680
19681
19682 # Name of the executable.
19683 as_me=`$as_basename -- "$0" ||
19684 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19685          X"$0" : 'X\(//\)$' \| \
19686          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19687 echo X/"$0" |
19688     sed '/^.*\/\([^/][^/]*\)\/*$/{
19689             s//\1/
19690             q
19691           }
19692           /^X\/\(\/\/\)$/{
19693             s//\1/
19694             q
19695           }
19696           /^X\/\(\/\).*/{
19697             s//\1/
19698             q
19699           }
19700           s/.*/./; q'`
19701
19702 # CDPATH.
19703 $as_unset CDPATH
19704
19705
19706
19707   as_lineno_1=$LINENO
19708   as_lineno_2=$LINENO
19709   test "x$as_lineno_1" != "x$as_lineno_2" &&
19710   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19711
19712   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19713   # uniformly replaced by the line number.  The first 'sed' inserts a
19714   # line-number line after each line using $LINENO; the second 'sed'
19715   # does the real work.  The second script uses 'N' to pair each
19716   # line-number line with the line containing $LINENO, and appends
19717   # trailing '-' during substitution so that $LINENO is not a special
19718   # case at line end.
19719   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19720   # scripts with optimization help from Paolo Bonzini.  Blame Lee
19721   # E. McMahon (1931-1989) for sed's syntax.  :-)
19722   sed -n '
19723     p
19724     /[$]LINENO/=
19725   ' <$as_myself |
19726     sed '
19727       s/[$]LINENO.*/&-/
19728       t lineno
19729       b
19730       :lineno
19731       N
19732       :loop
19733       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19734       t loop
19735       s/-\n.*//
19736     ' >$as_me.lineno &&
19737   chmod +x "$as_me.lineno" ||
19738     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19739    { (exit 1); exit 1; }; }
19740
19741   # Don't try to exec as it changes $[0], causing all sort of problems
19742   # (the dirname of $[0] is not the place where we might find the
19743   # original and so on.  Autoconf is especially sensitive to this).
19744   . "./$as_me.lineno"
19745   # Exit status is that of the last command.
19746   exit
19747 }
19748
19749
19750 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19751   as_dirname=dirname
19752 else
19753   as_dirname=false
19754 fi
19755
19756 ECHO_C= ECHO_N= ECHO_T=
19757 case `echo -n x` in
19758 -n*)
19759   case `echo 'x\c'` in
19760   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19761   *)   ECHO_C='\c';;
19762   esac;;
19763 *)
19764   ECHO_N='-n';;
19765 esac
19766
19767 if expr a : '\(a\)' >/dev/null 2>&1 &&
19768    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19769   as_expr=expr
19770 else
19771   as_expr=false
19772 fi
19773
19774 rm -f conf$$ conf$$.exe conf$$.file
19775 if test -d conf$$.dir; then
19776   rm -f conf$$.dir/conf$$.file
19777 else
19778   rm -f conf$$.dir
19779   mkdir conf$$.dir
19780 fi
19781 echo >conf$$.file
19782 if ln -s conf$$.file conf$$ 2>/dev/null; then
19783   as_ln_s='ln -s'
19784   # ... but there are two gotchas:
19785   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19786   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19787   # In both cases, we have to default to `cp -p'.
19788   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19789     as_ln_s='cp -p'
19790 elif ln conf$$.file conf$$ 2>/dev/null; then
19791   as_ln_s=ln
19792 else
19793   as_ln_s='cp -p'
19794 fi
19795 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19796 rmdir conf$$.dir 2>/dev/null
19797
19798 if mkdir -p . 2>/dev/null; then
19799   as_mkdir_p=:
19800 else
19801   test -d ./-p && rmdir ./-p
19802   as_mkdir_p=false
19803 fi
19804
19805 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
19806 # systems may use methods other than mode bits to determine executability.
19807 cat >conf$$.file <<_ASEOF
19808 #! /bin/sh
19809 exit 0
19810 _ASEOF
19811 chmod +x conf$$.file
19812 if test -x conf$$.file >/dev/null 2>&1; then
19813   as_executable_p="test -x"
19814 else
19815   as_executable_p=:
19816 fi
19817 rm -f conf$$.file
19818
19819 # Sed expression to map a string onto a valid CPP name.
19820 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19821
19822 # Sed expression to map a string onto a valid variable name.
19823 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19824
19825
19826 exec 6>&1
19827
19828 # Save the log message, to keep $[0] and so on meaningful, and to
19829 # report actual input values of CONFIG_FILES etc. instead of their
19830 # values after options handling.
19831 ac_log="
19832 This file was extended by LLVM $as_me 3.5svn, which was
19833 generated by GNU Autoconf 2.60.  Invocation command line was
19834
19835   CONFIG_FILES    = $CONFIG_FILES
19836   CONFIG_HEADERS  = $CONFIG_HEADERS
19837   CONFIG_LINKS    = $CONFIG_LINKS
19838   CONFIG_COMMANDS = $CONFIG_COMMANDS
19839   $ $0 $@
19840
19841 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19842 "
19843
19844 _ACEOF
19845
19846 cat >>$CONFIG_STATUS <<_ACEOF
19847 # Files that config.status was made for.
19848 config_files="$ac_config_files"
19849 config_headers="$ac_config_headers"
19850 config_commands="$ac_config_commands"
19851
19852 _ACEOF
19853
19854 cat >>$CONFIG_STATUS <<\_ACEOF
19855 ac_cs_usage="\
19856 \`$as_me' instantiates files from templates according to the
19857 current configuration.
19858
19859 Usage: $0 [OPTIONS] [FILE]...
19860
19861   -h, --help       print this help, then exit
19862   -V, --version    print version number, then exit
19863   -q, --quiet      do not print progress messages
19864   -d, --debug      don't remove temporary files
19865       --recheck    update $as_me by reconfiguring in the same conditions
19866   --file=FILE[:TEMPLATE]
19867                    instantiate the configuration file FILE
19868   --header=FILE[:TEMPLATE]
19869                    instantiate the configuration header FILE
19870
19871 Configuration files:
19872 $config_files
19873
19874 Configuration headers:
19875 $config_headers
19876
19877 Configuration commands:
19878 $config_commands
19879
19880 Report bugs to <bug-autoconf@gnu.org>."
19881
19882 _ACEOF
19883 cat >>$CONFIG_STATUS <<_ACEOF
19884 ac_cs_version="\\
19885 LLVM config.status 3.5svn
19886 configured by $0, generated by GNU Autoconf 2.60,
19887   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19888
19889 Copyright (C) 2006 Free Software Foundation, Inc.
19890 This config.status script is free software; the Free Software Foundation
19891 gives unlimited permission to copy, distribute and modify it."
19892
19893 ac_pwd='$ac_pwd'
19894 srcdir='$srcdir'
19895 INSTALL='$INSTALL'
19896 _ACEOF
19897
19898 cat >>$CONFIG_STATUS <<\_ACEOF
19899 # If no file are specified by the user, then we need to provide default
19900 # value.  By we need to know if files were specified by the user.
19901 ac_need_defaults=:
19902 while test $# != 0
19903 do
19904   case $1 in
19905   --*=*)
19906     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19907     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19908     ac_shift=:
19909     ;;
19910   *)
19911     ac_option=$1
19912     ac_optarg=$2
19913     ac_shift=shift
19914     ;;
19915   esac
19916
19917   case $ac_option in
19918   # Handling of the options.
19919   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19920     ac_cs_recheck=: ;;
19921   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19922     echo "$ac_cs_version"; exit ;;
19923   --debug | --debu | --deb | --de | --d | -d )
19924     debug=: ;;
19925   --file | --fil | --fi | --f )
19926     $ac_shift
19927     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19928     ac_need_defaults=false;;
19929   --header | --heade | --head | --hea )
19930     $ac_shift
19931     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19932     ac_need_defaults=false;;
19933   --he | --h)
19934     # Conflict between --help and --header
19935     { echo "$as_me: error: ambiguous option: $1
19936 Try \`$0 --help' for more information." >&2
19937    { (exit 1); exit 1; }; };;
19938   --help | --hel | -h )
19939     echo "$ac_cs_usage"; exit ;;
19940   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19941   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19942     ac_cs_silent=: ;;
19943
19944   # This is an error.
19945   -*) { echo "$as_me: error: unrecognized option: $1
19946 Try \`$0 --help' for more information." >&2
19947    { (exit 1); exit 1; }; } ;;
19948
19949   *) ac_config_targets="$ac_config_targets $1"
19950      ac_need_defaults=false ;;
19951
19952   esac
19953   shift
19954 done
19955
19956 ac_configure_extra_args=
19957
19958 if $ac_cs_silent; then
19959   exec 6>/dev/null
19960   ac_configure_extra_args="$ac_configure_extra_args --silent"
19961 fi
19962
19963 _ACEOF
19964 cat >>$CONFIG_STATUS <<_ACEOF
19965 if \$ac_cs_recheck; then
19966   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19967   CONFIG_SHELL=$SHELL
19968   export CONFIG_SHELL
19969   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19970 fi
19971
19972 _ACEOF
19973 cat >>$CONFIG_STATUS <<\_ACEOF
19974 exec 5>>config.log
19975 {
19976   echo
19977   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19978 ## Running $as_me. ##
19979 _ASBOX
19980   echo "$ac_log"
19981 } >&5
19982
19983 _ACEOF
19984 cat >>$CONFIG_STATUS <<_ACEOF
19985 #
19986 # INIT-COMMANDS
19987 #
19988 llvm_src="${srcdir}"
19989
19990 _ACEOF
19991
19992 cat >>$CONFIG_STATUS <<\_ACEOF
19993
19994 # Handling of arguments.
19995 for ac_config_target in $ac_config_targets
19996 do
19997   case $ac_config_target in
19998     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19999     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
20000     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20001     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20002     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20003     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20004     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
20005     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20006     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20007     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20008     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
20009     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
20010     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
20011     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20012     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20013     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20014     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20015     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20016     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20017     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20018     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20019     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20020     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20021     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20022     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20023     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20024
20025   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20026 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20027    { (exit 1); exit 1; }; };;
20028   esac
20029 done
20030
20031
20032 # If the user did not use the arguments to specify the items to instantiate,
20033 # then the envvar interface is used.  Set only those that are not.
20034 # We use the long form for the default assignment because of an extremely
20035 # bizarre bug on SunOS 4.1.3.
20036 if $ac_need_defaults; then
20037   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20038   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20039   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20040 fi
20041
20042 # Have a temporary directory for convenience.  Make it in the build tree
20043 # simply because there is no reason against having it here, and in addition,
20044 # creating and moving files from /tmp can sometimes cause problems.
20045 # Hook for its removal unless debugging.
20046 # Note that there is a small window in which the directory will not be cleaned:
20047 # after its creation but before its name has been assigned to `$tmp'.
20048 $debug ||
20049 {
20050   tmp=
20051   trap 'exit_status=$?
20052   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20053 ' 0
20054   trap '{ (exit 1); exit 1; }' 1 2 13 15
20055 }
20056 # Create a (secure) tmp directory for tmp files.
20057
20058 {
20059   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20060   test -n "$tmp" && test -d "$tmp"
20061 }  ||
20062 {
20063   tmp=./conf$$-$RANDOM
20064   (umask 077 && mkdir "$tmp")
20065 } ||
20066 {
20067    echo "$me: cannot create a temporary directory in ." >&2
20068    { (exit 1); exit 1; }
20069 }
20070
20071 #
20072 # Set up the sed scripts for CONFIG_FILES section.
20073 #
20074
20075 # No need to generate the scripts if there are no CONFIG_FILES.
20076 # This happens for instance when ./config.status config.h
20077 if test -n "$CONFIG_FILES"; then
20078
20079 _ACEOF
20080
20081
20082
20083 ac_delim='%!_!# '
20084 for ac_last_try in false false false false false :; do
20085   cat >conf$$subs.sed <<_ACEOF
20086 SHELL!$SHELL$ac_delim
20087 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20088 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20089 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20090 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20091 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20092 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20093 exec_prefix!$exec_prefix$ac_delim
20094 prefix!$prefix$ac_delim
20095 program_transform_name!$program_transform_name$ac_delim
20096 bindir!$bindir$ac_delim
20097 sbindir!$sbindir$ac_delim
20098 libexecdir!$libexecdir$ac_delim
20099 datarootdir!$datarootdir$ac_delim
20100 datadir!$datadir$ac_delim
20101 sysconfdir!$sysconfdir$ac_delim
20102 sharedstatedir!$sharedstatedir$ac_delim
20103 localstatedir!$localstatedir$ac_delim
20104 includedir!$includedir$ac_delim
20105 oldincludedir!$oldincludedir$ac_delim
20106 docdir!$docdir$ac_delim
20107 infodir!$infodir$ac_delim
20108 htmldir!$htmldir$ac_delim
20109 dvidir!$dvidir$ac_delim
20110 pdfdir!$pdfdir$ac_delim
20111 psdir!$psdir$ac_delim
20112 libdir!$libdir$ac_delim
20113 localedir!$localedir$ac_delim
20114 mandir!$mandir$ac_delim
20115 DEFS!$DEFS$ac_delim
20116 ECHO_C!$ECHO_C$ac_delim
20117 ECHO_N!$ECHO_N$ac_delim
20118 ECHO_T!$ECHO_T$ac_delim
20119 LIBS!$LIBS$ac_delim
20120 build_alias!$build_alias$ac_delim
20121 host_alias!$host_alias$ac_delim
20122 target_alias!$target_alias$ac_delim
20123 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
20124 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
20125 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20126 CC!$CC$ac_delim
20127 CFLAGS!$CFLAGS$ac_delim
20128 LDFLAGS!$LDFLAGS$ac_delim
20129 CPPFLAGS!$CPPFLAGS$ac_delim
20130 ac_ct_CC!$ac_ct_CC$ac_delim
20131 EXEEXT!$EXEEXT$ac_delim
20132 OBJEXT!$OBJEXT$ac_delim
20133 CXX!$CXX$ac_delim
20134 CXXFLAGS!$CXXFLAGS$ac_delim
20135 ac_ct_CXX!$ac_ct_CXX$ac_delim
20136 CPP!$CPP$ac_delim
20137 subdirs!$subdirs$ac_delim
20138 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
20139 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
20140 build!$build$ac_delim
20141 build_cpu!$build_cpu$ac_delim
20142 build_vendor!$build_vendor$ac_delim
20143 build_os!$build_os$ac_delim
20144 host!$host$ac_delim
20145 host_cpu!$host_cpu$ac_delim
20146 host_vendor!$host_vendor$ac_delim
20147 host_os!$host_os$ac_delim
20148 target!$target$ac_delim
20149 target_cpu!$target_cpu$ac_delim
20150 target_vendor!$target_vendor$ac_delim
20151 target_os!$target_os$ac_delim
20152 OS!$OS$ac_delim
20153 HOST_OS!$HOST_OS$ac_delim
20154 TARGET_OS!$TARGET_OS$ac_delim
20155 LINKALL!$LINKALL$ac_delim
20156 NOLINKALL!$NOLINKALL$ac_delim
20157 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20158 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20159 ARCH!$ARCH$ac_delim
20160 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
20161 HOST_ARCH!$HOST_ARCH$ac_delim
20162 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20163 BUILD_CC!$BUILD_CC$ac_delim
20164 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20165 BUILD_CXX!$BUILD_CXX$ac_delim
20166 CVSBUILD!$CVSBUILD$ac_delim
20167 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
20168 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
20169 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
20170 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
20171 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
20172 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
20173 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20174 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20175 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20176 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
20177 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20178 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20179 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20180 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20181 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
20182 JIT!$JIT$ac_delim
20183 _ACEOF
20184
20185   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20186     break
20187   elif $ac_last_try; then
20188     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20189 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20190    { (exit 1); exit 1; }; }
20191   else
20192     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20193   fi
20194 done
20195
20196 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20197 if test -n "$ac_eof"; then
20198   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20199   ac_eof=`expr $ac_eof + 1`
20200 fi
20201
20202 cat >>$CONFIG_STATUS <<_ACEOF
20203 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20205 _ACEOF
20206 sed '
20207 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20208 s/^/s,@/; s/!/@,|#_!!_#|/
20209 :n
20210 t n
20211 s/'"$ac_delim"'$/,g/; t
20212 s/$/\\/; p
20213 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20214 ' >>$CONFIG_STATUS <conf$$subs.sed
20215 rm -f conf$$subs.sed
20216 cat >>$CONFIG_STATUS <<_ACEOF
20217 CEOF$ac_eof
20218 _ACEOF
20219
20220
20221 ac_delim='%!_!# '
20222 for ac_last_try in false false false false false :; do
20223   cat >conf$$subs.sed <<_ACEOF
20224 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20225 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
20226 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
20227 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20228 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
20229 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
20230 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
20231 ENABLE_PIC!$ENABLE_PIC$ac_delim
20232 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20233 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
20234 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
20235 ALL_TARGETS!$ALL_TARGETS$ac_delim
20236 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20237 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20238 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20239 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20240 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20241 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20242 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20243 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
20244 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
20245 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20246 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
20247 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
20248 ifGNUmake!$ifGNUmake$ac_delim
20249 LN_S!$LN_S$ac_delim
20250 NM!$NM$ac_delim
20251 CMP!$CMP$ac_delim
20252 CP!$CP$ac_delim
20253 DATE!$DATE$ac_delim
20254 FIND!$FIND$ac_delim
20255 GREP!$GREP$ac_delim
20256 MKDIR!$MKDIR$ac_delim
20257 MV!$MV$ac_delim
20258 RANLIB!$RANLIB$ac_delim
20259 AR!$AR$ac_delim
20260 RM!$RM$ac_delim
20261 SED!$SED$ac_delim
20262 TAR!$TAR$ac_delim
20263 BINPWD!$BINPWD$ac_delim
20264 GRAPHVIZ!$GRAPHVIZ$ac_delim
20265 DOT!$DOT$ac_delim
20266 FDP!$FDP$ac_delim
20267 NEATO!$NEATO$ac_delim
20268 TWOPI!$TWOPI$ac_delim
20269 CIRCO!$CIRCO$ac_delim
20270 GV!$GV$ac_delim
20271 DOTTY!$DOTTY$ac_delim
20272 XDOT!$XDOT$ac_delim
20273 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20274 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20275 INSTALL_DATA!$INSTALL_DATA$ac_delim
20276 BZIP2!$BZIP2$ac_delim
20277 CAT!$CAT$ac_delim
20278 DOXYGEN!$DOXYGEN$ac_delim
20279 GROFF!$GROFF$ac_delim
20280 GZIPBIN!$GZIPBIN$ac_delim
20281 PDFROFF!$PDFROFF$ac_delim
20282 ZIP!$ZIP$ac_delim
20283 OCAMLC!$OCAMLC$ac_delim
20284 OCAMLOPT!$OCAMLOPT$ac_delim
20285 OCAMLDEP!$OCAMLDEP$ac_delim
20286 OCAMLDOC!$OCAMLDOC$ac_delim
20287 GAS!$GAS$ac_delim
20288 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
20289 EGREP!$EGREP$ac_delim
20290 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20291 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20292 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
20293 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
20294 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
20295 PYTHON!$PYTHON$ac_delim
20296 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
20297 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
20298 USE_UDIS86!$USE_UDIS86$ac_delim
20299 USE_OPROFILE!$USE_OPROFILE$ac_delim
20300 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
20301 XML2CONFIG!$XML2CONFIG$ac_delim
20302 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
20303 LIBXML2_INC!$LIBXML2_INC$ac_delim
20304 CXXCPP!$CXXCPP$ac_delim
20305 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20306 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
20307 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20308 MMAP_FILE!$MMAP_FILE$ac_delim
20309 SHLIBEXT!$SHLIBEXT$ac_delim
20310 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20311 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20312 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20313 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20314 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20315 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20316 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20317 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20318 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20319 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20320 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20321 _ACEOF
20322
20323   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20324     break
20325   elif $ac_last_try; then
20326     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20327 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20328    { (exit 1); exit 1; }; }
20329   else
20330     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20331   fi
20332 done
20333
20334 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20335 if test -n "$ac_eof"; then
20336   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20337   ac_eof=`expr $ac_eof + 1`
20338 fi
20339
20340 cat >>$CONFIG_STATUS <<_ACEOF
20341 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20343 _ACEOF
20344 sed '
20345 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20346 s/^/s,@/; s/!/@,|#_!!_#|/
20347 :n
20348 t n
20349 s/'"$ac_delim"'$/,g/; t
20350 s/$/\\/; p
20351 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20352 ' >>$CONFIG_STATUS <conf$$subs.sed
20353 rm -f conf$$subs.sed
20354 cat >>$CONFIG_STATUS <<_ACEOF
20355 CEOF$ac_eof
20356 _ACEOF
20357
20358
20359 ac_delim='%!_!# '
20360 for ac_last_try in false false false false false :; do
20361   cat >conf$$subs.sed <<_ACEOF
20362 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20363 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20364 RPATH!$RPATH$ac_delim
20365 RDYNAMIC!$RDYNAMIC$ac_delim
20366 program_prefix!$program_prefix$ac_delim
20367 LIBOBJS!$LIBOBJS$ac_delim
20368 LTLIBOBJS!$LTLIBOBJS$ac_delim
20369 _ACEOF
20370
20371   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
20372     break
20373   elif $ac_last_try; then
20374     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20375 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20376    { (exit 1); exit 1; }; }
20377   else
20378     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20379   fi
20380 done
20381
20382 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20383 if test -n "$ac_eof"; then
20384   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20385   ac_eof=`expr $ac_eof + 1`
20386 fi
20387
20388 cat >>$CONFIG_STATUS <<_ACEOF
20389 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
20390 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20391 _ACEOF
20392 sed '
20393 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20394 s/^/s,@/; s/!/@,|#_!!_#|/
20395 :n
20396 t n
20397 s/'"$ac_delim"'$/,g/; t
20398 s/$/\\/; p
20399 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20400 ' >>$CONFIG_STATUS <conf$$subs.sed
20401 rm -f conf$$subs.sed
20402 cat >>$CONFIG_STATUS <<_ACEOF
20403 :end
20404 s/|#_!!_#|//g
20405 CEOF$ac_eof
20406 _ACEOF
20407
20408
20409 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20410 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20411 # trailing colons and then remove the whole line if VPATH becomes empty
20412 # (actually we leave an empty line to preserve line numbers).
20413 if test "x$srcdir" = x.; then
20414   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20415 s/:*\$(srcdir):*/:/
20416 s/:*\${srcdir}:*/:/
20417 s/:*@srcdir@:*/:/
20418 s/^\([^=]*=[     ]*\):*/\1/
20419 s/:*$//
20420 s/^[^=]*=[       ]*$//
20421 }'
20422 fi
20423
20424 cat >>$CONFIG_STATUS <<\_ACEOF
20425 fi # test -n "$CONFIG_FILES"
20426
20427
20428 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20429 do
20430   case $ac_tag in
20431   :[FHLC]) ac_mode=$ac_tag; continue;;
20432   esac
20433   case $ac_mode$ac_tag in
20434   :[FHL]*:*);;
20435   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20436 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20437    { (exit 1); exit 1; }; };;
20438   :[FH]-) ac_tag=-:-;;
20439   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20440   esac
20441   ac_save_IFS=$IFS
20442   IFS=:
20443   set x $ac_tag
20444   IFS=$ac_save_IFS
20445   shift
20446   ac_file=$1
20447   shift
20448
20449   case $ac_mode in
20450   :L) ac_source=$1;;
20451   :[FH])
20452     ac_file_inputs=
20453     for ac_f
20454     do
20455       case $ac_f in
20456       -) ac_f="$tmp/stdin";;
20457       *) # Look for the file first in the build tree, then in the source tree
20458          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20459          # because $ac_f cannot contain `:'.
20460          test -f "$ac_f" ||
20461            case $ac_f in
20462            [\\/$]*) false;;
20463            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20464            esac ||
20465            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20466 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20467    { (exit 1); exit 1; }; };;
20468       esac
20469       ac_file_inputs="$ac_file_inputs $ac_f"
20470     done
20471
20472     # Let's still pretend it is `configure' which instantiates (i.e., don't
20473     # use $as_me), people would be surprised to read:
20474     #    /* config.h.  Generated by config.status.  */
20475     configure_input="Generated from "`IFS=:
20476           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20477     if test x"$ac_file" != x-; then
20478       configure_input="$ac_file.  $configure_input"
20479       { echo "$as_me:$LINENO: creating $ac_file" >&5
20480 echo "$as_me: creating $ac_file" >&6;}
20481     fi
20482
20483     case $ac_tag in
20484     *:-:* | *:-) cat >"$tmp/stdin";;
20485     esac
20486     ;;
20487   esac
20488
20489   ac_dir=`$as_dirname -- "$ac_file" ||
20490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20491          X"$ac_file" : 'X\(//\)[^/]' \| \
20492          X"$ac_file" : 'X\(//\)$' \| \
20493          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20494 echo X"$ac_file" |
20495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20496             s//\1/
20497             q
20498           }
20499           /^X\(\/\/\)[^/].*/{
20500             s//\1/
20501             q
20502           }
20503           /^X\(\/\/\)$/{
20504             s//\1/
20505             q
20506           }
20507           /^X\(\/\).*/{
20508             s//\1/
20509             q
20510           }
20511           s/.*/./; q'`
20512   { as_dir="$ac_dir"
20513   case $as_dir in #(
20514   -*) as_dir=./$as_dir;;
20515   esac
20516   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20517     as_dirs=
20518     while :; do
20519       case $as_dir in #(
20520       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20521       *) as_qdir=$as_dir;;
20522       esac
20523       as_dirs="'$as_qdir' $as_dirs"
20524       as_dir=`$as_dirname -- "$as_dir" ||
20525 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20526          X"$as_dir" : 'X\(//\)[^/]' \| \
20527          X"$as_dir" : 'X\(//\)$' \| \
20528          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20529 echo X"$as_dir" |
20530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20531             s//\1/
20532             q
20533           }
20534           /^X\(\/\/\)[^/].*/{
20535             s//\1/
20536             q
20537           }
20538           /^X\(\/\/\)$/{
20539             s//\1/
20540             q
20541           }
20542           /^X\(\/\).*/{
20543             s//\1/
20544             q
20545           }
20546           s/.*/./; q'`
20547       test -d "$as_dir" && break
20548     done
20549     test -z "$as_dirs" || eval "mkdir $as_dirs"
20550   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20551 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20552    { (exit 1); exit 1; }; }; }
20553   ac_builddir=.
20554
20555 case "$ac_dir" in
20556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20557 *)
20558   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20559   # A ".." for each directory in $ac_dir_suffix.
20560   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20561   case $ac_top_builddir_sub in
20562   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20563   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20564   esac ;;
20565 esac
20566 ac_abs_top_builddir=$ac_pwd
20567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20568 # for backward compatibility:
20569 ac_top_builddir=$ac_top_build_prefix
20570
20571 case $srcdir in
20572   .)  # We are building in place.
20573     ac_srcdir=.
20574     ac_top_srcdir=$ac_top_builddir_sub
20575     ac_abs_top_srcdir=$ac_pwd ;;
20576   [\\/]* | ?:[\\/]* )  # Absolute name.
20577     ac_srcdir=$srcdir$ac_dir_suffix;
20578     ac_top_srcdir=$srcdir
20579     ac_abs_top_srcdir=$srcdir ;;
20580   *) # Relative name.
20581     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20582     ac_top_srcdir=$ac_top_build_prefix$srcdir
20583     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20584 esac
20585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20586
20587
20588   case $ac_mode in
20589   :F)
20590   #
20591   # CONFIG_FILE
20592   #
20593
20594   case $INSTALL in
20595   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20596   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20597   esac
20598 _ACEOF
20599
20600 cat >>$CONFIG_STATUS <<\_ACEOF
20601 # If the template does not know about datarootdir, expand it.
20602 # FIXME: This hack should be removed a few years after 2.60.
20603 ac_datarootdir_hack=; ac_datarootdir_seen=
20604
20605 case `sed -n '/datarootdir/ {
20606   p
20607   q
20608 }
20609 /@datadir@/p
20610 /@docdir@/p
20611 /@infodir@/p
20612 /@localedir@/p
20613 /@mandir@/p
20614 ' $ac_file_inputs` in
20615 *datarootdir*) ac_datarootdir_seen=yes;;
20616 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20617   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20618 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20619 _ACEOF
20620 cat >>$CONFIG_STATUS <<_ACEOF
20621   ac_datarootdir_hack='
20622   s&@datadir@&$datadir&g
20623   s&@docdir@&$docdir&g
20624   s&@infodir@&$infodir&g
20625   s&@localedir@&$localedir&g
20626   s&@mandir@&$mandir&g
20627     s&\\\${datarootdir}&$datarootdir&g' ;;
20628 esac
20629 _ACEOF
20630
20631 # Neutralize VPATH when `$srcdir' = `.'.
20632 # Shell code in configure.ac might set extrasub.
20633 # FIXME: do we really want to maintain this feature?
20634 cat >>$CONFIG_STATUS <<_ACEOF
20635   sed "$ac_vpsub
20636 $extrasub
20637 _ACEOF
20638 cat >>$CONFIG_STATUS <<\_ACEOF
20639 :t
20640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20641 s&@configure_input@&$configure_input&;t t
20642 s&@top_builddir@&$ac_top_builddir_sub&;t t
20643 s&@srcdir@&$ac_srcdir&;t t
20644 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20645 s&@top_srcdir@&$ac_top_srcdir&;t t
20646 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20647 s&@builddir@&$ac_builddir&;t t
20648 s&@abs_builddir@&$ac_abs_builddir&;t t
20649 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20650 s&@INSTALL@&$ac_INSTALL&;t t
20651 $ac_datarootdir_hack
20652 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
20653
20654 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20655   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20656   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20657   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20658 which seems to be undefined.  Please make sure it is defined." >&5
20659 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20660 which seems to be undefined.  Please make sure it is defined." >&2;}
20661
20662   rm -f "$tmp/stdin"
20663   case $ac_file in
20664   -) cat "$tmp/out"; rm -f "$tmp/out";;
20665   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20666   esac
20667  ;;
20668   :H)
20669   #
20670   # CONFIG_HEADER
20671   #
20672 _ACEOF
20673
20674 # Transform confdefs.h into a sed script `conftest.defines', that
20675 # substitutes the proper values into config.h.in to produce config.h.
20676 rm -f conftest.defines conftest.tail
20677 # First, append a space to every undef/define line, to ease matching.
20678 echo 's/$/ /' >conftest.defines
20679 # Then, protect against being on the right side of a sed subst, or in
20680 # an unquoted here document, in config.status.  If some macros were
20681 # called several times there might be several #defines for the same
20682 # symbol, which is useless.  But do not sort them, since the last
20683 # AC_DEFINE must be honored.
20684 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20685 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20686 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20687 # PARAMS is the parameter list in the macro definition--in most cases, it's
20688 # just an empty string.
20689 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
20690 ac_dB='\\)[      (].*,\\1define\\2'
20691 ac_dC=' '
20692 ac_dD=' ,'
20693
20694 uniq confdefs.h |
20695   sed -n '
20696         t rset
20697         :rset
20698         s/^[     ]*#[    ]*define[       ][      ]*//
20699         t ok
20700         d
20701         :ok
20702         s/[\\&,]/\\&/g
20703         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20704         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20705   ' >>conftest.defines
20706
20707 # Remove the space that was appended to ease matching.
20708 # Then replace #undef with comments.  This is necessary, for
20709 # example, in the case of _POSIX_SOURCE, which is predefined and required
20710 # on some systems where configure will not decide to define it.
20711 # (The regexp can be short, since the line contains either #define or #undef.)
20712 echo 's/ $//
20713 s,^[     #]*u.*,/* & */,' >>conftest.defines
20714
20715 # Break up conftest.defines:
20716 ac_max_sed_lines=50
20717
20718 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20719 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20720 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20721 # et cetera.
20722 ac_in='$ac_file_inputs'
20723 ac_out='"$tmp/out1"'
20724 ac_nxt='"$tmp/out2"'
20725
20726 while :
20727 do
20728   # Write a here document:
20729     cat >>$CONFIG_STATUS <<_ACEOF
20730     # First, check the format of the line:
20731     cat >"\$tmp/defines.sed" <<\\CEOF
20732 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
20733 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
20734 b
20735 :def
20736 _ACEOF
20737   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20738   echo 'CEOF
20739     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20740   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20741   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20742   grep . conftest.tail >/dev/null || break
20743   rm -f conftest.defines
20744   mv conftest.tail conftest.defines
20745 done
20746 rm -f conftest.defines conftest.tail
20747
20748 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20749 cat >>$CONFIG_STATUS <<\_ACEOF
20750   if test x"$ac_file" != x-; then
20751     echo "/* $configure_input  */" >"$tmp/config.h"
20752     cat "$ac_result" >>"$tmp/config.h"
20753     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20754       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20755 echo "$as_me: $ac_file is unchanged" >&6;}
20756     else
20757       rm -f $ac_file
20758       mv "$tmp/config.h" $ac_file
20759     fi
20760   else
20761     echo "/* $configure_input  */"
20762     cat "$ac_result"
20763   fi
20764   rm -f "$tmp/out12"
20765  ;;
20766
20767   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20768 echo "$as_me: executing $ac_file commands" >&6;}
20769  ;;
20770   esac
20771
20772
20773   case $ac_file$ac_mode in
20774     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20775    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20776     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20777    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20778     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20779    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20780     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20781    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20782     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20783    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20784     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20785    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20786     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20787    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20788     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20789    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20790     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20791    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20792     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20793    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20794     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20795    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20796     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20797    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20798
20799   esac
20800 done # for ac_tag
20801
20802
20803 { (exit 0); exit 0; }
20804 _ACEOF
20805 chmod +x $CONFIG_STATUS
20806 ac_clean_files=$ac_clean_files_save
20807
20808
20809 # configure is writing to config.log, and then calls config.status.
20810 # config.status does its own redirection, appending to config.log.
20811 # Unfortunately, on DOS this fails, as config.log is still kept open
20812 # by configure, so config.status won't be able to write to it; its
20813 # output is simply discarded.  So we exec the FD to /dev/null,
20814 # effectively closing config.log, so it can be properly (re)opened and
20815 # appended to by config.status.  When coming back to configure, we
20816 # need to make the FD available again.
20817 if test "$no_create" != yes; then
20818   ac_cs_success=:
20819   ac_config_status_args=
20820   test "$silent" = yes &&
20821     ac_config_status_args="$ac_config_status_args --quiet"
20822   exec 5>/dev/null
20823   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20824   exec 5>>config.log
20825   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20826   # would make configure fail if this is the last instruction.
20827   $ac_cs_success || { (exit 1); exit 1; }
20828 fi
20829
20830 #
20831 # CONFIG_SUBDIRS section.
20832 #
20833 if test "$no_recursion" != yes; then
20834
20835   # Remove --cache-file and --srcdir arguments so they do not pile up.
20836   ac_sub_configure_args=
20837   ac_prev=
20838   eval "set x $ac_configure_args"
20839   shift
20840   for ac_arg
20841   do
20842     if test -n "$ac_prev"; then
20843       ac_prev=
20844       continue
20845     fi
20846     case $ac_arg in
20847     -cache-file | --cache-file | --cache-fil | --cache-fi \
20848     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20849       ac_prev=cache_file ;;
20850     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20851     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20852     | --c=*)
20853       ;;
20854     --config-cache | -C)
20855       ;;
20856     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20857       ac_prev=srcdir ;;
20858     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20859       ;;
20860     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20861       ac_prev=prefix ;;
20862     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20863       ;;
20864     *)
20865       case $ac_arg in
20866       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20867       esac
20868       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20869     esac
20870   done
20871
20872   # Always prepend --prefix to ensure using the same prefix
20873   # in subdir configurations.
20874   ac_arg="--prefix=$prefix"
20875   case $ac_arg in
20876   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20877   esac
20878   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20879
20880   ac_popdir=`pwd`
20881   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20882
20883     # Do not complain, so a configure script can configure whichever
20884     # parts of a large source tree are present.
20885     test -d "$srcdir/$ac_dir" || continue
20886
20887     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20888     echo "$as_me:$LINENO: $ac_msg" >&5
20889     echo "$ac_msg" >&6
20890     { as_dir="$ac_dir"
20891   case $as_dir in #(
20892   -*) as_dir=./$as_dir;;
20893   esac
20894   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20895     as_dirs=
20896     while :; do
20897       case $as_dir in #(
20898       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20899       *) as_qdir=$as_dir;;
20900       esac
20901       as_dirs="'$as_qdir' $as_dirs"
20902       as_dir=`$as_dirname -- "$as_dir" ||
20903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20904          X"$as_dir" : 'X\(//\)[^/]' \| \
20905          X"$as_dir" : 'X\(//\)$' \| \
20906          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20907 echo X"$as_dir" |
20908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20909             s//\1/
20910             q
20911           }
20912           /^X\(\/\/\)[^/].*/{
20913             s//\1/
20914             q
20915           }
20916           /^X\(\/\/\)$/{
20917             s//\1/
20918             q
20919           }
20920           /^X\(\/\).*/{
20921             s//\1/
20922             q
20923           }
20924           s/.*/./; q'`
20925       test -d "$as_dir" && break
20926     done
20927     test -z "$as_dirs" || eval "mkdir $as_dirs"
20928   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20929 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20930    { (exit 1); exit 1; }; }; }
20931     ac_builddir=.
20932
20933 case "$ac_dir" in
20934 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20935 *)
20936   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20937   # A ".." for each directory in $ac_dir_suffix.
20938   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20939   case $ac_top_builddir_sub in
20940   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20941   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20942   esac ;;
20943 esac
20944 ac_abs_top_builddir=$ac_pwd
20945 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20946 # for backward compatibility:
20947 ac_top_builddir=$ac_top_build_prefix
20948
20949 case $srcdir in
20950   .)  # We are building in place.
20951     ac_srcdir=.
20952     ac_top_srcdir=$ac_top_builddir_sub
20953     ac_abs_top_srcdir=$ac_pwd ;;
20954   [\\/]* | ?:[\\/]* )  # Absolute name.
20955     ac_srcdir=$srcdir$ac_dir_suffix;
20956     ac_top_srcdir=$srcdir
20957     ac_abs_top_srcdir=$srcdir ;;
20958   *) # Relative name.
20959     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20960     ac_top_srcdir=$ac_top_build_prefix$srcdir
20961     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20962 esac
20963 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20964
20965
20966     cd "$ac_dir"
20967
20968     # Check for guested configure; otherwise get Cygnus style configure.
20969     if test -f "$ac_srcdir/configure.gnu"; then
20970       ac_sub_configure=$ac_srcdir/configure.gnu
20971     elif test -f "$ac_srcdir/configure"; then
20972       ac_sub_configure=$ac_srcdir/configure
20973     elif test -f "$ac_srcdir/configure.in"; then
20974       # This should be Cygnus configure.
20975       ac_sub_configure=$ac_aux_dir/configure
20976     else
20977       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20979       ac_sub_configure=
20980     fi
20981
20982     # The recursion is here.
20983     if test -n "$ac_sub_configure"; then
20984       # Make the cache file name correct relative to the subdirectory.
20985       case $cache_file in
20986       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20987       *) # Relative name.
20988         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20989       esac
20990
20991       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20992 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20993       # The eval makes quoting arguments work.
20994       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20995            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20996         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20997 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20998    { (exit 1); exit 1; }; }
20999     fi
21000
21001     cd "$ac_popdir"
21002   done
21003 fi
21004