[omp] Add a configuration variable for the default OpenMP runtime.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_VERSION_MAJOR
643 LLVM_VERSION_MINOR
644 LLVM_VERSION_PATCH
645 LLVM_VERSION_SUFFIX
646 LLVM_COPYRIGHT
647 CC
648 CFLAGS
649 LDFLAGS
650 CPPFLAGS
651 ac_ct_CC
652 EXEEXT
653 OBJEXT
654 CXX
655 CXXFLAGS
656 ac_ct_CXX
657 CPP
658 subdirs
659 ENABLE_POLLY
660 LLVM_HAS_POLLY
661 build
662 build_cpu
663 build_vendor
664 build_os
665 host
666 host_cpu
667 host_vendor
668 host_os
669 target
670 target_cpu
671 target_vendor
672 target_os
673 OS
674 HOST_OS
675 TARGET_OS
676 LINKALL
677 NOLINKALL
678 LLVM_ON_UNIX
679 LLVM_ON_WIN32
680 ARCH
681 LLVM_NATIVE_ARCH
682 HOST_ARCH
683 LLVM_CROSS_COMPILING
684 BUILD_CC
685 BUILD_EXEEXT
686 BUILD_CXX
687 CVSBUILD
688 ENABLE_LIBCPP
689 ENABLE_CXX1Y
690 ENABLE_SPLIT_DWARF
691 ENABLE_CLANG_ARCMT
692 CLANG_PLUGIN_SUPPORT
693 ENABLE_CLANG_STATIC_ANALYZER
694 ENABLE_OPTIMIZED
695 ENABLE_PROFILING
696 DISABLE_ASSERTIONS
697 ENABLE_WERROR
698 ENABLE_EXPENSIVE_CHECKS
699 EXPENSIVE_CHECKS
700 ENABLE_ABI_BREAKING_CHECKS
701 DEBUG_RUNTIME
702 DEBUG_SYMBOLS
703 KEEP_SYMBOLS
704 JIT
705 TARGET_HAS_JIT
706 TARGETS_WITH_JIT
707 ENABLE_DOCS
708 ENABLE_DOXYGEN
709 enable_searchengine
710 enable_external_search
711 enable_server_based_search
712 searchengine_url
713 extra_search_mappings
714 QHELPGENERATOR
715 llvm_doxygen_generate_qhp
716 llvm_doxygen_qch_filename
717 llvm_doxygen_qhp_namespace
718 llvm_doxygen_qhelpgenerator_path
719 llvm_doxygen_qhp_cust_filter_name
720 llvm_doxygen_qhp_cust_filter_attrs
721 clang_doxygen_generate_qhp
722 clang_doxygen_qch_filename
723 clang_doxygen_qhp_namespace
724 clang_doxygen_qhelpgenerator_path
725 clang_doxygen_qhp_cust_filter_name
726 clang_doxygen_qhp_cust_filter_attrs
727 LLVM_ENABLE_THREADS
728 ENABLE_PTHREADS
729 LLVM_ENABLE_ZLIB
730 ENABLE_PIC
731 ENABLE_SHARED
732 ENABLE_EMBED_STDCXX
733 ENABLE_TIMESTAMPS
734 ALL_TARGETS
735 TARGETS_TO_BUILD
736 LLVM_ENUM_TARGETS
737 LLVM_ENUM_ASM_PRINTERS
738 LLVM_ENUM_ASM_PARSERS
739 LLVM_ENUM_DISASSEMBLERS
740 OPTIMIZE_OPTION
741 EXTRA_OPTIONS
742 EXTRA_LD_OPTIONS
743 CLANG_SRC_ROOT
744 BINUTILS_INCDIR
745 ENABLE_TERMINFO
746 INTERNAL_PREFIX
747 ifGNUmake
748 LN_S
749 NM
750 CMP
751 CP
752 DATE
753 FIND
754 GREP
755 MKDIR
756 MV
757 RANLIB
758 AR
759 RM
760 SED
761 TAR
762 BINPWD
763 DOT
764 INSTALL_PROGRAM
765 INSTALL_SCRIPT
766 INSTALL_DATA
767 BZIP2
768 CAT
769 DOXYGEN
770 GROFF
771 GZIPBIN
772 PDFROFF
773 ZIP
774 GO
775 OCAMLFIND
776 GAS
777 HAVE_LINK_VERSION_SCRIPT
778 EGREP
779 NO_VARIADIC_MACROS
780 NO_MISSING_FIELD_INITIALIZERS
781 COVERED_SWITCH_DEFAULT
782 NO_MAYBE_UNINITIALIZED
783 NO_UNINITIALIZED
784 NO_COMMENT
785 PYTHON
786 HAVE_DLOPEN
787 HAVE_TERMINFO
788 USE_OPROFILE
789 USE_INTEL_JITEVENTS
790 XML2CONFIG
791 LIBXML2_LIBS
792 LIBXML2_INC
793 HAVE_PTHREAD
794 HAVE_LIBZ
795 HUGE_VAL_SANITY
796 MMAP_FILE
797 SHLIBEXT
798 LLVM_PREFIX
799 LLVM_BINDIR
800 LLVM_DATADIR
801 LLVM_DOCSDIR
802 LLVM_ETCDIR
803 LLVM_INCLUDEDIR
804 LLVM_INFODIR
805 LLVM_MANDIR
806 LLVM_CONFIGTIME
807 BINDINGS_TO_BUILD
808 HAVE_OCAMLOPT
809 HAVE_OCAML_OUNIT
810 OCAML_LIBDIR
811 ENABLE_VISIBILITY_INLINES_HIDDEN
812 RPATH
813 RDYNAMIC
814 program_prefix
815 LIBOBJS
816 LTLIBOBJS'
817 ac_subst_files=''
818       ac_precious_vars='build_alias
819 host_alias
820 target_alias
821 CC
822 CFLAGS
823 LDFLAGS
824 CPPFLAGS
825 CXX
826 CXXFLAGS
827 CCC
828 CPP'
829 ac_subdirs_all='projects/test-suite
830 projects/llvm-test
831 projects/poolalloc
832 projects/llvm-poolalloc
833 projects/safecode
834 tools/polly'
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886   # If the previous option needs an argument, assign it.
887   if test -n "$ac_prev"; then
888     eval $ac_prev=\$ac_option
889     ac_prev=
890     continue
891   fi
892
893   case $ac_option in
894   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895   *)    ac_optarg=yes ;;
896   esac
897
898   # Accept the important Cygnus configure options, so we can diagnose typos.
899
900   case $ac_dashdash$ac_option in
901   --)
902     ac_dashdash=yes ;;
903
904   -bindir | --bindir | --bindi | --bind | --bin | --bi)
905     ac_prev=bindir ;;
906   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907     bindir=$ac_optarg ;;
908
909   -build | --build | --buil | --bui | --bu)
910     ac_prev=build_alias ;;
911   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912     build_alias=$ac_optarg ;;
913
914   -cache-file | --cache-file | --cache-fil | --cache-fi \
915   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916     ac_prev=cache_file ;;
917   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919     cache_file=$ac_optarg ;;
920
921   --config-cache | -C)
922     cache_file=config.cache ;;
923
924   -datadir | --datadir | --datadi | --datad)
925     ac_prev=datadir ;;
926   -datadir=* | --datadir=* | --datadi=* | --datad=*)
927     datadir=$ac_optarg ;;
928
929   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930   | --dataroo | --dataro | --datar)
931     ac_prev=datarootdir ;;
932   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934     datarootdir=$ac_optarg ;;
935
936   -disable-* | --disable-*)
937     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938     # Reject names that are not valid shell variable names.
939     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941    { (exit 1); exit 1; }; }
942     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943     eval enable_$ac_feature=no ;;
944
945   -docdir | --docdir | --docdi | --doc | --do)
946     ac_prev=docdir ;;
947   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948     docdir=$ac_optarg ;;
949
950   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951     ac_prev=dvidir ;;
952   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953     dvidir=$ac_optarg ;;
954
955   -enable-* | --enable-*)
956     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957     # Reject names that are not valid shell variable names.
958     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960    { (exit 1); exit 1; }; }
961     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962     eval enable_$ac_feature=\$ac_optarg ;;
963
964   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966   | --exec | --exe | --ex)
967     ac_prev=exec_prefix ;;
968   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970   | --exec=* | --exe=* | --ex=*)
971     exec_prefix=$ac_optarg ;;
972
973   -gas | --gas | --ga | --g)
974     # Obsolete; use --with-gas.
975     with_gas=yes ;;
976
977   -help | --help | --hel | --he | -h)
978     ac_init_help=long ;;
979   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980     ac_init_help=recursive ;;
981   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982     ac_init_help=short ;;
983
984   -host | --host | --hos | --ho)
985     ac_prev=host_alias ;;
986   -host=* | --host=* | --hos=* | --ho=*)
987     host_alias=$ac_optarg ;;
988
989   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990     ac_prev=htmldir ;;
991   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992   | --ht=*)
993     htmldir=$ac_optarg ;;
994
995   -includedir | --includedir | --includedi | --included | --include \
996   | --includ | --inclu | --incl | --inc)
997     ac_prev=includedir ;;
998   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999   | --includ=* | --inclu=* | --incl=* | --inc=*)
1000     includedir=$ac_optarg ;;
1001
1002   -infodir | --infodir | --infodi | --infod | --info | --inf)
1003     ac_prev=infodir ;;
1004   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005     infodir=$ac_optarg ;;
1006
1007   -libdir | --libdir | --libdi | --libd)
1008     ac_prev=libdir ;;
1009   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010     libdir=$ac_optarg ;;
1011
1012   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013   | --libexe | --libex | --libe)
1014     ac_prev=libexecdir ;;
1015   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016   | --libexe=* | --libex=* | --libe=*)
1017     libexecdir=$ac_optarg ;;
1018
1019   -localedir | --localedir | --localedi | --localed | --locale)
1020     ac_prev=localedir ;;
1021   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022     localedir=$ac_optarg ;;
1023
1024   -localstatedir | --localstatedir | --localstatedi | --localstated \
1025   | --localstate | --localstat | --localsta | --localst | --locals)
1026     ac_prev=localstatedir ;;
1027   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029     localstatedir=$ac_optarg ;;
1030
1031   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032     ac_prev=mandir ;;
1033   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034     mandir=$ac_optarg ;;
1035
1036   -nfp | --nfp | --nf)
1037     # Obsolete; use --without-fp.
1038     with_fp=no ;;
1039
1040   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041   | --no-cr | --no-c | -n)
1042     no_create=yes ;;
1043
1044   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046     no_recursion=yes ;;
1047
1048   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050   | --oldin | --oldi | --old | --ol | --o)
1051     ac_prev=oldincludedir ;;
1052   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055     oldincludedir=$ac_optarg ;;
1056
1057   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058     ac_prev=prefix ;;
1059   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060     prefix=$ac_optarg ;;
1061
1062   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063   | --program-pre | --program-pr | --program-p)
1064     ac_prev=program_prefix ;;
1065   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067     program_prefix=$ac_optarg ;;
1068
1069   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070   | --program-suf | --program-su | --program-s)
1071     ac_prev=program_suffix ;;
1072   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074     program_suffix=$ac_optarg ;;
1075
1076   -program-transform-name | --program-transform-name \
1077   | --program-transform-nam | --program-transform-na \
1078   | --program-transform-n | --program-transform- \
1079   | --program-transform | --program-transfor \
1080   | --program-transfo | --program-transf \
1081   | --program-trans | --program-tran \
1082   | --progr-tra | --program-tr | --program-t)
1083     ac_prev=program_transform_name ;;
1084   -program-transform-name=* | --program-transform-name=* \
1085   | --program-transform-nam=* | --program-transform-na=* \
1086   | --program-transform-n=* | --program-transform-=* \
1087   | --program-transform=* | --program-transfor=* \
1088   | --program-transfo=* | --program-transf=* \
1089   | --program-trans=* | --program-tran=* \
1090   | --progr-tra=* | --program-tr=* | --program-t=*)
1091     program_transform_name=$ac_optarg ;;
1092
1093   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094     ac_prev=pdfdir ;;
1095   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096     pdfdir=$ac_optarg ;;
1097
1098   -psdir | --psdir | --psdi | --psd | --ps)
1099     ac_prev=psdir ;;
1100   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101     psdir=$ac_optarg ;;
1102
1103   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104   | -silent | --silent | --silen | --sile | --sil)
1105     silent=yes ;;
1106
1107   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108     ac_prev=sbindir ;;
1109   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110   | --sbi=* | --sb=*)
1111     sbindir=$ac_optarg ;;
1112
1113   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115   | --sharedst | --shareds | --shared | --share | --shar \
1116   | --sha | --sh)
1117     ac_prev=sharedstatedir ;;
1118   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121   | --sha=* | --sh=*)
1122     sharedstatedir=$ac_optarg ;;
1123
1124   -site | --site | --sit)
1125     ac_prev=site ;;
1126   -site=* | --site=* | --sit=*)
1127     site=$ac_optarg ;;
1128
1129   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130     ac_prev=srcdir ;;
1131   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132     srcdir=$ac_optarg ;;
1133
1134   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135   | --syscon | --sysco | --sysc | --sys | --sy)
1136     ac_prev=sysconfdir ;;
1137   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139     sysconfdir=$ac_optarg ;;
1140
1141   -target | --target | --targe | --targ | --tar | --ta | --t)
1142     ac_prev=target_alias ;;
1143   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144     target_alias=$ac_optarg ;;
1145
1146   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147     verbose=yes ;;
1148
1149   -version | --version | --versio | --versi | --vers | -V)
1150     ac_init_version=: ;;
1151
1152   -with-* | --with-*)
1153     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1160
1161   -without-* | --without-*)
1162     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1165       { echo "$as_me: error: invalid package name: $ac_package" >&2
1166    { (exit 1); exit 1; }; }
1167     ac_package=`echo $ac_package | sed 's/-/_/g'`
1168     eval with_$ac_package=no ;;
1169
1170   --x)
1171     # Obsolete; use --with-x.
1172     with_x=yes ;;
1173
1174   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175   | --x-incl | --x-inc | --x-in | --x-i)
1176     ac_prev=x_includes ;;
1177   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179     x_includes=$ac_optarg ;;
1180
1181   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183     ac_prev=x_libraries ;;
1184   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186     x_libraries=$ac_optarg ;;
1187
1188   -*) { echo "$as_me: error: unrecognized option: $ac_option
1189 Try \`$0 --help' for more information." >&2
1190    { (exit 1); exit 1; }; }
1191     ;;
1192
1193   *=*)
1194     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1197       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1198    { (exit 1); exit 1; }; }
1199     eval $ac_envvar=\$ac_optarg
1200     export $ac_envvar ;;
1201
1202   *)
1203     # FIXME: should be removed in autoconf 3.0.
1204     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208     ;;
1209
1210   esac
1211 done
1212
1213 if test -n "$ac_prev"; then
1214   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215   { echo "$as_me: error: missing argument to $ac_option" >&2
1216    { (exit 1); exit 1; }; }
1217 fi
1218
1219 # Be sure to have absolute directory names.
1220 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221                 datadir sysconfdir sharedstatedir localstatedir includedir \
1222                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223                 libdir localedir mandir
1224 do
1225   eval ac_val=\$$ac_var
1226   case $ac_val in
1227     [\\/$]* | ?:[\\/]* )  continue;;
1228     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229   esac
1230   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1231    { (exit 1); exit 1; }; }
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243   if test "x$build_alias" = x; then
1244     cross_compiling=maybe
1245     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246     If a cross compiler is detected then cross compile mode will be used." >&2
1247   elif test "x$build_alias" != "x$host_alias"; then
1248     cross_compiling=yes
1249   fi
1250 fi
1251
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255 test "$silent" = yes && exec 6>/dev/null
1256
1257
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261   { echo "$as_me: error: Working directory cannot be determined" >&2
1262    { (exit 1); exit 1; }; }
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264   { echo "$as_me: error: pwd does not report name of working directory" >&2
1265    { (exit 1); exit 1; }; }
1266
1267
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270   ac_srcdir_defaulted=yes
1271   # Try the directory containing this script, then the parent directory.
1272   ac_confdir=`$as_dirname -- "$0" ||
1273 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274          X"$0" : 'X\(//\)[^/]' \| \
1275          X"$0" : 'X\(//\)$' \| \
1276          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1277 echo X"$0" |
1278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)[^/].*/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\/\)$/{
1287             s//\1/
1288             q
1289           }
1290           /^X\(\/\).*/{
1291             s//\1/
1292             q
1293           }
1294           s/.*/./; q'`
1295   srcdir=$ac_confdir
1296   if test ! -r "$srcdir/$ac_unique_file"; then
1297     srcdir=..
1298   fi
1299 else
1300   ac_srcdir_defaulted=no
1301 fi
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1305    { (exit 1); exit 1; }; }
1306 fi
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 ac_abs_confdir=`(
1309         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1310    { (exit 1); exit 1; }; }
1311         pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314   srcdir=.
1315 fi
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_env_${ac_var}_value=\$${ac_var}
1325   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1328
1329 #
1330 # Report the --help message.
1331 #
1332 if test "$ac_init_help" = "long"; then
1333   # Omit some internal or obsolete options to make the list less imposing.
1334   # This message is too long to be a string in the A/UX 3.1 sh.
1335   cat <<_ACEOF
1336 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1337
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE.  See below for descriptions of some of the useful variables.
1342
1343 Defaults for the options are specified in brackets.
1344
1345 Configuration:
1346   -h, --help              display this help and exit
1347       --help=short        display options specific to this package
1348       --help=recursive    display the short help of all the included packages
1349   -V, --version           display version information and exit
1350   -q, --quiet, --silent   do not print \`checking...' messages
1351       --cache-file=FILE   cache test results in FILE [disabled]
1352   -C, --config-cache      alias for \`--cache-file=config.cache'
1353   -n, --no-create         do not create output files
1354       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1355
1356 Installation directories:
1357   --prefix=PREFIX         install architecture-independent files in PREFIX
1358                           [$ac_default_prefix]
1359   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1360                           [PREFIX]
1361
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1366
1367 For better control, use the options below.
1368
1369 Fine tuning of the installation directories:
1370   --bindir=DIR           user executables [EPREFIX/bin]
1371   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1372   --libexecdir=DIR       program executables [EPREFIX/libexec]
1373   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1374   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1375   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1376   --libdir=DIR           object code libraries [EPREFIX/lib]
1377   --includedir=DIR       C header files [PREFIX/include]
1378   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1379   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1380   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1381   --infodir=DIR          info documentation [DATAROOTDIR/info]
1382   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1383   --mandir=DIR           man documentation [DATAROOTDIR/man]
1384   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1385   --htmldir=DIR          html documentation [DOCDIR]
1386   --dvidir=DIR           dvi documentation [DOCDIR]
1387   --pdfdir=DIR           pdf documentation [DOCDIR]
1388   --psdir=DIR            ps documentation [DOCDIR]
1389 _ACEOF
1390
1391   cat <<\_ACEOF
1392
1393 System types:
1394   --build=BUILD     configure for building on BUILD [guessed]
1395   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396   --target=TARGET   configure for building compilers for TARGET [HOST]
1397 _ACEOF
1398 fi
1399
1400 if test -n "$ac_init_help"; then
1401   case $ac_init_help in
1402      short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1403    esac
1404   cat <<\_ACEOF
1405
1406 Optional Features:
1407   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409   --enable-polly          Use polly if available (default is YES)
1410   --enable-libcpp         Use libc++ if available (default is NO)
1411   --enable-compiler-version-checks
1412                           Check the version of the host compiler (default is
1413                           YES)
1414   --enable-cxx1y          Use c++1y if available (default is NO)
1415   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1416   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1417   --enable-clang-plugin-support
1418                           Enable plugin support in clang (default is YES)
1419   --enable-clang-static-analyzer
1420                           Enable building of clang Static Analyzer (default is
1421                           YES)
1422   --enable-optimized      Compile with optimizations enabled (default is NO)
1423   --enable-profiling      Compile with profiling enabled (default is NO)
1424   --enable-assertions     Compile with assertion checks enabled (default is
1425                           YES)
1426   --enable-werror         Compile with -Werror enabled (default is NO)
1427   --enable-expensive-checks
1428                           Compile with expensive debug checks enabled (default
1429                           is NO)
1430   --enable-abi-breaking-checks
1431                           Compile with abi-breaking asserts support (default
1432                           is with-asserts)
1433   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1434                           NO)
1435   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1436                           optimization is on and YES if it's off)
1437   --enable-keep-symbols   Do not strip installed executables)
1438   --enable-jit            Enable Just In Time Compiling (default is YES)
1439   --enable-docs           Build documents (default is YES)
1440   --enable-doxygen        Build doxygen documentation (default is NO)
1441   --enable-doxygen-search Enable doxygen search support (default is NO)
1442   --enable-doxygen-external-search
1443                           Enable doxygen exteranl search (default is NO)
1444   --enable-doxygen-qt-help
1445                           Build Qt help files (default is NO)
1446   --enable-threads        Use threads if available (default is YES)
1447   --enable-pthreads       Use pthreads if available (default is YES)
1448   --enable-zlib           Use zlib for compression/decompression if available
1449                           (default is YES)
1450   --enable-pic            Build LLVM with Position Independent Code (default
1451                           is YES)
1452   --enable-shared         Build a shared library and link tools against it
1453                           (default is NO)
1454   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1455                           Win32 DLL (default is NO)
1456   --enable-timestamps     Enable embedding timestamp information in build
1457                           (default is YES)
1458   --enable-backtraces     Enable embedding backtraces on crash (default is
1459                           YES)
1460   --enable-crash-overrides
1461                           Enable crash handling overrides (default is YES)
1462   --enable-targets        Build specific host targets: all or
1463                           target1,target2,... Valid targets are: host, x86,
1464                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1465                           hexagon, xcore, msp430, nvptx, systemz, r600, and
1466                           cpp (default=all)
1467   --enable-experimental-targets
1468                           Build experimental host targets: disable or
1469                           target1,target2,... (default=disable)
1470   --enable-bindings       Build specific language bindings:
1471                           all,auto,none,{binding-name} (default=auto)
1472   --enable-terminfo       Query the terminfo database if available (default is
1473                           YES)
1474   --enable-libedit        Use libedit if available (default is YES)
1475   --enable-libffi         Check for the presence of libffi (default is NO)
1476
1477 Optional Packages:
1478   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480   --with-doxygen-search-engine-url
1481                           Specify the external search engine for doxygen
1482   --with-doxygen-search-mappings
1483                           Specify the extra search mapping for doxygen
1484   --with-optimize-option  Select the compiler options to use for optimized
1485                           builds
1486   --with-extra-options    Specify additional options to compile LLVM with
1487   --with-extra-ld-options Specify additional options to link LLVM with
1488   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1489                           is stdlib)
1490   --with-clang-srcdir     Directory to the out-of-tree Clang source
1491   --with-clang-resource-dir
1492                           Relative directory from the Clang binary for
1493                           resource files
1494   --with-c-include-dirs   Colon separated list of directories clang will
1495                           search for headers
1496   --with-gcc-toolchain    Directory where gcc is installed.
1497   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1498   --with-clang-default-openmp-runtime
1499                           The default OpenMP runtime for Clang.
1500   --with-binutils-include Specify path to binutils/include/ containing
1501                           plugin-api.h file for gold plugin.
1502   --with-bug-report-url   Specify the URL where bug reports should be
1503                           submitted (default=http://llvm.org/bugs/)
1504   --with-internal-prefix  Installation directory for internal files
1505   --with-python           path to python
1506   --with-oprofile=<prefix>
1507                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1508   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1509
1510
1511 Some influential environment variables:
1512   CC          C compiler command
1513   CFLAGS      C compiler flags
1514   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1515               nonstandard directory <lib dir>
1516   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1517               you have headers in a nonstandard directory <include dir>
1518   CXX         C++ compiler command
1519   CXXFLAGS    C++ compiler flags
1520   CPP         C preprocessor
1521
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1524
1525 Report bugs to <http://llvm.org/bugs/>.
1526 _ACEOF
1527 ac_status=$?
1528 fi
1529
1530 if test "$ac_init_help" = "recursive"; then
1531   # If there are subdirs, report their specific --help.
1532   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533     test -d "$ac_dir" || continue
1534     ac_builddir=.
1535
1536 case "$ac_dir" in
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *)
1539   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540   # A ".." for each directory in $ac_dir_suffix.
1541   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542   case $ac_top_builddir_sub in
1543   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545   esac ;;
1546 esac
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1551
1552 case $srcdir in
1553   .)  # We are building in place.
1554     ac_srcdir=.
1555     ac_top_srcdir=$ac_top_builddir_sub
1556     ac_abs_top_srcdir=$ac_pwd ;;
1557   [\\/]* | ?:[\\/]* )  # Absolute name.
1558     ac_srcdir=$srcdir$ac_dir_suffix;
1559     ac_top_srcdir=$srcdir
1560     ac_abs_top_srcdir=$srcdir ;;
1561   *) # Relative name.
1562     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563     ac_top_srcdir=$ac_top_build_prefix$srcdir
1564     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 esac
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568     cd "$ac_dir" || { ac_status=$?; continue; }
1569     # Check for guested configure.
1570     if test -f "$ac_srcdir/configure.gnu"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573     elif test -f "$ac_srcdir/configure"; then
1574       echo &&
1575       $SHELL "$ac_srcdir/configure" --help=recursive
1576     else
1577       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578     fi || ac_status=$?
1579     cd "$ac_pwd" || { ac_status=$?; break; }
1580   done
1581 fi
1582
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1585   cat <<\_ACEOF
1586 LLVM configure 3.7.0svn
1587 generated by GNU Autoconf 2.60
1588
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1593
1594 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1595 _ACEOF
1596   exit
1597 fi
1598 cat >config.log <<_ACEOF
1599 This file contains any messages produced by compilers while
1600 running configure, to aid debugging if configure makes a mistake.
1601
1602 It was created by LLVM $as_me 3.7.0svn, which was
1603 generated by GNU Autoconf 2.60.  Invocation command line was
1604
1605   $ $0 $@
1606
1607 _ACEOF
1608 exec 5>>config.log
1609 {
1610 cat <<_ASUNAME
1611 ## --------- ##
1612 ## Platform. ##
1613 ## --------- ##
1614
1615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1620
1621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1623
1624 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1625 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1628 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1629 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1630 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1631
1632 _ASUNAME
1633
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1636 do
1637   IFS=$as_save_IFS
1638   test -z "$as_dir" && as_dir=.
1639   echo "PATH: $as_dir"
1640 done
1641 IFS=$as_save_IFS
1642
1643 } >&5
1644
1645 cat >&5 <<_ACEOF
1646
1647
1648 ## ----------- ##
1649 ## Core tests. ##
1650 ## ----------- ##
1651
1652 _ACEOF
1653
1654
1655 # Keep a trace of the command line.
1656 # Strip out --no-create and --no-recursion so they do not pile up.
1657 # Strip out --silent because we don't want to record it for future runs.
1658 # Also quote any args containing shell meta-characters.
1659 # Make two passes to allow for proper duplicate-argument suppression.
1660 ac_configure_args=
1661 ac_configure_args0=
1662 ac_configure_args1=
1663 ac_must_keep_next=false
1664 for ac_pass in 1 2
1665 do
1666   for ac_arg
1667   do
1668     case $ac_arg in
1669     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671     | -silent | --silent | --silen | --sile | --sil)
1672       continue ;;
1673     *\'*)
1674       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675     esac
1676     case $ac_pass in
1677     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1678     2)
1679       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680       if test $ac_must_keep_next = true; then
1681         ac_must_keep_next=false # Got value, back to normal.
1682       else
1683         case $ac_arg in
1684           *=* | --config-cache | -C | -disable-* | --disable-* \
1685           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687           | -with-* | --with-* | -without-* | --without-* | --x)
1688             case "$ac_configure_args0 " in
1689               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690             esac
1691             ;;
1692           -* ) ac_must_keep_next=true ;;
1693         esac
1694       fi
1695       ac_configure_args="$ac_configure_args '$ac_arg'"
1696       ;;
1697     esac
1698   done
1699 done
1700 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1702
1703 # When interrupted or exit'd, cleanup temporary files, and complete
1704 # config.log.  We remove comments because anyway the quotes in there
1705 # would cause problems or look ugly.
1706 # WARNING: Use '\'' to represent an apostrophe within the trap.
1707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708 trap 'exit_status=$?
1709   # Save into config.log some information that might help in debugging.
1710   {
1711     echo
1712
1713     cat <<\_ASBOX
1714 ## ---------------- ##
1715 ## Cache variables. ##
1716 ## ---------------- ##
1717 _ASBOX
1718     echo
1719     # The following way of writing the cache mishandles newlines in values,
1720 (
1721   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722     eval ac_val=\$$ac_var
1723     case $ac_val in #(
1724     *${as_nl}*)
1725       case $ac_var in #(
1726       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728       esac
1729       case $ac_var in #(
1730       _ | IFS | as_nl) ;; #(
1731       *) $as_unset $ac_var ;;
1732       esac ;;
1733     esac
1734   done
1735   (set) 2>&1 |
1736     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737     *${as_nl}ac_space=\ *)
1738       sed -n \
1739         "s/'\''/'\''\\\\'\'''\''/g;
1740           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741       ;; #(
1742     *)
1743       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1744       ;;
1745     esac |
1746     sort
1747 )
1748     echo
1749
1750     cat <<\_ASBOX
1751 ## ----------------- ##
1752 ## Output variables. ##
1753 ## ----------------- ##
1754 _ASBOX
1755     echo
1756     for ac_var in $ac_subst_vars
1757     do
1758       eval ac_val=\$$ac_var
1759       case $ac_val in
1760       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761       esac
1762       echo "$ac_var='\''$ac_val'\''"
1763     done | sort
1764     echo
1765
1766     if test -n "$ac_subst_files"; then
1767       cat <<\_ASBOX
1768 ## ------------------- ##
1769 ## File substitutions. ##
1770 ## ------------------- ##
1771 _ASBOX
1772       echo
1773       for ac_var in $ac_subst_files
1774       do
1775         eval ac_val=\$$ac_var
1776         case $ac_val in
1777         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778         esac
1779         echo "$ac_var='\''$ac_val'\''"
1780       done | sort
1781       echo
1782     fi
1783
1784     if test -s confdefs.h; then
1785       cat <<\_ASBOX
1786 ## ----------- ##
1787 ## confdefs.h. ##
1788 ## ----------- ##
1789 _ASBOX
1790       echo
1791       cat confdefs.h
1792       echo
1793     fi
1794     test "$ac_signal" != 0 &&
1795       echo "$as_me: caught signal $ac_signal"
1796     echo "$as_me: exit $exit_status"
1797   } >&5
1798   rm -f core *.core core.conftest.* &&
1799     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800     exit $exit_status
1801 ' 0
1802 for ac_signal in 1 2 13 15; do
1803   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1804 done
1805 ac_signal=0
1806
1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1808 rm -f -r conftest* confdefs.h
1809
1810 # Predefined preprocessor variables.
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_NAME "$PACKAGE_NAME"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_STRING "$PACKAGE_STRING"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1834 _ACEOF
1835
1836
1837 # Let the site file select an alternate cache file if it wants to.
1838 # Prefer explicitly selected file to automatically selected ones.
1839 if test -n "$CONFIG_SITE"; then
1840   set x "$CONFIG_SITE"
1841 elif test "x$prefix" != xNONE; then
1842   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1843 else
1844   set x "$ac_default_prefix/share/config.site" \
1845         "$ac_default_prefix/etc/config.site"
1846 fi
1847 shift
1848 for ac_site_file
1849 do
1850   if test -r "$ac_site_file"; then
1851     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852 echo "$as_me: loading site script $ac_site_file" >&6;}
1853     sed 's/^/| /' "$ac_site_file" >&5
1854     . "$ac_site_file"
1855   fi
1856 done
1857
1858 if test -r "$cache_file"; then
1859   # Some versions of bash will fail to source /dev/null (special
1860   # files actually), so we avoid doing that.
1861   if test -f "$cache_file"; then
1862     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863 echo "$as_me: loading cache $cache_file" >&6;}
1864     case $cache_file in
1865       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1866       *)                      . "./$cache_file";;
1867     esac
1868   fi
1869 else
1870   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871 echo "$as_me: creating cache $cache_file" >&6;}
1872   >$cache_file
1873 fi
1874
1875 # Check that the precious variables saved in the cache have kept the same
1876 # value.
1877 ac_cache_corrupted=false
1878 for ac_var in $ac_precious_vars; do
1879   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880   eval ac_new_set=\$ac_env_${ac_var}_set
1881   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882   eval ac_new_val=\$ac_env_${ac_var}_value
1883   case $ac_old_set,$ac_new_set in
1884     set,)
1885       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887       ac_cache_corrupted=: ;;
1888     ,set)
1889       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891       ac_cache_corrupted=: ;;
1892     ,);;
1893     *)
1894       if test "x$ac_old_val" != "x$ac_new_val"; then
1895         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1898 echo "$as_me:   former value:  $ac_old_val" >&2;}
1899         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1900 echo "$as_me:   current value: $ac_new_val" >&2;}
1901         ac_cache_corrupted=:
1902       fi;;
1903   esac
1904   # Pass precious variables to config.status.
1905   if test "$ac_new_set" = set; then
1906     case $ac_new_val in
1907     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908     *) ac_arg=$ac_var=$ac_new_val ;;
1909     esac
1910     case " $ac_configure_args " in
1911       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1912       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1913     esac
1914   fi
1915 done
1916 if $ac_cache_corrupted; then
1917   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921    { (exit 1); exit 1; }; }
1922 fi
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948 ac_ext=c
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953
1954
1955
1956 LLVM_VERSION_MAJOR=3
1957 LLVM_VERSION_MINOR=7
1958 LLVM_VERSION_PATCH=0
1959 LLVM_VERSION_SUFFIX=svn
1960
1961
1962 cat >>confdefs.h <<_ACEOF
1963 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1964 _ACEOF
1965
1966
1967 cat >>confdefs.h <<_ACEOF
1968 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1969 _ACEOF
1970
1971
1972 cat >>confdefs.h <<_ACEOF
1973 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1974 _ACEOF
1975
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1979 _ACEOF
1980
1981
1982
1983
1984
1985
1986
1987 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1988
1989
1990
1991
1992
1993
1994
1995 ac_aux_dir=
1996 for ac_dir in autoconf "$srcdir"/autoconf; do
1997   if test -f "$ac_dir/install-sh"; then
1998     ac_aux_dir=$ac_dir
1999     ac_install_sh="$ac_aux_dir/install-sh -c"
2000     break
2001   elif test -f "$ac_dir/install.sh"; then
2002     ac_aux_dir=$ac_dir
2003     ac_install_sh="$ac_aux_dir/install.sh -c"
2004     break
2005   elif test -f "$ac_dir/shtool"; then
2006     ac_aux_dir=$ac_dir
2007     ac_install_sh="$ac_aux_dir/shtool install -c"
2008     break
2009   fi
2010 done
2011 if test -z "$ac_aux_dir"; then
2012   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2013 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2014    { (exit 1); exit 1; }; }
2015 fi
2016
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2024
2025
2026
2027 if test ${srcdir} != "." ; then
2028   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2029     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2030 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2031    { (exit 1); exit 1; }; }
2032   fi
2033 fi
2034
2035 if test ${srcdir} == "." ; then
2036   { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2037 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2038   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2039 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2040   { echo "$as_me:$LINENO: WARNING: *                                   WARNING                                          *" >&5
2041 echo "$as_me: WARNING: *                                   WARNING                                          *" >&2;}
2042   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2043 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2044   { echo "$as_me:$LINENO: WARNING: *                        In-source builds are deprecated.                            *" >&5
2045 echo "$as_me: WARNING: *                        In-source builds are deprecated.                            *" >&2;}
2046   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2047 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2048   { echo "$as_me:$LINENO: WARNING: *               Please configure from a separate build directory!                    *" >&5
2049 echo "$as_me: WARNING: *               Please configure from a separate build directory!                    *" >&2;}
2050   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2051 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2052   { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2053 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2054 fi
2055
2056 : ${CFLAGS=}
2057 : ${CXXFLAGS=}
2058
2059 ac_ext=c
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064 if test -n "$ac_tool_prefix"; then
2065   for ac_prog in clang gcc
2066   do
2067     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test -n "$CC"; then
2075   ac_cv_prog_CC="$CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   for ac_exec_ext in '' $ac_executable_extensions; do
2083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2084     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086     break 2
2087   fi
2088 done
2089 done
2090 IFS=$as_save_IFS
2091
2092 fi
2093 fi
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096   { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2098 else
2099   { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2101 fi
2102
2103
2104     test -n "$CC" && break
2105   done
2106 fi
2107 if test -z "$CC"; then
2108   ac_ct_CC=$CC
2109   for ac_prog in clang gcc
2110 do
2111   # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   if test -n "$ac_ct_CC"; then
2119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124   IFS=$as_save_IFS
2125   test -z "$as_dir" && as_dir=.
2126   for ac_exec_ext in '' $ac_executable_extensions; do
2127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2128     ac_cv_prog_ac_ct_CC="$ac_prog"
2129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130     break 2
2131   fi
2132 done
2133 done
2134 IFS=$as_save_IFS
2135
2136 fi
2137 fi
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2142 else
2143   { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2145 fi
2146
2147
2148   test -n "$ac_ct_CC" && break
2149 done
2150
2151   if test "x$ac_ct_CC" = x; then
2152     CC=""
2153   else
2154     case $cross_compiling:$ac_tool_warned in
2155 yes:)
2156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2157 whose name does not start with the host triplet.  If you think this
2158 configuration is useful to you, please write to autoconf@gnu.org." >&5
2159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet.  If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2162 ac_tool_warned=yes ;;
2163 esac
2164     CC=$ac_ct_CC
2165   fi
2166 fi
2167
2168
2169 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: no acceptable C compiler found in \$PATH
2172 See \`config.log' for more details." >&2;}
2173    { (exit 1); exit 1; }; }
2174
2175 # Provide some information about the compiler.
2176 echo "$as_me:$LINENO: checking for C compiler version" >&5
2177 ac_compiler=`set X $ac_compile; echo $2`
2178 { (ac_try="$ac_compiler --version >&5"
2179 case "(($ac_try" in
2180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181   *) ac_try_echo=$ac_try;;
2182 esac
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184   (eval "$ac_compiler --version >&5") 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }
2188 { (ac_try="$ac_compiler -v >&5"
2189 case "(($ac_try" in
2190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191   *) ac_try_echo=$ac_try;;
2192 esac
2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194   (eval "$ac_compiler -v >&5") 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); }
2198 { (ac_try="$ac_compiler -V >&5"
2199 case "(($ac_try" in
2200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201   *) ac_try_echo=$ac_try;;
2202 esac
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204   (eval "$ac_compiler -V >&5") 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }
2208
2209 cat >conftest.$ac_ext <<_ACEOF
2210 /* confdefs.h.  */
2211 _ACEOF
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h.  */
2215
2216 int
2217 main ()
2218 {
2219
2220   ;
2221   return 0;
2222 }
2223 _ACEOF
2224 ac_clean_files_save=$ac_clean_files
2225 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2226 # Try to create an executable without -o first, disregard a.out.
2227 # It will help us diagnose broken compilers, and finding out an intuition
2228 # of exeext.
2229 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2230 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2231 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2232 #
2233 # List of possible output files, starting from the most likely.
2234 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2235 # only as a last resort.  b.out is created by i960 compilers.
2236 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2237 #
2238 # The IRIX 6 linker writes into existing files which may not be
2239 # executable, retaining their permissions.  Remove them first so a
2240 # subsequent execution test works.
2241 ac_rmfiles=
2242 for ac_file in $ac_files
2243 do
2244   case $ac_file in
2245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2246     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2247   esac
2248 done
2249 rm -f $ac_rmfiles
2250
2251 if { (ac_try="$ac_link_default"
2252 case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257   (eval "$ac_link_default") 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; then
2261   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2263 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2264 # so that the user can short-circuit this test for compilers unknown to
2265 # Autoconf.
2266 for ac_file in $ac_files
2267 do
2268   test -f "$ac_file" || continue
2269   case $ac_file in
2270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2271         ;;
2272     [ab].out )
2273         # We found the default executable, but exeext='' is most
2274         # certainly right.
2275         break;;
2276     *.* )
2277         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2278         then :; else
2279            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280         fi
2281         # We set ac_cv_exeext here because the later test for it is not
2282         # safe: cross compilers may not add the suffix if given an `-o'
2283         # argument, so we may need to know it at that point already.
2284         # Even if this section looks crufty: it has the advantage of
2285         # actually working.
2286         break;;
2287     * )
2288         break;;
2289   esac
2290 done
2291 test "$ac_cv_exeext" = no && ac_cv_exeext=
2292
2293 else
2294   echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: C compiler cannot create executables
2300 See \`config.log' for more details." >&2;}
2301    { (exit 77); exit 77; }; }
2302 fi
2303
2304 ac_exeext=$ac_cv_exeext
2305 { echo "$as_me:$LINENO: result: $ac_file" >&5
2306 echo "${ECHO_T}$ac_file" >&6; }
2307
2308 # Check that the compiler produces executables we can run.  If not, either
2309 # the compiler is broken, or we cross compile.
2310 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2311 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2312 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2313 # If not cross compiling, check that we can run a simple program.
2314 if test "$cross_compiling" != yes; then
2315   if { ac_try='./$ac_file'
2316   { (case "(($ac_try" in
2317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318   *) ac_try_echo=$ac_try;;
2319 esac
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321   (eval "$ac_try") 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; }; then
2325     cross_compiling=no
2326   else
2327     if test "$cross_compiling" = maybe; then
2328         cross_compiling=yes
2329     else
2330         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot run C compiled programs.
2334 If you meant to cross compile, use \`--host'.
2335 See \`config.log' for more details." >&2;}
2336    { (exit 1); exit 1; }; }
2337     fi
2338   fi
2339 fi
2340 { echo "$as_me:$LINENO: result: yes" >&5
2341 echo "${ECHO_T}yes" >&6; }
2342
2343 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2344 ac_clean_files=$ac_clean_files_save
2345 # Check that the compiler produces executables we can run.  If not, either
2346 # the compiler is broken, or we cross compile.
2347 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2348 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2349 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2350 echo "${ECHO_T}$cross_compiling" >&6; }
2351
2352 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2353 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2354 if { (ac_try="$ac_link"
2355 case "(($ac_try" in
2356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357   *) ac_try_echo=$ac_try;;
2358 esac
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360   (eval "$ac_link") 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; then
2364   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2365 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2366 # work properly (i.e., refer to `conftest.exe'), while it won't with
2367 # `rm'.
2368 for ac_file in conftest.exe conftest conftest.*; do
2369   test -f "$ac_file" || continue
2370   case $ac_file in
2371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2372     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2373           break;;
2374     * ) break;;
2375   esac
2376 done
2377 else
2378   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382    { (exit 1); exit 1; }; }
2383 fi
2384
2385 rm -f conftest$ac_cv_exeext
2386 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2388
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2391 ac_exeext=$EXEEXT
2392 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2394 if test "${ac_cv_objext+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
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.o conftest.obj
2413 if { (ac_try="$ac_compile"
2414 case "(($ac_try" in
2415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416   *) ac_try_echo=$ac_try;;
2417 esac
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419   (eval "$ac_compile") 2>&5
2420   ac_status=$?
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); }; then
2423   for ac_file in conftest.o conftest.obj conftest.*; do
2424   test -f "$ac_file" || continue;
2425   case $ac_file in
2426     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2427     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2428        break;;
2429   esac
2430 done
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2438 See \`config.log' for more details." >&2;}
2439    { (exit 1); exit 1; }; }
2440 fi
2441
2442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2443 fi
2444 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2445 echo "${ECHO_T}$ac_cv_objext" >&6; }
2446 OBJEXT=$ac_cv_objext
2447 ac_objext=$OBJEXT
2448 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h.  */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h.  */
2459
2460 int
2461 main ()
2462 {
2463 #ifndef __GNUC__
2464        choke me
2465 #endif
2466
2467   ;
2468   return 0;
2469 }
2470 _ACEOF
2471 rm -f conftest.$ac_objext
2472 if { (ac_try="$ac_compile"
2473 case "(($ac_try" in
2474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475   *) ac_try_echo=$ac_try;;
2476 esac
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478   (eval "$ac_compile") 2>conftest.er1
2479   ac_status=$?
2480   grep -v '^ *+' conftest.er1 >conftest.err
2481   rm -f conftest.er1
2482   cat conftest.err >&5
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); } &&
2485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2486   { (case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491   (eval "$ac_try") 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; } &&
2495          { ac_try='test -s conftest.$ac_objext'
2496   { (case "(($ac_try" in
2497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498   *) ac_try_echo=$ac_try;;
2499 esac
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501   (eval "$ac_try") 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; }; then
2505   ac_compiler_gnu=yes
2506 else
2507   echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510         ac_compiler_gnu=no
2511 fi
2512
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2515
2516 fi
2517 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2519 GCC=`test $ac_compiler_gnu = yes && echo yes`
2520 ac_test_CFLAGS=${CFLAGS+set}
2521 ac_save_CFLAGS=$CFLAGS
2522 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2523 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_cc_g+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   ac_save_c_werror_flag=$ac_c_werror_flag
2528    ac_c_werror_flag=yes
2529    ac_cv_prog_cc_g=no
2530    CFLAGS="-g"
2531    cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h.  */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h.  */
2537
2538 int
2539 main ()
2540 {
2541
2542   ;
2543   return 0;
2544 }
2545 _ACEOF
2546 rm -f conftest.$ac_objext
2547 if { (ac_try="$ac_compile"
2548 case "(($ac_try" in
2549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550   *) ac_try_echo=$ac_try;;
2551 esac
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553   (eval "$ac_compile") 2>conftest.er1
2554   ac_status=$?
2555   grep -v '^ *+' conftest.er1 >conftest.err
2556   rm -f conftest.er1
2557   cat conftest.err >&5
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); } &&
2560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2561   { (case "(($ac_try" in
2562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563   *) ac_try_echo=$ac_try;;
2564 esac
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566   (eval "$ac_try") 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; } &&
2570          { ac_try='test -s conftest.$ac_objext'
2571   { (case "(($ac_try" in
2572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573   *) ac_try_echo=$ac_try;;
2574 esac
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576   (eval "$ac_try") 2>&5
2577   ac_status=$?
2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579   (exit $ac_status); }; }; then
2580   ac_cv_prog_cc_g=yes
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585         CFLAGS=""
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   :
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640         ac_c_werror_flag=$ac_save_c_werror_flag
2641          CFLAGS="-g"
2642          cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648
2649 int
2650 main ()
2651 {
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2659 case "(($ac_try" in
2660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661   *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664   (eval "$ac_compile") 2>conftest.er1
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } &&
2671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672   { (case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677   (eval "$ac_try") 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687   (eval "$ac_try") 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); }; }; then
2691   ac_cv_prog_cc_g=yes
2692 else
2693   echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696
2697 fi
2698
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 fi
2701
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 fi
2704
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706    ac_c_werror_flag=$ac_save_c_werror_flag
2707 fi
2708 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2710 if test "$ac_test_CFLAGS" = set; then
2711   CFLAGS=$ac_save_CFLAGS
2712 elif test $ac_cv_prog_cc_g = yes; then
2713   if test "$GCC" = yes; then
2714     CFLAGS="-g -O2"
2715   else
2716     CFLAGS="-g"
2717   fi
2718 else
2719   if test "$GCC" = yes; then
2720     CFLAGS="-O2"
2721   else
2722     CFLAGS=
2723   fi
2724 fi
2725 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2726 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2727 if test "${ac_cv_prog_cc_c89+set}" = set; then
2728   echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730   ac_cv_prog_cc_c89=no
2731 ac_save_CC=$CC
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738 #include <stdarg.h>
2739 #include <stdio.h>
2740 #include <sys/types.h>
2741 #include <sys/stat.h>
2742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2743 struct buf { int x; };
2744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745 static char *e (p, i)
2746      char **p;
2747      int i;
2748 {
2749   return p[i];
2750 }
2751 static char *f (char * (*g) (char **, int), char **p, ...)
2752 {
2753   char *s;
2754   va_list v;
2755   va_start (v,p);
2756   s = g (p, va_arg (v,int));
2757   va_end (v);
2758   return s;
2759 }
2760
2761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2762    function prototypes and stuff, but not '\xHH' hex character constants.
2763    These don't provoke an error unfortunately, instead are silently treated
2764    as 'x'.  The following induces an error, until -std is added to get
2765    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2766    array size at least.  It's necessary to write '\x00'==0 to get something
2767    that's true only with -std.  */
2768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2769
2770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2771    inside strings and character constants.  */
2772 #define FOO(x) 'x'
2773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2774
2775 int test (int i, double x);
2776 struct s1 {int (*f) (int a);};
2777 struct s2 {int (*f) (double a);};
2778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2779 int argc;
2780 char **argv;
2781 int
2782 main ()
2783 {
2784 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2785   ;
2786   return 0;
2787 }
2788 _ACEOF
2789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2790         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2791 do
2792   CC="$ac_save_CC $ac_arg"
2793   rm -f conftest.$ac_objext
2794 if { (ac_try="$ac_compile"
2795 case "(($ac_try" in
2796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797   *) ac_try_echo=$ac_try;;
2798 esac
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800   (eval "$ac_compile") 2>conftest.er1
2801   ac_status=$?
2802   grep -v '^ *+' conftest.er1 >conftest.err
2803   rm -f conftest.er1
2804   cat conftest.err >&5
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); } &&
2807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2808   { (case "(($ac_try" in
2809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810   *) ac_try_echo=$ac_try;;
2811 esac
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813   (eval "$ac_try") 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); }; } &&
2817          { ac_try='test -s conftest.$ac_objext'
2818   { (case "(($ac_try" in
2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820   *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823   (eval "$ac_try") 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; }; then
2827   ac_cv_prog_cc_c89=$ac_arg
2828 else
2829   echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832
2833 fi
2834
2835 rm -f core conftest.err conftest.$ac_objext
2836   test "x$ac_cv_prog_cc_c89" != "xno" && break
2837 done
2838 rm -f conftest.$ac_ext
2839 CC=$ac_save_CC
2840
2841 fi
2842 # AC_CACHE_VAL
2843 case "x$ac_cv_prog_cc_c89" in
2844   x)
2845     { echo "$as_me:$LINENO: result: none needed" >&5
2846 echo "${ECHO_T}none needed" >&6; } ;;
2847   xno)
2848     { echo "$as_me:$LINENO: result: unsupported" >&5
2849 echo "${ECHO_T}unsupported" >&6; } ;;
2850   *)
2851     CC="$CC $ac_cv_prog_cc_c89"
2852     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2853 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2854 esac
2855
2856
2857 ac_ext=c
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862
2863 ac_ext=cpp
2864 ac_cpp='$CXXCPP $CPPFLAGS'
2865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2868 if test -z "$CXX"; then
2869   if test -n "$CCC"; then
2870     CXX=$CCC
2871   else
2872     if test -n "$ac_tool_prefix"; then
2873   for ac_prog in clang++ g++
2874   do
2875     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_CXX+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   if test -n "$CXX"; then
2883   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 CXX=$ac_cv_prog_CXX
2903 if test -n "$CXX"; then
2904   { echo "$as_me:$LINENO: result: $CXX" >&5
2905 echo "${ECHO_T}$CXX" >&6; }
2906 else
2907   { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2909 fi
2910
2911
2912     test -n "$CXX" && break
2913   done
2914 fi
2915 if test -z "$CXX"; then
2916   ac_ct_CXX=$CXX
2917   for ac_prog in clang++ g++
2918 do
2919   # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2924   echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926   if test -n "$ac_ct_CXX"; then
2927   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932   IFS=$as_save_IFS
2933   test -z "$as_dir" && as_dir=.
2934   for ac_exec_ext in '' $ac_executable_extensions; do
2935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2936     ac_cv_prog_ac_ct_CXX="$ac_prog"
2937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938     break 2
2939   fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2947 if test -n "$ac_ct_CXX"; then
2948   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2949 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2950 else
2951   { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2953 fi
2954
2955
2956   test -n "$ac_ct_CXX" && break
2957 done
2958
2959   if test "x$ac_ct_CXX" = x; then
2960     CXX="g++"
2961   else
2962     case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet.  If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet.  If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972     CXX=$ac_ct_CXX
2973   fi
2974 fi
2975
2976   fi
2977 fi
2978 # Provide some information about the compiler.
2979 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2980 ac_compiler=`set X $ac_compile; echo $2`
2981 { (ac_try="$ac_compiler --version >&5"
2982 case "(($ac_try" in
2983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984   *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987   (eval "$ac_compiler --version >&5") 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }
2991 { (ac_try="$ac_compiler -v >&5"
2992 case "(($ac_try" in
2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994   *) ac_try_echo=$ac_try;;
2995 esac
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997   (eval "$ac_compiler -v >&5") 2>&5
2998   ac_status=$?
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); }
3001 { (ac_try="$ac_compiler -V >&5"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_compiler -V >&5") 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }
3011
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3015   echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017   cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h.  */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h.  */
3023
3024 int
3025 main ()
3026 {
3027 #ifndef __GNUC__
3028        choke me
3029 #endif
3030
3031   ;
3032   return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039   *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042   (eval "$ac_compile") 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } &&
3049          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3050   { (case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_try") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; } &&
3059          { ac_try='test -s conftest.$ac_objext'
3060   { (case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_try") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; }; then
3069   ac_compiler_gnu=yes
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074         ac_compiler_gnu=no
3075 fi
3076
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3079
3080 fi
3081 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3082 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3083 GXX=`test $ac_compiler_gnu = yes && echo yes`
3084 ac_test_CXXFLAGS=${CXXFLAGS+set}
3085 ac_save_CXXFLAGS=$CXXFLAGS
3086 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3087 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3088 if test "${ac_cv_prog_cxx_g+set}" = set; then
3089   echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3092    ac_cxx_werror_flag=yes
3093    ac_cv_prog_cxx_g=no
3094    CXXFLAGS="-g"
3095    cat >conftest.$ac_ext <<_ACEOF
3096 /* confdefs.h.  */
3097 _ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h.  */
3101
3102 int
3103 main ()
3104 {
3105
3106   ;
3107   return 0;
3108 }
3109 _ACEOF
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3112 case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117   (eval "$ac_compile") 2>conftest.er1
3118   ac_status=$?
3119   grep -v '^ *+' conftest.er1 >conftest.err
3120   rm -f conftest.er1
3121   cat conftest.err >&5
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); } &&
3124          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3125   { (case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_try") 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }; } &&
3134          { ac_try='test -s conftest.$ac_objext'
3135   { (case "(($ac_try" in
3136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137   *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140   (eval "$ac_try") 2>&5
3141   ac_status=$?
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); }; }; then
3144   ac_cv_prog_cxx_g=yes
3145 else
3146   echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149         CXXFLAGS=""
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   :
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3205          CXXFLAGS="-g"
3206          cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3212
3213 int
3214 main ()
3215 {
3216
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3223 case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228   (eval "$ac_compile") 2>conftest.er1
3229   ac_status=$?
3230   grep -v '^ *+' conftest.er1 >conftest.err
3231   rm -f conftest.er1
3232   cat conftest.err >&5
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); } &&
3235          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3236   { (case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_try") 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); }; } &&
3245          { ac_try='test -s conftest.$ac_objext'
3246   { (case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_try") 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   ac_cv_prog_cxx_g=yes
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260
3261 fi
3262
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 fi
3265
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 fi
3268
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3271 fi
3272 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3274 if test "$ac_test_CXXFLAGS" = set; then
3275   CXXFLAGS=$ac_save_CXXFLAGS
3276 elif test $ac_cv_prog_cxx_g = yes; then
3277   if test "$GXX" = yes; then
3278     CXXFLAGS="-g -O2"
3279   else
3280     CXXFLAGS="-g"
3281   fi
3282 else
3283   if test "$GXX" = yes; then
3284     CXXFLAGS="-O2"
3285   else
3286     CXXFLAGS=
3287   fi
3288 fi
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
3295 ac_ext=c
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3302 # On Suns, sometimes $CPP names a directory.
3303 if test -n "$CPP" && test -d "$CPP"; then
3304   CPP=
3305 fi
3306 if test -z "$CPP"; then
3307   if test "${ac_cv_prog_CPP+set}" = set; then
3308   echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310       # Double quotes because CPP needs to be expanded
3311     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3312     do
3313       ac_preproc_ok=false
3314 for ac_c_preproc_warn_flag in '' yes
3315 do
3316   # Use a header file that comes with gcc, so configuring glibc
3317   # with a fresh cross-compiler works.
3318   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319   # <limits.h> exists even on freestanding compilers.
3320   # On the NeXT, cc -E runs the code through the compiler's parser,
3321   # not just through cpp. "Syntax error" is here to catch this case.
3322   cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h.  */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h.  */
3328 #ifdef __STDC__
3329 # include <limits.h>
3330 #else
3331 # include <assert.h>
3332 #endif
3333                      Syntax error
3334 _ACEOF
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3342   ac_status=$?
3343   grep -v '^ *+' conftest.er1 >conftest.err
3344   rm -f conftest.er1
3345   cat conftest.err >&5
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } >/dev/null; then
3348   if test -s conftest.err; then
3349     ac_cpp_err=$ac_c_preproc_warn_flag
3350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3351   else
3352     ac_cpp_err=
3353   fi
3354 else
3355   ac_cpp_err=yes
3356 fi
3357 if test -z "$ac_cpp_err"; then
3358   :
3359 else
3360   echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363   # Broken: fails on valid input.
3364 continue
3365 fi
3366
3367 rm -f conftest.err conftest.$ac_ext
3368
3369   # OK, works on sane cases.  Now check whether nonexistent headers
3370   # can be detected and how.
3371   cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h.  */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h.  */
3377 #include <ac_nonexistent.h>
3378 _ACEOF
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } >/dev/null; then
3392   if test -s conftest.err; then
3393     ac_cpp_err=$ac_c_preproc_warn_flag
3394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3395   else
3396     ac_cpp_err=
3397   fi
3398 else
3399   ac_cpp_err=yes
3400 fi
3401 if test -z "$ac_cpp_err"; then
3402   # Broken: success on invalid input.
3403 continue
3404 else
3405   echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408   # Passes both tests.
3409 ac_preproc_ok=:
3410 break
3411 fi
3412
3413 rm -f conftest.err conftest.$ac_ext
3414
3415 done
3416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3417 rm -f conftest.err conftest.$ac_ext
3418 if $ac_preproc_ok; then
3419   break
3420 fi
3421
3422     done
3423     ac_cv_prog_CPP=$CPP
3424
3425 fi
3426   CPP=$ac_cv_prog_CPP
3427 else
3428   ac_cv_prog_CPP=$CPP
3429 fi
3430 { echo "$as_me:$LINENO: result: $CPP" >&5
3431 echo "${ECHO_T}$CPP" >&6; }
3432 ac_preproc_ok=false
3433 for ac_c_preproc_warn_flag in '' yes
3434 do
3435   # Use a header file that comes with gcc, so configuring glibc
3436   # with a fresh cross-compiler works.
3437   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438   # <limits.h> exists even on freestanding compilers.
3439   # On the NeXT, cc -E runs the code through the compiler's parser,
3440   # not just through cpp. "Syntax error" is here to catch this case.
3441   cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447 #ifdef __STDC__
3448 # include <limits.h>
3449 #else
3450 # include <assert.h>
3451 #endif
3452                      Syntax error
3453 _ACEOF
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
3464   cat conftest.err >&5
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } >/dev/null; then
3467   if test -s conftest.err; then
3468     ac_cpp_err=$ac_c_preproc_warn_flag
3469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470   else
3471     ac_cpp_err=
3472   fi
3473 else
3474   ac_cpp_err=yes
3475 fi
3476 if test -z "$ac_cpp_err"; then
3477   :
3478 else
3479   echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482   # Broken: fails on valid input.
3483 continue
3484 fi
3485
3486 rm -f conftest.err conftest.$ac_ext
3487
3488   # OK, works on sane cases.  Now check whether nonexistent headers
3489   # can be detected and how.
3490   cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h.  */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h.  */
3496 #include <ac_nonexistent.h>
3497 _ACEOF
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3505   ac_status=$?
3506   grep -v '^ *+' conftest.er1 >conftest.err
3507   rm -f conftest.er1
3508   cat conftest.err >&5
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } >/dev/null; then
3511   if test -s conftest.err; then
3512     ac_cpp_err=$ac_c_preproc_warn_flag
3513     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3514   else
3515     ac_cpp_err=
3516   fi
3517 else
3518   ac_cpp_err=yes
3519 fi
3520 if test -z "$ac_cpp_err"; then
3521   # Broken: success on invalid input.
3522 continue
3523 else
3524   echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527   # Passes both tests.
3528 ac_preproc_ok=:
3529 break
3530 fi
3531
3532 rm -f conftest.err conftest.$ac_ext
3533
3534 done
3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536 rm -f conftest.err conftest.$ac_ext
3537 if $ac_preproc_ok; then
3538   :
3539 else
3540   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." >&5
3542 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3543 See \`config.log' for more details." >&2;}
3544    { (exit 1); exit 1; }; }
3545 fi
3546
3547 ac_ext=c
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552
3553
3554 if test "$CXX" = "clang++" ; then
3555   { echo "$as_me:$LINENO: checking whether clang works" >&5
3556 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3557   ac_ext=cpp
3558 ac_cpp='$CXXCPP $CPPFLAGS'
3559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3562
3563
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h.  */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h.  */
3570 #include <limits>
3571 #if __has_include (<cxxabi.h>)
3572 #include <cxxabi.h>
3573 #endif
3574 #if __has_include (<unwind.h>)
3575 #include <unwind.h>
3576 #endif
3577
3578 int
3579 main ()
3580 {
3581
3582   ;
3583   return 0;
3584 }
3585 _ACEOF
3586 rm -f conftest.$ac_objext
3587 if { (ac_try="$ac_compile"
3588 case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593   (eval "$ac_compile") 2>conftest.er1
3594   ac_status=$?
3595   grep -v '^ *+' conftest.er1 >conftest.err
3596   rm -f conftest.er1
3597   cat conftest.err >&5
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } &&
3600          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3601   { (case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606   (eval "$ac_try") 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); }; } &&
3610          { ac_try='test -s conftest.$ac_objext'
3611   { (case "(($ac_try" in
3612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613   *) ac_try_echo=$ac_try;;
3614 esac
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616   (eval "$ac_try") 2>&5
3617   ac_status=$?
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); }; }; then
3620
3621   { echo "$as_me:$LINENO: result: yes" >&5
3622 echo "${ECHO_T}yes" >&6; }
3623
3624 else
3625   echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628
3629   { echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6; }
3631   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&5
3632 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&2;}
3633    { (exit 1); exit 1; }; }
3634
3635 fi
3636
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638   ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
3644 fi
3645
3646 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3647 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3648 ac_ext=cpp
3649 ac_cpp='$CXXCPP $CPPFLAGS'
3650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3653
3654 llvm_cv_cxx_compiler=unknown
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h.  */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h.  */
3661 #if ! __clang__
3662                                     #error
3663                                     #endif
3664
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (ac_try="$ac_compile"
3668 case "(($ac_try" in
3669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670   *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673   (eval "$ac_compile") 2>conftest.er1
3674   ac_status=$?
3675   grep -v '^ *+' conftest.er1 >conftest.err
3676   rm -f conftest.er1
3677   cat conftest.err >&5
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); } &&
3680          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3681   { (case "(($ac_try" in
3682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683   *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686   (eval "$ac_try") 2>&5
3687   ac_status=$?
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); }; } &&
3690          { ac_try='test -s conftest.$ac_objext'
3691   { (case "(($ac_try" in
3692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693   *) ac_try_echo=$ac_try;;
3694 esac
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696   (eval "$ac_try") 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; }; then
3700   llvm_cv_cxx_compiler=clang
3701 else
3702   echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705         cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711 #if ! __GNUC__
3712                                                        #error
3713                                                        #endif
3714
3715 _ACEOF
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3718 case "(($ac_try" in
3719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720   *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723   (eval "$ac_compile") 2>conftest.er1
3724   ac_status=$?
3725   grep -v '^ *+' conftest.er1 >conftest.err
3726   rm -f conftest.er1
3727   cat conftest.err >&5
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); } &&
3730          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3731   { (case "(($ac_try" in
3732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733   *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736   (eval "$ac_try") 2>&5
3737   ac_status=$?
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); }; } &&
3740          { ac_try='test -s conftest.$ac_objext'
3741   { (case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746   (eval "$ac_try") 2>&5
3747   ac_status=$?
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); }; }; then
3750   llvm_cv_cxx_compiler=gcc
3751 else
3752   echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3754
3755
3756 fi
3757
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 fi
3760
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767
3768 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3769 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3770
3771
3772
3773 if test -d ${srcdir}/projects/test-suite ; then
3774   subdirs="$subdirs projects/test-suite"
3775
3776 fi
3777
3778 if test -d ${srcdir}/projects/llvm-test ; then
3779   subdirs="$subdirs projects/llvm-test"
3780
3781 fi
3782
3783 if test -d ${srcdir}/projects/poolalloc ; then
3784   subdirs="$subdirs projects/poolalloc"
3785
3786 fi
3787
3788 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3789   subdirs="$subdirs projects/llvm-poolalloc"
3790
3791 fi
3792
3793 for i in `ls ${srcdir}/projects`
3794 do
3795   if test -d ${srcdir}/projects/${i} ; then
3796     case ${i} in
3797       safecode)     subdirs="$subdirs projects/safecode"
3798  ;;
3799       compiler-rt)       ;;
3800       test-suite)     ;;
3801       llvm-test)      ;;
3802       poolalloc)      ;;
3803       llvm-poolalloc) ;;
3804       *)
3805         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3806 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3807         ;;
3808     esac
3809   fi
3810 done
3811
3812 # Check whether --enable-polly was given.
3813 if test "${enable_polly+set}" = set; then
3814   enableval=$enable_polly;
3815 else
3816   enableval=default
3817 fi
3818
3819 case "$enableval" in
3820   yes) ENABLE_POLLY=1
3821  ;;
3822   no)  ENABLE_POLLY=0
3823  ;;
3824   default) ENABLE_POLLY=1
3825  ;;
3826   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3827 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3828    { (exit 1); exit 1; }; } ;;
3829 esac
3830
3831
3832 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3833   LLVM_HAS_POLLY=1
3834
3835   subdirs="$subdirs tools/polly"
3836
3837 fi
3838
3839
3840 # Make sure we can run config.sub.
3841 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3842   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3843 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3844    { (exit 1); exit 1; }; }
3845
3846 { echo "$as_me:$LINENO: checking build system type" >&5
3847 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3848 if test "${ac_cv_build+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   ac_build_alias=$build_alias
3852 test "x$ac_build_alias" = x &&
3853   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3854 test "x$ac_build_alias" = x &&
3855   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3856 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3857    { (exit 1); exit 1; }; }
3858 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3859   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3860 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3861    { (exit 1); exit 1; }; }
3862
3863 fi
3864 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3865 echo "${ECHO_T}$ac_cv_build" >&6; }
3866 case $ac_cv_build in
3867 *-*-*) ;;
3868 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3869 echo "$as_me: error: invalid value of canonical build" >&2;}
3870    { (exit 1); exit 1; }; };;
3871 esac
3872 build=$ac_cv_build
3873 ac_save_IFS=$IFS; IFS='-'
3874 set x $ac_cv_build
3875 shift
3876 build_cpu=$1
3877 build_vendor=$2
3878 shift; shift
3879 # Remember, the first character of IFS is used to create $*,
3880 # except with old shells:
3881 build_os=$*
3882 IFS=$ac_save_IFS
3883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3884
3885
3886 { echo "$as_me:$LINENO: checking host system type" >&5
3887 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3888 if test "${ac_cv_host+set}" = set; then
3889   echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891   if test "x$host_alias" = x; then
3892   ac_cv_host=$ac_cv_build
3893 else
3894   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3895     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3896 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3897    { (exit 1); exit 1; }; }
3898 fi
3899
3900 fi
3901 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3902 echo "${ECHO_T}$ac_cv_host" >&6; }
3903 case $ac_cv_host in
3904 *-*-*) ;;
3905 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3906 echo "$as_me: error: invalid value of canonical host" >&2;}
3907    { (exit 1); exit 1; }; };;
3908 esac
3909 host=$ac_cv_host
3910 ac_save_IFS=$IFS; IFS='-'
3911 set x $ac_cv_host
3912 shift
3913 host_cpu=$1
3914 host_vendor=$2
3915 shift; shift
3916 # Remember, the first character of IFS is used to create $*,
3917 # except with old shells:
3918 host_os=$*
3919 IFS=$ac_save_IFS
3920 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3921
3922
3923 { echo "$as_me:$LINENO: checking target system type" >&5
3924 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3925 if test "${ac_cv_target+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   if test "x$target_alias" = x; then
3929   ac_cv_target=$ac_cv_host
3930 else
3931   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3932     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3933 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3934    { (exit 1); exit 1; }; }
3935 fi
3936
3937 fi
3938 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3939 echo "${ECHO_T}$ac_cv_target" >&6; }
3940 case $ac_cv_target in
3941 *-*-*) ;;
3942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3943 echo "$as_me: error: invalid value of canonical target" >&2;}
3944    { (exit 1); exit 1; }; };;
3945 esac
3946 target=$ac_cv_target
3947 ac_save_IFS=$IFS; IFS='-'
3948 set x $ac_cv_target
3949 shift
3950 target_cpu=$1
3951 target_vendor=$2
3952 shift; shift
3953 # Remember, the first character of IFS is used to create $*,
3954 # except with old shells:
3955 target_os=$*
3956 IFS=$ac_save_IFS
3957 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3958
3959
3960 # The aliases save the names the user supplied, while $host etc.
3961 # will get canonicalized.
3962 test -n "$target_alias" &&
3963   test "$program_prefix$program_suffix$program_transform_name" = \
3964     NONENONEs,x,x, &&
3965   program_prefix=${target_alias}-
3966
3967 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3968 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3969 if test "${llvm_cv_os_type+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   case $host in
3973   *-*-aix*)
3974     llvm_cv_link_all_option="-Wl,--whole-archive"
3975     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3976     llvm_cv_os_type="AIX"
3977     llvm_cv_platform_type="Unix" ;;
3978   *-*-irix*)
3979     llvm_cv_link_all_option="-Wl,--whole-archive"
3980     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3981     llvm_cv_os_type="IRIX"
3982     llvm_cv_platform_type="Unix" ;;
3983   *-*-cygwin*)
3984     llvm_cv_link_all_option="-Wl,--whole-archive"
3985     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3986     llvm_cv_os_type="Cygwin"
3987     llvm_cv_platform_type="Unix" ;;
3988   *-*-darwin*)
3989     llvm_cv_link_all_option="-Wl,-all_load"
3990     llvm_cv_no_link_all_option="-Wl,-noall_load"
3991     llvm_cv_os_type="Darwin"
3992     llvm_cv_platform_type="Unix" ;;
3993   *-*-minix*)
3994     llvm_cv_link_all_option="-Wl,-all_load"
3995     llvm_cv_no_link_all_option="-Wl,-noall_load"
3996     llvm_cv_os_type="Minix"
3997     llvm_cv_platform_type="Unix" ;;
3998   *-*-freebsd*)
3999     llvm_cv_link_all_option="-Wl,--whole-archive"
4000     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4001     llvm_cv_os_type="FreeBSD"
4002     llvm_cv_platform_type="Unix" ;;
4003   *-*-kfreebsd-gnu)
4004     llvm_cv_link_all_option="-Wl,--whole-archive"
4005     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4006     llvm_cv_os_type="GNU/kFreeBSD"
4007     llvm_cv_platform_type="Unix" ;;
4008   *-*-openbsd*)
4009     llvm_cv_link_all_option="-Wl,--whole-archive"
4010     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4011     llvm_cv_os_type="OpenBSD"
4012     llvm_cv_platform_type="Unix" ;;
4013   *-*-netbsd*)
4014     llvm_cv_link_all_option="-Wl,--whole-archive"
4015     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4016     llvm_cv_os_type="NetBSD"
4017     llvm_cv_platform_type="Unix" ;;
4018   *-*-dragonfly*)
4019     llvm_cv_link_all_option="-Wl,--whole-archive"
4020     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4021     llvm_cv_os_type="DragonFly"
4022     llvm_cv_platform_type="Unix" ;;
4023   *-*-bitrig*)
4024     llvm_cv_link_all_option="-Wl,--whole-archive"
4025     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4026     llvm_cv_os_type="Bitrig"
4027     llvm_cv_platform_type="Unix" ;;
4028   *-*-hpux*)
4029     llvm_cv_link_all_option="-Wl,--whole-archive"
4030     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4031     llvm_cv_os_type="HP-UX"
4032     llvm_cv_platform_type="Unix" ;;
4033   *-*-interix*)
4034     llvm_cv_link_all_option="-Wl,--whole-archive"
4035     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4036     llvm_cv_os_type="Interix"
4037     llvm_cv_platform_type="Unix" ;;
4038   *-*-linux*)
4039     llvm_cv_link_all_option="-Wl,--whole-archive"
4040     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4041     llvm_cv_os_type="Linux"
4042     llvm_cv_platform_type="Unix" ;;
4043   *-*-gnu*)
4044     llvm_cv_link_all_option="-Wl,--whole-archive"
4045     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4046     llvm_cv_os_type="GNU"
4047     llvm_cv_platform_type="Unix" ;;
4048   *-*-solaris*)
4049     llvm_cv_link_all_option="-Wl,-z,allextract"
4050     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4051     llvm_cv_os_type="SunOS"
4052     llvm_cv_platform_type="Unix" ;;
4053   *-*-win32*)
4054     llvm_cv_link_all_option="-Wl,--whole-archive"
4055     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4056     llvm_cv_os_type="Win32"
4057     llvm_cv_platform_type="Win32" ;;
4058   *-*-mingw*)
4059     llvm_cv_link_all_option="-Wl,--whole-archive"
4060     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4061     llvm_cv_os_type="MingW"
4062     llvm_cv_platform_type="Win32" ;;
4063   *-*-haiku*)
4064     llvm_cv_link_all_option="-Wl,--whole-archive"
4065     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4066     llvm_cv_os_type="Haiku"
4067     llvm_cv_platform_type="Unix" ;;
4068   *-unknown-eabi*)
4069     llvm_cv_link_all_option="-Wl,--whole-archive"
4070     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4071     llvm_cv_os_type="Freestanding"
4072     llvm_cv_platform_type="Unix" ;;
4073   *-unknown-elf*)
4074     llvm_cv_link_all_option="-Wl,--whole-archive"
4075     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4076     llvm_cv_os_type="Freestanding"
4077     llvm_cv_platform_type="Unix" ;;
4078   *)
4079     llvm_cv_link_all_option=""
4080     llvm_cv_no_link_all_option=""
4081     llvm_cv_os_type="Unknown"
4082     llvm_cv_platform_type="Unknown" ;;
4083 esac
4084 fi
4085 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4086 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4087
4088 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4089 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4090 if test "${llvm_cv_target_os_type+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   case $target in
4094   *-*-aix*)
4095     llvm_cv_target_os_type="AIX" ;;
4096   *-*-irix*)
4097     llvm_cv_target_os_type="IRIX" ;;
4098   *-*-cygwin*)
4099     llvm_cv_target_os_type="Cygwin" ;;
4100   *-*-darwin*)
4101     llvm_cv_target_os_type="Darwin" ;;
4102   *-*-minix*)
4103     llvm_cv_target_os_type="Minix" ;;
4104   *-*-freebsd*)
4105     llvm_cv_target_os_type="FreeBSD" ;;
4106   *-*-kfreebsd-gnu)
4107     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4108   *-*-openbsd*)
4109     llvm_cv_target_os_type="OpenBSD" ;;
4110   *-*-netbsd*)
4111     llvm_cv_target_os_type="NetBSD" ;;
4112   *-*-dragonfly*)
4113     llvm_cv_target_os_type="DragonFly" ;;
4114   *-*-bitrig*)
4115     llvm_cv_target_os_type="Bitrig" ;;
4116   *-*-hpux*)
4117     llvm_cv_target_os_type="HP-UX" ;;
4118   *-*-interix*)
4119     llvm_cv_target_os_type="Interix" ;;
4120   *-*-linux*)
4121     llvm_cv_target_os_type="Linux" ;;
4122   *-*-gnu*)
4123     llvm_cv_target_os_type="GNU" ;;
4124   *-*-solaris*)
4125     llvm_cv_target_os_type="SunOS" ;;
4126   *-*-win32*)
4127     llvm_cv_target_os_type="Win32" ;;
4128   *-*-mingw*)
4129     llvm_cv_target_os_type="MingW" ;;
4130   *-*-haiku*)
4131     llvm_cv_target_os_type="Haiku" ;;
4132   *-*-rtems*)
4133     llvm_cv_target_os_type="RTEMS" ;;
4134   *-*-nacl*)
4135     llvm_cv_target_os_type="NativeClient" ;;
4136   *-unknown-eabi*)
4137     llvm_cv_target_os_type="Freestanding" ;;
4138   *-*-ps4)
4139     llvm_cv_target_os_type="PS4" ;;
4140   *)
4141     llvm_cv_target_os_type="Unknown" ;;
4142 esac
4143 fi
4144 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4145 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4146
4147 if test "$llvm_cv_os_type" = "Unknown" ; then
4148   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4149 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4150    { (exit 1); exit 1; }; }
4151 fi
4152
4153 OS=$llvm_cv_os_type
4154
4155 HOST_OS=$llvm_cv_os_type
4156
4157 TARGET_OS=$llvm_cv_target_os_type
4158
4159
4160 LINKALL=$llvm_cv_link_all_option
4161
4162 NOLINKALL=$llvm_cv_no_link_all_option
4163
4164
4165 case $llvm_cv_platform_type in
4166   Unix)
4167
4168 cat >>confdefs.h <<\_ACEOF
4169 #define LLVM_ON_UNIX 1
4170 _ACEOF
4171
4172     LLVM_ON_UNIX=1
4173
4174     LLVM_ON_WIN32=0
4175
4176     ;;
4177   Win32)
4178
4179 cat >>confdefs.h <<\_ACEOF
4180 #define LLVM_ON_WIN32 1
4181 _ACEOF
4182
4183     LLVM_ON_UNIX=0
4184
4185     LLVM_ON_WIN32=1
4186
4187     ;;
4188 esac
4189
4190 { echo "$as_me:$LINENO: checking target architecture" >&5
4191 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4192 if test "${llvm_cv_target_arch+set}" = set; then
4193   echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195   case $target in
4196   i?86-*)                 llvm_cv_target_arch="x86" ;;
4197   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4198   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4199   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4200   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4201   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4202   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4203   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4204   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4205   xcore-*)                llvm_cv_target_arch="XCore" ;;
4206   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4207   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4208   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4209   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4210   *)                      llvm_cv_target_arch="Unknown" ;;
4211 esac
4212 fi
4213 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4214 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4215
4216 if test "$llvm_cv_target_arch" = "Unknown" ; then
4217   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4218 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4219 fi
4220
4221 case "$llvm_cv_target_arch" in
4222     x86)     LLVM_NATIVE_ARCH="X86" ;;
4223     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4224     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4225 esac
4226
4227 ARCH=$llvm_cv_target_arch
4228
4229 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4230
4231
4232 case $host in
4233   i?86-*)                 host_arch="x86" ;;
4234   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4235   sparc*-*)               host_arch="Sparc" ;;
4236   powerpc*-*)             host_arch="PowerPC" ;;
4237   arm64*-*)               host_arch="AArch64" ;;
4238   arm*-*)                 host_arch="ARM" ;;
4239   aarch64*-*)             host_arch="AArch64" ;;
4240   mips-* | mips64-*)      host_arch="Mips" ;;
4241   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4242   xcore-*)                host_arch="XCore" ;;
4243   msp430-*)               host_arch="MSP430" ;;
4244   hexagon-*)              host_arch="Hexagon" ;;
4245   s390x-*)                host_arch="SystemZ" ;;
4246   *)                      host_arch="Unknown" ;;
4247 esac
4248
4249 if test "$host_arch" = "Unknown" ; then
4250   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4251 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4252 fi
4253
4254 HOST_ARCH=$host_arch
4255
4256
4257 if test "$cross_compiling" = yes; then
4258   LLVM_CROSS_COMPILING=1
4259
4260
4261 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4262 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4263 if test "${ac_cv_build_exeext+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4267   ac_cv_build_exeext=.exe
4268 else
4269   ac_build_prefix=${build_alias}-
4270
4271   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4272 set dummy ${ac_build_prefix}gcc; ac_word=$2
4273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4275 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4276   echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278   if test -n "$BUILD_CC"; then
4279   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4283 do
4284   IFS=$as_save_IFS
4285   test -z "$as_dir" && as_dir=.
4286   for ac_exec_ext in '' $ac_executable_extensions; do
4287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4288     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290     break 2
4291   fi
4292 done
4293 done
4294 IFS=$as_save_IFS
4295
4296 fi
4297 fi
4298 BUILD_CC=$ac_cv_prog_BUILD_CC
4299 if test -n "$BUILD_CC"; then
4300   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4301 echo "${ECHO_T}$BUILD_CC" >&6; }
4302 else
4303   { echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6; }
4305 fi
4306
4307
4308   if test -z "$BUILD_CC"; then
4309      # Extract the first word of "gcc", so it can be a program name with args.
4310 set dummy gcc; ac_word=$2
4311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4313 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   if test -n "$BUILD_CC"; then
4317   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324   for ac_exec_ext in '' $ac_executable_extensions; do
4325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4326     ac_cv_prog_BUILD_CC="gcc"
4327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331 done
4332 IFS=$as_save_IFS
4333
4334 fi
4335 fi
4336 BUILD_CC=$ac_cv_prog_BUILD_CC
4337 if test -n "$BUILD_CC"; then
4338   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4339 echo "${ECHO_T}$BUILD_CC" >&6; }
4340 else
4341   { echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6; }
4343 fi
4344
4345
4346      if test -z "$BUILD_CC"; then
4347        # Extract the first word of "cc", so it can be a program name with args.
4348 set dummy cc; ac_word=$2
4349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4351 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   if test -n "$BUILD_CC"; then
4355   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4356 else
4357   ac_prog_rejected=no
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363   for ac_exec_ext in '' $ac_executable_extensions; do
4364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4365     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4366        ac_prog_rejected=yes
4367        continue
4368      fi
4369     ac_cv_prog_BUILD_CC="cc"
4370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377 if test $ac_prog_rejected = yes; then
4378   # We found a bogon in the path, so make sure we never use it.
4379   set dummy $ac_cv_prog_BUILD_CC
4380   shift
4381   if test $# != 0; then
4382     # We chose a different compiler from the bogus one.
4383     # However, it has the same basename, so the bogon will be chosen
4384     # first if we set BUILD_CC to just the basename; use the full file name.
4385     shift
4386     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4387   fi
4388 fi
4389 fi
4390 fi
4391 BUILD_CC=$ac_cv_prog_BUILD_CC
4392 if test -n "$BUILD_CC"; then
4393   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4394 echo "${ECHO_T}$BUILD_CC" >&6; }
4395 else
4396   { echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6; }
4398 fi
4399
4400
4401      fi
4402   fi
4403   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4404 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4405    { (exit 1); exit 1; }; }
4406   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4407   rm -f conftest*
4408   echo 'int main () { return 0; }' > conftest.$ac_ext
4409   ac_cv_build_exeext=
4410   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4411   (eval $ac_build_link) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }; then
4415     for file in conftest.*; do
4416       case $file in
4417       *.c | *.o | *.obj | *.dSYM) ;;
4418       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4419       esac
4420     done
4421   else
4422     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4423 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4424    { (exit 1); exit 1; }; }
4425   fi
4426   rm -f conftest*
4427   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4428 fi
4429 fi
4430
4431 BUILD_EXEEXT=""
4432 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4433 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4434 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4435 ac_build_exeext=$BUILD_EXEEXT
4436
4437   ac_build_prefix=${build_alias}-
4438   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4439 set dummy ${ac_build_prefix}g++; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   if test -n "$BUILD_CXX"; then
4446   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453   for ac_exec_ext in '' $ac_executable_extensions; do
4454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4455     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4466 if test -n "$BUILD_CXX"; then
4467   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4468 echo "${ECHO_T}$BUILD_CXX" >&6; }
4469 else
4470   { echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6; }
4472 fi
4473
4474
4475   if test -z "$BUILD_CXX"; then
4476      # Extract the first word of "g++", so it can be a program name with args.
4477 set dummy g++; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   if test -n "$BUILD_CXX"; then
4484   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_exec_ext in '' $ac_executable_extensions; do
4492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4493     ac_cv_prog_BUILD_CXX="g++"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4500
4501 fi
4502 fi
4503 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4504 if test -n "$BUILD_CXX"; then
4505   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4506 echo "${ECHO_T}$BUILD_CXX" >&6; }
4507 else
4508   { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4510 fi
4511
4512
4513      if test -z "$BUILD_CXX"; then
4514        # Extract the first word of "c++", so it can be a program name with args.
4515 set dummy c++; ac_word=$2
4516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4518 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   if test -n "$BUILD_CXX"; then
4522   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4523 else
4524   ac_prog_rejected=no
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530   for ac_exec_ext in '' $ac_executable_extensions; do
4531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4532     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4533        ac_prog_rejected=yes
4534        continue
4535      fi
4536     ac_cv_prog_BUILD_CXX="c++"
4537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541 done
4542 IFS=$as_save_IFS
4543
4544 if test $ac_prog_rejected = yes; then
4545   # We found a bogon in the path, so make sure we never use it.
4546   set dummy $ac_cv_prog_BUILD_CXX
4547   shift
4548   if test $# != 0; then
4549     # We chose a different compiler from the bogus one.
4550     # However, it has the same basename, so the bogon will be chosen
4551     # first if we set BUILD_CXX to just the basename; use the full file name.
4552     shift
4553     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4554   fi
4555 fi
4556 fi
4557 fi
4558 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4559 if test -n "$BUILD_CXX"; then
4560   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4561 echo "${ECHO_T}$BUILD_CXX" >&6; }
4562 else
4563   { echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6; }
4565 fi
4566
4567
4568      fi
4569   fi
4570 else
4571   LLVM_CROSS_COMPILING=0
4572
4573 fi
4574
4575 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4576   cvsbuild="yes"
4577   optimize="no"
4578   CVSBUILD=CVSBUILD=1
4579
4580 else
4581   cvsbuild="no"
4582   optimize="yes"
4583 fi
4584
4585
4586 # Check whether --enable-libcpp was given.
4587 if test "${enable_libcpp+set}" = set; then
4588   enableval=$enable_libcpp;
4589 else
4590   enableval=default
4591 fi
4592
4593 case "$enableval" in
4594   yes) ENABLE_LIBCPP=1
4595  ;;
4596   no)  ENABLE_LIBCPP=0
4597  ;;
4598   default) ENABLE_LIBCPP=0
4599 ;;
4600   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4601 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4602    { (exit 1); exit 1; }; } ;;
4603 esac
4604
4605 # Check whether --enable-compiler-version-checks was given.
4606 if test "${enable_compiler_version_checks+set}" = set; then
4607   enableval=$enable_compiler_version_checks;
4608 else
4609   enableval=default
4610 fi
4611
4612 case "$enableval" in
4613   no)
4614     ;;
4615   yes|default)
4616     ac_ext=cpp
4617 ac_cpp='$CXXCPP $CPPFLAGS'
4618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4621
4622     case "$llvm_cv_cxx_compiler" in
4623     clang)
4624       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4625 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4626       cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h.  */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h.  */
4632
4633 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4634 #error This version of Clang is too old to build LLVM
4635 #endif
4636
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4640 case "(($ac_try" in
4641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642   *) ac_try_echo=$ac_try;;
4643 esac
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645   (eval "$ac_compile") 2>conftest.er1
4646   ac_status=$?
4647   grep -v '^ *+' conftest.er1 >conftest.err
4648   rm -f conftest.er1
4649   cat conftest.err >&5
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); } &&
4652          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4653   { (case "(($ac_try" in
4654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655   *) ac_try_echo=$ac_try;;
4656 esac
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658   (eval "$ac_try") 2>&5
4659   ac_status=$?
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); }; } &&
4662          { ac_try='test -s conftest.$ac_objext'
4663   { (case "(($ac_try" in
4664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665   *) ac_try_echo=$ac_try;;
4666 esac
4667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4668   (eval "$ac_try") 2>&5
4669   ac_status=$?
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); }; }; then
4672   { echo "$as_me:$LINENO: result: yes" >&5
4673 echo "${ECHO_T}yes" >&6; }
4674 else
4675   echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678         { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4680            { { echo "$as_me:$LINENO: error:
4681 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4682 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4683 bypass these sanity checks." >&5
4684 echo "$as_me: error:
4685 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4686 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4687 bypass these sanity checks." >&2;}
4688    { (exit 1); exit 1; }; }
4689 fi
4690
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692
4693                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4694         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4695 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4696         llvm_cv_old_cxxflags="$CXXFLAGS"
4697         CXXFLAGS="$CXXFLAGS -std=c++0x"
4698         cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h.  */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h.  */
4704
4705 #include <atomic>
4706 std::atomic<float> x(0.0f);
4707 int main() { return (float)x; }
4708
4709 _ACEOF
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (ac_try="$ac_link"
4712 case "(($ac_try" in
4713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714   *) ac_try_echo=$ac_try;;
4715 esac
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717   (eval "$ac_link") 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } &&
4724          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4725   { (case "(($ac_try" in
4726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727   *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730   (eval "$ac_try") 2>&5
4731   ac_status=$?
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); }; } &&
4734          { ac_try='test -s conftest$ac_exeext'
4735   { (case "(($ac_try" in
4736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737   *) ac_try_echo=$ac_try;;
4738 esac
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740   (eval "$ac_try") 2>&5
4741   ac_status=$?
4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); }; }; then
4744   { echo "$as_me:$LINENO: result: yes" >&5
4745 echo "${ECHO_T}yes" >&6; }
4746 else
4747   echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750         { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4752              { { echo "$as_me:$LINENO: error:
4753 We detected a missing feature in the standard C++ library that was known to be
4754 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4755 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4756 than 4.7. You will need to update your system and ensure Clang uses the newer
4757 standard library.
4758
4759 If this error is incorrect or you need to force things to work, you may pass
4760 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4761 echo "$as_me: error:
4762 We detected a missing feature in the standard C++ library that was known to be
4763 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4764 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4765 than 4.7. You will need to update your system and ensure Clang uses the newer
4766 standard library.
4767
4768 If this error is incorrect or you need to force things to work, you may pass
4769 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4770    { (exit 1); exit 1; }; }
4771 fi
4772
4773 rm -f core conftest.err conftest.$ac_objext \
4774       conftest$ac_exeext conftest.$ac_ext
4775         CXXFLAGS="$llvm_cv_old_cxxflags"
4776       fi
4777       ;;
4778     gcc)
4779       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4780 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4781       cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h.  */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h.  */
4787
4788 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4789 #error This version of GCC is too old to build LLVM
4790 #endif
4791
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
4795 case "(($ac_try" in
4796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797   *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800   (eval "$ac_compile") 2>conftest.er1
4801   ac_status=$?
4802   grep -v '^ *+' conftest.er1 >conftest.err
4803   rm -f conftest.er1
4804   cat conftest.err >&5
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); } &&
4807          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4808   { (case "(($ac_try" in
4809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810   *) ac_try_echo=$ac_try;;
4811 esac
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813   (eval "$ac_try") 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); }; } &&
4817          { ac_try='test -s conftest.$ac_objext'
4818   { (case "(($ac_try" in
4819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820   *) ac_try_echo=$ac_try;;
4821 esac
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823   (eval "$ac_try") 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; }; then
4827   { echo "$as_me:$LINENO: result: yes" >&5
4828 echo "${ECHO_T}yes" >&6; }
4829 else
4830   echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833         { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835            { { echo "$as_me:$LINENO: error:
4836 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4837 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4838 bypass these sanity checks." >&5
4839 echo "$as_me: error:
4840 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4841 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4842 bypass these sanity checks." >&2;}
4843    { (exit 1); exit 1; }; }
4844 fi
4845
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847       ;;
4848     unknown)
4849       ;;
4850     esac
4851     ac_ext=c
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856
4857     ;;
4858   *)
4859     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4860 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4861    { (exit 1); exit 1; }; }
4862     ;;
4863 esac
4864
4865 # Check whether --enable-cxx1y was given.
4866 if test "${enable_cxx1y+set}" = set; then
4867   enableval=$enable_cxx1y;
4868 else
4869   enableval=default
4870 fi
4871
4872 case "$enableval" in
4873   yes) ENABLE_CXX1Y=1
4874  ;;
4875   no)  ENABLE_CXX1Y=0
4876  ;;
4877   default) ENABLE_CXX1Y=0
4878 ;;
4879   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4880 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4881    { (exit 1); exit 1; }; } ;;
4882 esac
4883
4884 # Check whether --enable-split-dwarf was given.
4885 if test "${enable_split_dwarf+set}" = set; then
4886   enableval=$enable_split_dwarf;
4887 else
4888   enableval=default
4889 fi
4890
4891 case "$enableval" in
4892   yes) ENABLE_SPLIT_DWARF=1
4893  ;;
4894   no)  ENABLE_SPLIT_DWARF=0
4895  ;;
4896   default) ENABLE_SPLIT_DWARF=0
4897 ;;
4898   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4899 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4900    { (exit 1); exit 1; }; } ;;
4901 esac
4902
4903 clang_arcmt="yes"
4904 # Check whether --enable-clang-arcmt was given.
4905 if test "${enable_clang_arcmt+set}" = set; then
4906   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4907 else
4908   enableval="yes"
4909 fi
4910
4911 case "$enableval" in
4912   yes) ENABLE_CLANG_ARCMT=1
4913  ;;
4914   no)  ENABLE_CLANG_ARCMT=0
4915  ;;
4916   default) ENABLE_CLANG_ARCMT=1
4917 ;;
4918   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4920    { (exit 1); exit 1; }; } ;;
4921 esac
4922
4923 clang_plugin_support="yes"
4924 # Check whether --enable-clang-plugin-support was given.
4925 if test "${enable_clang_plugin_support+set}" = set; then
4926   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4927 else
4928   enableval="yes"
4929 fi
4930
4931 case "$enableval" in
4932   yes) CLANG_PLUGIN_SUPPORT=1
4933  ;;
4934   no)  CLANG_PLUGIN_SUPPORT=0
4935  ;;
4936   default) CLANG_PLUGIN_SUPPORT=1
4937 ;;
4938   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4939 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4940    { (exit 1); exit 1; }; } ;;
4941 esac
4942
4943 clang_static_analyzer="yes"
4944 # Check whether --enable-clang-static-analyzer was given.
4945 if test "${enable_clang_static_analyzer+set}" = set; then
4946   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4947 else
4948   enableval="yes"
4949 fi
4950
4951 case "$enableval" in
4952   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4953  ;;
4954   no)
4955     if test ${clang_arcmt} != "no" ; then
4956       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4957 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4958    { (exit 1); exit 1; }; }
4959     fi
4960     ENABLE_CLANG_STATIC_ANALYZER=0
4961
4962     ;;
4963   default) ENABLE_CLANG_STATIC_ANALYZER=1
4964 ;;
4965   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4967    { (exit 1); exit 1; }; } ;;
4968 esac
4969
4970 # Check whether --enable-optimized was given.
4971 if test "${enable_optimized+set}" = set; then
4972   enableval=$enable_optimized;
4973 else
4974   enableval=$optimize
4975 fi
4976
4977 if test ${enableval} = "no" ; then
4978   ENABLE_OPTIMIZED=
4979
4980 else
4981   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4982
4983 fi
4984
4985 # Check whether --enable-profiling was given.
4986 if test "${enable_profiling+set}" = set; then
4987   enableval=$enable_profiling;
4988 else
4989   enableval="no"
4990 fi
4991
4992 if test ${enableval} = "no" ; then
4993   ENABLE_PROFILING=
4994
4995 else
4996   ENABLE_PROFILING=ENABLE_PROFILING=1
4997
4998 fi
4999
5000 # Check whether --enable-assertions was given.
5001 if test "${enable_assertions+set}" = set; then
5002   enableval=$enable_assertions;
5003 else
5004   enableval="yes"
5005 fi
5006
5007 if test ${enableval} = "yes" ; then
5008   DISABLE_ASSERTIONS=
5009
5010   assertions_enabled="yes"
5011 else
5012   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5013
5014   assertions_enabled="no"
5015 fi
5016
5017 # Check whether --enable-werror was given.
5018 if test "${enable_werror+set}" = set; then
5019   enableval=$enable_werror;
5020 else
5021   enableval="no"
5022 fi
5023
5024 case "$enableval" in
5025   yes) ENABLE_WERROR=1
5026  ;;
5027   no)  ENABLE_WERROR=0
5028  ;;
5029   default) ENABLE_WERROR=0
5030 ;;
5031   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5032 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5033    { (exit 1); exit 1; }; } ;;
5034 esac
5035
5036 # Check whether --enable-expensive-checks was given.
5037 if test "${enable_expensive_checks+set}" = set; then
5038   enableval=$enable_expensive_checks;
5039 else
5040   enableval="no"
5041 fi
5042
5043 if test ${enableval} = "yes" ; then
5044   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5045
5046   EXPENSIVE_CHECKS=yes
5047
5048 else
5049   ENABLE_EXPENSIVE_CHECKS=
5050
5051   EXPENSIVE_CHECKS=no
5052
5053 fi
5054
5055 # Check whether --enable-abi-breaking-checks was given.
5056 if test "${enable_abi_breaking_checks+set}" = set; then
5057   enableval=$enable_abi_breaking_checks;
5058 else
5059   enableval="with-asserts"
5060 fi
5061
5062 case "$enableval" in
5063   with-asserts)  if test ${assertions_enabled} = "yes" ; then
5064
5065 cat >>confdefs.h <<\_ACEOF
5066 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5067 _ACEOF
5068
5069                    ENABLE_ABI_BREAKING_CHECKS=1
5070
5071                  else
5072                    ENABLE_ABI_BREAKING_CHECKS=0
5073
5074                  fi ;;
5075   yes)
5076
5077 cat >>confdefs.h <<\_ACEOF
5078 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5079 _ACEOF
5080
5081                  ENABLE_ABI_BREAKING_CHECKS=1
5082
5083                  ;;
5084   no)
5085                  ENABLE_ABI_BREAKING_CHECKS=0
5086
5087                  ;;
5088   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&5
5089 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5090    { (exit 1); exit 1; }; }
5091 esac
5092
5093 # Check whether --enable-debug-runtime was given.
5094 if test "${enable_debug_runtime+set}" = set; then
5095   enableval=$enable_debug_runtime;
5096 else
5097   enableval=no
5098 fi
5099
5100 if test ${enableval} = "no" ; then
5101   DEBUG_RUNTIME=
5102
5103 else
5104   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5105
5106 fi
5107
5108 # Check whether --enable-debug-symbols was given.
5109 if test "${enable_debug_symbols+set}" = set; then
5110   enableval=$enable_debug_symbols;
5111 else
5112   enableval=no
5113 fi
5114
5115 if test ${enableval} = "no" ; then
5116   DEBUG_SYMBOLS=
5117
5118 else
5119   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5120
5121 fi
5122
5123 # Check whether --enable-keep-symbols was given.
5124 if test "${enable_keep_symbols+set}" = set; then
5125   enableval=$enable_keep_symbols;
5126 else
5127   enableval=no
5128 fi
5129
5130 if test ${enableval} = "no" ; then
5131   KEEP_SYMBOLS=
5132
5133 else
5134   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5135
5136 fi
5137
5138 # Check whether --enable-jit was given.
5139 if test "${enable_jit+set}" = set; then
5140   enableval=$enable_jit;
5141 else
5142   enableval=default
5143 fi
5144
5145 if test ${enableval} = "no"
5146 then
5147   JIT=
5148
5149 else
5150   case "$llvm_cv_target_arch" in
5151     x86)         TARGET_HAS_JIT=1
5152  ;;
5153     Sparc)       TARGET_HAS_JIT=0
5154  ;;
5155     PowerPC)     TARGET_HAS_JIT=1
5156  ;;
5157     x86_64)      TARGET_HAS_JIT=1
5158  ;;
5159     ARM)         TARGET_HAS_JIT=1
5160  ;;
5161     Mips)        TARGET_HAS_JIT=1
5162  ;;
5163     XCore)       TARGET_HAS_JIT=0
5164  ;;
5165     MSP430)      TARGET_HAS_JIT=0
5166  ;;
5167     Hexagon)     TARGET_HAS_JIT=0
5168  ;;
5169     NVPTX)       TARGET_HAS_JIT=0
5170  ;;
5171     SystemZ)     TARGET_HAS_JIT=1
5172  ;;
5173     *)           TARGET_HAS_JIT=0
5174  ;;
5175   esac
5176 fi
5177
5178 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5179 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5180
5181
5182 # Check whether --enable-docs was given.
5183 if test "${enable_docs+set}" = set; then
5184   enableval=$enable_docs;
5185 else
5186   enableval=default
5187 fi
5188
5189 case "$enableval" in
5190   yes) ENABLE_DOCS=1
5191  ;;
5192   no)  ENABLE_DOCS=0
5193  ;;
5194   default) ENABLE_DOCS=1
5195  ;;
5196   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5197 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5198    { (exit 1); exit 1; }; } ;;
5199 esac
5200
5201 # Check whether --enable-doxygen was given.
5202 if test "${enable_doxygen+set}" = set; then
5203   enableval=$enable_doxygen;
5204 else
5205   enableval=default
5206 fi
5207
5208 case "$enableval" in
5209   yes) ENABLE_DOXYGEN=1
5210  ;;
5211   no|default) ENABLE_DOXYGEN=0
5212  ;;
5213   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5215    { (exit 1); exit 1; }; } ;;
5216 esac
5217
5218 # Check whether --enable-doxygen-search was given.
5219 if test "${enable_doxygen_search+set}" = set; then
5220   enableval=$enable_doxygen_search;
5221 else
5222   enableval=default
5223 fi
5224
5225 ENABLE_DOXYGEN_SEARCH="$enableval"
5226
5227 case "$enableval" in
5228   yes|no|default) ;;
5229   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5231    { (exit 1); exit 1; }; } ;;
5232 esac
5233
5234 # Check whether --enable-doxygen-external-search was given.
5235 if test "${enable_doxygen_external_search+set}" = set; then
5236   enableval=$enable_doxygen_external_search;
5237 else
5238   enableval=default
5239 fi
5240
5241 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5242
5243 case "$enableval" in
5244   yes)
5245             case "$ENABLE_DOXYGEN_SEARCH" in
5246       yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5247       no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5248 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5249    { (exit 1); exit 1; }; } ;;
5250     esac
5251     ;;
5252   no|default) ;;
5253   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5255    { (exit 1); exit 1; }; } ;;
5256 esac
5257
5258
5259 # Check whether --with-doxygen-search-engine-url was given.
5260 if test "${with_doxygen_search_engine_url+set}" = set; then
5261   withval=$with_doxygen_search_engine_url;
5262 fi
5263
5264 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5265
5266
5267 # Check whether --with-doxygen-search-mappings was given.
5268 if test "${with_doxygen_search_mappings+set}" = set; then
5269   withval=$with_doxygen_search_mappings;
5270 fi
5271
5272 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5273
5274 case "$ENABLE_DOXYGEN_SEARCH" in
5275   yes)
5276     if test "$ENABLE_DOXYGEN" = "0" ; then
5277       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5278 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5279    { (exit 1); exit 1; }; }
5280     fi
5281
5282     enable_searchengine=YES
5283
5284
5285     case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5286       yes)
5287         enable_external_search=YES
5288
5289         enable_server_based_search=YES
5290
5291         searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5292
5293         extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5294
5295         ;;
5296
5297       no|default)
5298         enable_external_search=NO
5299
5300         enable_server_based_search=NO
5301
5302
5303
5304         ;;
5305     esac
5306     ;;
5307
5308   no|default)
5309     enable_searchengine=NO
5310
5311
5312     enable_server_based_search=NO
5313
5314     enable_external_search=NO
5315
5316
5317     ;;
5318
5319   *)
5320     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5321 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5322    { (exit 1); exit 1; }; }
5323     ;;
5324 esac
5325
5326 # Check whether --enable-doxygen-qt-help was given.
5327 if test "${enable_doxygen_qt_help+set}" = set; then
5328   enableval=$enable_doxygen_qt_help;
5329 else
5330   enableval=default
5331 fi
5332
5333 case "$enableval" in
5334   yes)
5335     if test "$ENABLE_DOXYGEN" = "0" ; then
5336       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5337 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5338    { (exit 1); exit 1; }; }
5339     fi
5340
5341     # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5342 set dummy qhelpgenerator; ac_word=$2
5343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   case $QHELPGENERATOR in
5349   [\\/]* | ?:[\\/]*)
5350   ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5351   ;;
5352   *)
5353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356   IFS=$as_save_IFS
5357   test -z "$as_dir" && as_dir=.
5358   for ac_exec_ext in '' $ac_executable_extensions; do
5359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5360     ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362     break 2
5363   fi
5364 done
5365 done
5366 IFS=$as_save_IFS
5367
5368   test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5369   ;;
5370 esac
5371 fi
5372 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5373 if test -n "$QHELPGENERATOR"; then
5374   { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5375 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5376 else
5377   { echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6; }
5379 fi
5380
5381
5382
5383         llvm_doxygen_generate_qhp=YES
5384
5385     llvm_doxygen_qch_filename=org.llvm.qch
5386
5387     llvm_doxygen_qhp_namespace=org.llvm
5388
5389     llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5390
5391     llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5392
5393     llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5394
5395
5396         clang_doxygen_generate_qhp=YES
5397
5398     clang_doxygen_qch_filename=org.llvm.clang.qch
5399
5400     clang_doxygen_qhp_namespace=org.llvm.clang
5401
5402     clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5403
5404     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5405
5406     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5407
5408     ;;
5409
5410   no|default)
5411     llvm_doxygen_generate_qhp=NO
5412
5413
5414
5415
5416
5417
5418
5419     clang_doxygen_generate_qhp=NO
5420
5421
5422
5423
5424     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5425
5426     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5427
5428     ;;
5429
5430   *)
5431     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5433    { (exit 1); exit 1; }; } ;;
5434 esac
5435
5436 # Check whether --enable-threads was given.
5437 if test "${enable_threads+set}" = set; then
5438   enableval=$enable_threads;
5439 else
5440   enableval=default
5441 fi
5442
5443 case "$enableval" in
5444   yes) LLVM_ENABLE_THREADS=1
5445  ;;
5446   no)  LLVM_ENABLE_THREADS=0
5447  ;;
5448   default) LLVM_ENABLE_THREADS=1
5449  ;;
5450   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5451 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5452    { (exit 1); exit 1; }; } ;;
5453 esac
5454
5455 cat >>confdefs.h <<_ACEOF
5456 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5457 _ACEOF
5458
5459
5460 # Check whether --enable-pthreads was given.
5461 if test "${enable_pthreads+set}" = set; then
5462   enableval=$enable_pthreads;
5463 else
5464   enableval=default
5465 fi
5466
5467 case "$enableval" in
5468   yes) ENABLE_PTHREADS=1
5469  ;;
5470   no)  ENABLE_PTHREADS=0
5471  ;;
5472   default) ENABLE_PTHREADS=1
5473  ;;
5474   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5475 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5476    { (exit 1); exit 1; }; } ;;
5477 esac
5478
5479 # Check whether --enable-zlib was given.
5480 if test "${enable_zlib+set}" = set; then
5481   enableval=$enable_zlib;
5482 else
5483   enableval=default
5484 fi
5485
5486 case "$enableval" in
5487   yes) LLVM_ENABLE_ZLIB=1
5488  ;;
5489   no)  LLVM_ENABLE_ZLIB=0
5490  ;;
5491   default) LLVM_ENABLE_ZLIB=1
5492  ;;
5493   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5495    { (exit 1); exit 1; }; } ;;
5496 esac
5497
5498 cat >>confdefs.h <<_ACEOF
5499 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5500 _ACEOF
5501
5502
5503 # Check whether --enable-pic was given.
5504 if test "${enable_pic+set}" = set; then
5505   enableval=$enable_pic;
5506 else
5507   enableval=default
5508 fi
5509
5510 case "$enableval" in
5511   yes) ENABLE_PIC=1
5512  ;;
5513   no)  ENABLE_PIC=0
5514  ;;
5515   default) ENABLE_PIC=1
5516  ;;
5517   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5518 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5519    { (exit 1); exit 1; }; } ;;
5520 esac
5521
5522 cat >>confdefs.h <<_ACEOF
5523 #define ENABLE_PIC $ENABLE_PIC
5524 _ACEOF
5525
5526
5527 # Check whether --enable-shared was given.
5528 if test "${enable_shared+set}" = set; then
5529   enableval=$enable_shared;
5530 else
5531   enableval=default
5532 fi
5533
5534 case "$enableval" in
5535   yes) ENABLE_SHARED=1
5536  ;;
5537   no)  ENABLE_SHARED=0
5538  ;;
5539   default) ENABLE_SHARED=0
5540  ;;
5541   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5542 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5543    { (exit 1); exit 1; }; } ;;
5544 esac
5545
5546 # Check whether --enable-embed-stdcxx was given.
5547 if test "${enable_embed_stdcxx+set}" = set; then
5548   enableval=$enable_embed_stdcxx;
5549 else
5550   enableval=default
5551 fi
5552
5553 case "$enableval" in
5554   yes) ENABLE_EMBED_STDCXX=1
5555  ;;
5556   no)  ENABLE_EMBED_STDCXX=0
5557  ;;
5558   default) ENABLE_EMBED_STDCXX=0
5559  ;;
5560   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5561 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5562    { (exit 1); exit 1; }; } ;;
5563 esac
5564
5565 # Check whether --enable-timestamps was given.
5566 if test "${enable_timestamps+set}" = set; then
5567   enableval=$enable_timestamps;
5568 else
5569   enableval=default
5570 fi
5571
5572 case "$enableval" in
5573   yes) ENABLE_TIMESTAMPS=1
5574  ;;
5575   no)  ENABLE_TIMESTAMPS=0
5576  ;;
5577   default) ENABLE_TIMESTAMPS=1
5578  ;;
5579   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5580 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5581    { (exit 1); exit 1; }; } ;;
5582 esac
5583
5584 cat >>confdefs.h <<_ACEOF
5585 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5586 _ACEOF
5587
5588
5589 # Check whether --enable-backtraces was given.
5590 if test "${enable_backtraces+set}" = set; then
5591   enableval=$enable_backtraces; case "$enableval" in
5592     yes) llvm_cv_enable_backtraces="yes" ;;
5593     no)  llvm_cv_enable_backtraces="no"  ;;
5594     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5595 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5596    { (exit 1); exit 1; }; } ;;
5597   esac
5598 else
5599   llvm_cv_enable_backtraces="yes"
5600 fi
5601
5602 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5603
5604 cat >>confdefs.h <<\_ACEOF
5605 #define ENABLE_BACKTRACES 1
5606 _ACEOF
5607
5608 fi
5609
5610 # Check whether --enable-crash-overrides was given.
5611 if test "${enable_crash_overrides+set}" = set; then
5612   enableval=$enable_crash_overrides; case "$enableval" in
5613     yes) llvm_cv_enable_crash_overrides="yes" ;;
5614     no)  llvm_cv_enable_crash_overrides="no"  ;;
5615     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5616 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5617    { (exit 1); exit 1; }; } ;;
5618   esac
5619 else
5620   llvm_cv_enable_crash_overrides="yes"
5621 fi
5622
5623 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5624
5625 cat >>confdefs.h <<\_ACEOF
5626 #define ENABLE_CRASH_OVERRIDES 1
5627 _ACEOF
5628
5629 fi
5630
5631 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5632 ALL_TARGETS=$ALL_TARGETS
5633
5634
5635 TARGETS_TO_BUILD=""
5636 # Check whether --enable-targets was given.
5637 if test "${enable_targets+set}" = set; then
5638   enableval=$enable_targets;
5639 else
5640   enableval=all
5641 fi
5642
5643 if test "$enableval" = host-only ; then
5644   enableval=host
5645 fi
5646 case "$enableval" in
5647   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5648   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5649       case "$a_target" in
5650         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5651         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5652         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5653         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5654         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5655         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5656         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5657         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5658         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5659         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5660         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5661         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5662         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5663         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5664         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5665         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5666         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5667         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5668         host) case "$llvm_cv_target_arch" in
5669             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5670             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5671             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5672             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5673             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5674             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5675             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5676             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5677             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5678             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5679             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5680             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5681             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5682 echo "$as_me: error: Can not set target to build" >&2;}
5683    { (exit 1); exit 1; }; } ;;
5684           esac ;;
5685         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5686 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5687    { (exit 1); exit 1; }; } ;;
5688       esac
5689   done
5690   ;;
5691 esac
5692
5693 # Check whether --enable-experimental-targets was given.
5694 if test "${enable_experimental_targets+set}" = set; then
5695   enableval=$enable_experimental_targets;
5696 else
5697   enableval=disable
5698 fi
5699
5700
5701 if test ${enableval} != "disable"
5702 then
5703   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5704 fi
5705
5706 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5707
5708
5709 for a_target in $TARGETS_TO_BUILD; do
5710   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5711
5712 cat >>confdefs.h <<_ACEOF
5713 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5714 _ACEOF
5715
5716     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5717     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5718     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5719     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5720     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5721       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5722     fi
5723     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5724       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5725     fi
5726
5727 cat >>confdefs.h <<_ACEOF
5728 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5729 _ACEOF
5730
5731
5732 cat >>confdefs.h <<_ACEOF
5733 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5734 _ACEOF
5735
5736
5737 cat >>confdefs.h <<_ACEOF
5738 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5739 _ACEOF
5740
5741
5742 cat >>confdefs.h <<_ACEOF
5743 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5744 _ACEOF
5745
5746     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5747
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5750 _ACEOF
5751
5752     fi
5753     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5754
5755 cat >>confdefs.h <<_ACEOF
5756 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5757 _ACEOF
5758
5759     fi
5760   fi
5761 done
5762
5763 LLVM_ENUM_TARGETS=""
5764 LLVM_ENUM_ASM_PRINTERS=""
5765 LLVM_ENUM_ASM_PARSERS=""
5766 LLVM_ENUM_DISASSEMBLERS=""
5767 for target_to_build in $TARGETS_TO_BUILD; do
5768   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5769   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5770     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5771   fi
5772   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5773     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5774   fi
5775   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5776     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5777   fi
5778 done
5779
5780
5781
5782
5783
5784
5785 # Check whether --with-optimize-option was given.
5786 if test "${with_optimize_option+set}" = set; then
5787   withval=$with_optimize_option;
5788 else
5789   withval=default
5790 fi
5791
5792 { echo "$as_me:$LINENO: checking optimization flags" >&5
5793 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5794 case "$withval" in
5795   default)
5796     case "$llvm_cv_os_type" in
5797     FreeBSD) optimize_option=-O2 ;;
5798     MingW) optimize_option=-O2 ;;
5799     *)     optimize_option=-O3 ;;
5800     esac ;;
5801   *) optimize_option="$withval" ;;
5802 esac
5803 OPTIMIZE_OPTION=$optimize_option
5804
5805 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5806 echo "${ECHO_T}$optimize_option" >&6; }
5807
5808
5809 # Check whether --with-extra-options was given.
5810 if test "${with_extra_options+set}" = set; then
5811   withval=$with_extra_options;
5812 else
5813   withval=default
5814 fi
5815
5816 case "$withval" in
5817   default) EXTRA_OPTIONS= ;;
5818   *) EXTRA_OPTIONS=$withval ;;
5819 esac
5820 EXTRA_OPTIONS=$EXTRA_OPTIONS
5821
5822
5823
5824 # Check whether --with-extra-ld-options was given.
5825 if test "${with_extra_ld_options+set}" = set; then
5826   withval=$with_extra_ld_options;
5827 else
5828   withval=default
5829 fi
5830
5831 case "$withval" in
5832   default) EXTRA_LD_OPTIONS= ;;
5833   *) EXTRA_LD_OPTIONS=$withval ;;
5834 esac
5835 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5836
5837
5838 # Check whether --enable-bindings was given.
5839 if test "${enable_bindings+set}" = set; then
5840   enableval=$enable_bindings;
5841 else
5842   enableval=default
5843 fi
5844
5845 BINDINGS_TO_BUILD=""
5846 case "$enableval" in
5847   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5848   all ) BINDINGS_TO_BUILD="ocaml" ;;
5849   none | no) BINDINGS_TO_BUILD="" ;;
5850   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5851       case "$a_binding" in
5852         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5853         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5854 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5855    { (exit 1); exit 1; }; } ;;
5856       esac
5857   done
5858   ;;
5859 esac
5860
5861
5862 # Check whether --with-ocaml-libdir was given.
5863 if test "${with_ocaml_libdir+set}" = set; then
5864   withval=$with_ocaml_libdir;
5865 else
5866   withval=auto
5867 fi
5868
5869 case "$withval" in
5870   auto) with_ocaml_libdir="$withval" ;;
5871   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5872   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5873 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5874    { (exit 1); exit 1; }; } ;;
5875 esac
5876
5877
5878 # Check whether --with-clang-srcdir was given.
5879 if test "${with_clang_srcdir+set}" = set; then
5880   withval=$with_clang_srcdir;
5881 else
5882   withval="-"
5883 fi
5884
5885 case "$withval" in
5886   -) clang_src_root="" ;;
5887   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5888   *) clang_src_root="$ac_pwd/$withval" ;;
5889 esac
5890 CLANG_SRC_ROOT=$clang_src_root
5891
5892
5893
5894 # Check whether --with-clang-resource-dir was given.
5895 if test "${with_clang_resource_dir+set}" = set; then
5896   withval=$with_clang_resource_dir;
5897 else
5898   withval=""
5899 fi
5900
5901
5902 cat >>confdefs.h <<_ACEOF
5903 #define CLANG_RESOURCE_DIR "$withval"
5904 _ACEOF
5905
5906
5907
5908 # Check whether --with-c-include-dirs was given.
5909 if test "${with_c_include_dirs+set}" = set; then
5910   withval=$with_c_include_dirs;
5911 else
5912   withval=""
5913 fi
5914
5915
5916 cat >>confdefs.h <<_ACEOF
5917 #define C_INCLUDE_DIRS "$withval"
5918 _ACEOF
5919
5920
5921 # Clang normally uses the system c++ headers and libraries. With this option,
5922 # clang will use the ones provided by a gcc installation instead. This option should
5923 # be passed the same value that was used with --prefix when configuring gcc.
5924
5925 # Check whether --with-gcc-toolchain was given.
5926 if test "${with_gcc_toolchain+set}" = set; then
5927   withval=$with_gcc_toolchain;
5928 else
5929   withval=""
5930 fi
5931
5932
5933 cat >>confdefs.h <<_ACEOF
5934 #define GCC_INSTALL_PREFIX "$withval"
5935 _ACEOF
5936
5937
5938
5939 # Check whether --with-default-sysroot was given.
5940 if test "${with_default_sysroot+set}" = set; then
5941   withval=$with_default_sysroot;
5942 else
5943   withval=""
5944 fi
5945
5946
5947 cat >>confdefs.h <<_ACEOF
5948 #define DEFAULT_SYSROOT "$withval"
5949 _ACEOF
5950
5951
5952
5953 # Check whether --with-clang-default-openmp-runtime was given.
5954 if test "${with_clang_default_openmp_runtime+set}" = set; then
5955   withval=$with_clang_default_openmp_runtime;
5956 else
5957   withval=""
5958 fi
5959
5960
5961 cat >>confdefs.h <<_ACEOF
5962 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5963 _ACEOF
5964
5965
5966
5967 # Check whether --with-binutils-include was given.
5968 if test "${with_binutils_include+set}" = set; then
5969   withval=$with_binutils_include;
5970 else
5971   withval=default
5972 fi
5973
5974 case "$withval" in
5975   default) WITH_BINUTILS_INCDIR=default ;;
5976   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5977   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5978 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5979    { (exit 1); exit 1; }; } ;;
5980 esac
5981 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5982   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5983
5984   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5985      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5986      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5987 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5988    { (exit 1); exit 1; }; };
5989   fi
5990 fi
5991
5992
5993 # Check whether --with-bug-report-url was given.
5994 if test "${with_bug_report_url+set}" = set; then
5995   withval=$with_bug_report_url;
5996 else
5997   withval="http://llvm.org/bugs/"
5998 fi
5999
6000
6001 cat >>confdefs.h <<_ACEOF
6002 #define BUG_REPORT_URL "$withval"
6003 _ACEOF
6004
6005
6006 # Check whether --enable-terminfo was given.
6007 if test "${enable_terminfo+set}" = set; then
6008   enableval=$enable_terminfo; case "$enableval" in
6009     yes) llvm_cv_enable_terminfo="yes" ;;
6010     no)  llvm_cv_enable_terminfo="no"  ;;
6011     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6012 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6013    { (exit 1); exit 1; }; } ;;
6014   esac
6015 else
6016   llvm_cv_enable_terminfo="yes"
6017 fi
6018
6019 case "$llvm_cv_enable_terminfo" in
6020   yes) ENABLE_TERMINFO=1
6021  ;;
6022   no)  ENABLE_TERMINFO=0
6023  ;;
6024 esac
6025
6026 # Check whether --enable-libedit was given.
6027 if test "${enable_libedit+set}" = set; then
6028   enableval=$enable_libedit; case "$enableval" in
6029     yes) llvm_cv_enable_libedit="yes" ;;
6030     no)  llvm_cv_enable_libedit="no"  ;;
6031     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6032 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6033    { (exit 1); exit 1; }; } ;;
6034   esac
6035 else
6036   llvm_cv_enable_libedit="yes"
6037 fi
6038
6039
6040 # Check whether --enable-libffi was given.
6041 if test "${enable_libffi+set}" = set; then
6042   enableval=$enable_libffi; case "$enableval" in
6043     yes) llvm_cv_enable_libffi="yes" ;;
6044     no)  llvm_cv_enable_libffi="no"  ;;
6045     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6046 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6047    { (exit 1); exit 1; }; } ;;
6048   esac
6049 else
6050   llvm_cv_enable_libffi=no
6051 fi
6052
6053
6054
6055 # Check whether --with-internal-prefix was given.
6056 if test "${with_internal_prefix+set}" = set; then
6057   withval=$with_internal_prefix;
6058 else
6059   withval=""
6060 fi
6061
6062 INTERNAL_PREFIX=$withval
6063
6064
6065
6066 { echo "$as_me:$LINENO: checking for GNU make" >&5
6067 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6068 if test "${llvm_cv_gnu_make_command+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   llvm_cv_gnu_make_command=''
6072  for a in "$MAKE" make gmake gnumake ; do
6073   if test -z "$a" ; then continue ; fi ;
6074   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6075   then
6076    llvm_cv_gnu_make_command=$a ;
6077    break;
6078   fi
6079  done
6080 fi
6081 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6082 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6083  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6084    ifGNUmake='' ;
6085  else
6086    ifGNUmake='#' ;
6087    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6088 echo "${ECHO_T}\"Not found\"" >&6; };
6089  fi
6090
6091
6092 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6093 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6094 LN_S=$as_ln_s
6095 if test "$LN_S" = "ln -s"; then
6096   { echo "$as_me:$LINENO: result: yes" >&5
6097 echo "${ECHO_T}yes" >&6; }
6098 else
6099   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6100 echo "${ECHO_T}no, using $LN_S" >&6; }
6101 fi
6102
6103 # Extract the first word of "nm", so it can be a program name with args.
6104 set dummy nm; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_path_NM+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   case $NM in
6111   [\\/]* | ?:[\\/]*)
6112   ac_cv_path_NM="$NM" # Let the user override the test with a path.
6113   ;;
6114   *)
6115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118   IFS=$as_save_IFS
6119   test -z "$as_dir" && as_dir=.
6120   for ac_exec_ext in '' $ac_executable_extensions; do
6121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6122     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124     break 2
6125   fi
6126 done
6127 done
6128 IFS=$as_save_IFS
6129
6130   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6131   ;;
6132 esac
6133 fi
6134 NM=$ac_cv_path_NM
6135 if test -n "$NM"; then
6136   { echo "$as_me:$LINENO: result: $NM" >&5
6137 echo "${ECHO_T}$NM" >&6; }
6138 else
6139   { echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6; }
6141 fi
6142
6143
6144 # Extract the first word of "cmp", so it can be a program name with args.
6145 set dummy cmp; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_path_CMP+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   case $CMP in
6152   [\\/]* | ?:[\\/]*)
6153   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6154   ;;
6155   *)
6156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6158 do
6159   IFS=$as_save_IFS
6160   test -z "$as_dir" && as_dir=.
6161   for ac_exec_ext in '' $ac_executable_extensions; do
6162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6163     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165     break 2
6166   fi
6167 done
6168 done
6169 IFS=$as_save_IFS
6170
6171   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6172   ;;
6173 esac
6174 fi
6175 CMP=$ac_cv_path_CMP
6176 if test -n "$CMP"; then
6177   { echo "$as_me:$LINENO: result: $CMP" >&5
6178 echo "${ECHO_T}$CMP" >&6; }
6179 else
6180   { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6182 fi
6183
6184
6185 # Extract the first word of "cp", so it can be a program name with args.
6186 set dummy cp; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_path_CP+set}" = set; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   case $CP in
6193   [\\/]* | ?:[\\/]*)
6194   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6195   ;;
6196   *)
6197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202   for ac_exec_ext in '' $ac_executable_extensions; do
6203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6213   ;;
6214 esac
6215 fi
6216 CP=$ac_cv_path_CP
6217 if test -n "$CP"; then
6218   { echo "$as_me:$LINENO: result: $CP" >&5
6219 echo "${ECHO_T}$CP" >&6; }
6220 else
6221   { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6223 fi
6224
6225
6226 # Extract the first word of "date", so it can be a program name with args.
6227 set dummy date; ac_word=$2
6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230 if test "${ac_cv_path_DATE+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233   case $DATE in
6234   [\\/]* | ?:[\\/]*)
6235   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6236   ;;
6237   *)
6238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241   IFS=$as_save_IFS
6242   test -z "$as_dir" && as_dir=.
6243   for ac_exec_ext in '' $ac_executable_extensions; do
6244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6245     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247     break 2
6248   fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6254   ;;
6255 esac
6256 fi
6257 DATE=$ac_cv_path_DATE
6258 if test -n "$DATE"; then
6259   { echo "$as_me:$LINENO: result: $DATE" >&5
6260 echo "${ECHO_T}$DATE" >&6; }
6261 else
6262   { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6264 fi
6265
6266
6267 # Extract the first word of "find", so it can be a program name with args.
6268 set dummy find; ac_word=$2
6269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271 if test "${ac_cv_path_FIND+set}" = set; then
6272   echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274   case $FIND in
6275   [\\/]* | ?:[\\/]*)
6276   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6277   ;;
6278   *)
6279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
6282   IFS=$as_save_IFS
6283   test -z "$as_dir" && as_dir=.
6284   for ac_exec_ext in '' $ac_executable_extensions; do
6285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6286     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288     break 2
6289   fi
6290 done
6291 done
6292 IFS=$as_save_IFS
6293
6294   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6295   ;;
6296 esac
6297 fi
6298 FIND=$ac_cv_path_FIND
6299 if test -n "$FIND"; then
6300   { echo "$as_me:$LINENO: result: $FIND" >&5
6301 echo "${ECHO_T}$FIND" >&6; }
6302 else
6303   { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6305 fi
6306
6307
6308 # Extract the first word of "grep", so it can be a program name with args.
6309 set dummy grep; ac_word=$2
6310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6312 if test "${ac_cv_path_GREP+set}" = set; then
6313   echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315   case $GREP in
6316   [\\/]* | ?:[\\/]*)
6317   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6318   ;;
6319   *)
6320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325   for ac_exec_ext in '' $ac_executable_extensions; do
6326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6327     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332 done
6333 IFS=$as_save_IFS
6334
6335   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6336   ;;
6337 esac
6338 fi
6339 GREP=$ac_cv_path_GREP
6340 if test -n "$GREP"; then
6341   { echo "$as_me:$LINENO: result: $GREP" >&5
6342 echo "${ECHO_T}$GREP" >&6; }
6343 else
6344   { echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6; }
6346 fi
6347
6348
6349 # Extract the first word of "mkdir", so it can be a program name with args.
6350 set dummy mkdir; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_path_MKDIR+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   case $MKDIR in
6357   [\\/]* | ?:[\\/]*)
6358   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6359   ;;
6360   *)
6361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364   IFS=$as_save_IFS
6365   test -z "$as_dir" && as_dir=.
6366   for ac_exec_ext in '' $ac_executable_extensions; do
6367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6368     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370     break 2
6371   fi
6372 done
6373 done
6374 IFS=$as_save_IFS
6375
6376   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6377   ;;
6378 esac
6379 fi
6380 MKDIR=$ac_cv_path_MKDIR
6381 if test -n "$MKDIR"; then
6382   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6383 echo "${ECHO_T}$MKDIR" >&6; }
6384 else
6385   { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6387 fi
6388
6389
6390 # Extract the first word of "mv", so it can be a program name with args.
6391 set dummy mv; ac_word=$2
6392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6394 if test "${ac_cv_path_MV+set}" = set; then
6395   echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397   case $MV in
6398   [\\/]* | ?:[\\/]*)
6399   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6400   ;;
6401   *)
6402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405   IFS=$as_save_IFS
6406   test -z "$as_dir" && as_dir=.
6407   for ac_exec_ext in '' $ac_executable_extensions; do
6408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6409     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411     break 2
6412   fi
6413 done
6414 done
6415 IFS=$as_save_IFS
6416
6417   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6418   ;;
6419 esac
6420 fi
6421 MV=$ac_cv_path_MV
6422 if test -n "$MV"; then
6423   { echo "$as_me:$LINENO: result: $MV" >&5
6424 echo "${ECHO_T}$MV" >&6; }
6425 else
6426   { echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6; }
6428 fi
6429
6430
6431 if test -n "$ac_tool_prefix"; then
6432   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6436 if test "${ac_cv_prog_RANLIB+set}" = set; then
6437   echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439   if test -n "$RANLIB"; then
6440   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6441 else
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_prog_RANLIB="${ac_tool_prefix}ranlib"
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 fi
6458 fi
6459 RANLIB=$ac_cv_prog_RANLIB
6460 if test -n "$RANLIB"; then
6461   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6462 echo "${ECHO_T}$RANLIB" >&6; }
6463 else
6464   { echo "$as_me:$LINENO: result: no" >&5
6465 echo "${ECHO_T}no" >&6; }
6466 fi
6467
6468
6469 fi
6470 if test -z "$ac_cv_prog_RANLIB"; then
6471   ac_ct_RANLIB=$RANLIB
6472   # Extract the first word of "ranlib", so it can be a program name with args.
6473 set dummy ranlib; 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_prog_ac_ct_RANLIB+set}" = set; then
6477   echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479   if test -n "$ac_ct_RANLIB"; then
6480   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485   IFS=$as_save_IFS
6486   test -z "$as_dir" && as_dir=.
6487   for ac_exec_ext in '' $ac_executable_extensions; do
6488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6489     ac_cv_prog_ac_ct_RANLIB="ranlib"
6490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491     break 2
6492   fi
6493 done
6494 done
6495 IFS=$as_save_IFS
6496
6497 fi
6498 fi
6499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6500 if test -n "$ac_ct_RANLIB"; then
6501   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6502 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6503 else
6504   { echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6; }
6506 fi
6507
6508   if test "x$ac_ct_RANLIB" = x; then
6509     RANLIB=":"
6510   else
6511     case $cross_compiling:$ac_tool_warned in
6512 yes:)
6513 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6514 whose name does not start with the host triplet.  If you think this
6515 configuration is useful to you, please write to autoconf@gnu.org." >&5
6516 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6517 whose name does not start with the host triplet.  If you think this
6518 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6519 ac_tool_warned=yes ;;
6520 esac
6521     RANLIB=$ac_ct_RANLIB
6522   fi
6523 else
6524   RANLIB="$ac_cv_prog_RANLIB"
6525 fi
6526
6527 if test -n "$ac_tool_prefix"; then
6528   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6529 set dummy ${ac_tool_prefix}ar; 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_prog_AR+set}" = set; then
6533   echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535   if test -n "$AR"; then
6536   ac_cv_prog_AR="$AR" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541   IFS=$as_save_IFS
6542   test -z "$as_dir" && as_dir=.
6543   for ac_exec_ext in '' $ac_executable_extensions; do
6544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6545     ac_cv_prog_AR="${ac_tool_prefix}ar"
6546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547     break 2
6548   fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 AR=$ac_cv_prog_AR
6556 if test -n "$AR"; then
6557   { echo "$as_me:$LINENO: result: $AR" >&5
6558 echo "${ECHO_T}$AR" >&6; }
6559 else
6560   { echo "$as_me:$LINENO: result: no" >&5
6561 echo "${ECHO_T}no" >&6; }
6562 fi
6563
6564
6565 fi
6566 if test -z "$ac_cv_prog_AR"; then
6567   ac_ct_AR=$AR
6568   # Extract the first word of "ar", so it can be a program name with args.
6569 set dummy ar; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6573   echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575   if test -n "$ac_ct_AR"; then
6576   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581   IFS=$as_save_IFS
6582   test -z "$as_dir" && as_dir=.
6583   for ac_exec_ext in '' $ac_executable_extensions; do
6584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6585     ac_cv_prog_ac_ct_AR="ar"
6586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587     break 2
6588   fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593 fi
6594 fi
6595 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6596 if test -n "$ac_ct_AR"; then
6597   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6598 echo "${ECHO_T}$ac_ct_AR" >&6; }
6599 else
6600   { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6602 fi
6603
6604   if test "x$ac_ct_AR" = x; then
6605     AR="false"
6606   else
6607     case $cross_compiling:$ac_tool_warned in
6608 yes:)
6609 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6610 whose name does not start with the host triplet.  If you think this
6611 configuration is useful to you, please write to autoconf@gnu.org." >&5
6612 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6613 whose name does not start with the host triplet.  If you think this
6614 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6615 ac_tool_warned=yes ;;
6616 esac
6617     AR=$ac_ct_AR
6618   fi
6619 else
6620   AR="$ac_cv_prog_AR"
6621 fi
6622
6623 # Extract the first word of "rm", so it can be a program name with args.
6624 set dummy rm; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_RM+set}" = set; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   case $RM in
6631   [\\/]* | ?:[\\/]*)
6632   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6633   ;;
6634   *)
6635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640   for ac_exec_ext in '' $ac_executable_extensions; do
6641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644     break 2
6645   fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6651   ;;
6652 esac
6653 fi
6654 RM=$ac_cv_path_RM
6655 if test -n "$RM"; then
6656   { echo "$as_me:$LINENO: result: $RM" >&5
6657 echo "${ECHO_T}$RM" >&6; }
6658 else
6659   { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6661 fi
6662
6663
6664 # Extract the first word of "sed", so it can be a program name with args.
6665 set dummy sed; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_path_SED+set}" = set; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   case $SED in
6672   [\\/]* | ?:[\\/]*)
6673   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6674   ;;
6675   *)
6676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681   for ac_exec_ext in '' $ac_executable_extensions; do
6682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6683     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685     break 2
6686   fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6692   ;;
6693 esac
6694 fi
6695 SED=$ac_cv_path_SED
6696 if test -n "$SED"; then
6697   { echo "$as_me:$LINENO: result: $SED" >&5
6698 echo "${ECHO_T}$SED" >&6; }
6699 else
6700   { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6702 fi
6703
6704
6705 # Extract the first word of "tar", so it can be a program name with args.
6706 set dummy tar; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_path_TAR+set}" = set; then
6710   echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712   case $TAR in
6713   [\\/]* | ?:[\\/]*)
6714   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6715   ;;
6716   *)
6717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720   IFS=$as_save_IFS
6721   test -z "$as_dir" && as_dir=.
6722   for ac_exec_ext in '' $ac_executable_extensions; do
6723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6724     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726     break 2
6727   fi
6728 done
6729 done
6730 IFS=$as_save_IFS
6731
6732   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6733   ;;
6734 esac
6735 fi
6736 TAR=$ac_cv_path_TAR
6737 if test -n "$TAR"; then
6738   { echo "$as_me:$LINENO: result: $TAR" >&5
6739 echo "${ECHO_T}$TAR" >&6; }
6740 else
6741   { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6743 fi
6744
6745
6746 # Extract the first word of "pwd", so it can be a program name with args.
6747 set dummy pwd; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_BINPWD+set}" = set; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   case $BINPWD in
6754   [\\/]* | ?:[\\/]*)
6755   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6756   ;;
6757   *)
6758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763   for ac_exec_ext in '' $ac_executable_extensions; do
6764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6774   ;;
6775 esac
6776 fi
6777 BINPWD=$ac_cv_path_BINPWD
6778 if test -n "$BINPWD"; then
6779   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6780 echo "${ECHO_T}$BINPWD" >&6; }
6781 else
6782   { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6784 fi
6785
6786
6787
6788 # Extract the first word of "dot", so it can be a program name with args.
6789 set dummy dot; ac_word=$2
6790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792 if test "${ac_cv_path_DOT+set}" = set; then
6793   echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795   case $DOT in
6796   [\\/]* | ?:[\\/]*)
6797   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6798   ;;
6799   *)
6800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803   IFS=$as_save_IFS
6804   test -z "$as_dir" && as_dir=.
6805   for ac_exec_ext in '' $ac_executable_extensions; do
6806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6807     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809     break 2
6810   fi
6811 done
6812 done
6813 IFS=$as_save_IFS
6814
6815   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6816   ;;
6817 esac
6818 fi
6819 DOT=$ac_cv_path_DOT
6820 if test -n "$DOT"; then
6821   { echo "$as_me:$LINENO: result: $DOT" >&5
6822 echo "${ECHO_T}$DOT" >&6; }
6823 else
6824   { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6826 fi
6827
6828
6829 if test "$DOT" != "echo dot" ; then
6830
6831 cat >>confdefs.h <<\_ACEOF
6832 #define HAVE_DOT 1
6833 _ACEOF
6834
6835     if test "$llvm_cv_os_type" = "MingW" ; then
6836     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6837   fi
6838
6839 cat >>confdefs.h <<_ACEOF
6840 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6841 _ACEOF
6842
6843 fi
6844
6845 # Find a good install program.  We prefer a C program (faster),
6846 # so one script is as good as another.  But avoid the broken or
6847 # incompatible versions:
6848 # SysV /etc/install, /usr/sbin/install
6849 # SunOS /usr/etc/install
6850 # IRIX /sbin/install
6851 # AIX /bin/install
6852 # AmigaOS /C/install, which installs bootblocks on floppy discs
6853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6856 # OS/2's system install, which has a completely different semantic
6857 # ./install, which can be erroneously created by make from ./install.sh.
6858 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6859 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6860 if test -z "$INSTALL"; then
6861 if test "${ac_cv_path_install+set}" = set; then
6862   echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869   # Account for people who put trailing slashes in PATH elements.
6870 case $as_dir/ in
6871   ./ | .// | /cC/* | \
6872   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6873   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6874   /usr/ucb/* ) ;;
6875   *)
6876     # OSF1 and SCO ODT 3.0 have their own names for install.
6877     # Don't use installbsd from OSF since it installs stuff as root
6878     # by default.
6879     for ac_prog in ginstall scoinst install; do
6880       for ac_exec_ext in '' $ac_executable_extensions; do
6881         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6882           if test $ac_prog = install &&
6883             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6884             # AIX install.  It has an incompatible calling convention.
6885             :
6886           elif test $ac_prog = install &&
6887             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6888             # program-specific install script used by HP pwplus--don't use.
6889             :
6890           else
6891             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6892             break 3
6893           fi
6894         fi
6895       done
6896     done
6897     ;;
6898 esac
6899 done
6900 IFS=$as_save_IFS
6901
6902
6903 fi
6904   if test "${ac_cv_path_install+set}" = set; then
6905     INSTALL=$ac_cv_path_install
6906   else
6907     # As a last resort, use the slow shell script.  Don't cache a
6908     # value for INSTALL within a source directory, because that will
6909     # break other packages using the cache if that directory is
6910     # removed, or if the value is a relative name.
6911     INSTALL=$ac_install_sh
6912   fi
6913 fi
6914 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6915 echo "${ECHO_T}$INSTALL" >&6; }
6916
6917 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6918 # It thinks the first close brace ends the variable substitution.
6919 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6920
6921 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6922
6923 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6924
6925 case "$INSTALL" in
6926  [\\/$]* | ?:[\\/]* ) ;;
6927  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6928 esac
6929
6930 # Extract the first word of "bzip2", so it can be a program name with args.
6931 set dummy bzip2; ac_word=$2
6932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934 if test "${ac_cv_path_BZIP2+set}" = set; then
6935   echo $ECHO_N "(cached) $ECHO_C" >&6
6936 else
6937   case $BZIP2 in
6938   [\\/]* | ?:[\\/]*)
6939   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6940   ;;
6941   *)
6942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945   IFS=$as_save_IFS
6946   test -z "$as_dir" && as_dir=.
6947   for ac_exec_ext in '' $ac_executable_extensions; do
6948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6949     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951     break 2
6952   fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957   ;;
6958 esac
6959 fi
6960 BZIP2=$ac_cv_path_BZIP2
6961 if test -n "$BZIP2"; then
6962   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6963 echo "${ECHO_T}$BZIP2" >&6; }
6964 else
6965   { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6967 fi
6968
6969
6970 # Extract the first word of "cat", so it can be a program name with args.
6971 set dummy cat; ac_word=$2
6972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974 if test "${ac_cv_path_CAT+set}" = set; then
6975   echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977   case $CAT in
6978   [\\/]* | ?:[\\/]*)
6979   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6980   ;;
6981   *)
6982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985   IFS=$as_save_IFS
6986   test -z "$as_dir" && as_dir=.
6987   for ac_exec_ext in '' $ac_executable_extensions; do
6988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991     break 2
6992   fi
6993 done
6994 done
6995 IFS=$as_save_IFS
6996
6997   ;;
6998 esac
6999 fi
7000 CAT=$ac_cv_path_CAT
7001 if test -n "$CAT"; then
7002   { echo "$as_me:$LINENO: result: $CAT" >&5
7003 echo "${ECHO_T}$CAT" >&6; }
7004 else
7005   { echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6; }
7007 fi
7008
7009
7010 # Extract the first word of "doxygen", so it can be a program name with args.
7011 set dummy doxygen; ac_word=$2
7012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7014 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7015   echo $ECHO_N "(cached) $ECHO_C" >&6
7016 else
7017   case $DOXYGEN in
7018   [\\/]* | ?:[\\/]*)
7019   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7020   ;;
7021   *)
7022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025   IFS=$as_save_IFS
7026   test -z "$as_dir" && as_dir=.
7027   for ac_exec_ext in '' $ac_executable_extensions; do
7028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7029     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031     break 2
7032   fi
7033 done
7034 done
7035 IFS=$as_save_IFS
7036
7037   ;;
7038 esac
7039 fi
7040 DOXYGEN=$ac_cv_path_DOXYGEN
7041 if test -n "$DOXYGEN"; then
7042   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7043 echo "${ECHO_T}$DOXYGEN" >&6; }
7044 else
7045   { echo "$as_me:$LINENO: result: no" >&5
7046 echo "${ECHO_T}no" >&6; }
7047 fi
7048
7049
7050 # Extract the first word of "groff", so it can be a program name with args.
7051 set dummy groff; ac_word=$2
7052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7054 if test "${ac_cv_path_GROFF+set}" = set; then
7055   echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057   case $GROFF in
7058   [\\/]* | ?:[\\/]*)
7059   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7060   ;;
7061   *)
7062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065   IFS=$as_save_IFS
7066   test -z "$as_dir" && as_dir=.
7067   for ac_exec_ext in '' $ac_executable_extensions; do
7068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7069     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071     break 2
7072   fi
7073 done
7074 done
7075 IFS=$as_save_IFS
7076
7077   ;;
7078 esac
7079 fi
7080 GROFF=$ac_cv_path_GROFF
7081 if test -n "$GROFF"; then
7082   { echo "$as_me:$LINENO: result: $GROFF" >&5
7083 echo "${ECHO_T}$GROFF" >&6; }
7084 else
7085   { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7087 fi
7088
7089
7090 # Extract the first word of "gzip", so it can be a program name with args.
7091 set dummy gzip; ac_word=$2
7092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7095   echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097   case $GZIPBIN in
7098   [\\/]* | ?:[\\/]*)
7099   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7100   ;;
7101   *)
7102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105   IFS=$as_save_IFS
7106   test -z "$as_dir" && as_dir=.
7107   for ac_exec_ext in '' $ac_executable_extensions; do
7108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7109     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111     break 2
7112   fi
7113 done
7114 done
7115 IFS=$as_save_IFS
7116
7117   ;;
7118 esac
7119 fi
7120 GZIPBIN=$ac_cv_path_GZIPBIN
7121 if test -n "$GZIPBIN"; then
7122   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7123 echo "${ECHO_T}$GZIPBIN" >&6; }
7124 else
7125   { echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6; }
7127 fi
7128
7129
7130 # Extract the first word of "pdfroff", so it can be a program name with args.
7131 set dummy pdfroff; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_path_PDFROFF+set}" = set; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137   case $PDFROFF in
7138   [\\/]* | ?:[\\/]*)
7139   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7140   ;;
7141   *)
7142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147   for ac_exec_ext in '' $ac_executable_extensions; do
7148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154 done
7155 IFS=$as_save_IFS
7156
7157   ;;
7158 esac
7159 fi
7160 PDFROFF=$ac_cv_path_PDFROFF
7161 if test -n "$PDFROFF"; then
7162   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7163 echo "${ECHO_T}$PDFROFF" >&6; }
7164 else
7165   { echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6; }
7167 fi
7168
7169
7170 # Extract the first word of "zip", so it can be a program name with args.
7171 set dummy zip; ac_word=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_path_ZIP+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   case $ZIP in
7178   [\\/]* | ?:[\\/]*)
7179   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7180   ;;
7181   *)
7182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185   IFS=$as_save_IFS
7186   test -z "$as_dir" && as_dir=.
7187   for ac_exec_ext in '' $ac_executable_extensions; do
7188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7189     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191     break 2
7192   fi
7193 done
7194 done
7195 IFS=$as_save_IFS
7196
7197   ;;
7198 esac
7199 fi
7200 ZIP=$ac_cv_path_ZIP
7201 if test -n "$ZIP"; then
7202   { echo "$as_me:$LINENO: result: $ZIP" >&5
7203 echo "${ECHO_T}$ZIP" >&6; }
7204 else
7205   { echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6; }
7207 fi
7208
7209
7210 # Extract the first word of "go", so it can be a program name with args.
7211 set dummy go; ac_word=$2
7212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7214 if test "${ac_cv_path_GO+set}" = set; then
7215   echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217   case $GO in
7218   [\\/]* | ?:[\\/]*)
7219   ac_cv_path_GO="$GO" # Let the user override the test with a path.
7220   ;;
7221   *)
7222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $PATH
7224 do
7225   IFS=$as_save_IFS
7226   test -z "$as_dir" && as_dir=.
7227   for ac_exec_ext in '' $ac_executable_extensions; do
7228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7229     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231     break 2
7232   fi
7233 done
7234 done
7235 IFS=$as_save_IFS
7236
7237   ;;
7238 esac
7239 fi
7240 GO=$ac_cv_path_GO
7241 if test -n "$GO"; then
7242   { echo "$as_me:$LINENO: result: $GO" >&5
7243 echo "${ECHO_T}$GO" >&6; }
7244 else
7245   { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7247 fi
7248
7249
7250 for ac_prog in ocamlfind
7251 do
7252   # Extract the first word of "$ac_prog", so it can be a program name with args.
7253 set dummy $ac_prog; ac_word=$2
7254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7256 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   case $OCAMLFIND in
7260   [\\/]* | ?:[\\/]*)
7261   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7262   ;;
7263   *)
7264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7266 do
7267   IFS=$as_save_IFS
7268   test -z "$as_dir" && as_dir=.
7269   for ac_exec_ext in '' $ac_executable_extensions; do
7270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7271     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273     break 2
7274   fi
7275 done
7276 done
7277 IFS=$as_save_IFS
7278
7279   ;;
7280 esac
7281 fi
7282 OCAMLFIND=$ac_cv_path_OCAMLFIND
7283 if test -n "$OCAMLFIND"; then
7284   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7285 echo "${ECHO_T}$OCAMLFIND" >&6; }
7286 else
7287   { echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6; }
7289 fi
7290
7291
7292   test -n "$OCAMLFIND" && break
7293 done
7294
7295 for ac_prog in gas as
7296 do
7297   # Extract the first word of "$ac_prog", so it can be a program name with args.
7298 set dummy $ac_prog; ac_word=$2
7299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7301 if test "${ac_cv_path_GAS+set}" = set; then
7302   echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304   case $GAS in
7305   [\\/]* | ?:[\\/]*)
7306   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7307   ;;
7308   *)
7309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312   IFS=$as_save_IFS
7313   test -z "$as_dir" && as_dir=.
7314   for ac_exec_ext in '' $ac_executable_extensions; do
7315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7316     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318     break 2
7319   fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7323
7324   ;;
7325 esac
7326 fi
7327 GAS=$ac_cv_path_GAS
7328 if test -n "$GAS"; then
7329   { echo "$as_me:$LINENO: result: $GAS" >&5
7330 echo "${ECHO_T}$GAS" >&6; }
7331 else
7332   { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7334 fi
7335
7336
7337   test -n "$GAS" && break
7338 done
7339
7340
7341 { echo "$as_me:$LINENO: checking for linker version" >&5
7342 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7343 if test "${llvm_cv_link_version+set}" = set; then
7344   echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346
7347    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7348
7349    # Check for ld64.
7350    if (echo "$version_string" | grep -q "ld64"); then
7351      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7352    else
7353      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7354    fi
7355
7356 fi
7357 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7358 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7359
7360 cat >>confdefs.h <<_ACEOF
7361 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7362 _ACEOF
7363
7364
7365
7366
7367 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7368 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7369 if test "${llvm_cv_link_use_r+set}" = set; then
7370   echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372    ac_ext=c
7373 ac_cpp='$CPP $CPPFLAGS'
7374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7377
7378   oldcflags="$CFLAGS"
7379   CFLAGS="$CFLAGS -Wl,-R."
7380   cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h.  */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h.  */
7386
7387 int
7388 main ()
7389 {
7390
7391   ;
7392   return 0;
7393 }
7394 _ACEOF
7395 rm -f conftest.$ac_objext conftest$ac_exeext
7396 if { (ac_try="$ac_link"
7397 case "(($ac_try" in
7398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399   *) ac_try_echo=$ac_try;;
7400 esac
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402   (eval "$ac_link") 2>conftest.er1
7403   ac_status=$?
7404   grep -v '^ *+' conftest.er1 >conftest.err
7405   rm -f conftest.er1
7406   cat conftest.err >&5
7407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408   (exit $ac_status); } &&
7409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7410   { (case "(($ac_try" in
7411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412   *) ac_try_echo=$ac_try;;
7413 esac
7414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415   (eval "$ac_try") 2>&5
7416   ac_status=$?
7417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418   (exit $ac_status); }; } &&
7419          { ac_try='test -s conftest$ac_exeext'
7420   { (case "(($ac_try" in
7421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422   *) ac_try_echo=$ac_try;;
7423 esac
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425   (eval "$ac_try") 2>&5
7426   ac_status=$?
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); }; }; then
7429   llvm_cv_link_use_r=yes
7430 else
7431   echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7433
7434         llvm_cv_link_use_r=no
7435 fi
7436
7437 rm -f core conftest.err conftest.$ac_objext \
7438       conftest$ac_exeext conftest.$ac_ext
7439   CFLAGS="$oldcflags"
7440   ac_ext=c
7441 ac_cpp='$CPP $CPPFLAGS'
7442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7445
7446
7447 fi
7448 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7449 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7450 if test "$llvm_cv_link_use_r" = yes ; then
7451
7452 cat >>confdefs.h <<\_ACEOF
7453 #define HAVE_LINK_R 1
7454 _ACEOF
7455
7456   fi
7457
7458
7459 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7460 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7461 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464    ac_ext=c
7465 ac_cpp='$CPP $CPPFLAGS'
7466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7469
7470   oldcflags="$CFLAGS"
7471   CFLAGS="$CFLAGS -rdynamic"
7472   cat >conftest.$ac_ext <<_ACEOF
7473 /* confdefs.h.  */
7474 _ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h.  */
7478
7479 int
7480 main ()
7481 {
7482
7483   ;
7484   return 0;
7485 }
7486 _ACEOF
7487 rm -f conftest.$ac_objext conftest$ac_exeext
7488 if { (ac_try="$ac_link"
7489 case "(($ac_try" in
7490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491   *) ac_try_echo=$ac_try;;
7492 esac
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494   (eval "$ac_link") 2>conftest.er1
7495   ac_status=$?
7496   grep -v '^ *+' conftest.er1 >conftest.err
7497   rm -f conftest.er1
7498   cat conftest.err >&5
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); } &&
7501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7502   { (case "(($ac_try" in
7503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504   *) ac_try_echo=$ac_try;;
7505 esac
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507   (eval "$ac_try") 2>&5
7508   ac_status=$?
7509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510   (exit $ac_status); }; } &&
7511          { ac_try='test -s conftest$ac_exeext'
7512   { (case "(($ac_try" in
7513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514   *) ac_try_echo=$ac_try;;
7515 esac
7516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517   (eval "$ac_try") 2>&5
7518   ac_status=$?
7519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520   (exit $ac_status); }; }; then
7521   llvm_cv_link_use_export_dynamic=yes
7522 else
7523   echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7525
7526         llvm_cv_link_use_export_dynamic=no
7527 fi
7528
7529 rm -f core conftest.err conftest.$ac_objext \
7530       conftest$ac_exeext conftest.$ac_ext
7531   CFLAGS="$oldcflags"
7532   ac_ext=c
7533 ac_cpp='$CPP $CPPFLAGS'
7534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537
7538
7539 fi
7540 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7541 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7542 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7543
7544 cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_LINK_EXPORT_DYNAMIC 1
7546 _ACEOF
7547
7548   fi
7549
7550
7551 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7552 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7553 if test "${llvm_cv_link_use_version_script+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556    ac_ext=c
7557 ac_cpp='$CPP $CPPFLAGS'
7558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7561
7562   oldcflags="$CFLAGS"
7563
7564   # The following code is from the autoconf manual,
7565   # "11.13: Limitations of Usual Tools".
7566   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7567   # Use mktemp if possible; otherwise fall back on mkdir,
7568   # with $RANDOM to make collisions less likely.
7569   : ${TMPDIR=/tmp}
7570   {
7571     tmp=`
7572       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7573     ` &&
7574     test -n "$tmp" && test -d "$tmp"
7575   } || {
7576     tmp=$TMPDIR/foo$$-$RANDOM
7577     (umask 077 && mkdir "$tmp")
7578   } || exit $?
7579
7580   echo "{" > "$tmp/export.map"
7581   echo "  global: main;" >> "$tmp/export.map"
7582   echo "  local: *;" >> "$tmp/export.map"
7583   echo "};" >> "$tmp/export.map"
7584
7585   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7586   cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h.  */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h.  */
7592
7593 int
7594 main ()
7595 {
7596
7597   ;
7598   return 0;
7599 }
7600 _ACEOF
7601 rm -f conftest.$ac_objext conftest$ac_exeext
7602 if { (ac_try="$ac_link"
7603 case "(($ac_try" in
7604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605   *) ac_try_echo=$ac_try;;
7606 esac
7607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608   (eval "$ac_link") 2>conftest.er1
7609   ac_status=$?
7610   grep -v '^ *+' conftest.er1 >conftest.err
7611   rm -f conftest.er1
7612   cat conftest.err >&5
7613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614   (exit $ac_status); } &&
7615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7616   { (case "(($ac_try" in
7617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618   *) ac_try_echo=$ac_try;;
7619 esac
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621   (eval "$ac_try") 2>&5
7622   ac_status=$?
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); }; } &&
7625          { ac_try='test -s conftest$ac_exeext'
7626   { (case "(($ac_try" in
7627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7628   *) ac_try_echo=$ac_try;;
7629 esac
7630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7631   (eval "$ac_try") 2>&5
7632   ac_status=$?
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); }; }; then
7635   llvm_cv_link_use_version_script=yes
7636 else
7637   echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7639
7640         llvm_cv_link_use_version_script=no
7641 fi
7642
7643 rm -f core conftest.err conftest.$ac_objext \
7644       conftest$ac_exeext conftest.$ac_ext
7645   rm "$tmp/export.map"
7646   rmdir "$tmp"
7647   CFLAGS="$oldcflags"
7648   ac_ext=c
7649 ac_cpp='$CPP $CPPFLAGS'
7650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7653
7654
7655 fi
7656 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7657 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7658 if test "$llvm_cv_link_use_version_script" = yes ; then
7659   HAVE_LINK_VERSION_SCRIPT=1
7660
7661   fi
7662
7663
7664
7665 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7666 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_GREP+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   # Extract the first word of "grep ggrep" to use in msg output
7671 if test -z "$GREP"; then
7672 set dummy grep ggrep; ac_prog_name=$2
7673 if test "${ac_cv_path_GREP+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   ac_path_GREP_found=false
7677 # Loop through the user's path and test for each of PROGNAME-LIST
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7680 do
7681   IFS=$as_save_IFS
7682   test -z "$as_dir" && as_dir=.
7683   for ac_prog in grep ggrep; do
7684   for ac_exec_ext in '' $ac_executable_extensions; do
7685     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7686     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7687     # Check for GNU ac_path_GREP and select it if it is found.
7688   # Check for GNU $ac_path_GREP
7689 case `"$ac_path_GREP" --version 2>&1` in
7690 *GNU*)
7691   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7692 *)
7693   ac_count=0
7694   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7695   while :
7696   do
7697     cat "conftest.in" "conftest.in" >"conftest.tmp"
7698     mv "conftest.tmp" "conftest.in"
7699     cp "conftest.in" "conftest.nl"
7700     echo 'GREP' >> "conftest.nl"
7701     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7702     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7703     ac_count=`expr $ac_count + 1`
7704     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7705       # Best one so far, save it but keep looking for a better one
7706       ac_cv_path_GREP="$ac_path_GREP"
7707       ac_path_GREP_max=$ac_count
7708     fi
7709     # 10*(2^10) chars as input seems more than enough
7710     test $ac_count -gt 10 && break
7711   done
7712   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7713 esac
7714
7715
7716     $ac_path_GREP_found && break 3
7717   done
7718 done
7719
7720 done
7721 IFS=$as_save_IFS
7722
7723
7724 fi
7725
7726 GREP="$ac_cv_path_GREP"
7727 if test -z "$GREP"; then
7728   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7729 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7730    { (exit 1); exit 1; }; }
7731 fi
7732
7733 else
7734   ac_cv_path_GREP=$GREP
7735 fi
7736
7737
7738 fi
7739 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7740 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7741  GREP="$ac_cv_path_GREP"
7742
7743
7744 { echo "$as_me:$LINENO: checking for egrep" >&5
7745 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7746 if test "${ac_cv_path_EGREP+set}" = set; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7750    then ac_cv_path_EGREP="$GREP -E"
7751    else
7752      # Extract the first word of "egrep" to use in msg output
7753 if test -z "$EGREP"; then
7754 set dummy egrep; ac_prog_name=$2
7755 if test "${ac_cv_path_EGREP+set}" = set; then
7756   echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758   ac_path_EGREP_found=false
7759 # Loop through the user's path and test for each of PROGNAME-LIST
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7762 do
7763   IFS=$as_save_IFS
7764   test -z "$as_dir" && as_dir=.
7765   for ac_prog in egrep; do
7766   for ac_exec_ext in '' $ac_executable_extensions; do
7767     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7768     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7769     # Check for GNU ac_path_EGREP and select it if it is found.
7770   # Check for GNU $ac_path_EGREP
7771 case `"$ac_path_EGREP" --version 2>&1` in
7772 *GNU*)
7773   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7774 *)
7775   ac_count=0
7776   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7777   while :
7778   do
7779     cat "conftest.in" "conftest.in" >"conftest.tmp"
7780     mv "conftest.tmp" "conftest.in"
7781     cp "conftest.in" "conftest.nl"
7782     echo 'EGREP' >> "conftest.nl"
7783     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7784     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7785     ac_count=`expr $ac_count + 1`
7786     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7787       # Best one so far, save it but keep looking for a better one
7788       ac_cv_path_EGREP="$ac_path_EGREP"
7789       ac_path_EGREP_max=$ac_count
7790     fi
7791     # 10*(2^10) chars as input seems more than enough
7792     test $ac_count -gt 10 && break
7793   done
7794   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7795 esac
7796
7797
7798     $ac_path_EGREP_found && break 3
7799   done
7800 done
7801
7802 done
7803 IFS=$as_save_IFS
7804
7805
7806 fi
7807
7808 EGREP="$ac_cv_path_EGREP"
7809 if test -z "$EGREP"; then
7810   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7811 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7812    { (exit 1); exit 1; }; }
7813 fi
7814
7815 else
7816   ac_cv_path_EGREP=$EGREP
7817 fi
7818
7819
7820    fi
7821 fi
7822 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7823 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7824  EGREP="$ac_cv_path_EGREP"
7825
7826
7827 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7829 if test "${ac_cv_header_stdc+set}" = set; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832   cat >conftest.$ac_ext <<_ACEOF
7833 /* confdefs.h.  */
7834 _ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h.  */
7838 #include <stdlib.h>
7839 #include <stdarg.h>
7840 #include <string.h>
7841 #include <float.h>
7842
7843 int
7844 main ()
7845 {
7846
7847   ;
7848   return 0;
7849 }
7850 _ACEOF
7851 rm -f conftest.$ac_objext
7852 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
7859   ac_status=$?
7860   grep -v '^ *+' conftest.er1 >conftest.err
7861   rm -f conftest.er1
7862   cat conftest.err >&5
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); } &&
7865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7866   { (case "(($ac_try" in
7867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868   *) ac_try_echo=$ac_try;;
7869 esac
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871   (eval "$ac_try") 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); }; } &&
7875          { ac_try='test -s conftest.$ac_objext'
7876   { (case "(($ac_try" in
7877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878   *) ac_try_echo=$ac_try;;
7879 esac
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881   (eval "$ac_try") 2>&5
7882   ac_status=$?
7883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884   (exit $ac_status); }; }; then
7885   ac_cv_header_stdc=yes
7886 else
7887   echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890         ac_cv_header_stdc=no
7891 fi
7892
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894
7895 if test $ac_cv_header_stdc = yes; then
7896   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7897   cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h.  */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h.  */
7903 #include <string.h>
7904
7905 _ACEOF
7906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7907   $EGREP "memchr" >/dev/null 2>&1; then
7908   :
7909 else
7910   ac_cv_header_stdc=no
7911 fi
7912 rm -f conftest*
7913
7914 fi
7915
7916 if test $ac_cv_header_stdc = yes; then
7917   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7918   cat >conftest.$ac_ext <<_ACEOF
7919 /* confdefs.h.  */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h.  */
7924 #include <stdlib.h>
7925
7926 _ACEOF
7927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7928   $EGREP "free" >/dev/null 2>&1; then
7929   :
7930 else
7931   ac_cv_header_stdc=no
7932 fi
7933 rm -f conftest*
7934
7935 fi
7936
7937 if test $ac_cv_header_stdc = yes; then
7938   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7939   if test "$cross_compiling" = yes; then
7940   :
7941 else
7942   cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h.  */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h.  */
7948 #include <ctype.h>
7949 #include <stdlib.h>
7950 #if ((' ' & 0x0FF) == 0x020)
7951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7953 #else
7954 # define ISLOWER(c) \
7955                    (('a' <= (c) && (c) <= 'i') \
7956                      || ('j' <= (c) && (c) <= 'r') \
7957                      || ('s' <= (c) && (c) <= 'z'))
7958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7959 #endif
7960
7961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7962 int
7963 main ()
7964 {
7965   int i;
7966   for (i = 0; i < 256; i++)
7967     if (XOR (islower (i), ISLOWER (i))
7968         || toupper (i) != TOUPPER (i))
7969       return 2;
7970   return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7975 case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980   (eval "$ac_link") 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7984   { (case "(($ac_try" in
7985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986   *) ac_try_echo=$ac_try;;
7987 esac
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989   (eval "$ac_try") 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); }; }; then
7993   :
7994 else
7995   echo "$as_me: program exited with status $ac_status" >&5
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999 ( exit $ac_status )
8000 ac_cv_header_stdc=no
8001 fi
8002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8003 fi
8004
8005
8006 fi
8007 fi
8008 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8009 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8010 if test $ac_cv_header_stdc = yes; then
8011
8012 cat >>confdefs.h <<\_ACEOF
8013 #define STDC_HEADERS 1
8014 _ACEOF
8015
8016 fi
8017
8018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8029                   inttypes.h stdint.h unistd.h
8030 do
8031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8035   echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037   cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h.  */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h.  */
8043 $ac_includes_default
8044
8045 #include <$ac_header>
8046 _ACEOF
8047 rm -f conftest.$ac_objext
8048 if { (ac_try="$ac_compile"
8049 case "(($ac_try" in
8050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051   *) ac_try_echo=$ac_try;;
8052 esac
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054   (eval "$ac_compile") 2>conftest.er1
8055   ac_status=$?
8056   grep -v '^ *+' conftest.er1 >conftest.err
8057   rm -f conftest.er1
8058   cat conftest.err >&5
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); } &&
8061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8062   { (case "(($ac_try" in
8063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064   *) ac_try_echo=$ac_try;;
8065 esac
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067   (eval "$ac_try") 2>&5
8068   ac_status=$?
8069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070   (exit $ac_status); }; } &&
8071          { ac_try='test -s conftest.$ac_objext'
8072   { (case "(($ac_try" in
8073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074   *) ac_try_echo=$ac_try;;
8075 esac
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077   (eval "$ac_try") 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); }; }; then
8081   eval "$as_ac_Header=yes"
8082 else
8083   echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8085
8086         eval "$as_ac_Header=no"
8087 fi
8088
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 fi
8091 ac_res=`eval echo '${'$as_ac_Header'}'`
8092                { echo "$as_me:$LINENO: result: $ac_res" >&5
8093 echo "${ECHO_T}$ac_res" >&6; }
8094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8095   cat >>confdefs.h <<_ACEOF
8096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8097 _ACEOF
8098
8099 fi
8100
8101 done
8102
8103
8104
8105 for ac_header in errno.h
8106 do
8107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8109   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8112   echo $ECHO_N "(cached) $ECHO_C" >&6
8113 fi
8114 ac_res=`eval echo '${'$as_ac_Header'}'`
8115                { echo "$as_me:$LINENO: result: $ac_res" >&5
8116 echo "${ECHO_T}$ac_res" >&6; }
8117 else
8118   # Is the header compilable?
8119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8121 cat >conftest.$ac_ext <<_ACEOF
8122 /* confdefs.h.  */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h.  */
8127 $ac_includes_default
8128 #include <$ac_header>
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8132 case "(($ac_try" in
8133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134   *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137   (eval "$ac_compile") 2>conftest.er1
8138   ac_status=$?
8139   grep -v '^ *+' conftest.er1 >conftest.err
8140   rm -f conftest.er1
8141   cat conftest.err >&5
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); } &&
8144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145   { (case "(($ac_try" in
8146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147   *) ac_try_echo=$ac_try;;
8148 esac
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150   (eval "$ac_try") 2>&5
8151   ac_status=$?
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); }; } &&
8154          { ac_try='test -s conftest.$ac_objext'
8155   { (case "(($ac_try" in
8156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157   *) ac_try_echo=$ac_try;;
8158 esac
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160   (eval "$ac_try") 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); }; }; then
8164   ac_header_compiler=yes
8165 else
8166   echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8168
8169         ac_header_compiler=no
8170 fi
8171
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8174 echo "${ECHO_T}$ac_header_compiler" >&6; }
8175
8176 # Is the header present?
8177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 <$ac_header>
8186 _ACEOF
8187 if { (ac_try="$ac_cpp conftest.$ac_ext"
8188 case "(($ac_try" in
8189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190   *) ac_try_echo=$ac_try;;
8191 esac
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8194   ac_status=$?
8195   grep -v '^ *+' conftest.er1 >conftest.err
8196   rm -f conftest.er1
8197   cat conftest.err >&5
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); } >/dev/null; then
8200   if test -s conftest.err; then
8201     ac_cpp_err=$ac_c_preproc_warn_flag
8202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8203   else
8204     ac_cpp_err=
8205   fi
8206 else
8207   ac_cpp_err=yes
8208 fi
8209 if test -z "$ac_cpp_err"; then
8210   ac_header_preproc=yes
8211 else
8212   echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215   ac_header_preproc=no
8216 fi
8217
8218 rm -f conftest.err conftest.$ac_ext
8219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8220 echo "${ECHO_T}$ac_header_preproc" >&6; }
8221
8222 # So?  What about this header?
8223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8224   yes:no: )
8225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8229     ac_header_preproc=yes
8230     ;;
8231   no:yes:* )
8232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8244     ( cat <<\_ASBOX
8245 ## ------------------------------------ ##
8246 ## Report this to http://llvm.org/bugs/ ##
8247 ## ------------------------------------ ##
8248 _ASBOX
8249      ) | sed "s/^/$as_me: WARNING:     /" >&2
8250     ;;
8251 esac
8252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8255   echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257   eval "$as_ac_Header=\$ac_header_preproc"
8258 fi
8259 ac_res=`eval echo '${'$as_ac_Header'}'`
8260                { echo "$as_me:$LINENO: result: $ac_res" >&5
8261 echo "${ECHO_T}$ac_res" >&6; }
8262
8263 fi
8264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8265   cat >>confdefs.h <<_ACEOF
8266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8267 _ACEOF
8268
8269 fi
8270
8271 done
8272
8273
8274 case "$llvm_cv_os_type" in
8275   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8276   Darwin) llvm_shlib_ext=.dylib ;;
8277   *) llvm_shlib_ext=.so ;;
8278 esac
8279
8280
8281 cat >>confdefs.h <<_ACEOF
8282 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8283 _ACEOF
8284
8285
8286 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8287 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8288
8289 ICC=no
8290 IXX=no
8291 case $CC in
8292   icc*|icpc*)
8293     ICC=yes
8294     IXX=yes
8295     ;;
8296    *)
8297     ;;
8298 esac
8299
8300 if test "$GCC" != "yes" && test "$ICC" != "yes"
8301 then
8302   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8303 echo "$as_me: error: gcc|icc required but not found" >&2;}
8304    { (exit 1); exit 1; }; }
8305 fi
8306
8307 if test "$GXX" != "yes" && test "$IXX" != "yes"
8308 then
8309   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8310 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8311    { (exit 1); exit 1; }; }
8312 fi
8313
8314 if test "$GCC" = "yes"
8315 then
8316   cat >conftest.$ac_ext <<_ACEOF
8317
8318   /* confdefs.h.  */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h.  */
8323
8324     #if !defined(__GNUC__) || __GNUC__ < 3
8325     #error Unsupported GCC version
8326     #endif
8327
8328
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8332 case "(($ac_try" in
8333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334   *) ac_try_echo=$ac_try;;
8335 esac
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337   (eval "$ac_compile") 2>conftest.er1
8338   ac_status=$?
8339   grep -v '^ *+' conftest.er1 >conftest.err
8340   rm -f conftest.er1
8341   cat conftest.err >&5
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); } &&
8344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8345   { (case "(($ac_try" in
8346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347   *) ac_try_echo=$ac_try;;
8348 esac
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350   (eval "$ac_try") 2>&5
8351   ac_status=$?
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); }; } &&
8354          { ac_try='test -s conftest.$ac_objext'
8355   { (case "(($ac_try" in
8356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357   *) ac_try_echo=$ac_try;;
8358 esac
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360   (eval "$ac_try") 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); }; }; then
8364   :
8365 else
8366   echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8370 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8371    { (exit 1); exit 1; }; }
8372 fi
8373
8374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8375 fi
8376
8377 if test -z "$llvm_cv_gnu_make_command"
8378 then
8379   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8380 echo "$as_me: error: GNU Make required but not found" >&2;}
8381    { (exit 1); exit 1; }; }
8382 fi
8383
8384 { echo "$as_me:$LINENO: result: ok" >&5
8385 echo "${ECHO_T}ok" >&6; }
8386
8387 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8388 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8389 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8390
8391 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8392
8393 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8394
8395
8396 NO_UNINITIALIZED=
8397 NO_MAYBE_UNINITIALIZED=
8398 if test "$GXX" = "yes"
8399 then
8400   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8401
8402         if test -z "$NO_MAYBE_UNINITIALIZED"
8403   then
8404     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8405
8406   fi
8407 fi
8408
8409 no_comment=
8410 llvm_cv_old_cxxflags="$CXXFLAGS"
8411 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8412 cat >conftest.$ac_ext <<_ACEOF
8413
8414   /* confdefs.h.  */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h.  */
8419 // Comment \o\
8420 // Another comment
8421 int main() { return 0; }
8422
8423
8424 _ACEOF
8425 rm -f conftest.$ac_objext
8426 if { (ac_try="$ac_compile"
8427 case "(($ac_try" in
8428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429   *) ac_try_echo=$ac_try;;
8430 esac
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432   (eval "$ac_compile") 2>conftest.er1
8433   ac_status=$?
8434   grep -v '^ *+' conftest.er1 >conftest.err
8435   rm -f conftest.er1
8436   cat conftest.err >&5
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); } &&
8439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8440   { (case "(($ac_try" in
8441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442   *) ac_try_echo=$ac_try;;
8443 esac
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445   (eval "$ac_try") 2>&5
8446   ac_status=$?
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); }; } &&
8449          { ac_try='test -s conftest.$ac_objext'
8450   { (case "(($ac_try" in
8451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452   *) ac_try_echo=$ac_try;;
8453 esac
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455   (eval "$ac_try") 2>&5
8456   ac_status=$?
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); }; }; then
8459
8460   no_comment=-Wno-comment
8461
8462 else
8463   echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466
8467 fi
8468
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470 NO_COMMENT=$no_comment
8471
8472 CXXFLAGS="$llvm_cv_old_cxxflags"
8473
8474 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8475 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8476
8477
8478 # Check whether --with-python was given.
8479 if test "${with_python+set}" = set; then
8480   withval=$with_python; PYTHON="$withval"
8481 fi
8482
8483
8484 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8485   { echo "$as_me:$LINENO: checking for python" >&5
8486 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8487   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8488 echo "${ECHO_T}user defined: $with_python" >&6; }
8489 else
8490   if test -n "$PYTHON" ; then
8491     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8492 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8493   fi
8494
8495   # Extract the first word of "python python2 python27", so it can be a program name with args.
8496 set dummy python python2 python27; ac_word=$2
8497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8499 if test "${ac_cv_path_PYTHON+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   case $PYTHON in
8503   [\\/]* | ?:[\\/]*)
8504   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8505   ;;
8506   *)
8507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8509 do
8510   IFS=$as_save_IFS
8511   test -z "$as_dir" && as_dir=.
8512   for ac_exec_ext in '' $ac_executable_extensions; do
8513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8514     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8516     break 2
8517   fi
8518 done
8519 done
8520 IFS=$as_save_IFS
8521
8522   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8523 echo "${ECHO_T}not found" >&6; }
8524                 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8525 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8526    { (exit 1); exit 1; }; }"
8527   ;;
8528 esac
8529 fi
8530 PYTHON=$ac_cv_path_PYTHON
8531 if test -n "$PYTHON"; then
8532   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8533 echo "${ECHO_T}$PYTHON" >&6; }
8534 else
8535   { echo "$as_me:$LINENO: result: no" >&5
8536 echo "${ECHO_T}no" >&6; }
8537 fi
8538
8539
8540 fi
8541
8542 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8543 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8544 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8545 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8546 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8547 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8548 if test "$ac_python_version_major" -gt "2" || \
8549    (test "$ac_python_version_major" -eq "2" && \
8550     test "$ac_python_version_minor" -ge "7") ; then
8551   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8552 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8553 else
8554   { echo "$as_me:$LINENO: result: not found" >&5
8555 echo "${ECHO_T}not found" >&6; }
8556   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8557 See \`config.log' for more details." >&5
8558 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8559 See \`config.log' for more details." >&2;}
8560    { (exit 1); exit 1; }; }
8561 fi
8562
8563
8564
8565 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8566 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8567 if test "${ac_cv_lib_m_sin+set}" = set; then
8568   echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570   ac_check_lib_save_LIBS=$LIBS
8571 LIBS="-lm  $LIBS"
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h.  */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h.  */
8578
8579 /* Override any GCC internal prototype to avoid an error.
8580    Use char because int might match the return type of a GCC
8581    builtin and then its argument prototype would still apply.  */
8582 #ifdef __cplusplus
8583 extern "C"
8584 #endif
8585 char sin ();
8586 int
8587 main ()
8588 {
8589 return sin ();
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (ac_try="$ac_link"
8596 case "(($ac_try" in
8597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598   *) ac_try_echo=$ac_try;;
8599 esac
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601   (eval "$ac_link") 2>conftest.er1
8602   ac_status=$?
8603   grep -v '^ *+' conftest.er1 >conftest.err
8604   rm -f conftest.er1
8605   cat conftest.err >&5
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); } &&
8608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8609   { (case "(($ac_try" in
8610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611   *) ac_try_echo=$ac_try;;
8612 esac
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614   (eval "$ac_try") 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); }; } &&
8618          { ac_try='test -s conftest$ac_exeext'
8619   { (case "(($ac_try" in
8620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621   *) ac_try_echo=$ac_try;;
8622 esac
8623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624   (eval "$ac_try") 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); }; }; then
8628   ac_cv_lib_m_sin=yes
8629 else
8630   echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8632
8633         ac_cv_lib_m_sin=no
8634 fi
8635
8636 rm -f core conftest.err conftest.$ac_objext \
8637       conftest$ac_exeext conftest.$ac_ext
8638 LIBS=$ac_check_lib_save_LIBS
8639 fi
8640 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8641 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8642 if test $ac_cv_lib_m_sin = yes; then
8643   cat >>confdefs.h <<_ACEOF
8644 #define HAVE_LIBM 1
8645 _ACEOF
8646
8647   LIBS="-lm $LIBS"
8648
8649 fi
8650
8651 if test "$llvm_cv_os_type" = "MingW" ; then
8652
8653 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8654 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8655 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   ac_check_lib_save_LIBS=$LIBS
8659 LIBS="-limagehlp  $LIBS"
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666
8667
8668 int
8669 main ()
8670 {
8671 return main ();
8672   ;
8673   return 0;
8674 }
8675 _ACEOF
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (ac_try="$ac_link"
8678 case "(($ac_try" in
8679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680   *) ac_try_echo=$ac_try;;
8681 esac
8682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683   (eval "$ac_link") 2>conftest.er1
8684   ac_status=$?
8685   grep -v '^ *+' conftest.er1 >conftest.err
8686   rm -f conftest.er1
8687   cat conftest.err >&5
8688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689   (exit $ac_status); } &&
8690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8691   { (case "(($ac_try" in
8692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693   *) ac_try_echo=$ac_try;;
8694 esac
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696   (eval "$ac_try") 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); }; } &&
8700          { ac_try='test -s conftest$ac_exeext'
8701   { (case "(($ac_try" in
8702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703   *) ac_try_echo=$ac_try;;
8704 esac
8705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706   (eval "$ac_try") 2>&5
8707   ac_status=$?
8708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709   (exit $ac_status); }; }; then
8710   ac_cv_lib_imagehlp_main=yes
8711 else
8712   echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8714
8715         ac_cv_lib_imagehlp_main=no
8716 fi
8717
8718 rm -f core conftest.err conftest.$ac_objext \
8719       conftest$ac_exeext conftest.$ac_ext
8720 LIBS=$ac_check_lib_save_LIBS
8721 fi
8722 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8723 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8724 if test $ac_cv_lib_imagehlp_main = yes; then
8725   cat >>confdefs.h <<_ACEOF
8726 #define HAVE_LIBIMAGEHLP 1
8727 _ACEOF
8728
8729   LIBS="-limagehlp $LIBS"
8730
8731 fi
8732
8733
8734 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8735 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8736 if test "${ac_cv_lib_psapi_main+set}" = set; then
8737   echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739   ac_check_lib_save_LIBS=$LIBS
8740 LIBS="-lpsapi  $LIBS"
8741 cat >conftest.$ac_ext <<_ACEOF
8742 /* confdefs.h.  */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h.  */
8747
8748
8749 int
8750 main ()
8751 {
8752 return main ();
8753   ;
8754   return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (ac_try="$ac_link"
8759 case "(($ac_try" in
8760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761   *) ac_try_echo=$ac_try;;
8762 esac
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764   (eval "$ac_link") 2>conftest.er1
8765   ac_status=$?
8766   grep -v '^ *+' conftest.er1 >conftest.err
8767   rm -f conftest.er1
8768   cat conftest.err >&5
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); } &&
8771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8772   { (case "(($ac_try" in
8773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774   *) ac_try_echo=$ac_try;;
8775 esac
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777   (eval "$ac_try") 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); }; } &&
8781          { ac_try='test -s conftest$ac_exeext'
8782   { (case "(($ac_try" in
8783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784   *) ac_try_echo=$ac_try;;
8785 esac
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787   (eval "$ac_try") 2>&5
8788   ac_status=$?
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); }; }; then
8791   ac_cv_lib_psapi_main=yes
8792 else
8793   echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8795
8796         ac_cv_lib_psapi_main=no
8797 fi
8798
8799 rm -f core conftest.err conftest.$ac_objext \
8800       conftest$ac_exeext conftest.$ac_ext
8801 LIBS=$ac_check_lib_save_LIBS
8802 fi
8803 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8804 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8805 if test $ac_cv_lib_psapi_main = yes; then
8806   cat >>confdefs.h <<_ACEOF
8807 #define HAVE_LIBPSAPI 1
8808 _ACEOF
8809
8810   LIBS="-lpsapi $LIBS"
8811
8812 fi
8813
8814
8815 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8816 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8817 if test "${ac_cv_lib_shell32_main+set}" = set; then
8818   echo $ECHO_N "(cached) $ECHO_C" >&6
8819 else
8820   ac_check_lib_save_LIBS=$LIBS
8821 LIBS="-lshell32  $LIBS"
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h.  */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h.  */
8828
8829
8830 int
8831 main ()
8832 {
8833 return main ();
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (ac_try="$ac_link"
8840 case "(($ac_try" in
8841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842   *) ac_try_echo=$ac_try;;
8843 esac
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845   (eval "$ac_link") 2>conftest.er1
8846   ac_status=$?
8847   grep -v '^ *+' conftest.er1 >conftest.err
8848   rm -f conftest.er1
8849   cat conftest.err >&5
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); } &&
8852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8853   { (case "(($ac_try" in
8854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855   *) ac_try_echo=$ac_try;;
8856 esac
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858   (eval "$ac_try") 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); }; } &&
8862          { ac_try='test -s conftest$ac_exeext'
8863   { (case "(($ac_try" in
8864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865   *) ac_try_echo=$ac_try;;
8866 esac
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868   (eval "$ac_try") 2>&5
8869   ac_status=$?
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); }; }; then
8872   ac_cv_lib_shell32_main=yes
8873 else
8874   echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877         ac_cv_lib_shell32_main=no
8878 fi
8879
8880 rm -f core conftest.err conftest.$ac_objext \
8881       conftest$ac_exeext conftest.$ac_ext
8882 LIBS=$ac_check_lib_save_LIBS
8883 fi
8884 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8885 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8886 if test $ac_cv_lib_shell32_main = yes; then
8887   cat >>confdefs.h <<_ACEOF
8888 #define HAVE_LIBSHELL32 1
8889 _ACEOF
8890
8891   LIBS="-lshell32 $LIBS"
8892
8893 fi
8894
8895 fi
8896
8897 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8898 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8899 if test "${ac_cv_search_dlopen+set}" = set; then
8900   echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902   ac_func_search_save_LIBS=$LIBS
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h.  */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h.  */
8909
8910 /* Override any GCC internal prototype to avoid an error.
8911    Use char because int might match the return type of a GCC
8912    builtin and then its argument prototype would still apply.  */
8913 #ifdef __cplusplus
8914 extern "C"
8915 #endif
8916 char dlopen ();
8917 int
8918 main ()
8919 {
8920 return dlopen ();
8921   ;
8922   return 0;
8923 }
8924 _ACEOF
8925 for ac_lib in '' dl; do
8926   if test -z "$ac_lib"; then
8927     ac_res="none required"
8928   else
8929     ac_res=-l$ac_lib
8930     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8931   fi
8932   rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (ac_try="$ac_link"
8934 case "(($ac_try" in
8935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936   *) ac_try_echo=$ac_try;;
8937 esac
8938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939   (eval "$ac_link") 2>conftest.er1
8940   ac_status=$?
8941   grep -v '^ *+' conftest.er1 >conftest.err
8942   rm -f conftest.er1
8943   cat conftest.err >&5
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); } &&
8946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8947   { (case "(($ac_try" in
8948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949   *) ac_try_echo=$ac_try;;
8950 esac
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952   (eval "$ac_try") 2>&5
8953   ac_status=$?
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); }; } &&
8956          { ac_try='test -s conftest$ac_exeext'
8957   { (case "(($ac_try" in
8958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959   *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962   (eval "$ac_try") 2>&5
8963   ac_status=$?
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); }; }; then
8966   ac_cv_search_dlopen=$ac_res
8967 else
8968   echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8970
8971
8972 fi
8973
8974 rm -f core conftest.err conftest.$ac_objext \
8975       conftest$ac_exeext
8976   if test "${ac_cv_search_dlopen+set}" = set; then
8977   break
8978 fi
8979 done
8980 if test "${ac_cv_search_dlopen+set}" = set; then
8981   :
8982 else
8983   ac_cv_search_dlopen=no
8984 fi
8985 rm conftest.$ac_ext
8986 LIBS=$ac_func_search_save_LIBS
8987 fi
8988 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8989 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8990 ac_res=$ac_cv_search_dlopen
8991 if test "$ac_res" != no; then
8992   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8993
8994
8995 cat >>confdefs.h <<\_ACEOF
8996 #define HAVE_DLOPEN 1
8997 _ACEOF
8998
8999 HAVE_DLOPEN='1'
9000
9001
9002 else
9003   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9004 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9005 fi
9006
9007
9008 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9009 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9010 if test "${ac_cv_search_clock_gettime+set}" = set; then
9011   echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013   ac_func_search_save_LIBS=$LIBS
9014 cat >conftest.$ac_ext <<_ACEOF
9015 /* confdefs.h.  */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h.  */
9020
9021 /* Override any GCC internal prototype to avoid an error.
9022    Use char because int might match the return type of a GCC
9023    builtin and then its argument prototype would still apply.  */
9024 #ifdef __cplusplus
9025 extern "C"
9026 #endif
9027 char clock_gettime ();
9028 int
9029 main ()
9030 {
9031 return clock_gettime ();
9032   ;
9033   return 0;
9034 }
9035 _ACEOF
9036 for ac_lib in '' rt; do
9037   if test -z "$ac_lib"; then
9038     ac_res="none required"
9039   else
9040     ac_res=-l$ac_lib
9041     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9042   fi
9043   rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (ac_try="$ac_link"
9045 case "(($ac_try" in
9046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047   *) ac_try_echo=$ac_try;;
9048 esac
9049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050   (eval "$ac_link") 2>conftest.er1
9051   ac_status=$?
9052   grep -v '^ *+' conftest.er1 >conftest.err
9053   rm -f conftest.er1
9054   cat conftest.err >&5
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); } &&
9057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9058   { (case "(($ac_try" in
9059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060   *) ac_try_echo=$ac_try;;
9061 esac
9062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063   (eval "$ac_try") 2>&5
9064   ac_status=$?
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); }; } &&
9067          { ac_try='test -s conftest$ac_exeext'
9068   { (case "(($ac_try" in
9069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070   *) ac_try_echo=$ac_try;;
9071 esac
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073   (eval "$ac_try") 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; }; then
9077   ac_cv_search_clock_gettime=$ac_res
9078 else
9079   echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082
9083 fi
9084
9085 rm -f core conftest.err conftest.$ac_objext \
9086       conftest$ac_exeext
9087   if test "${ac_cv_search_clock_gettime+set}" = set; then
9088   break
9089 fi
9090 done
9091 if test "${ac_cv_search_clock_gettime+set}" = set; then
9092   :
9093 else
9094   ac_cv_search_clock_gettime=no
9095 fi
9096 rm conftest.$ac_ext
9097 LIBS=$ac_func_search_save_LIBS
9098 fi
9099 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9100 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9101 ac_res=$ac_cv_search_clock_gettime
9102 if test "$ac_res" != no; then
9103   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9104
9105 fi
9106
9107
9108 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9109     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9110 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9111 if test "${ac_cv_search_setupterm+set}" = set; then
9112   echo $ECHO_N "(cached) $ECHO_C" >&6
9113 else
9114   ac_func_search_save_LIBS=$LIBS
9115 cat >conftest.$ac_ext <<_ACEOF
9116 /* confdefs.h.  */
9117 _ACEOF
9118 cat confdefs.h >>conftest.$ac_ext
9119 cat >>conftest.$ac_ext <<_ACEOF
9120 /* end confdefs.h.  */
9121
9122 /* Override any GCC internal prototype to avoid an error.
9123    Use char because int might match the return type of a GCC
9124    builtin and then its argument prototype would still apply.  */
9125 #ifdef __cplusplus
9126 extern "C"
9127 #endif
9128 char setupterm ();
9129 int
9130 main ()
9131 {
9132 return setupterm ();
9133   ;
9134   return 0;
9135 }
9136 _ACEOF
9137 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9138   if test -z "$ac_lib"; then
9139     ac_res="none required"
9140   else
9141     ac_res=-l$ac_lib
9142     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9143   fi
9144   rm -f conftest.$ac_objext conftest$ac_exeext
9145 if { (ac_try="$ac_link"
9146 case "(($ac_try" in
9147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9148   *) ac_try_echo=$ac_try;;
9149 esac
9150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9151   (eval "$ac_link") 2>conftest.er1
9152   ac_status=$?
9153   grep -v '^ *+' conftest.er1 >conftest.err
9154   rm -f conftest.er1
9155   cat conftest.err >&5
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); } &&
9158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9159   { (case "(($ac_try" in
9160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161   *) ac_try_echo=$ac_try;;
9162 esac
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164   (eval "$ac_try") 2>&5
9165   ac_status=$?
9166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167   (exit $ac_status); }; } &&
9168          { ac_try='test -s conftest$ac_exeext'
9169   { (case "(($ac_try" in
9170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171   *) ac_try_echo=$ac_try;;
9172 esac
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174   (eval "$ac_try") 2>&5
9175   ac_status=$?
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); }; }; then
9178   ac_cv_search_setupterm=$ac_res
9179 else
9180   echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9182
9183
9184 fi
9185
9186 rm -f core conftest.err conftest.$ac_objext \
9187       conftest$ac_exeext
9188   if test "${ac_cv_search_setupterm+set}" = set; then
9189   break
9190 fi
9191 done
9192 if test "${ac_cv_search_setupterm+set}" = set; then
9193   :
9194 else
9195   ac_cv_search_setupterm=no
9196 fi
9197 rm conftest.$ac_ext
9198 LIBS=$ac_func_search_save_LIBS
9199 fi
9200 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9201 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9202 ac_res=$ac_cv_search_setupterm
9203 if test "$ac_res" != no; then
9204   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9205
9206
9207 cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_TERMINFO 1
9209 _ACEOF
9210
9211 HAVE_TERMINFO='1'
9212
9213
9214 fi
9215
9216 fi
9217
9218 if test "$llvm_cv_enable_libedit" = "yes" ; then
9219   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9220 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9221 if test "${ac_cv_search_el_init+set}" = set; then
9222   echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224   ac_func_search_save_LIBS=$LIBS
9225 cat >conftest.$ac_ext <<_ACEOF
9226 /* confdefs.h.  */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h.  */
9231
9232 /* Override any GCC internal prototype to avoid an error.
9233    Use char because int might match the return type of a GCC
9234    builtin and then its argument prototype would still apply.  */
9235 #ifdef __cplusplus
9236 extern "C"
9237 #endif
9238 char el_init ();
9239 int
9240 main ()
9241 {
9242 return el_init ();
9243   ;
9244   return 0;
9245 }
9246 _ACEOF
9247 for ac_lib in '' edit; do
9248   if test -z "$ac_lib"; then
9249     ac_res="none required"
9250   else
9251     ac_res=-l$ac_lib
9252     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9253   fi
9254   rm -f conftest.$ac_objext conftest$ac_exeext
9255 if { (ac_try="$ac_link"
9256 case "(($ac_try" in
9257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258   *) ac_try_echo=$ac_try;;
9259 esac
9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261   (eval "$ac_link") 2>conftest.er1
9262   ac_status=$?
9263   grep -v '^ *+' conftest.er1 >conftest.err
9264   rm -f conftest.er1
9265   cat conftest.err >&5
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); } &&
9268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9269   { (case "(($ac_try" in
9270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271   *) ac_try_echo=$ac_try;;
9272 esac
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274   (eval "$ac_try") 2>&5
9275   ac_status=$?
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); }; } &&
9278          { ac_try='test -s conftest$ac_exeext'
9279   { (case "(($ac_try" in
9280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281   *) ac_try_echo=$ac_try;;
9282 esac
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284   (eval "$ac_try") 2>&5
9285   ac_status=$?
9286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); }; }; then
9288   ac_cv_search_el_init=$ac_res
9289 else
9290   echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9292
9293
9294 fi
9295
9296 rm -f core conftest.err conftest.$ac_objext \
9297       conftest$ac_exeext
9298   if test "${ac_cv_search_el_init+set}" = set; then
9299   break
9300 fi
9301 done
9302 if test "${ac_cv_search_el_init+set}" = set; then
9303   :
9304 else
9305   ac_cv_search_el_init=no
9306 fi
9307 rm conftest.$ac_ext
9308 LIBS=$ac_func_search_save_LIBS
9309 fi
9310 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9311 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9312 ac_res=$ac_cv_search_el_init
9313 if test "$ac_res" != no; then
9314   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9315
9316 cat >>confdefs.h <<\_ACEOF
9317 #define HAVE_LIBEDIT 1
9318 _ACEOF
9319
9320 fi
9321
9322 fi
9323
9324 if test "$llvm_cv_enable_libffi" = "yes" ; then
9325   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9326 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9327 if test "${ac_cv_search_ffi_call+set}" = set; then
9328   echo $ECHO_N "(cached) $ECHO_C" >&6
9329 else
9330   ac_func_search_save_LIBS=$LIBS
9331 cat >conftest.$ac_ext <<_ACEOF
9332 /* confdefs.h.  */
9333 _ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h.  */
9337
9338 /* Override any GCC internal prototype to avoid an error.
9339    Use char because int might match the return type of a GCC
9340    builtin and then its argument prototype would still apply.  */
9341 #ifdef __cplusplus
9342 extern "C"
9343 #endif
9344 char ffi_call ();
9345 int
9346 main ()
9347 {
9348 return ffi_call ();
9349   ;
9350   return 0;
9351 }
9352 _ACEOF
9353 for ac_lib in '' ffi; do
9354   if test -z "$ac_lib"; then
9355     ac_res="none required"
9356   else
9357     ac_res=-l$ac_lib
9358     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9359   fi
9360   rm -f conftest.$ac_objext conftest$ac_exeext
9361 if { (ac_try="$ac_link"
9362 case "(($ac_try" in
9363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364   *) ac_try_echo=$ac_try;;
9365 esac
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367   (eval "$ac_link") 2>conftest.er1
9368   ac_status=$?
9369   grep -v '^ *+' conftest.er1 >conftest.err
9370   rm -f conftest.er1
9371   cat conftest.err >&5
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); } &&
9374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9375   { (case "(($ac_try" in
9376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377   *) ac_try_echo=$ac_try;;
9378 esac
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380   (eval "$ac_try") 2>&5
9381   ac_status=$?
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); }; } &&
9384          { ac_try='test -s conftest$ac_exeext'
9385   { (case "(($ac_try" in
9386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387   *) ac_try_echo=$ac_try;;
9388 esac
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390   (eval "$ac_try") 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); }; }; then
9394   ac_cv_search_ffi_call=$ac_res
9395 else
9396   echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9398
9399
9400 fi
9401
9402 rm -f core conftest.err conftest.$ac_objext \
9403       conftest$ac_exeext
9404   if test "${ac_cv_search_ffi_call+set}" = set; then
9405   break
9406 fi
9407 done
9408 if test "${ac_cv_search_ffi_call+set}" = set; then
9409   :
9410 else
9411   ac_cv_search_ffi_call=no
9412 fi
9413 rm conftest.$ac_ext
9414 LIBS=$ac_func_search_save_LIBS
9415 fi
9416 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9417 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9418 ac_res=$ac_cv_search_ffi_call
9419 if test "$ac_res" != no; then
9420   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9421
9422 cat >>confdefs.h <<\_ACEOF
9423 #define HAVE_FFI_CALL 1
9424 _ACEOF
9425
9426 else
9427   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9428 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9429    { (exit 1); exit 1; }; }
9430 fi
9431
9432 fi
9433
9434 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9435 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9436 if test "${ac_cv_search_mallinfo+set}" = set; then
9437   echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439   ac_func_search_save_LIBS=$LIBS
9440 cat >conftest.$ac_ext <<_ACEOF
9441 /* confdefs.h.  */
9442 _ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h.  */
9446
9447 /* Override any GCC internal prototype to avoid an error.
9448    Use char because int might match the return type of a GCC
9449    builtin and then its argument prototype would still apply.  */
9450 #ifdef __cplusplus
9451 extern "C"
9452 #endif
9453 char mallinfo ();
9454 int
9455 main ()
9456 {
9457 return mallinfo ();
9458   ;
9459   return 0;
9460 }
9461 _ACEOF
9462 for ac_lib in '' malloc; do
9463   if test -z "$ac_lib"; then
9464     ac_res="none required"
9465   else
9466     ac_res=-l$ac_lib
9467     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9468   fi
9469   rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (ac_try="$ac_link"
9471 case "(($ac_try" in
9472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473   *) ac_try_echo=$ac_try;;
9474 esac
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476   (eval "$ac_link") 2>conftest.er1
9477   ac_status=$?
9478   grep -v '^ *+' conftest.er1 >conftest.err
9479   rm -f conftest.er1
9480   cat conftest.err >&5
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); } &&
9483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9484   { (case "(($ac_try" in
9485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486   *) ac_try_echo=$ac_try;;
9487 esac
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489   (eval "$ac_try") 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); }; } &&
9493          { ac_try='test -s conftest$ac_exeext'
9494   { (case "(($ac_try" in
9495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496   *) ac_try_echo=$ac_try;;
9497 esac
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499   (eval "$ac_try") 2>&5
9500   ac_status=$?
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); }; }; then
9503   ac_cv_search_mallinfo=$ac_res
9504 else
9505   echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9507
9508
9509 fi
9510
9511 rm -f core conftest.err conftest.$ac_objext \
9512       conftest$ac_exeext
9513   if test "${ac_cv_search_mallinfo+set}" = set; then
9514   break
9515 fi
9516 done
9517 if test "${ac_cv_search_mallinfo+set}" = set; then
9518   :
9519 else
9520   ac_cv_search_mallinfo=no
9521 fi
9522 rm conftest.$ac_ext
9523 LIBS=$ac_func_search_save_LIBS
9524 fi
9525 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9526 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9527 ac_res=$ac_cv_search_mallinfo
9528 if test "$ac_res" != no; then
9529   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9530
9531 cat >>confdefs.h <<\_ACEOF
9532 #define HAVE_MALLINFO 1
9533 _ACEOF
9534
9535 fi
9536
9537
9538 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9539
9540 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9541 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9542 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9543   echo $ECHO_N "(cached) $ECHO_C" >&6
9544 else
9545   ac_check_lib_save_LIBS=$LIBS
9546 LIBS="-lpthread  $LIBS"
9547 cat >conftest.$ac_ext <<_ACEOF
9548 /* confdefs.h.  */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h.  */
9553
9554 /* Override any GCC internal prototype to avoid an error.
9555    Use char because int might match the return type of a GCC
9556    builtin and then its argument prototype would still apply.  */
9557 #ifdef __cplusplus
9558 extern "C"
9559 #endif
9560 char pthread_mutex_init ();
9561 int
9562 main ()
9563 {
9564 return pthread_mutex_init ();
9565   ;
9566   return 0;
9567 }
9568 _ACEOF
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (ac_try="$ac_link"
9571 case "(($ac_try" in
9572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573   *) ac_try_echo=$ac_try;;
9574 esac
9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576   (eval "$ac_link") 2>conftest.er1
9577   ac_status=$?
9578   grep -v '^ *+' conftest.er1 >conftest.err
9579   rm -f conftest.er1
9580   cat conftest.err >&5
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); } &&
9583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9584   { (case "(($ac_try" in
9585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586   *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589   (eval "$ac_try") 2>&5
9590   ac_status=$?
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); }; } &&
9593          { ac_try='test -s conftest$ac_exeext'
9594   { (case "(($ac_try" in
9595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596   *) ac_try_echo=$ac_try;;
9597 esac
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599   (eval "$ac_try") 2>&5
9600   ac_status=$?
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); }; }; then
9603   ac_cv_lib_pthread_pthread_mutex_init=yes
9604 else
9605   echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608         ac_cv_lib_pthread_pthread_mutex_init=no
9609 fi
9610
9611 rm -f core conftest.err conftest.$ac_objext \
9612       conftest$ac_exeext conftest.$ac_ext
9613 LIBS=$ac_check_lib_save_LIBS
9614 fi
9615 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9616 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9617 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9618   cat >>confdefs.h <<_ACEOF
9619 #define HAVE_LIBPTHREAD 1
9620 _ACEOF
9621
9622   LIBS="-lpthread $LIBS"
9623
9624 fi
9625
9626   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9627 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9628 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9629   echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631   ac_func_search_save_LIBS=$LIBS
9632 cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h.  */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h.  */
9638
9639 /* Override any GCC internal prototype to avoid an error.
9640    Use char because int might match the return type of a GCC
9641    builtin and then its argument prototype would still apply.  */
9642 #ifdef __cplusplus
9643 extern "C"
9644 #endif
9645 char pthread_mutex_lock ();
9646 int
9647 main ()
9648 {
9649 return pthread_mutex_lock ();
9650   ;
9651   return 0;
9652 }
9653 _ACEOF
9654 for ac_lib in '' pthread; do
9655   if test -z "$ac_lib"; then
9656     ac_res="none required"
9657   else
9658     ac_res=-l$ac_lib
9659     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9660   fi
9661   rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (ac_try="$ac_link"
9663 case "(($ac_try" in
9664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665   *) ac_try_echo=$ac_try;;
9666 esac
9667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668   (eval "$ac_link") 2>conftest.er1
9669   ac_status=$?
9670   grep -v '^ *+' conftest.er1 >conftest.err
9671   rm -f conftest.er1
9672   cat conftest.err >&5
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); } &&
9675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9676   { (case "(($ac_try" in
9677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678   *) ac_try_echo=$ac_try;;
9679 esac
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681   (eval "$ac_try") 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); }; } &&
9685          { ac_try='test -s conftest$ac_exeext'
9686   { (case "(($ac_try" in
9687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688   *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691   (eval "$ac_try") 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_cv_search_pthread_mutex_lock=$ac_res
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700
9701 fi
9702
9703 rm -f core conftest.err conftest.$ac_objext \
9704       conftest$ac_exeext
9705   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9706   break
9707 fi
9708 done
9709 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9710   :
9711 else
9712   ac_cv_search_pthread_mutex_lock=no
9713 fi
9714 rm conftest.$ac_ext
9715 LIBS=$ac_func_search_save_LIBS
9716 fi
9717 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9718 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9719 ac_res=$ac_cv_search_pthread_mutex_lock
9720 if test "$ac_res" != no; then
9721   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9722
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_PTHREAD_MUTEX_LOCK 1
9725 _ACEOF
9726
9727 fi
9728
9729   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9730 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9731 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9732   echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734   ac_func_search_save_LIBS=$LIBS
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h.  */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h.  */
9741
9742 /* Override any GCC internal prototype to avoid an error.
9743    Use char because int might match the return type of a GCC
9744    builtin and then its argument prototype would still apply.  */
9745 #ifdef __cplusplus
9746 extern "C"
9747 #endif
9748 char pthread_rwlock_init ();
9749 int
9750 main ()
9751 {
9752 return pthread_rwlock_init ();
9753   ;
9754   return 0;
9755 }
9756 _ACEOF
9757 for ac_lib in '' pthread; do
9758   if test -z "$ac_lib"; then
9759     ac_res="none required"
9760   else
9761     ac_res=-l$ac_lib
9762     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9763   fi
9764   rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (ac_try="$ac_link"
9766 case "(($ac_try" in
9767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768   *) ac_try_echo=$ac_try;;
9769 esac
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771   (eval "$ac_link") 2>conftest.er1
9772   ac_status=$?
9773   grep -v '^ *+' conftest.er1 >conftest.err
9774   rm -f conftest.er1
9775   cat conftest.err >&5
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); } &&
9778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9779   { (case "(($ac_try" in
9780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781   *) ac_try_echo=$ac_try;;
9782 esac
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784   (eval "$ac_try") 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; } &&
9788          { ac_try='test -s conftest$ac_exeext'
9789   { (case "(($ac_try" in
9790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791   *) ac_try_echo=$ac_try;;
9792 esac
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794   (eval "$ac_try") 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); }; }; then
9798   ac_cv_search_pthread_rwlock_init=$ac_res
9799 else
9800   echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803
9804 fi
9805
9806 rm -f core conftest.err conftest.$ac_objext \
9807       conftest$ac_exeext
9808   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9809   break
9810 fi
9811 done
9812 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9813   :
9814 else
9815   ac_cv_search_pthread_rwlock_init=no
9816 fi
9817 rm conftest.$ac_ext
9818 LIBS=$ac_func_search_save_LIBS
9819 fi
9820 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9821 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9822 ac_res=$ac_cv_search_pthread_rwlock_init
9823 if test "$ac_res" != no; then
9824   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9825
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_PTHREAD_RWLOCK_INIT 1
9828 _ACEOF
9829
9830 fi
9831
9832   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9833 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9834 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9835   echo $ECHO_N "(cached) $ECHO_C" >&6
9836 else
9837   ac_func_search_save_LIBS=$LIBS
9838 cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h.  */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h.  */
9844
9845 /* Override any GCC internal prototype to avoid an error.
9846    Use char because int might match the return type of a GCC
9847    builtin and then its argument prototype would still apply.  */
9848 #ifdef __cplusplus
9849 extern "C"
9850 #endif
9851 char pthread_getspecific ();
9852 int
9853 main ()
9854 {
9855 return pthread_getspecific ();
9856   ;
9857   return 0;
9858 }
9859 _ACEOF
9860 for ac_lib in '' pthread; do
9861   if test -z "$ac_lib"; then
9862     ac_res="none required"
9863   else
9864     ac_res=-l$ac_lib
9865     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9866   fi
9867   rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (ac_try="$ac_link"
9869 case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_link") 2>conftest.er1
9875   ac_status=$?
9876   grep -v '^ *+' conftest.er1 >conftest.err
9877   rm -f conftest.er1
9878   cat conftest.err >&5
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); } &&
9881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9882   { (case "(($ac_try" in
9883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884   *) ac_try_echo=$ac_try;;
9885 esac
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887   (eval "$ac_try") 2>&5
9888   ac_status=$?
9889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890   (exit $ac_status); }; } &&
9891          { ac_try='test -s conftest$ac_exeext'
9892   { (case "(($ac_try" in
9893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894   *) ac_try_echo=$ac_try;;
9895 esac
9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897   (eval "$ac_try") 2>&5
9898   ac_status=$?
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); }; }; then
9901   ac_cv_search_pthread_getspecific=$ac_res
9902 else
9903   echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9905
9906
9907 fi
9908
9909 rm -f core conftest.err conftest.$ac_objext \
9910       conftest$ac_exeext
9911   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9912   break
9913 fi
9914 done
9915 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9916   :
9917 else
9918   ac_cv_search_pthread_getspecific=no
9919 fi
9920 rm conftest.$ac_ext
9921 LIBS=$ac_func_search_save_LIBS
9922 fi
9923 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9924 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9925 ac_res=$ac_cv_search_pthread_getspecific
9926 if test "$ac_res" != no; then
9927   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9928
9929 cat >>confdefs.h <<\_ACEOF
9930 #define HAVE_PTHREAD_GETSPECIFIC 1
9931 _ACEOF
9932
9933 fi
9934
9935 fi
9936
9937 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9938
9939 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9940 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9941 if test "${ac_cv_lib_z_compress2+set}" = set; then
9942   echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944   ac_check_lib_save_LIBS=$LIBS
9945 LIBS="-lz  $LIBS"
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h.  */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h.  */
9952
9953 /* Override any GCC internal prototype to avoid an error.
9954    Use char because int might match the return type of a GCC
9955    builtin and then its argument prototype would still apply.  */
9956 #ifdef __cplusplus
9957 extern "C"
9958 #endif
9959 char compress2 ();
9960 int
9961 main ()
9962 {
9963 return compress2 ();
9964   ;
9965   return 0;
9966 }
9967 _ACEOF
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9970 case "(($ac_try" in
9971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972   *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975   (eval "$ac_link") 2>conftest.er1
9976   ac_status=$?
9977   grep -v '^ *+' conftest.er1 >conftest.err
9978   rm -f conftest.er1
9979   cat conftest.err >&5
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); } &&
9982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9983   { (case "(($ac_try" in
9984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985   *) ac_try_echo=$ac_try;;
9986 esac
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988   (eval "$ac_try") 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; } &&
9992          { ac_try='test -s conftest$ac_exeext'
9993   { (case "(($ac_try" in
9994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995   *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998   (eval "$ac_try") 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); }; }; then
10002   ac_cv_lib_z_compress2=yes
10003 else
10004   echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007         ac_cv_lib_z_compress2=no
10008 fi
10009
10010 rm -f core conftest.err conftest.$ac_objext \
10011       conftest$ac_exeext conftest.$ac_ext
10012 LIBS=$ac_check_lib_save_LIBS
10013 fi
10014 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10015 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10016 if test $ac_cv_lib_z_compress2 = yes; then
10017   cat >>confdefs.h <<_ACEOF
10018 #define HAVE_LIBZ 1
10019 _ACEOF
10020
10021   LIBS="-lz $LIBS"
10022
10023 fi
10024
10025 fi
10026
10027
10028 # Check whether --with-oprofile was given.
10029 if test "${with_oprofile+set}" = set; then
10030   withval=$with_oprofile;
10031       USE_OPROFILE=1
10032
10033       case "$withval" in
10034         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10035         no) llvm_cv_oppath=
10036             USE_OPROFILE=0
10037  ;;
10038         *) llvm_cv_oppath="${withval}/lib/oprofile"
10039            CPPFLAGS="-I${withval}/include";;
10040       esac
10041       case $llvm_cv_os_type in
10042         Linux)
10043           if test -n "$llvm_cv_oppath" ; then
10044             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10045                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10046 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10047 if test "${ac_cv_search_bfd_init+set}" = set; then
10048   echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050   ac_func_search_save_LIBS=$LIBS
10051 cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h.  */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h.  */
10057
10058 /* Override any GCC internal prototype to avoid an error.
10059    Use char because int might match the return type of a GCC
10060    builtin and then its argument prototype would still apply.  */
10061 #ifdef __cplusplus
10062 extern "C"
10063 #endif
10064 char bfd_init ();
10065 int
10066 main ()
10067 {
10068 return bfd_init ();
10069   ;
10070   return 0;
10071 }
10072 _ACEOF
10073 for ac_lib in '' bfd; do
10074   if test -z "$ac_lib"; then
10075     ac_res="none required"
10076   else
10077     ac_res=-l$ac_lib
10078     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10079   fi
10080   rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (ac_try="$ac_link"
10082 case "(($ac_try" in
10083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084   *) ac_try_echo=$ac_try;;
10085 esac
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087   (eval "$ac_link") 2>conftest.er1
10088   ac_status=$?
10089   grep -v '^ *+' conftest.er1 >conftest.err
10090   rm -f conftest.er1
10091   cat conftest.err >&5
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); } &&
10094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10095   { (case "(($ac_try" in
10096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097   *) ac_try_echo=$ac_try;;
10098 esac
10099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100   (eval "$ac_try") 2>&5
10101   ac_status=$?
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); }; } &&
10104          { ac_try='test -s conftest$ac_exeext'
10105   { (case "(($ac_try" in
10106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107   *) ac_try_echo=$ac_try;;
10108 esac
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110   (eval "$ac_try") 2>&5
10111   ac_status=$?
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); }; }; then
10114   ac_cv_search_bfd_init=$ac_res
10115 else
10116   echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10118
10119
10120 fi
10121
10122 rm -f core conftest.err conftest.$ac_objext \
10123       conftest$ac_exeext
10124   if test "${ac_cv_search_bfd_init+set}" = set; then
10125   break
10126 fi
10127 done
10128 if test "${ac_cv_search_bfd_init+set}" = set; then
10129   :
10130 else
10131   ac_cv_search_bfd_init=no
10132 fi
10133 rm conftest.$ac_ext
10134 LIBS=$ac_func_search_save_LIBS
10135 fi
10136 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10137 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10138 ac_res=$ac_cv_search_bfd_init
10139 if test "$ac_res" != no; then
10140   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10141
10142 fi
10143
10144             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10145 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10146 if test "${ac_cv_search_op_open_agent+set}" = set; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   ac_func_search_save_LIBS=$LIBS
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h.  */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h.  */
10156
10157 /* Override any GCC internal prototype to avoid an error.
10158    Use char because int might match the return type of a GCC
10159    builtin and then its argument prototype would still apply.  */
10160 #ifdef __cplusplus
10161 extern "C"
10162 #endif
10163 char op_open_agent ();
10164 int
10165 main ()
10166 {
10167 return op_open_agent ();
10168   ;
10169   return 0;
10170 }
10171 _ACEOF
10172 for ac_lib in '' opagent; do
10173   if test -z "$ac_lib"; then
10174     ac_res="none required"
10175   else
10176     ac_res=-l$ac_lib
10177     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10178   fi
10179   rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183   *) ac_try_echo=$ac_try;;
10184 esac
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186   (eval "$ac_link") 2>conftest.er1
10187   ac_status=$?
10188   grep -v '^ *+' conftest.er1 >conftest.err
10189   rm -f conftest.er1
10190   cat conftest.err >&5
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } &&
10193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194   { (case "(($ac_try" in
10195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196   *) ac_try_echo=$ac_try;;
10197 esac
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199   (eval "$ac_try") 2>&5
10200   ac_status=$?
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); }; } &&
10203          { ac_try='test -s conftest$ac_exeext'
10204   { (case "(($ac_try" in
10205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206   *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209   (eval "$ac_try") 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; }; then
10213   ac_cv_search_op_open_agent=$ac_res
10214 else
10215   echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10217
10218
10219 fi
10220
10221 rm -f core conftest.err conftest.$ac_objext \
10222       conftest$ac_exeext
10223   if test "${ac_cv_search_op_open_agent+set}" = set; then
10224   break
10225 fi
10226 done
10227 if test "${ac_cv_search_op_open_agent+set}" = set; then
10228   :
10229 else
10230   ac_cv_search_op_open_agent=no
10231 fi
10232 rm conftest.$ac_ext
10233 LIBS=$ac_func_search_save_LIBS
10234 fi
10235 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10236 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10237 ac_res=$ac_cv_search_op_open_agent
10238 if test "$ac_res" != no; then
10239   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10240
10241 else
10242
10243               echo "Error! You need to have libopagent around."
10244               exit 1
10245
10246 fi
10247
10248             if test "${ac_cv_header_opagent_h+set}" = set; then
10249   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10250 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10251 if test "${ac_cv_header_opagent_h+set}" = set; then
10252   echo $ECHO_N "(cached) $ECHO_C" >&6
10253 fi
10254 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10255 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10256 else
10257   # Is the header compilable?
10258 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10259 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10260 cat >conftest.$ac_ext <<_ACEOF
10261 /* confdefs.h.  */
10262 _ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h.  */
10266 $ac_includes_default
10267 #include <opagent.h>
10268 _ACEOF
10269 rm -f conftest.$ac_objext
10270 if { (ac_try="$ac_compile"
10271 case "(($ac_try" in
10272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273   *) ac_try_echo=$ac_try;;
10274 esac
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276   (eval "$ac_compile") 2>conftest.er1
10277   ac_status=$?
10278   grep -v '^ *+' conftest.er1 >conftest.err
10279   rm -f conftest.er1
10280   cat conftest.err >&5
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } &&
10283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284   { (case "(($ac_try" in
10285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286   *) ac_try_echo=$ac_try;;
10287 esac
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289   (eval "$ac_try") 2>&5
10290   ac_status=$?
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); }; } &&
10293          { ac_try='test -s conftest.$ac_objext'
10294   { (case "(($ac_try" in
10295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296   *) ac_try_echo=$ac_try;;
10297 esac
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299   (eval "$ac_try") 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   ac_header_compiler=yes
10304 else
10305   echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10307
10308         ac_header_compiler=no
10309 fi
10310
10311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10313 echo "${ECHO_T}$ac_header_compiler" >&6; }
10314
10315 # Is the header present?
10316 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10317 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10318 cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h.  */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h.  */
10324 #include <opagent.h>
10325 _ACEOF
10326 if { (ac_try="$ac_cpp conftest.$ac_ext"
10327 case "(($ac_try" in
10328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329   *) ac_try_echo=$ac_try;;
10330 esac
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10333   ac_status=$?
10334   grep -v '^ *+' conftest.er1 >conftest.err
10335   rm -f conftest.er1
10336   cat conftest.err >&5
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); } >/dev/null; then
10339   if test -s conftest.err; then
10340     ac_cpp_err=$ac_c_preproc_warn_flag
10341     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10342   else
10343     ac_cpp_err=
10344   fi
10345 else
10346   ac_cpp_err=yes
10347 fi
10348 if test -z "$ac_cpp_err"; then
10349   ac_header_preproc=yes
10350 else
10351   echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10353
10354   ac_header_preproc=no
10355 fi
10356
10357 rm -f conftest.err conftest.$ac_ext
10358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10359 echo "${ECHO_T}$ac_header_preproc" >&6; }
10360
10361 # So?  What about this header?
10362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10363   yes:no: )
10364     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10365 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10366     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10367 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10368     ac_header_preproc=yes
10369     ;;
10370   no:yes:* )
10371     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10372 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10373     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10374 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10375     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10376 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10377     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10378 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10379     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10380 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10381     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10382 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10383     ( cat <<\_ASBOX
10384 ## ------------------------------------ ##
10385 ## Report this to http://llvm.org/bugs/ ##
10386 ## ------------------------------------ ##
10387 _ASBOX
10388      ) | sed "s/^/$as_me: WARNING:     /" >&2
10389     ;;
10390 esac
10391 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10392 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10393 if test "${ac_cv_header_opagent_h+set}" = set; then
10394   echo $ECHO_N "(cached) $ECHO_C" >&6
10395 else
10396   ac_cv_header_opagent_h=$ac_header_preproc
10397 fi
10398 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10399 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10400
10401 fi
10402 if test $ac_cv_header_opagent_h = yes; then
10403   :
10404 else
10405
10406               echo "Error! You need to have opagent.h around."
10407               exit 1
10408
10409 fi
10410
10411
10412           fi ;;
10413         *)
10414           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10415 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10416    { (exit 1); exit 1; }; } ;;
10417       esac
10418
10419 else
10420
10421       USE_OPROFILE=0
10422
10423
10424 fi
10425
10426
10427 cat >>confdefs.h <<_ACEOF
10428 #define LLVM_USE_OPROFILE $USE_OPROFILE
10429 _ACEOF
10430
10431
10432
10433 # Check whether --with-intel-jitevents was given.
10434 if test "${with_intel_jitevents+set}" = set; then
10435   withval=$with_intel_jitevents;
10436        case "$withval" in
10437           yes) USE_INTEL_JITEVENTS=1
10438 ;;
10439           no)  USE_INTEL_JITEVENTS=0
10440 ;;
10441           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10442 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10443    { (exit 1); exit 1; }; };;
10444        esac
10445
10446       case $llvm_cv_os_type in
10447         Linux|Win32|Cygwin|MingW) ;;
10448         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10449 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10450    { (exit 1); exit 1; }; };;
10451       esac
10452
10453       case "$llvm_cv_target_arch" in
10454         x86|x86_64) ;;
10455         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10456 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10457    { (exit 1); exit 1; }; };;
10458       esac
10459
10460 else
10461
10462       USE_INTEL_JITEVENTS=0
10463
10464
10465 fi
10466
10467
10468 cat >>confdefs.h <<_ACEOF
10469 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10470 _ACEOF
10471
10472
10473 for ac_prog in xml2-config
10474 do
10475   # Extract the first word of "$ac_prog", so it can be a program name with args.
10476 set dummy $ac_prog; ac_word=$2
10477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10479 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10480   echo $ECHO_N "(cached) $ECHO_C" >&6
10481 else
10482   if test -n "$XML2CONFIG"; then
10483   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10484 else
10485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486 for as_dir in $PATH
10487 do
10488   IFS=$as_save_IFS
10489   test -z "$as_dir" && as_dir=.
10490   for ac_exec_ext in '' $ac_executable_extensions; do
10491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10492     ac_cv_prog_XML2CONFIG="$ac_prog"
10493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10494     break 2
10495   fi
10496 done
10497 done
10498 IFS=$as_save_IFS
10499
10500 fi
10501 fi
10502 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10503 if test -n "$XML2CONFIG"; then
10504   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10505 echo "${ECHO_T}$XML2CONFIG" >&6; }
10506 else
10507   { echo "$as_me:$LINENO: result: no" >&5
10508 echo "${ECHO_T}no" >&6; }
10509 fi
10510
10511
10512   test -n "$XML2CONFIG" && break
10513 done
10514
10515
10516 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10517 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10518 if test "x$XML2CONFIG" = "x"; then
10519  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10520 echo "${ECHO_T}xml2-config not found" >&6; }
10521 else
10522  LIBXML2_INC=`$XML2CONFIG --cflags`
10523  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10524 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10525  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10526 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10527 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10528   echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530   ac_check_lib_save_LIBS=$LIBS
10531 LIBS="-lxml2  $LIBS"
10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h.  */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h.  */
10538
10539 /* Override any GCC internal prototype to avoid an error.
10540    Use char because int might match the return type of a GCC
10541    builtin and then its argument prototype would still apply.  */
10542 #ifdef __cplusplus
10543 extern "C"
10544 #endif
10545 char xmlReadFile ();
10546 int
10547 main ()
10548 {
10549 return xmlReadFile ();
10550   ;
10551   return 0;
10552 }
10553 _ACEOF
10554 rm -f conftest.$ac_objext conftest$ac_exeext
10555 if { (ac_try="$ac_link"
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_link") 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_exeext'
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_cv_lib_xml2_xmlReadFile=yes
10589 else
10590   echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10592
10593         ac_cv_lib_xml2_xmlReadFile=no
10594 fi
10595
10596 rm -f core conftest.err conftest.$ac_objext \
10597       conftest$ac_exeext conftest.$ac_ext
10598 LIBS=$ac_check_lib_save_LIBS
10599 fi
10600 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10601 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10602 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10603
10604 cat >>confdefs.h <<\_ACEOF
10605 #define CLANG_HAVE_LIBXML 1
10606 _ACEOF
10607
10608                                 LIBXML2_LIBS="-lxml2"
10609 fi
10610
10611 fi
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621 ac_header_dirent=no
10622 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10623   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10624 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10625 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10627   echo $ECHO_N "(cached) $ECHO_C" >&6
10628 else
10629   cat >conftest.$ac_ext <<_ACEOF
10630 /* confdefs.h.  */
10631 _ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h.  */
10635 #include <sys/types.h>
10636 #include <$ac_hdr>
10637
10638 int
10639 main ()
10640 {
10641 if ((DIR *) 0)
10642 return 0;
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext
10648 if { (ac_try="$ac_compile"
10649 case "(($ac_try" in
10650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651   *) ac_try_echo=$ac_try;;
10652 esac
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654   (eval "$ac_compile") 2>conftest.er1
10655   ac_status=$?
10656   grep -v '^ *+' conftest.er1 >conftest.err
10657   rm -f conftest.er1
10658   cat conftest.err >&5
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); } &&
10661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10662   { (case "(($ac_try" in
10663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664   *) ac_try_echo=$ac_try;;
10665 esac
10666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10667   (eval "$ac_try") 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; } &&
10671          { ac_try='test -s conftest.$ac_objext'
10672   { (case "(($ac_try" in
10673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674   *) ac_try_echo=$ac_try;;
10675 esac
10676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677   (eval "$ac_try") 2>&5
10678   ac_status=$?
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); }; }; then
10681   eval "$as_ac_Header=yes"
10682 else
10683   echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10685
10686         eval "$as_ac_Header=no"
10687 fi
10688
10689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10690 fi
10691 ac_res=`eval echo '${'$as_ac_Header'}'`
10692                { echo "$as_me:$LINENO: result: $ac_res" >&5
10693 echo "${ECHO_T}$ac_res" >&6; }
10694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10695   cat >>confdefs.h <<_ACEOF
10696 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10697 _ACEOF
10698
10699 ac_header_dirent=$ac_hdr; break
10700 fi
10701
10702 done
10703 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10704 if test $ac_header_dirent = dirent.h; then
10705   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10706 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10707 if test "${ac_cv_search_opendir+set}" = set; then
10708   echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710   ac_func_search_save_LIBS=$LIBS
10711 cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h.  */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h.  */
10717
10718 /* Override any GCC internal prototype to avoid an error.
10719    Use char because int might match the return type of a GCC
10720    builtin and then its argument prototype would still apply.  */
10721 #ifdef __cplusplus
10722 extern "C"
10723 #endif
10724 char opendir ();
10725 int
10726 main ()
10727 {
10728 return opendir ();
10729   ;
10730   return 0;
10731 }
10732 _ACEOF
10733 for ac_lib in '' dir; do
10734   if test -z "$ac_lib"; then
10735     ac_res="none required"
10736   else
10737     ac_res=-l$ac_lib
10738     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10739   fi
10740   rm -f conftest.$ac_objext conftest$ac_exeext
10741 if { (ac_try="$ac_link"
10742 case "(($ac_try" in
10743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744   *) ac_try_echo=$ac_try;;
10745 esac
10746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747   (eval "$ac_link") 2>conftest.er1
10748   ac_status=$?
10749   grep -v '^ *+' conftest.er1 >conftest.err
10750   rm -f conftest.er1
10751   cat conftest.err >&5
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); } &&
10754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10755   { (case "(($ac_try" in
10756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757   *) ac_try_echo=$ac_try;;
10758 esac
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760   (eval "$ac_try") 2>&5
10761   ac_status=$?
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   (exit $ac_status); }; } &&
10764          { ac_try='test -s conftest$ac_exeext'
10765   { (case "(($ac_try" in
10766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767   *) ac_try_echo=$ac_try;;
10768 esac
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770   (eval "$ac_try") 2>&5
10771   ac_status=$?
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); }; }; then
10774   ac_cv_search_opendir=$ac_res
10775 else
10776   echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779
10780 fi
10781
10782 rm -f core conftest.err conftest.$ac_objext \
10783       conftest$ac_exeext
10784   if test "${ac_cv_search_opendir+set}" = set; then
10785   break
10786 fi
10787 done
10788 if test "${ac_cv_search_opendir+set}" = set; then
10789   :
10790 else
10791   ac_cv_search_opendir=no
10792 fi
10793 rm conftest.$ac_ext
10794 LIBS=$ac_func_search_save_LIBS
10795 fi
10796 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10797 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10798 ac_res=$ac_cv_search_opendir
10799 if test "$ac_res" != no; then
10800   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10801
10802 fi
10803
10804 else
10805   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10806 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10807 if test "${ac_cv_search_opendir+set}" = set; then
10808   echo $ECHO_N "(cached) $ECHO_C" >&6
10809 else
10810   ac_func_search_save_LIBS=$LIBS
10811 cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h.  */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h.  */
10817
10818 /* Override any GCC internal prototype to avoid an error.
10819    Use char because int might match the return type of a GCC
10820    builtin and then its argument prototype would still apply.  */
10821 #ifdef __cplusplus
10822 extern "C"
10823 #endif
10824 char opendir ();
10825 int
10826 main ()
10827 {
10828 return opendir ();
10829   ;
10830   return 0;
10831 }
10832 _ACEOF
10833 for ac_lib in '' x; do
10834   if test -z "$ac_lib"; then
10835     ac_res="none required"
10836   else
10837     ac_res=-l$ac_lib
10838     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10839   fi
10840   rm -f conftest.$ac_objext conftest$ac_exeext
10841 if { (ac_try="$ac_link"
10842 case "(($ac_try" in
10843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844   *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847   (eval "$ac_link") 2>conftest.er1
10848   ac_status=$?
10849   grep -v '^ *+' conftest.er1 >conftest.err
10850   rm -f conftest.er1
10851   cat conftest.err >&5
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); } &&
10854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10855   { (case "(($ac_try" in
10856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857   *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860   (eval "$ac_try") 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; } &&
10864          { ac_try='test -s conftest$ac_exeext'
10865   { (case "(($ac_try" in
10866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867   *) ac_try_echo=$ac_try;;
10868 esac
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870   (eval "$ac_try") 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); }; }; then
10874   ac_cv_search_opendir=$ac_res
10875 else
10876   echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10878
10879
10880 fi
10881
10882 rm -f core conftest.err conftest.$ac_objext \
10883       conftest$ac_exeext
10884   if test "${ac_cv_search_opendir+set}" = set; then
10885   break
10886 fi
10887 done
10888 if test "${ac_cv_search_opendir+set}" = set; then
10889   :
10890 else
10891   ac_cv_search_opendir=no
10892 fi
10893 rm conftest.$ac_ext
10894 LIBS=$ac_func_search_save_LIBS
10895 fi
10896 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10897 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10898 ac_res=$ac_cv_search_opendir
10899 if test "$ac_res" != no; then
10900   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10901
10902 fi
10903
10904 fi
10905
10906 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10907 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10908 if test "${ac_cv_header_mmap_anon+set}" = set; then
10909   echo $ECHO_N "(cached) $ECHO_C" >&6
10910 else
10911    ac_ext=c
10912 ac_cpp='$CPP $CPPFLAGS'
10913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10916
10917   cat >conftest.$ac_ext <<_ACEOF
10918 /* confdefs.h.  */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h.  */
10923 #include <sys/mman.h>
10924 #include <unistd.h>
10925 #include <fcntl.h>
10926 int
10927 main ()
10928 {
10929 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10930   ;
10931   return 0;
10932 }
10933 _ACEOF
10934 rm -f conftest.$ac_objext
10935 if { (ac_try="$ac_compile"
10936 case "(($ac_try" in
10937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938   *) ac_try_echo=$ac_try;;
10939 esac
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941   (eval "$ac_compile") 2>conftest.er1
10942   ac_status=$?
10943   grep -v '^ *+' conftest.er1 >conftest.err
10944   rm -f conftest.er1
10945   cat conftest.err >&5
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } &&
10948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10949   { (case "(($ac_try" in
10950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951   *) ac_try_echo=$ac_try;;
10952 esac
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954   (eval "$ac_try") 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; } &&
10958          { ac_try='test -s conftest.$ac_objext'
10959   { (case "(($ac_try" in
10960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961   *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964   (eval "$ac_try") 2>&5
10965   ac_status=$?
10966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967   (exit $ac_status); }; }; then
10968   ac_cv_header_mmap_anon=yes
10969 else
10970   echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10972
10973         ac_cv_header_mmap_anon=no
10974 fi
10975
10976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977   ac_ext=c
10978 ac_cpp='$CPP $CPPFLAGS'
10979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10982
10983
10984 fi
10985 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10986 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10987 if test "$ac_cv_header_mmap_anon" = yes; then
10988
10989 cat >>confdefs.h <<\_ACEOF
10990 #define HAVE_MMAP_ANONYMOUS 1
10991 _ACEOF
10992
10993 fi
10994
10995 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10996 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10997 if test "${ac_cv_header_stat_broken+set}" = set; then
10998   echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000   cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h.  */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h.  */
11006 #include <sys/types.h>
11007 #include <sys/stat.h>
11008
11009 #if defined S_ISBLK && defined S_IFDIR
11010 # if S_ISBLK (S_IFDIR)
11011 You lose.
11012 # endif
11013 #endif
11014
11015 #if defined S_ISBLK && defined S_IFCHR
11016 # if S_ISBLK (S_IFCHR)
11017 You lose.
11018 # endif
11019 #endif
11020
11021 #if defined S_ISLNK && defined S_IFREG
11022 # if S_ISLNK (S_IFREG)
11023 You lose.
11024 # endif
11025 #endif
11026
11027 #if defined S_ISSOCK && defined S_IFREG
11028 # if S_ISSOCK (S_IFREG)
11029 You lose.
11030 # endif
11031 #endif
11032
11033 _ACEOF
11034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11035   $EGREP "You lose" >/dev/null 2>&1; then
11036   ac_cv_header_stat_broken=yes
11037 else
11038   ac_cv_header_stat_broken=no
11039 fi
11040 rm -f conftest*
11041
11042 fi
11043 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11044 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11045 if test $ac_cv_header_stat_broken = yes; then
11046
11047 cat >>confdefs.h <<\_ACEOF
11048 #define STAT_MACROS_BROKEN 1
11049 _ACEOF
11050
11051 fi
11052
11053 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11054 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11055 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11056   echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058   cat >conftest.$ac_ext <<_ACEOF
11059 /* confdefs.h.  */
11060 _ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h.  */
11064 #include <sys/types.h>
11065 #include <sys/wait.h>
11066 #ifndef WEXITSTATUS
11067 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11068 #endif
11069 #ifndef WIFEXITED
11070 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11071 #endif
11072
11073 int
11074 main ()
11075 {
11076   int s;
11077   wait (&s);
11078   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11079   ;
11080   return 0;
11081 }
11082 _ACEOF
11083 rm -f conftest.$ac_objext
11084 if { (ac_try="$ac_compile"
11085 case "(($ac_try" in
11086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087   *) ac_try_echo=$ac_try;;
11088 esac
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090   (eval "$ac_compile") 2>conftest.er1
11091   ac_status=$?
11092   grep -v '^ *+' conftest.er1 >conftest.err
11093   rm -f conftest.er1
11094   cat conftest.err >&5
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); } &&
11097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11098   { (case "(($ac_try" in
11099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100   *) ac_try_echo=$ac_try;;
11101 esac
11102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103   (eval "$ac_try") 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); }; } &&
11107          { ac_try='test -s conftest.$ac_objext'
11108   { (case "(($ac_try" in
11109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110   *) ac_try_echo=$ac_try;;
11111 esac
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113   (eval "$ac_try") 2>&5
11114   ac_status=$?
11115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116   (exit $ac_status); }; }; then
11117   ac_cv_header_sys_wait_h=yes
11118 else
11119   echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11121
11122         ac_cv_header_sys_wait_h=no
11123 fi
11124
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126 fi
11127 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11128 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11129 if test $ac_cv_header_sys_wait_h = yes; then
11130
11131 cat >>confdefs.h <<\_ACEOF
11132 #define HAVE_SYS_WAIT_H 1
11133 _ACEOF
11134
11135 fi
11136
11137 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11138 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11139 if test "${ac_cv_header_time+set}" = set; then
11140   echo $ECHO_N "(cached) $ECHO_C" >&6
11141 else
11142   cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h.  */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h.  */
11148 #include <sys/types.h>
11149 #include <sys/time.h>
11150 #include <time.h>
11151
11152 int
11153 main ()
11154 {
11155 if ((struct tm *) 0)
11156 return 0;
11157   ;
11158   return 0;
11159 }
11160 _ACEOF
11161 rm -f conftest.$ac_objext
11162 if { (ac_try="$ac_compile"
11163 case "(($ac_try" in
11164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165   *) ac_try_echo=$ac_try;;
11166 esac
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168   (eval "$ac_compile") 2>conftest.er1
11169   ac_status=$?
11170   grep -v '^ *+' conftest.er1 >conftest.err
11171   rm -f conftest.er1
11172   cat conftest.err >&5
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); } &&
11175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11176   { (case "(($ac_try" in
11177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178   *) ac_try_echo=$ac_try;;
11179 esac
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181   (eval "$ac_try") 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); }; } &&
11185          { ac_try='test -s conftest.$ac_objext'
11186   { (case "(($ac_try" in
11187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188   *) ac_try_echo=$ac_try;;
11189 esac
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191   (eval "$ac_try") 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); }; }; then
11195   ac_cv_header_time=yes
11196 else
11197   echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11199
11200         ac_cv_header_time=no
11201 fi
11202
11203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11204 fi
11205 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11206 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11207 if test $ac_cv_header_time = yes; then
11208
11209 cat >>confdefs.h <<\_ACEOF
11210 #define TIME_WITH_SYS_TIME 1
11211 _ACEOF
11212
11213 fi
11214
11215
11216 ac_ext=cpp
11217 ac_cpp='$CXXCPP $CPPFLAGS'
11218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11221
11222
11223 for ac_header in cxxabi.h
11224 do
11225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229   echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231   cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h.  */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h.  */
11237 #include <stddef.h>
11238
11239
11240 #include <$ac_header>
11241 _ACEOF
11242 rm -f conftest.$ac_objext
11243 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11250   ac_status=$?
11251   grep -v '^ *+' conftest.er1 >conftest.err
11252   rm -f conftest.er1
11253   cat conftest.err >&5
11254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); } &&
11256          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11257   { (case "(($ac_try" in
11258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259   *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262   (eval "$ac_try") 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); }; } &&
11266          { ac_try='test -s conftest.$ac_objext'
11267   { (case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_try") 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; }; then
11276   eval "$as_ac_Header=yes"
11277 else
11278   echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11280
11281         eval "$as_ac_Header=no"
11282 fi
11283
11284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285 fi
11286 ac_res=`eval echo '${'$as_ac_Header'}'`
11287                { echo "$as_me:$LINENO: result: $ac_res" >&5
11288 echo "${ECHO_T}$ac_res" >&6; }
11289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11290   cat >>confdefs.h <<_ACEOF
11291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11292 _ACEOF
11293
11294 fi
11295
11296 done
11297
11298 ac_ext=c
11299 ac_cpp='$CPP $CPPFLAGS'
11300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11303
11304
11305
11306
11307
11308
11309
11310 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11311 do
11312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317   echo $ECHO_N "(cached) $ECHO_C" >&6
11318 fi
11319 ac_res=`eval echo '${'$as_ac_Header'}'`
11320                { echo "$as_me:$LINENO: result: $ac_res" >&5
11321 echo "${ECHO_T}$ac_res" >&6; }
11322 else
11323   # Is the header compilable?
11324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11326 cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h.  */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h.  */
11332 $ac_includes_default
11333 #include <$ac_header>
11334 _ACEOF
11335 rm -f conftest.$ac_objext
11336 if { (ac_try="$ac_compile"
11337 case "(($ac_try" in
11338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339   *) ac_try_echo=$ac_try;;
11340 esac
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342   (eval "$ac_compile") 2>conftest.er1
11343   ac_status=$?
11344   grep -v '^ *+' conftest.er1 >conftest.err
11345   rm -f conftest.er1
11346   cat conftest.err >&5
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); } &&
11349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11350   { (case "(($ac_try" in
11351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352   *) ac_try_echo=$ac_try;;
11353 esac
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355   (eval "$ac_try") 2>&5
11356   ac_status=$?
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); }; } &&
11359          { ac_try='test -s conftest.$ac_objext'
11360   { (case "(($ac_try" in
11361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362   *) ac_try_echo=$ac_try;;
11363 esac
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365   (eval "$ac_try") 2>&5
11366   ac_status=$?
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); }; }; then
11369   ac_header_compiler=yes
11370 else
11371   echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11373
11374         ac_header_compiler=no
11375 fi
11376
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6; }
11380
11381 # Is the header present?
11382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h.  */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h.  */
11390 #include <$ac_header>
11391 _ACEOF
11392 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
11399   ac_status=$?
11400   grep -v '^ *+' conftest.er1 >conftest.err
11401   rm -f conftest.er1
11402   cat conftest.err >&5
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); } >/dev/null; then
11405   if test -s conftest.err; then
11406     ac_cpp_err=$ac_c_preproc_warn_flag
11407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11408   else
11409     ac_cpp_err=
11410   fi
11411 else
11412   ac_cpp_err=yes
11413 fi
11414 if test -z "$ac_cpp_err"; then
11415   ac_header_preproc=yes
11416 else
11417   echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11419
11420   ac_header_preproc=no
11421 fi
11422
11423 rm -f conftest.err conftest.$ac_ext
11424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11425 echo "${ECHO_T}$ac_header_preproc" >&6; }
11426
11427 # So?  What about this header?
11428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11429   yes:no: )
11430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11434     ac_header_preproc=yes
11435     ;;
11436   no:yes:* )
11437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11449     ( cat <<\_ASBOX
11450 ## ------------------------------------ ##
11451 ## Report this to http://llvm.org/bugs/ ##
11452 ## ------------------------------------ ##
11453 _ASBOX
11454      ) | sed "s/^/$as_me: WARNING:     /" >&2
11455     ;;
11456 esac
11457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460   echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462   eval "$as_ac_Header=\$ac_header_preproc"
11463 fi
11464 ac_res=`eval echo '${'$as_ac_Header'}'`
11465                { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11467
11468 fi
11469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470   cat >>confdefs.h <<_ACEOF
11471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11472 _ACEOF
11473
11474 fi
11475
11476 done
11477
11478
11479
11480
11481
11482
11483
11484 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11485 do
11486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11491   echo $ECHO_N "(cached) $ECHO_C" >&6
11492 fi
11493 ac_res=`eval echo '${'$as_ac_Header'}'`
11494                { echo "$as_me:$LINENO: result: $ac_res" >&5
11495 echo "${ECHO_T}$ac_res" >&6; }
11496 else
11497   # Is the header compilable?
11498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11500 cat >conftest.$ac_ext <<_ACEOF
11501 /* confdefs.h.  */
11502 _ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h.  */
11506 $ac_includes_default
11507 #include <$ac_header>
11508 _ACEOF
11509 rm -f conftest.$ac_objext
11510 if { (ac_try="$ac_compile"
11511 case "(($ac_try" in
11512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513   *) ac_try_echo=$ac_try;;
11514 esac
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516   (eval "$ac_compile") 2>conftest.er1
11517   ac_status=$?
11518   grep -v '^ *+' conftest.er1 >conftest.err
11519   rm -f conftest.er1
11520   cat conftest.err >&5
11521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522   (exit $ac_status); } &&
11523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11524   { (case "(($ac_try" in
11525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526   *) ac_try_echo=$ac_try;;
11527 esac
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529   (eval "$ac_try") 2>&5
11530   ac_status=$?
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); }; } &&
11533          { ac_try='test -s conftest.$ac_objext'
11534   { (case "(($ac_try" in
11535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536   *) ac_try_echo=$ac_try;;
11537 esac
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539   (eval "$ac_try") 2>&5
11540   ac_status=$?
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); }; }; then
11543   ac_header_compiler=yes
11544 else
11545   echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11547
11548         ac_header_compiler=no
11549 fi
11550
11551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11553 echo "${ECHO_T}$ac_header_compiler" >&6; }
11554
11555 # Is the header present?
11556 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11558 cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h.  */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h.  */
11564 #include <$ac_header>
11565 _ACEOF
11566 if { (ac_try="$ac_cpp conftest.$ac_ext"
11567 case "(($ac_try" in
11568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569   *) ac_try_echo=$ac_try;;
11570 esac
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11573   ac_status=$?
11574   grep -v '^ *+' conftest.er1 >conftest.err
11575   rm -f conftest.er1
11576   cat conftest.err >&5
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); } >/dev/null; then
11579   if test -s conftest.err; then
11580     ac_cpp_err=$ac_c_preproc_warn_flag
11581     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11582   else
11583     ac_cpp_err=
11584   fi
11585 else
11586   ac_cpp_err=yes
11587 fi
11588 if test -z "$ac_cpp_err"; then
11589   ac_header_preproc=yes
11590 else
11591   echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11593
11594   ac_header_preproc=no
11595 fi
11596
11597 rm -f conftest.err conftest.$ac_ext
11598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11599 echo "${ECHO_T}$ac_header_preproc" >&6; }
11600
11601 # So?  What about this header?
11602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11603   yes:no: )
11604     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11608     ac_header_preproc=yes
11609     ;;
11610   no:yes:* )
11611     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11613     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11614 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11615     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11617     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11618 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11621     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11623     ( cat <<\_ASBOX
11624 ## ------------------------------------ ##
11625 ## Report this to http://llvm.org/bugs/ ##
11626 ## ------------------------------------ ##
11627 _ASBOX
11628      ) | sed "s/^/$as_me: WARNING:     /" >&2
11629     ;;
11630 esac
11631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636   eval "$as_ac_Header=\$ac_header_preproc"
11637 fi
11638 ac_res=`eval echo '${'$as_ac_Header'}'`
11639                { echo "$as_me:$LINENO: result: $ac_res" >&5
11640 echo "${ECHO_T}$ac_res" >&6; }
11641
11642 fi
11643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11644   cat >>confdefs.h <<_ACEOF
11645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11646 _ACEOF
11647
11648 fi
11649
11650 done
11651
11652
11653 for ac_header in utime.h
11654 do
11655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11657   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11660   echo $ECHO_N "(cached) $ECHO_C" >&6
11661 fi
11662 ac_res=`eval echo '${'$as_ac_Header'}'`
11663                { echo "$as_me:$LINENO: result: $ac_res" >&5
11664 echo "${ECHO_T}$ac_res" >&6; }
11665 else
11666   # Is the header compilable?
11667 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11669 cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h.  */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h.  */
11675 $ac_includes_default
11676 #include <$ac_header>
11677 _ACEOF
11678 rm -f conftest.$ac_objext
11679 if { (ac_try="$ac_compile"
11680 case "(($ac_try" in
11681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682   *) ac_try_echo=$ac_try;;
11683 esac
11684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685   (eval "$ac_compile") 2>conftest.er1
11686   ac_status=$?
11687   grep -v '^ *+' conftest.er1 >conftest.err
11688   rm -f conftest.er1
11689   cat conftest.err >&5
11690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691   (exit $ac_status); } &&
11692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11693   { (case "(($ac_try" in
11694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695   *) ac_try_echo=$ac_try;;
11696 esac
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698   (eval "$ac_try") 2>&5
11699   ac_status=$?
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); }; } &&
11702          { ac_try='test -s conftest.$ac_objext'
11703   { (case "(($ac_try" in
11704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11705   *) ac_try_echo=$ac_try;;
11706 esac
11707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11708   (eval "$ac_try") 2>&5
11709   ac_status=$?
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); }; }; then
11712   ac_header_compiler=yes
11713 else
11714   echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11716
11717         ac_header_compiler=no
11718 fi
11719
11720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11721 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11722 echo "${ECHO_T}$ac_header_compiler" >&6; }
11723
11724 # Is the header present?
11725 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11727 cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h.  */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h.  */
11733 #include <$ac_header>
11734 _ACEOF
11735 if { (ac_try="$ac_cpp conftest.$ac_ext"
11736 case "(($ac_try" in
11737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738   *) ac_try_echo=$ac_try;;
11739 esac
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11742   ac_status=$?
11743   grep -v '^ *+' conftest.er1 >conftest.err
11744   rm -f conftest.er1
11745   cat conftest.err >&5
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); } >/dev/null; then
11748   if test -s conftest.err; then
11749     ac_cpp_err=$ac_c_preproc_warn_flag
11750     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11751   else
11752     ac_cpp_err=
11753   fi
11754 else
11755   ac_cpp_err=yes
11756 fi
11757 if test -z "$ac_cpp_err"; then
11758   ac_header_preproc=yes
11759 else
11760   echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11762
11763   ac_header_preproc=no
11764 fi
11765
11766 rm -f conftest.err conftest.$ac_ext
11767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11768 echo "${ECHO_T}$ac_header_preproc" >&6; }
11769
11770 # So?  What about this header?
11771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11772   yes:no: )
11773     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11777     ac_header_preproc=yes
11778     ;;
11779   no:yes:* )
11780     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11782     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11783 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11784     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11786     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11787 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11790     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11792     ( cat <<\_ASBOX
11793 ## ------------------------------------ ##
11794 ## Report this to http://llvm.org/bugs/ ##
11795 ## ------------------------------------ ##
11796 _ASBOX
11797      ) | sed "s/^/$as_me: WARNING:     /" >&2
11798     ;;
11799 esac
11800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803   echo $ECHO_N "(cached) $ECHO_C" >&6
11804 else
11805   eval "$as_ac_Header=\$ac_header_preproc"
11806 fi
11807 ac_res=`eval echo '${'$as_ac_Header'}'`
11808                { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11810
11811 fi
11812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11813   cat >>confdefs.h <<_ACEOF
11814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11815 _ACEOF
11816
11817 fi
11818
11819 done
11820
11821
11822
11823
11824
11825
11826 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11827 do
11828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11833   echo $ECHO_N "(cached) $ECHO_C" >&6
11834 fi
11835 ac_res=`eval echo '${'$as_ac_Header'}'`
11836                { echo "$as_me:$LINENO: result: $ac_res" >&5
11837 echo "${ECHO_T}$ac_res" >&6; }
11838 else
11839   # Is the header compilable?
11840 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11842 cat >conftest.$ac_ext <<_ACEOF
11843 /* confdefs.h.  */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h.  */
11848 $ac_includes_default
11849 #include <$ac_header>
11850 _ACEOF
11851 rm -f conftest.$ac_objext
11852 if { (ac_try="$ac_compile"
11853 case "(($ac_try" in
11854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855   *) ac_try_echo=$ac_try;;
11856 esac
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858   (eval "$ac_compile") 2>conftest.er1
11859   ac_status=$?
11860   grep -v '^ *+' conftest.er1 >conftest.err
11861   rm -f conftest.er1
11862   cat conftest.err >&5
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); } &&
11865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11866   { (case "(($ac_try" in
11867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868   *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871   (eval "$ac_try") 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); }; } &&
11875          { ac_try='test -s conftest.$ac_objext'
11876   { (case "(($ac_try" in
11877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878   *) ac_try_echo=$ac_try;;
11879 esac
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881   (eval "$ac_try") 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); }; }; then
11885   ac_header_compiler=yes
11886 else
11887   echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11889
11890         ac_header_compiler=no
11891 fi
11892
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11895 echo "${ECHO_T}$ac_header_compiler" >&6; }
11896
11897 # Is the header present?
11898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h.  */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h.  */
11906 #include <$ac_header>
11907 _ACEOF
11908 if { (ac_try="$ac_cpp conftest.$ac_ext"
11909 case "(($ac_try" in
11910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911   *) ac_try_echo=$ac_try;;
11912 esac
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11915   ac_status=$?
11916   grep -v '^ *+' conftest.er1 >conftest.err
11917   rm -f conftest.er1
11918   cat conftest.err >&5
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); } >/dev/null; then
11921   if test -s conftest.err; then
11922     ac_cpp_err=$ac_c_preproc_warn_flag
11923     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11924   else
11925     ac_cpp_err=
11926   fi
11927 else
11928   ac_cpp_err=yes
11929 fi
11930 if test -z "$ac_cpp_err"; then
11931   ac_header_preproc=yes
11932 else
11933   echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936   ac_header_preproc=no
11937 fi
11938
11939 rm -f conftest.err conftest.$ac_ext
11940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11941 echo "${ECHO_T}$ac_header_preproc" >&6; }
11942
11943 # So?  What about this header?
11944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11945   yes:no: )
11946     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11950     ac_header_preproc=yes
11951     ;;
11952   no:yes:* )
11953     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11955     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11956 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11957     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11959     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11960 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11963     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11965     ( cat <<\_ASBOX
11966 ## ------------------------------------ ##
11967 ## Report this to http://llvm.org/bugs/ ##
11968 ## ------------------------------------ ##
11969 _ASBOX
11970      ) | sed "s/^/$as_me: WARNING:     /" >&2
11971     ;;
11972 esac
11973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976   echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978   eval "$as_ac_Header=\$ac_header_preproc"
11979 fi
11980 ac_res=`eval echo '${'$as_ac_Header'}'`
11981                { echo "$as_me:$LINENO: result: $ac_res" >&5
11982 echo "${ECHO_T}$ac_res" >&6; }
11983
11984 fi
11985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11986   cat >>confdefs.h <<_ACEOF
11987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11988 _ACEOF
11989
11990 fi
11991
11992 done
11993
11994
11995
11996
11997 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11998 do
11999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12001   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12004   echo $ECHO_N "(cached) $ECHO_C" >&6
12005 fi
12006 ac_res=`eval echo '${'$as_ac_Header'}'`
12007                { echo "$as_me:$LINENO: result: $ac_res" >&5
12008 echo "${ECHO_T}$ac_res" >&6; }
12009 else
12010   # Is the header compilable?
12011 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12013 cat >conftest.$ac_ext <<_ACEOF
12014 /* confdefs.h.  */
12015 _ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h.  */
12019 $ac_includes_default
12020 #include <$ac_header>
12021 _ACEOF
12022 rm -f conftest.$ac_objext
12023 if { (ac_try="$ac_compile"
12024 case "(($ac_try" in
12025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026   *) ac_try_echo=$ac_try;;
12027 esac
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029   (eval "$ac_compile") 2>conftest.er1
12030   ac_status=$?
12031   grep -v '^ *+' conftest.er1 >conftest.err
12032   rm -f conftest.er1
12033   cat conftest.err >&5
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); } &&
12036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12037   { (case "(($ac_try" in
12038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039   *) ac_try_echo=$ac_try;;
12040 esac
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042   (eval "$ac_try") 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; } &&
12046          { ac_try='test -s conftest.$ac_objext'
12047   { (case "(($ac_try" in
12048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049   *) ac_try_echo=$ac_try;;
12050 esac
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052   (eval "$ac_try") 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); }; }; then
12056   ac_header_compiler=yes
12057 else
12058   echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12060
12061         ac_header_compiler=no
12062 fi
12063
12064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12066 echo "${ECHO_T}$ac_header_compiler" >&6; }
12067
12068 # Is the header present?
12069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12071 cat >conftest.$ac_ext <<_ACEOF
12072 /* confdefs.h.  */
12073 _ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h.  */
12077 #include <$ac_header>
12078 _ACEOF
12079 if { (ac_try="$ac_cpp conftest.$ac_ext"
12080 case "(($ac_try" in
12081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082   *) ac_try_echo=$ac_try;;
12083 esac
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12086   ac_status=$?
12087   grep -v '^ *+' conftest.er1 >conftest.err
12088   rm -f conftest.er1
12089   cat conftest.err >&5
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); } >/dev/null; then
12092   if test -s conftest.err; then
12093     ac_cpp_err=$ac_c_preproc_warn_flag
12094     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12095   else
12096     ac_cpp_err=
12097   fi
12098 else
12099   ac_cpp_err=yes
12100 fi
12101 if test -z "$ac_cpp_err"; then
12102   ac_header_preproc=yes
12103 else
12104   echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12106
12107   ac_header_preproc=no
12108 fi
12109
12110 rm -f conftest.err conftest.$ac_ext
12111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12112 echo "${ECHO_T}$ac_header_preproc" >&6; }
12113
12114 # So?  What about this header?
12115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12116   yes:no: )
12117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12121     ac_header_preproc=yes
12122     ;;
12123   no:yes:* )
12124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12136     ( cat <<\_ASBOX
12137 ## ------------------------------------ ##
12138 ## Report this to http://llvm.org/bugs/ ##
12139 ## ------------------------------------ ##
12140 _ASBOX
12141      ) | sed "s/^/$as_me: WARNING:     /" >&2
12142     ;;
12143 esac
12144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12147   echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149   eval "$as_ac_Header=\$ac_header_preproc"
12150 fi
12151 ac_res=`eval echo '${'$as_ac_Header'}'`
12152                { echo "$as_me:$LINENO: result: $ac_res" >&5
12153 echo "${ECHO_T}$ac_res" >&6; }
12154
12155 fi
12156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12157   cat >>confdefs.h <<_ACEOF
12158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12159 _ACEOF
12160
12161 fi
12162
12163 done
12164
12165
12166 for ac_header in valgrind/valgrind.h
12167 do
12168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12170   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12173   echo $ECHO_N "(cached) $ECHO_C" >&6
12174 fi
12175 ac_res=`eval echo '${'$as_ac_Header'}'`
12176                { echo "$as_me:$LINENO: result: $ac_res" >&5
12177 echo "${ECHO_T}$ac_res" >&6; }
12178 else
12179   # Is the header compilable?
12180 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12182 cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h.  */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h.  */
12188 $ac_includes_default
12189 #include <$ac_header>
12190 _ACEOF
12191 rm -f conftest.$ac_objext
12192 if { (ac_try="$ac_compile"
12193 case "(($ac_try" in
12194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195   *) ac_try_echo=$ac_try;;
12196 esac
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198   (eval "$ac_compile") 2>conftest.er1
12199   ac_status=$?
12200   grep -v '^ *+' conftest.er1 >conftest.err
12201   rm -f conftest.er1
12202   cat conftest.err >&5
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); } &&
12205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12206   { (case "(($ac_try" in
12207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208   *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211   (eval "$ac_try") 2>&5
12212   ac_status=$?
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); }; } &&
12215          { ac_try='test -s conftest.$ac_objext'
12216   { (case "(($ac_try" in
12217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218   *) ac_try_echo=$ac_try;;
12219 esac
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221   (eval "$ac_try") 2>&5
12222   ac_status=$?
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); }; }; then
12225   ac_header_compiler=yes
12226 else
12227   echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12229
12230         ac_header_compiler=no
12231 fi
12232
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12235 echo "${ECHO_T}$ac_header_compiler" >&6; }
12236
12237 # Is the header present?
12238 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12240 cat >conftest.$ac_ext <<_ACEOF
12241 /* confdefs.h.  */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h.  */
12246 #include <$ac_header>
12247 _ACEOF
12248 if { (ac_try="$ac_cpp conftest.$ac_ext"
12249 case "(($ac_try" in
12250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251   *) ac_try_echo=$ac_try;;
12252 esac
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12255   ac_status=$?
12256   grep -v '^ *+' conftest.er1 >conftest.err
12257   rm -f conftest.er1
12258   cat conftest.err >&5
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); } >/dev/null; then
12261   if test -s conftest.err; then
12262     ac_cpp_err=$ac_c_preproc_warn_flag
12263     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12264   else
12265     ac_cpp_err=
12266   fi
12267 else
12268   ac_cpp_err=yes
12269 fi
12270 if test -z "$ac_cpp_err"; then
12271   ac_header_preproc=yes
12272 else
12273   echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12275
12276   ac_header_preproc=no
12277 fi
12278
12279 rm -f conftest.err conftest.$ac_ext
12280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12281 echo "${ECHO_T}$ac_header_preproc" >&6; }
12282
12283 # So?  What about this header?
12284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12285   yes:no: )
12286     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12290     ac_header_preproc=yes
12291     ;;
12292   no:yes:* )
12293     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12295     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12296 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12297     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12299     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12300 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12303     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12305     ( cat <<\_ASBOX
12306 ## ------------------------------------ ##
12307 ## Report this to http://llvm.org/bugs/ ##
12308 ## ------------------------------------ ##
12309 _ASBOX
12310      ) | sed "s/^/$as_me: WARNING:     /" >&2
12311     ;;
12312 esac
12313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12316   echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318   eval "$as_ac_Header=\$ac_header_preproc"
12319 fi
12320 ac_res=`eval echo '${'$as_ac_Header'}'`
12321                { echo "$as_me:$LINENO: result: $ac_res" >&5
12322 echo "${ECHO_T}$ac_res" >&6; }
12323
12324 fi
12325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12326   cat >>confdefs.h <<_ACEOF
12327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12328 _ACEOF
12329
12330 fi
12331
12332 done
12333
12334
12335 for ac_header in fenv.h
12336 do
12337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12339   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12342   echo $ECHO_N "(cached) $ECHO_C" >&6
12343 fi
12344 ac_res=`eval echo '${'$as_ac_Header'}'`
12345                { echo "$as_me:$LINENO: result: $ac_res" >&5
12346 echo "${ECHO_T}$ac_res" >&6; }
12347 else
12348   # Is the header compilable?
12349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h.  */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h.  */
12357 $ac_includes_default
12358 #include <$ac_header>
12359 _ACEOF
12360 rm -f conftest.$ac_objext
12361 if { (ac_try="$ac_compile"
12362 case "(($ac_try" in
12363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364   *) ac_try_echo=$ac_try;;
12365 esac
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367   (eval "$ac_compile") 2>conftest.er1
12368   ac_status=$?
12369   grep -v '^ *+' conftest.er1 >conftest.err
12370   rm -f conftest.er1
12371   cat conftest.err >&5
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } &&
12374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12375   { (case "(($ac_try" in
12376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377   *) ac_try_echo=$ac_try;;
12378 esac
12379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380   (eval "$ac_try") 2>&5
12381   ac_status=$?
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); }; } &&
12384          { ac_try='test -s conftest.$ac_objext'
12385   { (case "(($ac_try" in
12386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387   *) ac_try_echo=$ac_try;;
12388 esac
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390   (eval "$ac_try") 2>&5
12391   ac_status=$?
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); }; }; then
12394   ac_header_compiler=yes
12395 else
12396   echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12398
12399         ac_header_compiler=no
12400 fi
12401
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12404 echo "${ECHO_T}$ac_header_compiler" >&6; }
12405
12406 # Is the header present?
12407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12409 cat >conftest.$ac_ext <<_ACEOF
12410 /* confdefs.h.  */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h.  */
12415 #include <$ac_header>
12416 _ACEOF
12417 if { (ac_try="$ac_cpp conftest.$ac_ext"
12418 case "(($ac_try" in
12419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420   *) ac_try_echo=$ac_try;;
12421 esac
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12424   ac_status=$?
12425   grep -v '^ *+' conftest.er1 >conftest.err
12426   rm -f conftest.er1
12427   cat conftest.err >&5
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); } >/dev/null; then
12430   if test -s conftest.err; then
12431     ac_cpp_err=$ac_c_preproc_warn_flag
12432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12433   else
12434     ac_cpp_err=
12435   fi
12436 else
12437   ac_cpp_err=yes
12438 fi
12439 if test -z "$ac_cpp_err"; then
12440   ac_header_preproc=yes
12441 else
12442   echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12444
12445   ac_header_preproc=no
12446 fi
12447
12448 rm -f conftest.err conftest.$ac_ext
12449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12450 echo "${ECHO_T}$ac_header_preproc" >&6; }
12451
12452 # So?  What about this header?
12453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12454   yes:no: )
12455     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12459     ac_header_preproc=yes
12460     ;;
12461   no:yes:* )
12462     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12464     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12465 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12466     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12468     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12469 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12472     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12474     ( cat <<\_ASBOX
12475 ## ------------------------------------ ##
12476 ## Report this to http://llvm.org/bugs/ ##
12477 ## ------------------------------------ ##
12478 _ASBOX
12479      ) | sed "s/^/$as_me: WARNING:     /" >&2
12480     ;;
12481 esac
12482 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12485   echo $ECHO_N "(cached) $ECHO_C" >&6
12486 else
12487   eval "$as_ac_Header=\$ac_header_preproc"
12488 fi
12489 ac_res=`eval echo '${'$as_ac_Header'}'`
12490                { echo "$as_me:$LINENO: result: $ac_res" >&5
12491 echo "${ECHO_T}$ac_res" >&6; }
12492
12493 fi
12494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12495   cat >>confdefs.h <<_ACEOF
12496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12497 _ACEOF
12498
12499 fi
12500
12501 done
12502
12503 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12504 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12505 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12506   echo $ECHO_N "(cached) $ECHO_C" >&6
12507 else
12508   cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h.  */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h.  */
12514 #include <fenv.h>
12515
12516 int
12517 main ()
12518 {
12519 #ifndef FE_ALL_EXCEPT
12520   char *p = (char *) FE_ALL_EXCEPT;
12521   return !p;
12522 #endif
12523
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 rm -f conftest.$ac_objext
12529 if { (ac_try="$ac_compile"
12530 case "(($ac_try" in
12531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532   *) ac_try_echo=$ac_try;;
12533 esac
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535   (eval "$ac_compile") 2>conftest.er1
12536   ac_status=$?
12537   grep -v '^ *+' conftest.er1 >conftest.err
12538   rm -f conftest.er1
12539   cat conftest.err >&5
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); } &&
12542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12543   { (case "(($ac_try" in
12544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545   *) ac_try_echo=$ac_try;;
12546 esac
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548   (eval "$ac_try") 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; } &&
12552          { ac_try='test -s conftest.$ac_objext'
12553   { (case "(($ac_try" in
12554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555   *) ac_try_echo=$ac_try;;
12556 esac
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558   (eval "$ac_try") 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; }; then
12562   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12563 else
12564   echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567         ac_cv_have_decl_FE_ALL_EXCEPT=no
12568 fi
12569
12570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12571 fi
12572 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12573 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12574 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12575
12576 cat >>confdefs.h <<_ACEOF
12577 #define HAVE_DECL_FE_ALL_EXCEPT 1
12578 _ACEOF
12579
12580
12581 else
12582   cat >>confdefs.h <<_ACEOF
12583 #define HAVE_DECL_FE_ALL_EXCEPT 0
12584 _ACEOF
12585
12586
12587 fi
12588 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12589 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12590 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12591   echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593   cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h.  */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h.  */
12599 #include <fenv.h>
12600
12601 int
12602 main ()
12603 {
12604 #ifndef FE_INEXACT
12605   char *p = (char *) FE_INEXACT;
12606   return !p;
12607 #endif
12608
12609   ;
12610   return 0;
12611 }
12612 _ACEOF
12613 rm -f conftest.$ac_objext
12614 if { (ac_try="$ac_compile"
12615 case "(($ac_try" in
12616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617   *) ac_try_echo=$ac_try;;
12618 esac
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620   (eval "$ac_compile") 2>conftest.er1
12621   ac_status=$?
12622   grep -v '^ *+' conftest.er1 >conftest.err
12623   rm -f conftest.er1
12624   cat conftest.err >&5
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); } &&
12627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12628   { (case "(($ac_try" in
12629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630   *) ac_try_echo=$ac_try;;
12631 esac
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633   (eval "$ac_try") 2>&5
12634   ac_status=$?
12635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); }; } &&
12637          { ac_try='test -s conftest.$ac_objext'
12638   { (case "(($ac_try" in
12639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640   *) ac_try_echo=$ac_try;;
12641 esac
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643   (eval "$ac_try") 2>&5
12644   ac_status=$?
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); }; }; then
12647   ac_cv_have_decl_FE_INEXACT=yes
12648 else
12649   echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12651
12652         ac_cv_have_decl_FE_INEXACT=no
12653 fi
12654
12655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12656 fi
12657 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12658 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12659 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12660
12661 cat >>confdefs.h <<_ACEOF
12662 #define HAVE_DECL_FE_INEXACT 1
12663 _ACEOF
12664
12665
12666 else
12667   cat >>confdefs.h <<_ACEOF
12668 #define HAVE_DECL_FE_INEXACT 0
12669 _ACEOF
12670
12671
12672 fi
12673
12674
12675 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12676
12677 for ac_header in pthread.h
12678 do
12679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12681   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12684   echo $ECHO_N "(cached) $ECHO_C" >&6
12685 fi
12686 ac_res=`eval echo '${'$as_ac_Header'}'`
12687                { echo "$as_me:$LINENO: result: $ac_res" >&5
12688 echo "${ECHO_T}$ac_res" >&6; }
12689 else
12690   # Is the header compilable?
12691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12693 cat >conftest.$ac_ext <<_ACEOF
12694 /* confdefs.h.  */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h.  */
12699 $ac_includes_default
12700 #include <$ac_header>
12701 _ACEOF
12702 rm -f conftest.$ac_objext
12703 if { (ac_try="$ac_compile"
12704 case "(($ac_try" in
12705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706   *) ac_try_echo=$ac_try;;
12707 esac
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709   (eval "$ac_compile") 2>conftest.er1
12710   ac_status=$?
12711   grep -v '^ *+' conftest.er1 >conftest.err
12712   rm -f conftest.er1
12713   cat conftest.err >&5
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); } &&
12716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12717   { (case "(($ac_try" in
12718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719   *) ac_try_echo=$ac_try;;
12720 esac
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722   (eval "$ac_try") 2>&5
12723   ac_status=$?
12724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725   (exit $ac_status); }; } &&
12726          { ac_try='test -s conftest.$ac_objext'
12727   { (case "(($ac_try" in
12728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729   *) ac_try_echo=$ac_try;;
12730 esac
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732   (eval "$ac_try") 2>&5
12733   ac_status=$?
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); }; }; then
12736   ac_header_compiler=yes
12737 else
12738   echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12740
12741         ac_header_compiler=no
12742 fi
12743
12744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12746 echo "${ECHO_T}$ac_header_compiler" >&6; }
12747
12748 # Is the header present?
12749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h.  */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h.  */
12757 #include <$ac_header>
12758 _ACEOF
12759 if { (ac_try="$ac_cpp conftest.$ac_ext"
12760 case "(($ac_try" in
12761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762   *) ac_try_echo=$ac_try;;
12763 esac
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12766   ac_status=$?
12767   grep -v '^ *+' conftest.er1 >conftest.err
12768   rm -f conftest.er1
12769   cat conftest.err >&5
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); } >/dev/null; then
12772   if test -s conftest.err; then
12773     ac_cpp_err=$ac_c_preproc_warn_flag
12774     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12775   else
12776     ac_cpp_err=
12777   fi
12778 else
12779   ac_cpp_err=yes
12780 fi
12781 if test -z "$ac_cpp_err"; then
12782   ac_header_preproc=yes
12783 else
12784   echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12786
12787   ac_header_preproc=no
12788 fi
12789
12790 rm -f conftest.err conftest.$ac_ext
12791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12792 echo "${ECHO_T}$ac_header_preproc" >&6; }
12793
12794 # So?  What about this header?
12795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12796   yes:no: )
12797     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12801     ac_header_preproc=yes
12802     ;;
12803   no:yes:* )
12804     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12806     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12807 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12808     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12810     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12811 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12814     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12816     ( cat <<\_ASBOX
12817 ## ------------------------------------ ##
12818 ## Report this to http://llvm.org/bugs/ ##
12819 ## ------------------------------------ ##
12820 _ASBOX
12821      ) | sed "s/^/$as_me: WARNING:     /" >&2
12822     ;;
12823 esac
12824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12827   echo $ECHO_N "(cached) $ECHO_C" >&6
12828 else
12829   eval "$as_ac_Header=\$ac_header_preproc"
12830 fi
12831 ac_res=`eval echo '${'$as_ac_Header'}'`
12832                { echo "$as_me:$LINENO: result: $ac_res" >&5
12833 echo "${ECHO_T}$ac_res" >&6; }
12834
12835 fi
12836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12837   cat >>confdefs.h <<_ACEOF
12838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12839 _ACEOF
12840  HAVE_PTHREAD=1
12841
12842 else
12843   HAVE_PTHREAD=0
12844
12845 fi
12846
12847 done
12848
12849 else
12850   HAVE_PTHREAD=0
12851
12852 fi
12853 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12854
12855 for ac_header in zlib.h
12856 do
12857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12859   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12862   echo $ECHO_N "(cached) $ECHO_C" >&6
12863 fi
12864 ac_res=`eval echo '${'$as_ac_Header'}'`
12865                { echo "$as_me:$LINENO: result: $ac_res" >&5
12866 echo "${ECHO_T}$ac_res" >&6; }
12867 else
12868   # Is the header compilable?
12869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12871 cat >conftest.$ac_ext <<_ACEOF
12872 /* confdefs.h.  */
12873 _ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h.  */
12877 $ac_includes_default
12878 #include <$ac_header>
12879 _ACEOF
12880 rm -f conftest.$ac_objext
12881 if { (ac_try="$ac_compile"
12882 case "(($ac_try" in
12883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884   *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887   (eval "$ac_compile") 2>conftest.er1
12888   ac_status=$?
12889   grep -v '^ *+' conftest.er1 >conftest.err
12890   rm -f conftest.er1
12891   cat conftest.err >&5
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); } &&
12894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895   { (case "(($ac_try" in
12896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897   *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900   (eval "$ac_try") 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; } &&
12904          { ac_try='test -s conftest.$ac_objext'
12905   { (case "(($ac_try" in
12906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907   *) ac_try_echo=$ac_try;;
12908 esac
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910   (eval "$ac_try") 2>&5
12911   ac_status=$?
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); }; }; then
12914   ac_header_compiler=yes
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919         ac_header_compiler=no
12920 fi
12921
12922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12924 echo "${ECHO_T}$ac_header_compiler" >&6; }
12925
12926 # Is the header present?
12927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12929 cat >conftest.$ac_ext <<_ACEOF
12930 /* confdefs.h.  */
12931 _ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h.  */
12935 #include <$ac_header>
12936 _ACEOF
12937 if { (ac_try="$ac_cpp conftest.$ac_ext"
12938 case "(($ac_try" in
12939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940   *) ac_try_echo=$ac_try;;
12941 esac
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12944   ac_status=$?
12945   grep -v '^ *+' conftest.er1 >conftest.err
12946   rm -f conftest.er1
12947   cat conftest.err >&5
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); } >/dev/null; then
12950   if test -s conftest.err; then
12951     ac_cpp_err=$ac_c_preproc_warn_flag
12952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12953   else
12954     ac_cpp_err=
12955   fi
12956 else
12957   ac_cpp_err=yes
12958 fi
12959 if test -z "$ac_cpp_err"; then
12960   ac_header_preproc=yes
12961 else
12962   echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12964
12965   ac_header_preproc=no
12966 fi
12967
12968 rm -f conftest.err conftest.$ac_ext
12969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12970 echo "${ECHO_T}$ac_header_preproc" >&6; }
12971
12972 # So?  What about this header?
12973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12974   yes:no: )
12975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12979     ac_header_preproc=yes
12980     ;;
12981   no:yes:* )
12982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12984     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12985 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12986     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12988     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12989 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12992     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12994     ( cat <<\_ASBOX
12995 ## ------------------------------------ ##
12996 ## Report this to http://llvm.org/bugs/ ##
12997 ## ------------------------------------ ##
12998 _ASBOX
12999      ) | sed "s/^/$as_me: WARNING:     /" >&2
13000     ;;
13001 esac
13002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13005   echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007   eval "$as_ac_Header=\$ac_header_preproc"
13008 fi
13009 ac_res=`eval echo '${'$as_ac_Header'}'`
13010                { echo "$as_me:$LINENO: result: $ac_res" >&5
13011 echo "${ECHO_T}$ac_res" >&6; }
13012
13013 fi
13014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13015   cat >>confdefs.h <<_ACEOF
13016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13017 _ACEOF
13018  HAVE_LIBZ=1
13019
13020 else
13021   HAVE_LIBZ=0
13022
13023 fi
13024
13025 done
13026
13027 else
13028   HAVE_LIBZ=0
13029
13030 fi
13031
13032 if test "$llvm_cv_enable_libffi" = "yes" ; then
13033
13034
13035 for ac_header in ffi.h ffi/ffi.h
13036 do
13037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13039   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13042   echo $ECHO_N "(cached) $ECHO_C" >&6
13043 fi
13044 ac_res=`eval echo '${'$as_ac_Header'}'`
13045                { echo "$as_me:$LINENO: result: $ac_res" >&5
13046 echo "${ECHO_T}$ac_res" >&6; }
13047 else
13048   # Is the header compilable?
13049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13051 cat >conftest.$ac_ext <<_ACEOF
13052 /* confdefs.h.  */
13053 _ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h.  */
13057 $ac_includes_default
13058 #include <$ac_header>
13059 _ACEOF
13060 rm -f conftest.$ac_objext
13061 if { (ac_try="$ac_compile"
13062 case "(($ac_try" in
13063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064   *) ac_try_echo=$ac_try;;
13065 esac
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067   (eval "$ac_compile") 2>conftest.er1
13068   ac_status=$?
13069   grep -v '^ *+' conftest.er1 >conftest.err
13070   rm -f conftest.er1
13071   cat conftest.err >&5
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); } &&
13074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13075   { (case "(($ac_try" in
13076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077   *) ac_try_echo=$ac_try;;
13078 esac
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080   (eval "$ac_try") 2>&5
13081   ac_status=$?
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); }; } &&
13084          { ac_try='test -s conftest.$ac_objext'
13085   { (case "(($ac_try" in
13086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087   *) ac_try_echo=$ac_try;;
13088 esac
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090   (eval "$ac_try") 2>&5
13091   ac_status=$?
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); }; }; then
13094   ac_header_compiler=yes
13095 else
13096   echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13098
13099         ac_header_compiler=no
13100 fi
13101
13102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13104 echo "${ECHO_T}$ac_header_compiler" >&6; }
13105
13106 # Is the header present?
13107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13109 cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h.  */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h.  */
13115 #include <$ac_header>
13116 _ACEOF
13117 if { (ac_try="$ac_cpp conftest.$ac_ext"
13118 case "(($ac_try" in
13119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120   *) ac_try_echo=$ac_try;;
13121 esac
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13124   ac_status=$?
13125   grep -v '^ *+' conftest.er1 >conftest.err
13126   rm -f conftest.er1
13127   cat conftest.err >&5
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); } >/dev/null; then
13130   if test -s conftest.err; then
13131     ac_cpp_err=$ac_c_preproc_warn_flag
13132     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13133   else
13134     ac_cpp_err=
13135   fi
13136 else
13137   ac_cpp_err=yes
13138 fi
13139 if test -z "$ac_cpp_err"; then
13140   ac_header_preproc=yes
13141 else
13142   echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13144
13145   ac_header_preproc=no
13146 fi
13147
13148 rm -f conftest.err conftest.$ac_ext
13149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13150 echo "${ECHO_T}$ac_header_preproc" >&6; }
13151
13152 # So?  What about this header?
13153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13154   yes:no: )
13155     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13159     ac_header_preproc=yes
13160     ;;
13161   no:yes:* )
13162     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13164     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13165 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13166     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13168     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13169 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13172     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13174     ( cat <<\_ASBOX
13175 ## ------------------------------------ ##
13176 ## Report this to http://llvm.org/bugs/ ##
13177 ## ------------------------------------ ##
13178 _ASBOX
13179      ) | sed "s/^/$as_me: WARNING:     /" >&2
13180     ;;
13181 esac
13182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13185   echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187   eval "$as_ac_Header=\$ac_header_preproc"
13188 fi
13189 ac_res=`eval echo '${'$as_ac_Header'}'`
13190                { echo "$as_me:$LINENO: result: $ac_res" >&5
13191 echo "${ECHO_T}$ac_res" >&6; }
13192
13193 fi
13194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13195   cat >>confdefs.h <<_ACEOF
13196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13197 _ACEOF
13198
13199 fi
13200
13201 done
13202
13203 fi
13204
13205
13206 for ac_header in CrashReporterClient.h
13207 do
13208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13210   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13213   echo $ECHO_N "(cached) $ECHO_C" >&6
13214 fi
13215 ac_res=`eval echo '${'$as_ac_Header'}'`
13216                { echo "$as_me:$LINENO: result: $ac_res" >&5
13217 echo "${ECHO_T}$ac_res" >&6; }
13218 else
13219   # Is the header compilable?
13220 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13222 cat >conftest.$ac_ext <<_ACEOF
13223 /* confdefs.h.  */
13224 _ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h.  */
13228 $ac_includes_default
13229 #include <$ac_header>
13230 _ACEOF
13231 rm -f conftest.$ac_objext
13232 if { (ac_try="$ac_compile"
13233 case "(($ac_try" in
13234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235   *) ac_try_echo=$ac_try;;
13236 esac
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238   (eval "$ac_compile") 2>conftest.er1
13239   ac_status=$?
13240   grep -v '^ *+' conftest.er1 >conftest.err
13241   rm -f conftest.er1
13242   cat conftest.err >&5
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); } &&
13245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13246   { (case "(($ac_try" in
13247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248   *) ac_try_echo=$ac_try;;
13249 esac
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251   (eval "$ac_try") 2>&5
13252   ac_status=$?
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); }; } &&
13255          { ac_try='test -s conftest.$ac_objext'
13256   { (case "(($ac_try" in
13257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258   *) ac_try_echo=$ac_try;;
13259 esac
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261   (eval "$ac_try") 2>&5
13262   ac_status=$?
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); }; }; then
13265   ac_header_compiler=yes
13266 else
13267   echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270         ac_header_compiler=no
13271 fi
13272
13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13275 echo "${ECHO_T}$ac_header_compiler" >&6; }
13276
13277 # Is the header present?
13278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13280 cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286 #include <$ac_header>
13287 _ACEOF
13288 if { (ac_try="$ac_cpp conftest.$ac_ext"
13289 case "(($ac_try" in
13290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291   *) ac_try_echo=$ac_try;;
13292 esac
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13295   ac_status=$?
13296   grep -v '^ *+' conftest.er1 >conftest.err
13297   rm -f conftest.er1
13298   cat conftest.err >&5
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); } >/dev/null; then
13301   if test -s conftest.err; then
13302     ac_cpp_err=$ac_c_preproc_warn_flag
13303     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13304   else
13305     ac_cpp_err=
13306   fi
13307 else
13308   ac_cpp_err=yes
13309 fi
13310 if test -z "$ac_cpp_err"; then
13311   ac_header_preproc=yes
13312 else
13313   echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13315
13316   ac_header_preproc=no
13317 fi
13318
13319 rm -f conftest.err conftest.$ac_ext
13320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13321 echo "${ECHO_T}$ac_header_preproc" >&6; }
13322
13323 # So?  What about this header?
13324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13325   yes:no: )
13326     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13330     ac_header_preproc=yes
13331     ;;
13332   no:yes:* )
13333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13335     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13336 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13337     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13339     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13340 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13343     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13345     ( cat <<\_ASBOX
13346 ## ------------------------------------ ##
13347 ## Report this to http://llvm.org/bugs/ ##
13348 ## ------------------------------------ ##
13349 _ASBOX
13350      ) | sed "s/^/$as_me: WARNING:     /" >&2
13351     ;;
13352 esac
13353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13356   echo $ECHO_N "(cached) $ECHO_C" >&6
13357 else
13358   eval "$as_ac_Header=\$ac_header_preproc"
13359 fi
13360 ac_res=`eval echo '${'$as_ac_Header'}'`
13361                { echo "$as_me:$LINENO: result: $ac_res" >&5
13362 echo "${ECHO_T}$ac_res" >&6; }
13363
13364 fi
13365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13366   cat >>confdefs.h <<_ACEOF
13367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13368 _ACEOF
13369
13370 fi
13371
13372 done
13373
13374
13375 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13376 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13377 cat >conftest.$ac_ext <<_ACEOF
13378
13379   /* confdefs.h.  */
13380 _ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h.  */
13384
13385     extern const char *__crashreporter_info__;
13386     int main() {
13387       __crashreporter_info__ = "test";
13388       return 0;
13389     }
13390
13391
13392 _ACEOF
13393 rm -f conftest.$ac_objext conftest$ac_exeext
13394 if { (ac_try="$ac_link"
13395 case "(($ac_try" in
13396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397   *) ac_try_echo=$ac_try;;
13398 esac
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400   (eval "$ac_link") 2>conftest.er1
13401   ac_status=$?
13402   grep -v '^ *+' conftest.er1 >conftest.err
13403   rm -f conftest.er1
13404   cat conftest.err >&5
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); } &&
13407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13408   { (case "(($ac_try" in
13409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410   *) ac_try_echo=$ac_try;;
13411 esac
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413   (eval "$ac_try") 2>&5
13414   ac_status=$?
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); }; } &&
13417          { ac_try='test -s conftest$ac_exeext'
13418   { (case "(($ac_try" in
13419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420   *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423   (eval "$ac_try") 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }; }; then
13427
13428   { echo "$as_me:$LINENO: result: yes" >&5
13429 echo "${ECHO_T}yes" >&6; }
13430
13431 cat >>confdefs.h <<\_ACEOF
13432 #define HAVE_CRASHREPORTER_INFO 1
13433 _ACEOF
13434
13435
13436 else
13437   echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13439
13440
13441   { echo "$as_me:$LINENO: result: no" >&5
13442 echo "${ECHO_T}no" >&6; }
13443
13444 cat >>confdefs.h <<\_ACEOF
13445 #define HAVE_CRASHREPORTER_INFO 0
13446 _ACEOF
13447
13448
13449 fi
13450
13451 rm -f core conftest.err conftest.$ac_objext \
13452       conftest$ac_exeext conftest.$ac_ext
13453
13454
13455
13456   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13457 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13458 if test "${ac_cv_huge_val_sanity+set}" = set; then
13459   echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461
13462     ac_ext=cpp
13463 ac_cpp='$CXXCPP $CPPFLAGS'
13464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13467
13468     ac_save_CXXFLAGS=$CXXFLAGS
13469     CXXFLAGS="$CXXFLAGS -pedantic"
13470     if test "$cross_compiling" = yes; then
13471   ac_cv_huge_val_sanity=yes
13472 else
13473   cat >conftest.$ac_ext <<_ACEOF
13474 /* confdefs.h.  */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h.  */
13479 #include <math.h>
13480 int
13481 main ()
13482 {
13483 double x = HUGE_VAL; return x != x;
13484   ;
13485   return 0;
13486 }
13487 _ACEOF
13488 rm -f conftest$ac_exeext
13489 if { (ac_try="$ac_link"
13490 case "(($ac_try" in
13491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492   *) ac_try_echo=$ac_try;;
13493 esac
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495   (eval "$ac_link") 2>&5
13496   ac_status=$?
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13499   { (case "(($ac_try" in
13500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501   *) ac_try_echo=$ac_try;;
13502 esac
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504   (eval "$ac_try") 2>&5
13505   ac_status=$?
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); }; }; then
13508   ac_cv_huge_val_sanity=yes
13509 else
13510   echo "$as_me: program exited with status $ac_status" >&5
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 ( exit $ac_status )
13515 ac_cv_huge_val_sanity=no
13516 fi
13517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13518 fi
13519
13520
13521     CXXFLAGS=$ac_save_CXXFLAGS
13522     ac_ext=c
13523 ac_cpp='$CPP $CPPFLAGS'
13524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13527
13528
13529 fi
13530 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13531 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13532   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13533
13534
13535 { echo "$as_me:$LINENO: checking for pid_t" >&5
13536 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13537 if test "${ac_cv_type_pid_t+set}" = set; then
13538   echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540   cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h.  */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h.  */
13546 $ac_includes_default
13547 typedef pid_t ac__type_new_;
13548 int
13549 main ()
13550 {
13551 if ((ac__type_new_ *) 0)
13552   return 0;
13553 if (sizeof (ac__type_new_))
13554   return 0;
13555   ;
13556   return 0;
13557 }
13558 _ACEOF
13559 rm -f conftest.$ac_objext
13560 if { (ac_try="$ac_compile"
13561 case "(($ac_try" in
13562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563   *) ac_try_echo=$ac_try;;
13564 esac
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566   (eval "$ac_compile") 2>conftest.er1
13567   ac_status=$?
13568   grep -v '^ *+' conftest.er1 >conftest.err
13569   rm -f conftest.er1
13570   cat conftest.err >&5
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); } &&
13573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13574   { (case "(($ac_try" in
13575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576   *) ac_try_echo=$ac_try;;
13577 esac
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579   (eval "$ac_try") 2>&5
13580   ac_status=$?
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); }; } &&
13583          { ac_try='test -s conftest.$ac_objext'
13584   { (case "(($ac_try" in
13585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586   *) ac_try_echo=$ac_try;;
13587 esac
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589   (eval "$ac_try") 2>&5
13590   ac_status=$?
13591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592   (exit $ac_status); }; }; then
13593   ac_cv_type_pid_t=yes
13594 else
13595   echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13597
13598         ac_cv_type_pid_t=no
13599 fi
13600
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 fi
13603 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13604 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13605 if test $ac_cv_type_pid_t = yes; then
13606   :
13607 else
13608
13609 cat >>confdefs.h <<_ACEOF
13610 #define pid_t int
13611 _ACEOF
13612
13613 fi
13614
13615 { echo "$as_me:$LINENO: checking for size_t" >&5
13616 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13617 if test "${ac_cv_type_size_t+set}" = set; then
13618   echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620   cat >conftest.$ac_ext <<_ACEOF
13621 /* confdefs.h.  */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h.  */
13626 $ac_includes_default
13627 typedef size_t ac__type_new_;
13628 int
13629 main ()
13630 {
13631 if ((ac__type_new_ *) 0)
13632   return 0;
13633 if (sizeof (ac__type_new_))
13634   return 0;
13635   ;
13636   return 0;
13637 }
13638 _ACEOF
13639 rm -f conftest.$ac_objext
13640 if { (ac_try="$ac_compile"
13641 case "(($ac_try" in
13642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643   *) ac_try_echo=$ac_try;;
13644 esac
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646   (eval "$ac_compile") 2>conftest.er1
13647   ac_status=$?
13648   grep -v '^ *+' conftest.er1 >conftest.err
13649   rm -f conftest.er1
13650   cat conftest.err >&5
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); } &&
13653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13654   { (case "(($ac_try" in
13655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13656   *) ac_try_echo=$ac_try;;
13657 esac
13658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13659   (eval "$ac_try") 2>&5
13660   ac_status=$?
13661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662   (exit $ac_status); }; } &&
13663          { ac_try='test -s conftest.$ac_objext'
13664   { (case "(($ac_try" in
13665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666   *) ac_try_echo=$ac_try;;
13667 esac
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669   (eval "$ac_try") 2>&5
13670   ac_status=$?
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); }; }; then
13673   ac_cv_type_size_t=yes
13674 else
13675   echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13677
13678         ac_cv_type_size_t=no
13679 fi
13680
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 fi
13683 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13684 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13685 if test $ac_cv_type_size_t = yes; then
13686   :
13687 else
13688
13689 cat >>confdefs.h <<_ACEOF
13690 #define size_t unsigned int
13691 _ACEOF
13692
13693 fi
13694
13695
13696 cat >>confdefs.h <<_ACEOF
13697 #define RETSIGTYPE void
13698 _ACEOF
13699
13700 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13701 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13702 if test "${ac_cv_struct_tm+set}" = set; then
13703   echo $ECHO_N "(cached) $ECHO_C" >&6
13704 else
13705   cat >conftest.$ac_ext <<_ACEOF
13706 /* confdefs.h.  */
13707 _ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h.  */
13711 #include <sys/types.h>
13712 #include <time.h>
13713
13714 int
13715 main ()
13716 {
13717 struct tm *tp; tp->tm_sec;
13718   ;
13719   return 0;
13720 }
13721 _ACEOF
13722 rm -f conftest.$ac_objext
13723 if { (ac_try="$ac_compile"
13724 case "(($ac_try" in
13725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726   *) ac_try_echo=$ac_try;;
13727 esac
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729   (eval "$ac_compile") 2>conftest.er1
13730   ac_status=$?
13731   grep -v '^ *+' conftest.er1 >conftest.err
13732   rm -f conftest.er1
13733   cat conftest.err >&5
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); } &&
13736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13737   { (case "(($ac_try" in
13738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739   *) ac_try_echo=$ac_try;;
13740 esac
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742   (eval "$ac_try") 2>&5
13743   ac_status=$?
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); }; } &&
13746          { ac_try='test -s conftest.$ac_objext'
13747   { (case "(($ac_try" in
13748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749   *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752   (eval "$ac_try") 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); }; }; then
13756   ac_cv_struct_tm=time.h
13757 else
13758   echo "$as_me: failed program was:" >&5
13759 sed 's/^/| /' conftest.$ac_ext >&5
13760
13761         ac_cv_struct_tm=sys/time.h
13762 fi
13763
13764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765 fi
13766 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13767 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13768 if test $ac_cv_struct_tm = sys/time.h; then
13769
13770 cat >>confdefs.h <<\_ACEOF
13771 #define TM_IN_SYS_TIME 1
13772 _ACEOF
13773
13774 fi
13775
13776 { echo "$as_me:$LINENO: checking for int64_t" >&5
13777 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13778 if test "${ac_cv_type_int64_t+set}" = set; then
13779   echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781   cat >conftest.$ac_ext <<_ACEOF
13782 /* confdefs.h.  */
13783 _ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h.  */
13787 $ac_includes_default
13788 typedef int64_t ac__type_new_;
13789 int
13790 main ()
13791 {
13792 if ((ac__type_new_ *) 0)
13793   return 0;
13794 if (sizeof (ac__type_new_))
13795   return 0;
13796   ;
13797   return 0;
13798 }
13799 _ACEOF
13800 rm -f conftest.$ac_objext
13801 if { (ac_try="$ac_compile"
13802 case "(($ac_try" in
13803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804   *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807   (eval "$ac_compile") 2>conftest.er1
13808   ac_status=$?
13809   grep -v '^ *+' conftest.er1 >conftest.err
13810   rm -f conftest.er1
13811   cat conftest.err >&5
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); } &&
13814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13815   { (case "(($ac_try" in
13816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817   *) ac_try_echo=$ac_try;;
13818 esac
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820   (eval "$ac_try") 2>&5
13821   ac_status=$?
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); }; } &&
13824          { ac_try='test -s conftest.$ac_objext'
13825   { (case "(($ac_try" in
13826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827   *) ac_try_echo=$ac_try;;
13828 esac
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830   (eval "$ac_try") 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); }; }; then
13834   ac_cv_type_int64_t=yes
13835 else
13836   echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13838
13839         ac_cv_type_int64_t=no
13840 fi
13841
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 fi
13844 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13845 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13846 if test $ac_cv_type_int64_t = yes; then
13847
13848 cat >>confdefs.h <<_ACEOF
13849 #define HAVE_INT64_T 1
13850 _ACEOF
13851
13852
13853 else
13854   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13855 echo "$as_me: error: Type int64_t required but not found" >&2;}
13856    { (exit 1); exit 1; }; }
13857 fi
13858
13859 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13860 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13861 if test "${ac_cv_type_uint64_t+set}" = set; then
13862   echo $ECHO_N "(cached) $ECHO_C" >&6
13863 else
13864   cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h.  */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h.  */
13870 $ac_includes_default
13871 typedef uint64_t ac__type_new_;
13872 int
13873 main ()
13874 {
13875 if ((ac__type_new_ *) 0)
13876   return 0;
13877 if (sizeof (ac__type_new_))
13878   return 0;
13879   ;
13880   return 0;
13881 }
13882 _ACEOF
13883 rm -f conftest.$ac_objext
13884 if { (ac_try="$ac_compile"
13885 case "(($ac_try" in
13886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887   *) ac_try_echo=$ac_try;;
13888 esac
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890   (eval "$ac_compile") 2>conftest.er1
13891   ac_status=$?
13892   grep -v '^ *+' conftest.er1 >conftest.err
13893   rm -f conftest.er1
13894   cat conftest.err >&5
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); } &&
13897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13898   { (case "(($ac_try" in
13899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900   *) ac_try_echo=$ac_try;;
13901 esac
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903   (eval "$ac_try") 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; } &&
13907          { ac_try='test -s conftest.$ac_objext'
13908   { (case "(($ac_try" in
13909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910   *) ac_try_echo=$ac_try;;
13911 esac
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913   (eval "$ac_try") 2>&5
13914   ac_status=$?
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); }; }; then
13917   ac_cv_type_uint64_t=yes
13918 else
13919   echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13921
13922         ac_cv_type_uint64_t=no
13923 fi
13924
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13926 fi
13927 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13928 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13929 if test $ac_cv_type_uint64_t = yes; then
13930
13931 cat >>confdefs.h <<_ACEOF
13932 #define HAVE_UINT64_T 1
13933 _ACEOF
13934
13935
13936 else
13937   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13938 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13939 if test "${ac_cv_type_u_int64_t+set}" = set; then
13940   echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942   cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h.  */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h.  */
13948 $ac_includes_default
13949 typedef u_int64_t ac__type_new_;
13950 int
13951 main ()
13952 {
13953 if ((ac__type_new_ *) 0)
13954   return 0;
13955 if (sizeof (ac__type_new_))
13956   return 0;
13957   ;
13958   return 0;
13959 }
13960 _ACEOF
13961 rm -f conftest.$ac_objext
13962 if { (ac_try="$ac_compile"
13963 case "(($ac_try" in
13964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965   *) ac_try_echo=$ac_try;;
13966 esac
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968   (eval "$ac_compile") 2>conftest.er1
13969   ac_status=$?
13970   grep -v '^ *+' conftest.er1 >conftest.err
13971   rm -f conftest.er1
13972   cat conftest.err >&5
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); } &&
13975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13976   { (case "(($ac_try" in
13977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978   *) ac_try_echo=$ac_try;;
13979 esac
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981   (eval "$ac_try") 2>&5
13982   ac_status=$?
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); }; } &&
13985          { ac_try='test -s conftest.$ac_objext'
13986   { (case "(($ac_try" in
13987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988   *) ac_try_echo=$ac_try;;
13989 esac
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991   (eval "$ac_try") 2>&5
13992   ac_status=$?
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); }; }; then
13995   ac_cv_type_u_int64_t=yes
13996 else
13997   echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
13999
14000         ac_cv_type_u_int64_t=no
14001 fi
14002
14003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14004 fi
14005 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14006 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14007 if test $ac_cv_type_u_int64_t = yes; then
14008
14009 cat >>confdefs.h <<_ACEOF
14010 #define HAVE_U_INT64_T 1
14011 _ACEOF
14012
14013
14014 else
14015   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14016 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14017    { (exit 1); exit 1; }; }
14018 fi
14019
14020 fi
14021
14022
14023
14024
14025
14026 for ac_func in backtrace getcwd
14027 do
14028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14032   echo $ECHO_N "(cached) $ECHO_C" >&6
14033 else
14034   cat >conftest.$ac_ext <<_ACEOF
14035 /* confdefs.h.  */
14036 _ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h.  */
14040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14042 #define $ac_func innocuous_$ac_func
14043
14044 /* System header to define __stub macros and hopefully few prototypes,
14045     which can conflict with char $ac_func (); below.
14046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14047     <limits.h> exists even on freestanding compilers.  */
14048
14049 #ifdef __STDC__
14050 # include <limits.h>
14051 #else
14052 # include <assert.h>
14053 #endif
14054
14055 #undef $ac_func
14056
14057 /* Override any GCC internal prototype to avoid an error.
14058    Use char because int might match the return type of a GCC
14059    builtin and then its argument prototype would still apply.  */
14060 #ifdef __cplusplus
14061 extern "C"
14062 #endif
14063 char $ac_func ();
14064 /* The GNU C library defines this for functions which it implements
14065     to always fail with ENOSYS.  Some functions are actually named
14066     something starting with __ and the normal name is an alias.  */
14067 #if defined __stub_$ac_func || defined __stub___$ac_func
14068 choke me
14069 #endif
14070
14071 int
14072 main ()
14073 {
14074 return $ac_func ();
14075   ;
14076   return 0;
14077 }
14078 _ACEOF
14079 rm -f conftest.$ac_objext conftest$ac_exeext
14080 if { (ac_try="$ac_link"
14081 case "(($ac_try" in
14082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083   *) ac_try_echo=$ac_try;;
14084 esac
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086   (eval "$ac_link") 2>conftest.er1
14087   ac_status=$?
14088   grep -v '^ *+' conftest.er1 >conftest.err
14089   rm -f conftest.er1
14090   cat conftest.err >&5
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); } &&
14093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14094   { (case "(($ac_try" in
14095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096   *) ac_try_echo=$ac_try;;
14097 esac
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099   (eval "$ac_try") 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; } &&
14103          { ac_try='test -s conftest$ac_exeext'
14104   { (case "(($ac_try" in
14105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106   *) ac_try_echo=$ac_try;;
14107 esac
14108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109   (eval "$ac_try") 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); }; }; then
14113   eval "$as_ac_var=yes"
14114 else
14115   echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14117
14118         eval "$as_ac_var=no"
14119 fi
14120
14121 rm -f core conftest.err conftest.$ac_objext \
14122       conftest$ac_exeext conftest.$ac_ext
14123 fi
14124 ac_res=`eval echo '${'$as_ac_var'}'`
14125                { echo "$as_me:$LINENO: result: $ac_res" >&5
14126 echo "${ECHO_T}$ac_res" >&6; }
14127 if test `eval echo '${'$as_ac_var'}'` = yes; then
14128   cat >>confdefs.h <<_ACEOF
14129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14130 _ACEOF
14131
14132 fi
14133 done
14134
14135
14136
14137
14138
14139
14140 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14141 do
14142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14146   echo $ECHO_N "(cached) $ECHO_C" >&6
14147 else
14148   cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h.  */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h.  */
14154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14156 #define $ac_func innocuous_$ac_func
14157
14158 /* System header to define __stub macros and hopefully few prototypes,
14159     which can conflict with char $ac_func (); below.
14160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14161     <limits.h> exists even on freestanding compilers.  */
14162
14163 #ifdef __STDC__
14164 # include <limits.h>
14165 #else
14166 # include <assert.h>
14167 #endif
14168
14169 #undef $ac_func
14170
14171 /* Override any GCC internal prototype to avoid an error.
14172    Use char because int might match the return type of a GCC
14173    builtin and then its argument prototype would still apply.  */
14174 #ifdef __cplusplus
14175 extern "C"
14176 #endif
14177 char $ac_func ();
14178 /* The GNU C library defines this for functions which it implements
14179     to always fail with ENOSYS.  Some functions are actually named
14180     something starting with __ and the normal name is an alias.  */
14181 #if defined __stub_$ac_func || defined __stub___$ac_func
14182 choke me
14183 #endif
14184
14185 int
14186 main ()
14187 {
14188 return $ac_func ();
14189   ;
14190   return 0;
14191 }
14192 _ACEOF
14193 rm -f conftest.$ac_objext conftest$ac_exeext
14194 if { (ac_try="$ac_link"
14195 case "(($ac_try" in
14196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197   *) ac_try_echo=$ac_try;;
14198 esac
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200   (eval "$ac_link") 2>conftest.er1
14201   ac_status=$?
14202   grep -v '^ *+' conftest.er1 >conftest.err
14203   rm -f conftest.er1
14204   cat conftest.err >&5
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); } &&
14207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14208   { (case "(($ac_try" in
14209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210   *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213   (eval "$ac_try") 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); }; } &&
14217          { ac_try='test -s conftest$ac_exeext'
14218   { (case "(($ac_try" in
14219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220   *) ac_try_echo=$ac_try;;
14221 esac
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223   (eval "$ac_try") 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; }; then
14227   eval "$as_ac_var=yes"
14228 else
14229   echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14231
14232         eval "$as_ac_var=no"
14233 fi
14234
14235 rm -f core conftest.err conftest.$ac_objext \
14236       conftest$ac_exeext conftest.$ac_ext
14237 fi
14238 ac_res=`eval echo '${'$as_ac_var'}'`
14239                { echo "$as_me:$LINENO: result: $ac_res" >&5
14240 echo "${ECHO_T}$ac_res" >&6; }
14241 if test `eval echo '${'$as_ac_var'}'` = yes; then
14242   cat >>confdefs.h <<_ACEOF
14243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14244 _ACEOF
14245
14246 fi
14247 done
14248
14249
14250
14251
14252 for ac_func in isatty mkdtemp mkstemp
14253 do
14254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14258   echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260   cat >conftest.$ac_ext <<_ACEOF
14261 /* confdefs.h.  */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h.  */
14266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14268 #define $ac_func innocuous_$ac_func
14269
14270 /* System header to define __stub macros and hopefully few prototypes,
14271     which can conflict with char $ac_func (); below.
14272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14273     <limits.h> exists even on freestanding compilers.  */
14274
14275 #ifdef __STDC__
14276 # include <limits.h>
14277 #else
14278 # include <assert.h>
14279 #endif
14280
14281 #undef $ac_func
14282
14283 /* Override any GCC internal prototype to avoid an error.
14284    Use char because int might match the return type of a GCC
14285    builtin and then its argument prototype would still apply.  */
14286 #ifdef __cplusplus
14287 extern "C"
14288 #endif
14289 char $ac_func ();
14290 /* The GNU C library defines this for functions which it implements
14291     to always fail with ENOSYS.  Some functions are actually named
14292     something starting with __ and the normal name is an alias.  */
14293 #if defined __stub_$ac_func || defined __stub___$ac_func
14294 choke me
14295 #endif
14296
14297 int
14298 main ()
14299 {
14300 return $ac_func ();
14301   ;
14302   return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext conftest$ac_exeext
14306 if { (ac_try="$ac_link"
14307 case "(($ac_try" in
14308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309   *) ac_try_echo=$ac_try;;
14310 esac
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312   (eval "$ac_link") 2>conftest.er1
14313   ac_status=$?
14314   grep -v '^ *+' conftest.er1 >conftest.err
14315   rm -f conftest.er1
14316   cat conftest.err >&5
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); } &&
14319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14320   { (case "(($ac_try" in
14321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322   *) ac_try_echo=$ac_try;;
14323 esac
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325   (eval "$ac_try") 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); }; } &&
14329          { ac_try='test -s conftest$ac_exeext'
14330   { (case "(($ac_try" in
14331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332   *) ac_try_echo=$ac_try;;
14333 esac
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335   (eval "$ac_try") 2>&5
14336   ac_status=$?
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); }; }; then
14339   eval "$as_ac_var=yes"
14340 else
14341   echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14343
14344         eval "$as_ac_var=no"
14345 fi
14346
14347 rm -f core conftest.err conftest.$ac_objext \
14348       conftest$ac_exeext conftest.$ac_ext
14349 fi
14350 ac_res=`eval echo '${'$as_ac_var'}'`
14351                { echo "$as_me:$LINENO: result: $ac_res" >&5
14352 echo "${ECHO_T}$ac_res" >&6; }
14353 if test `eval echo '${'$as_ac_var'}'` = yes; then
14354   cat >>confdefs.h <<_ACEOF
14355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14356 _ACEOF
14357
14358 fi
14359 done
14360
14361
14362
14363
14364
14365
14366
14367 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14368 do
14369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14373   echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375   cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h.  */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h.  */
14381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14383 #define $ac_func innocuous_$ac_func
14384
14385 /* System header to define __stub macros and hopefully few prototypes,
14386     which can conflict with char $ac_func (); below.
14387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14388     <limits.h> exists even on freestanding compilers.  */
14389
14390 #ifdef __STDC__
14391 # include <limits.h>
14392 #else
14393 # include <assert.h>
14394 #endif
14395
14396 #undef $ac_func
14397
14398 /* Override any GCC internal prototype to avoid an error.
14399    Use char because int might match the return type of a GCC
14400    builtin and then its argument prototype would still apply.  */
14401 #ifdef __cplusplus
14402 extern "C"
14403 #endif
14404 char $ac_func ();
14405 /* The GNU C library defines this for functions which it implements
14406     to always fail with ENOSYS.  Some functions are actually named
14407     something starting with __ and the normal name is an alias.  */
14408 #if defined __stub_$ac_func || defined __stub___$ac_func
14409 choke me
14410 #endif
14411
14412 int
14413 main ()
14414 {
14415 return $ac_func ();
14416   ;
14417   return 0;
14418 }
14419 _ACEOF
14420 rm -f conftest.$ac_objext conftest$ac_exeext
14421 if { (ac_try="$ac_link"
14422 case "(($ac_try" in
14423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424   *) ac_try_echo=$ac_try;;
14425 esac
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427   (eval "$ac_link") 2>conftest.er1
14428   ac_status=$?
14429   grep -v '^ *+' conftest.er1 >conftest.err
14430   rm -f conftest.er1
14431   cat conftest.err >&5
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); } &&
14434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14435   { (case "(($ac_try" in
14436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437   *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440   (eval "$ac_try") 2>&5
14441   ac_status=$?
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); }; } &&
14444          { ac_try='test -s conftest$ac_exeext'
14445   { (case "(($ac_try" in
14446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447   *) ac_try_echo=$ac_try;;
14448 esac
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450   (eval "$ac_try") 2>&5
14451   ac_status=$?
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); }; }; then
14454   eval "$as_ac_var=yes"
14455 else
14456   echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14458
14459         eval "$as_ac_var=no"
14460 fi
14461
14462 rm -f core conftest.err conftest.$ac_objext \
14463       conftest$ac_exeext conftest.$ac_ext
14464 fi
14465 ac_res=`eval echo '${'$as_ac_var'}'`
14466                { echo "$as_me:$LINENO: result: $ac_res" >&5
14467 echo "${ECHO_T}$ac_res" >&6; }
14468 if test `eval echo '${'$as_ac_var'}'` = yes; then
14469   cat >>confdefs.h <<_ACEOF
14470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14471 _ACEOF
14472
14473 fi
14474 done
14475
14476
14477
14478
14479 for ac_func in strerror strerror_r setenv
14480 do
14481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14485   echo $ECHO_N "(cached) $ECHO_C" >&6
14486 else
14487   cat >conftest.$ac_ext <<_ACEOF
14488 /* confdefs.h.  */
14489 _ACEOF
14490 cat confdefs.h >>conftest.$ac_ext
14491 cat >>conftest.$ac_ext <<_ACEOF
14492 /* end confdefs.h.  */
14493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14495 #define $ac_func innocuous_$ac_func
14496
14497 /* System header to define __stub macros and hopefully few prototypes,
14498     which can conflict with char $ac_func (); below.
14499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14500     <limits.h> exists even on freestanding compilers.  */
14501
14502 #ifdef __STDC__
14503 # include <limits.h>
14504 #else
14505 # include <assert.h>
14506 #endif
14507
14508 #undef $ac_func
14509
14510 /* Override any GCC internal prototype to avoid an error.
14511    Use char because int might match the return type of a GCC
14512    builtin and then its argument prototype would still apply.  */
14513 #ifdef __cplusplus
14514 extern "C"
14515 #endif
14516 char $ac_func ();
14517 /* The GNU C library defines this for functions which it implements
14518     to always fail with ENOSYS.  Some functions are actually named
14519     something starting with __ and the normal name is an alias.  */
14520 #if defined __stub_$ac_func || defined __stub___$ac_func
14521 choke me
14522 #endif
14523
14524 int
14525 main ()
14526 {
14527 return $ac_func ();
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (ac_try="$ac_link"
14534 case "(($ac_try" in
14535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536   *) ac_try_echo=$ac_try;;
14537 esac
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539   (eval "$ac_link") 2>conftest.er1
14540   ac_status=$?
14541   grep -v '^ *+' conftest.er1 >conftest.err
14542   rm -f conftest.er1
14543   cat conftest.err >&5
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); } &&
14546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14547   { (case "(($ac_try" in
14548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549   *) ac_try_echo=$ac_try;;
14550 esac
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552   (eval "$ac_try") 2>&5
14553   ac_status=$?
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); }; } &&
14556          { ac_try='test -s conftest$ac_exeext'
14557   { (case "(($ac_try" in
14558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559   *) ac_try_echo=$ac_try;;
14560 esac
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562   (eval "$ac_try") 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; }; then
14566   eval "$as_ac_var=yes"
14567 else
14568   echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571         eval "$as_ac_var=no"
14572 fi
14573
14574 rm -f core conftest.err conftest.$ac_objext \
14575       conftest$ac_exeext conftest.$ac_ext
14576 fi
14577 ac_res=`eval echo '${'$as_ac_var'}'`
14578                { echo "$as_me:$LINENO: result: $ac_res" >&5
14579 echo "${ECHO_T}$ac_res" >&6; }
14580 if test `eval echo '${'$as_ac_var'}'` = yes; then
14581   cat >>confdefs.h <<_ACEOF
14582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14583 _ACEOF
14584
14585 fi
14586 done
14587
14588
14589
14590
14591
14592 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14593 do
14594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14598   echo $ECHO_N "(cached) $ECHO_C" >&6
14599 else
14600   cat >conftest.$ac_ext <<_ACEOF
14601 /* confdefs.h.  */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h.  */
14606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14608 #define $ac_func innocuous_$ac_func
14609
14610 /* System header to define __stub macros and hopefully few prototypes,
14611     which can conflict with char $ac_func (); below.
14612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14613     <limits.h> exists even on freestanding compilers.  */
14614
14615 #ifdef __STDC__
14616 # include <limits.h>
14617 #else
14618 # include <assert.h>
14619 #endif
14620
14621 #undef $ac_func
14622
14623 /* Override any GCC internal prototype to avoid an error.
14624    Use char because int might match the return type of a GCC
14625    builtin and then its argument prototype would still apply.  */
14626 #ifdef __cplusplus
14627 extern "C"
14628 #endif
14629 char $ac_func ();
14630 /* The GNU C library defines this for functions which it implements
14631     to always fail with ENOSYS.  Some functions are actually named
14632     something starting with __ and the normal name is an alias.  */
14633 #if defined __stub_$ac_func || defined __stub___$ac_func
14634 choke me
14635 #endif
14636
14637 int
14638 main ()
14639 {
14640 return $ac_func ();
14641   ;
14642   return 0;
14643 }
14644 _ACEOF
14645 rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (ac_try="$ac_link"
14647 case "(($ac_try" in
14648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649   *) ac_try_echo=$ac_try;;
14650 esac
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652   (eval "$ac_link") 2>conftest.er1
14653   ac_status=$?
14654   grep -v '^ *+' conftest.er1 >conftest.err
14655   rm -f conftest.er1
14656   cat conftest.err >&5
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); } &&
14659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14660   { (case "(($ac_try" in
14661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662   *) ac_try_echo=$ac_try;;
14663 esac
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665   (eval "$ac_try") 2>&5
14666   ac_status=$?
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); }; } &&
14669          { ac_try='test -s conftest$ac_exeext'
14670   { (case "(($ac_try" in
14671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672   *) ac_try_echo=$ac_try;;
14673 esac
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675   (eval "$ac_try") 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); }; }; then
14679   eval "$as_ac_var=yes"
14680 else
14681   echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14683
14684         eval "$as_ac_var=no"
14685 fi
14686
14687 rm -f core conftest.err conftest.$ac_objext \
14688       conftest$ac_exeext conftest.$ac_ext
14689 fi
14690 ac_res=`eval echo '${'$as_ac_var'}'`
14691                { echo "$as_me:$LINENO: result: $ac_res" >&5
14692 echo "${ECHO_T}$ac_res" >&6; }
14693 if test `eval echo '${'$as_ac_var'}'` = yes; then
14694   cat >>confdefs.h <<_ACEOF
14695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14696 _ACEOF
14697
14698 fi
14699 done
14700
14701
14702
14703
14704
14705
14706 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14707 do
14708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14712   echo $ECHO_N "(cached) $ECHO_C" >&6
14713 else
14714   cat >conftest.$ac_ext <<_ACEOF
14715 /* confdefs.h.  */
14716 _ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h.  */
14720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14722 #define $ac_func innocuous_$ac_func
14723
14724 /* System header to define __stub macros and hopefully few prototypes,
14725     which can conflict with char $ac_func (); below.
14726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14727     <limits.h> exists even on freestanding compilers.  */
14728
14729 #ifdef __STDC__
14730 # include <limits.h>
14731 #else
14732 # include <assert.h>
14733 #endif
14734
14735 #undef $ac_func
14736
14737 /* Override any GCC internal prototype to avoid an error.
14738    Use char because int might match the return type of a GCC
14739    builtin and then its argument prototype would still apply.  */
14740 #ifdef __cplusplus
14741 extern "C"
14742 #endif
14743 char $ac_func ();
14744 /* The GNU C library defines this for functions which it implements
14745     to always fail with ENOSYS.  Some functions are actually named
14746     something starting with __ and the normal name is an alias.  */
14747 #if defined __stub_$ac_func || defined __stub___$ac_func
14748 choke me
14749 #endif
14750
14751 int
14752 main ()
14753 {
14754 return $ac_func ();
14755   ;
14756   return 0;
14757 }
14758 _ACEOF
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (ac_try="$ac_link"
14761 case "(($ac_try" in
14762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763   *) ac_try_echo=$ac_try;;
14764 esac
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766   (eval "$ac_link") 2>conftest.er1
14767   ac_status=$?
14768   grep -v '^ *+' conftest.er1 >conftest.err
14769   rm -f conftest.er1
14770   cat conftest.err >&5
14771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772   (exit $ac_status); } &&
14773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14774   { (case "(($ac_try" in
14775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776   *) ac_try_echo=$ac_try;;
14777 esac
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779   (eval "$ac_try") 2>&5
14780   ac_status=$?
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); }; } &&
14783          { ac_try='test -s conftest$ac_exeext'
14784   { (case "(($ac_try" in
14785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786   *) ac_try_echo=$ac_try;;
14787 esac
14788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14789   (eval "$ac_try") 2>&5
14790   ac_status=$?
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); }; }; then
14793   eval "$as_ac_var=yes"
14794 else
14795   echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14797
14798         eval "$as_ac_var=no"
14799 fi
14800
14801 rm -f core conftest.err conftest.$ac_objext \
14802       conftest$ac_exeext conftest.$ac_ext
14803 fi
14804 ac_res=`eval echo '${'$as_ac_var'}'`
14805                { echo "$as_me:$LINENO: result: $ac_res" >&5
14806 echo "${ECHO_T}$ac_res" >&6; }
14807 if test `eval echo '${'$as_ac_var'}'` = yes; then
14808   cat >>confdefs.h <<_ACEOF
14809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14810 _ACEOF
14811
14812 fi
14813 done
14814
14815
14816
14817 for ac_func in futimes futimens
14818 do
14819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14820 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14823   echo $ECHO_N "(cached) $ECHO_C" >&6
14824 else
14825   cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h.  */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h.  */
14831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14833 #define $ac_func innocuous_$ac_func
14834
14835 /* System header to define __stub macros and hopefully few prototypes,
14836     which can conflict with char $ac_func (); below.
14837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14838     <limits.h> exists even on freestanding compilers.  */
14839
14840 #ifdef __STDC__
14841 # include <limits.h>
14842 #else
14843 # include <assert.h>
14844 #endif
14845
14846 #undef $ac_func
14847
14848 /* Override any GCC internal prototype to avoid an error.
14849    Use char because int might match the return type of a GCC
14850    builtin and then its argument prototype would still apply.  */
14851 #ifdef __cplusplus
14852 extern "C"
14853 #endif
14854 char $ac_func ();
14855 /* The GNU C library defines this for functions which it implements
14856     to always fail with ENOSYS.  Some functions are actually named
14857     something starting with __ and the normal name is an alias.  */
14858 #if defined __stub_$ac_func || defined __stub___$ac_func
14859 choke me
14860 #endif
14861
14862 int
14863 main ()
14864 {
14865 return $ac_func ();
14866   ;
14867   return 0;
14868 }
14869 _ACEOF
14870 rm -f conftest.$ac_objext conftest$ac_exeext
14871 if { (ac_try="$ac_link"
14872 case "(($ac_try" in
14873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874   *) ac_try_echo=$ac_try;;
14875 esac
14876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877   (eval "$ac_link") 2>conftest.er1
14878   ac_status=$?
14879   grep -v '^ *+' conftest.er1 >conftest.err
14880   rm -f conftest.er1
14881   cat conftest.err >&5
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); } &&
14884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14885   { (case "(($ac_try" in
14886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887   *) ac_try_echo=$ac_try;;
14888 esac
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890   (eval "$ac_try") 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); }; } &&
14894          { ac_try='test -s conftest$ac_exeext'
14895   { (case "(($ac_try" in
14896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897   *) ac_try_echo=$ac_try;;
14898 esac
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900   (eval "$ac_try") 2>&5
14901   ac_status=$?
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); }; }; then
14904   eval "$as_ac_var=yes"
14905 else
14906   echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14908
14909         eval "$as_ac_var=no"
14910 fi
14911
14912 rm -f core conftest.err conftest.$ac_objext \
14913       conftest$ac_exeext conftest.$ac_ext
14914 fi
14915 ac_res=`eval echo '${'$as_ac_var'}'`
14916                { echo "$as_me:$LINENO: result: $ac_res" >&5
14917 echo "${ECHO_T}$ac_res" >&6; }
14918 if test `eval echo '${'$as_ac_var'}'` = yes; then
14919   cat >>confdefs.h <<_ACEOF
14920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14921 _ACEOF
14922
14923 fi
14924 done
14925
14926 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14927 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14928 if test "${llvm_cv_c_printf_a+set}" = set; then
14929   echo $ECHO_N "(cached) $ECHO_C" >&6
14930 else
14931   ac_ext=c
14932 ac_cpp='$CPP $CPPFLAGS'
14933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14936
14937  if test "$cross_compiling" = yes; then
14938   llvmac_cv_c_printf_a=no
14939 else
14940   cat >conftest.$ac_ext <<_ACEOF
14941
14942   /* confdefs.h.  */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h.  */
14947
14948 #include <stdio.h>
14949 #include <stdlib.h>
14950
14951 int
14952 main ()
14953 {
14954
14955 volatile double A, B;
14956 char Buffer[100];
14957 A = 1;
14958 A /= 10.0;
14959 sprintf(Buffer, "%a", A);
14960 B = atof(Buffer);
14961 if (A != B)
14962   return (1);
14963 if (A != 0x1.999999999999ap-4)
14964   return (1);
14965 return (0);
14966   ;
14967   return 0;
14968 }
14969 _ACEOF
14970 rm -f conftest$ac_exeext
14971 if { (ac_try="$ac_link"
14972 case "(($ac_try" in
14973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974   *) ac_try_echo=$ac_try;;
14975 esac
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977   (eval "$ac_link") 2>&5
14978   ac_status=$?
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14981   { (case "(($ac_try" in
14982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983   *) ac_try_echo=$ac_try;;
14984 esac
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986   (eval "$ac_try") 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); }; }; then
14990   llvm_cv_c_printf_a=yes
14991 else
14992   echo "$as_me: program exited with status $ac_status" >&5
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14995
14996 ( exit $ac_status )
14997 llvmac_cv_c_printf_a=no
14998 fi
14999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15000 fi
15001
15002
15003  ac_ext=c
15004 ac_cpp='$CPP $CPPFLAGS'
15005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15008
15009 fi
15010 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15011 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15012  if test "$llvm_cv_c_printf_a" = "yes"; then
15013
15014 cat >>confdefs.h <<\_ACEOF
15015 #define HAVE_PRINTF_A 1
15016 _ACEOF
15017
15018  fi
15019
15020
15021
15022   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15023 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15024 if test "${ac_cv_func_rand48+set}" = set; then
15025   echo $ECHO_N "(cached) $ECHO_C" >&6
15026 else
15027
15028     ac_ext=cpp
15029 ac_cpp='$CXXCPP $CPPFLAGS'
15030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15033
15034     cat >conftest.$ac_ext <<_ACEOF
15035 /* confdefs.h.  */
15036 _ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h.  */
15040 #include <stdlib.h>
15041 int
15042 main ()
15043 {
15044 srand48(0);lrand48();drand48();
15045   ;
15046   return 0;
15047 }
15048 _ACEOF
15049 rm -f conftest.$ac_objext
15050 if { (ac_try="$ac_compile"
15051 case "(($ac_try" in
15052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053   *) ac_try_echo=$ac_try;;
15054 esac
15055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056   (eval "$ac_compile") 2>conftest.er1
15057   ac_status=$?
15058   grep -v '^ *+' conftest.er1 >conftest.err
15059   rm -f conftest.er1
15060   cat conftest.err >&5
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); } &&
15063          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15064   { (case "(($ac_try" in
15065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066   *) ac_try_echo=$ac_try;;
15067 esac
15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069   (eval "$ac_try") 2>&5
15070   ac_status=$?
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); }; } &&
15073          { ac_try='test -s conftest.$ac_objext'
15074   { (case "(($ac_try" in
15075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076   *) ac_try_echo=$ac_try;;
15077 esac
15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079   (eval "$ac_try") 2>&5
15080   ac_status=$?
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); }; }; then
15083   ac_cv_func_rand48=yes
15084 else
15085   echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15087
15088         ac_cv_func_rand48=no
15089 fi
15090
15091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15092     ac_ext=c
15093 ac_cpp='$CPP $CPPFLAGS'
15094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15097
15098
15099 fi
15100 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15101 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15102
15103 if test "$ac_cv_func_rand48" = "yes" ; then
15104
15105 cat >>confdefs.h <<\_ACEOF
15106 #define HAVE_RAND48 1
15107 _ACEOF
15108
15109 fi
15110
15111
15112 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15113 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15114 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15115   echo $ECHO_N "(cached) $ECHO_C" >&6
15116 else
15117   cat >conftest.$ac_ext <<_ACEOF
15118 /* confdefs.h.  */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h.  */
15123 $ac_includes_default
15124 int
15125 main ()
15126 {
15127 #ifndef arc4random
15128   char *p = (char *) arc4random;
15129   return !p;
15130 #endif
15131
15132   ;
15133   return 0;
15134 }
15135 _ACEOF
15136 rm -f conftest.$ac_objext
15137 if { (ac_try="$ac_compile"
15138 case "(($ac_try" in
15139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140   *) ac_try_echo=$ac_try;;
15141 esac
15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143   (eval "$ac_compile") 2>conftest.er1
15144   ac_status=$?
15145   grep -v '^ *+' conftest.er1 >conftest.err
15146   rm -f conftest.er1
15147   cat conftest.err >&5
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); } &&
15150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15151   { (case "(($ac_try" in
15152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153   *) ac_try_echo=$ac_try;;
15154 esac
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156   (eval "$ac_try") 2>&5
15157   ac_status=$?
15158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); }; } &&
15160          { ac_try='test -s conftest.$ac_objext'
15161   { (case "(($ac_try" in
15162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163   *) ac_try_echo=$ac_try;;
15164 esac
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166   (eval "$ac_try") 2>&5
15167   ac_status=$?
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); }; }; then
15170   ac_cv_have_decl_arc4random=yes
15171 else
15172   echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15174
15175         ac_cv_have_decl_arc4random=no
15176 fi
15177
15178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15179 fi
15180 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15181 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15182 if test $ac_cv_have_decl_arc4random = yes; then
15183
15184 cat >>confdefs.h <<_ACEOF
15185 #define HAVE_DECL_ARC4RANDOM 1
15186 _ACEOF
15187
15188
15189 else
15190   cat >>confdefs.h <<_ACEOF
15191 #define HAVE_DECL_ARC4RANDOM 0
15192 _ACEOF
15193
15194
15195 fi
15196
15197
15198
15199 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15200 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15201 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15202   echo $ECHO_N "(cached) $ECHO_C" >&6
15203 else
15204   cat >conftest.$ac_ext <<_ACEOF
15205 /* confdefs.h.  */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h.  */
15210 $ac_includes_default
15211 int
15212 main ()
15213 {
15214 #ifndef strerror_s
15215   char *p = (char *) strerror_s;
15216   return !p;
15217 #endif
15218
15219   ;
15220   return 0;
15221 }
15222 _ACEOF
15223 rm -f conftest.$ac_objext
15224 if { (ac_try="$ac_compile"
15225 case "(($ac_try" in
15226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227   *) ac_try_echo=$ac_try;;
15228 esac
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230   (eval "$ac_compile") 2>conftest.er1
15231   ac_status=$?
15232   grep -v '^ *+' conftest.er1 >conftest.err
15233   rm -f conftest.er1
15234   cat conftest.err >&5
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); } &&
15237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15238   { (case "(($ac_try" in
15239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240   *) ac_try_echo=$ac_try;;
15241 esac
15242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243   (eval "$ac_try") 2>&5
15244   ac_status=$?
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); }; } &&
15247          { ac_try='test -s conftest.$ac_objext'
15248   { (case "(($ac_try" in
15249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250   *) ac_try_echo=$ac_try;;
15251 esac
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253   (eval "$ac_try") 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }; }; then
15257   ac_cv_have_decl_strerror_s=yes
15258 else
15259   echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15261
15262         ac_cv_have_decl_strerror_s=no
15263 fi
15264
15265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15266 fi
15267 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15268 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15269 if test $ac_cv_have_decl_strerror_s = yes; then
15270
15271 cat >>confdefs.h <<_ACEOF
15272 #define HAVE_DECL_STRERROR_S 1
15273 _ACEOF
15274
15275
15276 else
15277   cat >>confdefs.h <<_ACEOF
15278 #define HAVE_DECL_STRERROR_S 0
15279 _ACEOF
15280
15281
15282 fi
15283
15284
15285
15286 if test "$llvm_cv_os_type" = "MingW" ; then
15287   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15288 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15289 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15290   echo $ECHO_N "(cached) $ECHO_C" >&6
15291 else
15292   ac_check_lib_save_LIBS=$LIBS
15293 LIBS="-lgcc  $LIBS"
15294 cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h.  */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h.  */
15300
15301 /* Override any GCC internal prototype to avoid an error.
15302    Use char because int might match the return type of a GCC
15303    builtin and then its argument prototype would still apply.  */
15304 #ifdef __cplusplus
15305 extern "C"
15306 #endif
15307 char _alloca ();
15308 int
15309 main ()
15310 {
15311 return _alloca ();
15312   ;
15313   return 0;
15314 }
15315 _ACEOF
15316 rm -f conftest.$ac_objext conftest$ac_exeext
15317 if { (ac_try="$ac_link"
15318 case "(($ac_try" in
15319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320   *) ac_try_echo=$ac_try;;
15321 esac
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323   (eval "$ac_link") 2>conftest.er1
15324   ac_status=$?
15325   grep -v '^ *+' conftest.er1 >conftest.err
15326   rm -f conftest.er1
15327   cat conftest.err >&5
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); } &&
15330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15331   { (case "(($ac_try" in
15332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333   *) ac_try_echo=$ac_try;;
15334 esac
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336   (eval "$ac_try") 2>&5
15337   ac_status=$?
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); }; } &&
15340          { ac_try='test -s conftest$ac_exeext'
15341   { (case "(($ac_try" in
15342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343   *) ac_try_echo=$ac_try;;
15344 esac
15345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15346   (eval "$ac_try") 2>&5
15347   ac_status=$?
15348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349   (exit $ac_status); }; }; then
15350   ac_cv_lib_gcc__alloca=yes
15351 else
15352   echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15354
15355         ac_cv_lib_gcc__alloca=no
15356 fi
15357
15358 rm -f core conftest.err conftest.$ac_objext \
15359       conftest$ac_exeext conftest.$ac_ext
15360 LIBS=$ac_check_lib_save_LIBS
15361 fi
15362 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15363 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15364 if test $ac_cv_lib_gcc__alloca = yes; then
15365
15366 cat >>confdefs.h <<\_ACEOF
15367 #define HAVE__ALLOCA 1
15368 _ACEOF
15369
15370 fi
15371
15372   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15373 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15374 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15375   echo $ECHO_N "(cached) $ECHO_C" >&6
15376 else
15377   ac_check_lib_save_LIBS=$LIBS
15378 LIBS="-lgcc  $LIBS"
15379 cat >conftest.$ac_ext <<_ACEOF
15380 /* confdefs.h.  */
15381 _ACEOF
15382 cat confdefs.h >>conftest.$ac_ext
15383 cat >>conftest.$ac_ext <<_ACEOF
15384 /* end confdefs.h.  */
15385
15386 /* Override any GCC internal prototype to avoid an error.
15387    Use char because int might match the return type of a GCC
15388    builtin and then its argument prototype would still apply.  */
15389 #ifdef __cplusplus
15390 extern "C"
15391 #endif
15392 char __alloca ();
15393 int
15394 main ()
15395 {
15396 return __alloca ();
15397   ;
15398   return 0;
15399 }
15400 _ACEOF
15401 rm -f conftest.$ac_objext conftest$ac_exeext
15402 if { (ac_try="$ac_link"
15403 case "(($ac_try" in
15404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405   *) ac_try_echo=$ac_try;;
15406 esac
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408   (eval "$ac_link") 2>conftest.er1
15409   ac_status=$?
15410   grep -v '^ *+' conftest.er1 >conftest.err
15411   rm -f conftest.er1
15412   cat conftest.err >&5
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); } &&
15415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15416   { (case "(($ac_try" in
15417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418   *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421   (eval "$ac_try") 2>&5
15422   ac_status=$?
15423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); }; } &&
15425          { ac_try='test -s conftest$ac_exeext'
15426   { (case "(($ac_try" in
15427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428   *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431   (eval "$ac_try") 2>&5
15432   ac_status=$?
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); }; }; then
15435   ac_cv_lib_gcc___alloca=yes
15436 else
15437   echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15439
15440         ac_cv_lib_gcc___alloca=no
15441 fi
15442
15443 rm -f core conftest.err conftest.$ac_objext \
15444       conftest$ac_exeext conftest.$ac_ext
15445 LIBS=$ac_check_lib_save_LIBS
15446 fi
15447 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15448 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15449 if test $ac_cv_lib_gcc___alloca = yes; then
15450
15451 cat >>confdefs.h <<\_ACEOF
15452 #define HAVE___ALLOCA 1
15453 _ACEOF
15454
15455 fi
15456
15457   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15458 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15459 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15460   echo $ECHO_N "(cached) $ECHO_C" >&6
15461 else
15462   ac_check_lib_save_LIBS=$LIBS
15463 LIBS="-lgcc  $LIBS"
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
15471 /* Override any GCC internal prototype to avoid an error.
15472    Use char because int might match the return type of a GCC
15473    builtin and then its argument prototype would still apply.  */
15474 #ifdef __cplusplus
15475 extern "C"
15476 #endif
15477 char __chkstk ();
15478 int
15479 main ()
15480 {
15481 return __chkstk ();
15482   ;
15483   return 0;
15484 }
15485 _ACEOF
15486 rm -f conftest.$ac_objext conftest$ac_exeext
15487 if { (ac_try="$ac_link"
15488 case "(($ac_try" in
15489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15490   *) ac_try_echo=$ac_try;;
15491 esac
15492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15493   (eval "$ac_link") 2>conftest.er1
15494   ac_status=$?
15495   grep -v '^ *+' conftest.er1 >conftest.err
15496   rm -f conftest.er1
15497   cat conftest.err >&5
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); } &&
15500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15501   { (case "(($ac_try" in
15502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503   *) ac_try_echo=$ac_try;;
15504 esac
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506   (eval "$ac_try") 2>&5
15507   ac_status=$?
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); }; } &&
15510          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); }; }; then
15520   ac_cv_lib_gcc___chkstk=yes
15521 else
15522   echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15524
15525         ac_cv_lib_gcc___chkstk=no
15526 fi
15527
15528 rm -f core conftest.err conftest.$ac_objext \
15529       conftest$ac_exeext conftest.$ac_ext
15530 LIBS=$ac_check_lib_save_LIBS
15531 fi
15532 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15533 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15534 if test $ac_cv_lib_gcc___chkstk = yes; then
15535
15536 cat >>confdefs.h <<\_ACEOF
15537 #define HAVE___CHKSTK 1
15538 _ACEOF
15539
15540 fi
15541
15542   { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15543 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15544 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15545   echo $ECHO_N "(cached) $ECHO_C" >&6
15546 else
15547   ac_check_lib_save_LIBS=$LIBS
15548 LIBS="-lgcc  $LIBS"
15549 cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h.  */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h.  */
15555
15556 /* Override any GCC internal prototype to avoid an error.
15557    Use char because int might match the return type of a GCC
15558    builtin and then its argument prototype would still apply.  */
15559 #ifdef __cplusplus
15560 extern "C"
15561 #endif
15562 char __chkstk_ms ();
15563 int
15564 main ()
15565 {
15566 return __chkstk_ms ();
15567   ;
15568   return 0;
15569 }
15570 _ACEOF
15571 rm -f conftest.$ac_objext conftest$ac_exeext
15572 if { (ac_try="$ac_link"
15573 case "(($ac_try" in
15574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575   *) ac_try_echo=$ac_try;;
15576 esac
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578   (eval "$ac_link") 2>conftest.er1
15579   ac_status=$?
15580   grep -v '^ *+' conftest.er1 >conftest.err
15581   rm -f conftest.er1
15582   cat conftest.err >&5
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); } &&
15585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15586   { (case "(($ac_try" in
15587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588   *) ac_try_echo=$ac_try;;
15589 esac
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591   (eval "$ac_try") 2>&5
15592   ac_status=$?
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); }; } &&
15595          { ac_try='test -s conftest$ac_exeext'
15596   { (case "(($ac_try" in
15597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598   *) ac_try_echo=$ac_try;;
15599 esac
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601   (eval "$ac_try") 2>&5
15602   ac_status=$?
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); }; }; then
15605   ac_cv_lib_gcc___chkstk_ms=yes
15606 else
15607   echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15609
15610         ac_cv_lib_gcc___chkstk_ms=no
15611 fi
15612
15613 rm -f core conftest.err conftest.$ac_objext \
15614       conftest$ac_exeext conftest.$ac_ext
15615 LIBS=$ac_check_lib_save_LIBS
15616 fi
15617 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15618 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15619 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15620
15621 cat >>confdefs.h <<\_ACEOF
15622 #define HAVE___CHKSTK_MS 1
15623 _ACEOF
15624
15625 fi
15626
15627   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15628 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15629 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15630   echo $ECHO_N "(cached) $ECHO_C" >&6
15631 else
15632   ac_check_lib_save_LIBS=$LIBS
15633 LIBS="-lgcc  $LIBS"
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h.  */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h.  */
15640
15641 /* Override any GCC internal prototype to avoid an error.
15642    Use char because int might match the return type of a GCC
15643    builtin and then its argument prototype would still apply.  */
15644 #ifdef __cplusplus
15645 extern "C"
15646 #endif
15647 char ___chkstk ();
15648 int
15649 main ()
15650 {
15651 return ___chkstk ();
15652   ;
15653   return 0;
15654 }
15655 _ACEOF
15656 rm -f conftest.$ac_objext conftest$ac_exeext
15657 if { (ac_try="$ac_link"
15658 case "(($ac_try" in
15659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660   *) ac_try_echo=$ac_try;;
15661 esac
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663   (eval "$ac_link") 2>conftest.er1
15664   ac_status=$?
15665   grep -v '^ *+' conftest.er1 >conftest.err
15666   rm -f conftest.er1
15667   cat conftest.err >&5
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); } &&
15670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15671   { (case "(($ac_try" in
15672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673   *) ac_try_echo=$ac_try;;
15674 esac
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676   (eval "$ac_try") 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); }; } &&
15680          { ac_try='test -s conftest$ac_exeext'
15681   { (case "(($ac_try" in
15682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683   *) ac_try_echo=$ac_try;;
15684 esac
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686   (eval "$ac_try") 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; }; then
15690   ac_cv_lib_gcc____chkstk=yes
15691 else
15692   echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15694
15695         ac_cv_lib_gcc____chkstk=no
15696 fi
15697
15698 rm -f core conftest.err conftest.$ac_objext \
15699       conftest$ac_exeext conftest.$ac_ext
15700 LIBS=$ac_check_lib_save_LIBS
15701 fi
15702 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15703 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15704 if test $ac_cv_lib_gcc____chkstk = yes; then
15705
15706 cat >>confdefs.h <<\_ACEOF
15707 #define HAVE____CHKSTK 1
15708 _ACEOF
15709
15710 fi
15711
15712   { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15713 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15714 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15715   echo $ECHO_N "(cached) $ECHO_C" >&6
15716 else
15717   ac_check_lib_save_LIBS=$LIBS
15718 LIBS="-lgcc  $LIBS"
15719 cat >conftest.$ac_ext <<_ACEOF
15720 /* confdefs.h.  */
15721 _ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h.  */
15725
15726 /* Override any GCC internal prototype to avoid an error.
15727    Use char because int might match the return type of a GCC
15728    builtin and then its argument prototype would still apply.  */
15729 #ifdef __cplusplus
15730 extern "C"
15731 #endif
15732 char ___chkstk_ms ();
15733 int
15734 main ()
15735 {
15736 return ___chkstk_ms ();
15737   ;
15738   return 0;
15739 }
15740 _ACEOF
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (ac_try="$ac_link"
15743 case "(($ac_try" in
15744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745   *) ac_try_echo=$ac_try;;
15746 esac
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748   (eval "$ac_link") 2>conftest.er1
15749   ac_status=$?
15750   grep -v '^ *+' conftest.er1 >conftest.err
15751   rm -f conftest.er1
15752   cat conftest.err >&5
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); } &&
15755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15756   { (case "(($ac_try" in
15757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758   *) ac_try_echo=$ac_try;;
15759 esac
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761   (eval "$ac_try") 2>&5
15762   ac_status=$?
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); }; } &&
15765          { ac_try='test -s conftest$ac_exeext'
15766   { (case "(($ac_try" in
15767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768   *) ac_try_echo=$ac_try;;
15769 esac
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771   (eval "$ac_try") 2>&5
15772   ac_status=$?
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); }; }; then
15775   ac_cv_lib_gcc____chkstk_ms=yes
15776 else
15777   echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780         ac_cv_lib_gcc____chkstk_ms=no
15781 fi
15782
15783 rm -f core conftest.err conftest.$ac_objext \
15784       conftest$ac_exeext conftest.$ac_ext
15785 LIBS=$ac_check_lib_save_LIBS
15786 fi
15787 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15788 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15789 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15790
15791 cat >>confdefs.h <<\_ACEOF
15792 #define HAVE____CHKSTK_MS 1
15793 _ACEOF
15794
15795 fi
15796
15797
15798   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15799 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15800 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15801   echo $ECHO_N "(cached) $ECHO_C" >&6
15802 else
15803   ac_check_lib_save_LIBS=$LIBS
15804 LIBS="-lgcc  $LIBS"
15805 cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h.  */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h.  */
15811
15812 /* Override any GCC internal prototype to avoid an error.
15813    Use char because int might match the return type of a GCC
15814    builtin and then its argument prototype would still apply.  */
15815 #ifdef __cplusplus
15816 extern "C"
15817 #endif
15818 char __ashldi3 ();
15819 int
15820 main ()
15821 {
15822 return __ashldi3 ();
15823   ;
15824   return 0;
15825 }
15826 _ACEOF
15827 rm -f conftest.$ac_objext conftest$ac_exeext
15828 if { (ac_try="$ac_link"
15829 case "(($ac_try" in
15830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831   *) ac_try_echo=$ac_try;;
15832 esac
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834   (eval "$ac_link") 2>conftest.er1
15835   ac_status=$?
15836   grep -v '^ *+' conftest.er1 >conftest.err
15837   rm -f conftest.er1
15838   cat conftest.err >&5
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); } &&
15841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15842   { (case "(($ac_try" in
15843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844   *) ac_try_echo=$ac_try;;
15845 esac
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847   (eval "$ac_try") 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); }; } &&
15851          { ac_try='test -s conftest$ac_exeext'
15852   { (case "(($ac_try" in
15853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854   *) ac_try_echo=$ac_try;;
15855 esac
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857   (eval "$ac_try") 2>&5
15858   ac_status=$?
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); }; }; then
15861   ac_cv_lib_gcc___ashldi3=yes
15862 else
15863   echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15865
15866         ac_cv_lib_gcc___ashldi3=no
15867 fi
15868
15869 rm -f core conftest.err conftest.$ac_objext \
15870       conftest$ac_exeext conftest.$ac_ext
15871 LIBS=$ac_check_lib_save_LIBS
15872 fi
15873 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15874 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15875 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15876
15877 cat >>confdefs.h <<\_ACEOF
15878 #define HAVE___ASHLDI3 1
15879 _ACEOF
15880
15881 fi
15882
15883   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15884 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15885 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15886   echo $ECHO_N "(cached) $ECHO_C" >&6
15887 else
15888   ac_check_lib_save_LIBS=$LIBS
15889 LIBS="-lgcc  $LIBS"
15890 cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h.  */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h.  */
15896
15897 /* Override any GCC internal prototype to avoid an error.
15898    Use char because int might match the return type of a GCC
15899    builtin and then its argument prototype would still apply.  */
15900 #ifdef __cplusplus
15901 extern "C"
15902 #endif
15903 char __ashrdi3 ();
15904 int
15905 main ()
15906 {
15907 return __ashrdi3 ();
15908   ;
15909   return 0;
15910 }
15911 _ACEOF
15912 rm -f conftest.$ac_objext conftest$ac_exeext
15913 if { (ac_try="$ac_link"
15914 case "(($ac_try" in
15915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916   *) ac_try_echo=$ac_try;;
15917 esac
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919   (eval "$ac_link") 2>conftest.er1
15920   ac_status=$?
15921   grep -v '^ *+' conftest.er1 >conftest.err
15922   rm -f conftest.er1
15923   cat conftest.err >&5
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); } &&
15926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15927   { (case "(($ac_try" in
15928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929   *) ac_try_echo=$ac_try;;
15930 esac
15931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932   (eval "$ac_try") 2>&5
15933   ac_status=$?
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); }; } &&
15936          { ac_try='test -s conftest$ac_exeext'
15937   { (case "(($ac_try" in
15938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939   *) ac_try_echo=$ac_try;;
15940 esac
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942   (eval "$ac_try") 2>&5
15943   ac_status=$?
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); }; }; then
15946   ac_cv_lib_gcc___ashrdi3=yes
15947 else
15948   echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15950
15951         ac_cv_lib_gcc___ashrdi3=no
15952 fi
15953
15954 rm -f core conftest.err conftest.$ac_objext \
15955       conftest$ac_exeext conftest.$ac_ext
15956 LIBS=$ac_check_lib_save_LIBS
15957 fi
15958 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15959 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15960 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15961
15962 cat >>confdefs.h <<\_ACEOF
15963 #define HAVE___ASHRDI3 1
15964 _ACEOF
15965
15966 fi
15967
15968   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15969 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15970 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15971   echo $ECHO_N "(cached) $ECHO_C" >&6
15972 else
15973   ac_check_lib_save_LIBS=$LIBS
15974 LIBS="-lgcc  $LIBS"
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h.  */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h.  */
15981
15982 /* Override any GCC internal prototype to avoid an error.
15983    Use char because int might match the return type of a GCC
15984    builtin and then its argument prototype would still apply.  */
15985 #ifdef __cplusplus
15986 extern "C"
15987 #endif
15988 char __divdi3 ();
15989 int
15990 main ()
15991 {
15992 return __divdi3 ();
15993   ;
15994   return 0;
15995 }
15996 _ACEOF
15997 rm -f conftest.$ac_objext conftest$ac_exeext
15998 if { (ac_try="$ac_link"
15999 case "(($ac_try" in
16000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001   *) ac_try_echo=$ac_try;;
16002 esac
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004   (eval "$ac_link") 2>conftest.er1
16005   ac_status=$?
16006   grep -v '^ *+' conftest.er1 >conftest.err
16007   rm -f conftest.er1
16008   cat conftest.err >&5
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); } &&
16011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16012   { (case "(($ac_try" in
16013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014   *) ac_try_echo=$ac_try;;
16015 esac
16016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017   (eval "$ac_try") 2>&5
16018   ac_status=$?
16019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020   (exit $ac_status); }; } &&
16021          { ac_try='test -s conftest$ac_exeext'
16022   { (case "(($ac_try" in
16023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16024   *) ac_try_echo=$ac_try;;
16025 esac
16026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16027   (eval "$ac_try") 2>&5
16028   ac_status=$?
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); }; }; then
16031   ac_cv_lib_gcc___divdi3=yes
16032 else
16033   echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.$ac_ext >&5
16035
16036         ac_cv_lib_gcc___divdi3=no
16037 fi
16038
16039 rm -f core conftest.err conftest.$ac_objext \
16040       conftest$ac_exeext conftest.$ac_ext
16041 LIBS=$ac_check_lib_save_LIBS
16042 fi
16043 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16044 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16045 if test $ac_cv_lib_gcc___divdi3 = yes; then
16046
16047 cat >>confdefs.h <<\_ACEOF
16048 #define HAVE___DIVDI3 1
16049 _ACEOF
16050
16051 fi
16052
16053   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16054 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16055 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16056   echo $ECHO_N "(cached) $ECHO_C" >&6
16057 else
16058   ac_check_lib_save_LIBS=$LIBS
16059 LIBS="-lgcc  $LIBS"
16060 cat >conftest.$ac_ext <<_ACEOF
16061 /* confdefs.h.  */
16062 _ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h.  */
16066
16067 /* Override any GCC internal prototype to avoid an error.
16068    Use char because int might match the return type of a GCC
16069    builtin and then its argument prototype would still apply.  */
16070 #ifdef __cplusplus
16071 extern "C"
16072 #endif
16073 char __fixdfdi ();
16074 int
16075 main ()
16076 {
16077 return __fixdfdi ();
16078   ;
16079   return 0;
16080 }
16081 _ACEOF
16082 rm -f conftest.$ac_objext conftest$ac_exeext
16083 if { (ac_try="$ac_link"
16084 case "(($ac_try" in
16085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086   *) ac_try_echo=$ac_try;;
16087 esac
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089   (eval "$ac_link") 2>conftest.er1
16090   ac_status=$?
16091   grep -v '^ *+' conftest.er1 >conftest.err
16092   rm -f conftest.er1
16093   cat conftest.err >&5
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); } &&
16096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16097   { (case "(($ac_try" in
16098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099   *) ac_try_echo=$ac_try;;
16100 esac
16101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102   (eval "$ac_try") 2>&5
16103   ac_status=$?
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); }; } &&
16106          { ac_try='test -s conftest$ac_exeext'
16107   { (case "(($ac_try" in
16108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109   *) ac_try_echo=$ac_try;;
16110 esac
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112   (eval "$ac_try") 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); }; }; then
16116   ac_cv_lib_gcc___fixdfdi=yes
16117 else
16118   echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16120
16121         ac_cv_lib_gcc___fixdfdi=no
16122 fi
16123
16124 rm -f core conftest.err conftest.$ac_objext \
16125       conftest$ac_exeext conftest.$ac_ext
16126 LIBS=$ac_check_lib_save_LIBS
16127 fi
16128 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16129 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16130 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16131
16132 cat >>confdefs.h <<\_ACEOF
16133 #define HAVE___FIXDFDI 1
16134 _ACEOF
16135
16136 fi
16137
16138   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16139 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16140 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16141   echo $ECHO_N "(cached) $ECHO_C" >&6
16142 else
16143   ac_check_lib_save_LIBS=$LIBS
16144 LIBS="-lgcc  $LIBS"
16145 cat >conftest.$ac_ext <<_ACEOF
16146 /* confdefs.h.  */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h.  */
16151
16152 /* Override any GCC internal prototype to avoid an error.
16153    Use char because int might match the return type of a GCC
16154    builtin and then its argument prototype would still apply.  */
16155 #ifdef __cplusplus
16156 extern "C"
16157 #endif
16158 char __fixsfdi ();
16159 int
16160 main ()
16161 {
16162 return __fixsfdi ();
16163   ;
16164   return 0;
16165 }
16166 _ACEOF
16167 rm -f conftest.$ac_objext conftest$ac_exeext
16168 if { (ac_try="$ac_link"
16169 case "(($ac_try" in
16170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171   *) ac_try_echo=$ac_try;;
16172 esac
16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174   (eval "$ac_link") 2>conftest.er1
16175   ac_status=$?
16176   grep -v '^ *+' conftest.er1 >conftest.err
16177   rm -f conftest.er1
16178   cat conftest.err >&5
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); } &&
16181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16188   ac_status=$?
16189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190   (exit $ac_status); }; } &&
16191          { ac_try='test -s conftest$ac_exeext'
16192   { (case "(($ac_try" in
16193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194   *) ac_try_echo=$ac_try;;
16195 esac
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197   (eval "$ac_try") 2>&5
16198   ac_status=$?
16199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); }; }; then
16201   ac_cv_lib_gcc___fixsfdi=yes
16202 else
16203   echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16205
16206         ac_cv_lib_gcc___fixsfdi=no
16207 fi
16208
16209 rm -f core conftest.err conftest.$ac_objext \
16210       conftest$ac_exeext conftest.$ac_ext
16211 LIBS=$ac_check_lib_save_LIBS
16212 fi
16213 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16214 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16215 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16216
16217 cat >>confdefs.h <<\_ACEOF
16218 #define HAVE___FIXSFDI 1
16219 _ACEOF
16220
16221 fi
16222
16223   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16224 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16225 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16226   echo $ECHO_N "(cached) $ECHO_C" >&6
16227 else
16228   ac_check_lib_save_LIBS=$LIBS
16229 LIBS="-lgcc  $LIBS"
16230 cat >conftest.$ac_ext <<_ACEOF
16231 /* confdefs.h.  */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h.  */
16236
16237 /* Override any GCC internal prototype to avoid an error.
16238    Use char because int might match the return type of a GCC
16239    builtin and then its argument prototype would still apply.  */
16240 #ifdef __cplusplus
16241 extern "C"
16242 #endif
16243 char __floatdidf ();
16244 int
16245 main ()
16246 {
16247 return __floatdidf ();
16248   ;
16249   return 0;
16250 }
16251 _ACEOF
16252 rm -f conftest.$ac_objext conftest$ac_exeext
16253 if { (ac_try="$ac_link"
16254 case "(($ac_try" in
16255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256   *) ac_try_echo=$ac_try;;
16257 esac
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259   (eval "$ac_link") 2>conftest.er1
16260   ac_status=$?
16261   grep -v '^ *+' conftest.er1 >conftest.err
16262   rm -f conftest.er1
16263   cat conftest.err >&5
16264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265   (exit $ac_status); } &&
16266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16273   ac_status=$?
16274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275   (exit $ac_status); }; } &&
16276          { ac_try='test -s conftest$ac_exeext'
16277   { (case "(($ac_try" in
16278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279   *) ac_try_echo=$ac_try;;
16280 esac
16281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282   (eval "$ac_try") 2>&5
16283   ac_status=$?
16284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285   (exit $ac_status); }; }; then
16286   ac_cv_lib_gcc___floatdidf=yes
16287 else
16288   echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16290
16291         ac_cv_lib_gcc___floatdidf=no
16292 fi
16293
16294 rm -f core conftest.err conftest.$ac_objext \
16295       conftest$ac_exeext conftest.$ac_ext
16296 LIBS=$ac_check_lib_save_LIBS
16297 fi
16298 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16299 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16300 if test $ac_cv_lib_gcc___floatdidf = yes; then
16301
16302 cat >>confdefs.h <<\_ACEOF
16303 #define HAVE___FLOATDIDF 1
16304 _ACEOF
16305
16306 fi
16307
16308   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16309 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16310 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16311   echo $ECHO_N "(cached) $ECHO_C" >&6
16312 else
16313   ac_check_lib_save_LIBS=$LIBS
16314 LIBS="-lgcc  $LIBS"
16315 cat >conftest.$ac_ext <<_ACEOF
16316 /* confdefs.h.  */
16317 _ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h.  */
16321
16322 /* Override any GCC internal prototype to avoid an error.
16323    Use char because int might match the return type of a GCC
16324    builtin and then its argument prototype would still apply.  */
16325 #ifdef __cplusplus
16326 extern "C"
16327 #endif
16328 char __lshrdi3 ();
16329 int
16330 main ()
16331 {
16332 return __lshrdi3 ();
16333   ;
16334   return 0;
16335 }
16336 _ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (ac_try="$ac_link"
16339 case "(($ac_try" in
16340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341   *) ac_try_echo=$ac_try;;
16342 esac
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344   (eval "$ac_link") 2>conftest.er1
16345   ac_status=$?
16346   grep -v '^ *+' conftest.er1 >conftest.err
16347   rm -f conftest.er1
16348   cat conftest.err >&5
16349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   (exit $ac_status); } &&
16351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16358   ac_status=$?
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); }; } &&
16361          { ac_try='test -s conftest$ac_exeext'
16362   { (case "(($ac_try" in
16363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364   *) ac_try_echo=$ac_try;;
16365 esac
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367   (eval "$ac_try") 2>&5
16368   ac_status=$?
16369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370   (exit $ac_status); }; }; then
16371   ac_cv_lib_gcc___lshrdi3=yes
16372 else
16373   echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16375
16376         ac_cv_lib_gcc___lshrdi3=no
16377 fi
16378
16379 rm -f core conftest.err conftest.$ac_objext \
16380       conftest$ac_exeext conftest.$ac_ext
16381 LIBS=$ac_check_lib_save_LIBS
16382 fi
16383 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16384 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16385 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16386
16387 cat >>confdefs.h <<\_ACEOF
16388 #define HAVE___LSHRDI3 1
16389 _ACEOF
16390
16391 fi
16392
16393   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16394 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16395 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16396   echo $ECHO_N "(cached) $ECHO_C" >&6
16397 else
16398   ac_check_lib_save_LIBS=$LIBS
16399 LIBS="-lgcc  $LIBS"
16400 cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h.  */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h.  */
16406
16407 /* Override any GCC internal prototype to avoid an error.
16408    Use char because int might match the return type of a GCC
16409    builtin and then its argument prototype would still apply.  */
16410 #ifdef __cplusplus
16411 extern "C"
16412 #endif
16413 char __moddi3 ();
16414 int
16415 main ()
16416 {
16417 return __moddi3 ();
16418   ;
16419   return 0;
16420 }
16421 _ACEOF
16422 rm -f conftest.$ac_objext conftest$ac_exeext
16423 if { (ac_try="$ac_link"
16424 case "(($ac_try" in
16425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426   *) ac_try_echo=$ac_try;;
16427 esac
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429   (eval "$ac_link") 2>conftest.er1
16430   ac_status=$?
16431   grep -v '^ *+' conftest.er1 >conftest.err
16432   rm -f conftest.er1
16433   cat conftest.err >&5
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); } &&
16436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16443   ac_status=$?
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); }; } &&
16446          { ac_try='test -s conftest$ac_exeext'
16447   { (case "(($ac_try" in
16448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449   *) ac_try_echo=$ac_try;;
16450 esac
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452   (eval "$ac_try") 2>&5
16453   ac_status=$?
16454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455   (exit $ac_status); }; }; then
16456   ac_cv_lib_gcc___moddi3=yes
16457 else
16458   echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16460
16461         ac_cv_lib_gcc___moddi3=no
16462 fi
16463
16464 rm -f core conftest.err conftest.$ac_objext \
16465       conftest$ac_exeext conftest.$ac_ext
16466 LIBS=$ac_check_lib_save_LIBS
16467 fi
16468 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16469 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16470 if test $ac_cv_lib_gcc___moddi3 = yes; then
16471
16472 cat >>confdefs.h <<\_ACEOF
16473 #define HAVE___MODDI3 1
16474 _ACEOF
16475
16476 fi
16477
16478   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16479 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16480 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16481   echo $ECHO_N "(cached) $ECHO_C" >&6
16482 else
16483   ac_check_lib_save_LIBS=$LIBS
16484 LIBS="-lgcc  $LIBS"
16485 cat >conftest.$ac_ext <<_ACEOF
16486 /* confdefs.h.  */
16487 _ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h.  */
16491
16492 /* Override any GCC internal prototype to avoid an error.
16493    Use char because int might match the return type of a GCC
16494    builtin and then its argument prototype would still apply.  */
16495 #ifdef __cplusplus
16496 extern "C"
16497 #endif
16498 char __udivdi3 ();
16499 int
16500 main ()
16501 {
16502 return __udivdi3 ();
16503   ;
16504   return 0;
16505 }
16506 _ACEOF
16507 rm -f conftest.$ac_objext conftest$ac_exeext
16508 if { (ac_try="$ac_link"
16509 case "(($ac_try" in
16510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511   *) ac_try_echo=$ac_try;;
16512 esac
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514   (eval "$ac_link") 2>conftest.er1
16515   ac_status=$?
16516   grep -v '^ *+' conftest.er1 >conftest.err
16517   rm -f conftest.er1
16518   cat conftest.err >&5
16519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520   (exit $ac_status); } &&
16521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16522   { (case "(($ac_try" in
16523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524   *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527   (eval "$ac_try") 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); }; } &&
16531          { ac_try='test -s conftest$ac_exeext'
16532   { (case "(($ac_try" in
16533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16534   *) ac_try_echo=$ac_try;;
16535 esac
16536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16537   (eval "$ac_try") 2>&5
16538   ac_status=$?
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); }; }; then
16541   ac_cv_lib_gcc___udivdi3=yes
16542 else
16543   echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546         ac_cv_lib_gcc___udivdi3=no
16547 fi
16548
16549 rm -f core conftest.err conftest.$ac_objext \
16550       conftest$ac_exeext conftest.$ac_ext
16551 LIBS=$ac_check_lib_save_LIBS
16552 fi
16553 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16554 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16555 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16556
16557 cat >>confdefs.h <<\_ACEOF
16558 #define HAVE___UDIVDI3 1
16559 _ACEOF
16560
16561 fi
16562
16563   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16564 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16565 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16566   echo $ECHO_N "(cached) $ECHO_C" >&6
16567 else
16568   ac_check_lib_save_LIBS=$LIBS
16569 LIBS="-lgcc  $LIBS"
16570 cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h.  */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h.  */
16576
16577 /* Override any GCC internal prototype to avoid an error.
16578    Use char because int might match the return type of a GCC
16579    builtin and then its argument prototype would still apply.  */
16580 #ifdef __cplusplus
16581 extern "C"
16582 #endif
16583 char __umoddi3 ();
16584 int
16585 main ()
16586 {
16587 return __umoddi3 ();
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (ac_try="$ac_link"
16594 case "(($ac_try" in
16595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596   *) ac_try_echo=$ac_try;;
16597 esac
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599   (eval "$ac_link") 2>conftest.er1
16600   ac_status=$?
16601   grep -v '^ *+' conftest.er1 >conftest.err
16602   rm -f conftest.er1
16603   cat conftest.err >&5
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); } &&
16606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16607   { (case "(($ac_try" in
16608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609   *) ac_try_echo=$ac_try;;
16610 esac
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612   (eval "$ac_try") 2>&5
16613   ac_status=$?
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); }; } &&
16616          { ac_try='test -s conftest$ac_exeext'
16617   { (case "(($ac_try" in
16618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619   *) ac_try_echo=$ac_try;;
16620 esac
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622   (eval "$ac_try") 2>&5
16623   ac_status=$?
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); }; }; then
16626   ac_cv_lib_gcc___umoddi3=yes
16627 else
16628   echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631         ac_cv_lib_gcc___umoddi3=no
16632 fi
16633
16634 rm -f core conftest.err conftest.$ac_objext \
16635       conftest$ac_exeext conftest.$ac_ext
16636 LIBS=$ac_check_lib_save_LIBS
16637 fi
16638 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16639 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16640 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16641
16642 cat >>confdefs.h <<\_ACEOF
16643 #define HAVE___UMODDI3 1
16644 _ACEOF
16645
16646 fi
16647
16648
16649   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16650 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16651 if test "${ac_cv_lib_gcc___main+set}" = set; then
16652   echo $ECHO_N "(cached) $ECHO_C" >&6
16653 else
16654   ac_check_lib_save_LIBS=$LIBS
16655 LIBS="-lgcc  $LIBS"
16656 cat >conftest.$ac_ext <<_ACEOF
16657 /* confdefs.h.  */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h.  */
16662
16663 /* Override any GCC internal prototype to avoid an error.
16664    Use char because int might match the return type of a GCC
16665    builtin and then its argument prototype would still apply.  */
16666 #ifdef __cplusplus
16667 extern "C"
16668 #endif
16669 char __main ();
16670 int
16671 main ()
16672 {
16673 return __main ();
16674   ;
16675   return 0;
16676 }
16677 _ACEOF
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (ac_try="$ac_link"
16680 case "(($ac_try" in
16681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682   *) ac_try_echo=$ac_try;;
16683 esac
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685   (eval "$ac_link") 2>conftest.er1
16686   ac_status=$?
16687   grep -v '^ *+' conftest.er1 >conftest.err
16688   rm -f conftest.er1
16689   cat conftest.err >&5
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); } &&
16692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16699   ac_status=$?
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); }; } &&
16702          { ac_try='test -s conftest$ac_exeext'
16703   { (case "(($ac_try" in
16704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705   *) ac_try_echo=$ac_try;;
16706 esac
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708   (eval "$ac_try") 2>&5
16709   ac_status=$?
16710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711   (exit $ac_status); }; }; then
16712   ac_cv_lib_gcc___main=yes
16713 else
16714   echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16716
16717         ac_cv_lib_gcc___main=no
16718 fi
16719
16720 rm -f core conftest.err conftest.$ac_objext \
16721       conftest$ac_exeext conftest.$ac_ext
16722 LIBS=$ac_check_lib_save_LIBS
16723 fi
16724 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16725 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16726 if test $ac_cv_lib_gcc___main = yes; then
16727
16728 cat >>confdefs.h <<\_ACEOF
16729 #define HAVE___MAIN 1
16730 _ACEOF
16731
16732 fi
16733
16734   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16735 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16736 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16737   echo $ECHO_N "(cached) $ECHO_C" >&6
16738 else
16739   ac_check_lib_save_LIBS=$LIBS
16740 LIBS="-lgcc  $LIBS"
16741 cat >conftest.$ac_ext <<_ACEOF
16742 /* confdefs.h.  */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h.  */
16747
16748 /* Override any GCC internal prototype to avoid an error.
16749    Use char because int might match the return type of a GCC
16750    builtin and then its argument prototype would still apply.  */
16751 #ifdef __cplusplus
16752 extern "C"
16753 #endif
16754 char __cmpdi2 ();
16755 int
16756 main ()
16757 {
16758 return __cmpdi2 ();
16759   ;
16760   return 0;
16761 }
16762 _ACEOF
16763 rm -f conftest.$ac_objext conftest$ac_exeext
16764 if { (ac_try="$ac_link"
16765 case "(($ac_try" in
16766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767   *) ac_try_echo=$ac_try;;
16768 esac
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770   (eval "$ac_link") 2>conftest.er1
16771   ac_status=$?
16772   grep -v '^ *+' conftest.er1 >conftest.err
16773   rm -f conftest.er1
16774   cat conftest.err >&5
16775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); } &&
16777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16778   { (case "(($ac_try" in
16779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780   *) ac_try_echo=$ac_try;;
16781 esac
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783   (eval "$ac_try") 2>&5
16784   ac_status=$?
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); }; } &&
16787          { ac_try='test -s conftest$ac_exeext'
16788   { (case "(($ac_try" in
16789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790   *) ac_try_echo=$ac_try;;
16791 esac
16792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793   (eval "$ac_try") 2>&5
16794   ac_status=$?
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); }; }; then
16797   ac_cv_lib_gcc___cmpdi2=yes
16798 else
16799   echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16801
16802         ac_cv_lib_gcc___cmpdi2=no
16803 fi
16804
16805 rm -f core conftest.err conftest.$ac_objext \
16806       conftest$ac_exeext conftest.$ac_ext
16807 LIBS=$ac_check_lib_save_LIBS
16808 fi
16809 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16810 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16811 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16812
16813 cat >>confdefs.h <<\_ACEOF
16814 #define HAVE___CMPDI2 1
16815 _ACEOF
16816
16817 fi
16818
16819 fi
16820
16821 if test "$llvm_cv_os_type" = "MingW" ; then
16822   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16823 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16824   cat >conftest.$ac_ext <<_ACEOF
16825
16826   /* confdefs.h.  */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h.  */
16831
16832     #include <windows.h>
16833     #include <imagehlp.h>
16834     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16835     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16836
16837
16838 _ACEOF
16839 rm -f conftest.$ac_objext
16840 if { (ac_try="$ac_compile"
16841 case "(($ac_try" in
16842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843   *) ac_try_echo=$ac_try;;
16844 esac
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846   (eval "$ac_compile") 2>conftest.er1
16847   ac_status=$?
16848   grep -v '^ *+' conftest.er1 >conftest.err
16849   rm -f conftest.er1
16850   cat conftest.err >&5
16851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852   (exit $ac_status); } &&
16853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16854   { (case "(($ac_try" in
16855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856   *) ac_try_echo=$ac_try;;
16857 esac
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859   (eval "$ac_try") 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); }; } &&
16863          { ac_try='test -s conftest.$ac_objext'
16864   { (case "(($ac_try" in
16865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866   *) ac_try_echo=$ac_try;;
16867 esac
16868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16869   (eval "$ac_try") 2>&5
16870   ac_status=$?
16871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872   (exit $ac_status); }; }; then
16873
16874   { echo "$as_me:$LINENO: result: yes" >&5
16875 echo "${ECHO_T}yes" >&6; }
16876   llvm_cv_win32_elmcb_pcstr="PCSTR"
16877
16878 else
16879   echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16881
16882
16883   { echo "$as_me:$LINENO: result: no" >&5
16884 echo "${ECHO_T}no" >&6; }
16885   llvm_cv_win32_elmcb_pcstr="PSTR"
16886
16887 fi
16888
16889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16890
16891 cat >>confdefs.h <<_ACEOF
16892 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16893 _ACEOF
16894
16895 fi
16896
16897 if test "$llvm_cv_platform_type" = "Unix" ; then
16898
16899
16900 for ac_header in stdlib.h unistd.h
16901 do
16902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16904   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16907   echo $ECHO_N "(cached) $ECHO_C" >&6
16908 fi
16909 ac_res=`eval echo '${'$as_ac_Header'}'`
16910                { echo "$as_me:$LINENO: result: $ac_res" >&5
16911 echo "${ECHO_T}$ac_res" >&6; }
16912 else
16913   # Is the header compilable?
16914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16916 cat >conftest.$ac_ext <<_ACEOF
16917 /* confdefs.h.  */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h.  */
16922 $ac_includes_default
16923 #include <$ac_header>
16924 _ACEOF
16925 rm -f conftest.$ac_objext
16926 if { (ac_try="$ac_compile"
16927 case "(($ac_try" in
16928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929   *) ac_try_echo=$ac_try;;
16930 esac
16931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932   (eval "$ac_compile") 2>conftest.er1
16933   ac_status=$?
16934   grep -v '^ *+' conftest.er1 >conftest.err
16935   rm -f conftest.er1
16936   cat conftest.err >&5
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); } &&
16939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16940   { (case "(($ac_try" in
16941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942   *) ac_try_echo=$ac_try;;
16943 esac
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945   (eval "$ac_try") 2>&5
16946   ac_status=$?
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); }; } &&
16949          { ac_try='test -s conftest.$ac_objext'
16950   { (case "(($ac_try" in
16951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952   *) ac_try_echo=$ac_try;;
16953 esac
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955   (eval "$ac_try") 2>&5
16956   ac_status=$?
16957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958   (exit $ac_status); }; }; then
16959   ac_header_compiler=yes
16960 else
16961   echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16963
16964         ac_header_compiler=no
16965 fi
16966
16967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16969 echo "${ECHO_T}$ac_header_compiler" >&6; }
16970
16971 # Is the header present?
16972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16974 cat >conftest.$ac_ext <<_ACEOF
16975 /* confdefs.h.  */
16976 _ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h.  */
16980 #include <$ac_header>
16981 _ACEOF
16982 if { (ac_try="$ac_cpp conftest.$ac_ext"
16983 case "(($ac_try" in
16984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985   *) ac_try_echo=$ac_try;;
16986 esac
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16989   ac_status=$?
16990   grep -v '^ *+' conftest.er1 >conftest.err
16991   rm -f conftest.er1
16992   cat conftest.err >&5
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); } >/dev/null; then
16995   if test -s conftest.err; then
16996     ac_cpp_err=$ac_c_preproc_warn_flag
16997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16998   else
16999     ac_cpp_err=
17000   fi
17001 else
17002   ac_cpp_err=yes
17003 fi
17004 if test -z "$ac_cpp_err"; then
17005   ac_header_preproc=yes
17006 else
17007   echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17009
17010   ac_header_preproc=no
17011 fi
17012
17013 rm -f conftest.err conftest.$ac_ext
17014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17015 echo "${ECHO_T}$ac_header_preproc" >&6; }
17016
17017 # So?  What about this header?
17018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17019   yes:no: )
17020     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17024     ac_header_preproc=yes
17025     ;;
17026   no:yes:* )
17027     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17029     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17030 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17031     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17033     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17034 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17037     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17039     ( cat <<\_ASBOX
17040 ## ------------------------------------ ##
17041 ## Report this to http://llvm.org/bugs/ ##
17042 ## ------------------------------------ ##
17043 _ASBOX
17044      ) | sed "s/^/$as_me: WARNING:     /" >&2
17045     ;;
17046 esac
17047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17050   echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052   eval "$as_ac_Header=\$ac_header_preproc"
17053 fi
17054 ac_res=`eval echo '${'$as_ac_Header'}'`
17055                { echo "$as_me:$LINENO: result: $ac_res" >&5
17056 echo "${ECHO_T}$ac_res" >&6; }
17057
17058 fi
17059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17060   cat >>confdefs.h <<_ACEOF
17061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17062 _ACEOF
17063
17064 fi
17065
17066 done
17067
17068
17069 for ac_func in getpagesize
17070 do
17071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17075   echo $ECHO_N "(cached) $ECHO_C" >&6
17076 else
17077   cat >conftest.$ac_ext <<_ACEOF
17078 /* confdefs.h.  */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h.  */
17083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17085 #define $ac_func innocuous_$ac_func
17086
17087 /* System header to define __stub macros and hopefully few prototypes,
17088     which can conflict with char $ac_func (); below.
17089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17090     <limits.h> exists even on freestanding compilers.  */
17091
17092 #ifdef __STDC__
17093 # include <limits.h>
17094 #else
17095 # include <assert.h>
17096 #endif
17097
17098 #undef $ac_func
17099
17100 /* Override any GCC internal prototype to avoid an error.
17101    Use char because int might match the return type of a GCC
17102    builtin and then its argument prototype would still apply.  */
17103 #ifdef __cplusplus
17104 extern "C"
17105 #endif
17106 char $ac_func ();
17107 /* The GNU C library defines this for functions which it implements
17108     to always fail with ENOSYS.  Some functions are actually named
17109     something starting with __ and the normal name is an alias.  */
17110 #if defined __stub_$ac_func || defined __stub___$ac_func
17111 choke me
17112 #endif
17113
17114 int
17115 main ()
17116 {
17117 return $ac_func ();
17118   ;
17119   return 0;
17120 }
17121 _ACEOF
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (ac_try="$ac_link"
17124 case "(($ac_try" in
17125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126   *) ac_try_echo=$ac_try;;
17127 esac
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129   (eval "$ac_link") 2>conftest.er1
17130   ac_status=$?
17131   grep -v '^ *+' conftest.er1 >conftest.err
17132   rm -f conftest.er1
17133   cat conftest.err >&5
17134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135   (exit $ac_status); } &&
17136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17137   { (case "(($ac_try" in
17138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139   *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142   (eval "$ac_try") 2>&5
17143   ac_status=$?
17144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145   (exit $ac_status); }; } &&
17146          { ac_try='test -s conftest$ac_exeext'
17147   { (case "(($ac_try" in
17148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149   *) ac_try_echo=$ac_try;;
17150 esac
17151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152   (eval "$ac_try") 2>&5
17153   ac_status=$?
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); }; }; then
17156   eval "$as_ac_var=yes"
17157 else
17158   echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17160
17161         eval "$as_ac_var=no"
17162 fi
17163
17164 rm -f core conftest.err conftest.$ac_objext \
17165       conftest$ac_exeext conftest.$ac_ext
17166 fi
17167 ac_res=`eval echo '${'$as_ac_var'}'`
17168                { echo "$as_me:$LINENO: result: $ac_res" >&5
17169 echo "${ECHO_T}$ac_res" >&6; }
17170 if test `eval echo '${'$as_ac_var'}'` = yes; then
17171   cat >>confdefs.h <<_ACEOF
17172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17173 _ACEOF
17174
17175 fi
17176 done
17177
17178 { echo "$as_me:$LINENO: checking for working mmap" >&5
17179 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17180 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17181   echo $ECHO_N "(cached) $ECHO_C" >&6
17182 else
17183   if test "$cross_compiling" = yes; then
17184   ac_cv_func_mmap_fixed_mapped=no
17185 else
17186   cat >conftest.$ac_ext <<_ACEOF
17187 /* confdefs.h.  */
17188 _ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h.  */
17192 $ac_includes_default
17193 /* malloc might have been renamed as rpl_malloc. */
17194 #undef malloc
17195
17196 /* Thanks to Mike Haertel and Jim Avera for this test.
17197    Here is a matrix of mmap possibilities:
17198         mmap private not fixed
17199         mmap private fixed at somewhere currently unmapped
17200         mmap private fixed at somewhere already mapped
17201         mmap shared not fixed
17202         mmap shared fixed at somewhere currently unmapped
17203         mmap shared fixed at somewhere already mapped
17204    For private mappings, we should verify that changes cannot be read()
17205    back from the file, nor mmap's back from the file at a different
17206    address.  (There have been systems where private was not correctly
17207    implemented like the infamous i386 svr4.0, and systems where the
17208    VM page cache was not coherent with the file system buffer cache
17209    like early versions of FreeBSD and possibly contemporary NetBSD.)
17210    For shared mappings, we should conversely verify that changes get
17211    propagated back to all the places they're supposed to be.
17212
17213    Grep wants private fixed already mapped.
17214    The main things grep needs to know about mmap are:
17215    * does it exist and is it safe to write into the mmap'd area
17216    * how to use it (BSD variants)  */
17217
17218 #include <fcntl.h>
17219 #include <sys/mman.h>
17220
17221 #if !STDC_HEADERS && !HAVE_STDLIB_H
17222 char *malloc ();
17223 #endif
17224
17225 /* This mess was copied from the GNU getpagesize.h.  */
17226 #if !HAVE_GETPAGESIZE
17227 /* Assume that all systems that can run configure have sys/param.h.  */
17228 # if !HAVE_SYS_PARAM_H
17229 #  define HAVE_SYS_PARAM_H 1
17230 # endif
17231
17232 # ifdef _SC_PAGESIZE
17233 #  define getpagesize() sysconf(_SC_PAGESIZE)
17234 # else /* no _SC_PAGESIZE */
17235 #  if HAVE_SYS_PARAM_H
17236 #   include <sys/param.h>
17237 #   ifdef EXEC_PAGESIZE
17238 #    define getpagesize() EXEC_PAGESIZE
17239 #   else /* no EXEC_PAGESIZE */
17240 #    ifdef NBPG
17241 #     define getpagesize() NBPG * CLSIZE
17242 #     ifndef CLSIZE
17243 #      define CLSIZE 1
17244 #     endif /* no CLSIZE */
17245 #    else /* no NBPG */
17246 #     ifdef NBPC
17247 #      define getpagesize() NBPC
17248 #     else /* no NBPC */
17249 #      ifdef PAGESIZE
17250 #       define getpagesize() PAGESIZE
17251 #      endif /* PAGESIZE */
17252 #     endif /* no NBPC */
17253 #    endif /* no NBPG */
17254 #   endif /* no EXEC_PAGESIZE */
17255 #  else /* no HAVE_SYS_PARAM_H */
17256 #   define getpagesize() 8192   /* punt totally */
17257 #  endif /* no HAVE_SYS_PARAM_H */
17258 # endif /* no _SC_PAGESIZE */
17259
17260 #endif /* no HAVE_GETPAGESIZE */
17261
17262 int
17263 main ()
17264 {
17265   char *data, *data2, *data3;
17266   int i, pagesize;
17267   int fd;
17268
17269   pagesize = getpagesize ();
17270
17271   /* First, make a file with some known garbage in it. */
17272   data = (char *) malloc (pagesize);
17273   if (!data)
17274     return 1;
17275   for (i = 0; i < pagesize; ++i)
17276     *(data + i) = rand ();
17277   umask (0);
17278   fd = creat ("conftest.mmap", 0600);
17279   if (fd < 0)
17280     return 1;
17281   if (write (fd, data, pagesize) != pagesize)
17282     return 1;
17283   close (fd);
17284
17285   /* Next, try to mmap the file at a fixed address which already has
17286      something else allocated at it.  If we can, also make sure that
17287      we see the same garbage.  */
17288   fd = open ("conftest.mmap", O_RDWR);
17289   if (fd < 0)
17290     return 1;
17291   data2 = (char *) malloc (2 * pagesize);
17292   if (!data2)
17293     return 1;
17294   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17295   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17296                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17297     return 1;
17298   for (i = 0; i < pagesize; ++i)
17299     if (*(data + i) != *(data2 + i))
17300       return 1;
17301
17302   /* Finally, make sure that changes to the mapped area do not
17303      percolate back to the file as seen by read().  (This is a bug on
17304      some variants of i386 svr4.0.)  */
17305   for (i = 0; i < pagesize; ++i)
17306     *(data2 + i) = *(data2 + i) + 1;
17307   data3 = (char *) malloc (pagesize);
17308   if (!data3)
17309     return 1;
17310   if (read (fd, data3, pagesize) != pagesize)
17311     return 1;
17312   for (i = 0; i < pagesize; ++i)
17313     if (*(data + i) != *(data3 + i))
17314       return 1;
17315   close (fd);
17316   return 0;
17317 }
17318 _ACEOF
17319 rm -f conftest$ac_exeext
17320 if { (ac_try="$ac_link"
17321 case "(($ac_try" in
17322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323   *) ac_try_echo=$ac_try;;
17324 esac
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326   (eval "$ac_link") 2>&5
17327   ac_status=$?
17328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17330   { (case "(($ac_try" in
17331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332   *) ac_try_echo=$ac_try;;
17333 esac
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335   (eval "$ac_try") 2>&5
17336   ac_status=$?
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); }; }; then
17339   ac_cv_func_mmap_fixed_mapped=yes
17340 else
17341   echo "$as_me: program exited with status $ac_status" >&5
17342 echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17344
17345 ( exit $ac_status )
17346 ac_cv_func_mmap_fixed_mapped=no
17347 fi
17348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17349 fi
17350
17351
17352 fi
17353 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17354 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17355 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17356
17357 cat >>confdefs.h <<\_ACEOF
17358 #define HAVE_MMAP 1
17359 _ACEOF
17360
17361 fi
17362 rm -f conftest.mmap
17363
17364   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17365 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17366 if test "${ac_cv_func_mmap_file+set}" = set; then
17367   echo $ECHO_N "(cached) $ECHO_C" >&6
17368 else
17369    ac_ext=c
17370 ac_cpp='$CPP $CPPFLAGS'
17371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17374
17375   if test "$cross_compiling" = yes; then
17376   ac_cv_func_mmap_file=no
17377 else
17378   cat >conftest.$ac_ext <<_ACEOF
17379
17380     /* confdefs.h.  */
17381 _ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h.  */
17385
17386 #include <sys/types.h>
17387 #include <sys/mman.h>
17388 #include <fcntl.h>
17389
17390 int
17391 main ()
17392 {
17393
17394   int fd;
17395   fd = creat ("foo",0777);
17396   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17397   unlink ("foo");
17398   return (fd != (int) MAP_FAILED);
17399   ;
17400   return 0;
17401 }
17402 _ACEOF
17403 rm -f conftest$ac_exeext
17404 if { (ac_try="$ac_link"
17405 case "(($ac_try" in
17406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407   *) ac_try_echo=$ac_try;;
17408 esac
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410   (eval "$ac_link") 2>&5
17411   ac_status=$?
17412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17414   { (case "(($ac_try" in
17415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17416   *) ac_try_echo=$ac_try;;
17417 esac
17418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17419   (eval "$ac_try") 2>&5
17420   ac_status=$?
17421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422   (exit $ac_status); }; }; then
17423   ac_cv_func_mmap_file=yes
17424 else
17425   echo "$as_me: program exited with status $ac_status" >&5
17426 echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17428
17429 ( exit $ac_status )
17430 ac_cv_func_mmap_file=no
17431 fi
17432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17433 fi
17434
17435
17436   ac_ext=c
17437 ac_cpp='$CPP $CPPFLAGS'
17438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17441
17442
17443 fi
17444 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17445 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17446 if test "$ac_cv_func_mmap_file" = yes; then
17447
17448 cat >>confdefs.h <<\_ACEOF
17449 #define HAVE_MMAP_FILE
17450 _ACEOF
17451
17452    MMAP_FILE=yes
17453
17454 fi
17455
17456   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17457 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17458 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17459   echo $ECHO_N "(cached) $ECHO_C" >&6
17460 else
17461   if test "$llvm_cv_os_type" = "Interix" ; then
17462    ac_cv_need_dev_zero_for_mmap=yes
17463  else
17464    ac_cv_need_dev_zero_for_mmap=no
17465  fi
17466
17467 fi
17468 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17469 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17470 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17471
17472 cat >>confdefs.h <<\_ACEOF
17473 #define NEED_DEV_ZERO_FOR_MMAP 1
17474 _ACEOF
17475
17476 fi
17477
17478   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17479   then
17480     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17481 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17482   fi
17483   if test "$ac_cv_func_mmap_file" = "no"
17484   then
17485     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17486 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17487   fi
17488 fi
17489
17490 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17491 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17492 ac_ext=cpp
17493 ac_cpp='$CXXCPP $CPPFLAGS'
17494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17497
17498 cat >conftest.$ac_ext <<_ACEOF
17499
17500   /* confdefs.h.  */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h.  */
17505
17506     int main() {
17507       volatile unsigned long val = 1;
17508       __sync_synchronize();
17509       __sync_val_compare_and_swap(&val, 1, 0);
17510       __sync_add_and_fetch(&val, 1);
17511       __sync_sub_and_fetch(&val, 1);
17512       return 0;
17513     }
17514
17515
17516 _ACEOF
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (ac_try="$ac_link"
17519 case "(($ac_try" in
17520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521   *) ac_try_echo=$ac_try;;
17522 esac
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524   (eval "$ac_link") 2>conftest.er1
17525   ac_status=$?
17526   grep -v '^ *+' conftest.er1 >conftest.err
17527   rm -f conftest.er1
17528   cat conftest.err >&5
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); } &&
17531          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17532   { (case "(($ac_try" in
17533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534   *) ac_try_echo=$ac_try;;
17535 esac
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537   (eval "$ac_try") 2>&5
17538   ac_status=$?
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); }; } &&
17541          { ac_try='test -s conftest$ac_exeext'
17542   { (case "(($ac_try" in
17543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544   *) ac_try_echo=$ac_try;;
17545 esac
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547   (eval "$ac_try") 2>&5
17548   ac_status=$?
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); }; }; then
17551
17552   { echo "$as_me:$LINENO: result: yes" >&5
17553 echo "${ECHO_T}yes" >&6; }
17554
17555 cat >>confdefs.h <<\_ACEOF
17556 #define LLVM_HAS_ATOMICS 1
17557 _ACEOF
17558
17559
17560 else
17561   echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564
17565   { echo "$as_me:$LINENO: result: no" >&5
17566 echo "${ECHO_T}no" >&6; }
17567
17568 cat >>confdefs.h <<\_ACEOF
17569 #define LLVM_HAS_ATOMICS 0
17570 _ACEOF
17571
17572   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17573 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17574
17575 fi
17576
17577 rm -f core conftest.err conftest.$ac_objext \
17578       conftest$ac_exeext conftest.$ac_ext
17579 ac_ext=c
17580 ac_cpp='$CPP $CPPFLAGS'
17581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17584
17585
17586
17587 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17588   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17589 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17590 if test "${llvm_cv_linux_mixed+set}" = set; then
17591   echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593    ac_ext=c
17594 ac_cpp='$CPP $CPPFLAGS'
17595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17598
17599   cat >conftest.$ac_ext <<_ACEOF
17600 /* confdefs.h.  */
17601 _ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h.  */
17605 #ifndef __x86_64__
17606        error: Not x86-64 even if uname says so!
17607       #endif
17608
17609 int
17610 main ()
17611 {
17612
17613   ;
17614   return 0;
17615 }
17616 _ACEOF
17617 rm -f conftest.$ac_objext
17618 if { (ac_try="$ac_compile"
17619 case "(($ac_try" in
17620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621   *) ac_try_echo=$ac_try;;
17622 esac
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624   (eval "$ac_compile") 2>conftest.er1
17625   ac_status=$?
17626   grep -v '^ *+' conftest.er1 >conftest.err
17627   rm -f conftest.er1
17628   cat conftest.err >&5
17629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630   (exit $ac_status); } &&
17631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17632   { (case "(($ac_try" in
17633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634   *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637   (eval "$ac_try") 2>&5
17638   ac_status=$?
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); }; } &&
17641          { ac_try='test -s conftest.$ac_objext'
17642   { (case "(($ac_try" in
17643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644   *) ac_try_echo=$ac_try;;
17645 esac
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647   (eval "$ac_try") 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; }; then
17651   llvm_cv_linux_mixed=no
17652 else
17653   echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17655
17656         llvm_cv_linux_mixed=yes
17657 fi
17658
17659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17660   ac_ext=c
17661 ac_cpp='$CPP $CPPFLAGS'
17662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17665
17666
17667 fi
17668 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17669 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17670
17671   if test "$llvm_cv_linux_mixed" = "yes"; then
17672     llvm_cv_target_arch="x86"
17673     ARCH="x86"
17674   fi
17675 fi
17676
17677
17678 for ac_func in __dso_handle
17679 do
17680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17684   echo $ECHO_N "(cached) $ECHO_C" >&6
17685 else
17686   cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h.  */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h.  */
17692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17694 #define $ac_func innocuous_$ac_func
17695
17696 /* System header to define __stub macros and hopefully few prototypes,
17697     which can conflict with char $ac_func (); below.
17698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17699     <limits.h> exists even on freestanding compilers.  */
17700
17701 #ifdef __STDC__
17702 # include <limits.h>
17703 #else
17704 # include <assert.h>
17705 #endif
17706
17707 #undef $ac_func
17708
17709 /* Override any GCC internal prototype to avoid an error.
17710    Use char because int might match the return type of a GCC
17711    builtin and then its argument prototype would still apply.  */
17712 #ifdef __cplusplus
17713 extern "C"
17714 #endif
17715 char $ac_func ();
17716 /* The GNU C library defines this for functions which it implements
17717     to always fail with ENOSYS.  Some functions are actually named
17718     something starting with __ and the normal name is an alias.  */
17719 #if defined __stub_$ac_func || defined __stub___$ac_func
17720 choke me
17721 #endif
17722
17723 int
17724 main ()
17725 {
17726 return $ac_func ();
17727   ;
17728   return 0;
17729 }
17730 _ACEOF
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735   *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738   (eval "$ac_link") 2>conftest.er1
17739   ac_status=$?
17740   grep -v '^ *+' conftest.er1 >conftest.err
17741   rm -f conftest.er1
17742   cat conftest.err >&5
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); } &&
17745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17746   { (case "(($ac_try" in
17747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748   *) ac_try_echo=$ac_try;;
17749 esac
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751   (eval "$ac_try") 2>&5
17752   ac_status=$?
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); }; } &&
17755          { ac_try='test -s conftest$ac_exeext'
17756   { (case "(($ac_try" in
17757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758   *) ac_try_echo=$ac_try;;
17759 esac
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761   (eval "$ac_try") 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); }; }; then
17765   eval "$as_ac_var=yes"
17766 else
17767   echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17769
17770         eval "$as_ac_var=no"
17771 fi
17772
17773 rm -f core conftest.err conftest.$ac_objext \
17774       conftest$ac_exeext conftest.$ac_ext
17775 fi
17776 ac_res=`eval echo '${'$as_ac_var'}'`
17777                { echo "$as_me:$LINENO: result: $ac_res" >&5
17778 echo "${ECHO_T}$ac_res" >&6; }
17779 if test `eval echo '${'$as_ac_var'}'` = yes; then
17780   cat >>confdefs.h <<_ACEOF
17781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17782 _ACEOF
17783
17784 fi
17785 done
17786
17787
17788 SHLIBEXT=$llvm_shlib_ext
17789
17790
17791 if test "${prefix}" = "NONE" ; then
17792   prefix="/usr/local"
17793 fi
17794 eval LLVM_PREFIX="${prefix}";
17795 eval LLVM_BINDIR="${prefix}/bin";
17796 eval LLVM_DATADIR="${prefix}/share/llvm";
17797 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17798 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17799 eval LLVM_INCLUDEDIR="${prefix}/include";
17800 eval LLVM_INFODIR="${prefix}/info";
17801 eval LLVM_MANDIR="${prefix}/man";
17802 LLVM_CONFIGTIME=`date`
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17814   LLVM_CONFIGTIME="(timestamp not enabled)"
17815 fi
17816
17817
17818 cat >>confdefs.h <<_ACEOF
17819 #define LLVM_PREFIX "$LLVM_PREFIX"
17820 _ACEOF
17821
17822
17823 cat >>confdefs.h <<_ACEOF
17824 #define LLVM_BINDIR "$LLVM_BINDIR"
17825 _ACEOF
17826
17827
17828 cat >>confdefs.h <<_ACEOF
17829 #define LLVM_DATADIR "$LLVM_DATADIR"
17830 _ACEOF
17831
17832
17833 cat >>confdefs.h <<_ACEOF
17834 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17835 _ACEOF
17836
17837
17838 cat >>confdefs.h <<_ACEOF
17839 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17840 _ACEOF
17841
17842
17843 cat >>confdefs.h <<_ACEOF
17844 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17845 _ACEOF
17846
17847
17848 cat >>confdefs.h <<_ACEOF
17849 #define LLVM_INFODIR "$LLVM_INFODIR"
17850 _ACEOF
17851
17852
17853 cat >>confdefs.h <<_ACEOF
17854 #define LLVM_MANDIR "$LLVM_MANDIR"
17855 _ACEOF
17856
17857
17858 cat >>confdefs.h <<_ACEOF
17859 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17860 _ACEOF
17861
17862
17863 cat >>confdefs.h <<_ACEOF
17864 #define LLVM_HOST_TRIPLE "$host"
17865 _ACEOF
17866
17867
17868 cat >>confdefs.h <<_ACEOF
17869 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17870 _ACEOF
17871
17872
17873 if test "$BINDINGS_TO_BUILD" = auto ; then
17874   BINDINGS_TO_BUILD=""
17875   if test "x$OCAMLFIND" != x ; then
17876     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17877   fi
17878   if test "x$GO" != x ; then
17879     if $GO run ${srcdir}/bindings/go/conftest.go ; then
17880       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17881     fi
17882   fi
17883 fi
17884 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17885
17886
17887 binding_prereqs_failed=0
17888 for a_binding in $BINDINGS_TO_BUILD ; do
17889   case "$a_binding" in
17890   ocaml)
17891     if test "x$OCAMLFIND" = x ; then
17892       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17893 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17894       binding_prereqs_failed=1
17895     fi
17896
17897     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17898       HAVE_OCAMLOPT=1
17899     else
17900       HAVE_OCAMLOPT=0
17901     fi
17902
17903
17904     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17905       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17906 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17907       binding_prereqs_failed=1
17908     fi
17909
17910     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17911       HAVE_OCAML_OUNIT=1
17912     else
17913       HAVE_OCAML_OUNIT=0
17914       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17915 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17916           fi
17917
17918
17919     if test "x$with_ocaml_libdir" != xauto ; then
17920       OCAML_LIBDIR=$with_ocaml_libdir
17921
17922     else
17923       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17924       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17925       then
17926         # ocaml stdlib is beneath our prefix; use stdlib
17927         OCAML_LIBDIR=$ocaml_stdlib
17928
17929       else
17930         # ocaml stdlib is outside our prefix; use libdir/ocaml
17931         OCAML_LIBDIR=${prefix}/lib/ocaml
17932
17933       fi
17934     fi
17935     ;;
17936   go)
17937     if test "x$GO" = x ; then
17938       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17939 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17940       binding_prereqs_failed=1
17941     else
17942       if $GO run ${srcdir}/bindings/go/conftest.go ; then
17943         :
17944       else
17945         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17946 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17947         binding_prereqs_failed=1
17948       fi
17949     fi
17950     ;;
17951   esac
17952 done
17953 if test "$binding_prereqs_failed" = 1 ; then
17954   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17955 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17956    { (exit 1); exit 1; }; }
17957 fi
17958
17959 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17960 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17961 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17962   echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964    ac_ext=cpp
17965 ac_cpp='$CXXCPP $CPPFLAGS'
17966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17969
17970   oldcxxflags="$CXXFLAGS"
17971   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17972   cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h.  */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h.  */
17978 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17979 int
17980 main ()
17981 {
17982 X<int>().f();
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 rm -f conftest.$ac_objext
17988 if { (ac_try="$ac_compile"
17989 case "(($ac_try" in
17990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991   *) ac_try_echo=$ac_try;;
17992 esac
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994   (eval "$ac_compile") 2>conftest.er1
17995   ac_status=$?
17996   grep -v '^ *+' conftest.er1 >conftest.err
17997   rm -f conftest.er1
17998   cat conftest.err >&5
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } &&
18001          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18002   { (case "(($ac_try" in
18003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004   *) ac_try_echo=$ac_try;;
18005 esac
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007   (eval "$ac_try") 2>&5
18008   ac_status=$?
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); }; } &&
18011          { ac_try='test -s conftest.$ac_objext'
18012   { (case "(($ac_try" in
18013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014   *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017   (eval "$ac_try") 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; }; then
18021   llvm_cv_cxx_visibility_inlines_hidden=yes
18022 else
18023   echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18025
18026         llvm_cv_cxx_visibility_inlines_hidden=no
18027 fi
18028
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18030   CXXFLAGS="$oldcxxflags"
18031   ac_ext=c
18032 ac_cpp='$CPP $CPPFLAGS'
18033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18036
18037
18038 fi
18039 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18040 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18041 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18042   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18043
18044 else
18045   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18046
18047 fi
18048
18049
18050 if test "$llvm_cv_link_use_r" = "yes" ; then
18051   RPATH="-Wl,-R"
18052 else
18053   RPATH="-Wl,-rpath"
18054 fi
18055
18056
18057 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18058   RDYNAMIC="-rdynamic"
18059 else
18060   RDYNAMIC=""
18061 fi
18062
18063
18064
18065 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18066
18067
18068
18069
18070
18071
18072 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18073
18074 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18075
18076 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18077
18078 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18079
18080 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18081
18082
18083 ac_config_files="$ac_config_files Makefile.config"
18084
18085
18086 ac_config_files="$ac_config_files llvm.spec"
18087
18088
18089 ac_config_files="$ac_config_files docs/doxygen.cfg"
18090
18091
18092 if test "${clang_src_root}" = ""; then
18093   clang_src_root="$srcdir/tools/clang"
18094 fi
18095 if test -f ${clang_src_root}/README.txt; then
18096
18097 cat >>confdefs.h <<_ACEOF
18098 #define CLANG_LIBDIR_SUFFIX ""
18099 _ACEOF
18100
18101
18102     configh="include/clang/Config/config.h"
18103   doxy="docs/doxygen.cfg"
18104   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18105
18106   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18107
18108 fi
18109
18110 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18111
18112
18113 test "x$program_prefix" = "xNONE" && program_prefix=""
18114
18115
18116
18117 ac_config_commands="$ac_config_commands setup"
18118
18119 ac_config_commands="$ac_config_commands Makefile"
18120
18121
18122 ac_config_commands="$ac_config_commands Makefile.common"
18123
18124
18125 ac_config_commands="$ac_config_commands examples/Makefile"
18126
18127
18128 ac_config_commands="$ac_config_commands lib/Makefile"
18129
18130
18131 ac_config_commands="$ac_config_commands test/Makefile"
18132
18133
18134 ac_config_commands="$ac_config_commands test/Makefile.tests"
18135
18136
18137 ac_config_commands="$ac_config_commands unittests/Makefile"
18138
18139
18140 ac_config_commands="$ac_config_commands tools/Makefile"
18141
18142
18143 ac_config_commands="$ac_config_commands utils/Makefile"
18144
18145
18146 ac_config_commands="$ac_config_commands projects/Makefile"
18147
18148
18149 ac_config_commands="$ac_config_commands bindings/Makefile"
18150
18151
18152 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18153
18154
18155
18156 cat >confcache <<\_ACEOF
18157 # This file is a shell script that caches the results of configure
18158 # tests run on this system so they can be shared between configure
18159 # scripts and configure runs, see configure's option --config-cache.
18160 # It is not useful on other systems.  If it contains results you don't
18161 # want to keep, you may remove or edit it.
18162 #
18163 # config.status only pays attention to the cache file if you give it
18164 # the --recheck option to rerun configure.
18165 #
18166 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18167 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18168 # following values.
18169
18170 _ACEOF
18171
18172 # The following way of writing the cache mishandles newlines in values,
18173 # but we know of no workaround that is simple, portable, and efficient.
18174 # So, we kill variables containing newlines.
18175 # Ultrix sh set writes to stderr and can't be redirected directly,
18176 # and sets the high bit in the cache file unless we assign to the vars.
18177 (
18178   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18179     eval ac_val=\$$ac_var
18180     case $ac_val in #(
18181     *${as_nl}*)
18182       case $ac_var in #(
18183       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18184 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18185       esac
18186       case $ac_var in #(
18187       _ | IFS | as_nl) ;; #(
18188       *) $as_unset $ac_var ;;
18189       esac ;;
18190     esac
18191   done
18192
18193   (set) 2>&1 |
18194     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18195     *${as_nl}ac_space=\ *)
18196       # `set' does not quote correctly, so add quotes (double-quote
18197       # substitution turns \\\\ into \\, and sed turns \\ into \).
18198       sed -n \
18199         "s/'/'\\\\''/g;
18200           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18201       ;; #(
18202     *)
18203       # `set' quotes correctly as required by POSIX, so do not add quotes.
18204       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18205       ;;
18206     esac |
18207     sort
18208 ) |
18209   sed '
18210      /^ac_cv_env_/b end
18211      t clear
18212      :clear
18213      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18214      t end
18215      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18216      :end' >>confcache
18217 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18218   if test -w "$cache_file"; then
18219     test "x$cache_file" != "x/dev/null" &&
18220       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18221 echo "$as_me: updating cache $cache_file" >&6;}
18222     cat confcache >$cache_file
18223   else
18224     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18225 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18226   fi
18227 fi
18228 rm -f confcache
18229
18230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18231 # Let make expand exec_prefix.
18232 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18233
18234 DEFS=-DHAVE_CONFIG_H
18235
18236 ac_libobjs=
18237 ac_ltlibobjs=
18238 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18239   # 1. Remove the extension, and $U if already installed.
18240   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18241   ac_i=`echo "$ac_i" | sed "$ac_script"`
18242   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18243   #    will be set to the directory where LIBOBJS objects are built.
18244   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18245   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18246 done
18247 LIBOBJS=$ac_libobjs
18248
18249 LTLIBOBJS=$ac_ltlibobjs
18250
18251
18252
18253 : ${CONFIG_STATUS=./config.status}
18254 ac_clean_files_save=$ac_clean_files
18255 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18256 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18257 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18258 cat >$CONFIG_STATUS <<_ACEOF
18259 #! $SHELL
18260 # Generated by $as_me.
18261 # Run this file to recreate the current configuration.
18262 # Compiler output produced by configure, useful for debugging
18263 # configure, is in config.log if it exists.
18264
18265 debug=false
18266 ac_cs_recheck=false
18267 ac_cs_silent=false
18268 SHELL=\${CONFIG_SHELL-$SHELL}
18269 _ACEOF
18270
18271 cat >>$CONFIG_STATUS <<\_ACEOF
18272 ## --------------------- ##
18273 ## M4sh Initialization.  ##
18274 ## --------------------- ##
18275
18276 # Be Bourne compatible
18277 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18278   emulate sh
18279   NULLCMD=:
18280   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18281   # is contrary to our usage.  Disable this feature.
18282   alias -g '${1+"$@"}'='"$@"'
18283   setopt NO_GLOB_SUBST
18284 else
18285   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18286 fi
18287 BIN_SH=xpg4; export BIN_SH # for Tru64
18288 DUALCASE=1; export DUALCASE # for MKS sh
18289
18290
18291 # PATH needs CR
18292 # Avoid depending upon Character Ranges.
18293 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18294 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18295 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18296 as_cr_digits='0123456789'
18297 as_cr_alnum=$as_cr_Letters$as_cr_digits
18298
18299 # The user is always right.
18300 if test "${PATH_SEPARATOR+set}" != set; then
18301   echo "#! /bin/sh" >conf$$.sh
18302   echo  "exit 0"   >>conf$$.sh
18303   chmod +x conf$$.sh
18304   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18305     PATH_SEPARATOR=';'
18306   else
18307     PATH_SEPARATOR=:
18308   fi
18309   rm -f conf$$.sh
18310 fi
18311
18312 # Support unset when possible.
18313 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18314   as_unset=unset
18315 else
18316   as_unset=false
18317 fi
18318
18319
18320 # IFS
18321 # We need space, tab and new line, in precisely that order.  Quoting is
18322 # there to prevent editors from complaining about space-tab.
18323 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18324 # splitting by setting IFS to empty value.)
18325 as_nl='
18326 '
18327 IFS=" ""        $as_nl"
18328
18329 # Find who we are.  Look in the path if we contain no directory separator.
18330 case $0 in
18331   *[\\/]* ) as_myself=$0 ;;
18332   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333 for as_dir in $PATH
18334 do
18335   IFS=$as_save_IFS
18336   test -z "$as_dir" && as_dir=.
18337   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18338 done
18339 IFS=$as_save_IFS
18340
18341      ;;
18342 esac
18343 # We did not find ourselves, most probably we were run as `sh COMMAND'
18344 # in which case we are not to be found in the path.
18345 if test "x$as_myself" = x; then
18346   as_myself=$0
18347 fi
18348 if test ! -f "$as_myself"; then
18349   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18350   { (exit 1); exit 1; }
18351 fi
18352
18353 # Work around bugs in pre-3.0 UWIN ksh.
18354 for as_var in ENV MAIL MAILPATH
18355 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18356 done
18357 PS1='$ '
18358 PS2='> '
18359 PS4='+ '
18360
18361 # NLS nuisances.
18362 for as_var in \
18363   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18364   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18365   LC_TELEPHONE LC_TIME
18366 do
18367   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18368     eval $as_var=C; export $as_var
18369   else
18370     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18371   fi
18372 done
18373
18374 # Required to use basename.
18375 if expr a : '\(a\)' >/dev/null 2>&1 &&
18376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18377   as_expr=expr
18378 else
18379   as_expr=false
18380 fi
18381
18382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18383   as_basename=basename
18384 else
18385   as_basename=false
18386 fi
18387
18388
18389 # Name of the executable.
18390 as_me=`$as_basename -- "$0" ||
18391 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18392          X"$0" : 'X\(//\)$' \| \
18393          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18394 echo X/"$0" |
18395     sed '/^.*\/\([^/][^/]*\)\/*$/{
18396             s//\1/
18397             q
18398           }
18399           /^X\/\(\/\/\)$/{
18400             s//\1/
18401             q
18402           }
18403           /^X\/\(\/\).*/{
18404             s//\1/
18405             q
18406           }
18407           s/.*/./; q'`
18408
18409 # CDPATH.
18410 $as_unset CDPATH
18411
18412
18413
18414   as_lineno_1=$LINENO
18415   as_lineno_2=$LINENO
18416   test "x$as_lineno_1" != "x$as_lineno_2" &&
18417   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18418
18419   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18420   # uniformly replaced by the line number.  The first 'sed' inserts a
18421   # line-number line after each line using $LINENO; the second 'sed'
18422   # does the real work.  The second script uses 'N' to pair each
18423   # line-number line with the line containing $LINENO, and appends
18424   # trailing '-' during substitution so that $LINENO is not a special
18425   # case at line end.
18426   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18427   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18428   # E. McMahon (1931-1989) for sed's syntax.  :-)
18429   sed -n '
18430     p
18431     /[$]LINENO/=
18432   ' <$as_myself |
18433     sed '
18434       s/[$]LINENO.*/&-/
18435       t lineno
18436       b
18437       :lineno
18438       N
18439       :loop
18440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18441       t loop
18442       s/-\n.*//
18443     ' >$as_me.lineno &&
18444   chmod +x "$as_me.lineno" ||
18445     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18446    { (exit 1); exit 1; }; }
18447
18448   # Don't try to exec as it changes $[0], causing all sort of problems
18449   # (the dirname of $[0] is not the place where we might find the
18450   # original and so on.  Autoconf is especially sensitive to this).
18451   . "./$as_me.lineno"
18452   # Exit status is that of the last command.
18453   exit
18454 }
18455
18456
18457 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18458   as_dirname=dirname
18459 else
18460   as_dirname=false
18461 fi
18462
18463 ECHO_C= ECHO_N= ECHO_T=
18464 case `echo -n x` in
18465 -n*)
18466   case `echo 'x\c'` in
18467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18468   *)   ECHO_C='\c';;
18469   esac;;
18470 *)
18471   ECHO_N='-n';;
18472 esac
18473
18474 if expr a : '\(a\)' >/dev/null 2>&1 &&
18475    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18476   as_expr=expr
18477 else
18478   as_expr=false
18479 fi
18480
18481 rm -f conf$$ conf$$.exe conf$$.file
18482 if test -d conf$$.dir; then
18483   rm -f conf$$.dir/conf$$.file
18484 else
18485   rm -f conf$$.dir
18486   mkdir conf$$.dir
18487 fi
18488 echo >conf$$.file
18489 if ln -s conf$$.file conf$$ 2>/dev/null; then
18490   as_ln_s='ln -s'
18491   # ... but there are two gotchas:
18492   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18493   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18494   # In both cases, we have to default to `cp -p'.
18495   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18496     as_ln_s='cp -p'
18497 elif ln conf$$.file conf$$ 2>/dev/null; then
18498   as_ln_s=ln
18499 else
18500   as_ln_s='cp -p'
18501 fi
18502 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18503 rmdir conf$$.dir 2>/dev/null
18504
18505 if mkdir -p . 2>/dev/null; then
18506   as_mkdir_p=:
18507 else
18508   test -d ./-p && rmdir ./-p
18509   as_mkdir_p=false
18510 fi
18511
18512 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
18513 # systems may use methods other than mode bits to determine executability.
18514 cat >conf$$.file <<_ASEOF
18515 #! /bin/sh
18516 exit 0
18517 _ASEOF
18518 chmod +x conf$$.file
18519 if test -x conf$$.file >/dev/null 2>&1; then
18520   as_executable_p="test -x"
18521 else
18522   as_executable_p=:
18523 fi
18524 rm -f conf$$.file
18525
18526 # Sed expression to map a string onto a valid CPP name.
18527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18528
18529 # Sed expression to map a string onto a valid variable name.
18530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18531
18532
18533 exec 6>&1
18534
18535 # Save the log message, to keep $[0] and so on meaningful, and to
18536 # report actual input values of CONFIG_FILES etc. instead of their
18537 # values after options handling.
18538 ac_log="
18539 This file was extended by LLVM $as_me 3.7.0svn, which was
18540 generated by GNU Autoconf 2.60.  Invocation command line was
18541
18542   CONFIG_FILES    = $CONFIG_FILES
18543   CONFIG_HEADERS  = $CONFIG_HEADERS
18544   CONFIG_LINKS    = $CONFIG_LINKS
18545   CONFIG_COMMANDS = $CONFIG_COMMANDS
18546   $ $0 $@
18547
18548 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18549 "
18550
18551 _ACEOF
18552
18553 cat >>$CONFIG_STATUS <<_ACEOF
18554 # Files that config.status was made for.
18555 config_files="$ac_config_files"
18556 config_headers="$ac_config_headers"
18557 config_commands="$ac_config_commands"
18558
18559 _ACEOF
18560
18561 cat >>$CONFIG_STATUS <<\_ACEOF
18562 ac_cs_usage="\
18563 \`$as_me' instantiates files from templates according to the
18564 current configuration.
18565
18566 Usage: $0 [OPTIONS] [FILE]...
18567
18568   -h, --help       print this help, then exit
18569   -V, --version    print version number, then exit
18570   -q, --quiet      do not print progress messages
18571   -d, --debug      don't remove temporary files
18572       --recheck    update $as_me by reconfiguring in the same conditions
18573   --file=FILE[:TEMPLATE]
18574                    instantiate the configuration file FILE
18575   --header=FILE[:TEMPLATE]
18576                    instantiate the configuration header FILE
18577
18578 Configuration files:
18579 $config_files
18580
18581 Configuration headers:
18582 $config_headers
18583
18584 Configuration commands:
18585 $config_commands
18586
18587 Report bugs to <bug-autoconf@gnu.org>."
18588
18589 _ACEOF
18590 cat >>$CONFIG_STATUS <<_ACEOF
18591 ac_cs_version="\\
18592 LLVM config.status 3.7.0svn
18593 configured by $0, generated by GNU Autoconf 2.60,
18594   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18595
18596 Copyright (C) 2006 Free Software Foundation, Inc.
18597 This config.status script is free software; the Free Software Foundation
18598 gives unlimited permission to copy, distribute and modify it."
18599
18600 ac_pwd='$ac_pwd'
18601 srcdir='$srcdir'
18602 INSTALL='$INSTALL'
18603 _ACEOF
18604
18605 cat >>$CONFIG_STATUS <<\_ACEOF
18606 # If no file are specified by the user, then we need to provide default
18607 # value.  By we need to know if files were specified by the user.
18608 ac_need_defaults=:
18609 while test $# != 0
18610 do
18611   case $1 in
18612   --*=*)
18613     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18614     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18615     ac_shift=:
18616     ;;
18617   *)
18618     ac_option=$1
18619     ac_optarg=$2
18620     ac_shift=shift
18621     ;;
18622   esac
18623
18624   case $ac_option in
18625   # Handling of the options.
18626   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18627     ac_cs_recheck=: ;;
18628   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18629     echo "$ac_cs_version"; exit ;;
18630   --debug | --debu | --deb | --de | --d | -d )
18631     debug=: ;;
18632   --file | --fil | --fi | --f )
18633     $ac_shift
18634     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18635     ac_need_defaults=false;;
18636   --header | --heade | --head | --hea )
18637     $ac_shift
18638     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18639     ac_need_defaults=false;;
18640   --he | --h)
18641     # Conflict between --help and --header
18642     { echo "$as_me: error: ambiguous option: $1
18643 Try \`$0 --help' for more information." >&2
18644    { (exit 1); exit 1; }; };;
18645   --help | --hel | -h )
18646     echo "$ac_cs_usage"; exit ;;
18647   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18648   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18649     ac_cs_silent=: ;;
18650
18651   # This is an error.
18652   -*) { echo "$as_me: error: unrecognized option: $1
18653 Try \`$0 --help' for more information." >&2
18654    { (exit 1); exit 1; }; } ;;
18655
18656   *) ac_config_targets="$ac_config_targets $1"
18657      ac_need_defaults=false ;;
18658
18659   esac
18660   shift
18661 done
18662
18663 ac_configure_extra_args=
18664
18665 if $ac_cs_silent; then
18666   exec 6>/dev/null
18667   ac_configure_extra_args="$ac_configure_extra_args --silent"
18668 fi
18669
18670 _ACEOF
18671 cat >>$CONFIG_STATUS <<_ACEOF
18672 if \$ac_cs_recheck; then
18673   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18674   CONFIG_SHELL=$SHELL
18675   export CONFIG_SHELL
18676   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18677 fi
18678
18679 _ACEOF
18680 cat >>$CONFIG_STATUS <<\_ACEOF
18681 exec 5>>config.log
18682 {
18683   echo
18684   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18685 ## Running $as_me. ##
18686 _ASBOX
18687   echo "$ac_log"
18688 } >&5
18689
18690 _ACEOF
18691 cat >>$CONFIG_STATUS <<_ACEOF
18692 #
18693 # INIT-COMMANDS
18694 #
18695 llvm_src="${srcdir}"
18696
18697 _ACEOF
18698
18699 cat >>$CONFIG_STATUS <<\_ACEOF
18700
18701 # Handling of arguments.
18702 for ac_config_target in $ac_config_targets
18703 do
18704   case $ac_config_target in
18705     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18706     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18707     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18708     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18709     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18710     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18711     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18712     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18713     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18714     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18715     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18716     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18717     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18718     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18719     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18720     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18721     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18722     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18723     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18724     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18725     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18726     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18727     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18728     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18729     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18730     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18731
18732   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18733 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18734    { (exit 1); exit 1; }; };;
18735   esac
18736 done
18737
18738
18739 # If the user did not use the arguments to specify the items to instantiate,
18740 # then the envvar interface is used.  Set only those that are not.
18741 # We use the long form for the default assignment because of an extremely
18742 # bizarre bug on SunOS 4.1.3.
18743 if $ac_need_defaults; then
18744   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18745   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18746   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18747 fi
18748
18749 # Have a temporary directory for convenience.  Make it in the build tree
18750 # simply because there is no reason against having it here, and in addition,
18751 # creating and moving files from /tmp can sometimes cause problems.
18752 # Hook for its removal unless debugging.
18753 # Note that there is a small window in which the directory will not be cleaned:
18754 # after its creation but before its name has been assigned to `$tmp'.
18755 $debug ||
18756 {
18757   tmp=
18758   trap 'exit_status=$?
18759   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18760 ' 0
18761   trap '{ (exit 1); exit 1; }' 1 2 13 15
18762 }
18763 # Create a (secure) tmp directory for tmp files.
18764
18765 {
18766   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18767   test -n "$tmp" && test -d "$tmp"
18768 }  ||
18769 {
18770   tmp=./conf$$-$RANDOM
18771   (umask 077 && mkdir "$tmp")
18772 } ||
18773 {
18774    echo "$me: cannot create a temporary directory in ." >&2
18775    { (exit 1); exit 1; }
18776 }
18777
18778 #
18779 # Set up the sed scripts for CONFIG_FILES section.
18780 #
18781
18782 # No need to generate the scripts if there are no CONFIG_FILES.
18783 # This happens for instance when ./config.status config.h
18784 if test -n "$CONFIG_FILES"; then
18785
18786 _ACEOF
18787
18788
18789
18790 ac_delim='%!_!# '
18791 for ac_last_try in false false false false false :; do
18792   cat >conf$$subs.sed <<_ACEOF
18793 SHELL!$SHELL$ac_delim
18794 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18795 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18796 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18797 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18798 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18799 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18800 exec_prefix!$exec_prefix$ac_delim
18801 prefix!$prefix$ac_delim
18802 program_transform_name!$program_transform_name$ac_delim
18803 bindir!$bindir$ac_delim
18804 sbindir!$sbindir$ac_delim
18805 libexecdir!$libexecdir$ac_delim
18806 datarootdir!$datarootdir$ac_delim
18807 datadir!$datadir$ac_delim
18808 sysconfdir!$sysconfdir$ac_delim
18809 sharedstatedir!$sharedstatedir$ac_delim
18810 localstatedir!$localstatedir$ac_delim
18811 includedir!$includedir$ac_delim
18812 oldincludedir!$oldincludedir$ac_delim
18813 docdir!$docdir$ac_delim
18814 infodir!$infodir$ac_delim
18815 htmldir!$htmldir$ac_delim
18816 dvidir!$dvidir$ac_delim
18817 pdfdir!$pdfdir$ac_delim
18818 psdir!$psdir$ac_delim
18819 libdir!$libdir$ac_delim
18820 localedir!$localedir$ac_delim
18821 mandir!$mandir$ac_delim
18822 DEFS!$DEFS$ac_delim
18823 ECHO_C!$ECHO_C$ac_delim
18824 ECHO_N!$ECHO_N$ac_delim
18825 ECHO_T!$ECHO_T$ac_delim
18826 LIBS!$LIBS$ac_delim
18827 build_alias!$build_alias$ac_delim
18828 host_alias!$host_alias$ac_delim
18829 target_alias!$target_alias$ac_delim
18830 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18831 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18832 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18833 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18834 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18835 CC!$CC$ac_delim
18836 CFLAGS!$CFLAGS$ac_delim
18837 LDFLAGS!$LDFLAGS$ac_delim
18838 CPPFLAGS!$CPPFLAGS$ac_delim
18839 ac_ct_CC!$ac_ct_CC$ac_delim
18840 EXEEXT!$EXEEXT$ac_delim
18841 OBJEXT!$OBJEXT$ac_delim
18842 CXX!$CXX$ac_delim
18843 CXXFLAGS!$CXXFLAGS$ac_delim
18844 ac_ct_CXX!$ac_ct_CXX$ac_delim
18845 CPP!$CPP$ac_delim
18846 subdirs!$subdirs$ac_delim
18847 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18848 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18849 build!$build$ac_delim
18850 build_cpu!$build_cpu$ac_delim
18851 build_vendor!$build_vendor$ac_delim
18852 build_os!$build_os$ac_delim
18853 host!$host$ac_delim
18854 host_cpu!$host_cpu$ac_delim
18855 host_vendor!$host_vendor$ac_delim
18856 host_os!$host_os$ac_delim
18857 target!$target$ac_delim
18858 target_cpu!$target_cpu$ac_delim
18859 target_vendor!$target_vendor$ac_delim
18860 target_os!$target_os$ac_delim
18861 OS!$OS$ac_delim
18862 HOST_OS!$HOST_OS$ac_delim
18863 TARGET_OS!$TARGET_OS$ac_delim
18864 LINKALL!$LINKALL$ac_delim
18865 NOLINKALL!$NOLINKALL$ac_delim
18866 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18867 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18868 ARCH!$ARCH$ac_delim
18869 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18870 HOST_ARCH!$HOST_ARCH$ac_delim
18871 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18872 BUILD_CC!$BUILD_CC$ac_delim
18873 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18874 BUILD_CXX!$BUILD_CXX$ac_delim
18875 CVSBUILD!$CVSBUILD$ac_delim
18876 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18877 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18878 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18879 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18880 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18881 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18882 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18883 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18884 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18885 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18886 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18887 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18888 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18889 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18890 _ACEOF
18891
18892   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18893     break
18894   elif $ac_last_try; then
18895     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18896 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18897    { (exit 1); exit 1; }; }
18898   else
18899     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18900   fi
18901 done
18902
18903 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18904 if test -n "$ac_eof"; then
18905   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18906   ac_eof=`expr $ac_eof + 1`
18907 fi
18908
18909 cat >>$CONFIG_STATUS <<_ACEOF
18910 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18912 _ACEOF
18913 sed '
18914 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18915 s/^/s,@/; s/!/@,|#_!!_#|/
18916 :n
18917 t n
18918 s/'"$ac_delim"'$/,g/; t
18919 s/$/\\/; p
18920 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18921 ' >>$CONFIG_STATUS <conf$$subs.sed
18922 rm -f conf$$subs.sed
18923 cat >>$CONFIG_STATUS <<_ACEOF
18924 CEOF$ac_eof
18925 _ACEOF
18926
18927
18928 ac_delim='%!_!# '
18929 for ac_last_try in false false false false false :; do
18930   cat >conf$$subs.sed <<_ACEOF
18931 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18932 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18933 JIT!$JIT$ac_delim
18934 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18935 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18936 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18937 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18938 enable_searchengine!$enable_searchengine$ac_delim
18939 enable_external_search!$enable_external_search$ac_delim
18940 enable_server_based_search!$enable_server_based_search$ac_delim
18941 searchengine_url!$searchengine_url$ac_delim
18942 extra_search_mappings!$extra_search_mappings$ac_delim
18943 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18944 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18945 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18946 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18947 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18948 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18949 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18950 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18951 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18952 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18953 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18954 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18955 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18956 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18957 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18958 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18959 ENABLE_PIC!$ENABLE_PIC$ac_delim
18960 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18961 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18962 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18963 ALL_TARGETS!$ALL_TARGETS$ac_delim
18964 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18965 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18966 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18967 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18968 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18969 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18970 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18971 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18972 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18973 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18974 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18975 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18976 ifGNUmake!$ifGNUmake$ac_delim
18977 LN_S!$LN_S$ac_delim
18978 NM!$NM$ac_delim
18979 CMP!$CMP$ac_delim
18980 CP!$CP$ac_delim
18981 DATE!$DATE$ac_delim
18982 FIND!$FIND$ac_delim
18983 GREP!$GREP$ac_delim
18984 MKDIR!$MKDIR$ac_delim
18985 MV!$MV$ac_delim
18986 RANLIB!$RANLIB$ac_delim
18987 AR!$AR$ac_delim
18988 RM!$RM$ac_delim
18989 SED!$SED$ac_delim
18990 TAR!$TAR$ac_delim
18991 BINPWD!$BINPWD$ac_delim
18992 DOT!$DOT$ac_delim
18993 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18994 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18995 INSTALL_DATA!$INSTALL_DATA$ac_delim
18996 BZIP2!$BZIP2$ac_delim
18997 CAT!$CAT$ac_delim
18998 DOXYGEN!$DOXYGEN$ac_delim
18999 GROFF!$GROFF$ac_delim
19000 GZIPBIN!$GZIPBIN$ac_delim
19001 PDFROFF!$PDFROFF$ac_delim
19002 ZIP!$ZIP$ac_delim
19003 GO!$GO$ac_delim
19004 OCAMLFIND!$OCAMLFIND$ac_delim
19005 GAS!$GAS$ac_delim
19006 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19007 EGREP!$EGREP$ac_delim
19008 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19009 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19010 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19011 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19012 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19013 NO_COMMENT!$NO_COMMENT$ac_delim
19014 PYTHON!$PYTHON$ac_delim
19015 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19016 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19017 USE_OPROFILE!$USE_OPROFILE$ac_delim
19018 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19019 XML2CONFIG!$XML2CONFIG$ac_delim
19020 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19021 LIBXML2_INC!$LIBXML2_INC$ac_delim
19022 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19023 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19024 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19025 MMAP_FILE!$MMAP_FILE$ac_delim
19026 SHLIBEXT!$SHLIBEXT$ac_delim
19027 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19028 _ACEOF
19029
19030   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19031     break
19032   elif $ac_last_try; then
19033     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19034 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19035    { (exit 1); exit 1; }; }
19036   else
19037     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19038   fi
19039 done
19040
19041 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19042 if test -n "$ac_eof"; then
19043   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19044   ac_eof=`expr $ac_eof + 1`
19045 fi
19046
19047 cat >>$CONFIG_STATUS <<_ACEOF
19048 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19050 _ACEOF
19051 sed '
19052 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19053 s/^/s,@/; s/!/@,|#_!!_#|/
19054 :n
19055 t n
19056 s/'"$ac_delim"'$/,g/; t
19057 s/$/\\/; p
19058 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19059 ' >>$CONFIG_STATUS <conf$$subs.sed
19060 rm -f conf$$subs.sed
19061 cat >>$CONFIG_STATUS <<_ACEOF
19062 CEOF$ac_eof
19063 _ACEOF
19064
19065
19066 ac_delim='%!_!# '
19067 for ac_last_try in false false false false false :; do
19068   cat >conf$$subs.sed <<_ACEOF
19069 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19070 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19071 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19072 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19073 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19074 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19075 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19076 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19077 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19078 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19079 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19080 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19081 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19082 RPATH!$RPATH$ac_delim
19083 RDYNAMIC!$RDYNAMIC$ac_delim
19084 program_prefix!$program_prefix$ac_delim
19085 LIBOBJS!$LIBOBJS$ac_delim
19086 LTLIBOBJS!$LTLIBOBJS$ac_delim
19087 _ACEOF
19088
19089   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19090     break
19091   elif $ac_last_try; then
19092     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19093 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19094    { (exit 1); exit 1; }; }
19095   else
19096     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19097   fi
19098 done
19099
19100 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19101 if test -n "$ac_eof"; then
19102   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19103   ac_eof=`expr $ac_eof + 1`
19104 fi
19105
19106 cat >>$CONFIG_STATUS <<_ACEOF
19107 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19108 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19109 _ACEOF
19110 sed '
19111 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19112 s/^/s,@/; s/!/@,|#_!!_#|/
19113 :n
19114 t n
19115 s/'"$ac_delim"'$/,g/; t
19116 s/$/\\/; p
19117 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19118 ' >>$CONFIG_STATUS <conf$$subs.sed
19119 rm -f conf$$subs.sed
19120 cat >>$CONFIG_STATUS <<_ACEOF
19121 :end
19122 s/|#_!!_#|//g
19123 CEOF$ac_eof
19124 _ACEOF
19125
19126
19127 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19128 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19129 # trailing colons and then remove the whole line if VPATH becomes empty
19130 # (actually we leave an empty line to preserve line numbers).
19131 if test "x$srcdir" = x.; then
19132   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19133 s/:*\$(srcdir):*/:/
19134 s/:*\${srcdir}:*/:/
19135 s/:*@srcdir@:*/:/
19136 s/^\([^=]*=[     ]*\):*/\1/
19137 s/:*$//
19138 s/^[^=]*=[       ]*$//
19139 }'
19140 fi
19141
19142 cat >>$CONFIG_STATUS <<\_ACEOF
19143 fi # test -n "$CONFIG_FILES"
19144
19145
19146 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19147 do
19148   case $ac_tag in
19149   :[FHLC]) ac_mode=$ac_tag; continue;;
19150   esac
19151   case $ac_mode$ac_tag in
19152   :[FHL]*:*);;
19153   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19154 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19155    { (exit 1); exit 1; }; };;
19156   :[FH]-) ac_tag=-:-;;
19157   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19158   esac
19159   ac_save_IFS=$IFS
19160   IFS=:
19161   set x $ac_tag
19162   IFS=$ac_save_IFS
19163   shift
19164   ac_file=$1
19165   shift
19166
19167   case $ac_mode in
19168   :L) ac_source=$1;;
19169   :[FH])
19170     ac_file_inputs=
19171     for ac_f
19172     do
19173       case $ac_f in
19174       -) ac_f="$tmp/stdin";;
19175       *) # Look for the file first in the build tree, then in the source tree
19176          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19177          # because $ac_f cannot contain `:'.
19178          test -f "$ac_f" ||
19179            case $ac_f in
19180            [\\/$]*) false;;
19181            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19182            esac ||
19183            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19184 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19185    { (exit 1); exit 1; }; };;
19186       esac
19187       ac_file_inputs="$ac_file_inputs $ac_f"
19188     done
19189
19190     # Let's still pretend it is `configure' which instantiates (i.e., don't
19191     # use $as_me), people would be surprised to read:
19192     #    /* config.h.  Generated by config.status.  */
19193     configure_input="Generated from "`IFS=:
19194           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19195     if test x"$ac_file" != x-; then
19196       configure_input="$ac_file.  $configure_input"
19197       { echo "$as_me:$LINENO: creating $ac_file" >&5
19198 echo "$as_me: creating $ac_file" >&6;}
19199     fi
19200
19201     case $ac_tag in
19202     *:-:* | *:-) cat >"$tmp/stdin";;
19203     esac
19204     ;;
19205   esac
19206
19207   ac_dir=`$as_dirname -- "$ac_file" ||
19208 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19209          X"$ac_file" : 'X\(//\)[^/]' \| \
19210          X"$ac_file" : 'X\(//\)$' \| \
19211          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19212 echo X"$ac_file" |
19213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19214             s//\1/
19215             q
19216           }
19217           /^X\(\/\/\)[^/].*/{
19218             s//\1/
19219             q
19220           }
19221           /^X\(\/\/\)$/{
19222             s//\1/
19223             q
19224           }
19225           /^X\(\/\).*/{
19226             s//\1/
19227             q
19228           }
19229           s/.*/./; q'`
19230   { as_dir="$ac_dir"
19231   case $as_dir in #(
19232   -*) as_dir=./$as_dir;;
19233   esac
19234   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19235     as_dirs=
19236     while :; do
19237       case $as_dir in #(
19238       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19239       *) as_qdir=$as_dir;;
19240       esac
19241       as_dirs="'$as_qdir' $as_dirs"
19242       as_dir=`$as_dirname -- "$as_dir" ||
19243 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19244          X"$as_dir" : 'X\(//\)[^/]' \| \
19245          X"$as_dir" : 'X\(//\)$' \| \
19246          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19247 echo X"$as_dir" |
19248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19249             s//\1/
19250             q
19251           }
19252           /^X\(\/\/\)[^/].*/{
19253             s//\1/
19254             q
19255           }
19256           /^X\(\/\/\)$/{
19257             s//\1/
19258             q
19259           }
19260           /^X\(\/\).*/{
19261             s//\1/
19262             q
19263           }
19264           s/.*/./; q'`
19265       test -d "$as_dir" && break
19266     done
19267     test -z "$as_dirs" || eval "mkdir $as_dirs"
19268   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19269 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19270    { (exit 1); exit 1; }; }; }
19271   ac_builddir=.
19272
19273 case "$ac_dir" in
19274 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19275 *)
19276   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19277   # A ".." for each directory in $ac_dir_suffix.
19278   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19279   case $ac_top_builddir_sub in
19280   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19281   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19282   esac ;;
19283 esac
19284 ac_abs_top_builddir=$ac_pwd
19285 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19286 # for backward compatibility:
19287 ac_top_builddir=$ac_top_build_prefix
19288
19289 case $srcdir in
19290   .)  # We are building in place.
19291     ac_srcdir=.
19292     ac_top_srcdir=$ac_top_builddir_sub
19293     ac_abs_top_srcdir=$ac_pwd ;;
19294   [\\/]* | ?:[\\/]* )  # Absolute name.
19295     ac_srcdir=$srcdir$ac_dir_suffix;
19296     ac_top_srcdir=$srcdir
19297     ac_abs_top_srcdir=$srcdir ;;
19298   *) # Relative name.
19299     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19300     ac_top_srcdir=$ac_top_build_prefix$srcdir
19301     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19302 esac
19303 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19304
19305
19306   case $ac_mode in
19307   :F)
19308   #
19309   # CONFIG_FILE
19310   #
19311
19312   case $INSTALL in
19313   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19314   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19315   esac
19316 _ACEOF
19317
19318 cat >>$CONFIG_STATUS <<\_ACEOF
19319 # If the template does not know about datarootdir, expand it.
19320 # FIXME: This hack should be removed a few years after 2.60.
19321 ac_datarootdir_hack=; ac_datarootdir_seen=
19322
19323 case `sed -n '/datarootdir/ {
19324   p
19325   q
19326 }
19327 /@datadir@/p
19328 /@docdir@/p
19329 /@infodir@/p
19330 /@localedir@/p
19331 /@mandir@/p
19332 ' $ac_file_inputs` in
19333 *datarootdir*) ac_datarootdir_seen=yes;;
19334 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19335   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19336 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19337 _ACEOF
19338 cat >>$CONFIG_STATUS <<_ACEOF
19339   ac_datarootdir_hack='
19340   s&@datadir@&$datadir&g
19341   s&@docdir@&$docdir&g
19342   s&@infodir@&$infodir&g
19343   s&@localedir@&$localedir&g
19344   s&@mandir@&$mandir&g
19345     s&\\\${datarootdir}&$datarootdir&g' ;;
19346 esac
19347 _ACEOF
19348
19349 # Neutralize VPATH when `$srcdir' = `.'.
19350 # Shell code in configure.ac might set extrasub.
19351 # FIXME: do we really want to maintain this feature?
19352 cat >>$CONFIG_STATUS <<_ACEOF
19353   sed "$ac_vpsub
19354 $extrasub
19355 _ACEOF
19356 cat >>$CONFIG_STATUS <<\_ACEOF
19357 :t
19358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19359 s&@configure_input@&$configure_input&;t t
19360 s&@top_builddir@&$ac_top_builddir_sub&;t t
19361 s&@srcdir@&$ac_srcdir&;t t
19362 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19363 s&@top_srcdir@&$ac_top_srcdir&;t t
19364 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19365 s&@builddir@&$ac_builddir&;t t
19366 s&@abs_builddir@&$ac_abs_builddir&;t t
19367 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19368 s&@INSTALL@&$ac_INSTALL&;t t
19369 $ac_datarootdir_hack
19370 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19371
19372 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19373   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19374   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19375   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19376 which seems to be undefined.  Please make sure it is defined." >&5
19377 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19378 which seems to be undefined.  Please make sure it is defined." >&2;}
19379
19380   rm -f "$tmp/stdin"
19381   case $ac_file in
19382   -) cat "$tmp/out"; rm -f "$tmp/out";;
19383   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19384   esac
19385  ;;
19386   :H)
19387   #
19388   # CONFIG_HEADER
19389   #
19390 _ACEOF
19391
19392 # Transform confdefs.h into a sed script `conftest.defines', that
19393 # substitutes the proper values into config.h.in to produce config.h.
19394 rm -f conftest.defines conftest.tail
19395 # First, append a space to every undef/define line, to ease matching.
19396 echo 's/$/ /' >conftest.defines
19397 # Then, protect against being on the right side of a sed subst, or in
19398 # an unquoted here document, in config.status.  If some macros were
19399 # called several times there might be several #defines for the same
19400 # symbol, which is useless.  But do not sort them, since the last
19401 # AC_DEFINE must be honored.
19402 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19403 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19404 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19405 # PARAMS is the parameter list in the macro definition--in most cases, it's
19406 # just an empty string.
19407 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19408 ac_dB='\\)[      (].*,\\1define\\2'
19409 ac_dC=' '
19410 ac_dD=' ,'
19411
19412 uniq confdefs.h |
19413   sed -n '
19414         t rset
19415         :rset
19416         s/^[     ]*#[    ]*define[       ][      ]*//
19417         t ok
19418         d
19419         :ok
19420         s/[\\&,]/\\&/g
19421         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19422         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19423   ' >>conftest.defines
19424
19425 # Remove the space that was appended to ease matching.
19426 # Then replace #undef with comments.  This is necessary, for
19427 # example, in the case of _POSIX_SOURCE, which is predefined and required
19428 # on some systems where configure will not decide to define it.
19429 # (The regexp can be short, since the line contains either #define or #undef.)
19430 echo 's/ $//
19431 s,^[     #]*u.*,/* & */,' >>conftest.defines
19432
19433 # Break up conftest.defines:
19434 ac_max_sed_lines=50
19435
19436 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19437 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19438 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19439 # et cetera.
19440 ac_in='$ac_file_inputs'
19441 ac_out='"$tmp/out1"'
19442 ac_nxt='"$tmp/out2"'
19443
19444 while :
19445 do
19446   # Write a here document:
19447     cat >>$CONFIG_STATUS <<_ACEOF
19448     # First, check the format of the line:
19449     cat >"\$tmp/defines.sed" <<\\CEOF
19450 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19451 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19452 b
19453 :def
19454 _ACEOF
19455   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19456   echo 'CEOF
19457     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19458   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19459   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19460   grep . conftest.tail >/dev/null || break
19461   rm -f conftest.defines
19462   mv conftest.tail conftest.defines
19463 done
19464 rm -f conftest.defines conftest.tail
19465
19466 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19467 cat >>$CONFIG_STATUS <<\_ACEOF
19468   if test x"$ac_file" != x-; then
19469     echo "/* $configure_input  */" >"$tmp/config.h"
19470     cat "$ac_result" >>"$tmp/config.h"
19471     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19472       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19473 echo "$as_me: $ac_file is unchanged" >&6;}
19474     else
19475       rm -f $ac_file
19476       mv "$tmp/config.h" $ac_file
19477     fi
19478   else
19479     echo "/* $configure_input  */"
19480     cat "$ac_result"
19481   fi
19482   rm -f "$tmp/out12"
19483  ;;
19484
19485   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19486 echo "$as_me: executing $ac_file commands" >&6;}
19487  ;;
19488   esac
19489
19490
19491   case $ac_file$ac_mode in
19492     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19493    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19494     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19495    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19496     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19497    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19498     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19499    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19500     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19501    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19502     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19503    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19504     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19505    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19506     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19507    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19508     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19509    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19510     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19511    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19512     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19513    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19514     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19515    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19516
19517   esac
19518 done # for ac_tag
19519
19520
19521 { (exit 0); exit 0; }
19522 _ACEOF
19523 chmod +x $CONFIG_STATUS
19524 ac_clean_files=$ac_clean_files_save
19525
19526
19527 # configure is writing to config.log, and then calls config.status.
19528 # config.status does its own redirection, appending to config.log.
19529 # Unfortunately, on DOS this fails, as config.log is still kept open
19530 # by configure, so config.status won't be able to write to it; its
19531 # output is simply discarded.  So we exec the FD to /dev/null,
19532 # effectively closing config.log, so it can be properly (re)opened and
19533 # appended to by config.status.  When coming back to configure, we
19534 # need to make the FD available again.
19535 if test "$no_create" != yes; then
19536   ac_cs_success=:
19537   ac_config_status_args=
19538   test "$silent" = yes &&
19539     ac_config_status_args="$ac_config_status_args --quiet"
19540   exec 5>/dev/null
19541   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19542   exec 5>>config.log
19543   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19544   # would make configure fail if this is the last instruction.
19545   $ac_cs_success || { (exit 1); exit 1; }
19546 fi
19547
19548 #
19549 # CONFIG_SUBDIRS section.
19550 #
19551 if test "$no_recursion" != yes; then
19552
19553   # Remove --cache-file and --srcdir arguments so they do not pile up.
19554   ac_sub_configure_args=
19555   ac_prev=
19556   eval "set x $ac_configure_args"
19557   shift
19558   for ac_arg
19559   do
19560     if test -n "$ac_prev"; then
19561       ac_prev=
19562       continue
19563     fi
19564     case $ac_arg in
19565     -cache-file | --cache-file | --cache-fil | --cache-fi \
19566     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19567       ac_prev=cache_file ;;
19568     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19569     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19570     | --c=*)
19571       ;;
19572     --config-cache | -C)
19573       ;;
19574     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19575       ac_prev=srcdir ;;
19576     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19577       ;;
19578     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19579       ac_prev=prefix ;;
19580     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19581       ;;
19582     *)
19583       case $ac_arg in
19584       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19585       esac
19586       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19587     esac
19588   done
19589
19590   # Always prepend --prefix to ensure using the same prefix
19591   # in subdir configurations.
19592   ac_arg="--prefix=$prefix"
19593   case $ac_arg in
19594   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19595   esac
19596   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19597
19598   ac_popdir=`pwd`
19599   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19600
19601     # Do not complain, so a configure script can configure whichever
19602     # parts of a large source tree are present.
19603     test -d "$srcdir/$ac_dir" || continue
19604
19605     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19606     echo "$as_me:$LINENO: $ac_msg" >&5
19607     echo "$ac_msg" >&6
19608     { as_dir="$ac_dir"
19609   case $as_dir in #(
19610   -*) as_dir=./$as_dir;;
19611   esac
19612   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19613     as_dirs=
19614     while :; do
19615       case $as_dir in #(
19616       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19617       *) as_qdir=$as_dir;;
19618       esac
19619       as_dirs="'$as_qdir' $as_dirs"
19620       as_dir=`$as_dirname -- "$as_dir" ||
19621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19622          X"$as_dir" : 'X\(//\)[^/]' \| \
19623          X"$as_dir" : 'X\(//\)$' \| \
19624          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19625 echo X"$as_dir" |
19626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19627             s//\1/
19628             q
19629           }
19630           /^X\(\/\/\)[^/].*/{
19631             s//\1/
19632             q
19633           }
19634           /^X\(\/\/\)$/{
19635             s//\1/
19636             q
19637           }
19638           /^X\(\/\).*/{
19639             s//\1/
19640             q
19641           }
19642           s/.*/./; q'`
19643       test -d "$as_dir" && break
19644     done
19645     test -z "$as_dirs" || eval "mkdir $as_dirs"
19646   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19647 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19648    { (exit 1); exit 1; }; }; }
19649     ac_builddir=.
19650
19651 case "$ac_dir" in
19652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19653 *)
19654   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19655   # A ".." for each directory in $ac_dir_suffix.
19656   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19657   case $ac_top_builddir_sub in
19658   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19659   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19660   esac ;;
19661 esac
19662 ac_abs_top_builddir=$ac_pwd
19663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19664 # for backward compatibility:
19665 ac_top_builddir=$ac_top_build_prefix
19666
19667 case $srcdir in
19668   .)  # We are building in place.
19669     ac_srcdir=.
19670     ac_top_srcdir=$ac_top_builddir_sub
19671     ac_abs_top_srcdir=$ac_pwd ;;
19672   [\\/]* | ?:[\\/]* )  # Absolute name.
19673     ac_srcdir=$srcdir$ac_dir_suffix;
19674     ac_top_srcdir=$srcdir
19675     ac_abs_top_srcdir=$srcdir ;;
19676   *) # Relative name.
19677     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19678     ac_top_srcdir=$ac_top_build_prefix$srcdir
19679     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19680 esac
19681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19682
19683
19684     cd "$ac_dir"
19685
19686     # Check for guested configure; otherwise get Cygnus style configure.
19687     if test -f "$ac_srcdir/configure.gnu"; then
19688       ac_sub_configure=$ac_srcdir/configure.gnu
19689     elif test -f "$ac_srcdir/configure"; then
19690       ac_sub_configure=$ac_srcdir/configure
19691     elif test -f "$ac_srcdir/configure.in"; then
19692       # This should be Cygnus configure.
19693       ac_sub_configure=$ac_aux_dir/configure
19694     else
19695       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19696 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19697       ac_sub_configure=
19698     fi
19699
19700     # The recursion is here.
19701     if test -n "$ac_sub_configure"; then
19702       # Make the cache file name correct relative to the subdirectory.
19703       case $cache_file in
19704       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19705       *) # Relative name.
19706         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19707       esac
19708
19709       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19710 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19711       # The eval makes quoting arguments work.
19712       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19713            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19714         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19715 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19716    { (exit 1); exit 1; }; }
19717     fi
19718
19719     cd "$ac_popdir"
19720   done
19721 fi
19722